@opencx/widget 4.0.54 → 4.0.55

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Vh=Symbol.for("react.transitional.element"),EN=Symbol.for("react.portal"),TN=Symbol.for("react.fragment"),wN=Symbol.for("react.strict_mode"),SN=Symbol.for("react.profiler"),AN=Symbol.for("react.consumer"),CN=Symbol.for("react.context"),kN=Symbol.for("react.forward_ref"),ON=Symbol.for("react.suspense"),NN=Symbol.for("react.memo"),d1=Symbol.for("react.lazy"),f1=Symbol.iterator;function RN(e){return e===null||typeof e!="object"?null:(e=f1&&e[f1]||e["@@iterator"],typeof e=="function"?e:null)}var h1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p1=Object.assign,m1={};function Cs(e,t,n){this.props=e,this.context=t,this.refs=m1,this.updater=n||h1}Cs.prototype.isReactComponent={},Cs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function g1(){}g1.prototype=Cs.prototype;function Yh(e,t,n){this.props=e,this.context=t,this.refs=m1,this.updater=n||h1}var qh=Yh.prototype=new g1;qh.constructor=Yh,p1(qh,Cs.prototype),qh.isPureReactComponent=!0;var b1=Array.isArray,lt={H:null,A:null,T:null,S:null,V:null},v1=Object.prototype.hasOwnProperty;function Gh(e,t,n,i,a,r){return n=r.ref,{$$typeof:Vh,type:e,key:t,ref:n!==void 0?n:null,props:r}}function DN(e,t){return Gh(e.type,t,void 0,void 0,void 0,e.props)}function $h(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vh}function MN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var y1=/\/+/g;function Xh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MN(""+e.key):t.toString(36)}function x1(){}function LN(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(x1,x1):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ks(e,t,n,i,a){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Vh:case EN:s=!0;break;case d1:return s=e._init,ks(s(e._payload),t,n,i,a)}}if(s)return a=a(e),s=i===""?"."+Xh(e,0):i,b1(a)?(n="",s!=null&&(n=s.replace(y1,"$&/")+"/"),ks(a,t,n,"",function(u){return u})):a!=null&&($h(a)&&(a=DN(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(y1,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=i===""?".":i+":";if(b1(e))for(var l=0;l<e.length;l++)i=e[l],r=o+Xh(i,l),s+=ks(i,t,n,r,a);else if(l=RN(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,r=o+Xh(i,l++),s+=ks(i,t,n,r,a);else if(r==="object"){if(typeof e.then=="function")return ks(LN(e),t,n,i,a);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 s}function kc(e,t,n){if(e==null)return e;var i=[],a=0;return ks(e,i,"","",function(r){return t.call(n,r,a++)}),i}function IN(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 _1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function PN(){}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!$h(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=Cs,Ae.Fragment=TN,Ae.Profiler=SN,Ae.PureComponent=Yh,Ae.StrictMode=wN,Ae.Suspense=ON,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return lt.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=p1({},e.props),a=e.key,r=void 0;if(t!=null)for(s in t.ref!==void 0&&(r=void 0),t.key!==void 0&&(a=""+t.key),t)!v1.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(i[s]=t[s]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];i.children=o}return Gh(e.type,a,void 0,void 0,r,i)},Ae.createContext=function(e){return e={$$typeof:CN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:AN,_context:e},e},Ae.createElement=function(e,t,n){var i,a={},r=null;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)v1.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)a[i]===void 0&&(a[i]=s[i]);return Gh(e,r,void 0,void 0,null,a)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:kN,render:e}},Ae.isValidElement=$h,Ae.lazy=function(e){return{$$typeof:d1,_payload:{_status:-1,_result:e},_init:IN}},Ae.memo=function(e,t){return{$$typeof:NN,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=lt.T,n={};lt.T=n;try{var i=e(),a=lt.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(PN,_1)}catch(r){_1(r)}finally{lt.T=t}},Ae.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()},Ae.use=function(e){return lt.H.use(e)},Ae.useActionState=function(e,t,n){return lt.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return lt.H.useCallback(e,t)},Ae.useContext=function(e){return lt.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return lt.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var i=lt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Ae.useId=function(){return lt.H.useId()},Ae.useImperativeHandle=function(e,t,n){return lt.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return lt.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return lt.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return lt.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return lt.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return lt.H.useReducer(e,t,n)},Ae.useRef=function(e){return lt.H.useRef(e)},Ae.useState=function(e){return lt.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return lt.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return lt.H.useTransition()},Ae.version="19.1.1",c1.exports=Ae;var E=c1.exports;const pn=hl(E),E1=vN({__proto__:null,default:pn},[E]);function _n(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function T1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function w1(...e){return t=>{let n=!1;const i=e.map(a=>{const r=T1(a,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let a=0;a<i.length;a++){const r=i[a];typeof r=="function"?r():T1(e[a],null)}}}}function Bi(...e){return E.useCallback(w1(...e),e)}function Oc(e,t=[]){let n=[];function i(r,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...g}=d,b=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,_=E.useMemo(()=>g,Object.values(g));return v.jsx(b.Provider,{value:_,children:h})};u.displayName=r+"Provider";function c(d,f){var b;const h=((b=f==null?void 0:f[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[u,c]}const a=()=>{const r=n.map(s=>E.createContext(s));return function(o){const l=(o==null?void 0:o[e])||r;return E.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return a.scopeName=e,[i,BN(a,...t)]}function BN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const d=l(r)[`__scope${u}`];return{...o,...d}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var S1={exports:{}},mn={};/**
17
+ */var Vh=Symbol.for("react.transitional.element"),EN=Symbol.for("react.portal"),TN=Symbol.for("react.fragment"),wN=Symbol.for("react.strict_mode"),SN=Symbol.for("react.profiler"),AN=Symbol.for("react.consumer"),CN=Symbol.for("react.context"),kN=Symbol.for("react.forward_ref"),ON=Symbol.for("react.suspense"),NN=Symbol.for("react.memo"),d1=Symbol.for("react.lazy"),f1=Symbol.iterator;function RN(e){return e===null||typeof e!="object"?null:(e=f1&&e[f1]||e["@@iterator"],typeof e=="function"?e:null)}var h1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p1=Object.assign,m1={};function Cs(e,t,n){this.props=e,this.context=t,this.refs=m1,this.updater=n||h1}Cs.prototype.isReactComponent={},Cs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function g1(){}g1.prototype=Cs.prototype;function Yh(e,t,n){this.props=e,this.context=t,this.refs=m1,this.updater=n||h1}var qh=Yh.prototype=new g1;qh.constructor=Yh,p1(qh,Cs.prototype),qh.isPureReactComponent=!0;var b1=Array.isArray,lt={H:null,A:null,T:null,S:null,V:null},v1=Object.prototype.hasOwnProperty;function Gh(e,t,n,i,a,r){return n=r.ref,{$$typeof:Vh,type:e,key:t,ref:n!==void 0?n:null,props:r}}function DN(e,t){return Gh(e.type,t,void 0,void 0,void 0,e.props)}function $h(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vh}function MN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var y1=/\/+/g;function Xh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?MN(""+e.key):t.toString(36)}function x1(){}function LN(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(x1,x1):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ks(e,t,n,i,a){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Vh:case EN:s=!0;break;case d1:return s=e._init,ks(s(e._payload),t,n,i,a)}}if(s)return a=a(e),s=i===""?"."+Xh(e,0):i,b1(a)?(n="",s!=null&&(n=s.replace(y1,"$&/")+"/"),ks(a,t,n,"",function(u){return u})):a!=null&&($h(a)&&(a=DN(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(y1,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=i===""?".":i+":";if(b1(e))for(var l=0;l<e.length;l++)i=e[l],r=o+Xh(i,l),s+=ks(i,t,n,r,a);else if(l=RN(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,r=o+Xh(i,l++),s+=ks(i,t,n,r,a);else if(r==="object"){if(typeof e.then=="function")return ks(LN(e),t,n,i,a);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 s}function kc(e,t,n){if(e==null)return e;var i=[],a=0;return ks(e,i,"","",function(r){return t.call(n,r,a++)}),i}function IN(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 _1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function PN(){}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!$h(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=Cs,Ae.Fragment=TN,Ae.Profiler=SN,Ae.PureComponent=Yh,Ae.StrictMode=wN,Ae.Suspense=ON,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return lt.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=p1({},e.props),a=e.key,r=void 0;if(t!=null)for(s in t.ref!==void 0&&(r=void 0),t.key!==void 0&&(a=""+t.key),t)!v1.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(i[s]=t[s]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];i.children=o}return Gh(e.type,a,void 0,void 0,r,i)},Ae.createContext=function(e){return e={$$typeof:CN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:AN,_context:e},e},Ae.createElement=function(e,t,n){var i,a={},r=null;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)v1.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)a[i]===void 0&&(a[i]=s[i]);return Gh(e,r,void 0,void 0,null,a)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:kN,render:e}},Ae.isValidElement=$h,Ae.lazy=function(e){return{$$typeof:d1,_payload:{_status:-1,_result:e},_init:IN}},Ae.memo=function(e,t){return{$$typeof:NN,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=lt.T,n={};lt.T=n;try{var i=e(),a=lt.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(PN,_1)}catch(r){_1(r)}finally{lt.T=t}},Ae.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()},Ae.use=function(e){return lt.H.use(e)},Ae.useActionState=function(e,t,n){return lt.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return lt.H.useCallback(e,t)},Ae.useContext=function(e){return lt.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return lt.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var i=lt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Ae.useId=function(){return lt.H.useId()},Ae.useImperativeHandle=function(e,t,n){return lt.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return lt.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return lt.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return lt.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return lt.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return lt.H.useReducer(e,t,n)},Ae.useRef=function(e){return lt.H.useRef(e)},Ae.useState=function(e){return lt.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return lt.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return lt.H.useTransition()},Ae.version="19.1.1",c1.exports=Ae;var _=c1.exports;const pn=hl(_),E1=vN({__proto__:null,default:pn},[_]);function _n(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function T1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function w1(...e){return t=>{let n=!1;const i=e.map(a=>{const r=T1(a,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let a=0;a<i.length;a++){const r=i[a];typeof r=="function"?r():T1(e[a],null)}}}}function Bi(...e){return _.useCallback(w1(...e),e)}function Oc(e,t=[]){let n=[];function i(r,s){const o=_.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...g}=d,b=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,E=_.useMemo(()=>g,Object.values(g));return v.jsx(b.Provider,{value:E,children:h})};u.displayName=r+"Provider";function c(d,f){var b;const h=((b=f==null?void 0:f[e])==null?void 0:b[l])||o,g=_.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[u,c]}const a=()=>{const r=n.map(s=>_.createContext(s));return function(o){const l=(o==null?void 0:o[e])||r;return _.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return a.scopeName=e,[i,BN(a,...t)]}function BN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const d=l(r)[`__scope${u}`];return{...o,...d}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var S1={exports:{}},mn={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var zN=E;function A1(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ua(){}var gn={d:{f:Ua,r:function(){throw Error(A1(522))},D:Ua,C:Ua,L:Ua,m:Ua,X:Ua,S:Ua,M:Ua},p:0,findDOMNode:null},jN=Symbol.for("react.portal");function UN(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jN,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var pl=zN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gn,mn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(A1(299));return UN(e,t,null,n)},mn.flushSync=function(e){var t=pl.T,n=gn.p;try{if(pl.T=null,gn.p=2,e)return e()}finally{pl.T=t,gn.p=n,gn.d.f()}},mn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,gn.d.C(e,t))},mn.prefetchDNS=function(e){typeof e=="string"&&gn.d.D(e)},mn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?gn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:r}):n==="script"&&gn.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},mn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nc(t.as,t.crossOrigin);gn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&gn.d.M(e)},mn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin);gn.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},mn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nc(t.as,t.crossOrigin);gn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else gn.d.m(e)},mn.requestFormReset=function(e){gn.d.r(e)},mn.unstable_batchedUpdates=function(e,t){return e(t)},mn.useFormState=function(e,t,n){return pl.H.useFormState(e,t,n)},mn.useFormStatus=function(){return pl.H.useHostTransitionStatus()},mn.version="19.1.1";function C1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C1)}catch(e){console.error(e)}}C1(),S1.exports=mn;var ml=S1.exports;function Kh(e){const t=FN(e),n=E.forwardRef((i,a)=>{const{children:r,...s}=i,o=E.Children.toArray(r),l=o.find(YN);if(l){const u=l.props.children,c=o.map(d=>d===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:d);return v.jsx(t,{...s,ref:a,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return v.jsx(t,{...s,ref:a,children:r})});return n.displayName=`${e}.Slot`,n}var HN=Kh("Slot");function FN(e){const t=E.forwardRef((n,i)=>{const{children:a,...r}=n;if(E.isValidElement(a)){const s=GN(a),o=qN(r,a.props);return a.type!==E.Fragment&&(o.ref=i?w1(i,s):s),E.cloneElement(a,o)}return E.Children.count(a)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var k1=Symbol("radix.slottable");function VN(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=k1,t}function YN(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===k1}function qN(e,t){const n={...t};for(const i in t){const a=e[i],r=t[i];/^on[A-Z]/.test(i)?a&&r?n[i]=(...o)=>{const l=r(...o);return a(...o),l}:a&&(n[i]=a):i==="style"?n[i]={...a,...r}:i==="className"&&(n[i]=[a,r].filter(Boolean).join(" "))}return{...e,...n}}function GN(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ln=$N.reduce((e,t)=>{const n=Kh(`Primitive.${t}`),i=E.forwardRef((a,r)=>{const{asChild:s,...o}=a,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function XN(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}function Pr(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function KN(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e);E.useEffect(()=>{const i=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var QN="DismissableLayer",Qh="dismissableLayer.update",WN="dismissableLayer.pointerDownOutside",ZN="dismissableLayer.focusOutside",O1,N1=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wh=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:r,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(N1),[c,d]=E.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Bi(t,D=>d(D)),b=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(_),y=c?b.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=y>=m,S=t4(D=>{const L=D.target,B=[...u.branches].some(O=>O.contains(L));!T||B||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},f),A=n4(D=>{const L=D.target;[...u.branches].some(O=>O.contains(L))||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},f);return KN(D=>{y===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},f),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(O1=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),R1(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=O1)}},[c,f,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),R1())},[c,u]),E.useEffect(()=>{const D=()=>h({});return document.addEventListener(Qh,D),()=>document.removeEventListener(Qh,D)},[]),v.jsx(Ln.div,{...l,ref:g,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:_n(e.onFocusCapture,A.onFocusCapture),onBlurCapture:_n(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:_n(e.onPointerDownCapture,S.onPointerDownCapture)})});Wh.displayName=QN;var JN="DismissableLayerBranch",e4=E.forwardRef((e,t)=>{const n=E.useContext(N1),i=E.useRef(null),a=Bi(t,i);return E.useEffect(()=>{const r=i.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),v.jsx(Ln.div,{...e,ref:a})});e4.displayName=JN;function t4(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),i=E.useRef(!1),a=E.useRef(()=>{});return E.useEffect(()=>{const r=o=>{if(o.target&&!i.current){let l=function(){D1(WN,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function n4(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),i=E.useRef(!1);return E.useEffect(()=>{const a=r=>{r.target&&!i.current&&D1(ZN,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function R1(){const e=new CustomEvent(Qh);document.dispatchEvent(e)}function D1(e,t,n,{discrete:i}){const a=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?XN(a,r):a.dispatchEvent(r)}var Zh=0;function i4(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??M1()),document.body.insertAdjacentElement("beforeend",e[1]??M1()),Zh++,()=>{Zh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zh--}},[])}function M1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jh="focusScope.autoFocusOnMount",ep="focusScope.autoFocusOnUnmount",L1={bubbles:!1,cancelable:!0},a4="FocusScope",I1=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:r,...s}=e,[o,l]=E.useState(null),u=Pr(a),c=Pr(r),d=E.useRef(null),f=Bi(t,b=>l(b)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let b=function(x){if(h.paused||!o)return;const T=x.target;o.contains(T)?d.current=T:Ha(d.current,{select:!0})},_=function(x){if(h.paused||!o)return;const T=x.relatedTarget;T!==null&&(o.contains(T)||Ha(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ha(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",_);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",_),y.disconnect()}}},[i,o,h.paused]),E.useEffect(()=>{if(o){z1.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(Jh,L1);o.addEventListener(Jh,u),o.dispatchEvent(m),m.defaultPrevented||(r4(c4(P1(o)),{select:!0}),document.activeElement===b&&Ha(o))}return()=>{o.removeEventListener(Jh,u),setTimeout(()=>{const m=new CustomEvent(ep,L1);o.addEventListener(ep,c),o.dispatchEvent(m),m.defaultPrevented||Ha(b??document.body,{select:!0}),o.removeEventListener(ep,c),z1.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!i||h.paused)return;const _=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(_&&m){const y=b.currentTarget,[x,T]=s4(y);x&&T?!b.shiftKey&&m===T?(b.preventDefault(),n&&Ha(x,{select:!0})):b.shiftKey&&m===x&&(b.preventDefault(),n&&Ha(T,{select:!0})):m===y&&b.preventDefault()}},[n,i,h.paused]);return v.jsx(Ln.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});I1.displayName=a4;function r4(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ha(i,{select:t}),document.activeElement!==n)return}function s4(e){const t=P1(e),n=B1(t,e),i=B1(t.reverse(),e);return[n,i]}function P1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function B1(e,t){for(const n of e)if(!o4(n,{upTo:t}))return n}function o4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function l4(e){return e instanceof HTMLInputElement&&"select"in e}function Ha(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&l4(e)&&t&&e.select()}}var z1=u4();function u4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=j1(e,t),e.unshift(t)},remove(t){var n;e=j1(e,t),(n=e[0])==null||n.resume()}}}function j1(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function c4(e){return e.filter(t=>t.tagName!=="A")}var zi=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},d4=E1[" useId ".trim().toString()]||(()=>{}),f4=0;function U1(e){const[t,n]=E.useState(d4());return zi(()=>{n(i=>i??String(f4++))},[e]),e||(t?`radix-${t}`:"")}const h4=["top","right","bottom","left"],Fa=Math.min,In=Math.max,Rc=Math.round,Dc=Math.floor,ji=e=>({x:e,y:e}),p4={left:"right",right:"left",bottom:"top",top:"bottom"},m4={start:"end",end:"start"};function tp(e,t,n){return In(e,Fa(t,n))}function oa(e,t){return typeof e=="function"?e(t):e}function la(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}const g4=new Set(["top","bottom"]);function Ui(e){return g4.has(la(e))?"y":"x"}function ap(e){return np(Ui(e))}function b4(e,t,n){n===void 0&&(n=!1);const i=Os(e),a=ap(e),r=ip(a);let s=a==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Mc(s)),[s,Mc(s)]}function v4(e){const t=Mc(e);return[rp(e),t,rp(t)]}function rp(e){return e.replace(/start|end/g,t=>m4[t])}const H1=["left","right"],F1=["right","left"],y4=["top","bottom"],x4=["bottom","top"];function _4(e,t,n){switch(e){case"top":case"bottom":return n?t?F1:H1:t?H1:F1;case"left":case"right":return t?y4:x4;default:return[]}}function E4(e,t,n,i){const a=Os(e);let r=_4(la(e),n==="start",i);return a&&(r=r.map(s=>s+"-"+a),t&&(r=r.concat(r.map(rp)))),r}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>p4[t])}function T4(e){return{top:0,right:0,bottom:0,left:0,...e}}function V1(e){return typeof e!="number"?T4(e):{top:e,right:e,bottom:e,left:e}}function Lc(e){const{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function Y1(e,t,n){let{reference:i,floating:a}=e;const r=Ui(t),s=ap(t),o=ip(s),l=la(t),u=r==="y",c=i.x+i.width/2-a.width/2,d=i.y+i.height/2-a.height/2,f=i[o]/2-a[o]/2;let h;switch(l){case"top":h={x:c,y:i.y-a.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-a.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Os(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const w4=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:r=[],platform:s}=n,o=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=Y1(u,i,l),f=i,h={},g=0;for(let b=0;b<o.length;b++){const{name:_,fn:m}=o[b],{x:y,y:x,data:T,reset:S}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:a,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,d=x??d,h={...h,[_]:{...h[_],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:c,y:d}=Y1(u,f,l)),b=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}};async function gl(e,t){var n;t===void 0&&(t={});const{x:i,y:a,platform:r,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=oa(t,e),g=V1(h),_=o[f?d==="floating"?"reference":"floating":d],m=Lc(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(_)))==null||n?_:_.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),T=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Lc(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:x,strategy:l}):y);return{top:(m.top-S.top+g.top)/T.y,bottom:(S.bottom-m.bottom+g.bottom)/T.y,left:(m.left-S.left+g.left)/T.x,right:(S.right-m.right+g.right)/T.x}}const S4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:r,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=oa(e,t)||{};if(u==null)return{};const d=V1(c),f={x:n,y:i},h=ap(a),g=ip(h),b=await s.getDimensions(u),_=h==="y",m=_?"top":"left",y=_?"bottom":"right",x=_?"clientHeight":"clientWidth",T=r.reference[g]+r.reference[h]-f[h]-r.floating[g],S=f[h]-r.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[x]||r.floating[g]);const L=T/2-S/2,B=D/2-b[g]/2-1,O=Fa(d[m],B),Y=Fa(d[y],B),U=O,ae=D-b[g]-Y,ee=D/2-b[g]/2+L,Q=tp(U,ee,ae),F=!l.arrow&&Os(a)!=null&&ee!==Q&&r.reference[g]/2-(ee<U?O:Y)-b[g]/2<0,V=F?ee<U?ee-U:ee-ae:0;return{[h]:f[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),A4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:r,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,..._}=oa(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const m=la(a),y=Ui(o),x=la(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(x||!b?[Mc(o)]:v4(o)),A=g!=="none";!f&&A&&S.push(...E4(o,b,g,T));const D=[o,...S],L=await gl(t,_),B=[];let O=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),d){const ee=b4(a,s,T);B.push(L[ee[0]],L[ee[1]])}if(O=[...O,{placement:a,overflows:B}],!B.every(ee=>ee<=0)){var Y,U;const ee=(((Y=r.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(d==="alignment"?y!==Ui(Q):!1)||O.every(H=>Ui(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:O},reset:{placement:Q}};let F=(U=O.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(h){case"bestFit":{var ae;const V=(ae=O.filter(H=>{if(A){const te=Ui(H.placement);return te===y||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,N)=>te+N,0)]).sort((H,te)=>H[1]-te[1])[0])==null?void 0:ae[0];V&&(F=V);break}case"initialPlacement":F=o;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function q1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G1(e){return h4.some(t=>e[t]>=0)}const C4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...a}=oa(e,t);switch(i){case"referenceHidden":{const r=await gl(t,{...a,elementContext:"reference"}),s=q1(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:G1(s)}}}case"escaped":{const r=await gl(t,{...a,altBoundary:!0}),s=q1(r,n.floating);return{data:{escapedOffsets:s,escaped:G1(s)}}}default:return{}}}}},$1=new Set(["left","top"]);async function k4(e,t){const{placement:n,platform:i,elements:a}=e,r=await(i.isRTL==null?void 0:i.isRTL(a.floating)),s=la(n),o=Os(n),l=Ui(n)==="y",u=$1.has(s)?-1:1,c=r&&l?-1:1,d=oa(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const O4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:r,placement:s,middlewareData:o}=t,l=await k4(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(i=o.arrow)!=null&&i.alignmentOffset?{}:{x:a+l.x,y:r+l.y,data:{...l,placement:s}}}}},N4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:o={fn:_=>{let{x:m,y}=_;return{x:m,y}}},...l}=oa(e,t),u={x:n,y:i},c=await gl(t,l),d=Ui(la(a)),f=np(d);let h=u[f],g=u[d];if(r){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=h+c[_],x=h-c[m];h=tp(y,h,x)}if(s){const _=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=g+c[_],x=g-c[m];g=tp(y,g,x)}const b=o.fn({...t,[f]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[f]:r,[d]:s}}}}}},R4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:r,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=oa(e,t),c={x:n,y:i},d=Ui(a),f=np(d);let h=c[f],g=c[d];const b=oa(o,t),_=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=f==="y"?"height":"width",T=r.reference[f]-r.floating[x]+_.mainAxis,S=r.reference[f]+r.reference[x]-_.mainAxis;h<T?h=T:h>S&&(h=S)}if(u){var m,y;const x=f==="y"?"width":"height",T=$1.has(la(a)),S=r.reference[d]-r.floating[x]+(T&&((m=s.offset)==null?void 0:m[d])||0)+(T?0:_.crossAxis),A=r.reference[d]+r.reference[x]+(T?0:((y=s.offset)==null?void 0:y[d])||0)-(T?_.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[d]:g}}}},D4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:a,rects:r,platform:s,elements:o}=t,{apply:l=()=>{},...u}=oa(e,t),c=await gl(t,u),d=la(a),f=Os(a),h=Ui(a)==="y",{width:g,height:b}=r.floating;let _,m;d==="top"||d==="bottom"?(_=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=d,_=f==="end"?"top":"bottom");const y=b-c.top-c.bottom,x=g-c.left-c.right,T=Fa(b-c[_],y),S=Fa(g-c[m],x),A=!t.middlewareData.shift;let D=T,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=y),A&&!f){const O=In(c.left,0),Y=In(c.right,0),U=In(c.top,0),ae=In(c.bottom,0);h?L=g-2*(O!==0||Y!==0?O+Y:In(c.left,c.right)):D=b-2*(U!==0||ae!==0?U+ae:In(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:D});const B=await s.getDimensions(o.floating);return g!==B.width||b!==B.height?{reset:{rects:!0}}:{}}}};function Ic(){return typeof window<"u"}function Ns(e){return X1(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=(X1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X1(e){return Ic()?e instanceof Node||e instanceof Pn(e).Node:!1}function Ei(e){return Ic()?e instanceof Element||e instanceof Pn(e).Element:!1}function Fi(e){return Ic()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function K1(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const M4=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:n,overflowY:i,display:a}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!M4.has(a)}const L4=new Set(["table","td","th"]);function I4(e){return L4.has(Ns(e))}const P4=[":popover-open",":modal"];function Pc(e){return P4.some(t=>{try{return e.matches(t)}catch{return!1}})}const B4=["transform","translate","scale","rotate","perspective"],z4=["transform","translate","scale","rotate","perspective","filter"],j4=["paint","layout","strict","content"];function sp(e){const t=op(),n=Ei(e)?Ti(e):e;return B4.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||z4.some(i=>(n.willChange||"").includes(i))||j4.some(i=>(n.contain||"").includes(i))}function U4(e){let t=Va(e);for(;Fi(t)&&!Rs(t);){if(sp(t))return t;if(Pc(t))return null;t=Va(t)}return null}function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H4=new Set(["html","body","#document"]);function Rs(e){return H4.has(Ns(e))}function Ti(e){return Pn(e).getComputedStyle(e)}function Bc(e){return Ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Va(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||K1(e)&&e.host||Hi(e);return K1(t)?t.host:t}function Q1(e){const t=Va(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fi(t)&&bl(t)?t:Q1(t)}function vl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Q1(e),r=a===((i=e.ownerDocument)==null?void 0:i.body),s=Pn(a);if(r){const o=lp(s);return t.concat(s,s.visualViewport||[],bl(a)?a:[],o&&n?vl(o):[])}return t.concat(a,vl(a,[],n))}function lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function W1(e){const t=Ti(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Fi(e),r=a?e.offsetWidth:n,s=a?e.offsetHeight:i,o=Rc(n)!==r||Rc(i)!==s;return o&&(n=r,i=s),{width:n,height:i,$:o}}function up(e){return Ei(e)?e:e.contextElement}function Ds(e){const t=up(e);if(!Fi(t))return ji(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:r}=W1(t);let s=(r?Rc(n.width):n.width)/i,o=(r?Rc(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const F4=ji(0);function Z1(e){const t=Pn(e);return!op()||!t.visualViewport?F4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function Br(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),r=up(e);let s=ji(1);t&&(i?Ei(i)&&(s=Ds(i)):s=Ds(e));const o=V4(r,n,i)?Z1(r):ji(0);let l=(a.left+o.x)/s.x,u=(a.top+o.y)/s.y,c=a.width/s.x,d=a.height/s.y;if(r){const f=Pn(r),h=i&&Ei(i)?Pn(i):i;let g=f,b=lp(g);for(;b&&i&&h!==g;){const _=Ds(b),m=b.getBoundingClientRect(),y=Ti(b),x=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*_.x,T=m.top+(b.clientTop+parseFloat(y.paddingTop))*_.y;l*=_.x,u*=_.y,c*=_.x,d*=_.y,l+=x,u+=T,g=Pn(b),b=lp(g)}}return Lc({width:c,height:d,x:l,y:u})}function cp(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:Br(Hi(e)).left+n}function J1(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=i.left+t.scrollLeft-(n?0:cp(e,i)),r=i.top+t.scrollTop;return{x:a,y:r}}function Y4(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const r=a==="fixed",s=Hi(i),o=t?Pc(t.floating):!1;if(i===s||o&&r)return n;let l={scrollLeft:0,scrollTop:0},u=ji(1);const c=ji(0),d=Fi(i);if((d||!d&&!r)&&((Ns(i)!=="body"||bl(s))&&(l=Bc(i)),Fi(i))){const h=Br(i);u=Ds(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const f=s&&!d&&!r?J1(s,l,!0):ji(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function q4(e){return Array.from(e.getClientRects())}function G4(e){const t=Hi(e),n=Bc(e),i=e.ownerDocument.body,a=In(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=In(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+cp(e);const o=-n.scrollTop;return Ti(i).direction==="rtl"&&(s+=In(t.clientWidth,i.clientWidth)-a),{width:a,height:r,x:s,y:o}}function $4(e,t){const n=Pn(e),i=Hi(e),a=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,o=0,l=0;if(a){r=a.width,s=a.height;const u=op();(!u||u&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:s,x:o,y:l}}const X4=new Set(["absolute","fixed"]);function K4(e,t){const n=Br(e,!0,t==="fixed"),i=n.top+e.clientTop,a=n.left+e.clientLeft,r=Fi(e)?Ds(e):ji(1),s=e.clientWidth*r.x,o=e.clientHeight*r.y,l=a*r.x,u=i*r.y;return{width:s,height:o,x:l,y:u}}function ey(e,t,n){let i;if(t==="viewport")i=$4(e,n);else if(t==="document")i=G4(Hi(e));else if(Ei(t))i=K4(t,n);else{const a=Z1(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Lc(i)}function ty(e,t){const n=Va(e);return n===t||!Ei(n)||Rs(n)?!1:Ti(n).position==="fixed"||ty(n,t)}function Q4(e,t){const n=t.get(e);if(n)return n;let i=vl(e,[],!1).filter(o=>Ei(o)&&Ns(o)!=="body"),a=null;const r=Ti(e).position==="fixed";let s=r?Va(e):e;for(;Ei(s)&&!Rs(s);){const o=Ti(s),l=sp(s);!l&&o.position==="fixed"&&(a=null),(r?!l&&!a:!l&&o.position==="static"&&!!a&&X4.has(a.position)||bl(s)&&!l&&ty(e,s))?i=i.filter(c=>c!==s):a=o,s=Va(s)}return t.set(e,i),i}function W4(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const s=[...n==="clippingAncestors"?Pc(t)?[]:Q4(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const d=ey(t,c,a);return u.top=In(d.top,u.top),u.right=Fa(d.right,u.right),u.bottom=Fa(d.bottom,u.bottom),u.left=In(d.left,u.left),u},ey(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z4(e){const{width:t,height:n}=W1(e);return{width:t,height:n}}function J4(e,t,n){const i=Fi(t),a=Hi(t),r=n==="fixed",s=Br(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const l=ji(0);function u(){l.x=cp(a)}if(i||!i&&!r)if((Ns(t)!=="body"||bl(a))&&(o=Bc(t)),i){const h=Br(t,!0,r,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&u();r&&!i&&a&&u();const c=a&&!i&&!r?J1(a,o):ji(0),d=s.left+o.scrollLeft-l.x-c.x,f=s.top+o.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function dp(e){return Ti(e).position==="static"}function ny(e,t){if(!Fi(e)||Ti(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function iy(e,t){const n=Pn(e);if(Pc(e))return n;if(!Fi(e)){let a=Va(e);for(;a&&!Rs(a);){if(Ei(a)&&!dp(a))return a;a=Va(a)}return n}let i=ny(e,t);for(;i&&I4(i)&&dp(i);)i=ny(i,t);return i&&Rs(i)&&dp(i)&&!sp(i)?n:i||U4(e)||n}const eR=async function(e){const t=this.getOffsetParent||iy,n=this.getDimensions,i=await n(e.floating);return{reference:J4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tR(e){return Ti(e).direction==="rtl"}const nR={convertOffsetParentRelativeRectToViewportRelativeRect:Y4,getDocumentElement:Hi,getClippingRect:W4,getOffsetParent:iy,getElementRects:eR,getClientRects:q4,getDimensions:Z4,getScale:Ds,isElement:Ei,isRTL:tR};function ay(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iR(e,t){let n=null,i;const a=Hi(e);function r(){var o;clearTimeout(i),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),r();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(o||t(),!f||!h)return;const g=Dc(d),b=Dc(a.clientWidth-(c+f)),_=Dc(a.clientHeight-(d+h)),m=Dc(c),x={rootMargin:-g+"px "+-b+"px "+-_+"px "+-m+"px",threshold:In(0,Fa(1,l))||1};let T=!0;function S(A){const D=A[0].intersectionRatio;if(D!==l){if(!T)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!ay(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),r}function aR(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=up(e),c=a||r?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),r&&m.addEventListener("resize",n)});const d=u&&o?iR(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?Br(e):null;l&&_();function _(){const m=Br(e);b&&!ay(b,m)&&n(),b=m,g=requestAnimationFrame(_)}return n(),()=>{var m;c.forEach(y=>{a&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const rR=O4,sR=N4,oR=A4,lR=D4,uR=C4,ry=S4,cR=R4,dR=(e,t,n)=>{const i=new Map,a={platform:nR,...n},r={...a.platform,_c:i};return w4(e,t,{...a,platform:r})};var fR=typeof document<"u",hR=function(){},zc=fR?E.useLayoutEffect:hR;function jc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!jc(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){const r=a[i];if(!(r==="_owner"&&e.$$typeof)&&!jc(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function sy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oy(e,t){const n=sy(e);return Math.round(t*n)/n}function fp(e){const t=E.useRef(e);return zc(()=>{t.current=e}),t}function pR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:r,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=E.useState(i);jc(f,i)||h(i);const[g,b]=E.useState(null),[_,m]=E.useState(null),y=E.useCallback(H=>{H!==A.current&&(A.current=H,b(H))},[]),x=E.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),T=r||g,S=s||_,A=E.useRef(null),D=E.useRef(null),L=E.useRef(c),B=l!=null,O=fp(l),Y=fp(a),U=fp(u),ae=E.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:f};Y.current&&(H.platform=Y.current),dR(A.current,D.current,H).then(te=>{const N={...te,isPositioned:U.current!==!1};ee.current&&!jc(L.current,N)&&(L.current=N,ml.flushSync(()=>{d(N)}))})},[f,t,n,Y,U]);zc(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const ee=E.useRef(!1);zc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),zc(()=>{if(T&&(A.current=T),S&&(D.current=S),T&&S){if(O.current)return O.current(T,S,ae);ae()}},[T,S,ae,O,B]);const Q=E.useMemo(()=>({reference:A,floating:D,setReference:y,setFloating:x}),[y,x]),F=E.useMemo(()=>({reference:T,floating:S}),[T,S]),V=E.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=oy(F.floating,c.x),N=oy(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+N+"px)",...sy(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:N}},[n,o,F.floating,c.x,c.y]);return E.useMemo(()=>({...c,update:ae,refs:Q,elements:F,floatingStyles:V}),[c,ae,Q,F,V])}const mR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:a}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?ry({element:i.current,padding:a}).fn(n):{}:i?ry({element:i,padding:a}).fn(n):{}}}},gR=(e,t)=>({...rR(e),options:[e,t]}),bR=(e,t)=>({...sR(e),options:[e,t]}),vR=(e,t)=>({...cR(e),options:[e,t]}),yR=(e,t)=>({...oR(e),options:[e,t]}),xR=(e,t)=>({...lR(e),options:[e,t]}),_R=(e,t)=>({...uR(e),options:[e,t]}),ER=(e,t)=>({...mR(e),options:[e,t]});var TR="Arrow",ly=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:a=5,...r}=e;return v.jsx(Ln.svg,{...r,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});ly.displayName=TR;var wR=ly;function SR(e){const[t,n]=E.useState(void 0);return zi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[0];let s,o;if("borderBoxSize"in r){const l=r.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var hp="Popper",[uy,Uc]=Oc(hp),[AR,cy]=uy(hp),dy=e=>{const{__scopePopper:t,children:n}=e,[i,a]=E.useState(null);return v.jsx(AR,{scope:t,anchor:i,onAnchorChange:a,children:n})};dy.displayName=hp;var fy="PopperAnchor",hy=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,r=cy(fy,n),s=E.useRef(null),o=Bi(t,s);return E.useEffect(()=>{r.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:v.jsx(Ln.div,{...a,ref:o})});hy.displayName=fy;var pp="PopperContent",[CR,kR]=uy(pp),py=E.forwardRef((e,t)=>{var dn,We,$t,Mt,Ut,Lt;const{__scopePopper:n,side:i="bottom",sideOffset:a=0,align:r="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,_=cy(pp,n),[m,y]=E.useState(null),x=Bi(t,re=>y(re)),[T,S]=E.useState(null),A=SR(T),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,B=i+(r!=="center"?"-"+r:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],U=Y.length>0,ae={padding:O,boundary:Y.filter(NR),altBoundary:U},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=pR({strategy:"fixed",placement:B,whileElementsMounted:(...re)=>aR(...re,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[gR({mainAxis:a+L,alignmentAxis:s}),l&&bR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vR():void 0,...ae}),l&&yR({...ae}),xR({...ae,apply:({elements:re,rects:yi,availableWidth:Li,availableHeight:Ii})=>{const{width:nt,height:fn}=yi.reference,tn=re.floating.style;tn.setProperty("--radix-popper-available-width",`${Li}px`),tn.setProperty("--radix-popper-available-height",`${Ii}px`),tn.setProperty("--radix-popper-anchor-width",`${nt}px`),tn.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),T&&ER({element:T,padding:o}),RR({arrowWidth:D,arrowHeight:L}),f&&_R({strategy:"referenceHidden",...ae})]}),[te,N]=by(F),be=Pr(g);zi(()=>{V&&(be==null||be())},[V,be]);const tt=(dn=H.arrow)==null?void 0:dn.x,M=(We=H.arrow)==null?void 0:We.y,Be=(($t=H.arrow)==null?void 0:$t.centerOffset)!==0,[ge,ze]=E.useState();return zi(()=>{m&&ze(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Mt=H.transformOrigin)==null?void 0:Mt.x,(Ut=H.transformOrigin)==null?void 0:Ut.y].join(" "),...((Lt=H.hide)==null?void 0:Lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(CR,{scope:n,placedSide:te,onArrowChange:S,arrowX:tt,arrowY:M,shouldHideArrow:Be,children:v.jsx(Ln.div,{"data-side":te,"data-align":N,...b,ref:x,style:{...b.style,animation:V?void 0:"none"}})})})});py.displayName=pp;var my="PopperArrow",OR={top:"bottom",right:"left",bottom:"top",left:"right"},gy=E.forwardRef(function(t,n){const{__scopePopper:i,...a}=t,r=kR(my,i),s=OR[r.placedSide];return v.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:v.jsx(wR,{...a,ref:n,style:{...a.style,display:"block"}})})});gy.displayName=my;function NR(e){return e!==null}var RR=e=>({name:"transformOrigin",options:e,fn(t){var _,m,y;const{placement:n,rects:i,middlewareData:a}=t,s=((_=a.arrow)==null?void 0:_.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=by(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=a.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=a.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?d:`${f}px`,b=`${-l}px`):u==="top"?(g=s?d:`${f}px`,b=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?d:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,b=s?d:`${h}px`),{data:{x:g,y:b}}}});function by(e){const[t,n="center"]=e.split("-");return[t,n]}var vy=dy,mp=hy,yy=py,xy=gy;function DR(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var gp=e=>{const{present:t,children:n}=e,i=MR(t),a=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),r=Bi(i.ref,LR(a));return typeof n=="function"||i.isPresent?E.cloneElement(a,{ref:r}):null};gp.displayName="Presence";function MR(e){const[t,n]=E.useState(),i=E.useRef(null),a=E.useRef(e),r=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=DR(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Hc(i.current);r.current=o==="mounted"?u:"none"},[o]),zi(()=>{const u=i.current,c=a.current;if(c!==e){const f=r.current,h=Hc(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),zi(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const b=Hc(i.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!a.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},f=h=>{h.target===t&&(r.current=Hc(i.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function LR(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IR=E1[" useInsertionEffect ".trim().toString()]||zi;function _y({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[a,r,s]=PR({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:a;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${i} is changing from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,i])}const u=E.useCallback(c=>{var d;if(o){const f=BR(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else r(c)},[o,e,r,s]);return[l,u]}function PR({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),a=E.useRef(n),r=E.useRef(t);return IR(()=>{r.current=t},[t]),E.useEffect(()=>{var s;a.current!==n&&((s=r.current)==null||s.call(r,n),a.current=n)},[n,a]),[n,i,r]}function BR(e){return typeof e=="function"}var zR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,Fc=new WeakMap,Vc={},bp=0,Ey=function(e){return e&&(e.host||Ey(e.parentNode))},jR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Ey(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},UR=function(e,t,n,i){var a=jR(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var r=Vc[n],s=[],o=new Set,l=new Set(a),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};a.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(i),g=h!==null&&h!=="false",b=(Ms.get(f)||0)+1,_=(r.get(f)||0)+1;Ms.set(f,b),r.set(f,_),s.push(f),b===1&&g&&Fc.set(f,!0),_===1&&f.setAttribute(n,"true"),g||f.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),o.clear(),bp++,function(){s.forEach(function(d){var f=Ms.get(d)-1,h=r.get(d)-1;Ms.set(d,f),r.set(d,h),f||(Fc.has(d)||d.removeAttribute(i),Fc.delete(d)),h||d.removeAttribute(n)}),bp--,bp||(Ms=new WeakMap,Ms=new WeakMap,Fc=new WeakMap,Vc={})}},HR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=zR(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),UR(i,a,n,"aria-hidden")):function(){return null}},vp=function(e,t){return vp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},vp(e,t)};function Ty(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ni=function(){return ni=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ni.apply(this,arguments)};function Yc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function wy(e,t,n,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(r=(a<3?s(r):a>3?s(t,n,r):s(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function Sy(e,t){return function(n,i){t(n,i,e)}}function Ay(e,t,n,i,a,r){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var g={};for(var b in i)g[b]=b==="access"?{}:i[b];for(var b in i.access)g.access[b]=i.access[b];g.addInitializer=function(m){if(f)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(m||null))};var _=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=s(_.get))&&(c.get=d),(d=s(_.set))&&(c.set=d),(d=s(_.init))&&a.unshift(d)}else(d=s(_))&&(o==="field"?a.unshift(d):c[l]=d)}u&&Object.defineProperty(u,i.name,c),f=!0}function Cy(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function ky(e){return typeof e=="symbol"?e:"".concat(e)}function Oy(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Ny(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ua(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function Ry(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(i=1,a&&(r=u[0]&2?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1],r=u;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(u);break}r[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var qc=Object.create?function(e,t,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]};function Dy(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qc(t,e,n)}function Gc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yp(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),a,r=[],s;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return r}function My(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yp(arguments[t]));return e}function Ly(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<n;t++)for(var r=arguments[t],s=0,o=r.length;s<o;s++,a++)i[a]=r[s];return i}function xp(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,r;i<a;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ls(e){return this instanceof Ls?(this.v=e,this):new Ls(e)}function Iy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),a,r=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),a[Symbol.asyncIterator]=function(){return this},a;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function o(h,g){i[h]&&(a[h]=function(b){return new Promise(function(_,m){r.push([h,b,_,m])>1||l(h,b)})},g&&(a[h]=g(a[h])))}function l(h,g){try{u(i[h](g))}catch(b){f(r[0][3],b)}}function u(h){h.value instanceof Ls?Promise.resolve(h.value.v).then(c,d):f(r[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Py(e){var t,n;return t={},i("next"),i("throw",function(a){throw a}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(a,r){t[a]=e[a]?function(s){return(n=!n)?{value:Ls(e[a](s)),done:!1}:r?r(s):s}:r}}function By(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Gc=="function"?Gc(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(r){n[r]=e[r]&&function(s){return new Promise(function(o,l){s=e[r](s),a(o,l,s.done,s.value)})}}function a(r,s,o,l){Promise.resolve(l).then(function(u){r({value:u,done:o})},s)}}function zy(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var FR=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_p=function(e){return _p=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},_p(e)};function jy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=_p(e),i=0;i<n.length;i++)n[i]!=="default"&&qc(t,e,n[i]);return FR(t,e),t}function Uy(e){return e&&e.__esModule?e:{default:e}}function Hy(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function Fy(e,t,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function Vy(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Yy(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var VR=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function qy(e){function t(r){e.error=e.hasError?new VR(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}var n,i=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var r=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(r).then(a,function(s){return t(s),a()})}else i|=1}catch(s){t(s)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function Gy(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,a,r,s){return i?t?".jsx":".js":a&&(!r||!s)?n:a+r+"."+s.toLowerCase()+"js"}):e}const YR=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Yy,get __assign(){return ni},__asyncDelegator:Py,__asyncGenerator:Iy,__asyncValues:By,__await:Ls,__awaiter:ua,__classPrivateFieldGet:Hy,__classPrivateFieldIn:Vy,__classPrivateFieldSet:Fy,__createBinding:qc,__decorate:wy,__disposeResources:qy,__esDecorate:Ay,__exportStar:Dy,__extends:Ty,__generator:Ry,__importDefault:Uy,__importStar:jy,__makeTemplateObject:zy,__metadata:Ny,__param:Sy,__propKey:ky,__read:yp,__rest:Yc,__rewriteRelativeImportExtension:Gy,__runInitializers:Cy,__setFunctionName:Oy,__spread:My,__spreadArray:xp,__spreadArrays:Ly,__values:Gc,default:{__extends:Ty,__assign:ni,__rest:Yc,__decorate:wy,__param:Sy,__esDecorate:Ay,__runInitializers:Cy,__propKey:ky,__setFunctionName:Oy,__metadata:Ny,__awaiter:ua,__generator:Ry,__createBinding:qc,__exportStar:Dy,__values:Gc,__read:yp,__spread:My,__spreadArrays:Ly,__spreadArray:xp,__await:Ls,__asyncGenerator:Iy,__asyncDelegator:Py,__asyncValues:By,__makeTemplateObject:zy,__importStar:jy,__importDefault:Uy,__classPrivateFieldGet:Hy,__classPrivateFieldSet:Fy,__classPrivateFieldIn:Vy,__addDisposableResource:Yy,__disposeResources:qy,__rewriteRelativeImportExtension:Gy}},Symbol.toStringTag,{value:"Module"}));var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",qR="with-scroll-bars-hidden",GR="--removed-body-scroll-bar-size";function Ep(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $R(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var a=n.value;a!==i&&(n.value=i,n.callback(i,a))}}}})[0];return n.callback=t,n.facade}var XR=typeof window<"u"?E.useLayoutEffect:E.useEffect,$y=new WeakMap;function KR(e,t){var n=$R(null,function(i){return e.forEach(function(a){return Ep(a,i)})});return XR(function(){var i=$y.get(n);if(i){var a=new Set(i),r=new Set(e),s=n.current;a.forEach(function(o){r.has(o)||Ep(o,null)}),r.forEach(function(o){a.has(o)||Ep(o,s)})}$y.set(n,e)},[e]),n}function QR(e){return e}function WR(e,t){t===void 0&&(t=QR);var n=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(r){var s=t(r,i);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(r){for(i=!0;n.length;){var s=n;n=[],s.forEach(r)}n={push:function(o){return r(o)},filter:function(){return n}}},assignMedium:function(r){i=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(r),s=n}var l=function(){var c=s;s=[],c.forEach(r)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return a}function ZR(e){e===void 0&&(e={});var t=WR(null);return t.options=ni({async:!0,ssr:!1},e),t}var Xy=function(e){var t=e.sideCar,n=Yc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return E.createElement(i,ni({},n))};Xy.isSideCarExport=!0;function JR(e,t){return e.useMedium(t),Xy}var Ky=ZR(),Tp=function(){},Kc=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:Tp,onWheelCapture:Tp,onTouchMoveCapture:Tp}),a=i[0],r=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,_=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,x=e.gapMode,T=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=KR([n,t]),D=ni(ni({},T),a);return E.createElement(E.Fragment,null,c&&E.createElement(S,{sideCar:Ky,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:b,setCallbacks:r,allowPinchZoom:!!_,lockRef:n,gapMode:x}),s?E.cloneElement(E.Children.only(o),ni(ni({},D),{ref:A})):E.createElement(y,ni({},D,{className:l,ref:A}),o))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:Xc,zeroRight:$c};var eD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eD();return t&&e.setAttribute("nonce",t),e}function nD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tD())&&(nD(t,n),iD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rD=function(){var e=aD();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Qy=function(){var e=rD(),t=function(n){var i=n.styles,a=n.dynamic;return e(i,a),null};return t},sD={left:0,top:0,right:0,gap:0},wp=function(e){return parseInt(e||"",10)||0},oD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[wp(n),wp(i),wp(a)]},lD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sD;var t=oD(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},uD=Qy(),Is="data-scroll-locked",cD=function(e,t,n,i){var a=e.left,r=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
25
+ */var zN=_;function A1(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ua(){}var gn={d:{f:Ua,r:function(){throw Error(A1(522))},D:Ua,C:Ua,L:Ua,m:Ua,X:Ua,S:Ua,M:Ua},p:0,findDOMNode:null},jN=Symbol.for("react.portal");function UN(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jN,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var pl=zN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gn,mn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(A1(299));return UN(e,t,null,n)},mn.flushSync=function(e){var t=pl.T,n=gn.p;try{if(pl.T=null,gn.p=2,e)return e()}finally{pl.T=t,gn.p=n,gn.d.f()}},mn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,gn.d.C(e,t))},mn.prefetchDNS=function(e){typeof e=="string"&&gn.d.D(e)},mn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?gn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:r}):n==="script"&&gn.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},mn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nc(t.as,t.crossOrigin);gn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&gn.d.M(e)},mn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin);gn.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},mn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nc(t.as,t.crossOrigin);gn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else gn.d.m(e)},mn.requestFormReset=function(e){gn.d.r(e)},mn.unstable_batchedUpdates=function(e,t){return e(t)},mn.useFormState=function(e,t,n){return pl.H.useFormState(e,t,n)},mn.useFormStatus=function(){return pl.H.useHostTransitionStatus()},mn.version="19.1.1";function C1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(C1)}catch(e){console.error(e)}}C1(),S1.exports=mn;var ml=S1.exports;function Kh(e){const t=FN(e),n=_.forwardRef((i,a)=>{const{children:r,...s}=i,o=_.Children.toArray(r),l=o.find(YN);if(l){const u=l.props.children,c=o.map(d=>d===l?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:d);return v.jsx(t,{...s,ref:a,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return v.jsx(t,{...s,ref:a,children:r})});return n.displayName=`${e}.Slot`,n}var HN=Kh("Slot");function FN(e){const t=_.forwardRef((n,i)=>{const{children:a,...r}=n;if(_.isValidElement(a)){const s=GN(a),o=qN(r,a.props);return a.type!==_.Fragment&&(o.ref=i?w1(i,s):s),_.cloneElement(a,o)}return _.Children.count(a)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var k1=Symbol("radix.slottable");function VN(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=k1,t}function YN(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===k1}function qN(e,t){const n={...t};for(const i in t){const a=e[i],r=t[i];/^on[A-Z]/.test(i)?a&&r?n[i]=(...o)=>{const l=r(...o);return a(...o),l}:a&&(n[i]=a):i==="style"?n[i]={...a,...r}:i==="className"&&(n[i]=[a,r].filter(Boolean).join(" "))}return{...e,...n}}function GN(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ln=$N.reduce((e,t)=>{const n=Kh(`Primitive.${t}`),i=_.forwardRef((a,r)=>{const{asChild:s,...o}=a,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(l,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function XN(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}function Pr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function KN(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e);_.useEffect(()=>{const i=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var QN="DismissableLayer",Qh="dismissableLayer.update",WN="dismissableLayer.pointerDownOutside",ZN="dismissableLayer.focusOutside",O1,N1=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wh=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:r,onInteractOutside:s,onDismiss:o,...l}=e,u=_.useContext(N1),[c,d]=_.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=_.useState({}),g=Bi(t,D=>d(D)),b=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(E),y=c?b.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=y>=m,S=t4(D=>{const L=D.target,B=[...u.branches].some(O=>O.contains(L));!T||B||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},f),A=n4(D=>{const L=D.target;[...u.branches].some(O=>O.contains(L))||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},f);return KN(D=>{y===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},f),_.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(O1=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),R1(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=O1)}},[c,f,n,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),R1())},[c,u]),_.useEffect(()=>{const D=()=>h({});return document.addEventListener(Qh,D),()=>document.removeEventListener(Qh,D)},[]),v.jsx(Ln.div,{...l,ref:g,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:_n(e.onFocusCapture,A.onFocusCapture),onBlurCapture:_n(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:_n(e.onPointerDownCapture,S.onPointerDownCapture)})});Wh.displayName=QN;var JN="DismissableLayerBranch",e4=_.forwardRef((e,t)=>{const n=_.useContext(N1),i=_.useRef(null),a=Bi(t,i);return _.useEffect(()=>{const r=i.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),v.jsx(Ln.div,{...e,ref:a})});e4.displayName=JN;function t4(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),i=_.useRef(!1),a=_.useRef(()=>{});return _.useEffect(()=>{const r=o=>{if(o.target&&!i.current){let l=function(){D1(WN,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function n4(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),i=_.useRef(!1);return _.useEffect(()=>{const a=r=>{r.target&&!i.current&&D1(ZN,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function R1(){const e=new CustomEvent(Qh);document.dispatchEvent(e)}function D1(e,t,n,{discrete:i}){const a=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?XN(a,r):a.dispatchEvent(r)}var Zh=0;function i4(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??M1()),document.body.insertAdjacentElement("beforeend",e[1]??M1()),Zh++,()=>{Zh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zh--}},[])}function M1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jh="focusScope.autoFocusOnMount",ep="focusScope.autoFocusOnUnmount",L1={bubbles:!1,cancelable:!0},a4="FocusScope",I1=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:r,...s}=e,[o,l]=_.useState(null),u=Pr(a),c=Pr(r),d=_.useRef(null),f=Bi(t,b=>l(b)),h=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(i){let b=function(x){if(h.paused||!o)return;const T=x.target;o.contains(T)?d.current=T:Ha(d.current,{select:!0})},E=function(x){if(h.paused||!o)return;const T=x.relatedTarget;T!==null&&(o.contains(T)||Ha(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ha(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",E);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",E),y.disconnect()}}},[i,o,h.paused]),_.useEffect(()=>{if(o){z1.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(Jh,L1);o.addEventListener(Jh,u),o.dispatchEvent(m),m.defaultPrevented||(r4(c4(P1(o)),{select:!0}),document.activeElement===b&&Ha(o))}return()=>{o.removeEventListener(Jh,u),setTimeout(()=>{const m=new CustomEvent(ep,L1);o.addEventListener(ep,c),o.dispatchEvent(m),m.defaultPrevented||Ha(b??document.body,{select:!0}),o.removeEventListener(ep,c),z1.remove(h)},0)}}},[o,u,c,h]);const g=_.useCallback(b=>{if(!n&&!i||h.paused)return;const E=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(E&&m){const y=b.currentTarget,[x,T]=s4(y);x&&T?!b.shiftKey&&m===T?(b.preventDefault(),n&&Ha(x,{select:!0})):b.shiftKey&&m===x&&(b.preventDefault(),n&&Ha(T,{select:!0})):m===y&&b.preventDefault()}},[n,i,h.paused]);return v.jsx(Ln.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});I1.displayName=a4;function r4(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ha(i,{select:t}),document.activeElement!==n)return}function s4(e){const t=P1(e),n=B1(t,e),i=B1(t.reverse(),e);return[n,i]}function P1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function B1(e,t){for(const n of e)if(!o4(n,{upTo:t}))return n}function o4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function l4(e){return e instanceof HTMLInputElement&&"select"in e}function Ha(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&l4(e)&&t&&e.select()}}var z1=u4();function u4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=j1(e,t),e.unshift(t)},remove(t){var n;e=j1(e,t),(n=e[0])==null||n.resume()}}}function j1(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function c4(e){return e.filter(t=>t.tagName!=="A")}var zi=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},d4=E1[" useId ".trim().toString()]||(()=>{}),f4=0;function U1(e){const[t,n]=_.useState(d4());return zi(()=>{n(i=>i??String(f4++))},[e]),e||(t?`radix-${t}`:"")}const h4=["top","right","bottom","left"],Fa=Math.min,In=Math.max,Rc=Math.round,Dc=Math.floor,ji=e=>({x:e,y:e}),p4={left:"right",right:"left",bottom:"top",top:"bottom"},m4={start:"end",end:"start"};function tp(e,t,n){return In(e,Fa(t,n))}function oa(e,t){return typeof e=="function"?e(t):e}function la(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}const g4=new Set(["top","bottom"]);function Ui(e){return g4.has(la(e))?"y":"x"}function ap(e){return np(Ui(e))}function b4(e,t,n){n===void 0&&(n=!1);const i=Os(e),a=ap(e),r=ip(a);let s=a==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Mc(s)),[s,Mc(s)]}function v4(e){const t=Mc(e);return[rp(e),t,rp(t)]}function rp(e){return e.replace(/start|end/g,t=>m4[t])}const H1=["left","right"],F1=["right","left"],y4=["top","bottom"],x4=["bottom","top"];function _4(e,t,n){switch(e){case"top":case"bottom":return n?t?F1:H1:t?H1:F1;case"left":case"right":return t?y4:x4;default:return[]}}function E4(e,t,n,i){const a=Os(e);let r=_4(la(e),n==="start",i);return a&&(r=r.map(s=>s+"-"+a),t&&(r=r.concat(r.map(rp)))),r}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>p4[t])}function T4(e){return{top:0,right:0,bottom:0,left:0,...e}}function V1(e){return typeof e!="number"?T4(e):{top:e,right:e,bottom:e,left:e}}function Lc(e){const{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function Y1(e,t,n){let{reference:i,floating:a}=e;const r=Ui(t),s=ap(t),o=ip(s),l=la(t),u=r==="y",c=i.x+i.width/2-a.width/2,d=i.y+i.height/2-a.height/2,f=i[o]/2-a[o]/2;let h;switch(l){case"top":h={x:c,y:i.y-a.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-a.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Os(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const w4=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:r=[],platform:s}=n,o=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=Y1(u,i,l),f=i,h={},g=0;for(let b=0;b<o.length;b++){const{name:E,fn:m}=o[b],{x:y,y:x,data:T,reset:S}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:a,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,d=x??d,h={...h,[E]:{...h[E],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:c,y:d}=Y1(u,f,l)),b=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}};async function gl(e,t){var n;t===void 0&&(t={});const{x:i,y:a,platform:r,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=oa(t,e),g=V1(h),E=o[f?d==="floating"?"reference":"floating":d],m=Lc(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(E)))==null||n?E:E.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),T=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Lc(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:x,strategy:l}):y);return{top:(m.top-S.top+g.top)/T.y,bottom:(S.bottom-m.bottom+g.bottom)/T.y,left:(m.left-S.left+g.left)/T.x,right:(S.right-m.right+g.right)/T.x}}const S4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:r,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=oa(e,t)||{};if(u==null)return{};const d=V1(c),f={x:n,y:i},h=ap(a),g=ip(h),b=await s.getDimensions(u),E=h==="y",m=E?"top":"left",y=E?"bottom":"right",x=E?"clientHeight":"clientWidth",T=r.reference[g]+r.reference[h]-f[h]-r.floating[g],S=f[h]-r.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[x]||r.floating[g]);const L=T/2-S/2,B=D/2-b[g]/2-1,O=Fa(d[m],B),Y=Fa(d[y],B),U=O,ae=D-b[g]-Y,ee=D/2-b[g]/2+L,Q=tp(U,ee,ae),F=!l.arrow&&Os(a)!=null&&ee!==Q&&r.reference[g]/2-(ee<U?O:Y)-b[g]/2<0,V=F?ee<U?ee-U:ee-ae:0;return{[h]:f[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),A4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:r,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...E}=oa(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const m=la(a),y=Ui(o),x=la(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(x||!b?[Mc(o)]:v4(o)),A=g!=="none";!f&&A&&S.push(...E4(o,b,g,T));const D=[o,...S],L=await gl(t,E),B=[];let O=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),d){const ee=b4(a,s,T);B.push(L[ee[0]],L[ee[1]])}if(O=[...O,{placement:a,overflows:B}],!B.every(ee=>ee<=0)){var Y,U;const ee=(((Y=r.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(d==="alignment"?y!==Ui(Q):!1)||O.every(H=>Ui(H.placement)===y?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:O},reset:{placement:Q}};let F=(U=O.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(h){case"bestFit":{var ae;const V=(ae=O.filter(H=>{if(A){const te=Ui(H.placement);return te===y||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,N)=>te+N,0)]).sort((H,te)=>H[1]-te[1])[0])==null?void 0:ae[0];V&&(F=V);break}case"initialPlacement":F=o;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function q1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G1(e){return h4.some(t=>e[t]>=0)}const C4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...a}=oa(e,t);switch(i){case"referenceHidden":{const r=await gl(t,{...a,elementContext:"reference"}),s=q1(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:G1(s)}}}case"escaped":{const r=await gl(t,{...a,altBoundary:!0}),s=q1(r,n.floating);return{data:{escapedOffsets:s,escaped:G1(s)}}}default:return{}}}}},$1=new Set(["left","top"]);async function k4(e,t){const{placement:n,platform:i,elements:a}=e,r=await(i.isRTL==null?void 0:i.isRTL(a.floating)),s=la(n),o=Os(n),l=Ui(n)==="y",u=$1.has(s)?-1:1,c=r&&l?-1:1,d=oa(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const O4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:r,placement:s,middlewareData:o}=t,l=await k4(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(i=o.arrow)!=null&&i.alignmentOffset?{}:{x:a+l.x,y:r+l.y,data:{...l,placement:s}}}}},N4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:o={fn:E=>{let{x:m,y}=E;return{x:m,y}}},...l}=oa(e,t),u={x:n,y:i},c=await gl(t,l),d=Ui(la(a)),f=np(d);let h=u[f],g=u[d];if(r){const E=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=h+c[E],x=h-c[m];h=tp(y,h,x)}if(s){const E=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=g+c[E],x=g-c[m];g=tp(y,g,x)}const b=o.fn({...t,[f]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[f]:r,[d]:s}}}}}},R4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:r,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=oa(e,t),c={x:n,y:i},d=Ui(a),f=np(d);let h=c[f],g=c[d];const b=oa(o,t),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=f==="y"?"height":"width",T=r.reference[f]-r.floating[x]+E.mainAxis,S=r.reference[f]+r.reference[x]-E.mainAxis;h<T?h=T:h>S&&(h=S)}if(u){var m,y;const x=f==="y"?"width":"height",T=$1.has(la(a)),S=r.reference[d]-r.floating[x]+(T&&((m=s.offset)==null?void 0:m[d])||0)+(T?0:E.crossAxis),A=r.reference[d]+r.reference[x]+(T?0:((y=s.offset)==null?void 0:y[d])||0)-(T?E.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[d]:g}}}},D4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:a,rects:r,platform:s,elements:o}=t,{apply:l=()=>{},...u}=oa(e,t),c=await gl(t,u),d=la(a),f=Os(a),h=Ui(a)==="y",{width:g,height:b}=r.floating;let E,m;d==="top"||d==="bottom"?(E=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=d,E=f==="end"?"top":"bottom");const y=b-c.top-c.bottom,x=g-c.left-c.right,T=Fa(b-c[E],y),S=Fa(g-c[m],x),A=!t.middlewareData.shift;let D=T,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=y),A&&!f){const O=In(c.left,0),Y=In(c.right,0),U=In(c.top,0),ae=In(c.bottom,0);h?L=g-2*(O!==0||Y!==0?O+Y:In(c.left,c.right)):D=b-2*(U!==0||ae!==0?U+ae:In(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:D});const B=await s.getDimensions(o.floating);return g!==B.width||b!==B.height?{reset:{rects:!0}}:{}}}};function Ic(){return typeof window<"u"}function Ns(e){return X1(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=(X1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X1(e){return Ic()?e instanceof Node||e instanceof Pn(e).Node:!1}function Ei(e){return Ic()?e instanceof Element||e instanceof Pn(e).Element:!1}function Fi(e){return Ic()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function K1(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const M4=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:n,overflowY:i,display:a}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!M4.has(a)}const L4=new Set(["table","td","th"]);function I4(e){return L4.has(Ns(e))}const P4=[":popover-open",":modal"];function Pc(e){return P4.some(t=>{try{return e.matches(t)}catch{return!1}})}const B4=["transform","translate","scale","rotate","perspective"],z4=["transform","translate","scale","rotate","perspective","filter"],j4=["paint","layout","strict","content"];function sp(e){const t=op(),n=Ei(e)?Ti(e):e;return B4.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||z4.some(i=>(n.willChange||"").includes(i))||j4.some(i=>(n.contain||"").includes(i))}function U4(e){let t=Va(e);for(;Fi(t)&&!Rs(t);){if(sp(t))return t;if(Pc(t))return null;t=Va(t)}return null}function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const H4=new Set(["html","body","#document"]);function Rs(e){return H4.has(Ns(e))}function Ti(e){return Pn(e).getComputedStyle(e)}function Bc(e){return Ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Va(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||K1(e)&&e.host||Hi(e);return K1(t)?t.host:t}function Q1(e){const t=Va(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fi(t)&&bl(t)?t:Q1(t)}function vl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Q1(e),r=a===((i=e.ownerDocument)==null?void 0:i.body),s=Pn(a);if(r){const o=lp(s);return t.concat(s,s.visualViewport||[],bl(a)?a:[],o&&n?vl(o):[])}return t.concat(a,vl(a,[],n))}function lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function W1(e){const t=Ti(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Fi(e),r=a?e.offsetWidth:n,s=a?e.offsetHeight:i,o=Rc(n)!==r||Rc(i)!==s;return o&&(n=r,i=s),{width:n,height:i,$:o}}function up(e){return Ei(e)?e:e.contextElement}function Ds(e){const t=up(e);if(!Fi(t))return ji(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:r}=W1(t);let s=(r?Rc(n.width):n.width)/i,o=(r?Rc(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const F4=ji(0);function Z1(e){const t=Pn(e);return!op()||!t.visualViewport?F4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function Br(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),r=up(e);let s=ji(1);t&&(i?Ei(i)&&(s=Ds(i)):s=Ds(e));const o=V4(r,n,i)?Z1(r):ji(0);let l=(a.left+o.x)/s.x,u=(a.top+o.y)/s.y,c=a.width/s.x,d=a.height/s.y;if(r){const f=Pn(r),h=i&&Ei(i)?Pn(i):i;let g=f,b=lp(g);for(;b&&i&&h!==g;){const E=Ds(b),m=b.getBoundingClientRect(),y=Ti(b),x=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*E.x,T=m.top+(b.clientTop+parseFloat(y.paddingTop))*E.y;l*=E.x,u*=E.y,c*=E.x,d*=E.y,l+=x,u+=T,g=Pn(b),b=lp(g)}}return Lc({width:c,height:d,x:l,y:u})}function cp(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:Br(Hi(e)).left+n}function J1(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=i.left+t.scrollLeft-(n?0:cp(e,i)),r=i.top+t.scrollTop;return{x:a,y:r}}function Y4(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const r=a==="fixed",s=Hi(i),o=t?Pc(t.floating):!1;if(i===s||o&&r)return n;let l={scrollLeft:0,scrollTop:0},u=ji(1);const c=ji(0),d=Fi(i);if((d||!d&&!r)&&((Ns(i)!=="body"||bl(s))&&(l=Bc(i)),Fi(i))){const h=Br(i);u=Ds(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const f=s&&!d&&!r?J1(s,l,!0):ji(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function q4(e){return Array.from(e.getClientRects())}function G4(e){const t=Hi(e),n=Bc(e),i=e.ownerDocument.body,a=In(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=In(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+cp(e);const o=-n.scrollTop;return Ti(i).direction==="rtl"&&(s+=In(t.clientWidth,i.clientWidth)-a),{width:a,height:r,x:s,y:o}}function $4(e,t){const n=Pn(e),i=Hi(e),a=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,o=0,l=0;if(a){r=a.width,s=a.height;const u=op();(!u||u&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:s,x:o,y:l}}const X4=new Set(["absolute","fixed"]);function K4(e,t){const n=Br(e,!0,t==="fixed"),i=n.top+e.clientTop,a=n.left+e.clientLeft,r=Fi(e)?Ds(e):ji(1),s=e.clientWidth*r.x,o=e.clientHeight*r.y,l=a*r.x,u=i*r.y;return{width:s,height:o,x:l,y:u}}function ey(e,t,n){let i;if(t==="viewport")i=$4(e,n);else if(t==="document")i=G4(Hi(e));else if(Ei(t))i=K4(t,n);else{const a=Z1(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Lc(i)}function ty(e,t){const n=Va(e);return n===t||!Ei(n)||Rs(n)?!1:Ti(n).position==="fixed"||ty(n,t)}function Q4(e,t){const n=t.get(e);if(n)return n;let i=vl(e,[],!1).filter(o=>Ei(o)&&Ns(o)!=="body"),a=null;const r=Ti(e).position==="fixed";let s=r?Va(e):e;for(;Ei(s)&&!Rs(s);){const o=Ti(s),l=sp(s);!l&&o.position==="fixed"&&(a=null),(r?!l&&!a:!l&&o.position==="static"&&!!a&&X4.has(a.position)||bl(s)&&!l&&ty(e,s))?i=i.filter(c=>c!==s):a=o,s=Va(s)}return t.set(e,i),i}function W4(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const s=[...n==="clippingAncestors"?Pc(t)?[]:Q4(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const d=ey(t,c,a);return u.top=In(d.top,u.top),u.right=Fa(d.right,u.right),u.bottom=Fa(d.bottom,u.bottom),u.left=In(d.left,u.left),u},ey(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z4(e){const{width:t,height:n}=W1(e);return{width:t,height:n}}function J4(e,t,n){const i=Fi(t),a=Hi(t),r=n==="fixed",s=Br(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const l=ji(0);function u(){l.x=cp(a)}if(i||!i&&!r)if((Ns(t)!=="body"||bl(a))&&(o=Bc(t)),i){const h=Br(t,!0,r,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&u();r&&!i&&a&&u();const c=a&&!i&&!r?J1(a,o):ji(0),d=s.left+o.scrollLeft-l.x-c.x,f=s.top+o.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function dp(e){return Ti(e).position==="static"}function ny(e,t){if(!Fi(e)||Ti(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function iy(e,t){const n=Pn(e);if(Pc(e))return n;if(!Fi(e)){let a=Va(e);for(;a&&!Rs(a);){if(Ei(a)&&!dp(a))return a;a=Va(a)}return n}let i=ny(e,t);for(;i&&I4(i)&&dp(i);)i=ny(i,t);return i&&Rs(i)&&dp(i)&&!sp(i)?n:i||U4(e)||n}const eR=async function(e){const t=this.getOffsetParent||iy,n=this.getDimensions,i=await n(e.floating);return{reference:J4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function tR(e){return Ti(e).direction==="rtl"}const nR={convertOffsetParentRelativeRectToViewportRelativeRect:Y4,getDocumentElement:Hi,getClippingRect:W4,getOffsetParent:iy,getElementRects:eR,getClientRects:q4,getDimensions:Z4,getScale:Ds,isElement:Ei,isRTL:tR};function ay(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iR(e,t){let n=null,i;const a=Hi(e);function r(){var o;clearTimeout(i),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),r();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(o||t(),!f||!h)return;const g=Dc(d),b=Dc(a.clientWidth-(c+f)),E=Dc(a.clientHeight-(d+h)),m=Dc(c),x={rootMargin:-g+"px "+-b+"px "+-E+"px "+-m+"px",threshold:In(0,Fa(1,l))||1};let T=!0;function S(A){const D=A[0].intersectionRatio;if(D!==l){if(!T)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!ay(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),r}function aR(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=up(e),c=a||r?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),r&&m.addEventListener("resize",n)});const d=u&&o?iR(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?Br(e):null;l&&E();function E(){const m=Br(e);b&&!ay(b,m)&&n(),b=m,g=requestAnimationFrame(E)}return n(),()=>{var m;c.forEach(y=>{a&&y.removeEventListener("scroll",n),r&&y.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const rR=O4,sR=N4,oR=A4,lR=D4,uR=C4,ry=S4,cR=R4,dR=(e,t,n)=>{const i=new Map,a={platform:nR,...n},r={...a.platform,_c:i};return w4(e,t,{...a,platform:r})};var fR=typeof document<"u",hR=function(){},zc=fR?_.useLayoutEffect:hR;function jc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!jc(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){const r=a[i];if(!(r==="_owner"&&e.$$typeof)&&!jc(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function sy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oy(e,t){const n=sy(e);return Math.round(t*n)/n}function fp(e){const t=_.useRef(e);return zc(()=>{t.current=e}),t}function pR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:r,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(i);jc(f,i)||h(i);const[g,b]=_.useState(null),[E,m]=_.useState(null),y=_.useCallback(H=>{H!==A.current&&(A.current=H,b(H))},[]),x=_.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),T=r||g,S=s||E,A=_.useRef(null),D=_.useRef(null),L=_.useRef(c),B=l!=null,O=fp(l),Y=fp(a),U=fp(u),ae=_.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:f};Y.current&&(H.platform=Y.current),dR(A.current,D.current,H).then(te=>{const N={...te,isPositioned:U.current!==!1};ee.current&&!jc(L.current,N)&&(L.current=N,ml.flushSync(()=>{d(N)}))})},[f,t,n,Y,U]);zc(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const ee=_.useRef(!1);zc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),zc(()=>{if(T&&(A.current=T),S&&(D.current=S),T&&S){if(O.current)return O.current(T,S,ae);ae()}},[T,S,ae,O,B]);const Q=_.useMemo(()=>({reference:A,floating:D,setReference:y,setFloating:x}),[y,x]),F=_.useMemo(()=>({reference:T,floating:S}),[T,S]),V=_.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=oy(F.floating,c.x),N=oy(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+N+"px)",...sy(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:N}},[n,o,F.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:ae,refs:Q,elements:F,floatingStyles:V}),[c,ae,Q,F,V])}const mR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:a}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?ry({element:i.current,padding:a}).fn(n):{}:i?ry({element:i,padding:a}).fn(n):{}}}},gR=(e,t)=>({...rR(e),options:[e,t]}),bR=(e,t)=>({...sR(e),options:[e,t]}),vR=(e,t)=>({...cR(e),options:[e,t]}),yR=(e,t)=>({...oR(e),options:[e,t]}),xR=(e,t)=>({...lR(e),options:[e,t]}),_R=(e,t)=>({...uR(e),options:[e,t]}),ER=(e,t)=>({...mR(e),options:[e,t]});var TR="Arrow",ly=_.forwardRef((e,t)=>{const{children:n,width:i=10,height:a=5,...r}=e;return v.jsx(Ln.svg,{...r,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});ly.displayName=TR;var wR=ly;function SR(e){const[t,n]=_.useState(void 0);return zi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[0];let s,o;if("borderBoxSize"in r){const l=r.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var hp="Popper",[uy,Uc]=Oc(hp),[AR,cy]=uy(hp),dy=e=>{const{__scopePopper:t,children:n}=e,[i,a]=_.useState(null);return v.jsx(AR,{scope:t,anchor:i,onAnchorChange:a,children:n})};dy.displayName=hp;var fy="PopperAnchor",hy=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,r=cy(fy,n),s=_.useRef(null),o=Bi(t,s);return _.useEffect(()=>{r.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:v.jsx(Ln.div,{...a,ref:o})});hy.displayName=fy;var pp="PopperContent",[CR,kR]=uy(pp),py=_.forwardRef((e,t)=>{var dn,We,$t,Mt,Ut,Lt;const{__scopePopper:n,side:i="bottom",sideOffset:a=0,align:r="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,E=cy(pp,n),[m,y]=_.useState(null),x=Bi(t,re=>y(re)),[T,S]=_.useState(null),A=SR(T),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,B=i+(r!=="center"?"-"+r:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],U=Y.length>0,ae={padding:O,boundary:Y.filter(NR),altBoundary:U},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=pR({strategy:"fixed",placement:B,whileElementsMounted:(...re)=>aR(...re,{animationFrame:h==="always"}),elements:{reference:E.anchor},middleware:[gR({mainAxis:a+L,alignmentAxis:s}),l&&bR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?vR():void 0,...ae}),l&&yR({...ae}),xR({...ae,apply:({elements:re,rects:yi,availableWidth:Li,availableHeight:Ii})=>{const{width:nt,height:fn}=yi.reference,tn=re.floating.style;tn.setProperty("--radix-popper-available-width",`${Li}px`),tn.setProperty("--radix-popper-available-height",`${Ii}px`),tn.setProperty("--radix-popper-anchor-width",`${nt}px`),tn.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),T&&ER({element:T,padding:o}),RR({arrowWidth:D,arrowHeight:L}),f&&_R({strategy:"referenceHidden",...ae})]}),[te,N]=by(F),be=Pr(g);zi(()=>{V&&(be==null||be())},[V,be]);const tt=(dn=H.arrow)==null?void 0:dn.x,M=(We=H.arrow)==null?void 0:We.y,Be=(($t=H.arrow)==null?void 0:$t.centerOffset)!==0,[ge,ze]=_.useState();return zi(()=>{m&&ze(window.getComputedStyle(m).zIndex)},[m]),v.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Mt=H.transformOrigin)==null?void 0:Mt.x,(Ut=H.transformOrigin)==null?void 0:Ut.y].join(" "),...((Lt=H.hide)==null?void 0:Lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(CR,{scope:n,placedSide:te,onArrowChange:S,arrowX:tt,arrowY:M,shouldHideArrow:Be,children:v.jsx(Ln.div,{"data-side":te,"data-align":N,...b,ref:x,style:{...b.style,animation:V?void 0:"none"}})})})});py.displayName=pp;var my="PopperArrow",OR={top:"bottom",right:"left",bottom:"top",left:"right"},gy=_.forwardRef(function(t,n){const{__scopePopper:i,...a}=t,r=kR(my,i),s=OR[r.placedSide];return v.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:v.jsx(wR,{...a,ref:n,style:{...a.style,display:"block"}})})});gy.displayName=my;function NR(e){return e!==null}var RR=e=>({name:"transformOrigin",options:e,fn(t){var E,m,y;const{placement:n,rects:i,middlewareData:a}=t,s=((E=a.arrow)==null?void 0:E.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=by(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=a.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=a.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?d:`${f}px`,b=`${-l}px`):u==="top"?(g=s?d:`${f}px`,b=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?d:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,b=s?d:`${h}px`),{data:{x:g,y:b}}}});function by(e){const[t,n="center"]=e.split("-");return[t,n]}var vy=dy,mp=hy,yy=py,xy=gy;function DR(e,t){return _.useReducer((n,i)=>t[n][i]??n,e)}var gp=e=>{const{present:t,children:n}=e,i=MR(t),a=typeof n=="function"?n({present:i.isPresent}):_.Children.only(n),r=Bi(i.ref,LR(a));return typeof n=="function"||i.isPresent?_.cloneElement(a,{ref:r}):null};gp.displayName="Presence";function MR(e){const[t,n]=_.useState(),i=_.useRef(null),a=_.useRef(e),r=_.useRef("none"),s=e?"mounted":"unmounted",[o,l]=DR(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Hc(i.current);r.current=o==="mounted"?u:"none"},[o]),zi(()=>{const u=i.current,c=a.current;if(c!==e){const f=r.current,h=Hc(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),zi(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const b=Hc(i.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},f=h=>{h.target===t&&(r.current=Hc(i.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:_.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function LR(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IR=E1[" useInsertionEffect ".trim().toString()]||zi;function _y({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[a,r,s]=PR({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:a;{const c=_.useRef(e!==void 0);_.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${i} is changing from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,i])}const u=_.useCallback(c=>{var d;if(o){const f=BR(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else r(c)},[o,e,r,s]);return[l,u]}function PR({defaultProp:e,onChange:t}){const[n,i]=_.useState(e),a=_.useRef(n),r=_.useRef(t);return IR(()=>{r.current=t},[t]),_.useEffect(()=>{var s;a.current!==n&&((s=r.current)==null||s.call(r,n),a.current=n)},[n,a]),[n,i,r]}function BR(e){return typeof e=="function"}var zR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,Fc=new WeakMap,Vc={},bp=0,Ey=function(e){return e&&(e.host||Ey(e.parentNode))},jR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Ey(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},UR=function(e,t,n,i){var a=jR(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var r=Vc[n],s=[],o=new Set,l=new Set(a),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};a.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(i),g=h!==null&&h!=="false",b=(Ms.get(f)||0)+1,E=(r.get(f)||0)+1;Ms.set(f,b),r.set(f,E),s.push(f),b===1&&g&&Fc.set(f,!0),E===1&&f.setAttribute(n,"true"),g||f.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),o.clear(),bp++,function(){s.forEach(function(d){var f=Ms.get(d)-1,h=r.get(d)-1;Ms.set(d,f),r.set(d,h),f||(Fc.has(d)||d.removeAttribute(i),Fc.delete(d)),h||d.removeAttribute(n)}),bp--,bp||(Ms=new WeakMap,Ms=new WeakMap,Fc=new WeakMap,Vc={})}},HR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=zR(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),UR(i,a,n,"aria-hidden")):function(){return null}},vp=function(e,t){return vp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},vp(e,t)};function Ty(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ni=function(){return ni=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ni.apply(this,arguments)};function Yc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function wy(e,t,n,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(r=(a<3?s(r):a>3?s(t,n,r):s(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function Sy(e,t){return function(n,i){t(n,i,e)}}function Ay(e,t,n,i,a,r){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var g={};for(var b in i)g[b]=b==="access"?{}:i[b];for(var b in i.access)g.access[b]=i.access[b];g.addInitializer=function(m){if(f)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(m||null))};var E=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(d=s(E.get))&&(c.get=d),(d=s(E.set))&&(c.set=d),(d=s(E.init))&&a.unshift(d)}else(d=s(E))&&(o==="field"?a.unshift(d):c[l]=d)}u&&Object.defineProperty(u,i.name,c),f=!0}function Cy(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function ky(e){return typeof e=="symbol"?e:"".concat(e)}function Oy(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Ny(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ua(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function Ry(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(i=1,a&&(r=u[0]&2?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1],r=u;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(u);break}r[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var qc=Object.create?function(e,t,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]};function Dy(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qc(t,e,n)}function Gc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function yp(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),a,r=[],s;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return r}function My(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yp(arguments[t]));return e}function Ly(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<n;t++)for(var r=arguments[t],s=0,o=r.length;s<o;s++,a++)i[a]=r[s];return i}function xp(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,r;i<a;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Ls(e){return this instanceof Ls?(this.v=e,this):new Ls(e)}function Iy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),a,r=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),a[Symbol.asyncIterator]=function(){return this},a;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function o(h,g){i[h]&&(a[h]=function(b){return new Promise(function(E,m){r.push([h,b,E,m])>1||l(h,b)})},g&&(a[h]=g(a[h])))}function l(h,g){try{u(i[h](g))}catch(b){f(r[0][3],b)}}function u(h){h.value instanceof Ls?Promise.resolve(h.value.v).then(c,d):f(r[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Py(e){var t,n;return t={},i("next"),i("throw",function(a){throw a}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(a,r){t[a]=e[a]?function(s){return(n=!n)?{value:Ls(e[a](s)),done:!1}:r?r(s):s}:r}}function By(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Gc=="function"?Gc(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(r){n[r]=e[r]&&function(s){return new Promise(function(o,l){s=e[r](s),a(o,l,s.done,s.value)})}}function a(r,s,o,l){Promise.resolve(l).then(function(u){r({value:u,done:o})},s)}}function zy(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var FR=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_p=function(e){return _p=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},_p(e)};function jy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=_p(e),i=0;i<n.length;i++)n[i]!=="default"&&qc(t,e,n[i]);return FR(t,e),t}function Uy(e){return e&&e.__esModule?e:{default:e}}function Hy(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function Fy(e,t,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function Vy(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Yy(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var VR=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function qy(e){function t(r){e.error=e.hasError?new VR(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}var n,i=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var r=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(r).then(a,function(s){return t(s),a()})}else i|=1}catch(s){t(s)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function Gy(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,a,r,s){return i?t?".jsx":".js":a&&(!r||!s)?n:a+r+"."+s.toLowerCase()+"js"}):e}const YR=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Yy,get __assign(){return ni},__asyncDelegator:Py,__asyncGenerator:Iy,__asyncValues:By,__await:Ls,__awaiter:ua,__classPrivateFieldGet:Hy,__classPrivateFieldIn:Vy,__classPrivateFieldSet:Fy,__createBinding:qc,__decorate:wy,__disposeResources:qy,__esDecorate:Ay,__exportStar:Dy,__extends:Ty,__generator:Ry,__importDefault:Uy,__importStar:jy,__makeTemplateObject:zy,__metadata:Ny,__param:Sy,__propKey:ky,__read:yp,__rest:Yc,__rewriteRelativeImportExtension:Gy,__runInitializers:Cy,__setFunctionName:Oy,__spread:My,__spreadArray:xp,__spreadArrays:Ly,__values:Gc,default:{__extends:Ty,__assign:ni,__rest:Yc,__decorate:wy,__param:Sy,__esDecorate:Ay,__runInitializers:Cy,__propKey:ky,__setFunctionName:Oy,__metadata:Ny,__awaiter:ua,__generator:Ry,__createBinding:qc,__exportStar:Dy,__values:Gc,__read:yp,__spread:My,__spreadArrays:Ly,__spreadArray:xp,__await:Ls,__asyncGenerator:Iy,__asyncDelegator:Py,__asyncValues:By,__makeTemplateObject:zy,__importStar:jy,__importDefault:Uy,__classPrivateFieldGet:Hy,__classPrivateFieldSet:Fy,__classPrivateFieldIn:Vy,__addDisposableResource:Yy,__disposeResources:qy,__rewriteRelativeImportExtension:Gy}},Symbol.toStringTag,{value:"Module"}));var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",qR="with-scroll-bars-hidden",GR="--removed-body-scroll-bar-size";function Ep(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $R(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var a=n.value;a!==i&&(n.value=i,n.callback(i,a))}}}})[0];return n.callback=t,n.facade}var XR=typeof window<"u"?_.useLayoutEffect:_.useEffect,$y=new WeakMap;function KR(e,t){var n=$R(null,function(i){return e.forEach(function(a){return Ep(a,i)})});return XR(function(){var i=$y.get(n);if(i){var a=new Set(i),r=new Set(e),s=n.current;a.forEach(function(o){r.has(o)||Ep(o,null)}),r.forEach(function(o){a.has(o)||Ep(o,s)})}$y.set(n,e)},[e]),n}function QR(e){return e}function WR(e,t){t===void 0&&(t=QR);var n=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(r){var s=t(r,i);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(r){for(i=!0;n.length;){var s=n;n=[],s.forEach(r)}n={push:function(o){return r(o)},filter:function(){return n}}},assignMedium:function(r){i=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(r),s=n}var l=function(){var c=s;s=[],c.forEach(r)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return a}function ZR(e){e===void 0&&(e={});var t=WR(null);return t.options=ni({async:!0,ssr:!1},e),t}var Xy=function(e){var t=e.sideCar,n=Yc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return _.createElement(i,ni({},n))};Xy.isSideCarExport=!0;function JR(e,t){return e.useMedium(t),Xy}var Ky=ZR(),Tp=function(){},Kc=_.forwardRef(function(e,t){var n=_.useRef(null),i=_.useState({onScrollCapture:Tp,onWheelCapture:Tp,onTouchMoveCapture:Tp}),a=i[0],r=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,E=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,x=e.gapMode,T=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=KR([n,t]),D=ni(ni({},T),a);return _.createElement(_.Fragment,null,c&&_.createElement(S,{sideCar:Ky,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:b,setCallbacks:r,allowPinchZoom:!!E,lockRef:n,gapMode:x}),s?_.cloneElement(_.Children.only(o),ni(ni({},D),{ref:A})):_.createElement(y,ni({},D,{className:l,ref:A}),o))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:Xc,zeroRight:$c};var eD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eD();return t&&e.setAttribute("nonce",t),e}function nD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function iD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var aD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=tD())&&(nD(t,n),iD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rD=function(){var e=aD();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Qy=function(){var e=rD(),t=function(n){var i=n.styles,a=n.dynamic;return e(i,a),null};return t},sD={left:0,top:0,right:0,gap:0},wp=function(e){return parseInt(e||"",10)||0},oD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[wp(n),wp(i),wp(a)]},lD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sD;var t=oD(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},uD=Qy(),Is="data-scroll-locked",cD=function(e,t,n,i){var a=e.left,r=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
26
26
  .`.concat(qR,` {
27
27
  overflow: hidden `).concat(i,`;
28
28
  padding-right: `).concat(o,"px ").concat(i,`;
@@ -59,13 +59,13 @@
59
59
  body[`).concat(Is,`] {
60
60
  `).concat(GR,": ").concat(o,`px;
61
61
  }
62
- `)},Wy=function(){var e=parseInt(document.body.getAttribute(Is)||"0",10);return isFinite(e)?e:0},dD=function(){E.useEffect(function(){return document.body.setAttribute(Is,(Wy()+1).toString()),function(){var e=Wy()-1;e<=0?document.body.removeAttribute(Is):document.body.setAttribute(Is,e.toString())}},[])},fD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;dD();var r=E.useMemo(function(){return lD(a)},[a]);return E.createElement(uD,{styles:cD(r,!t,a,n?"":"!important")})},Sp=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{Sp=!1}var Ps=Sp?{passive:!1}:!1,hD=function(e){return e.tagName==="TEXTAREA"},Zy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hD(e)&&n[t]==="visible")},pD=function(e){return Zy(e,"overflowY")},mD=function(e){return Zy(e,"overflowX")},Jy=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=ex(e,i);if(a){var r=tx(e,i),s=r[1],o=r[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},gD=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},bD=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},ex=function(e,t){return e==="v"?pD(t):mD(t)},tx=function(e,t){return e==="v"?gD(t):bD(t)},vD=function(e,t){return e==="h"&&t==="rtl"?-1:1},yD=function(e,t,n,i,a){var r=vD(e,window.getComputedStyle(t).direction),s=r*i,o=n.target,l=t.contains(o),u=!1,c=s>0,d=0,f=0;do{if(!o)break;var h=tx(e,o),g=h[0],b=h[1],_=h[2],m=b-_-r*g;(g||m)&&ex(e,o)&&(d+=m,f+=g);var y=o.parentNode;o=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nx=function(e){return[e.deltaX,e.deltaY]},ix=function(e){return e&&"current"in e?e.current:e},xD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_D=function(e){return`
62
+ `)},Wy=function(){var e=parseInt(document.body.getAttribute(Is)||"0",10);return isFinite(e)?e:0},dD=function(){_.useEffect(function(){return document.body.setAttribute(Is,(Wy()+1).toString()),function(){var e=Wy()-1;e<=0?document.body.removeAttribute(Is):document.body.setAttribute(Is,e.toString())}},[])},fD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;dD();var r=_.useMemo(function(){return lD(a)},[a]);return _.createElement(uD,{styles:cD(r,!t,a,n?"":"!important")})},Sp=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{Sp=!1}var Ps=Sp?{passive:!1}:!1,hD=function(e){return e.tagName==="TEXTAREA"},Zy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hD(e)&&n[t]==="visible")},pD=function(e){return Zy(e,"overflowY")},mD=function(e){return Zy(e,"overflowX")},Jy=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=ex(e,i);if(a){var r=tx(e,i),s=r[1],o=r[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},gD=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},bD=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},ex=function(e,t){return e==="v"?pD(t):mD(t)},tx=function(e,t){return e==="v"?gD(t):bD(t)},vD=function(e,t){return e==="h"&&t==="rtl"?-1:1},yD=function(e,t,n,i,a){var r=vD(e,window.getComputedStyle(t).direction),s=r*i,o=n.target,l=t.contains(o),u=!1,c=s>0,d=0,f=0;do{if(!o)break;var h=tx(e,o),g=h[0],b=h[1],E=h[2],m=b-E-r*g;(g||m)&&ex(e,o)&&(d+=m,f+=g);var y=o.parentNode;o=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nx=function(e){return[e.deltaX,e.deltaY]},ix=function(e){return e&&"current"in e?e.current:e},xD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},_D=function(e){return`
63
63
  .block-interactivity-`.concat(e,` {pointer-events: none;}
64
64
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
65
- `)},ED=0,Bs=[];function TD(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),a=E.useState(ED++)[0],r=E.useState(Qy)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=xp([e.lockRef.current],(e.shards||[]).map(ix),!0).filter(Boolean);return b.forEach(function(_){return _.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=E.useCallback(function(b,_){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=Wc(b),y=n.current,x="deltaX"in b?b.deltaX:y[0]-m[0],T="deltaY"in b?b.deltaY:y[1]-m[1],S,A=b.target,D=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var L=Jy(D,A);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=Jy(D,A)),!L)return!1;if(!i.current&&"changedTouches"in b&&(x||T)&&(i.current=S),!S)return!0;var B=i.current||S;return yD(B,_,b,B==="h"?x:T)},[]),l=E.useCallback(function(b){var _=b;if(!(!Bs.length||Bs[Bs.length-1]!==r)){var m="deltaY"in _?nx(_):Wc(_),y=t.current.filter(function(S){return S.name===_.type&&(S.target===_.target||_.target===S.shadowParent)&&xD(S.delta,m)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(ix).filter(Boolean).filter(function(S){return S.contains(_.target)}),T=x.length>0?o(_,x[0]):!s.current.noIsolation;T&&_.cancelable&&_.preventDefault()}}},[]),u=E.useCallback(function(b,_,m,y){var x={name:b,delta:_,target:m,should:y,shadowParent:wD(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=E.useCallback(function(b){n.current=Wc(b),i.current=void 0},[]),d=E.useCallback(function(b){u(b.type,nx(b),b.target,o(b,e.lockRef.current))},[]),f=E.useCallback(function(b){u(b.type,Wc(b),b.target,o(b,e.lockRef.current))},[]);E.useEffect(function(){return Bs.push(r),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ps),document.addEventListener("touchmove",l,Ps),document.addEventListener("touchstart",c,Ps),function(){Bs=Bs.filter(function(b){return b!==r}),document.removeEventListener("wheel",l,Ps),document.removeEventListener("touchmove",l,Ps),document.removeEventListener("touchstart",c,Ps)}},[]);var h=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(r,{styles:_D(a)}):null,h?E.createElement(fD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SD=JR(Ky,TD);var ax=E.forwardRef(function(e,t){return E.createElement(Kc,ni({},e,{ref:t,sideCar:SD}))});ax.classNames=Kc.classNames;var Zc="Popover",[rx,nJ]=Oc(Zc,[Uc]),yl=Uc(),[AD,zr]=rx(Zc),sx=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:r,modal:s=!1}=e,o=yl(t),l=E.useRef(null),[u,c]=E.useState(!1),[d,f]=_y({prop:i,defaultProp:a??!1,onChange:r,caller:Zc});return v.jsx(vy,{...o,children:v.jsx(AD,{scope:t,contentId:U1(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:E.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:u,onCustomAnchorAdd:E.useCallback(()=>c(!0),[]),onCustomAnchorRemove:E.useCallback(()=>c(!1),[]),modal:s,children:n})})};sx.displayName=Zc;var ox="PopoverAnchor",lx=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(ox,n),r=yl(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=a;return E.useEffect(()=>(s(),()=>o()),[s,o]),v.jsx(mp,{...r,...i,ref:t})});lx.displayName=ox;var ux="PopoverTrigger",cx=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(ux,n),r=yl(n),s=Bi(t,a.triggerRef),o=v.jsx(Ln.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":px(a.open),...i,ref:s,onClick:_n(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?o:v.jsx(mp,{asChild:!0,...r,children:o})});cx.displayName=ux;var CD="PopoverPortal",[iJ,kD]=rx(CD,{forceMount:void 0}),zs="PopoverContent",dx=E.forwardRef((e,t)=>{const n=kD(zs,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,r=zr(zs,e.__scopePopover);return v.jsx(gp,{present:i||r.open,children:r.modal?v.jsx(ND,{...a,ref:t}):v.jsx(RD,{...a,ref:t})})});dx.displayName=zs;var OD=Kh("PopoverContent.RemoveScroll"),ND=E.forwardRef((e,t)=>{const n=zr(zs,e.__scopePopover),i=E.useRef(null),a=Bi(t,i),r=E.useRef(!1);return E.useEffect(()=>{const s=i.current;if(s)return HR(s)},[]),v.jsx(ax,{as:OD,allowPinchZoom:!0,children:v.jsx(fx,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_n(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),r.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_n(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;r.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:_n(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),RD=E.forwardRef((e,t)=>{const n=zr(zs,e.__scopePopover),i=E.useRef(!1),a=E.useRef(!1);return v.jsx(fx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,r),r.defaultPrevented||(i.current||(o=n.triggerRef.current)==null||o.focus(),r.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:r=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,r),r.defaultPrevented||(i.current=!0,r.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=r.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&a.current&&r.preventDefault()}})}),fx=E.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=zr(zs,n),h=yl(n);return i4(),v.jsx(I1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:r,children:v.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:v.jsx(yy,{"data-state":px(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),hx="PopoverClose",DD=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(hx,n);return v.jsx(Ln.button,{type:"button",...i,ref:t,onClick:_n(e.onClick,()=>a.onOpenChange(!1))})});DD.displayName=hx;var MD="PopoverArrow",LD=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=yl(n);return v.jsx(xy,{...a,...i,ref:t})});LD.displayName=MD;function px(e){return e?"open":"closed"}var ID=sx,PD=lx,BD=dx;const zD=/\{[^{}]+\}/g,jD=()=>{var e,t;return typeof process=="object"&&Number.parseInt((t=(e=process==null?void 0:process.versions)==null?void 0:e.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function UD(){return Math.random().toString(36).slice(2,11)}function HD(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:i=globalThis.fetch,querySerializer:a,bodySerializer:r,headers:s,requestInitExt:o=void 0,...l}={...e};o=jD()?o:void 0,t=yx(t);const u=[];async function c(d,f){const{baseUrl:h,fetch:g=i,Request:b=n,headers:_,params:m={},parseAs:y="json",querySerializer:x,bodySerializer:T=r??VD,body:S,...A}=f||{};let D=t;h&&(D=yx(h)??t);let L=typeof a=="function"?a:bx(a);x&&(L=typeof x=="function"?x:bx({...typeof a=="object"?a:{},...x}));const B=S===void 0?void 0:T(S,vx(s,_,m.header)),O=vx(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,_,m.header),Y={redirect:"follow",...l,...A,body:B,headers:O};let U,ae,ee=new n(YD(d,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in A)V in ee||(ee[V]=A[V]);if(u.length){U=UD(),ae=Object.freeze({baseUrl:D,fetch:g,parseAs:y,querySerializer:L,bodySerializer:T});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:d,params:m,options:ae,id:U});if(H)if(H instanceof n)ee=H;else if(H instanceof Response){Q=H;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Q){try{Q=await g(ee,o)}catch(V){let H=V;if(u.length)for(let te=u.length-1;te>=0;te--){const N=u[te];if(N&&typeof N=="object"&&typeof N.onError=="function"){const be=await N.onError({request:ee,error:H,schemaPath:d,params:m,options:ae,id:U});if(be){if(be instanceof Response){H=void 0,Q=be;break}if(be instanceof Error){H=be;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(H)throw H}if(u.length)for(let V=u.length-1;V>=0;V--){const H=u[V];if(H&&typeof H=="object"&&typeof H.onResponse=="function"){const te=await H.onResponse({request:ee,response:Q,schemaPath:d,params:m,options:ae,id:U});if(te){if(!(te instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Q=te}}}}if(Q.status===204||ee.method==="HEAD"||Q.headers.get("Content-Length")==="0")return Q.ok?{data:void 0,response:Q}:{error:void 0,response:Q};if(Q.ok)return y==="stream"?{data:Q.body,response:Q}:{data:await Q[y](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(d,f,h){return c(f,{...h,method:d.toUpperCase()})},GET(d,f){return c(d,{...f,method:"GET"})},PUT(d,f){return c(d,{...f,method:"PUT"})},POST(d,f){return c(d,{...f,method:"POST"})},DELETE(d,f){return c(d,{...f,method:"DELETE"})},OPTIONS(d,f){return c(d,{...f,method:"OPTIONS"})},HEAD(d,f){return c(d,{...f,method:"HEAD"})},PATCH(d,f){return c(d,{...f,method:"PATCH"})},TRACE(d,f){return c(d,{...f,method:"TRACE"})},use(...d){for(const f of d)if(f){if(typeof f!="object"||!("onRequest"in f||"onResponse"in f||"onError"in f))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(f)}},eject(...d){for(const f of d){const h=u.indexOf(f);h!==-1&&u.splice(h,1)}}}}function Jc(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${(n==null?void 0:n.allowReserved)===!0?t:encodeURIComponent(t)}`}function mx(e,t,n){if(!t||typeof t!="object")return"";const i=[],a={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const o in t)i.push(o,n.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const s=i.join(",");switch(n.style){case"form":return`${e}=${s}`;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return s}}for(const s in t){const o=n.style==="deepObject"?`${e}[${s}]`:s;i.push(Jc(o,t[s],n))}const r=i.join(a);return n.style==="label"||n.style==="matrix"?`${a}${r}`:r}function gx(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const r={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",s=(n.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(r);switch(n.style){case"simple":return s;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return`${e}=${s}`}}const i={simple:",",label:".",matrix:";"}[n.style]||"&",a=[];for(const r of t)n.style==="simple"||n.style==="label"?a.push(n.allowReserved===!0?r:encodeURIComponent(r)):a.push(Jc(e,r,n));return n.style==="label"||n.style==="matrix"?`${i}${a.join(i)}`:a.join(i)}function bx(e){return function(n){const i=[];if(n&&typeof n=="object")for(const a in n){const r=n[a];if(r!=null){if(Array.isArray(r)){if(r.length===0)continue;i.push(gx(a,r,{style:"form",explode:!0,...e==null?void 0:e.array,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}if(typeof r=="object"){i.push(mx(a,r,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(Jc(a,r,e))}}return i.join("&")}}function FD(e,t){let n=e;for(const i of e.match(zD)??[]){let a=i.substring(1,i.length-1),r=!1,s="simple";if(a.endsWith("*")&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(s="label",a=a.substring(1)):a.startsWith(";")&&(s="matrix",a=a.substring(1)),!t||t[a]===void 0||t[a]===null)continue;const o=t[a];if(Array.isArray(o)){n=n.replace(i,gx(a,o,{style:s,explode:r}));continue}if(typeof o=="object"){n=n.replace(i,mx(a,o,{style:s,explode:r}));continue}if(s==="matrix"){n=n.replace(i,`;${Jc(a,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function VD(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function YD(e,t){var a;let n=`${t.baseUrl}${e}`;(a=t.params)!=null&&a.path&&(n=FD(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function vx(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const i=n instanceof Headers?n.entries():Object.entries(n);for(const[a,r]of i)if(r===null)t.delete(a);else if(Array.isArray(r))for(const s of r)t.append(a,s);else r!==void 0&&t.set(a,r)}return t}function yx(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var ed={exports:{}};ed.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",a=1,r=2,s=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",_="[object Number]",m="[object Null]",y="[object Object]",x="[object Promise]",T="[object Proxy]",S="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",O="[object WeakMap]",Y="[object ArrayBuffer]",U="[object DataView]",ae="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",N="[object Uint16Array]",be="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ge={};ge[ae]=ge[ee]=ge[Q]=ge[F]=ge[V]=ge[H]=ge[te]=ge[N]=ge[be]=!0,ge[o]=ge[l]=ge[Y]=ge[c]=ge[U]=ge[d]=ge[f]=ge[h]=ge[b]=ge[_]=ge[y]=ge[S]=ge[A]=ge[D]=ge[O]=!1;var ze=typeof ja=="object"&&ja&&ja.Object===Object&&ja,dn=typeof self=="object"&&self&&self.Object===Object&&self,We=ze||dn||Function("return this")(),$t=t&&!t.nodeType&&t,Mt=$t&&!0&&e&&!e.nodeType&&e,Ut=Mt&&Mt.exports===$t,Lt=Ut&&ze.process,re=function(){try{return Lt&&Lt.binding&&Lt.binding("util")}catch{}}(),yi=re&&re.isTypedArray;function Li(C,I){for(var G=-1,se=C==null?0:C.length,ot=0,Se=[];++G<se;){var xt=C[G];I(xt,G,C)&&(Se[ot++]=xt)}return Se}function Ii(C,I){for(var G=-1,se=I.length,ot=C.length;++G<se;)C[ot+G]=I[G];return C}function nt(C,I){for(var G=-1,se=C==null?0:C.length;++G<se;)if(I(C[G],G,C))return!0;return!1}function fn(C,I){for(var G=-1,se=Array(C);++G<C;)se[G]=I(G);return se}function tn(C){return function(I){return C(I)}}function At(C,I){return C.has(I)}function Es(C,I){return C==null?void 0:C[I]}function Rn(C){var I=-1,G=Array(C.size);return C.forEach(function(se,ot){G[++I]=[ot,se]}),G}function Ia(C,I){return function(G){return C(I(G))}}function ne(C){var I=-1,G=Array(C.size);return C.forEach(function(se){G[++I]=se}),G}var he=Array.prototype,z=Function.prototype,$=Object.prototype,ue=We["__core-js_shared__"],_e=z.toString,ve=$.hasOwnProperty,Xt=function(){var C=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Dn=$.toString,yn=RegExp("^"+_e.call(ve).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jn=Ut?We.Buffer:void 0,Mn=We.Symbol,It=We.Uint8Array,ei=$.propertyIsEnumerable,xn=he.splice,Pa=Mn?Mn.toStringTag:void 0,sN=Object.getOwnPropertySymbols,rZ=Jn?Jn.isBuffer:void 0,sZ=Ia(Object.keys,Object),n1=fl(We,"DataView"),Tc=fl(We,"Map"),i1=fl(We,"Promise"),a1=fl(We,"Set"),r1=fl(We,"WeakMap"),wc=fl(Object,"create"),oZ=Ss(n1),lZ=Ss(Tc),uZ=Ss(i1),cZ=Ss(a1),dZ=Ss(r1),oN=Mn?Mn.prototype:void 0,s1=oN?oN.valueOf:void 0;function Ts(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function fZ(){this.__data__=wc?wc(null):{},this.size=0}function hZ(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function pZ(C){var I=this.__data__;if(wc){var G=I[C];return G===i?void 0:G}return ve.call(I,C)?I[C]:void 0}function mZ(C){var I=this.__data__;return wc?I[C]!==void 0:ve.call(I,C)}function gZ(C,I){var G=this.__data__;return this.size+=this.has(C)?0:1,G[C]=wc&&I===void 0?i:I,this}Ts.prototype.clear=fZ,Ts.prototype.delete=hZ,Ts.prototype.get=pZ,Ts.prototype.has=mZ,Ts.prototype.set=gZ;function Ba(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function bZ(){this.__data__=[],this.size=0}function vZ(C){var I=this.__data__,G=Bh(I,C);if(G<0)return!1;var se=I.length-1;return G==se?I.pop():xn.call(I,G,1),--this.size,!0}function yZ(C){var I=this.__data__,G=Bh(I,C);return G<0?void 0:I[G][1]}function xZ(C){return Bh(this.__data__,C)>-1}function _Z(C,I){var G=this.__data__,se=Bh(G,C);return se<0?(++this.size,G.push([C,I])):G[se][1]=I,this}Ba.prototype.clear=bZ,Ba.prototype.delete=vZ,Ba.prototype.get=yZ,Ba.prototype.has=xZ,Ba.prototype.set=_Z;function ws(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function EZ(){this.size=0,this.__data__={hash:new Ts,map:new(Tc||Ba),string:new Ts}}function TZ(C){var I=zh(this,C).delete(C);return this.size-=I?1:0,I}function wZ(C){return zh(this,C).get(C)}function SZ(C){return zh(this,C).has(C)}function AZ(C,I){var G=zh(this,C),se=G.size;return G.set(C,I),this.size+=G.size==se?0:1,this}ws.prototype.clear=EZ,ws.prototype.delete=TZ,ws.prototype.get=wZ,ws.prototype.has=SZ,ws.prototype.set=AZ;function Ph(C){var I=-1,G=C==null?0:C.length;for(this.__data__=new ws;++I<G;)this.add(C[I])}function CZ(C){return this.__data__.set(C,i),this}function kZ(C){return this.__data__.has(C)}Ph.prototype.add=Ph.prototype.push=CZ,Ph.prototype.has=kZ;function Mr(C){var I=this.__data__=new Ba(C);this.size=I.size}function OZ(){this.__data__=new Ba,this.size=0}function NZ(C){var I=this.__data__,G=I.delete(C);return this.size=I.size,G}function RZ(C){return this.__data__.get(C)}function DZ(C){return this.__data__.has(C)}function MZ(C,I){var G=this.__data__;if(G instanceof Ba){var se=G.__data__;if(!Tc||se.length<n-1)return se.push([C,I]),this.size=++G.size,this;G=this.__data__=new ws(se)}return G.set(C,I),this.size=G.size,this}Mr.prototype.clear=OZ,Mr.prototype.delete=NZ,Mr.prototype.get=RZ,Mr.prototype.has=DZ,Mr.prototype.set=MZ;function LZ(C,I){var G=jh(C),se=!G&&KZ(C),ot=!G&&!se&&o1(C),Se=!G&&!se&&!ot&&gN(C),xt=G||se||ot||Se,Kt=xt?fn(C.length,String):[],nn=Kt.length;for(var gt in C)ve.call(C,gt)&&!(xt&&(gt=="length"||ot&&(gt=="offset"||gt=="parent")||Se&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||YZ(gt,nn)))&&Kt.push(gt);return Kt}function Bh(C,I){for(var G=C.length;G--;)if(fN(C[G][0],I))return G;return-1}function IZ(C,I,G){var se=I(C);return jh(C)?se:Ii(se,G(C))}function Sc(C){return C==null?C===void 0?B:m:Pa&&Pa in Object(C)?FZ(C):XZ(C)}function lN(C){return Ac(C)&&Sc(C)==o}function uN(C,I,G,se,ot){return C===I?!0:C==null||I==null||!Ac(C)&&!Ac(I)?C!==C&&I!==I:PZ(C,I,G,se,uN,ot)}function PZ(C,I,G,se,ot,Se){var xt=jh(C),Kt=jh(I),nn=xt?l:Lr(C),gt=Kt?l:Lr(I);nn=nn==o?y:nn,gt=gt==o?y:gt;var ti=nn==y,Pi=gt==y,hn=nn==gt;if(hn&&o1(C)){if(!o1(I))return!1;xt=!0,ti=!1}if(hn&&!ti)return Se||(Se=new Mr),xt||gN(C)?cN(C,I,G,se,ot,Se):UZ(C,I,nn,G,se,ot,Se);if(!(G&a)){var xi=ti&&ve.call(C,"__wrapped__"),_i=Pi&&ve.call(I,"__wrapped__");if(xi||_i){var Ir=xi?C.value():C,za=_i?I.value():I;return Se||(Se=new Mr),ot(Ir,za,G,se,Se)}}return hn?(Se||(Se=new Mr),HZ(C,I,G,se,ot,Se)):!1}function BZ(C){if(!mN(C)||GZ(C))return!1;var I=hN(C)?yn:M;return I.test(Ss(C))}function zZ(C){return Ac(C)&&pN(C.length)&&!!ge[Sc(C)]}function jZ(C){if(!$Z(C))return sZ(C);var I=[];for(var G in Object(C))ve.call(C,G)&&G!="constructor"&&I.push(G);return I}function cN(C,I,G,se,ot,Se){var xt=G&a,Kt=C.length,nn=I.length;if(Kt!=nn&&!(xt&&nn>Kt))return!1;var gt=Se.get(C);if(gt&&Se.get(I))return gt==I;var ti=-1,Pi=!0,hn=G&r?new Ph:void 0;for(Se.set(C,I),Se.set(I,C);++ti<Kt;){var xi=C[ti],_i=I[ti];if(se)var Ir=xt?se(_i,xi,ti,I,C,Se):se(xi,_i,ti,C,I,Se);if(Ir!==void 0){if(Ir)continue;Pi=!1;break}if(hn){if(!nt(I,function(za,As){if(!At(hn,As)&&(xi===za||ot(xi,za,G,se,Se)))return hn.push(As)})){Pi=!1;break}}else if(!(xi===_i||ot(xi,_i,G,se,Se))){Pi=!1;break}}return Se.delete(C),Se.delete(I),Pi}function UZ(C,I,G,se,ot,Se,xt){switch(G){case U:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case Y:return!(C.byteLength!=I.byteLength||!Se(new It(C),new It(I)));case c:case d:case _:return fN(+C,+I);case f:return C.name==I.name&&C.message==I.message;case S:case D:return C==I+"";case b:var Kt=Rn;case A:var nn=se&a;if(Kt||(Kt=ne),C.size!=I.size&&!nn)return!1;var gt=xt.get(C);if(gt)return gt==I;se|=r,xt.set(C,I);var ti=cN(Kt(C),Kt(I),se,ot,Se,xt);return xt.delete(C),ti;case L:if(s1)return s1.call(C)==s1.call(I)}return!1}function HZ(C,I,G,se,ot,Se){var xt=G&a,Kt=dN(C),nn=Kt.length,gt=dN(I),ti=gt.length;if(nn!=ti&&!xt)return!1;for(var Pi=nn;Pi--;){var hn=Kt[Pi];if(!(xt?hn in I:ve.call(I,hn)))return!1}var xi=Se.get(C);if(xi&&Se.get(I))return xi==I;var _i=!0;Se.set(C,I),Se.set(I,C);for(var Ir=xt;++Pi<nn;){hn=Kt[Pi];var za=C[hn],As=I[hn];if(se)var bN=xt?se(As,za,hn,I,C,Se):se(za,As,hn,C,I,Se);if(!(bN===void 0?za===As||ot(za,As,G,se,Se):bN)){_i=!1;break}Ir||(Ir=hn=="constructor")}if(_i&&!Ir){var Uh=C.constructor,Hh=I.constructor;Uh!=Hh&&"constructor"in C&&"constructor"in I&&!(typeof Uh=="function"&&Uh instanceof Uh&&typeof Hh=="function"&&Hh instanceof Hh)&&(_i=!1)}return Se.delete(C),Se.delete(I),_i}function dN(C){return IZ(C,ZZ,VZ)}function zh(C,I){var G=C.__data__;return qZ(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(C,I){var G=Es(C,I);return BZ(G)?G:void 0}function FZ(C){var I=ve.call(C,Pa),G=C[Pa];try{C[Pa]=void 0;var se=!0}catch{}var ot=Dn.call(C);return se&&(I?C[Pa]=G:delete C[Pa]),ot}var VZ=sN?function(C){return C==null?[]:(C=Object(C),Li(sN(C),function(I){return ei.call(C,I)}))}:JZ,Lr=Sc;(n1&&Lr(new n1(new ArrayBuffer(1)))!=U||Tc&&Lr(new Tc)!=b||i1&&Lr(i1.resolve())!=x||a1&&Lr(new a1)!=A||r1&&Lr(new r1)!=O)&&(Lr=function(C){var I=Sc(C),G=I==y?C.constructor:void 0,se=G?Ss(G):"";if(se)switch(se){case oZ:return U;case lZ:return b;case uZ:return x;case cZ:return A;case dZ:return O}return I});function YZ(C,I){return I=I??s,!!I&&(typeof C=="number"||Be.test(C))&&C>-1&&C%1==0&&C<I}function qZ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function GZ(C){return!!Xt&&Xt in C}function $Z(C){var I=C&&C.constructor,G=typeof I=="function"&&I.prototype||$;return C===G}function XZ(C){return Dn.call(C)}function Ss(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function fN(C,I){return C===I||C!==C&&I!==I}var KZ=lN(function(){return arguments}())?lN:function(C){return Ac(C)&&ve.call(C,"callee")&&!ei.call(C,"callee")},jh=Array.isArray;function QZ(C){return C!=null&&pN(C.length)&&!hN(C)}var o1=rZ||eJ;function WZ(C,I){return uN(C,I)}function hN(C){if(!mN(C))return!1;var I=Sc(C);return I==h||I==g||I==u||I==T}function pN(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function mN(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Ac(C){return C!=null&&typeof C=="object"}var gN=yi?tn(yi):zZ;function ZZ(C){return QZ(C)?LZ(C):jZ(C)}function JZ(){return[]}function eJ(){return!1}e.exports=WZ}(ed,ed.exports);var qD=ed.exports;const GD=hl(qD),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function $D(e,t=0){return(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase()}let Ap;const XD=new Uint8Array(16);function KD(){if(!Ap){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ap=crypto.getRandomValues.bind(crypto)}return Ap(XD)}const xx={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cp(e,t,n){var a;if(xx.randomUUID&&!e)return xx.randomUUID();e=e||{};const i=e.random??((a=e.rng)==null?void 0:a.call(e))??KD();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,$D(i)}const QD=e=>{console.log(e.error)},WD=e=>{const t=HD({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||QD};return t.use(n),t};let _x=class{constructor({config:t}){var n,i;this.userToken=null,this.constructClientOptions=s=>{const o=this.config.apiUrl||"https://api.open.cx",l={"X-Bot-Token":this.config.token,"Content-Type":"application/json",Accept:"application/json",Authorization:s?`Bearer ${s}`:void 0};return{baseUrl:o,headers:l}},this.createOpenAPIClient=({baseUrl:s,headers:o})=>WD({baseUrl:s,onRequest:({request:l})=>{Object.entries(o).forEach(([u,c])=>{c&&l.headers.set(u,c)})}}),this.setAuthToken=s=>{this.userToken=s;const{baseUrl:o,headers:l}=this.constructClientOptions(s);this.client=this.createOpenAPIClient({baseUrl:o,headers:l})},this.getExternalWidgetConfig=async()=>await this.client.GET("/backend/widget/v2/config",{params:{header:{"X-Bot-Token":this.config.token}}}),this.sendMessage=async(s,o)=>await this.client.POST("/backend/widget/v2/chat/send",{body:s,signal:o}),this.createUnverifiedContact=async s=>await this.client.POST("/backend/widget/v2/contact/create-unverified",{params:{header:{"x-bot-token":this.config.token}},body:s}),this.createSession=async s=>await this.client.POST("/backend/widget/v2/create-session",{body:s}),this.pollSessionAndHistory=async({sessionId:s,lastMessageTimestamp:o,abortSignal:l})=>{const u=o?{lastMessageTimestamp:o}:void 0;return await this.client.GET("/backend/widget/v2/poll/{sessionId}",{params:{path:{sessionId:s},query:u},signal:l})},this.getSessions=async({cursor:s,filters:o,abortSignal:l})=>await this.client.GET("/backend/widget/v2/sessions",{params:{query:{cursor:s,filters:JSON.stringify(o)}},signal:l}),this.uploadFile=async({file:s,abortSignal:o,onProgress:l})=>new Promise((u,c)=>{var d;const f=new FormData;f.append("file",s);const h=new XMLHttpRequest;if(o&&(o.addEventListener("abort",()=>{h.abort(),c(new DOMException("Aborted","AbortError"))}),o.aborted)){c(new DOMException("Aborted","AbortError"));return}h.upload.addEventListener("progress",_=>{if(_.lengthComputable&&l){const m=Math.round(_.loaded/_.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const _=JSON.parse(h.responseText);u(_)}catch(_){c(new Error(`Failed to parse response: ${_}`))}else c(new Error(`Upload failed with status: ${h.status}`))}),h.addEventListener("error",()=>{c(new Error("Network error occurred"))}),h.addEventListener("timeout",()=>{c(new Error("Upload timed out"))});const{baseUrl:g}=this.constructClientOptions(this.userToken),b=`${g}/backend/widget/v2/upload`;h.open("POST",b),h.setRequestHeader("X-Bot-Token",this.config.token),this.userToken??((d=this.config.user)==null?void 0:d.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(f)}),this.vote=async s=>await this.client.POST("/backend/widget/v2/chat/vote",{body:s}),this.resolveSession=async(s,o)=>await this.client.POST("/backend/widget/v2/session/resolve",{body:s,signal:o}),this.createStateCheckpoint=async s=>await this.client.POST("/backend/widget/v2/checkpoint",{body:s}),this.submitCsat=async s=>await this.client.POST("/backend/widget/v2/submit-csat",{body:s}),this.config=t,this.userToken=((n=t.user)==null?void 0:n.token)||null;const{baseUrl:a,headers:r}=this.constructClientOptions((i=t.user)==null?void 0:i.token);this.client=this.createOpenAPIClient({baseUrl:a,headers:r})}};function ii(e,t){console.error(`Missing case for ${e} in ${t}`)}class js{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{GD(this.state,n)||(this.state=n,this.notifySubscribers(n))},this.setPartial=n=>{if(n==null)return;const i={...this.state,...n};this.set(i)},this.reset=()=>{this.set(this.initialState)},this.notifySubscribers=n=>{Array.from(this.subscribers).forEach(i=>{try{i(n)}catch(a){console.error(a)}})},this.subscribe=n=>(this.subscribers.add(n),()=>{this.subscribers.delete(n)}),this.state=t,this.initialState=t}}let Ex=class{constructor(){this.state=new js({isPolling:!1,isError:!1}),this.abortController=new AbortController,this.reset=()=>{var t;this.abortController.abort("Resetting poller"),(t=this.stopPolling)==null||t.call(this),this.stopPolling=null},this.stopPolling=null,this.startPolling=(t,n)=>{if(this.stopPolling)return;const i=[],a=async()=>{this.abortController=new AbortController,this.state.setPartial({isPolling:!0});try{await t(this.abortController.signal)}catch(r){if(this.abortController.signal.aborted)return;console.error("Failed to poll:",r),this.state.setPartial({isError:!0})}finally{this.state.setPartial({isPolling:!1})}this.abortController.signal.aborted?console.log("Poller aborted, not scheduling anymore"):i.push(setTimeout(a,n))};a(),this.stopPolling=()=>{i.forEach(clearTimeout),this.state.reset()}}}};function Tx(e){try{const t=e();return t instanceof Promise?t.then(n=>({data:n})).catch(n=>({error:n})):{data:t}}catch(t){return{error:t}}}let ZD=class{constructor({api:t,config:n,sessionCtx:i,messageCtx:a,sessionPollingIntervalSeconds:r}){this.poller=new Ex,this.fetchSessionAndFullHistoryAbortController=new AbortController,this.registerPolling=()=>{this.sessionCtx.sessionState.subscribe(({session:s})=>{s!=null&&s.id?this.poller.startPolling(async o=>{this.fetchSessionAndHistory({sessionId:s.id,abortSignal:o})},this.sessionPollingIntervalSeconds*1e3):this.poller.reset()}),this.sessionCtx.sessionState.subscribe(({session:s})=>{if(s!=null&&s.id&&!s.isOpened)try{this.fetchSessionAndFullHistoryAbortController=new AbortController,this.fetchSessionAndHistory({sessionId:s.id,abortSignal:this.fetchSessionAndFullHistoryAbortController.signal,fetchFullHistory:!0})}catch(o){this.fetchSessionAndFullHistoryAbortController.signal.aborted||console.error("Failed to fetch session and full history:",o)}else this.fetchSessionAndFullHistoryAbortController.abort()})},this.fetchSessionAndHistory=async({sessionId:s,abortSignal:o,fetchFullHistory:l=!1})=>{var u;const c=this.messageCtx.state.get().messages.length===0;c&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const d=this.messageCtx.state.get().messages,f=d.length>0?((u=d[d.length-1])==null?void 0:u.timestamp)??void 0:void 0,{data:h}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o,lastMessageTimestamp:l?void 0:f});if(h!=null&&h.session&&(this.sessionCtx.sessionState.setPartial({session:h.session}),this.sessionCtx.setSessions([h.session])),h!=null&&h.history&&h.history.length>0){const g=this.messageCtx.state.get().messages,b=h.history.map(this.mapHistoryToMessage).filter(_=>_!==null).filter(_=>!g.some(m=>m.id===_.id));if(this.messageCtx.state.setPartial({messages:[...g,...b]}),c)this.messageCtx.markAsDispatchedToOnMessageReceivedHook(b.map(_=>_.id));else for(const _ of b)this.messageCtx.dispatchToOnMessageReceivedHook(_)}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o;const l={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...l,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...l,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatarUrl:s.sender.avatar||null,avatar:s.sender.avatar||null,id:null,isAi:!1}};if(s.sender.kind==="ai"){const u=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...l,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatarUrl:null,avatar:null},data:{message:s.content.text||"",action:u?{name:u.actionName,data:this.extractActionResult(u)}:void 0}}}if(s.sender.kind==="system"){const u=this.constructSystemMessage(s);return u===null?null:{...u}}return null},this.constructSystemMessage=s=>{if(!s||!s.systemMessagePayload)return null;switch(s.systemMessagePayload.type){case"state_checkpoint":return{id:s.publicId,type:"SYSTEM",subtype:"state_checkpoint",data:{payload:s.systemMessagePayload.payload},timestamp:s.sentAt||"",attachments:void 0};case"csat_requested":return{id:s.publicId,type:"SYSTEM",subtype:"csat_requested",data:{payload:void 0},timestamp:s.sentAt||"",attachments:void 0};case"csat_submitted":return{id:s.publicId,type:"SYSTEM",subtype:"csat_submitted",data:{payload:{score:s.systemMessagePayload.payload.score??void 0,feedback:s.systemMessagePayload.payload.feedback??void 0}},timestamp:s.sentAt||"",attachments:void 0};case"none":return null;default:return ii(s.systemMessagePayload,this.constructSystemMessage.name),null}},this.extractActionResult=s=>{const o=s.result;if(o===null||typeof o!="object")return o;if("responseBodyText"in o&&typeof o.responseBodyText=="string"){const l=o.responseBodyText,u=Tx(()=>JSON.parse(l)).data;if(u)return u}return s.result},this.api=t,this.config=n,this.sessionCtx=i,this.messageCtx=a,this.sessionPollingIntervalSeconds=r,this.registerPolling()}};class JD{constructor({config:t,api:n,storageCtx:i}){var a;this.shouldCollectData=()=>{var r;return!!(!((r=this.state.get().contact)!=null&&r.token)&&this.config.collectUserData)},this.autoCreateUnverifiedUserIfNotExists=async()=>{var r,s,o,l,u,c,d,f,h,g,b,_,m,y;if(!((r=this.config.user)!=null&&r.token)){if(this.config.collectUserData&&!((o=(s=this.config.user)==null?void 0:s.data)!=null&&o.email)){if((l=this.config.extraDataCollectionFields)!=null&&l.length)return;const x=await((u=this.storageCtx)==null?void 0:u.getContactToken());x&&await this.setUnverifiedContact(x);return}if(!((d=(c=this.config.user)==null?void 0:c.data)!=null&&d.email)){const x=await((f=this.storageCtx)==null?void 0:f.getContactToken());if(x){await this.setUnverifiedContact(x);return}}await this.createUnverifiedContact({email:(g=(h=this.config.user)==null?void 0:h.data)==null?void 0:g.email,non_verified_name:(_=(b=this.config.user)==null?void 0:b.data)==null?void 0:_.name,non_verified_custom_data:(y=(m=this.config.user)==null?void 0:m.data)==null?void 0:y.customData})}},this.createUnverifiedContact=async(r,s)=>{this.state.setPartial({extraCollectedData:s});try{this.state.setPartial({isCreatingUnverifiedContact:!0,isErrorCreatingUnverifiedContact:!1});const{data:o}=await this.api.createUnverifiedContact(r);o!=null&&o.token?await this.setUnverifiedContact(o.token):this.state.setPartial({isErrorCreatingUnverifiedContact:!0})}finally{this.state.setPartial({isCreatingUnverifiedContact:!1})}},this.setUnverifiedContact=async r=>{var s,o,l,u;const c=await((s=this.storageCtx)==null?void 0:s.getExternalContactId()),d=((o=this.config.user)==null?void 0:o.externalId)||c||Cp();this.api.setAuthToken(r),await((l=this.storageCtx)==null?void 0:l.setContactToken(r)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(d)),this.state.setPartial({contact:{token:r,externalId:d}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new js({contact:(a=t.user)!=null&&a.token?{token:t.user.token,externalId:t.user.externalId}:null,extraCollectedData:void 0,isCreatingUnverifiedContact:!1,isErrorCreatingUnverifiedContact:!1}),this.autoCreateUnverifiedUserIfNotExists()}}function xl(){return Cp()}let e5=class{constructor({config:t,api:n,sessionCtx:i,messageCtx:a}){this.submitCsat=async r=>{var s;const o=(s=this.sessionCtx.sessionState.get().session)==null?void 0:s.id;if(!o)return{data:null,error:"No session id found"};const l=xl();this.messageCtx.state.setPartial({messages:[...this.messageCtx.state.get().messages,{id:l,type:"SYSTEM",subtype:"csat_submitted",timestamp:new Date().toISOString(),data:{payload:{score:r.score,feedback:r.feedback}}}]});const{data:u,error:c}=await this.api.submitCsat({...r,system_message_uuid:l,session_id:o});return{data:u,error:c}},this.config=t,this.api=n,this.sessionCtx=i,this.messageCtx=a}},t5=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:a}){this.sessionsRefresher=new Ex,this.sessionState=new js({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new js({data:[],cursor:void 0,isLastPage:!1,didStartInitialFetch:!1,isInitialFetchLoading:!0}),this.reset=async()=>{this.sessionState.reset()},this.registerSessionsRefresherWrapper=()=>{var r;(r=this.contactCtx.state.get().contact)!=null&&r.token&&!this.sessionsState.get().didStartInitialFetch?this.registerSessionsRefresher():this.contactCtx.state.subscribe(({contact:s})=>{s!=null&&s.token&&!this.sessionsState.get().didStartInitialFetch&&this.registerSessionsRefresher()})},this.registerSessionsRefresher=()=>{this.sessionsRefresher.startPolling(async()=>{this.sessionsState.get().didStartInitialFetch===!1&&this.sessionsState.setPartial({didStartInitialFetch:!0}),await this.refreshSessions(),this.sessionsState.get().isInitialFetchLoading===!0&&this.sessionsState.setPartial({isInitialFetchLoading:!1})},this.sessionsPollingIntervalSeconds*1e3)},this.getParsedCustomData=()=>Object.fromEntries(Object.entries(this.config.sessionCustomData||{}).map(([r,s])=>{var o;return typeof s=="string"?[r,s]:typeof s=="boolean"?[r,s]:typeof s=="number"?[r,s]:[r,((o=Tx(()=>JSON.stringify(s)))==null?void 0:o.data)||""]})),this.createSession=async()=>{var r,s,o;this.sessionState.setPartial({session:null,isCreatingSession:!0});const l=(r=this.contactCtx.state.get().contact)==null?void 0:r.externalId,u={...this.getParsedCustomData(),...l?{external_id:l}:{}},{data:c,error:d}=await this.api.createSession({customData:Object.keys(u).length>0?u:void 0});return c?(this.sessionState.setPartial({session:c,isCreatingSession:!1}),(o=(s=this.config.hooks)==null?void 0:s.onSessionCreated)==null||o.call(s,{session:c}),c):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",d),null)},this.loadMoreSessions=async()=>{if(this.sessionsState.get().isLastPage)return;const{data:r}=await this.getSessions({cursor:this.sessionsState.get().cursor});if(r){const s=[...this.sessionsState.get().data,...r.items].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s,cursor:r.next||void 0,isLastPage:r.next===null})}},this.getSessions=async({cursor:r})=>{var s,o;if(!((s=this.contactCtx.state.get().contact)!=null&&s.token))return{data:null};const l=(o=this.contactCtx.state.get().contact)==null?void 0:o.externalId;return await this.api.getSessions({cursor:r,filters:l?{external_id:l}:{}})},this.setSessions=r=>{const s=[...r,...this.sessionsState.get().data].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s})},this.refreshSessions=async()=>{const{data:r}=await this.getSessions({cursor:void 0});r&&this.setSessions(r.items)},this.resolveSession=async()=>{const r=this.sessionState.get().session;if(!r||!r.isOpened)return{success:!1,error:"Session is not opened"};this.sessionState.setPartial({isResolvingSession:!0});const{data:s,error:o}=await this.api.resolveSession({session_id:r.id});return s?(this.sessionState.setPartial({session:s,isResolvingSession:!1}),{success:!0,data:s}):(this.sessionState.setPartial({isResolvingSession:!1}),{success:!1,error:o})},this.createStateCheckpoint=async r=>{var s;const o=(s=this.sessionState.get().session)==null?void 0:s.id;if(!o)return;const{data:l,error:u}=await this.api.createStateCheckpoint({session_id:o,payload:r});return l!=null&&l.success?{success:!0}:{success:!1}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=a,this.registerSessionsRefresherWrapper()}},n5=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:a}){this.state=new js({messages:[],isSendingMessage:!1,isSendingMessageToAI:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.messageIdsDispatchedToOnMessageReceivedHook=new Set,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset(),this.messageIdsDispatchedToOnMessageReceivedHook.clear()},this.dispatchToOnMessageReceivedHook=r=>{var s,o;if(r.type==="USER"||this.messageIdsDispatchedToOnMessageReceivedHook.has(r.id))return;const l=this.sessionCtx.sessionState.get().session;l&&(this.messageIdsDispatchedToOnMessageReceivedHook.add(r.id),(o=(s=this.config.hooks)==null?void 0:s.onMessageReceived)==null||o.call(s,{message:r,session:l}))},this.markAsDispatchedToOnMessageReceivedHook=r=>{r.forEach(s=>this.messageIdsDispatchedToOnMessageReceivedHook.add(s))},this.sendMessage=async r=>{var s,o,l,u,c,d,f,h,g;let b;try{if(!r.content.trim()&&(!r.attachments||r.attachments.length===0)){console.warn("Cannot send an empty message of no content or attachments");return}const _=this.sessionCtx.sessionState.get().session,m=(_==null?void 0:_.assignee.kind)==="ai",y=this.state.get().isSendingMessageToAI,x=this.state.get().messages.at(-1);if(this.config.disableSendingWhenAwaitingAIReply!==!1&&(y||m&&(x==null?void 0:x.type)==="USER")){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController.abort("Superseded by a newer message"),this.sendMessageAbortController=new AbortController,b=this.sendMessageAbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1,isSendingMessage:!0,isSendingMessageToAI:!!m||!_});const T=this.state.get().messages,S=!((s=this.sessionCtx.sessionState.get().session)!=null&&s.id)&&T.length===0&&((o=this.config.advancedInitialMessages)==null?void 0:o.some(O=>O.persistent)),A=S?(this.config.advancedInitialMessages||[]).filter(O=>O.persistent).map(O=>({id:xl(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:O.message},agent:this.config.bot?{...this.config.bot,isAi:!0,id:null}:void 0})):[],D=this.toUserMessage(r.content.trim(),r.attachments||void 0);if(this.state.setPartial({messages:[...A,...T,D]}),!((l=this.sessionCtx.sessionState.get().session)!=null&&l.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(u=this.sessionCtx.sessionState.get().session)==null?void 0:u.id;if(!L)return;const{data:B}=await this.api.sendMessage({uuid:D.id,bot_token:this.config.token,headers:this.config.headers,query_params:this.config.queryParams,body_properties:this.config.bodyProperties,session_id:L,content:D.content,attachments:r.attachments,clientContext:this.config.context,custom_data:{...this.config.messageCustomData||{},...r.customData||{}},language:this.config.language,exit_mode_prompt:r.exitModePrompt,initial_messages:S?A.map(O=>({uuid:O.id,content:O.data.message})):void 0},b.signal);if(B!=null&&B.success){const O=this.toBotMessage(B);if(O){const Y=this.state.get().messages;if(Y.some(U=>U.id===O.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((c=B.autopilotResponse)==null?void 0:c.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,O],lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((h=B.uiResponse)==null?void 0:h.mightSolveUserIssue)}),this.dispatchToOnMessageReceivedHook(O)}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const O=this.toBotErrorMessage(((g=B==null?void 0:B.error)==null?void 0:g.message)||"Something went wrong. Please refresh the page or try again."),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,O]})}}catch(_){b!=null&&b.signal.aborted||console.error("Failed to send message:",_)}finally{b!=null&&b.signal.aborted||this.state.setPartial({isSendingMessage:!1,isSendingMessageToAI:!1})}},this.toUserMessage=(r,s)=>{const o=(()=>{const l=this.contactCtx.state.get().extraCollectedData;return this.state.get().messages.length===0&&l&&Object.keys(l).length>0?`${Object.entries(l).filter(([u,c])=>!!c).map(([u,c])=>`${u}: ${c}`).join(`
65
+ `)},ED=0,Bs=[];function TD(e){var t=_.useRef([]),n=_.useRef([0,0]),i=_.useRef(),a=_.useState(ED++)[0],r=_.useState(Qy)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var b=xp([e.lockRef.current],(e.shards||[]).map(ix),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=_.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=Wc(b),y=n.current,x="deltaX"in b?b.deltaX:y[0]-m[0],T="deltaY"in b?b.deltaY:y[1]-m[1],S,A=b.target,D=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var L=Jy(D,A);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=Jy(D,A)),!L)return!1;if(!i.current&&"changedTouches"in b&&(x||T)&&(i.current=S),!S)return!0;var B=i.current||S;return yD(B,E,b,B==="h"?x:T)},[]),l=_.useCallback(function(b){var E=b;if(!(!Bs.length||Bs[Bs.length-1]!==r)){var m="deltaY"in E?nx(E):Wc(E),y=t.current.filter(function(S){return S.name===E.type&&(S.target===E.target||E.target===S.shadowParent)&&xD(S.delta,m)})[0];if(y&&y.should){E.cancelable&&E.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(ix).filter(Boolean).filter(function(S){return S.contains(E.target)}),T=x.length>0?o(E,x[0]):!s.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),u=_.useCallback(function(b,E,m,y){var x={name:b,delta:E,target:m,should:y,shadowParent:wD(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=_.useCallback(function(b){n.current=Wc(b),i.current=void 0},[]),d=_.useCallback(function(b){u(b.type,nx(b),b.target,o(b,e.lockRef.current))},[]),f=_.useCallback(function(b){u(b.type,Wc(b),b.target,o(b,e.lockRef.current))},[]);_.useEffect(function(){return Bs.push(r),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ps),document.addEventListener("touchmove",l,Ps),document.addEventListener("touchstart",c,Ps),function(){Bs=Bs.filter(function(b){return b!==r}),document.removeEventListener("wheel",l,Ps),document.removeEventListener("touchmove",l,Ps),document.removeEventListener("touchstart",c,Ps)}},[]);var h=e.removeScrollBar,g=e.inert;return _.createElement(_.Fragment,null,g?_.createElement(r,{styles:_D(a)}):null,h?_.createElement(fD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function wD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SD=JR(Ky,TD);var ax=_.forwardRef(function(e,t){return _.createElement(Kc,ni({},e,{ref:t,sideCar:SD}))});ax.classNames=Kc.classNames;var Zc="Popover",[rx,nJ]=Oc(Zc,[Uc]),yl=Uc(),[AD,zr]=rx(Zc),sx=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:r,modal:s=!1}=e,o=yl(t),l=_.useRef(null),[u,c]=_.useState(!1),[d,f]=_y({prop:i,defaultProp:a??!1,onChange:r,caller:Zc});return v.jsx(vy,{...o,children:v.jsx(AD,{scope:t,contentId:U1(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:u,onCustomAnchorAdd:_.useCallback(()=>c(!0),[]),onCustomAnchorRemove:_.useCallback(()=>c(!1),[]),modal:s,children:n})})};sx.displayName=Zc;var ox="PopoverAnchor",lx=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(ox,n),r=yl(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=a;return _.useEffect(()=>(s(),()=>o()),[s,o]),v.jsx(mp,{...r,...i,ref:t})});lx.displayName=ox;var ux="PopoverTrigger",cx=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(ux,n),r=yl(n),s=Bi(t,a.triggerRef),o=v.jsx(Ln.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":px(a.open),...i,ref:s,onClick:_n(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?o:v.jsx(mp,{asChild:!0,...r,children:o})});cx.displayName=ux;var CD="PopoverPortal",[iJ,kD]=rx(CD,{forceMount:void 0}),zs="PopoverContent",dx=_.forwardRef((e,t)=>{const n=kD(zs,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,r=zr(zs,e.__scopePopover);return v.jsx(gp,{present:i||r.open,children:r.modal?v.jsx(ND,{...a,ref:t}):v.jsx(RD,{...a,ref:t})})});dx.displayName=zs;var OD=Kh("PopoverContent.RemoveScroll"),ND=_.forwardRef((e,t)=>{const n=zr(zs,e.__scopePopover),i=_.useRef(null),a=Bi(t,i),r=_.useRef(!1);return _.useEffect(()=>{const s=i.current;if(s)return HR(s)},[]),v.jsx(ax,{as:OD,allowPinchZoom:!0,children:v.jsx(fx,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_n(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),r.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_n(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;r.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:_n(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),RD=_.forwardRef((e,t)=>{const n=zr(zs,e.__scopePopover),i=_.useRef(!1),a=_.useRef(!1);return v.jsx(fx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,r),r.defaultPrevented||(i.current||(o=n.triggerRef.current)==null||o.focus(),r.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:r=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,r),r.defaultPrevented||(i.current=!0,r.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=r.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&a.current&&r.preventDefault()}})}),fx=_.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=zr(zs,n),h=yl(n);return i4(),v.jsx(I1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:r,children:v.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:v.jsx(yy,{"data-state":px(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),hx="PopoverClose",DD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=zr(hx,n);return v.jsx(Ln.button,{type:"button",...i,ref:t,onClick:_n(e.onClick,()=>a.onOpenChange(!1))})});DD.displayName=hx;var MD="PopoverArrow",LD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=yl(n);return v.jsx(xy,{...a,...i,ref:t})});LD.displayName=MD;function px(e){return e?"open":"closed"}var ID=sx,PD=lx,BD=dx;const zD=/\{[^{}]+\}/g,jD=()=>{var e,t;return typeof process=="object"&&Number.parseInt((t=(e=process==null?void 0:process.versions)==null?void 0:e.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function UD(){return Math.random().toString(36).slice(2,11)}function HD(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:i=globalThis.fetch,querySerializer:a,bodySerializer:r,headers:s,requestInitExt:o=void 0,...l}={...e};o=jD()?o:void 0,t=yx(t);const u=[];async function c(d,f){const{baseUrl:h,fetch:g=i,Request:b=n,headers:E,params:m={},parseAs:y="json",querySerializer:x,bodySerializer:T=r??VD,body:S,...A}=f||{};let D=t;h&&(D=yx(h)??t);let L=typeof a=="function"?a:bx(a);x&&(L=typeof x=="function"?x:bx({...typeof a=="object"?a:{},...x}));const B=S===void 0?void 0:T(S,vx(s,E,m.header)),O=vx(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,E,m.header),Y={redirect:"follow",...l,...A,body:B,headers:O};let U,ae,ee=new n(YD(d,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in A)V in ee||(ee[V]=A[V]);if(u.length){U=UD(),ae=Object.freeze({baseUrl:D,fetch:g,parseAs:y,querySerializer:L,bodySerializer:T});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:d,params:m,options:ae,id:U});if(H)if(H instanceof n)ee=H;else if(H instanceof Response){Q=H;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Q){try{Q=await g(ee,o)}catch(V){let H=V;if(u.length)for(let te=u.length-1;te>=0;te--){const N=u[te];if(N&&typeof N=="object"&&typeof N.onError=="function"){const be=await N.onError({request:ee,error:H,schemaPath:d,params:m,options:ae,id:U});if(be){if(be instanceof Response){H=void 0,Q=be;break}if(be instanceof Error){H=be;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(H)throw H}if(u.length)for(let V=u.length-1;V>=0;V--){const H=u[V];if(H&&typeof H=="object"&&typeof H.onResponse=="function"){const te=await H.onResponse({request:ee,response:Q,schemaPath:d,params:m,options:ae,id:U});if(te){if(!(te instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Q=te}}}}if(Q.status===204||ee.method==="HEAD"||Q.headers.get("Content-Length")==="0")return Q.ok?{data:void 0,response:Q}:{error:void 0,response:Q};if(Q.ok)return y==="stream"?{data:Q.body,response:Q}:{data:await Q[y](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(d,f,h){return c(f,{...h,method:d.toUpperCase()})},GET(d,f){return c(d,{...f,method:"GET"})},PUT(d,f){return c(d,{...f,method:"PUT"})},POST(d,f){return c(d,{...f,method:"POST"})},DELETE(d,f){return c(d,{...f,method:"DELETE"})},OPTIONS(d,f){return c(d,{...f,method:"OPTIONS"})},HEAD(d,f){return c(d,{...f,method:"HEAD"})},PATCH(d,f){return c(d,{...f,method:"PATCH"})},TRACE(d,f){return c(d,{...f,method:"TRACE"})},use(...d){for(const f of d)if(f){if(typeof f!="object"||!("onRequest"in f||"onResponse"in f||"onError"in f))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(f)}},eject(...d){for(const f of d){const h=u.indexOf(f);h!==-1&&u.splice(h,1)}}}}function Jc(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${(n==null?void 0:n.allowReserved)===!0?t:encodeURIComponent(t)}`}function mx(e,t,n){if(!t||typeof t!="object")return"";const i=[],a={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const o in t)i.push(o,n.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const s=i.join(",");switch(n.style){case"form":return`${e}=${s}`;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return s}}for(const s in t){const o=n.style==="deepObject"?`${e}[${s}]`:s;i.push(Jc(o,t[s],n))}const r=i.join(a);return n.style==="label"||n.style==="matrix"?`${a}${r}`:r}function gx(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const r={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",s=(n.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(r);switch(n.style){case"simple":return s;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return`${e}=${s}`}}const i={simple:",",label:".",matrix:";"}[n.style]||"&",a=[];for(const r of t)n.style==="simple"||n.style==="label"?a.push(n.allowReserved===!0?r:encodeURIComponent(r)):a.push(Jc(e,r,n));return n.style==="label"||n.style==="matrix"?`${i}${a.join(i)}`:a.join(i)}function bx(e){return function(n){const i=[];if(n&&typeof n=="object")for(const a in n){const r=n[a];if(r!=null){if(Array.isArray(r)){if(r.length===0)continue;i.push(gx(a,r,{style:"form",explode:!0,...e==null?void 0:e.array,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}if(typeof r=="object"){i.push(mx(a,r,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(Jc(a,r,e))}}return i.join("&")}}function FD(e,t){let n=e;for(const i of e.match(zD)??[]){let a=i.substring(1,i.length-1),r=!1,s="simple";if(a.endsWith("*")&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(s="label",a=a.substring(1)):a.startsWith(";")&&(s="matrix",a=a.substring(1)),!t||t[a]===void 0||t[a]===null)continue;const o=t[a];if(Array.isArray(o)){n=n.replace(i,gx(a,o,{style:s,explode:r}));continue}if(typeof o=="object"){n=n.replace(i,mx(a,o,{style:s,explode:r}));continue}if(s==="matrix"){n=n.replace(i,`;${Jc(a,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function VD(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function YD(e,t){var a;let n=`${t.baseUrl}${e}`;(a=t.params)!=null&&a.path&&(n=FD(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function vx(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const i=n instanceof Headers?n.entries():Object.entries(n);for(const[a,r]of i)if(r===null)t.delete(a);else if(Array.isArray(r))for(const s of r)t.append(a,s);else r!==void 0&&t.set(a,r)}return t}function yx(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var ed={exports:{}};ed.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",a=1,r=2,s=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",E="[object Number]",m="[object Null]",y="[object Object]",x="[object Promise]",T="[object Proxy]",S="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",O="[object WeakMap]",Y="[object ArrayBuffer]",U="[object DataView]",ae="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",N="[object Uint16Array]",be="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ge={};ge[ae]=ge[ee]=ge[Q]=ge[F]=ge[V]=ge[H]=ge[te]=ge[N]=ge[be]=!0,ge[o]=ge[l]=ge[Y]=ge[c]=ge[U]=ge[d]=ge[f]=ge[h]=ge[b]=ge[E]=ge[y]=ge[S]=ge[A]=ge[D]=ge[O]=!1;var ze=typeof ja=="object"&&ja&&ja.Object===Object&&ja,dn=typeof self=="object"&&self&&self.Object===Object&&self,We=ze||dn||Function("return this")(),$t=t&&!t.nodeType&&t,Mt=$t&&!0&&e&&!e.nodeType&&e,Ut=Mt&&Mt.exports===$t,Lt=Ut&&ze.process,re=function(){try{return Lt&&Lt.binding&&Lt.binding("util")}catch{}}(),yi=re&&re.isTypedArray;function Li(C,I){for(var G=-1,se=C==null?0:C.length,ot=0,Se=[];++G<se;){var xt=C[G];I(xt,G,C)&&(Se[ot++]=xt)}return Se}function Ii(C,I){for(var G=-1,se=I.length,ot=C.length;++G<se;)C[ot+G]=I[G];return C}function nt(C,I){for(var G=-1,se=C==null?0:C.length;++G<se;)if(I(C[G],G,C))return!0;return!1}function fn(C,I){for(var G=-1,se=Array(C);++G<C;)se[G]=I(G);return se}function tn(C){return function(I){return C(I)}}function At(C,I){return C.has(I)}function Es(C,I){return C==null?void 0:C[I]}function Rn(C){var I=-1,G=Array(C.size);return C.forEach(function(se,ot){G[++I]=[ot,se]}),G}function Ia(C,I){return function(G){return C(I(G))}}function ne(C){var I=-1,G=Array(C.size);return C.forEach(function(se){G[++I]=se}),G}var he=Array.prototype,z=Function.prototype,$=Object.prototype,ue=We["__core-js_shared__"],_e=z.toString,ve=$.hasOwnProperty,Xt=function(){var C=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Dn=$.toString,yn=RegExp("^"+_e.call(ve).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jn=Ut?We.Buffer:void 0,Mn=We.Symbol,It=We.Uint8Array,ei=$.propertyIsEnumerable,xn=he.splice,Pa=Mn?Mn.toStringTag:void 0,sN=Object.getOwnPropertySymbols,rZ=Jn?Jn.isBuffer:void 0,sZ=Ia(Object.keys,Object),n1=fl(We,"DataView"),Tc=fl(We,"Map"),i1=fl(We,"Promise"),a1=fl(We,"Set"),r1=fl(We,"WeakMap"),wc=fl(Object,"create"),oZ=Ss(n1),lZ=Ss(Tc),uZ=Ss(i1),cZ=Ss(a1),dZ=Ss(r1),oN=Mn?Mn.prototype:void 0,s1=oN?oN.valueOf:void 0;function Ts(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function fZ(){this.__data__=wc?wc(null):{},this.size=0}function hZ(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function pZ(C){var I=this.__data__;if(wc){var G=I[C];return G===i?void 0:G}return ve.call(I,C)?I[C]:void 0}function mZ(C){var I=this.__data__;return wc?I[C]!==void 0:ve.call(I,C)}function gZ(C,I){var G=this.__data__;return this.size+=this.has(C)?0:1,G[C]=wc&&I===void 0?i:I,this}Ts.prototype.clear=fZ,Ts.prototype.delete=hZ,Ts.prototype.get=pZ,Ts.prototype.has=mZ,Ts.prototype.set=gZ;function Ba(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function bZ(){this.__data__=[],this.size=0}function vZ(C){var I=this.__data__,G=Bh(I,C);if(G<0)return!1;var se=I.length-1;return G==se?I.pop():xn.call(I,G,1),--this.size,!0}function yZ(C){var I=this.__data__,G=Bh(I,C);return G<0?void 0:I[G][1]}function xZ(C){return Bh(this.__data__,C)>-1}function _Z(C,I){var G=this.__data__,se=Bh(G,C);return se<0?(++this.size,G.push([C,I])):G[se][1]=I,this}Ba.prototype.clear=bZ,Ba.prototype.delete=vZ,Ba.prototype.get=yZ,Ba.prototype.has=xZ,Ba.prototype.set=_Z;function ws(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function EZ(){this.size=0,this.__data__={hash:new Ts,map:new(Tc||Ba),string:new Ts}}function TZ(C){var I=zh(this,C).delete(C);return this.size-=I?1:0,I}function wZ(C){return zh(this,C).get(C)}function SZ(C){return zh(this,C).has(C)}function AZ(C,I){var G=zh(this,C),se=G.size;return G.set(C,I),this.size+=G.size==se?0:1,this}ws.prototype.clear=EZ,ws.prototype.delete=TZ,ws.prototype.get=wZ,ws.prototype.has=SZ,ws.prototype.set=AZ;function Ph(C){var I=-1,G=C==null?0:C.length;for(this.__data__=new ws;++I<G;)this.add(C[I])}function CZ(C){return this.__data__.set(C,i),this}function kZ(C){return this.__data__.has(C)}Ph.prototype.add=Ph.prototype.push=CZ,Ph.prototype.has=kZ;function Mr(C){var I=this.__data__=new Ba(C);this.size=I.size}function OZ(){this.__data__=new Ba,this.size=0}function NZ(C){var I=this.__data__,G=I.delete(C);return this.size=I.size,G}function RZ(C){return this.__data__.get(C)}function DZ(C){return this.__data__.has(C)}function MZ(C,I){var G=this.__data__;if(G instanceof Ba){var se=G.__data__;if(!Tc||se.length<n-1)return se.push([C,I]),this.size=++G.size,this;G=this.__data__=new ws(se)}return G.set(C,I),this.size=G.size,this}Mr.prototype.clear=OZ,Mr.prototype.delete=NZ,Mr.prototype.get=RZ,Mr.prototype.has=DZ,Mr.prototype.set=MZ;function LZ(C,I){var G=jh(C),se=!G&&KZ(C),ot=!G&&!se&&o1(C),Se=!G&&!se&&!ot&&gN(C),xt=G||se||ot||Se,Kt=xt?fn(C.length,String):[],nn=Kt.length;for(var gt in C)ve.call(C,gt)&&!(xt&&(gt=="length"||ot&&(gt=="offset"||gt=="parent")||Se&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||YZ(gt,nn)))&&Kt.push(gt);return Kt}function Bh(C,I){for(var G=C.length;G--;)if(fN(C[G][0],I))return G;return-1}function IZ(C,I,G){var se=I(C);return jh(C)?se:Ii(se,G(C))}function Sc(C){return C==null?C===void 0?B:m:Pa&&Pa in Object(C)?FZ(C):XZ(C)}function lN(C){return Ac(C)&&Sc(C)==o}function uN(C,I,G,se,ot){return C===I?!0:C==null||I==null||!Ac(C)&&!Ac(I)?C!==C&&I!==I:PZ(C,I,G,se,uN,ot)}function PZ(C,I,G,se,ot,Se){var xt=jh(C),Kt=jh(I),nn=xt?l:Lr(C),gt=Kt?l:Lr(I);nn=nn==o?y:nn,gt=gt==o?y:gt;var ti=nn==y,Pi=gt==y,hn=nn==gt;if(hn&&o1(C)){if(!o1(I))return!1;xt=!0,ti=!1}if(hn&&!ti)return Se||(Se=new Mr),xt||gN(C)?cN(C,I,G,se,ot,Se):UZ(C,I,nn,G,se,ot,Se);if(!(G&a)){var xi=ti&&ve.call(C,"__wrapped__"),_i=Pi&&ve.call(I,"__wrapped__");if(xi||_i){var Ir=xi?C.value():C,za=_i?I.value():I;return Se||(Se=new Mr),ot(Ir,za,G,se,Se)}}return hn?(Se||(Se=new Mr),HZ(C,I,G,se,ot,Se)):!1}function BZ(C){if(!mN(C)||GZ(C))return!1;var I=hN(C)?yn:M;return I.test(Ss(C))}function zZ(C){return Ac(C)&&pN(C.length)&&!!ge[Sc(C)]}function jZ(C){if(!$Z(C))return sZ(C);var I=[];for(var G in Object(C))ve.call(C,G)&&G!="constructor"&&I.push(G);return I}function cN(C,I,G,se,ot,Se){var xt=G&a,Kt=C.length,nn=I.length;if(Kt!=nn&&!(xt&&nn>Kt))return!1;var gt=Se.get(C);if(gt&&Se.get(I))return gt==I;var ti=-1,Pi=!0,hn=G&r?new Ph:void 0;for(Se.set(C,I),Se.set(I,C);++ti<Kt;){var xi=C[ti],_i=I[ti];if(se)var Ir=xt?se(_i,xi,ti,I,C,Se):se(xi,_i,ti,C,I,Se);if(Ir!==void 0){if(Ir)continue;Pi=!1;break}if(hn){if(!nt(I,function(za,As){if(!At(hn,As)&&(xi===za||ot(xi,za,G,se,Se)))return hn.push(As)})){Pi=!1;break}}else if(!(xi===_i||ot(xi,_i,G,se,Se))){Pi=!1;break}}return Se.delete(C),Se.delete(I),Pi}function UZ(C,I,G,se,ot,Se,xt){switch(G){case U:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case Y:return!(C.byteLength!=I.byteLength||!Se(new It(C),new It(I)));case c:case d:case E:return fN(+C,+I);case f:return C.name==I.name&&C.message==I.message;case S:case D:return C==I+"";case b:var Kt=Rn;case A:var nn=se&a;if(Kt||(Kt=ne),C.size!=I.size&&!nn)return!1;var gt=xt.get(C);if(gt)return gt==I;se|=r,xt.set(C,I);var ti=cN(Kt(C),Kt(I),se,ot,Se,xt);return xt.delete(C),ti;case L:if(s1)return s1.call(C)==s1.call(I)}return!1}function HZ(C,I,G,se,ot,Se){var xt=G&a,Kt=dN(C),nn=Kt.length,gt=dN(I),ti=gt.length;if(nn!=ti&&!xt)return!1;for(var Pi=nn;Pi--;){var hn=Kt[Pi];if(!(xt?hn in I:ve.call(I,hn)))return!1}var xi=Se.get(C);if(xi&&Se.get(I))return xi==I;var _i=!0;Se.set(C,I),Se.set(I,C);for(var Ir=xt;++Pi<nn;){hn=Kt[Pi];var za=C[hn],As=I[hn];if(se)var bN=xt?se(As,za,hn,I,C,Se):se(za,As,hn,C,I,Se);if(!(bN===void 0?za===As||ot(za,As,G,se,Se):bN)){_i=!1;break}Ir||(Ir=hn=="constructor")}if(_i&&!Ir){var Uh=C.constructor,Hh=I.constructor;Uh!=Hh&&"constructor"in C&&"constructor"in I&&!(typeof Uh=="function"&&Uh instanceof Uh&&typeof Hh=="function"&&Hh instanceof Hh)&&(_i=!1)}return Se.delete(C),Se.delete(I),_i}function dN(C){return IZ(C,ZZ,VZ)}function zh(C,I){var G=C.__data__;return qZ(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(C,I){var G=Es(C,I);return BZ(G)?G:void 0}function FZ(C){var I=ve.call(C,Pa),G=C[Pa];try{C[Pa]=void 0;var se=!0}catch{}var ot=Dn.call(C);return se&&(I?C[Pa]=G:delete C[Pa]),ot}var VZ=sN?function(C){return C==null?[]:(C=Object(C),Li(sN(C),function(I){return ei.call(C,I)}))}:JZ,Lr=Sc;(n1&&Lr(new n1(new ArrayBuffer(1)))!=U||Tc&&Lr(new Tc)!=b||i1&&Lr(i1.resolve())!=x||a1&&Lr(new a1)!=A||r1&&Lr(new r1)!=O)&&(Lr=function(C){var I=Sc(C),G=I==y?C.constructor:void 0,se=G?Ss(G):"";if(se)switch(se){case oZ:return U;case lZ:return b;case uZ:return x;case cZ:return A;case dZ:return O}return I});function YZ(C,I){return I=I??s,!!I&&(typeof C=="number"||Be.test(C))&&C>-1&&C%1==0&&C<I}function qZ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function GZ(C){return!!Xt&&Xt in C}function $Z(C){var I=C&&C.constructor,G=typeof I=="function"&&I.prototype||$;return C===G}function XZ(C){return Dn.call(C)}function Ss(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function fN(C,I){return C===I||C!==C&&I!==I}var KZ=lN(function(){return arguments}())?lN:function(C){return Ac(C)&&ve.call(C,"callee")&&!ei.call(C,"callee")},jh=Array.isArray;function QZ(C){return C!=null&&pN(C.length)&&!hN(C)}var o1=rZ||eJ;function WZ(C,I){return uN(C,I)}function hN(C){if(!mN(C))return!1;var I=Sc(C);return I==h||I==g||I==u||I==T}function pN(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function mN(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Ac(C){return C!=null&&typeof C=="object"}var gN=yi?tn(yi):zZ;function ZZ(C){return QZ(C)?LZ(C):jZ(C)}function JZ(){return[]}function eJ(){return!1}e.exports=WZ}(ed,ed.exports);var qD=ed.exports;const GD=hl(qD),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function $D(e,t=0){return(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase()}let Ap;const XD=new Uint8Array(16);function KD(){if(!Ap){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ap=crypto.getRandomValues.bind(crypto)}return Ap(XD)}const xx={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cp(e,t,n){var a;if(xx.randomUUID&&!e)return xx.randomUUID();e=e||{};const i=e.random??((a=e.rng)==null?void 0:a.call(e))??KD();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,$D(i)}const QD=e=>{console.log(e.error)},WD=e=>{const t=HD({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||QD};return t.use(n),t};let _x=class{constructor({config:t}){var n,i;this.userToken=null,this.constructClientOptions=s=>{const o=this.config.apiUrl||"https://api.open.cx",l={"X-Bot-Token":this.config.token,"Content-Type":"application/json",Accept:"application/json",Authorization:s?`Bearer ${s}`:void 0};return{baseUrl:o,headers:l}},this.createOpenAPIClient=({baseUrl:s,headers:o})=>WD({baseUrl:s,onRequest:({request:l})=>{Object.entries(o).forEach(([u,c])=>{c&&l.headers.set(u,c)})}}),this.setAuthToken=s=>{this.userToken=s;const{baseUrl:o,headers:l}=this.constructClientOptions(s);this.client=this.createOpenAPIClient({baseUrl:o,headers:l})},this.getExternalWidgetConfig=async()=>await this.client.GET("/backend/widget/v2/config",{params:{header:{"x-bot-token":this.config.token}}}),this.sendMessage=async(s,o)=>await this.client.POST("/backend/widget/v2/chat/send",{body:s,signal:o}),this.createUnverifiedContact=async s=>await this.client.POST("/backend/widget/v2/contact/create-unverified",{params:{header:{"x-bot-token":this.config.token}},body:s}),this.createSession=async s=>await this.client.POST("/backend/widget/v2/create-session",{body:s}),this.pollSessionAndHistory=async({sessionId:s,abortSignal:o})=>await this.client.GET("/backend/widget/v2/poll/{sessionId}",{params:{path:{sessionId:s}},signal:o}),this.getSessions=async({cursor:s,filters:o,abortSignal:l})=>await this.client.GET("/backend/widget/v2/sessions",{params:{query:{cursor:s,filters:JSON.stringify(o)}},signal:l}),this.uploadFile=async({file:s,abortSignal:o,onProgress:l})=>new Promise((u,c)=>{var d;const f=new FormData;f.append("file",s);const h=new XMLHttpRequest;if(o&&(o.addEventListener("abort",()=>{h.abort(),c(new DOMException("Aborted","AbortError"))}),o.aborted)){c(new DOMException("Aborted","AbortError"));return}h.upload.addEventListener("progress",E=>{if(E.lengthComputable&&l){const m=Math.round(E.loaded/E.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const E=JSON.parse(h.responseText);u(E)}catch(E){c(new Error(`Failed to parse response: ${E}`))}else c(new Error(`Upload failed with status: ${h.status}`))}),h.addEventListener("error",()=>{c(new Error("Network error occurred"))}),h.addEventListener("timeout",()=>{c(new Error("Upload timed out"))});const{baseUrl:g}=this.constructClientOptions(this.userToken),b=`${g}/backend/widget/v2/upload`;h.open("POST",b),h.setRequestHeader("X-Bot-Token",this.config.token),this.userToken??((d=this.config.user)==null?void 0:d.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(f)}),this.vote=async s=>await this.client.POST("/backend/widget/v2/chat/vote",{body:s}),this.resolveSession=async(s,o)=>await this.client.POST("/backend/widget/v2/session/resolve",{body:s,signal:o}),this.createStateCheckpoint=async s=>await this.client.POST("/backend/widget/v2/checkpoint",{body:s}),this.submitCsat=async s=>await this.client.POST("/backend/widget/v2/submit-csat",{body:s}),this.config=t,this.userToken=((n=t.user)==null?void 0:n.token)||null;const{baseUrl:a,headers:r}=this.constructClientOptions((i=t.user)==null?void 0:i.token);this.client=this.createOpenAPIClient({baseUrl:a,headers:r})}};function ii(e,t){console.error(`Missing case for ${e} in ${t}`)}class js{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{GD(this.state,n)||(this.state=n,this.notifySubscribers(n))},this.setPartial=n=>{if(n==null)return;const i={...this.state,...n};this.set(i)},this.reset=()=>{this.set(this.initialState)},this.notifySubscribers=n=>{Array.from(this.subscribers).forEach(i=>{try{i(n)}catch(a){console.error(a)}})},this.subscribe=n=>(this.subscribers.add(n),()=>{this.subscribers.delete(n)}),this.state=t,this.initialState=t}}let Ex=class{constructor(){this.state=new js({isPolling:!1,isError:!1}),this.abortController=new AbortController,this.reset=()=>{var t;this.abortController.abort("Resetting poller"),(t=this.stopPolling)==null||t.call(this),this.stopPolling=null},this.stopPolling=null,this.startPolling=(t,n)=>{if(this.stopPolling)return;const i=[],a=async()=>{this.abortController=new AbortController,this.state.setPartial({isPolling:!0});try{await t(this.abortController.signal)}catch(r){if(this.abortController.signal.aborted)return;console.error("Failed to poll:",r),this.state.setPartial({isError:!0})}finally{this.state.setPartial({isPolling:!1})}this.abortController.signal.aborted?console.log("Poller aborted, not scheduling anymore"):i.push(setTimeout(a,n))};a(),this.stopPolling=()=>{i.forEach(clearTimeout),this.state.reset()}}}};function Tx(e){try{const t=e();return t instanceof Promise?t.then(n=>({data:n})).catch(n=>({error:n})):{data:t}}catch(t){return{error:t}}}let ZD=class{constructor({api:t,config:n,sessionCtx:i,messageCtx:a,sessionPollingIntervalSeconds:r}){this.poller=new Ex,this.fetchSessionAndFullHistoryAbortController=new AbortController,this.registerPolling=()=>{this.sessionCtx.sessionState.subscribe(({session:s})=>{s!=null&&s.id?this.poller.startPolling(async o=>{this.fetchSessionAndHistory({sessionId:s.id,abortSignal:o})},this.sessionPollingIntervalSeconds*1e3):this.poller.reset()}),this.sessionCtx.sessionState.subscribe(({session:s})=>{if(s!=null&&s.id&&!s.isOpened)try{this.fetchSessionAndFullHistoryAbortController=new AbortController,this.fetchSessionAndHistory({sessionId:s.id,abortSignal:this.fetchSessionAndFullHistoryAbortController.signal})}catch(o){this.fetchSessionAndFullHistoryAbortController.signal.aborted||console.error("Failed to fetch session and full history:",o)}else this.fetchSessionAndFullHistoryAbortController.abort()})},this.fetchSessionAndHistory=async({sessionId:s,abortSignal:o})=>{const l=this.messageCtx.state.get().messages.length===0;l&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const{data:u}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o});if(u!=null&&u.session&&(this.sessionCtx.sessionState.setPartial({session:u.session}),this.sessionCtx.setSessions([u.session])),u!=null&&u.history&&u.history.length>0){const c=this.messageCtx.state.get().messages,d=u.history.map(this.mapHistoryToMessage).filter(f=>f!==null).filter(f=>!c.some(h=>h.id===f.id));if(this.messageCtx.state.setPartial({messages:[...c,...d]}),l)this.messageCtx.markAsDispatchedToOnMessageReceivedHook(d.map(f=>f.id));else for(const f of d)this.messageCtx.dispatchToOnMessageReceivedHook(f)}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o;const l={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...l,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...l,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatarUrl:s.sender.avatar||null,avatar:s.sender.avatar||null,id:null,isAi:!1}};if(s.sender.kind==="ai"){const u=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...l,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatarUrl:null,avatar:null},data:{message:s.content.text||"",action:u?{name:u.actionName,data:this.extractActionResult(u)}:void 0}}}if(s.sender.kind==="system"){const u=this.constructSystemMessage(s);return u===null?null:{...u}}return null},this.constructSystemMessage=s=>{if(!s||!s.systemMessagePayload)return null;switch(s.systemMessagePayload.type){case"state_checkpoint":return{id:s.publicId,type:"SYSTEM",subtype:"state_checkpoint",data:{payload:s.systemMessagePayload.payload},timestamp:s.sentAt||"",attachments:void 0};case"csat_requested":return{id:s.publicId,type:"SYSTEM",subtype:"csat_requested",data:{payload:void 0},timestamp:s.sentAt||"",attachments:void 0};case"csat_submitted":return{id:s.publicId,type:"SYSTEM",subtype:"csat_submitted",data:{payload:{score:s.systemMessagePayload.payload.score??void 0,feedback:s.systemMessagePayload.payload.feedback??void 0}},timestamp:s.sentAt||"",attachments:void 0};case"none":return null;default:return ii(s.systemMessagePayload,this.constructSystemMessage.name),null}},this.extractActionResult=s=>{const o=s.result;if(o===null||typeof o!="object")return o;if("responseBodyText"in o&&typeof o.responseBodyText=="string"){const l=o.responseBodyText,u=Tx(()=>JSON.parse(l)).data;if(u)return u}return s.result},this.api=t,this.config=n,this.sessionCtx=i,this.messageCtx=a,this.sessionPollingIntervalSeconds=r,this.registerPolling()}};class JD{constructor({config:t,api:n,storageCtx:i}){var a;this.shouldCollectData=()=>{var r;return!!(!((r=this.state.get().contact)!=null&&r.token)&&this.config.collectUserData)},this.autoCreateUnverifiedUserIfNotExists=async()=>{var r,s,o,l,u,c,d,f,h,g,b,E,m,y;if(!((r=this.config.user)!=null&&r.token)){if(this.config.collectUserData&&!((o=(s=this.config.user)==null?void 0:s.data)!=null&&o.email)){if((l=this.config.extraDataCollectionFields)!=null&&l.length)return;const x=await((u=this.storageCtx)==null?void 0:u.getContactToken());x&&await this.setUnverifiedContact(x);return}if(!((d=(c=this.config.user)==null?void 0:c.data)!=null&&d.email)){const x=await((f=this.storageCtx)==null?void 0:f.getContactToken());if(x){await this.setUnverifiedContact(x);return}}await this.createUnverifiedContact({email:(g=(h=this.config.user)==null?void 0:h.data)==null?void 0:g.email,non_verified_name:(E=(b=this.config.user)==null?void 0:b.data)==null?void 0:E.name,non_verified_custom_data:(y=(m=this.config.user)==null?void 0:m.data)==null?void 0:y.customData})}},this.createUnverifiedContact=async(r,s)=>{this.state.setPartial({extraCollectedData:s});try{this.state.setPartial({isCreatingUnverifiedContact:!0,isErrorCreatingUnverifiedContact:!1});const{data:o}=await this.api.createUnverifiedContact(r);o!=null&&o.token?await this.setUnverifiedContact(o.token):this.state.setPartial({isErrorCreatingUnverifiedContact:!0})}finally{this.state.setPartial({isCreatingUnverifiedContact:!1})}},this.setUnverifiedContact=async r=>{var s,o,l,u;const c=await((s=this.storageCtx)==null?void 0:s.getExternalContactId()),d=((o=this.config.user)==null?void 0:o.externalId)||c||Cp();this.api.setAuthToken(r),await((l=this.storageCtx)==null?void 0:l.setContactToken(r)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(d)),this.state.setPartial({contact:{token:r,externalId:d}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new js({contact:(a=t.user)!=null&&a.token?{token:t.user.token,externalId:t.user.externalId}:null,extraCollectedData:void 0,isCreatingUnverifiedContact:!1,isErrorCreatingUnverifiedContact:!1}),this.autoCreateUnverifiedUserIfNotExists()}}function xl(){return Cp()}let e5=class{constructor({config:t,api:n,sessionCtx:i,messageCtx:a}){this.submitCsat=async r=>{var s;const o=(s=this.sessionCtx.sessionState.get().session)==null?void 0:s.id;if(!o)return{data:null,error:"No session id found"};const l=xl();this.messageCtx.state.setPartial({messages:[...this.messageCtx.state.get().messages,{id:l,type:"SYSTEM",subtype:"csat_submitted",timestamp:new Date().toISOString(),data:{payload:{score:r.score,feedback:r.feedback}}}]});const{data:u,error:c}=await this.api.submitCsat({...r,system_message_uuid:l,session_id:o});return{data:u,error:c}},this.config=t,this.api=n,this.sessionCtx=i,this.messageCtx=a}},t5=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:a}){this.sessionsRefresher=new Ex,this.sessionState=new js({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new js({data:[],cursor:void 0,isLastPage:!1,didStartInitialFetch:!1,isInitialFetchLoading:!0}),this.reset=async()=>{this.sessionState.reset()},this.registerSessionsRefresherWrapper=()=>{var r;(r=this.contactCtx.state.get().contact)!=null&&r.token&&!this.sessionsState.get().didStartInitialFetch?this.registerSessionsRefresher():this.contactCtx.state.subscribe(({contact:s})=>{s!=null&&s.token&&!this.sessionsState.get().didStartInitialFetch&&this.registerSessionsRefresher()})},this.registerSessionsRefresher=()=>{this.sessionsRefresher.startPolling(async()=>{this.sessionsState.get().didStartInitialFetch===!1&&this.sessionsState.setPartial({didStartInitialFetch:!0}),await this.refreshSessions(),this.sessionsState.get().isInitialFetchLoading===!0&&this.sessionsState.setPartial({isInitialFetchLoading:!1})},this.sessionsPollingIntervalSeconds*1e3)},this.getParsedCustomData=()=>Object.fromEntries(Object.entries(this.config.sessionCustomData||{}).map(([r,s])=>{var o;return typeof s=="string"?[r,s]:typeof s=="boolean"?[r,s]:typeof s=="number"?[r,s]:[r,((o=Tx(()=>JSON.stringify(s)))==null?void 0:o.data)||""]})),this.createSession=async()=>{var r,s,o;this.sessionState.setPartial({session:null,isCreatingSession:!0});const l=(r=this.contactCtx.state.get().contact)==null?void 0:r.externalId,u={...this.getParsedCustomData(),...l?{external_id:l}:{}},{data:c,error:d}=await this.api.createSession({customData:Object.keys(u).length>0?u:void 0});return c?(this.sessionState.setPartial({session:c,isCreatingSession:!1}),(o=(s=this.config.hooks)==null?void 0:s.onSessionCreated)==null||o.call(s,{session:c}),c):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",d),null)},this.loadMoreSessions=async()=>{if(this.sessionsState.get().isLastPage)return;const{data:r}=await this.getSessions({cursor:this.sessionsState.get().cursor});if(r){const s=[...this.sessionsState.get().data,...r.items].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s,cursor:r.next||void 0,isLastPage:r.next===null})}},this.getSessions=async({cursor:r})=>{var s,o;if(!((s=this.contactCtx.state.get().contact)!=null&&s.token))return{data:null};const l=(o=this.contactCtx.state.get().contact)==null?void 0:o.externalId;return await this.api.getSessions({cursor:r,filters:l?{external_id:l}:{}})},this.setSessions=r=>{const s=[...r,...this.sessionsState.get().data].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s})},this.refreshSessions=async()=>{const{data:r}=await this.getSessions({cursor:void 0});r&&this.setSessions(r.items)},this.resolveSession=async()=>{const r=this.sessionState.get().session;if(!r||!r.isOpened)return{success:!1,error:"Session is not opened"};this.sessionState.setPartial({isResolvingSession:!0});const{data:s,error:o}=await this.api.resolveSession({session_id:r.id});return s?(this.sessionState.setPartial({session:s,isResolvingSession:!1}),{success:!0,data:s}):(this.sessionState.setPartial({isResolvingSession:!1}),{success:!1,error:o})},this.createStateCheckpoint=async r=>{var s;const o=(s=this.sessionState.get().session)==null?void 0:s.id;if(!o)return;const{data:l,error:u}=await this.api.createStateCheckpoint({session_id:o,payload:r});return l!=null&&l.success?{success:!0}:{success:!1}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=a,this.registerSessionsRefresherWrapper()}},n5=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:a}){this.state=new js({messages:[],isSendingMessage:!1,isSendingMessageToAI:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.messageIdsDispatchedToOnMessageReceivedHook=new Set,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset(),this.messageIdsDispatchedToOnMessageReceivedHook.clear()},this.dispatchToOnMessageReceivedHook=r=>{var s,o;if(r.type==="USER"||this.messageIdsDispatchedToOnMessageReceivedHook.has(r.id))return;const l=this.sessionCtx.sessionState.get().session;l&&(this.messageIdsDispatchedToOnMessageReceivedHook.add(r.id),(o=(s=this.config.hooks)==null?void 0:s.onMessageReceived)==null||o.call(s,{message:r,session:l}))},this.markAsDispatchedToOnMessageReceivedHook=r=>{r.forEach(s=>this.messageIdsDispatchedToOnMessageReceivedHook.add(s))},this.sendMessage=async r=>{var s,o,l,u,c,d,f,h,g;let b;try{if(!r.content.trim()&&(!r.attachments||r.attachments.length===0)){console.warn("Cannot send an empty message of no content or attachments");return}const E=this.sessionCtx.sessionState.get().session,m=(E==null?void 0:E.assignee.kind)==="ai",y=this.state.get().isSendingMessageToAI,x=this.state.get().messages.at(-1);if(this.config.disableSendingWhenAwaitingAIReply!==!1&&(y||m&&(x==null?void 0:x.type)==="USER")){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController.abort("Superseded by a newer message"),this.sendMessageAbortController=new AbortController,b=this.sendMessageAbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1,isSendingMessage:!0,isSendingMessageToAI:!!m||!E});const T=this.state.get().messages,S=!((s=this.sessionCtx.sessionState.get().session)!=null&&s.id)&&T.length===0&&((o=this.config.advancedInitialMessages)==null?void 0:o.some(O=>O.persistent)),A=S?(this.config.advancedInitialMessages||[]).filter(O=>O.persistent).map(O=>({id:xl(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:O.message},agent:this.config.bot?{...this.config.bot,isAi:!0,id:null}:void 0})):[],D=this.toUserMessage(r.content.trim(),r.attachments||void 0);if(this.state.setPartial({messages:[...A,...T,D]}),!((l=this.sessionCtx.sessionState.get().session)!=null&&l.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(u=this.sessionCtx.sessionState.get().session)==null?void 0:u.id;if(!L)return;const{data:B}=await this.api.sendMessage({uuid:D.id,bot_token:this.config.token,headers:this.config.headers,query_params:this.config.queryParams,body_properties:this.config.bodyProperties,session_id:L,content:D.content,attachments:r.attachments,clientContext:this.config.context,custom_data:{...this.config.messageCustomData||{},...r.customData||{}},language:this.config.language,exit_mode_prompt:r.exitModePrompt,initial_messages:S?A.map(O=>({uuid:O.id,content:O.data.message})):void 0},b.signal);if(B!=null&&B.success){const O=this.toBotMessage(B);if(O){const Y=this.state.get().messages;if(Y.some(U=>U.id===O.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((c=B.autopilotResponse)==null?void 0:c.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,O],lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((h=B.uiResponse)==null?void 0:h.mightSolveUserIssue)}),this.dispatchToOnMessageReceivedHook(O)}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const O=this.toBotErrorMessage(((g=B==null?void 0:B.error)==null?void 0:g.message)||"Something went wrong. Please refresh the page or try again."),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,O]})}}catch(E){b!=null&&b.signal.aborted||console.error("Failed to send message:",E)}finally{b!=null&&b.signal.aborted||this.state.setPartial({isSendingMessage:!1,isSendingMessageToAI:!1})}},this.toUserMessage=(r,s)=>{const o=(()=>{const l=this.contactCtx.state.get().extraCollectedData;return this.state.get().messages.length===0&&l&&Object.keys(l).length>0?`${Object.entries(l).filter(([u,c])=>!!c).map(([u,c])=>`${u}: ${c}`).join(`
66
66
  `)}
67
67
 
68
- ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOString(),attachments:s,timestamp:new Date().toISOString()}},this.toBotMessage=r=>{var s;return r.success&&r.autopilotResponse?{type:"AI",id:r.autopilotResponse.id||xl(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatarUrl:null,avatar:null,id:null}:void 0,data:{message:r.autopilotResponse.value.content,action:(s=r.uiResponse)!=null&&s.value.name?{name:r.uiResponse.value.name,data:r.uiResponse.value.request_response}:void 0}}:null},this.toBotErrorMessage=r=>({type:"AI",id:xl(),timestamp:new Date().toISOString(),component:"bot_message",data:{message:r,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=a}},i5=class{constructor({config:t,contactCtx:n,sessionCtx:i,resetChat:a}){var r;this.registerRoutingListener=()=>{this.contactCtx.state.subscribe(({contact:s})=>{var o;s!=null&&s.token&&this.state.get().screen==="welcome"&&this.state.setPartial({screen:(o=this.config.router)!=null&&o.chatScreenOnly?"chat":"sessions"})}),this.sessionCtx.sessionsState.subscribe(({isInitialFetchLoading:s,data:o})=>{var l,u,c,d;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const f=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return f?this.toChatScreen(f):void 0}o.length||((d=this.config.router)==null?void 0:d.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{var o,l;this.resetChat();let u;if(s){if(u=this.sessionCtx.sessionsState.get().data.find(c=>c.id===s),!u)return;this.sessionCtx.sessionState.setPartial({session:u})}this.state.setPartial({screen:"chat"}),(l=(o=this.config.hooks)==null?void 0:o.onNavigateToChat)==null||l.call(o,{session:u})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=a,this.state=new js({screen:this.contactCtx.shouldCollectData()?"welcome":(r=this.config.router)!=null&&r.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},a5=class{constructor({storage:t,config:n}){this.KEYS={contactToken:i=>`opencx-widget:org-token-${i}:contact-token`,externalContactId:i=>`opencx-widget:org-token-${i}:external-contact-id`},this.setContactToken=async i=>{await this.storage.set(this.KEYS.contactToken(this.config.token),i)},this.getContactToken=async()=>this.storage.get(this.KEYS.contactToken(this.config.token)),this.setExternalContactId=async i=>{await this.storage.set(this.KEYS.externalContactId(this.config.token),i)},this.getExternalContactId=async()=>this.storage.get(this.KEYS.externalContactId(this.config.token)),this.storage=t,this.config=n}};const _l=class Fh{constructor({config:t,storage:n,modes:i,org:a}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!Fh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=a,this.api=new _x({config:t}),this.storageCtx=n?new a5({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new JD({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new t5({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:Fh.pollingIntervalsSeconds.sessions}),this.messageCtx=new n5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new e5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new ZD({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:Fh.pollingIntervalsSeconds.session}),this.routerCtx=new i5({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};_l.pollingIntervalsSeconds=null,_l.initialize=async({config:e,storage:t})=>{var n,i,a;const r=await new _x({config:e}).getExternalWidgetConfig();if(!r.data)throw new Error("Failed to fetch widget config");return _l.pollingIntervalsSeconds={session:((n=r.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=r.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new _l({config:e,storage:t,modes:((a=r.data)==null?void 0:a.modes)||[],org:{id:r.data.org.id,name:r.data.org.name}})};let r5=_l;const s5={write_a_message_placeholder:"اكتب رسالة...",your_issue_has_been_resolved:"تم حل مشكلتك!",new_conversation:"محادثة جديدة",welcome_screen_title:"مرحبًا بك في دردشة الدعم الخاصة بنا",welcome_screen_description:"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",your_name_placeholder:"اسمك",your_email_placeholder:"عنوان بريدك الإلكتروني",start_chat_button:"تحدث إلى الدعم",start_chat_button_loading:"جاري الاتصال...",i_need_more_help:"أحتاج المزيد من المساعدة",this_was_helpful:"كان هذا مفيدًا",optional:"اختياري",no_conversations_yet:"لا يوجد محادثات",back_to_conversations:"العودة إلى المحادثات",closed_conversations:"المحادثات المغلقة",csat_title:"كيف كانت محادثتك؟",csat_submitted_title:"لقد قيّمت المحادثة بـ",csat_feedback_placeholder:"أخبرنا المزيد... (اختياري)"},o5={write_a_message_placeholder:"একটি বার্তা লিখুন...",your_issue_has_been_resolved:"আপনার সমস্যা সমাধান হয়েছে!",new_conversation:"নতুন কথোপকথন",welcome_screen_title:"আমাদের সাপোর্ট চ্যাটে স্বাগতম",welcome_screen_description:"আমরা সাহায্য করতে এখানে আছি! একটি কথোপকথন শুরু করুন এবং আমরা যত তাড়াতাড়ি সম্ভব আপনার কাছে ফিরে আসব।",your_name_placeholder:"আপনার নাম",your_email_placeholder:"আপনার ইমেইল ঠিকানা",start_chat_button:"সাপোর্টের সাথে কথা বলুন",start_chat_button_loading:"সংযোগ হচ্ছে...",i_need_more_help:"আমার আরও সাহায্য দরকার",this_was_helpful:"এটি সহায়ক ছিল",optional:"ঐচ্ছিক",no_conversations_yet:"এখনো কোনো কথোপকথন নেই",back_to_conversations:"কথোপকথনে ফিরে যান",closed_conversations:"বন্ধ কথোপকথন",csat_title:"আপনার কথোপকথন কেমন ছিল?",csat_submitted_title:"আপনি কথোপকথনটি মূল্যায়ন করেছেন",csat_feedback_placeholder:"আমাদের আরও বলুন... (ঐচ্ছিক)"},l5={write_a_message_placeholder:"Напишете съобщение...",your_issue_has_been_resolved:"Вашият проблем е разрешен!",new_conversation:"Нов разговор",welcome_screen_title:"Добре дошли в нашия чат за поддръжка",welcome_screen_description:"Тук сме, за да помогнем! Започнете разговор и ще ви отговорим възможно най-скоро.",your_name_placeholder:"Вашето име",your_email_placeholder:"Вашият имейл адрес",start_chat_button:"Свържете се с поддръжка",start_chat_button_loading:"Свързване...",i_need_more_help:"Имам нужда от повече помощ",this_was_helpful:"Това беше полезно",optional:"По избор",no_conversations_yet:"Все още няма разговори",back_to_conversations:"Назад към разговорите",closed_conversations:"Затворени разговори",csat_title:"Как мина разговорът ви?",csat_submitted_title:"Оценихте разговора като",csat_feedback_placeholder:"Кажете ни повече... (по желание)"},u5={write_a_message_placeholder:"Napište zprávu...",your_issue_has_been_resolved:"Váš problém byl vyřešen!",new_conversation:"Nová konverzace",welcome_screen_title:"Vítejte v našem chatu podpory",welcome_screen_description:"Jsme tu, abychom vám pomohli! Zahajte konverzaci a ozveme se vám co nejdříve.",your_name_placeholder:"Vaše jméno",your_email_placeholder:"Vaše e-mailová adresa",start_chat_button:"Kontaktovat podporu",start_chat_button_loading:"Připojování...",i_need_more_help:"Potřebuji další pomoc",this_was_helpful:"Toto bylo užitečné",optional:"Volitelné",no_conversations_yet:"Zatím žádné konverzace",back_to_conversations:"Zpět na konverzace",closed_conversations:"Uzavřené konverzace",csat_title:"Jaká byla vaše konverzace?",csat_submitted_title:"Konverzaci jste ohodnotili jako",csat_feedback_placeholder:"Řekněte nám více... (nepovinné)"},c5={write_a_message_placeholder:"Skriv en besked...",your_issue_has_been_resolved:"Dit problem er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vores support chat",welcome_screen_description:"Vi er her for at hjælpe! Start en samtale, og vi vender tilbage til dig så hurtigt som muligt.",your_name_placeholder:"Dit navn",your_email_placeholder:"Din e-mailadresse",start_chat_button:"Tal med support",start_chat_button_loading:"Forbinder...",i_need_more_help:"Jeg har brug for mere hjælp",this_was_helpful:"Dette var nyttigt",optional:"Valgfrit",no_conversations_yet:"Ingen samtaler endnu",back_to_conversations:"Tilbage til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var din samtale?",csat_submitted_title:"Du vurderede samtalen som",csat_feedback_placeholder:"Fortæl os mere... (valgfrit)"},d5={write_a_message_placeholder:"Γράψτε ένα μήνυμα...",your_issue_has_been_resolved:"Το πρόβλημά σας επιλύθηκε!",new_conversation:"Νέα συνομιλία",welcome_screen_title:"Καλώς ήρθατε στη συνομιλία υποστήριξης",welcome_screen_description:"Είμαστε εδώ για να βοηθήσουμε! Ξεκινήστε μια συνομιλία και θα σας απαντήσουμε το συντομότερο δυνατό.",your_name_placeholder:"Το όνομά σας",your_email_placeholder:"Η διεύθυνση email σας",start_chat_button:"Επικοινωνία με την υποστήριξη",start_chat_button_loading:"Σύνδεση...",i_need_more_help:"Χρειάζομαι περισσότερη βοήθεια",this_was_helpful:"Αυτό ήταν χρήσιμο",optional:"Προαιρετικό",no_conversations_yet:"Δεν υπάρχουν συνομιλίες ακόμα",back_to_conversations:"Πίσω στις συνομιλίες",closed_conversations:"Κλειστές συνομιλίες",csat_title:"Πώς ήταν η συνομιλία σας;",csat_submitted_title:"Βαθμολογήσατε τη συνομιλία ως",csat_feedback_placeholder:"Πείτε μας περισσότερα... (προαιρετικό)"},f5={write_a_message_placeholder:"Nachricht schreiben...",your_issue_has_been_resolved:"Ihr Problem wurde gelöst!",new_conversation:"Neue Konversation",welcome_screen_title:"Willkommen in unserem Support-Chat",welcome_screen_description:"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",your_name_placeholder:"Ihr Name",your_email_placeholder:"Ihre E-Mail-Adresse",start_chat_button:"Mit dem Support sprechen",start_chat_button_loading:"Verbindung wird hergestellt...",i_need_more_help:"Ich brauche weitere Hilfe",this_was_helpful:"Dies war hilfreich",optional:"Optional",no_conversations_yet:"noch keine Gespräche",back_to_conversations:"Zurück zur Konversationen",closed_conversations:"Geschlossene Konversationen",csat_title:"Wie war Ihr Gespräch?",csat_submitted_title:"Sie haben das Gespräch bewertet als",csat_feedback_placeholder:"Erzählen Sie uns mehr... (optional)"},h5={write_a_message_placeholder:"Write a message...",your_issue_has_been_resolved:"Your issue has been resolved!",new_conversation:"New conversation",welcome_screen_title:"Welcome to our support chat",welcome_screen_description:"We're here to help! Start a conversation and we'll get back to you as soon as possible.",your_name_placeholder:"Your name",your_email_placeholder:"Your email address",start_chat_button:"Talk to support",start_chat_button_loading:"Connecting...",i_need_more_help:"I need more help",this_was_helpful:"This was helpful",optional:"Optional",no_conversations_yet:"No conversations yet",back_to_conversations:"Back to conversations",closed_conversations:"Closed conversations",csat_title:"How was your conversation?",csat_submitted_title:"You rated the conversation as",csat_feedback_placeholder:"Tell us more... (optional)"},p5={write_a_message_placeholder:"Escribe un mensaje...",your_issue_has_been_resolved:"¡Tu problema fue resuelto!",new_conversation:"Nueva conversación",welcome_screen_title:"Bienvenido a nuestro chat de soporte",welcome_screen_description:"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",your_name_placeholder:"Tu nombre",your_email_placeholder:"Tu correo electrónico",start_chat_button:"Hablar con soporte",start_chat_button_loading:"Conectando...",i_need_more_help:"Necesito más ayuda",this_was_helpful:"Esto fue útil",optional:"Opcional",no_conversations_yet:"Sin conversaciones aún",back_to_conversations:"Volver a conversaciones",closed_conversations:"Conversaciones cerradas",csat_title:"¿Qué tal fue tu conversación?",csat_submitted_title:"Valoraste la conversación como",csat_feedback_placeholder:"Cuéntanos más... (opcional)"},m5={write_a_message_placeholder:"Magsulat ng mensahe...",your_issue_has_been_resolved:"Nalutas na ang iyong isyu!",new_conversation:"Bagong usapan",welcome_screen_title:"Maligayang pagdating sa aming support chat",welcome_screen_description:"Narito kami upang tumulong! Magsimula ng usapan at babalikan ka namin sa lalong madaling panahon.",your_name_placeholder:"Iyong pangalan",your_email_placeholder:"Iyong email address",start_chat_button:"Makipag-usap sa support",start_chat_button_loading:"Kumokonekta...",i_need_more_help:"Kailangan ko pa ng tulong",this_was_helpful:"Nakatulong ito",optional:"Opsyonal",no_conversations_yet:"Wala pang mga usapan",back_to_conversations:"Bumalik sa mga usapan",closed_conversations:"Mga saradong usapan",csat_title:"Kumusta ang iyong usapan?",csat_submitted_title:"Ni-rate mo ang usapan bilang",csat_feedback_placeholder:"Sabihin pa sa amin... (opsyonal)"},g5={write_a_message_placeholder:"Kirjoita viesti...",your_issue_has_been_resolved:"Ongelmasi on ratkaistu!",new_conversation:"Uusi keskustelu",welcome_screen_title:"Tervetuloa tukichattiin",welcome_screen_description:"Olemme täällä auttamassa! Aloita keskustelu ja palaamme sinulle mahdollisimman pian.",your_name_placeholder:"Nimesi",your_email_placeholder:"Sähköpostiosoitteesi",start_chat_button:"Keskustele tuen kanssa",start_chat_button_loading:"Yhdistetään...",i_need_more_help:"Tarvitsen lisää apua",this_was_helpful:"Tämä oli hyödyllistä",optional:"Valinnainen",no_conversations_yet:"Ei vielä keskusteluja",back_to_conversations:"Takaisin keskusteluihin",closed_conversations:"Suljetut keskustelut",csat_title:"Millainen keskustelusi oli?",csat_submitted_title:"Arvioit keskustelun",csat_feedback_placeholder:"Kerro lisää... (valinnainen)"},b5={write_a_message_placeholder:"Écrivez un message...",your_issue_has_been_resolved:"Votre problème a été résolu !",new_conversation:"Nouvelle conversation",welcome_screen_title:"Bienvenue dans notre chat de support",welcome_screen_description:"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",your_name_placeholder:"Votre nom",your_email_placeholder:"Votre adresse e-mail",start_chat_button:"Parler au support",start_chat_button_loading:"Connexion...",i_need_more_help:"Je besoin d'aide plus",this_was_helpful:"C'était utile",optional:"Optionnel",no_conversations_yet:"Aucune conversation pour le moment",back_to_conversations:"Retour aux conversations",closed_conversations:"Conversations fermées",csat_title:"Comment s’est passée votre conversation ?",csat_submitted_title:"Vous avez évalué la conversation comme",csat_feedback_placeholder:"Dites-nous en plus... (facultatif)"},v5={write_a_message_placeholder:"एक संदेश लिखें...",your_issue_has_been_resolved:"आपकी समस्या हल हो गई है!",new_conversation:"नई बातचीत",welcome_screen_title:"हमारी सहायता चैट में आपका स्वागत है",welcome_screen_description:"हम मदद के लिए यहाँ हैं! बातचीत शुरू करें और हम जल्द से जल्द आपसे संपर्क करेंगे।",your_name_placeholder:"आपका नाम",your_email_placeholder:"आपका ईमेल पता",start_chat_button:"सहायता से बात करें",start_chat_button_loading:"कनेक्ट हो रहा है...",i_need_more_help:"मुझे और मदद चाहिए",this_was_helpful:"यह मददगार था",optional:"वैकल्पिक",no_conversations_yet:"अभी तक कोई बातचीत नहीं",back_to_conversations:"बातचीत पर वापस जाएं",closed_conversations:"बंद बातचीत",csat_title:"आपकी बातचीत कैसी रही?",csat_submitted_title:"आपने बातचीत को आंका",csat_feedback_placeholder:"हमें और बताएं... (वैकल्पिक)"},y5={write_a_message_placeholder:"Scrivi un messaggio...",your_issue_has_been_resolved:"Il tuo problema è stato risolto!",new_conversation:"Nuova conversazione",welcome_screen_title:"Benvenuto nella nostra chat di supporto",welcome_screen_description:"Siamo qui per aiutarti! Inizia una conversazione e ti risponderemo il prima possibile.",your_name_placeholder:"Il tuo nome",your_email_placeholder:"Il tuo indirizzo email",start_chat_button:"Parla con il supporto",start_chat_button_loading:"Connessione in corso...",i_need_more_help:"Ho bisogno di ulteriore aiuto",this_was_helpful:"Questo è stato utile",optional:"Opzionale",no_conversations_yet:"Nessuna conversazione ancora",back_to_conversations:"Torna alle conversazioni",closed_conversations:"Conversazioni chiuse",csat_title:"Com’è andata la tua conversazione?",csat_submitted_title:"Hai valutato la conversazione come",csat_feedback_placeholder:"Dicci di più... (facoltativo)"},x5={write_a_message_placeholder:"メッセージを入力...",your_issue_has_been_resolved:"問題が解決しました!",new_conversation:"新しい会話",welcome_screen_title:"サポートチャットへようこそ",welcome_screen_description:"お手伝いいたします!会話を開始していただければ、できるだけ早くご連絡いたします。",your_name_placeholder:"お名前",your_email_placeholder:"メールアドレス",start_chat_button:"サポートに相談",start_chat_button_loading:"接続中...",i_need_more_help:"さらにサポートが必要です",this_was_helpful:"役に立ちました",optional:"任意",no_conversations_yet:"まだ会話がありません",back_to_conversations:"会話一覧に戻る",closed_conversations:"終了した会話",csat_title:"会話はいかがでしたか?",csat_submitted_title:"会話を次のように評価しました",csat_feedback_placeholder:"詳しく教えてください...(任意)"},_5={write_a_message_placeholder:"메시지를 입력하세요...",your_issue_has_been_resolved:"문제가 해결되었습니다!",new_conversation:"새 대화",welcome_screen_title:"고객 지원 채팅에 오신 것을 환영합니다",welcome_screen_description:"도움을 드리기 위해 여기 있습니다! 대화를 시작해 주시면 가능한 한 빨리 연락드리겠습니다.",your_name_placeholder:"이름",your_email_placeholder:"이메일 주소",start_chat_button:"상담원과 대화",start_chat_button_loading:"연결 중...",i_need_more_help:"추가 도움이 필요합니다",this_was_helpful:"도움이 되었습니다",optional:"선택 사항",no_conversations_yet:"아직 대화가 없습니다",back_to_conversations:"대화 목록으로 돌아가기",closed_conversations:"종료된 대화",csat_title:"대화는 어떠셨나요?",csat_submitted_title:"대화를 다음과 같이 평가했습니다",csat_feedback_placeholder:"더 알려주세요... (선택 사항)"},E5={write_a_message_placeholder:"Schrijf een bericht...",your_issue_has_been_resolved:"Uw probleem is opgelost!",new_conversation:"Nieuw gesprek",welcome_screen_title:"Welkom bij onze supportchat",welcome_screen_description:"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",your_name_placeholder:"Uw naam",your_email_placeholder:"Uw e-mailadres",start_chat_button:"Praat met ondersteuning",start_chat_button_loading:"Verbinding maken...",i_need_more_help:"Ik heb nog meer hulp nodig",this_was_helpful:"Mijn vraag is opgelost",optional:"Optioneel",no_conversations_yet:"Nog geen gesprekken",back_to_conversations:"Terug naar gesprekken",closed_conversations:"Afgesloten gesprekken",csat_title:"Hoe was je gesprek?",csat_submitted_title:"Je hebt het gesprek beoordeeld als",csat_feedback_placeholder:"Vertel ons meer... (optioneel)"},T5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Problemet ditt er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte-chat",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale så kommer vi tilbake til deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},w5={write_a_message_placeholder:"Napisz wiadomość...",your_issue_has_been_resolved:"Twój problem został rozwiązany!",new_conversation:"Nowa rozmowa",welcome_screen_title:"Witamy w naszym czacie wsparcia",welcome_screen_description:"Jesteśmy tutaj, aby pomóc! Rozpocznij rozmowę, a odpowiemy jak najszybciej.",your_name_placeholder:"Twoje imię",your_email_placeholder:"Twój adres email",start_chat_button:"Porozmawiaj ze wsparciem",start_chat_button_loading:"Łączenie...",i_need_more_help:"Potrzebuję więcej pomocy",this_was_helpful:"To było pomocne",optional:"Opcjonalne",no_conversations_yet:"Jeszcze brak rozmów",back_to_conversations:"Powrót do rozmów",closed_conversations:"Zamknięte rozmowy",csat_title:"Jak przebiegła Twoja rozmowa?",csat_submitted_title:"Oceniłeś rozmowę jako",csat_feedback_placeholder:"Powiedz nam więcej... (opcjonalnie)"},S5={write_a_message_placeholder:"Escreva uma mensagem...",your_issue_has_been_resolved:"Seu problema foi resolvido!",new_conversation:"Nova conversa",welcome_screen_title:"Bem-vindo ao nosso chat de suporte",welcome_screen_description:"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",your_name_placeholder:"Seu nome",your_email_placeholder:"Seu endereço de email",start_chat_button:"Falar com o suporte",start_chat_button_loading:"Conectando...",i_need_more_help:"preciso de mais ajuda",this_was_helpful:"Isso foi útil",optional:"Opcional",no_conversations_yet:"Nenhuma conversa ainda",back_to_conversations:"Voltar para conversas",closed_conversations:"Conversas fechadas",csat_title:"Como foi a sua conversa?",csat_submitted_title:"Você avaliou a conversa como",csat_feedback_placeholder:"Conte-nos mais... (opcional)"},A5={write_a_message_placeholder:"Scrie un mesaj...",your_issue_has_been_resolved:"Problema ta a fost rezolvată!",new_conversation:"Conversație nouă",welcome_screen_title:"Bine ai venit la chat-ul nostru de suport",welcome_screen_description:"Suntem aici să te ajutăm! Începe o conversație și îți vom răspunde cât mai curând posibil.",your_name_placeholder:"Numele tău",your_email_placeholder:"Adresa ta de email",start_chat_button:"Vorbește cu suportul",start_chat_button_loading:"Se conectează...",i_need_more_help:"Am nevoie de mai mult ajutor",this_was_helpful:"Acest lucru a fost util",optional:"Opțional",no_conversations_yet:"Încă nu există conversații",back_to_conversations:"Înapoi la conversații",closed_conversations:"Conversații închise",csat_title:"Cum a fost conversația ta?",csat_submitted_title:"Ai evaluat conversația ca",csat_feedback_placeholder:"Spune-ne mai multe... (opțional)"},C5={write_a_message_placeholder:"Skriv ett meddelande...",your_issue_has_been_resolved:"Ditt problem har lösts!",new_conversation:"Ny konversation",welcome_screen_title:"Välkommen till vår supportchatt",welcome_screen_description:"Vi är här för att hjälpa! Starta en konversation så återkommer vi till dig så snart som möjligt.",your_name_placeholder:"Ditt namn",your_email_placeholder:"Din e-postadress",start_chat_button:"Prata med support",start_chat_button_loading:"Ansluter...",i_need_more_help:"Jag behöver mer hjälp",this_was_helpful:"Detta var användbart",optional:"Frivilligt",no_conversations_yet:"Inga konversationer ännu",back_to_conversations:"Tillbaka till konversationer",closed_conversations:"Stängda konversationer",csat_title:"Hur var din konversation?",csat_submitted_title:"Du betygsatte konversationen som",csat_feedback_placeholder:"Berätta mer... (valfritt)"},k5={write_a_message_placeholder:"Напишите сообщение...",your_issue_has_been_resolved:"Ваша проблема решена!",new_conversation:"Новый разговор",welcome_screen_title:"Добро пожаловать в чат поддержки",welcome_screen_description:"Мы здесь, чтобы помочь! Начните разговор, и мы ответим вам как можно скорее.",your_name_placeholder:"Ваше имя",your_email_placeholder:"Ваш адрес электронной почты",start_chat_button:"Связаться с поддержкой",start_chat_button_loading:"Подключение...",i_need_more_help:"Мне нужна дополнительная помощь",this_was_helpful:"Это было полезно",optional:"Необязательно",no_conversations_yet:"Пока нет разговоров",back_to_conversations:"Назад к разговорам",closed_conversations:"Закрытые разговоры",csat_title:"Как прошёл ваш разговор?",csat_submitted_title:"Вы оценили разговор как",csat_feedback_placeholder:"Расскажите подробнее... (необязательно)"},O5={write_a_message_placeholder:"เขียนข้อความ...",your_issue_has_been_resolved:"ปัญหาของคุณได้รับการแก้ไขแล้ว!",new_conversation:"การสนทนาใหม่",welcome_screen_title:"ยินดีต้อนรับสู่แชทสนับสนุนของเรา",welcome_screen_description:"เราพร้อมช่วยเหลือคุณ! เริ่มการสนทนาและเราจะติดต่อกลับโดยเร็วที่สุด",your_name_placeholder:"ชื่อของคุณ",your_email_placeholder:"ที่อยู่อีเมลของคุณ",start_chat_button:"พูดคุยกับฝ่ายสนับสนุน",start_chat_button_loading:"กำลังเชื่อมต่อ...",i_need_more_help:"ฉันต้องการความช่วยเหลือเพิ่มเติม",this_was_helpful:"สิ่งนี้เป็นประโยชน์",optional:"ไม่บังคับ",no_conversations_yet:"ยังไม่มีการสนทนา",back_to_conversations:"กลับไปที่การสนทนา",closed_conversations:"การสนทนาที่ปิดแล้ว",csat_title:"การสนทนาของคุณเป็นอย่างไรบ้าง?",csat_submitted_title:"คุณให้คะแนนการสนทนาว่า",csat_feedback_placeholder:"บอกเราเพิ่มเติม... (ไม่บังคับ)"},N5={write_a_message_placeholder:"Bir mesaj yazın...",your_issue_has_been_resolved:"Sorununuz çözüldü!",new_conversation:"Yeni konuşma",welcome_screen_title:"Destek sohbetimize hoş geldiniz",welcome_screen_description:"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.",your_name_placeholder:"Adınız",your_email_placeholder:"E-posta adresiniz",start_chat_button:"Destekle konuş",start_chat_button_loading:"Bağlanıyor...",i_need_more_help:"Daha fazla yardıma ihtiyacım var",this_was_helpful:"Bu yardımcı oldu",optional:"İsteğe bağlı",no_conversations_yet:"Henüz konuşma yok",back_to_conversations:"Konuşmalara geri dön",closed_conversations:"Kapatılan konuşmalar",csat_title:"Görüşmeniz nasıldı?",csat_submitted_title:"Görüşmeyi şöyle değerlendirdiniz",csat_feedback_placeholder:"Bize daha fazlasını anlatın... (isteğe bağlı)"},R5={write_a_message_placeholder:"پیغام لکھیں...",your_issue_has_been_resolved:"آپ کا مسئلہ حل ہو گیا ہے!",new_conversation:"نئی گفتگو",welcome_screen_title:"ہماری سپورٹ چیٹ میں خوش آمدید",welcome_screen_description:"ہم مدد کے لیے حاضر ہیں! گفتگو شروع کریں اور ہم جلد از جلد آپ سے رابطہ کریں گے۔",your_name_placeholder:"آپ کا نام",your_email_placeholder:"آپ کا ای میل پتہ",start_chat_button:"سپورٹ سے بات کریں",start_chat_button_loading:"جڑ رہا ہے...",i_need_more_help:"مجھے مزید مدد چاہیے",this_was_helpful:"یہ مددگار تھا",optional:"اختیاری",no_conversations_yet:"ابھی تک کوئی گفتگو نہیں",back_to_conversations:"گفتگو پر واپس جائیں",closed_conversations:"بند گفتگو",csat_title:"آپ کی گفتگو کیسی رہی؟",csat_submitted_title:"آپ نے گفتگو کو درجہ دیا",csat_feedback_placeholder:"ہمیں مزید بتائیں... (اختیاری)"},D5={write_a_message_placeholder:"Viết tin nhắn...",your_issue_has_been_resolved:"Vấn đề của bạn đã được giải quyết!",new_conversation:"Cuộc trò chuyện mới",welcome_screen_title:"Chào mừng đến với hỗ trợ trò chuyện của chúng tôi",welcome_screen_description:"Chúng tôi ở đây để giúp đỡ! Bắt đầu cuộc trò chuyện và chúng tôi sẽ phản hồi sớm nhất có thể.",your_name_placeholder:"Tên của bạn",your_email_placeholder:"Địa chỉ email của bạn",start_chat_button:"Liên hệ hỗ trợ",start_chat_button_loading:"Đang kết nối...",i_need_more_help:"Tôi cần thêm trợ giúp",this_was_helpful:"Điều này hữu ích",optional:"Tùy chọn",no_conversations_yet:"Chưa có cuộc trò chuyện nào",back_to_conversations:"Quay lại cuộc trò chuyện",closed_conversations:"Cuộc trò chuyện đã đóng",csat_title:"Cuộc trò chuyện của bạn thế nào?",csat_submitted_title:"Bạn đã đánh giá cuộc trò chuyện là",csat_feedback_placeholder:"Cho chúng tôi biết thêm... (tùy chọn)"},M5={write_a_message_placeholder:"写一条消息...",your_issue_has_been_resolved:"您的问题已解决!",new_conversation:"新对话",welcome_screen_title:"欢迎使用我们的客服聊天",welcome_screen_description:"我们随时为您提供帮助!开始对话,我们会尽快回复您。",your_name_placeholder:"您的姓名",your_email_placeholder:"您的电子邮件地址",start_chat_button:"联系客服",start_chat_button_loading:"连接中...",i_need_more_help:"我需要更多帮助",this_was_helpful:"这很有帮助",optional:"可选",no_conversations_yet:"暂无对话",back_to_conversations:"返回对话",closed_conversations:"已关闭的对话",csat_title:"您的对话感觉如何?",csat_submitted_title:"您将此对话评价为",csat_feedback_placeholder:"告诉我们更多...(可选)"},L5={write_a_message_placeholder:"Napišite poruku...",your_issue_has_been_resolved:"Vaš problem je riješen!",new_conversation:"Novi razgovor",welcome_screen_title:"Dobrodošli u naš chat za podršku",welcome_screen_description:"Ovdje smo da pomognemo! Započnite razgovor i odgovorit ćemo vam što je prije moguće.",your_name_placeholder:"Vaše ime",your_email_placeholder:"Vaša e-mail adresa",start_chat_button:"Razgovarajte s podrškom",start_chat_button_loading:"Povezivanje...",i_need_more_help:"Trebam dodatnu pomoć",this_was_helpful:"Ovo je bilo korisno",optional:"Neobavezno",no_conversations_yet:"Još nema razgovora",back_to_conversations:"Natrag na razgovore",closed_conversations:"Zatvoreni razgovori",csat_title:"Kakav je bio vaš razgovor?",csat_submitted_title:"Ocijenili ste razgovor kao",csat_feedback_placeholder:"Recite nam više... (neobavezno)"},I5={write_a_message_placeholder:"Kirjuta sõnum...",your_issue_has_been_resolved:"Teie probleem on lahendatud!",new_conversation:"Uus vestlus",welcome_screen_title:"Tere tulemast meie tugiteenusesse",welcome_screen_description:"Oleme siin, et aidata! Alustage vestlust ja vastame teile esimesel võimalusel.",your_name_placeholder:"Teie nimi",your_email_placeholder:"Teie e-posti aadress",start_chat_button:"Räägi toega",start_chat_button_loading:"Ühendamine...",i_need_more_help:"Vajan rohkem abi",this_was_helpful:"See oli kasulik",optional:"Valikuline",no_conversations_yet:"Vestlusi pole veel",back_to_conversations:"Tagasi vestluste juurde",closed_conversations:"Suletud vestlused",csat_title:"Milline oli teie vestlus?",csat_submitted_title:"Hindasite vestlust kui",csat_feedback_placeholder:"Rääkige meile rohkem... (valikuline)"},P5={write_a_message_placeholder:"Írjon üzenetet...",your_issue_has_been_resolved:"A problémája megoldódott!",new_conversation:"Új beszélgetés",welcome_screen_title:"Üdvözöljük az ügyfélszolgálati chatünkön",welcome_screen_description:"Azért vagyunk itt, hogy segítsünk! Kezdjen beszélgetést, és mihamarabb válaszolunk.",your_name_placeholder:"Az Ön neve",your_email_placeholder:"Az Ön e-mail címe",start_chat_button:"Beszélgetés az ügyfélszolgálattal",start_chat_button_loading:"Csatlakozás...",i_need_more_help:"További segítségre van szükségem",this_was_helpful:"Ez hasznos volt",optional:"Opcionális",no_conversations_yet:"Még nincsenek beszélgetések",back_to_conversations:"Vissza a beszélgetésekhez",closed_conversations:"Lezárt beszélgetések",csat_title:"Milyen volt a beszélgetése?",csat_submitted_title:"A beszélgetést így értékelte",csat_feedback_placeholder:"Mondjon többet... (opcionális)"},B5={write_a_message_placeholder:"Skrifaðu skilaboð...",your_issue_has_been_resolved:"Málið þitt hefur verið leyst!",new_conversation:"Nýtt samtal",welcome_screen_title:"Velkomin í þjónustuverið okkar",welcome_screen_description:"Við erum hér til að hjálpa! Byrjaðu samtal og við munum svara eins fljótt og auðið er.",your_name_placeholder:"Nafnið þitt",your_email_placeholder:"Netfangið þitt",start_chat_button:"Tala við þjónustuver",start_chat_button_loading:"Tengist...",i_need_more_help:"Ég þarf meiri hjálp",this_was_helpful:"Þetta var gagnlegt",optional:"Valfrjálst",no_conversations_yet:"Engin samtöl ennþá",back_to_conversations:"Til baka í samtöl",closed_conversations:"Lokuð samtöl",csat_title:"Hvernig var samtalið þitt?",csat_submitted_title:"Þú gafst samtalinu einkunnina",csat_feedback_placeholder:"Segðu okkur meira... (valfrjálst)"},z5={write_a_message_placeholder:"Rakstiet ziņojumu...",your_issue_has_been_resolved:"Jūsu problēma ir atrisināta!",new_conversation:"Jauna saruna",welcome_screen_title:"Laipni lūdzam mūsu atbalsta tērzēšanā",welcome_screen_description:"Mēs esam šeit, lai palīdzētu! Sāciet sarunu, un mēs jums atbildēsim pēc iespējas ātrāk.",your_name_placeholder:"Jūsu vārds",your_email_placeholder:"Jūsu e-pasta adrese",start_chat_button:"Sazināties ar atbalstu",start_chat_button_loading:"Savienošana...",i_need_more_help:"Man vajag vairāk palīdzības",this_was_helpful:"Tas bija noderīgi",optional:"Neobligāts",no_conversations_yet:"Pagaidām nav sarunu",back_to_conversations:"Atpakaļ pie sarunām",closed_conversations:"Slēgtās sarunas",csat_title:"Kāda bija jūsu saruna?",csat_submitted_title:"Jūs novērtējāt sarunu kā",csat_feedback_placeholder:"Pastāstiet mums vairāk... (neobligāti)"},j5={write_a_message_placeholder:"Parašykite žinutę...",your_issue_has_been_resolved:"Jūsų problema išspręsta!",new_conversation:"Naujas pokalbis",welcome_screen_title:"Sveiki atvykę į mūsų pagalbos pokalbį",welcome_screen_description:"Mes čia, kad padėtume! Pradėkite pokalbį ir mes atsakysime kuo greičiau.",your_name_placeholder:"Jūsų vardas",your_email_placeholder:"Jūsų el. pašto adresas",start_chat_button:"Kalbėti su pagalba",start_chat_button_loading:"Jungiamasi...",i_need_more_help:"Man reikia daugiau pagalbos",this_was_helpful:"Tai buvo naudinga",optional:"Neprivaloma",no_conversations_yet:"Pokalbių dar nėra",back_to_conversations:"Grįžti į pokalbius",closed_conversations:"Uždaryti pokalbiai",csat_title:"Koks buvo jūsų pokalbis?",csat_submitted_title:"Pokalbį įvertinote kaip",csat_feedback_placeholder:"Papasakokite daugiau... (neprivaloma)"},U5={write_a_message_placeholder:"Schreift eng Noriicht...",your_issue_has_been_resolved:"Äert Problem gouf geléist!",new_conversation:"Nei Konversatioun",welcome_screen_title:"Wëllkomm bei eisem Support-Chat",welcome_screen_description:"Mir sinn hei fir ze hëllefen! Start eng Konversatioun a mir äntweren Iech esou séier wéi méiglech.",your_name_placeholder:"Ären Numm",your_email_placeholder:"Är E-Mail-Adress",start_chat_button:"Mat dem Support schwätzen",start_chat_button_loading:"Verbindung...",i_need_more_help:"Ech brauch méi Hëllef",this_was_helpful:"Dat war hëllefräich",optional:"Fakultativ",no_conversations_yet:"Nach keng Konversatiounen",back_to_conversations:"Zréck zu de Konversatiounen",closed_conversations:"Zougemaachte Konversatiounen",csat_title:"Wéi war Är Konversatioun?",csat_submitted_title:"Dir hutt d’Konversatioun bewäert als",csat_feedback_placeholder:"Sot eis méi... (fakultativ)"},H5={write_a_message_placeholder:"Ikteb messaġġ...",your_issue_has_been_resolved:"Il-problema tiegħek ġiet riżolta!",new_conversation:"Konversazzjoni ġdida",welcome_screen_title:"Merħba fis-support chat tagħna",welcome_screen_description:"Aħna hawn biex ngħinu! Ibda konversazzjoni u nirrispondu malajr kemm jista' jkun.",your_name_placeholder:"Ismek",your_email_placeholder:"L-indirizz tal-email tiegħek",start_chat_button:"Kellem lis-support",start_chat_button_loading:"Qed jikkonnettja...",i_need_more_help:"Għandi bżonn aktar għajnuna",this_was_helpful:"Dan kien ta' għajnuna",optional:"Mhux obbligatorju",no_conversations_yet:"Għad m'hemmx konversazzjonijiet",back_to_conversations:"Lura għall-konversazzjonijiet",closed_conversations:"Konversazzjonijiet magħluqa",csat_title:"Kif kienet il-konversazzjoni tiegħek?",csat_submitted_title:"Int ivvalutajt il-konversazzjoni bħala",csat_feedback_placeholder:"Għidilna aktar... (mhux obbligatorju)"},F5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Saken din er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale, så svarer vi deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},V5={write_a_message_placeholder:"Napíšte správu...",your_issue_has_been_resolved:"Váš problém bol vyriešený!",new_conversation:"Nová konverzácia",welcome_screen_title:"Vitajte v našom zákazníckom chate",welcome_screen_description:"Sme tu, aby sme vám pomohli! Začnite konverzáciu a odpovieme vám čo najskôr.",your_name_placeholder:"Vaše meno",your_email_placeholder:"Vaša e-mailová adresa",start_chat_button:"Hovoriť s podporou",start_chat_button_loading:"Pripájanie...",i_need_more_help:"Potrebujem ďalšiu pomoc",this_was_helpful:"Toto bolo užitočné",optional:"Voliteľné",no_conversations_yet:"Zatiaľ žiadne konverzácie",back_to_conversations:"Späť na konverzácie",closed_conversations:"Uzavreté konverzácie",csat_title:"Aká bola vaša konverzácia?",csat_submitted_title:"Konverzáciu ste ohodnotili ako",csat_feedback_placeholder:"Povedzte nám viac... (nepovinné)"},wx={ar:s5,bn:o5,bg:l5,cs:u5,da:c5,de:f5,el:d5,en:h5,es:p5,et:I5,fi:g5,fil:m5,fr:b5,hi:v5,hr:L5,hu:P5,is:B5,it:y5,ja:x5,ko:_5,lb:U5,lt:j5,lv:z5,mt:H5,nb:F5,nl:E5,no:T5,pl:w5,pt:S5,ro:A5,ru:k5,sk:V5,sv:C5,th:O5,tr:N5,ur:R5,vi:D5,"zh-cn":M5},Y5=Object.keys(wx);function q5(e){return Y5.includes(e)}function G5(e,t,n){var i;return((i=n==null?void 0:n[t])==null?void 0:i[e])||wx[t][e]||""}const $5="4.0.54";class X5{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(i=>this.register(i)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(i=>i.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(i=>i.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const Sx=E.createContext(null);function K5({options:e,children:t,components:n,storage:i,loadingComponent:a}){const r=E.useRef(null),s=E.useRef(!1),[o,l]=E.useState(null),u=E.useMemo(()=>new X5({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,r5.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?pn.createElement(Sx.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:$5,contentIframeRef:r}},t):a||null}function Ct(){const e=E.useContext(Sx);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function $e(){const{config:e}=Ct();return e}function El(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function Ax(){const{widgetCtx:e}=Ct();return{contactState:El(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function kp(){const[e,t]=E.useState("ltr");return E.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const i=new MutationObserver(n);return i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),i.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{i.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function En(){const{widgetCtx:e}=Ct();return{messagesState:El(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function wi(){const{widgetCtx:e}=Ct(),{oneOpenSessionAllowed:t}=$e(),n=El(e.sessionCtx.sessionState),i=El(e.sessionCtx.sessionsState),{openSessions:a,closedSessions:r}=E.useMemo(()=>({openSessions:i.data.filter(o=>o.isOpened===!0),closedSessions:i.data.filter(o=>o.isOpened===!1)}),[i.data]),s=E.useMemo(()=>t?a.length===0:!0,[t,a.length]);return{sessionState:n,sessionsState:i,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:a,closedSessions:r,canCreateNewSession:s}}function Cx(){var e,t,n;const{sessionState:i}=wi(),{messagesState:a}=En(),r=((e=i.session)==null?void 0:e.assignee.kind)==="ai",s=((n=(t=a.messages)==null?void 0:t.at(-1))==null?void 0:n.type)==="USER";return{isAwaitingBotReply:!!(a.isSendingMessageToAI||(r||i.isCreatingSession)&&(a.isSendingMessage||s))}}function Si(){const{widgetCtx:e}=Ct();return{routerState:El(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Ya=new Map;function Q5(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=Ct();function i(c){const d=c.map(f=>({file:f,id:Cp(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(s)}function a(c,d){t(f=>f.map(h=>h.id===c?{...h,...d}:h))}function r(c){t(d=>d.filter(f=>f.id!==c))}const s=async c=>{const d=new AbortController;Ya.set(c.id,d);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const f=await n.uploadFile({file:c.file,abortSignal:d.signal,onProgress:h=>{a(c.id,{progress:h})}});a(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||a(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{Ya.delete(c.id)}},o=c=>{const d=Ya.get(c);d&&(d.abort(),Ya.delete(c)),r(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Ya.forEach(c=>c.abort()),Ya.clear(),t([])}return E.useEffect(()=>()=>{Ya.forEach(c=>c.abort()),Ya.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const kx=E.createContext(null);function W5({children:e}){const t=$e(),[n,i]=E.useState(()=>t.inline?!0:t.isOpen??!1);return E.useEffect(()=>{i(a=>t.isOpen??a)},[t.isOpen]),E.useEffect(()=>{const a=t.openAfterNSeconds;if(typeof a!="number"||isNaN(a))return;const r=setTimeout(()=>i(!0),a*1e3);return()=>clearTimeout(r)},[t.openAfterNSeconds]),pn.createElement(kx.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function jr(){const e=E.useContext(kx);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function Ox(){var e,t;const{widgetCtx:n}=Ct(),{modesComponents:i}=$e(),{sessionState:a}=wi(),r=n.modes,s=(e=a.session)==null?void 0:e.modeId,o=r.find(u=>u.id===s),l=(t=i==null?void 0:i.find(u=>{var c,d;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((d=o==null?void 0:o.slug)==null?void 0:d.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:r,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Nx(){const{widgetCtx:e}=Ct(),{messagesState:{messages:t}}=En(),{csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}=E.useMemo(()=>{const l=t.find(c=>c.type==="SYSTEM"&&c.subtype==="csat_requested"),u=t.findLast(c=>c.type==="SYSTEM"&&c.subtype==="csat_submitted");return{csatRequestedMessage:l,isCsatRequested:!!l&&!u,csatSubmittedMessage:u,isCsatSubmitted:!!u,submittedScore:u==null?void 0:u.data.payload.score,submittedFeedback:u==null?void 0:u.data.payload.feedback}},[t]);return{submitCsat:e.csatCtx.submitCsat,csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}}/**
68
+ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOString(),attachments:s,timestamp:new Date().toISOString()}},this.toBotMessage=r=>{var s;return r.success&&r.autopilotResponse?{type:"AI",id:r.autopilotResponse.id||xl(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatarUrl:null,avatar:null,id:null}:void 0,data:{message:r.autopilotResponse.value.content,action:(s=r.uiResponse)!=null&&s.value.name?{name:r.uiResponse.value.name,data:r.uiResponse.value.request_response}:void 0}}:null},this.toBotErrorMessage=r=>({type:"AI",id:xl(),timestamp:new Date().toISOString(),component:"bot_message",data:{message:r,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=a}},i5=class{constructor({config:t,contactCtx:n,sessionCtx:i,resetChat:a}){var r;this.registerRoutingListener=()=>{this.contactCtx.state.subscribe(({contact:s})=>{var o;s!=null&&s.token&&this.state.get().screen==="welcome"&&this.state.setPartial({screen:(o=this.config.router)!=null&&o.chatScreenOnly?"chat":"sessions"})}),this.sessionCtx.sessionsState.subscribe(({isInitialFetchLoading:s,data:o})=>{var l,u,c,d;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const f=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return f?this.toChatScreen(f):void 0}o.length||((d=this.config.router)==null?void 0:d.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{var o,l;this.resetChat();let u;if(s){if(u=this.sessionCtx.sessionsState.get().data.find(c=>c.id===s),!u)return;this.sessionCtx.sessionState.setPartial({session:u})}this.state.setPartial({screen:"chat"}),(l=(o=this.config.hooks)==null?void 0:o.onNavigateToChat)==null||l.call(o,{session:u})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=a,this.state=new js({screen:this.contactCtx.shouldCollectData()?"welcome":(r=this.config.router)!=null&&r.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},a5=class{constructor({storage:t,config:n}){this.KEYS={contactToken:i=>`opencx-widget:org-token-${i}:contact-token`,externalContactId:i=>`opencx-widget:org-token-${i}:external-contact-id`},this.setContactToken=async i=>{await this.storage.set(this.KEYS.contactToken(this.config.token),i)},this.getContactToken=async()=>this.storage.get(this.KEYS.contactToken(this.config.token)),this.setExternalContactId=async i=>{await this.storage.set(this.KEYS.externalContactId(this.config.token),i)},this.getExternalContactId=async()=>this.storage.get(this.KEYS.externalContactId(this.config.token)),this.storage=t,this.config=n}};const _l=class Fh{constructor({config:t,storage:n,modes:i,org:a}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!Fh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=a,this.api=new _x({config:t}),this.storageCtx=n?new a5({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new JD({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new t5({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:Fh.pollingIntervalsSeconds.sessions}),this.messageCtx=new n5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new e5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new ZD({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:Fh.pollingIntervalsSeconds.session}),this.routerCtx=new i5({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};_l.pollingIntervalsSeconds=null,_l.initialize=async({config:e,storage:t})=>{var n,i,a;const r=await new _x({config:e}).getExternalWidgetConfig();if(!r.data)throw new Error("Failed to fetch widget config");return _l.pollingIntervalsSeconds={session:((n=r.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=r.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new _l({config:e,storage:t,modes:((a=r.data)==null?void 0:a.modes)||[],org:{id:r.data.org.id,name:r.data.org.name}})};let r5=_l;const s5={write_a_message_placeholder:"اكتب رسالة...",your_issue_has_been_resolved:"تم حل مشكلتك!",new_conversation:"محادثة جديدة",welcome_screen_title:"مرحبًا بك في دردشة الدعم الخاصة بنا",welcome_screen_description:"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",your_name_placeholder:"اسمك",your_email_placeholder:"عنوان بريدك الإلكتروني",start_chat_button:"تحدث إلى الدعم",start_chat_button_loading:"جاري الاتصال...",i_need_more_help:"أحتاج المزيد من المساعدة",this_was_helpful:"كان هذا مفيدًا",optional:"اختياري",no_conversations_yet:"لا يوجد محادثات",back_to_conversations:"العودة إلى المحادثات",closed_conversations:"المحادثات المغلقة",csat_title:"كيف كانت محادثتك؟",csat_submitted_title:"لقد قيّمت المحادثة بـ",csat_feedback_placeholder:"أخبرنا المزيد... (اختياري)"},o5={write_a_message_placeholder:"একটি বার্তা লিখুন...",your_issue_has_been_resolved:"আপনার সমস্যা সমাধান হয়েছে!",new_conversation:"নতুন কথোপকথন",welcome_screen_title:"আমাদের সাপোর্ট চ্যাটে স্বাগতম",welcome_screen_description:"আমরা সাহায্য করতে এখানে আছি! একটি কথোপকথন শুরু করুন এবং আমরা যত তাড়াতাড়ি সম্ভব আপনার কাছে ফিরে আসব।",your_name_placeholder:"আপনার নাম",your_email_placeholder:"আপনার ইমেইল ঠিকানা",start_chat_button:"সাপোর্টের সাথে কথা বলুন",start_chat_button_loading:"সংযোগ হচ্ছে...",i_need_more_help:"আমার আরও সাহায্য দরকার",this_was_helpful:"এটি সহায়ক ছিল",optional:"ঐচ্ছিক",no_conversations_yet:"এখনো কোনো কথোপকথন নেই",back_to_conversations:"কথোপকথনে ফিরে যান",closed_conversations:"বন্ধ কথোপকথন",csat_title:"আপনার কথোপকথন কেমন ছিল?",csat_submitted_title:"আপনি কথোপকথনটি মূল্যায়ন করেছেন",csat_feedback_placeholder:"আমাদের আরও বলুন... (ঐচ্ছিক)"},l5={write_a_message_placeholder:"Напишете съобщение...",your_issue_has_been_resolved:"Вашият проблем е разрешен!",new_conversation:"Нов разговор",welcome_screen_title:"Добре дошли в нашия чат за поддръжка",welcome_screen_description:"Тук сме, за да помогнем! Започнете разговор и ще ви отговорим възможно най-скоро.",your_name_placeholder:"Вашето име",your_email_placeholder:"Вашият имейл адрес",start_chat_button:"Свържете се с поддръжка",start_chat_button_loading:"Свързване...",i_need_more_help:"Имам нужда от повече помощ",this_was_helpful:"Това беше полезно",optional:"По избор",no_conversations_yet:"Все още няма разговори",back_to_conversations:"Назад към разговорите",closed_conversations:"Затворени разговори",csat_title:"Как мина разговорът ви?",csat_submitted_title:"Оценихте разговора като",csat_feedback_placeholder:"Кажете ни повече... (по желание)"},u5={write_a_message_placeholder:"Napište zprávu...",your_issue_has_been_resolved:"Váš problém byl vyřešen!",new_conversation:"Nová konverzace",welcome_screen_title:"Vítejte v našem chatu podpory",welcome_screen_description:"Jsme tu, abychom vám pomohli! Zahajte konverzaci a ozveme se vám co nejdříve.",your_name_placeholder:"Vaše jméno",your_email_placeholder:"Vaše e-mailová adresa",start_chat_button:"Kontaktovat podporu",start_chat_button_loading:"Připojování...",i_need_more_help:"Potřebuji další pomoc",this_was_helpful:"Toto bylo užitečné",optional:"Volitelné",no_conversations_yet:"Zatím žádné konverzace",back_to_conversations:"Zpět na konverzace",closed_conversations:"Uzavřené konverzace",csat_title:"Jaká byla vaše konverzace?",csat_submitted_title:"Konverzaci jste ohodnotili jako",csat_feedback_placeholder:"Řekněte nám více... (nepovinné)"},c5={write_a_message_placeholder:"Skriv en besked...",your_issue_has_been_resolved:"Dit problem er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vores support chat",welcome_screen_description:"Vi er her for at hjælpe! Start en samtale, og vi vender tilbage til dig så hurtigt som muligt.",your_name_placeholder:"Dit navn",your_email_placeholder:"Din e-mailadresse",start_chat_button:"Tal med support",start_chat_button_loading:"Forbinder...",i_need_more_help:"Jeg har brug for mere hjælp",this_was_helpful:"Dette var nyttigt",optional:"Valgfrit",no_conversations_yet:"Ingen samtaler endnu",back_to_conversations:"Tilbage til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var din samtale?",csat_submitted_title:"Du vurderede samtalen som",csat_feedback_placeholder:"Fortæl os mere... (valgfrit)"},d5={write_a_message_placeholder:"Γράψτε ένα μήνυμα...",your_issue_has_been_resolved:"Το πρόβλημά σας επιλύθηκε!",new_conversation:"Νέα συνομιλία",welcome_screen_title:"Καλώς ήρθατε στη συνομιλία υποστήριξης",welcome_screen_description:"Είμαστε εδώ για να βοηθήσουμε! Ξεκινήστε μια συνομιλία και θα σας απαντήσουμε το συντομότερο δυνατό.",your_name_placeholder:"Το όνομά σας",your_email_placeholder:"Η διεύθυνση email σας",start_chat_button:"Επικοινωνία με την υποστήριξη",start_chat_button_loading:"Σύνδεση...",i_need_more_help:"Χρειάζομαι περισσότερη βοήθεια",this_was_helpful:"Αυτό ήταν χρήσιμο",optional:"Προαιρετικό",no_conversations_yet:"Δεν υπάρχουν συνομιλίες ακόμα",back_to_conversations:"Πίσω στις συνομιλίες",closed_conversations:"Κλειστές συνομιλίες",csat_title:"Πώς ήταν η συνομιλία σας;",csat_submitted_title:"Βαθμολογήσατε τη συνομιλία ως",csat_feedback_placeholder:"Πείτε μας περισσότερα... (προαιρετικό)"},f5={write_a_message_placeholder:"Nachricht schreiben...",your_issue_has_been_resolved:"Ihr Problem wurde gelöst!",new_conversation:"Neue Konversation",welcome_screen_title:"Willkommen in unserem Support-Chat",welcome_screen_description:"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",your_name_placeholder:"Ihr Name",your_email_placeholder:"Ihre E-Mail-Adresse",start_chat_button:"Mit dem Support sprechen",start_chat_button_loading:"Verbindung wird hergestellt...",i_need_more_help:"Ich brauche weitere Hilfe",this_was_helpful:"Dies war hilfreich",optional:"Optional",no_conversations_yet:"noch keine Gespräche",back_to_conversations:"Zurück zur Konversationen",closed_conversations:"Geschlossene Konversationen",csat_title:"Wie war Ihr Gespräch?",csat_submitted_title:"Sie haben das Gespräch bewertet als",csat_feedback_placeholder:"Erzählen Sie uns mehr... (optional)"},h5={write_a_message_placeholder:"Write a message...",your_issue_has_been_resolved:"Your issue has been resolved!",new_conversation:"New conversation",welcome_screen_title:"Welcome to our support chat",welcome_screen_description:"We're here to help! Start a conversation and we'll get back to you as soon as possible.",your_name_placeholder:"Your name",your_email_placeholder:"Your email address",start_chat_button:"Talk to support",start_chat_button_loading:"Connecting...",i_need_more_help:"I need more help",this_was_helpful:"This was helpful",optional:"Optional",no_conversations_yet:"No conversations yet",back_to_conversations:"Back to conversations",closed_conversations:"Closed conversations",csat_title:"How was your conversation?",csat_submitted_title:"You rated the conversation as",csat_feedback_placeholder:"Tell us more... (optional)"},p5={write_a_message_placeholder:"Escribe un mensaje...",your_issue_has_been_resolved:"¡Tu problema fue resuelto!",new_conversation:"Nueva conversación",welcome_screen_title:"Bienvenido a nuestro chat de soporte",welcome_screen_description:"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",your_name_placeholder:"Tu nombre",your_email_placeholder:"Tu correo electrónico",start_chat_button:"Hablar con soporte",start_chat_button_loading:"Conectando...",i_need_more_help:"Necesito más ayuda",this_was_helpful:"Esto fue útil",optional:"Opcional",no_conversations_yet:"Sin conversaciones aún",back_to_conversations:"Volver a conversaciones",closed_conversations:"Conversaciones cerradas",csat_title:"¿Qué tal fue tu conversación?",csat_submitted_title:"Valoraste la conversación como",csat_feedback_placeholder:"Cuéntanos más... (opcional)"},m5={write_a_message_placeholder:"Magsulat ng mensahe...",your_issue_has_been_resolved:"Nalutas na ang iyong isyu!",new_conversation:"Bagong usapan",welcome_screen_title:"Maligayang pagdating sa aming support chat",welcome_screen_description:"Narito kami upang tumulong! Magsimula ng usapan at babalikan ka namin sa lalong madaling panahon.",your_name_placeholder:"Iyong pangalan",your_email_placeholder:"Iyong email address",start_chat_button:"Makipag-usap sa support",start_chat_button_loading:"Kumokonekta...",i_need_more_help:"Kailangan ko pa ng tulong",this_was_helpful:"Nakatulong ito",optional:"Opsyonal",no_conversations_yet:"Wala pang mga usapan",back_to_conversations:"Bumalik sa mga usapan",closed_conversations:"Mga saradong usapan",csat_title:"Kumusta ang iyong usapan?",csat_submitted_title:"Ni-rate mo ang usapan bilang",csat_feedback_placeholder:"Sabihin pa sa amin... (opsyonal)"},g5={write_a_message_placeholder:"Kirjoita viesti...",your_issue_has_been_resolved:"Ongelmasi on ratkaistu!",new_conversation:"Uusi keskustelu",welcome_screen_title:"Tervetuloa tukichattiin",welcome_screen_description:"Olemme täällä auttamassa! Aloita keskustelu ja palaamme sinulle mahdollisimman pian.",your_name_placeholder:"Nimesi",your_email_placeholder:"Sähköpostiosoitteesi",start_chat_button:"Keskustele tuen kanssa",start_chat_button_loading:"Yhdistetään...",i_need_more_help:"Tarvitsen lisää apua",this_was_helpful:"Tämä oli hyödyllistä",optional:"Valinnainen",no_conversations_yet:"Ei vielä keskusteluja",back_to_conversations:"Takaisin keskusteluihin",closed_conversations:"Suljetut keskustelut",csat_title:"Millainen keskustelusi oli?",csat_submitted_title:"Arvioit keskustelun",csat_feedback_placeholder:"Kerro lisää... (valinnainen)"},b5={write_a_message_placeholder:"Écrivez un message...",your_issue_has_been_resolved:"Votre problème a été résolu !",new_conversation:"Nouvelle conversation",welcome_screen_title:"Bienvenue dans notre chat de support",welcome_screen_description:"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",your_name_placeholder:"Votre nom",your_email_placeholder:"Votre adresse e-mail",start_chat_button:"Parler au support",start_chat_button_loading:"Connexion...",i_need_more_help:"Je besoin d'aide plus",this_was_helpful:"C'était utile",optional:"Optionnel",no_conversations_yet:"Aucune conversation pour le moment",back_to_conversations:"Retour aux conversations",closed_conversations:"Conversations fermées",csat_title:"Comment s’est passée votre conversation ?",csat_submitted_title:"Vous avez évalué la conversation comme",csat_feedback_placeholder:"Dites-nous en plus... (facultatif)"},v5={write_a_message_placeholder:"एक संदेश लिखें...",your_issue_has_been_resolved:"आपकी समस्या हल हो गई है!",new_conversation:"नई बातचीत",welcome_screen_title:"हमारी सहायता चैट में आपका स्वागत है",welcome_screen_description:"हम मदद के लिए यहाँ हैं! बातचीत शुरू करें और हम जल्द से जल्द आपसे संपर्क करेंगे।",your_name_placeholder:"आपका नाम",your_email_placeholder:"आपका ईमेल पता",start_chat_button:"सहायता से बात करें",start_chat_button_loading:"कनेक्ट हो रहा है...",i_need_more_help:"मुझे और मदद चाहिए",this_was_helpful:"यह मददगार था",optional:"वैकल्पिक",no_conversations_yet:"अभी तक कोई बातचीत नहीं",back_to_conversations:"बातचीत पर वापस जाएं",closed_conversations:"बंद बातचीत",csat_title:"आपकी बातचीत कैसी रही?",csat_submitted_title:"आपने बातचीत को आंका",csat_feedback_placeholder:"हमें और बताएं... (वैकल्पिक)"},y5={write_a_message_placeholder:"Scrivi un messaggio...",your_issue_has_been_resolved:"Il tuo problema è stato risolto!",new_conversation:"Nuova conversazione",welcome_screen_title:"Benvenuto nella nostra chat di supporto",welcome_screen_description:"Siamo qui per aiutarti! Inizia una conversazione e ti risponderemo il prima possibile.",your_name_placeholder:"Il tuo nome",your_email_placeholder:"Il tuo indirizzo email",start_chat_button:"Parla con il supporto",start_chat_button_loading:"Connessione in corso...",i_need_more_help:"Ho bisogno di ulteriore aiuto",this_was_helpful:"Questo è stato utile",optional:"Opzionale",no_conversations_yet:"Nessuna conversazione ancora",back_to_conversations:"Torna alle conversazioni",closed_conversations:"Conversazioni chiuse",csat_title:"Com’è andata la tua conversazione?",csat_submitted_title:"Hai valutato la conversazione come",csat_feedback_placeholder:"Dicci di più... (facoltativo)"},x5={write_a_message_placeholder:"メッセージを入力...",your_issue_has_been_resolved:"問題が解決しました!",new_conversation:"新しい会話",welcome_screen_title:"サポートチャットへようこそ",welcome_screen_description:"お手伝いいたします!会話を開始していただければ、できるだけ早くご連絡いたします。",your_name_placeholder:"お名前",your_email_placeholder:"メールアドレス",start_chat_button:"サポートに相談",start_chat_button_loading:"接続中...",i_need_more_help:"さらにサポートが必要です",this_was_helpful:"役に立ちました",optional:"任意",no_conversations_yet:"まだ会話がありません",back_to_conversations:"会話一覧に戻る",closed_conversations:"終了した会話",csat_title:"会話はいかがでしたか?",csat_submitted_title:"会話を次のように評価しました",csat_feedback_placeholder:"詳しく教えてください...(任意)"},_5={write_a_message_placeholder:"메시지를 입력하세요...",your_issue_has_been_resolved:"문제가 해결되었습니다!",new_conversation:"새 대화",welcome_screen_title:"고객 지원 채팅에 오신 것을 환영합니다",welcome_screen_description:"도움을 드리기 위해 여기 있습니다! 대화를 시작해 주시면 가능한 한 빨리 연락드리겠습니다.",your_name_placeholder:"이름",your_email_placeholder:"이메일 주소",start_chat_button:"상담원과 대화",start_chat_button_loading:"연결 중...",i_need_more_help:"추가 도움이 필요합니다",this_was_helpful:"도움이 되었습니다",optional:"선택 사항",no_conversations_yet:"아직 대화가 없습니다",back_to_conversations:"대화 목록으로 돌아가기",closed_conversations:"종료된 대화",csat_title:"대화는 어떠셨나요?",csat_submitted_title:"대화를 다음과 같이 평가했습니다",csat_feedback_placeholder:"더 알려주세요... (선택 사항)"},E5={write_a_message_placeholder:"Schrijf een bericht...",your_issue_has_been_resolved:"Uw probleem is opgelost!",new_conversation:"Nieuw gesprek",welcome_screen_title:"Welkom bij onze supportchat",welcome_screen_description:"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",your_name_placeholder:"Uw naam",your_email_placeholder:"Uw e-mailadres",start_chat_button:"Praat met ondersteuning",start_chat_button_loading:"Verbinding maken...",i_need_more_help:"Ik heb nog meer hulp nodig",this_was_helpful:"Mijn vraag is opgelost",optional:"Optioneel",no_conversations_yet:"Nog geen gesprekken",back_to_conversations:"Terug naar gesprekken",closed_conversations:"Afgesloten gesprekken",csat_title:"Hoe was je gesprek?",csat_submitted_title:"Je hebt het gesprek beoordeeld als",csat_feedback_placeholder:"Vertel ons meer... (optioneel)"},T5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Problemet ditt er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte-chat",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale så kommer vi tilbake til deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},w5={write_a_message_placeholder:"Napisz wiadomość...",your_issue_has_been_resolved:"Twój problem został rozwiązany!",new_conversation:"Nowa rozmowa",welcome_screen_title:"Witamy w naszym czacie wsparcia",welcome_screen_description:"Jesteśmy tutaj, aby pomóc! Rozpocznij rozmowę, a odpowiemy jak najszybciej.",your_name_placeholder:"Twoje imię",your_email_placeholder:"Twój adres email",start_chat_button:"Porozmawiaj ze wsparciem",start_chat_button_loading:"Łączenie...",i_need_more_help:"Potrzebuję więcej pomocy",this_was_helpful:"To było pomocne",optional:"Opcjonalne",no_conversations_yet:"Jeszcze brak rozmów",back_to_conversations:"Powrót do rozmów",closed_conversations:"Zamknięte rozmowy",csat_title:"Jak przebiegła Twoja rozmowa?",csat_submitted_title:"Oceniłeś rozmowę jako",csat_feedback_placeholder:"Powiedz nam więcej... (opcjonalnie)"},S5={write_a_message_placeholder:"Escreva uma mensagem...",your_issue_has_been_resolved:"Seu problema foi resolvido!",new_conversation:"Nova conversa",welcome_screen_title:"Bem-vindo ao nosso chat de suporte",welcome_screen_description:"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",your_name_placeholder:"Seu nome",your_email_placeholder:"Seu endereço de email",start_chat_button:"Falar com o suporte",start_chat_button_loading:"Conectando...",i_need_more_help:"preciso de mais ajuda",this_was_helpful:"Isso foi útil",optional:"Opcional",no_conversations_yet:"Nenhuma conversa ainda",back_to_conversations:"Voltar para conversas",closed_conversations:"Conversas fechadas",csat_title:"Como foi a sua conversa?",csat_submitted_title:"Você avaliou a conversa como",csat_feedback_placeholder:"Conte-nos mais... (opcional)"},A5={write_a_message_placeholder:"Scrie un mesaj...",your_issue_has_been_resolved:"Problema ta a fost rezolvată!",new_conversation:"Conversație nouă",welcome_screen_title:"Bine ai venit la chat-ul nostru de suport",welcome_screen_description:"Suntem aici să te ajutăm! Începe o conversație și îți vom răspunde cât mai curând posibil.",your_name_placeholder:"Numele tău",your_email_placeholder:"Adresa ta de email",start_chat_button:"Vorbește cu suportul",start_chat_button_loading:"Se conectează...",i_need_more_help:"Am nevoie de mai mult ajutor",this_was_helpful:"Acest lucru a fost util",optional:"Opțional",no_conversations_yet:"Încă nu există conversații",back_to_conversations:"Înapoi la conversații",closed_conversations:"Conversații închise",csat_title:"Cum a fost conversația ta?",csat_submitted_title:"Ai evaluat conversația ca",csat_feedback_placeholder:"Spune-ne mai multe... (opțional)"},C5={write_a_message_placeholder:"Skriv ett meddelande...",your_issue_has_been_resolved:"Ditt problem har lösts!",new_conversation:"Ny konversation",welcome_screen_title:"Välkommen till vår supportchatt",welcome_screen_description:"Vi är här för att hjälpa! Starta en konversation så återkommer vi till dig så snart som möjligt.",your_name_placeholder:"Ditt namn",your_email_placeholder:"Din e-postadress",start_chat_button:"Prata med support",start_chat_button_loading:"Ansluter...",i_need_more_help:"Jag behöver mer hjälp",this_was_helpful:"Detta var användbart",optional:"Frivilligt",no_conversations_yet:"Inga konversationer ännu",back_to_conversations:"Tillbaka till konversationer",closed_conversations:"Stängda konversationer",csat_title:"Hur var din konversation?",csat_submitted_title:"Du betygsatte konversationen som",csat_feedback_placeholder:"Berätta mer... (valfritt)"},k5={write_a_message_placeholder:"Напишите сообщение...",your_issue_has_been_resolved:"Ваша проблема решена!",new_conversation:"Новый разговор",welcome_screen_title:"Добро пожаловать в чат поддержки",welcome_screen_description:"Мы здесь, чтобы помочь! Начните разговор, и мы ответим вам как можно скорее.",your_name_placeholder:"Ваше имя",your_email_placeholder:"Ваш адрес электронной почты",start_chat_button:"Связаться с поддержкой",start_chat_button_loading:"Подключение...",i_need_more_help:"Мне нужна дополнительная помощь",this_was_helpful:"Это было полезно",optional:"Необязательно",no_conversations_yet:"Пока нет разговоров",back_to_conversations:"Назад к разговорам",closed_conversations:"Закрытые разговоры",csat_title:"Как прошёл ваш разговор?",csat_submitted_title:"Вы оценили разговор как",csat_feedback_placeholder:"Расскажите подробнее... (необязательно)"},O5={write_a_message_placeholder:"เขียนข้อความ...",your_issue_has_been_resolved:"ปัญหาของคุณได้รับการแก้ไขแล้ว!",new_conversation:"การสนทนาใหม่",welcome_screen_title:"ยินดีต้อนรับสู่แชทสนับสนุนของเรา",welcome_screen_description:"เราพร้อมช่วยเหลือคุณ! เริ่มการสนทนาและเราจะติดต่อกลับโดยเร็วที่สุด",your_name_placeholder:"ชื่อของคุณ",your_email_placeholder:"ที่อยู่อีเมลของคุณ",start_chat_button:"พูดคุยกับฝ่ายสนับสนุน",start_chat_button_loading:"กำลังเชื่อมต่อ...",i_need_more_help:"ฉันต้องการความช่วยเหลือเพิ่มเติม",this_was_helpful:"สิ่งนี้เป็นประโยชน์",optional:"ไม่บังคับ",no_conversations_yet:"ยังไม่มีการสนทนา",back_to_conversations:"กลับไปที่การสนทนา",closed_conversations:"การสนทนาที่ปิดแล้ว",csat_title:"การสนทนาของคุณเป็นอย่างไรบ้าง?",csat_submitted_title:"คุณให้คะแนนการสนทนาว่า",csat_feedback_placeholder:"บอกเราเพิ่มเติม... (ไม่บังคับ)"},N5={write_a_message_placeholder:"Bir mesaj yazın...",your_issue_has_been_resolved:"Sorununuz çözüldü!",new_conversation:"Yeni konuşma",welcome_screen_title:"Destek sohbetimize hoş geldiniz",welcome_screen_description:"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.",your_name_placeholder:"Adınız",your_email_placeholder:"E-posta adresiniz",start_chat_button:"Destekle konuş",start_chat_button_loading:"Bağlanıyor...",i_need_more_help:"Daha fazla yardıma ihtiyacım var",this_was_helpful:"Bu yardımcı oldu",optional:"İsteğe bağlı",no_conversations_yet:"Henüz konuşma yok",back_to_conversations:"Konuşmalara geri dön",closed_conversations:"Kapatılan konuşmalar",csat_title:"Görüşmeniz nasıldı?",csat_submitted_title:"Görüşmeyi şöyle değerlendirdiniz",csat_feedback_placeholder:"Bize daha fazlasını anlatın... (isteğe bağlı)"},R5={write_a_message_placeholder:"پیغام لکھیں...",your_issue_has_been_resolved:"آپ کا مسئلہ حل ہو گیا ہے!",new_conversation:"نئی گفتگو",welcome_screen_title:"ہماری سپورٹ چیٹ میں خوش آمدید",welcome_screen_description:"ہم مدد کے لیے حاضر ہیں! گفتگو شروع کریں اور ہم جلد از جلد آپ سے رابطہ کریں گے۔",your_name_placeholder:"آپ کا نام",your_email_placeholder:"آپ کا ای میل پتہ",start_chat_button:"سپورٹ سے بات کریں",start_chat_button_loading:"جڑ رہا ہے...",i_need_more_help:"مجھے مزید مدد چاہیے",this_was_helpful:"یہ مددگار تھا",optional:"اختیاری",no_conversations_yet:"ابھی تک کوئی گفتگو نہیں",back_to_conversations:"گفتگو پر واپس جائیں",closed_conversations:"بند گفتگو",csat_title:"آپ کی گفتگو کیسی رہی؟",csat_submitted_title:"آپ نے گفتگو کو درجہ دیا",csat_feedback_placeholder:"ہمیں مزید بتائیں... (اختیاری)"},D5={write_a_message_placeholder:"Viết tin nhắn...",your_issue_has_been_resolved:"Vấn đề của bạn đã được giải quyết!",new_conversation:"Cuộc trò chuyện mới",welcome_screen_title:"Chào mừng đến với hỗ trợ trò chuyện của chúng tôi",welcome_screen_description:"Chúng tôi ở đây để giúp đỡ! Bắt đầu cuộc trò chuyện và chúng tôi sẽ phản hồi sớm nhất có thể.",your_name_placeholder:"Tên của bạn",your_email_placeholder:"Địa chỉ email của bạn",start_chat_button:"Liên hệ hỗ trợ",start_chat_button_loading:"Đang kết nối...",i_need_more_help:"Tôi cần thêm trợ giúp",this_was_helpful:"Điều này hữu ích",optional:"Tùy chọn",no_conversations_yet:"Chưa có cuộc trò chuyện nào",back_to_conversations:"Quay lại cuộc trò chuyện",closed_conversations:"Cuộc trò chuyện đã đóng",csat_title:"Cuộc trò chuyện của bạn thế nào?",csat_submitted_title:"Bạn đã đánh giá cuộc trò chuyện là",csat_feedback_placeholder:"Cho chúng tôi biết thêm... (tùy chọn)"},M5={write_a_message_placeholder:"写一条消息...",your_issue_has_been_resolved:"您的问题已解决!",new_conversation:"新对话",welcome_screen_title:"欢迎使用我们的客服聊天",welcome_screen_description:"我们随时为您提供帮助!开始对话,我们会尽快回复您。",your_name_placeholder:"您的姓名",your_email_placeholder:"您的电子邮件地址",start_chat_button:"联系客服",start_chat_button_loading:"连接中...",i_need_more_help:"我需要更多帮助",this_was_helpful:"这很有帮助",optional:"可选",no_conversations_yet:"暂无对话",back_to_conversations:"返回对话",closed_conversations:"已关闭的对话",csat_title:"您的对话感觉如何?",csat_submitted_title:"您将此对话评价为",csat_feedback_placeholder:"告诉我们更多...(可选)"},L5={write_a_message_placeholder:"Napišite poruku...",your_issue_has_been_resolved:"Vaš problem je riješen!",new_conversation:"Novi razgovor",welcome_screen_title:"Dobrodošli u naš chat za podršku",welcome_screen_description:"Ovdje smo da pomognemo! Započnite razgovor i odgovorit ćemo vam što je prije moguće.",your_name_placeholder:"Vaše ime",your_email_placeholder:"Vaša e-mail adresa",start_chat_button:"Razgovarajte s podrškom",start_chat_button_loading:"Povezivanje...",i_need_more_help:"Trebam dodatnu pomoć",this_was_helpful:"Ovo je bilo korisno",optional:"Neobavezno",no_conversations_yet:"Još nema razgovora",back_to_conversations:"Natrag na razgovore",closed_conversations:"Zatvoreni razgovori",csat_title:"Kakav je bio vaš razgovor?",csat_submitted_title:"Ocijenili ste razgovor kao",csat_feedback_placeholder:"Recite nam više... (neobavezno)"},I5={write_a_message_placeholder:"Kirjuta sõnum...",your_issue_has_been_resolved:"Teie probleem on lahendatud!",new_conversation:"Uus vestlus",welcome_screen_title:"Tere tulemast meie tugiteenusesse",welcome_screen_description:"Oleme siin, et aidata! Alustage vestlust ja vastame teile esimesel võimalusel.",your_name_placeholder:"Teie nimi",your_email_placeholder:"Teie e-posti aadress",start_chat_button:"Räägi toega",start_chat_button_loading:"Ühendamine...",i_need_more_help:"Vajan rohkem abi",this_was_helpful:"See oli kasulik",optional:"Valikuline",no_conversations_yet:"Vestlusi pole veel",back_to_conversations:"Tagasi vestluste juurde",closed_conversations:"Suletud vestlused",csat_title:"Milline oli teie vestlus?",csat_submitted_title:"Hindasite vestlust kui",csat_feedback_placeholder:"Rääkige meile rohkem... (valikuline)"},P5={write_a_message_placeholder:"Írjon üzenetet...",your_issue_has_been_resolved:"A problémája megoldódott!",new_conversation:"Új beszélgetés",welcome_screen_title:"Üdvözöljük az ügyfélszolgálati chatünkön",welcome_screen_description:"Azért vagyunk itt, hogy segítsünk! Kezdjen beszélgetést, és mihamarabb válaszolunk.",your_name_placeholder:"Az Ön neve",your_email_placeholder:"Az Ön e-mail címe",start_chat_button:"Beszélgetés az ügyfélszolgálattal",start_chat_button_loading:"Csatlakozás...",i_need_more_help:"További segítségre van szükségem",this_was_helpful:"Ez hasznos volt",optional:"Opcionális",no_conversations_yet:"Még nincsenek beszélgetések",back_to_conversations:"Vissza a beszélgetésekhez",closed_conversations:"Lezárt beszélgetések",csat_title:"Milyen volt a beszélgetése?",csat_submitted_title:"A beszélgetést így értékelte",csat_feedback_placeholder:"Mondjon többet... (opcionális)"},B5={write_a_message_placeholder:"Skrifaðu skilaboð...",your_issue_has_been_resolved:"Málið þitt hefur verið leyst!",new_conversation:"Nýtt samtal",welcome_screen_title:"Velkomin í þjónustuverið okkar",welcome_screen_description:"Við erum hér til að hjálpa! Byrjaðu samtal og við munum svara eins fljótt og auðið er.",your_name_placeholder:"Nafnið þitt",your_email_placeholder:"Netfangið þitt",start_chat_button:"Tala við þjónustuver",start_chat_button_loading:"Tengist...",i_need_more_help:"Ég þarf meiri hjálp",this_was_helpful:"Þetta var gagnlegt",optional:"Valfrjálst",no_conversations_yet:"Engin samtöl ennþá",back_to_conversations:"Til baka í samtöl",closed_conversations:"Lokuð samtöl",csat_title:"Hvernig var samtalið þitt?",csat_submitted_title:"Þú gafst samtalinu einkunnina",csat_feedback_placeholder:"Segðu okkur meira... (valfrjálst)"},z5={write_a_message_placeholder:"Rakstiet ziņojumu...",your_issue_has_been_resolved:"Jūsu problēma ir atrisināta!",new_conversation:"Jauna saruna",welcome_screen_title:"Laipni lūdzam mūsu atbalsta tērzēšanā",welcome_screen_description:"Mēs esam šeit, lai palīdzētu! Sāciet sarunu, un mēs jums atbildēsim pēc iespējas ātrāk.",your_name_placeholder:"Jūsu vārds",your_email_placeholder:"Jūsu e-pasta adrese",start_chat_button:"Sazināties ar atbalstu",start_chat_button_loading:"Savienošana...",i_need_more_help:"Man vajag vairāk palīdzības",this_was_helpful:"Tas bija noderīgi",optional:"Neobligāts",no_conversations_yet:"Pagaidām nav sarunu",back_to_conversations:"Atpakaļ pie sarunām",closed_conversations:"Slēgtās sarunas",csat_title:"Kāda bija jūsu saruna?",csat_submitted_title:"Jūs novērtējāt sarunu kā",csat_feedback_placeholder:"Pastāstiet mums vairāk... (neobligāti)"},j5={write_a_message_placeholder:"Parašykite žinutę...",your_issue_has_been_resolved:"Jūsų problema išspręsta!",new_conversation:"Naujas pokalbis",welcome_screen_title:"Sveiki atvykę į mūsų pagalbos pokalbį",welcome_screen_description:"Mes čia, kad padėtume! Pradėkite pokalbį ir mes atsakysime kuo greičiau.",your_name_placeholder:"Jūsų vardas",your_email_placeholder:"Jūsų el. pašto adresas",start_chat_button:"Kalbėti su pagalba",start_chat_button_loading:"Jungiamasi...",i_need_more_help:"Man reikia daugiau pagalbos",this_was_helpful:"Tai buvo naudinga",optional:"Neprivaloma",no_conversations_yet:"Pokalbių dar nėra",back_to_conversations:"Grįžti į pokalbius",closed_conversations:"Uždaryti pokalbiai",csat_title:"Koks buvo jūsų pokalbis?",csat_submitted_title:"Pokalbį įvertinote kaip",csat_feedback_placeholder:"Papasakokite daugiau... (neprivaloma)"},U5={write_a_message_placeholder:"Schreift eng Noriicht...",your_issue_has_been_resolved:"Äert Problem gouf geléist!",new_conversation:"Nei Konversatioun",welcome_screen_title:"Wëllkomm bei eisem Support-Chat",welcome_screen_description:"Mir sinn hei fir ze hëllefen! Start eng Konversatioun a mir äntweren Iech esou séier wéi méiglech.",your_name_placeholder:"Ären Numm",your_email_placeholder:"Är E-Mail-Adress",start_chat_button:"Mat dem Support schwätzen",start_chat_button_loading:"Verbindung...",i_need_more_help:"Ech brauch méi Hëllef",this_was_helpful:"Dat war hëllefräich",optional:"Fakultativ",no_conversations_yet:"Nach keng Konversatiounen",back_to_conversations:"Zréck zu de Konversatiounen",closed_conversations:"Zougemaachte Konversatiounen",csat_title:"Wéi war Är Konversatioun?",csat_submitted_title:"Dir hutt d’Konversatioun bewäert als",csat_feedback_placeholder:"Sot eis méi... (fakultativ)"},H5={write_a_message_placeholder:"Ikteb messaġġ...",your_issue_has_been_resolved:"Il-problema tiegħek ġiet riżolta!",new_conversation:"Konversazzjoni ġdida",welcome_screen_title:"Merħba fis-support chat tagħna",welcome_screen_description:"Aħna hawn biex ngħinu! Ibda konversazzjoni u nirrispondu malajr kemm jista' jkun.",your_name_placeholder:"Ismek",your_email_placeholder:"L-indirizz tal-email tiegħek",start_chat_button:"Kellem lis-support",start_chat_button_loading:"Qed jikkonnettja...",i_need_more_help:"Għandi bżonn aktar għajnuna",this_was_helpful:"Dan kien ta' għajnuna",optional:"Mhux obbligatorju",no_conversations_yet:"Għad m'hemmx konversazzjonijiet",back_to_conversations:"Lura għall-konversazzjonijiet",closed_conversations:"Konversazzjonijiet magħluqa",csat_title:"Kif kienet il-konversazzjoni tiegħek?",csat_submitted_title:"Int ivvalutajt il-konversazzjoni bħala",csat_feedback_placeholder:"Għidilna aktar... (mhux obbligatorju)"},F5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Saken din er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale, så svarer vi deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},V5={write_a_message_placeholder:"Napíšte správu...",your_issue_has_been_resolved:"Váš problém bol vyriešený!",new_conversation:"Nová konverzácia",welcome_screen_title:"Vitajte v našom zákazníckom chate",welcome_screen_description:"Sme tu, aby sme vám pomohli! Začnite konverzáciu a odpovieme vám čo najskôr.",your_name_placeholder:"Vaše meno",your_email_placeholder:"Vaša e-mailová adresa",start_chat_button:"Hovoriť s podporou",start_chat_button_loading:"Pripájanie...",i_need_more_help:"Potrebujem ďalšiu pomoc",this_was_helpful:"Toto bolo užitočné",optional:"Voliteľné",no_conversations_yet:"Zatiaľ žiadne konverzácie",back_to_conversations:"Späť na konverzácie",closed_conversations:"Uzavreté konverzácie",csat_title:"Aká bola vaša konverzácia?",csat_submitted_title:"Konverzáciu ste ohodnotili ako",csat_feedback_placeholder:"Povedzte nám viac... (nepovinné)"},wx={ar:s5,bn:o5,bg:l5,cs:u5,da:c5,de:f5,el:d5,en:h5,es:p5,et:I5,fi:g5,fil:m5,fr:b5,hi:v5,hr:L5,hu:P5,is:B5,it:y5,ja:x5,ko:_5,lb:U5,lt:j5,lv:z5,mt:H5,nb:F5,nl:E5,no:T5,pl:w5,pt:S5,ro:A5,ru:k5,sk:V5,sv:C5,th:O5,tr:N5,ur:R5,vi:D5,"zh-cn":M5},Y5=Object.keys(wx);function q5(e){return Y5.includes(e)}function G5(e,t,n){var i;return((i=n==null?void 0:n[t])==null?void 0:i[e])||wx[t][e]||""}const $5="4.0.55";class X5{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(i=>this.register(i)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(i=>i.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(i=>i.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const Sx=_.createContext(null);function K5({options:e,children:t,components:n,storage:i,loadingComponent:a}){const r=_.useRef(null),s=_.useRef(!1),[o,l]=_.useState(null),u=_.useMemo(()=>new X5({components:n}),[n]);return _.useEffect(()=>{s.current||(s.current=!0,r5.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?pn.createElement(Sx.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:$5,contentIframeRef:r}},t):a||null}function Ct(){const e=_.useContext(Sx);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function $e(){const{config:e}=Ct();return e}function El(e){return _.useSyncExternalStore(e.subscribe,e.get,e.get)}function Ax(){const{widgetCtx:e}=Ct();return{contactState:El(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function kp(){const[e,t]=_.useState("ltr");return _.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const i=new MutationObserver(n);return i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),i.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{i.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function En(){const{widgetCtx:e}=Ct();return{messagesState:El(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function wi(){const{widgetCtx:e}=Ct(),{oneOpenSessionAllowed:t}=$e(),n=El(e.sessionCtx.sessionState),i=El(e.sessionCtx.sessionsState),{openSessions:a,closedSessions:r}=_.useMemo(()=>({openSessions:i.data.filter(o=>o.isOpened===!0),closedSessions:i.data.filter(o=>o.isOpened===!1)}),[i.data]),s=_.useMemo(()=>t?a.length===0:!0,[t,a.length]);return{sessionState:n,sessionsState:i,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:a,closedSessions:r,canCreateNewSession:s}}function Cx(){var e,t,n;const{sessionState:i}=wi(),{messagesState:a}=En(),r=((e=i.session)==null?void 0:e.assignee.kind)==="ai",s=((n=(t=a.messages)==null?void 0:t.at(-1))==null?void 0:n.type)==="USER";return{isAwaitingBotReply:!!(a.isSendingMessageToAI||(r||i.isCreatingSession)&&(a.isSendingMessage||s))}}function Si(){const{widgetCtx:e}=Ct();return{routerState:El(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Ya=new Map;function Q5(){const[e,t]=_.useState([]),{widgetCtx:{api:n}}=Ct();function i(c){const d=c.map(f=>({file:f,id:Cp(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(s)}function a(c,d){t(f=>f.map(h=>h.id===c?{...h,...d}:h))}function r(c){t(d=>d.filter(f=>f.id!==c))}const s=async c=>{const d=new AbortController;Ya.set(c.id,d);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const f=await n.uploadFile({file:c.file,abortSignal:d.signal,onProgress:h=>{a(c.id,{progress:h})}});a(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||a(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{Ya.delete(c.id)}},o=c=>{const d=Ya.get(c);d&&(d.abort(),Ya.delete(c)),r(c)},l=_.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Ya.forEach(c=>c.abort()),Ya.clear(),t([])}return _.useEffect(()=>()=>{Ya.forEach(c=>c.abort()),Ya.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const kx=_.createContext(null);function W5({children:e}){const t=$e(),[n,i]=_.useState(()=>t.inline?!0:t.isOpen??!1);return _.useEffect(()=>{i(a=>t.isOpen??a)},[t.isOpen]),_.useEffect(()=>{const a=t.openAfterNSeconds;if(typeof a!="number"||isNaN(a))return;const r=setTimeout(()=>i(!0),a*1e3);return()=>clearTimeout(r)},[t.openAfterNSeconds]),pn.createElement(kx.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function jr(){const e=_.useContext(kx);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function Ox(){var e,t;const{widgetCtx:n}=Ct(),{modesComponents:i}=$e(),{sessionState:a}=wi(),r=n.modes,s=(e=a.session)==null?void 0:e.modeId,o=r.find(u=>u.id===s),l=(t=i==null?void 0:i.find(u=>{var c,d;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((d=o==null?void 0:o.slug)==null?void 0:d.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:r,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Nx(){const{widgetCtx:e}=Ct(),{messagesState:{messages:t}}=En(),{csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}=_.useMemo(()=>{const l=t.find(c=>c.type==="SYSTEM"&&c.subtype==="csat_requested"),u=t.findLast(c=>c.type==="SYSTEM"&&c.subtype==="csat_submitted");return{csatRequestedMessage:l,isCsatRequested:!!l&&!u,csatSubmittedMessage:u,isCsatSubmitted:!!u,submittedScore:u==null?void 0:u.data.payload.score,submittedFeedback:u==null?void 0:u.data.payload.feedback}},[t]);return{submitCsat:e.csatCtx.submitCsat,csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}}/**
69
69
  * @license lucide-react v0.436.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
@@ -80,12 +80,12 @@ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const eM=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:r,iconNode:s,...o},l)=>E.createElement("svg",{ref:l,...J5,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Rx("lucide",a),...o},[...s.map(([u,c])=>E.createElement(u,c)),...Array.isArray(r)?r:[r]]));/**
83
+ */const eM=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:r,iconNode:s,...o},l)=>_.createElement("svg",{ref:l,...J5,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Rx("lucide",a),...o},[...s.map(([u,c])=>_.createElement(u,c)),...Array.isArray(r)?r:[r]]));/**
84
84
  * @license lucide-react v0.436.0 - ISC
85
85
  *
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
- */const Me=(e,t)=>{const n=E.forwardRef(({className:i,...a},r)=>E.createElement(eM,{ref:r,iconNode:t,className:Rx(`lucide-${Z5(e)}`,i),...a}));return n.displayName=`${e}`,n};/**
88
+ */const Me=(e,t)=>{const n=_.forwardRef(({className:i,...a},r)=>_.createElement(eM,{ref:r,iconNode:t,className:Rx(`lucide-${Z5(e)}`,i),...a}));return n.displayName=`${e}`,n};/**
89
89
  * @license lucide-react v0.436.0 - ISC
90
90
  *
91
91
  * This source code is licensed under the ISC license.
@@ -255,7 +255,7 @@ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
255
255
  *
256
256
  * This source code is licensed under the ISC license.
257
257
  * See the LICENSE file in the root directory of this source tree.
258
- */const CM=Me("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function zx(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zx(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function jx(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zx(e))&&(i&&(i+=" "),i+=t);return i}const Op="-",kM=e=>{const t=NM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(Op);return o[0]===""&&o.length!==1&&o.shift(),Ux(o,t)||OM(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},Ux=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),a=i?Ux(e.slice(1),i):void 0;if(a)return a;if(t.validators.length===0)return;const r=e.join(Op);return(s=t.validators.find(({validator:o})=>o(r)))==null?void 0:s.classGroupId},Hx=/^\[(.+)\]$/,OM=e=>{if(Hx.test(e)){const t=Hx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},NM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return DM(Object.entries(e.classGroups),n).forEach(([r,s])=>{Np(s,i,r,t)}),i},Np=(e,t,n,i)=>{e.forEach(a=>{if(typeof a=="string"){const r=a===""?t:Fx(t,a);r.classGroupId=n;return}if(typeof a=="function"){if(RM(a)){Np(a(i),t,n,i);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([r,s])=>{Np(s,Fx(t,r),n,i)})})},Fx=(e,t)=>{let n=e;return t.split(Op).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},RM=e=>e.isThemeGetter,DM=(e,t)=>t?e.map(([n,i])=>{const a=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,o])=>[t+s,o])):r);return[n,a]}):e,MM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const a=(r,s)=>{n.set(r,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return a(r,s),s},set(r,s){n.has(r)?n.set(r,s):a(r,s)}}},Vx="!",LM=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,a=t[0],r=t.length,s=o=>{const l=[];let u=0,c=0,d;for(let _=0;_<o.length;_++){let m=o[_];if(u===0){if(m===a&&(i||o.slice(_,_+r)===t)){l.push(o.slice(c,_)),c=_+r;continue}if(m==="/"){d=_;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?o:o.substring(c),h=f.startsWith(Vx),g=h?f.substring(1):f,b=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},IM=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},PM=e=>({cache:MM(e.cacheSize),parseClassName:LM(e),...kM(e)}),BM=/\s+/,zM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a}=t,r=[],s=e.trim().split(BM);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=i(g?f.substring(0,h):f);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=i(f),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const _=IM(c).join(":"),m=d?_+Vx:_,y=m+b;if(r.includes(y))continue;r.push(y);const x=a(b,g);for(let T=0;T<x.length;++T){const S=x[T];r.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function jM(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Yx(t))&&(i&&(i+=" "),i+=n);return i}const Yx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Yx(e[i]))&&(n&&(n+=" "),n+=t);return n};function UM(e,...t){let n,i,a,r=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=PM(u),i=n.cache.get,a=n.cache.set,r=o,o(l)}function o(l){const u=i(l);if(u)return u;const c=zM(l,n);return a(l,c),c}return function(){return r(jM.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},qx=/^\[(?:([a-z-]+):)?(.+)\]$/i,HM=/^\d+\/\d+$/,FM=new Set(["px","full","screen"]),VM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,GM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ca=e=>Us(e)||FM.has(e)||HM.test(e),qa=e=>Hs(e,"length",tL),Us=e=>!!e&&!Number.isNaN(Number(e)),Rp=e=>Hs(e,"number",Us),Tl=e=>!!e&&Number.isInteger(Number(e)),XM=e=>e.endsWith("%")&&Us(e.slice(0,-1)),Te=e=>qx.test(e),Ga=e=>VM.test(e),KM=new Set(["length","size","percentage"]),QM=e=>Hs(e,KM,Gx),WM=e=>Hs(e,"position",Gx),ZM=new Set(["image","url"]),JM=e=>Hs(e,ZM,iL),eL=e=>Hs(e,"",nL),wl=()=>!0,Hs=(e,t,n)=>{const i=qx.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},tL=e=>YM.test(e)&&!qM.test(e),Gx=()=>!1,nL=e=>GM.test(e),iL=e=>$M.test(e),aL=UM(()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),i=it("brightness"),a=it("borderColor"),r=it("borderRadius"),s=it("borderSpacing"),o=it("borderWidth"),l=it("contrast"),u=it("grayscale"),c=it("hueRotate"),d=it("invert"),f=it("gap"),h=it("gradientColorStops"),g=it("gradientColorStopPositions"),b=it("inset"),_=it("margin"),m=it("opacity"),y=it("padding"),x=it("saturate"),T=it("scale"),S=it("sepia"),A=it("skew"),D=it("space"),L=it("translate"),B=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],U=()=>[Te,t],ae=()=>["",ca,qa],ee=()=>["auto",Us,Te],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Te],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Us,Te];return{cacheSize:500,separator:":",theme:{colors:[wl],spacing:[ca,qa],blur:["none","",Ga,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",Ga,Te],borderSpacing:U(),borderWidth:ae(),contrast:be(),grayscale:te(),hueRotate:be(),invert:te(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[XM,qa],inset:Y(),margin:Y(),opacity:be(),padding:U(),saturate:be(),scale:be(),sepia:te(),skew:be(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Ga]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),Te]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tl,Te]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Tl,Te]}],"grid-cols":[{"grid-cols":[wl]}],"col-start-end":[{col:["auto",{span:["full",Tl,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[wl]}],"row-start-end":[{row:["auto",{span:[Tl,Te]},Te]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Ga]},Ga]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ga,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rp]}],"font-family":[{font:[wl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Us,Rp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ca,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ca,qa]}],"underline-offset":[{"underline-offset":["auto",ca,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),WM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",QM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JM]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[ca,Te]}],"outline-w":[{outline:[ca,qa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ca,qa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ga,eL]}],"shadow-color":[{shadow:[wl]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ga,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Tl,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ca,qa,Rp]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Dp=E.createContext({});function Mp(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=E.createContext(null),Lp=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class rL extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function sL({children:e,isPresent:t}){const n=E.useId(),i=E.useRef(null),a=E.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=E.useContext(Lp);return E.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=a.current;if(t||!i.current||!s||!o)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
258
+ */const CM=Me("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function zx(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=zx(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function jx(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=zx(e))&&(i&&(i+=" "),i+=t);return i}const Op="-",kM=e=>{const t=NM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(Op);return o[0]===""&&o.length!==1&&o.shift(),Ux(o,t)||OM(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},Ux=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),a=i?Ux(e.slice(1),i):void 0;if(a)return a;if(t.validators.length===0)return;const r=e.join(Op);return(s=t.validators.find(({validator:o})=>o(r)))==null?void 0:s.classGroupId},Hx=/^\[(.+)\]$/,OM=e=>{if(Hx.test(e)){const t=Hx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},NM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return DM(Object.entries(e.classGroups),n).forEach(([r,s])=>{Np(s,i,r,t)}),i},Np=(e,t,n,i)=>{e.forEach(a=>{if(typeof a=="string"){const r=a===""?t:Fx(t,a);r.classGroupId=n;return}if(typeof a=="function"){if(RM(a)){Np(a(i),t,n,i);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([r,s])=>{Np(s,Fx(t,r),n,i)})})},Fx=(e,t)=>{let n=e;return t.split(Op).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},RM=e=>e.isThemeGetter,DM=(e,t)=>t?e.map(([n,i])=>{const a=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,o])=>[t+s,o])):r);return[n,a]}):e,MM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const a=(r,s)=>{n.set(r,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return a(r,s),s},set(r,s){n.has(r)?n.set(r,s):a(r,s)}}},Vx="!",LM=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,a=t[0],r=t.length,s=o=>{const l=[];let u=0,c=0,d;for(let E=0;E<o.length;E++){let m=o[E];if(u===0){if(m===a&&(i||o.slice(E,E+r)===t)){l.push(o.slice(c,E)),c=E+r;continue}if(m==="/"){d=E;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?o:o.substring(c),h=f.startsWith(Vx),g=h?f.substring(1):f,b=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},IM=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},PM=e=>({cache:MM(e.cacheSize),parseClassName:LM(e),...kM(e)}),BM=/\s+/,zM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a}=t,r=[],s=e.trim().split(BM);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=i(g?f.substring(0,h):f);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=i(f),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const E=IM(c).join(":"),m=d?E+Vx:E,y=m+b;if(r.includes(y))continue;r.push(y);const x=a(b,g);for(let T=0;T<x.length;++T){const S=x[T];r.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function jM(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Yx(t))&&(i&&(i+=" "),i+=n);return i}const Yx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Yx(e[i]))&&(n&&(n+=" "),n+=t);return n};function UM(e,...t){let n,i,a,r=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=PM(u),i=n.cache.get,a=n.cache.set,r=o,o(l)}function o(l){const u=i(l);if(u)return u;const c=zM(l,n);return a(l,c),c}return function(){return r(jM.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},qx=/^\[(?:([a-z-]+):)?(.+)\]$/i,HM=/^\d+\/\d+$/,FM=new Set(["px","full","screen"]),VM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,GM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ca=e=>Us(e)||FM.has(e)||HM.test(e),qa=e=>Hs(e,"length",tL),Us=e=>!!e&&!Number.isNaN(Number(e)),Rp=e=>Hs(e,"number",Us),Tl=e=>!!e&&Number.isInteger(Number(e)),XM=e=>e.endsWith("%")&&Us(e.slice(0,-1)),Te=e=>qx.test(e),Ga=e=>VM.test(e),KM=new Set(["length","size","percentage"]),QM=e=>Hs(e,KM,Gx),WM=e=>Hs(e,"position",Gx),ZM=new Set(["image","url"]),JM=e=>Hs(e,ZM,iL),eL=e=>Hs(e,"",nL),wl=()=>!0,Hs=(e,t,n)=>{const i=qx.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},tL=e=>YM.test(e)&&!qM.test(e),Gx=()=>!1,nL=e=>GM.test(e),iL=e=>$M.test(e),aL=UM(()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),i=it("brightness"),a=it("borderColor"),r=it("borderRadius"),s=it("borderSpacing"),o=it("borderWidth"),l=it("contrast"),u=it("grayscale"),c=it("hueRotate"),d=it("invert"),f=it("gap"),h=it("gradientColorStops"),g=it("gradientColorStopPositions"),b=it("inset"),E=it("margin"),m=it("opacity"),y=it("padding"),x=it("saturate"),T=it("scale"),S=it("sepia"),A=it("skew"),D=it("space"),L=it("translate"),B=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],U=()=>[Te,t],ae=()=>["",ca,qa],ee=()=>["auto",Us,Te],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Te],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Us,Te];return{cacheSize:500,separator:":",theme:{colors:[wl],spacing:[ca,qa],blur:["none","",Ga,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",Ga,Te],borderSpacing:U(),borderWidth:ae(),contrast:be(),grayscale:te(),hueRotate:be(),invert:te(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[XM,qa],inset:Y(),margin:Y(),opacity:be(),padding:U(),saturate:be(),scale:be(),sepia:te(),skew:be(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Ga]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),Te]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tl,Te]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Tl,Te]}],"grid-cols":[{"grid-cols":[wl]}],"col-start-end":[{col:["auto",{span:["full",Tl,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[wl]}],"row-start-end":[{row:["auto",{span:[Tl,Te]},Te]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Ga]},Ga]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ga,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rp]}],"font-family":[{font:[wl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Us,Rp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ca,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ca,qa]}],"underline-offset":[{"underline-offset":["auto",ca,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),WM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",QM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JM]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[ca,Te]}],"outline-w":[{outline:[ca,qa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ca,qa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ga,eL]}],"shadow-color":[{shadow:[wl]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ga,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Tl,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ca,qa,Rp]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Dp=_.createContext({});function Mp(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=_.createContext(null),Lp=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class rL extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function sL({children:e,isPresent:t}){const n=_.useId(),i=_.useRef(null),a=_.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=_.useContext(Lp);return _.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=a.current;if(t||!i.current||!s||!o)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
259
259
  [data-motion-pop-id="${n}"] {
260
260
  position: absolute !important;
261
261
  width: ${s}px !important;
@@ -263,8 +263,8 @@ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
263
263
  top: ${l}px !important;
264
264
  left: ${u}px !important;
265
265
  }
266
- `),()=>{document.head.removeChild(c)}},[t]),v.jsx(rL,{isPresent:t,childRef:i,sizeRef:a,children:E.cloneElement(e,{ref:i})})}const oL=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:r,mode:s})=>{const o=Mp(lL),l=E.useId(),u=E.useCallback(d=>{o.set(d,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),r?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((d,f)=>o.set(f,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=v.jsx(sL,{isPresent:n,children:e})),v.jsx(nd.Provider,{value:c,children:e})};function lL(){return new Map}function $x(e=!0){const t=E.useContext(nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,r=E.useId();E.useEffect(()=>{e&&a(r)},[e]);const s=E.useCallback(()=>e&&i&&i(r),[r,i,e]);return!n&&i?[!1,s]:[!0]}const id=e=>e.key||"";function Xx(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Ip=typeof window<"u",Kx=Ip?E.useLayoutEffect:E.useEffect,Pt=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:r="sync",propagate:s=!1})=>{const[o,l]=$x(s),u=E.useMemo(()=>Xx(e),[e]),c=s&&!o?[]:u.map(id),d=E.useRef(!0),f=E.useRef(u),h=Mp(()=>new Map),[g,b]=E.useState(u),[_,m]=E.useState(u);Kx(()=>{d.current=!1,f.current=u;for(let T=0;T<_.length;T++){const S=id(_[T]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[_,c.length,c.join("-")]);const y=[];if(u!==g){let T=[...u];for(let S=0;S<_.length;S++){const A=_[S],D=id(A);c.includes(D)||(T.splice(S,0,A),y.push(A))}r==="wait"&&y.length&&(T=y),m(Xx(T)),b(u);return}const{forceRender:x}=E.useContext(Dp);return v.jsx(v.Fragment,{children:_.map(T=>{const S=id(T),A=s&&!o?!1:u===_||c.includes(S),D=()=>{if(h.has(S))h.set(S,!0);else return;let L=!0;h.forEach(B=>{B||(L=!1)}),L&&(x==null||x(),m(f.current),s&&(l==null||l()),i&&i())};return v.jsx(oL,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:a,mode:r,onExitComplete:A?void 0:D,children:T},S)})})},Bn=e=>e;let Qx=Bn;function Pp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},da=e=>e*1e3,fa=e=>e/1e3,uL={useManualTiming:!1};function cL(e){let t=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){r.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&i?t:n;return c&&r.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[t,n]=[n,t],t.forEach(o),t.clear(),i=!1,a&&(a=!1,l.process(u))}};return l}const ad=["read","resolveKeyframes","update","preRender","render","postRender"],dL=40;function Wx(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=ad.reduce((m,y)=>(m[y]=cL(r),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(m-a.timestamp,dL),1),a.timestamp=m,a.isProcessing=!0,o.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,a.isProcessing||e(h)};return{schedule:ad.reduce((m,y)=>{const x=s[y];return m[y]=(T,S=!1,A=!1)=>(n||g(),x.schedule(T,S,A)),m},{}),cancel:m=>{for(let y=0;y<ad.length;y++)s[ad[y]].cancel(m)},state:a,steps:s}}const{schedule:at,cancel:$a,state:Wt,steps:Bp}=Wx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0),Zx=E.createContext({strict:!1}),Jx={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"]},Vs={};for(const e in Jx)Vs[e]={isEnabled:t=>Jx[e].some(n=>!!t[n])};function fL(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const hL=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 rd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hL.has(e)}let e_=e=>!rd(e);function pL(e){e&&(e_=t=>t.startsWith("on")?!rd(t):e(t))}try{pL(require("@emotion/is-prop-valid").default)}catch{}function mL(e,t,n){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||(e_(a)||n===!0&&rd(a)||!t&&!rd(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}function gL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const sd=E.createContext({});function Sl(e){return typeof e=="string"||Array.isArray(e)}function od(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jp=["initial",...zp];function ld(e){return od(e.animate)||jp.some(t=>Sl(e[t]))}function t_(e){return!!(ld(e)||e.variants)}function bL(e,t){if(ld(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Sl(n)?n:void 0,animate:Sl(i)?i:void 0}}return e.inherit!==!1?t:{}}function vL(e){const{initial:t,animate:n}=bL(e,E.useContext(sd));return E.useMemo(()=>({initial:t,animate:n}),[n_(t),n_(n)])}function n_(e){return Array.isArray(e)?e.join(" "):e}const yL=Symbol.for("motionComponentSymbol");function Ys(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xL(e,t,n){return E.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Ys(n)&&(n.current=i))},[t])}const Up=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),i_="data-"+Up("framerAppearId"),{schedule:Hp}=Wx(queueMicrotask,!1),a_=E.createContext({});function _L(e,t,n,i,a){var r,s;const{visualElement:o}=E.useContext(sd),l=E.useContext(Zx),u=E.useContext(nd),c=E.useContext(Lp).reducedMotion,d=E.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=E.useContext(a_);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&EL(d.current,n,a,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const b=n[i_],_=E.useRef(!!b&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return Kx(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Hp.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),E.useEffect(()=>{f&&(!_.current&&f.animationState&&f.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),_.current=!1))}),f}function EL(e,t,n,i){const{layoutId:a,layout:r,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:r_(e.parent)),e.projection.setOptions({layoutId:a,layout:r,alwaysMeasureLayout:!!s||o&&Ys(o),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function r_(e){if(e)return e.options.allowProjection!==!1?e.projection:r_(e.parent)}function TL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:a}){var r,s;e&&fL(e);function o(u,c){let d;const f={...E.useContext(Lp),...u,layoutId:wL(u)},{isStatic:h}=f,g=vL(u),b=i(u,h);if(!h&&Ip){SL();const _=AL(f);d=_.MeasureLayout,g.visualElement=_L(a,b,f,t,_.ProjectionNode)}return v.jsxs(sd.Provider,{value:g,children:[d&&g.visualElement?v.jsx(d,{visualElement:g.visualElement,...f}):null,n(a,u,xL(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(r=a.displayName)!==null&&r!==void 0?r:a.name)!==null&&s!==void 0?s:""})`}`;const l=E.forwardRef(o);return l[yL]=a,l}function wL({layoutId:e}){const t=E.useContext(Dp).id;return t&&e!==void 0?t+"-"+e:e}function SL(e,t){E.useContext(Zx).strict}function AL(e){const{drag:t,layout:n}=Vs;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const CL=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(CL.indexOf(e)>-1||/[A-Z]/u.test(e))}function s_(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Vp(e,t,n,i){if(typeof t=="function"){const[a,r]=s_(i);t=t(n!==void 0?n:e.custom,a,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,r]=s_(i);t=t(n!==void 0?n:e.custom,a,r)}return t}const Yp=e=>Array.isArray(e),kL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),OL=e=>Yp(e)?e[e.length-1]||0:e,an=e=>!!(e&&e.getVelocity);function ud(e){const t=an(e)?e.get():e;return kL(t)?t.toValue():t}function NL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,a,r){const s={latestValues:RL(i,a,r,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const o_=e=>(t,n)=>{const i=E.useContext(sd),a=E.useContext(nd),r=()=>NL(e,t,i,a);return n?r():Mp(r)};function RL(e,t,n,i){const a={},r=i(e,{});for(const f in r)a[f]=ud(r[f]);let{initial:s,animate:o}=e;const l=ld(e),u=t_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!od(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=Vp(e,f[h]);if(g){const{transitionEnd:b,transition:_,...m}=g;for(const y in m){let x=m[y];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(a[y]=x)}for(const y in b)a[y]=b[y]}}}return a}const qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(qs),l_=e=>t=>typeof t=="string"&&t.startsWith(e),u_=l_("--"),DL=l_("var(--"),qp=e=>DL(e)?ML.test(e.split("/*")[0].trim()):!1,ML=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,c_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ha=(e,t,n)=>n>t?t:n<e?e:n,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Al={...Gs,transform:e=>ha(0,1,e)},cd={...Gs,default:1},Cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xa=Cl("deg"),Vi=Cl("%"),pe=Cl("px"),LL=Cl("vh"),IL=Cl("vw"),d_={...Vi,parse:e=>Vi.parse(e)/100,transform:e=>Vi.transform(e*100)},PL={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},BL={rotate:Xa,rotateX:Xa,rotateY:Xa,rotateZ:Xa,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Xa,skewX:Xa,skewY:Xa,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Al,originX:d_,originY:d_,originZ:pe},f_={...Gs,transform:Math.round},Gp={...PL,...BL,zIndex:f_,size:pe,fillOpacity:Al,strokeOpacity:Al,numOctaves:f_},zL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jL=qs.length;function UL(e,t,n){let i="",a=!0;for(let r=0;r<jL;r++){const s=qs[r],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=c_(o,Gp[s]);if(!l){a=!1;const c=zL[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}function $p(e,t,n){const{style:i,vars:a,transformOrigin:r}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(Ur.has(l)){s=!0;continue}else if(u_(l)){a[l]=u;continue}else{const c=c_(u,Gp[l]);l.startsWith("origin")?(o=!0,r[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=UL(t,e.transform,n):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}const HL={offset:"stroke-dashoffset",array:"stroke-dasharray"},FL={offset:"strokeDashoffset",array:"strokeDasharray"};function VL(e,t,n=1,i=0,a=!0){e.pathLength=1;const r=a?HL:FL;e[r.offset]=pe.transform(-i);const s=pe.transform(t),o=pe.transform(n);e[r.array]=`${s} ${o}`}function h_(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function YL(e,t,n){const i=h_(t,e.x,e.width),a=h_(n,e.y,e.height);return`${i} ${a}`}function Xp(e,{attrX:t,attrY:n,attrScale:i,originX:a,originY:r,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if($p(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(a!==void 0||r!==void 0||h.transform)&&(h.transformOrigin=YL(g,a!==void 0?a:.5,r!==void 0?r:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&VL(f,s,o,l,!1)}const Kp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p_=()=>({...Kp(),attrs:{}}),Qp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m_(e,{style:t,vars:n},i,a){Object.assign(e.style,t,a&&a.getProjectionStyles(i));for(const r in n)e.style.setProperty(r,n[r])}const g_=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 b_(e,t,n,i){m_(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(g_.has(a)?a:Up(a),t.attrs[a])}const dd={};function qL(e){Object.assign(dd,e)}function v_(e,{layout:t,layoutId:n}){return Ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}function Wp(e,t,n){var i;const{style:a}=e,r={};for(const s in a)(an(a[s])||t.style&&an(t.style[s])||v_(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[s]=a[s]);return r}function y_(e,t,n){const i=Wp(e,t,n);for(const a in e)if(an(e[a])||an(t[a])){const r=qs.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[r]=e[a]}return i}function GL(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const x_=["x","y","width","height","cx","cy","r"],$L={useVisualState:o_({scrapeMotionValuesFromProps:y_,createRenderState:p_,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:a})=>{if(!n)return;let r=!!e.drag;if(!r){for(const o in a)if(Ur.has(o)){r=!0;break}}if(!r)return;let s=!t;if(t)for(let o=0;o<x_.length;o++){const l=x_[o];e[l]!==t[l]&&(s=!0)}s&&at.read(()=>{GL(n,i),at.render(()=>{Xp(i,a,Qp(n.tagName),e.transformTemplate),b_(n,i)})})}})},XL={useVisualState:o_({scrapeMotionValuesFromProps:Wp,createRenderState:Kp})};function __(e,t,n){for(const i in t)!an(t[i])&&!v_(i,n)&&(e[i]=t[i])}function KL({transformTemplate:e},t){return E.useMemo(()=>{const n=Kp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function QL(e,t){const n=e.style||{},i={};return __(i,n,e),Object.assign(i,KL(e,t)),i}function WL(e,t){const n={},i=QL(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}function ZL(e,t,n,i){const a=E.useMemo(()=>{const r=p_();return Xp(r,t,Qp(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};__(r,e.style,e),a.style={...r,...a.style}}return a}function JL(e=!1){return(n,i,a,{latestValues:r},s)=>{const l=(Fp(n)?ZL:WL)(i,r,s,n),u=mL(i,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:a}:{},{children:d}=i,f=E.useMemo(()=>an(d)?d.get():d,[d]);return E.createElement(n,{...c,children:f})}}function eI(e,t){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...Fp(i)?$L:XL,preloadedFeatures:e,useRender:JL(a),createVisualElement:t,Component:i};return TL(s)}}function E_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function fd(e,t,n){const i=e.getProps();return Vp(i,t,n!==void 0?n:i.custom,e)}const tI=Pp(()=>window.ScrollTimeline!==void 0);class nI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t,n){const i=this.animations.map(a=>{if(tI()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,r)=>{a&&a(),this.animations[r].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 iI extends nI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Zp(e,t){return e?e[t]||e.default||e:void 0}const Jp=2e4;function T_(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Jp;)t+=n,i=e.next(t);return t>=Jp?1/0:t}function em(e){return typeof e=="function"}function w_(e,t){e.timeline=t,e.onfinish=null}const tm=e=>Array.isArray(e)&&typeof e[0]=="number",aI={linearEasing:void 0};function rI(e,t){const n=Pp(e);return()=>{var i;return(i=aI[t])!==null&&i!==void 0?i:n()}}const hd=rI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),S_=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let r=0;r<a;r++)i+=e(Fs(0,a-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function A_(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in nm||hd())||tm(e)||Array.isArray(e)&&e.every(A_))}const kl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,nm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kl([0,.65,.55,1]),circOut:kl([.55,0,1,.45]),backIn:kl([.31,.01,.66,-.59]),backOut:kl([.33,1.53,.69,.99])};function C_(e,t){if(e)return typeof e=="function"&&hd()?S_(e,t):tm(e)?kl(e):Array.isArray(e)?e.map(n=>C_(n,t)||nm.easeOut):nm[e]}const Ai={x:!1,y:!1};function k_(){return Ai.x||Ai.y}function sI(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const r=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}function O_(e,t){const n=sI(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[n,a,()=>i.abort()]}function N_(e){return t=>{t.pointerType==="touch"||k_()||e(t)}}function oI(e,t,n={}){const[i,a,r]=O_(e,n),s=N_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=N_(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,a)});return i.forEach(o=>{o.addEventListener("pointerenter",s,a)}),r}const R_=(e,t)=>t?e===t?!0:R_(e,t.parentElement):!1,im=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uI(e){return lI.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function D_(e){return t=>{t.key==="Enter"&&e(t)}}function am(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=D_(()=>{if(Ol.has(n))return;am(n,"down");const a=D_(()=>{am(n,"up")}),r=()=>am(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function M_(e){return im(e)&&!k_()}function dI(e,t,n={}){const[i,a,r]=O_(e,n),s=o=>{const l=o.currentTarget;if(!M_(o)||Ol.has(l))return;Ol.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!M_(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||R_(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",f,a)};return i.forEach(o=>{!uI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",u=>cI(u,a),a)}),r}function fI(e){return e==="x"||e==="y"?Ai[e]?null:(Ai[e]=!0,()=>{Ai[e]=!1}):Ai.x||Ai.y?null:(Ai.x=Ai.y=!0,()=>{Ai.x=Ai.y=!1})}const L_=new Set(["width","height","top","left","right","bottom",...qs]);let pd;function hI(){pd=void 0}const Yi={now:()=>(pd===void 0&&Yi.set(Wt.isProcessing||uL.useManualTiming?Wt.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(hI)}};function rm(e,t){e.indexOf(t)===-1&&e.push(t)}function sm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class om{constructor(){this.subscriptions=[]}add(t){return rm(this.subscriptions,t),()=>sm(this.subscriptions,t)}notify(t,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,i);else for(let r=0;r<a;r++){const s=this.subscriptions[r];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function I_(e,t){return t?e*(1e3/t):0}const P_=30,pI=e=>!isNaN(parseFloat(e));class mI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const r=Yi.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&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=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pI(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 om);const i=this.events[t].add(n);return t==="change"?()=>{i(),at.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>P_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,P_);return I_(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 Nl(e,t){return new mI(e,t)}function gI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function bI(e,t){const n=fd(e,t);let{transitionEnd:i={},transition:a={},...r}=n||{};r={...r,...i};for(const s in r){const o=OL(r[s]);gI(e,s,o)}}function vI(e){return!!(an(e)&&e.add)}function lm(e,t){const n=e.getValue("willChange");if(vI(n))return n.add(t)}function B_(e){return e.props[i_]}const z_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yI=1e-7,xI=12;function _I(e,t,n,i,a){let r,s,o=0;do s=t+(n-t)/2,r=z_(s,i,a)-e,r>0?n=s:t=s;while(Math.abs(r)>yI&&++o<xI);return s}function Rl(e,t,n,i){if(e===t&&n===i)return Bn;const a=r=>_I(r,0,1,e,n);return r=>r===0||r===1?r:z_(a(r),t,i)}const j_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,U_=e=>t=>1-e(1-t),H_=Rl(.33,1.53,.69,.99),um=U_(H_),F_=j_(um),V_=e=>(e*=2)<1?.5*um(e):.5*(2-Math.pow(2,-10*(e-1))),cm=e=>1-Math.sin(Math.acos(e)),Y_=U_(cm),q_=j_(cm),G_=e=>/^0[^.\s]+$/u.test(e);function EI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||G_(e):!0}const Dl=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TI(e){return e==null}const wI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,t)=>n=>!!(typeof n=="string"&&wI.test(n)&&n.startsWith(e)||t&&!TI(n)&&Object.prototype.hasOwnProperty.call(n,t)),$_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[a,r,s,o]=i.match(dm);return{[e]:parseFloat(a),[t]:parseFloat(r),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},SI=e=>ha(0,255,e),hm={...Gs,transform:e=>Math.round(SI(e))},Hr={test:fm("rgb","red"),parse:$_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+hm.transform(e)+", "+hm.transform(t)+", "+hm.transform(n)+", "+Dl(Al.transform(i))+")"};function AI(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const pm={test:fm("#"),parse:AI,transform:Hr.transform},$s={test:fm("hsl","hue"),parse:$_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Vi.transform(Dl(t))+", "+Vi.transform(Dl(n))+", "+Dl(Al.transform(i))+")"},rn={test:e=>Hr.test(e)||pm.test(e)||$s.test(e),parse:e=>Hr.test(e)?Hr.parse(e):$s.test(e)?$s.parse(e):pm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hr.transform(e):$s.transform(e)},CI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(CI))===null||n===void 0?void 0:n.length)||0)>0}const X_="number",K_="color",OI="var",NI="var(",Q_="${}",RI=/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 Ml(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let r=0;const o=t.replace(RI,l=>(rn.test(l)?(i.color.push(r),a.push(K_),n.push(rn.parse(l))):l.startsWith(NI)?(i.var.push(r),a.push(OI),n.push(l)):(i.number.push(r),a.push(X_),n.push(parseFloat(l))),++r,Q_)).split(Q_);return{values:n,split:o,indexes:i,types:a}}function W_(e){return Ml(e).values}function Z_(e){const{split:t,types:n}=Ml(e),i=t.length;return a=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],a[s]!==void 0){const o=n[s];o===X_?r+=Dl(a[s]):o===K_?r+=rn.transform(a[s]):r+=a[s]}return r}}const DI=e=>typeof e=="number"?0:e;function MI(e){const t=W_(e);return Z_(e)(t.map(DI))}const Ka={test:kI,parse:W_,createTransformer:Z_,getAnimatableNone:MI},LI=new Set(["brightness","contrast","saturate","opacity"]);function II(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(dm)||[];if(!i)return e;const a=n.replace(i,"");let r=LI.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+a+")"}const PI=/\b([a-z-]*)\(.*?\)/gu,mm={...Ka,getAnimatableNone:e=>{const t=e.match(PI);return t?t.map(II).join(" "):e}},BI={...Gp,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:mm,WebkitFilter:mm},gm=e=>BI[e];function J_(e,t){let n=gm(e);return n!==mm&&(n=Ka),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zI=new Set(["auto","none","0"]);function jI(e,t,n){let i=0,a;for(;i<e.length&&!a;){const r=e[i];typeof r=="string"&&!zI.has(r)&&Ml(r).values.length&&(a=e[i]),i++}if(a&&n)for(const r of t)e[r]=J_(n,a)}const eE=e=>e===Gs||e===pe,tE=(e,t)=>parseFloat(e.split(", ")[t]),nE=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return tE(a[1],t);{const r=i.match(/^matrix\((.+)\)$/u);return r?tE(r[1],e):0}},UI=new Set(["x","y","z"]),HI=qs.filter(e=>!UI.has(e));function FI(e){const t=[];return HI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Xs={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:nE(4,13),y:nE(5,14)};Xs.translateX=Xs.x,Xs.translateY=Xs.y;const Fr=new Set;let bm=!1,vm=!1;function iE(){if(vm){const e=Array.from(Fr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const a=FI(i);a.length&&(n.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([r,s])=>{var o;(o=i.getValue(r))===null||o===void 0||o.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}vm=!1,bm=!1,Fr.forEach(e=>e.complete()),Fr.clear()}function aE(){Fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vm=!0)})}function VI(){aE(),iE()}class ym{constructor(t,n,i,a,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=a,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fr.add(this),bm||(bm=!0,at.read(aE),at.resolveKeyframes(iE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:a}=this;for(let r=0;r<t.length;r++)if(t[r]===null)if(r===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const l=i.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const rE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qI(e){const t=YI.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}function sE(e,t,n=1){const[i,a]=qI(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const s=r.trim();return rE(s)?parseFloat(s):s}return qp(a)?sE(a,t,n+1):a}const oE=e=>t=>t.test(e),lE=[Gs,pe,Vi,Xa,IL,LL,{test:e=>e==="auto",parse:e=>e}],uE=e=>lE.find(oE(e));class cE extends ym{constructor(t,n,i,a,r){super(t,n,i,a,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=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(),qp(u))){const c=sE(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!L_.has(i)||t.length!==2)return;const[a,r]=t,s=uE(a),o=uE(r);if(s!==o)if(eE(s)&&eE(o))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,i=[];for(let a=0;a<t.length;a++)EI(t[a])&&i.push(a);i.length&&jI(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xs[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(i,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const r=n.getValue(i);r&&r.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Xs[i](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const dE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ka.test(e)||e==="0")&&!e.startsWith("url("));function GI(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 $I(e,t,n,i){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],s=dE(a,t),o=dE(r,t);return!s||!o?!1:GI(e)||(n==="spring"||em(n))&&i}const XI=e=>e!==null;function md(e,{repeat:t,repeatType:n="loop"},i){const a=e.filter(XI),r=t&&n!=="loop"&&t%2===1?0:a.length-1;return!r||i===void 0?a[r]:i}const KI=40;class fE{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yi.now(),this.options={autoplay:t,delay:n,type:i,repeat:a,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>KI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&VI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:r,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!$I(t,i,a,r))if(s)this.options.duration=0;else{l&&l(md(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ht=(e,t,n)=>e+(t-e)*n;function xm(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 QI({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let a=0,r=0,s=0;if(!t)a=r=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=xm(l,o,e+1/3),r=xm(l,o,e),s=xm(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:i}}function gd(e,t){return n=>n>0?t:e}const _m=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},WI=[pm,Hr,$s],ZI=e=>WI.find(t=>t.test(e));function hE(e){const t=ZI(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=QI(n)),n}const pE=(e,t)=>{const n=hE(e),i=hE(t);if(!n||!i)return gd(e,t);const a={...n};return r=>(a.red=_m(n.red,i.red,r),a.green=_m(n.green,i.green,r),a.blue=_m(n.blue,i.blue,r),a.alpha=ht(n.alpha,i.alpha,r),Hr.transform(a))},JI=(e,t)=>n=>t(e(n)),Ll=(...e)=>e.reduce(JI),Em=new Set(["none","hidden"]);function e8(e,t){return Em.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function t8(e,t){return n=>ht(e,t,n)}function Tm(e){return typeof e=="number"?t8:typeof e=="string"?qp(e)?gd:rn.test(e)?pE:a8:Array.isArray(e)?mE:typeof e=="object"?rn.test(e)?pE:n8:gd}function mE(e,t){const n=[...e],i=n.length,a=e.map((r,s)=>Tm(r)(r,t[s]));return r=>{for(let s=0;s<i;s++)n[s]=a[s](r);return n}}function n8(e,t){const n={...e,...t},i={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(i[a]=Tm(e[a])(e[a],t[a]));return a=>{for(const r in i)n[r]=i[r](a);return n}}function i8(e,t){var n;const i=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;i[r]=l,a[s]++}return i}const a8=(e,t)=>{const n=Ka.createTransformer(t),i=Ml(e),a=Ml(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Em.has(e)&&!a.values.length||Em.has(t)&&!i.values.length?e8(e,t):Ll(mE(i8(i,a),a.values),n):gd(e,t)};function gE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):Tm(e)(e,t)}const r8=5;function bE(e,t,n){const i=Math.max(t-r8,0);return I_(n-e(i),t-i)}const bt={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},wm=.001;function s8({duration:e=bt.duration,bounce:t=bt.bounce,velocity:n=bt.velocity,mass:i=bt.mass}){let a,r,s=1-t;s=ha(bt.minDamping,bt.maxDamping,s),e=ha(bt.minDuration,bt.maxDuration,fa(e)),s<1?(a=u=>{const c=u*s,d=c*e,f=c-n,h=Sm(u,s),g=Math.exp(-d);return wm-f/h*g},r=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=Sm(Math.pow(u,2),s);return(-a(u)+wm>0?-1:1)*((f-h)*g)/b}):(a=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-wm+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=l8(a,r,o);if(e=da(e),isNaN(l))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const o8=12;function l8(e,t,n){let i=n;for(let a=1;a<o8;a++)i=i-e(i)/t(i);return i}function Sm(e,t){return e*Math.sqrt(1-t*t)}const u8=["duration","bounce"],c8=["stiffness","damping","mass"];function vE(e,t){return t.some(n=>e[n]!==void 0)}function d8(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!vE(e,c8)&&vE(e,u8))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,r=2*ha(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:bt.mass,stiffness:a,damping:r}}else{const n=s8(e);t={...t,...n,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function yE(e=bt.visualDuration,t=bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=d8({...n,velocity:-fa(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(l*c)),_=s-r,m=fa(Math.sqrt(l/c)),y=Math.abs(_)<5;i||(i=y?bt.restSpeed.granular:bt.restSpeed.default),a||(a=y?bt.restDelta.granular:bt.restDelta.default);let x;if(b<1){const S=Sm(m,b);x=A=>{const D=Math.exp(-b*m*A);return s-D*((g+b*m*_)/S*Math.sin(S*A)+_*Math.cos(S*A))}}else if(b===1)x=S=>s-Math.exp(-m*S)*(_+(g+m*_)*S);else{const S=m*Math.sqrt(b*b-1);x=A=>{const D=Math.exp(-b*m*A),L=Math.min(S*A,300);return s-D*((g+b*m*_)*Math.sinh(L)+S*_*Math.cosh(L))/S}}const T={calculatedDuration:h&&d||null,next:S=>{const A=x(S);if(h)o.done=S>=d;else{let D=0;b<1&&(D=S===0?da(g):bE(x,S,A));const L=Math.abs(D)<=i,B=Math.abs(s-A)<=a;o.done=L&&B}return o.value=o.done?s:A,o},toString:()=>{const S=Math.min(T_(T),Jp),A=S_(D=>T.next(S*D).value,S,30);return S+"ms "+A}};return T}function xE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const _=d+b,m=s===void 0?_:s(_);m!==_&&(b=m-d);const y=L=>-b*Math.exp(-L/i),x=L=>m+y(L),T=L=>{const B=y(L),O=x(L);f.done=Math.abs(B)<=u,f.value=f.done?m:O};let S,A;const D=L=>{h(f.value)&&(S=L,A=yE({keyframes:[f.value,g(f.value)],velocity:bE(x,L,f.value),damping:a,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!A&&S===void 0&&(B=!0,T(L),D(L)),S!==void 0&&L>=S?A.next(L-S):(!B&&T(L),f)}}}const f8=Rl(.42,0,1,1),h8=Rl(0,0,.58,1),_E=Rl(.42,0,.58,1),p8=e=>Array.isArray(e)&&typeof e[0]!="number",m8={linear:Bn,easeIn:f8,easeInOut:_E,easeOut:h8,circIn:cm,circInOut:q_,circOut:Y_,backIn:um,backInOut:F_,backOut:H_,anticipate:V_},EE=e=>{if(tm(e)){Qx(e.length===4);const[t,n,i,a]=e;return Rl(t,n,i,a)}else if(typeof e=="string")return m8[e];return e};function g8(e,t,n){const i=[],a=n||gE,r=e.length-1;for(let s=0;s<r;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Bn:t;o=Ll(l,o)}i.push(o)}return i}function b8(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const r=e.length;if(Qx(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=g8(t,i,a),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Fs(e[d],e[d+1],c);return o[d](f)};return n?c=>u(ha(e[0],e[r-1],c)):u}function v8(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Fs(0,t,i);e.push(ht(n,1,a))}}function y8(e){const t=[0];return v8(t,e.length-1),t}function x8(e,t){return e.map(n=>n*t)}function _8(e,t){return e.map(()=>t||_E).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=p8(i)?i.map(EE):EE(i),r={done:!1,value:t[0]},s=x8(n&&n.length===t.length?n:y8(t),e),o=b8(s,t,{ease:Array.isArray(a)?a:_8(t,a)});return{calculatedDuration:e,next:l=>(r.value=o(l),r.done=l>=e,r)}}const E8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>at.update(t,!0),stop:()=>$a(t),now:()=>Wt.isProcessing?Wt.timestamp:Yi.now()}},T8={decay:xE,inertia:xE,tween:bd,keyframes:bd,spring:yE},w8=e=>e/100;class Am extends fE{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:i,element:a,keyframes:r}=this.options,s=(a==null?void 0:a.KeyframeResolver)||ym,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(r,o,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r,velocity:s=0}=this.options,o=em(n)?n:T8[n]||bd;let l,u;o!==bd&&typeof t[0]!="number"&&(l=Ll(w8,gE(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});r==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=T_(c));const{calculatedDuration:d}=c,f=d+a,h=f*(i+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:i}=this;if(!i){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:a,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return r.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:b,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/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),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=r;if(h){const L=Math.min(this.currentTime,c)/d;let B=Math.floor(L),O=L%1;!O&&L>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(O=1-O,b&&(O-=b/d)):g==="mirror"&&(T=s)),x=ha(0,1,O)*d}const S=y?{done:!1,value:l[0]}:T.next(x);o&&(S.value=o(S.value));let{done:A}=S;!y&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&a!==void 0&&(S.value=md(l,this.options,a)),_&&_(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?fa(t.calculatedDuration):0}get time(){return fa(this.currentTime)}set time(t){t=da(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=fa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=E8,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t: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)}}const S8=new Set(["opacity","clipPath","filter","transform"]);function A8(e,t,n,{delay:i=0,duration:a=300,repeat:r=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=C_(o,a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:a,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"})}const C8=Pp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,k8=2e4;function O8(e){return em(e.type)||e.type==="spring"||!A_(e.ease)}function N8(e,t){const n=new Am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const a=[];let r=0;for(;!i.done&&r<k8;)i=n.sample(r),a.push(i.value),r+=vd;return{times:void 0,keyframes:a,duration:r-vd,ease:"linear"}}const TE={anticipate:V_,backInOut:F_,circInOut:q_};function R8(e){return e in TE}class wE extends fE{constructor(t){super(t);const{name:n,motionValue:i,element:a,keyframes:r}=this.options;this.resolver=new cE(r,(s,o)=>this.onKeyframesResolved(s,o),n,i,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:a,ease:r,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof r=="string"&&hd()&&R8(r)&&(r=TE[r]),O8(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...b}=this.options,_=N8(t,b);t=_.keyframes,t.length===1&&(t[1]=t[0]),i=_.duration,a=_.times,r=_.ease,s="keyframes"}const c=A8(o.owner.current,l,t,{...this.options,duration:i,times:a,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(w_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(md(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:a,type:s,ease:r,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return fa(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fa(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=da(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.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 Bn;const{animation:i}=n;w_(i,t)}return Bn}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:i,duration:a,type:r,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...h}=this.options,g=new Am({...h,keyframes:i,duration:a,type:r,ease:s,times:o,isGenerator:!0}),b=da(this.time);u.setWithVelocity(g.sample(b-vd).value,g.sample(b).value,vd)}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:i,repeatDelay:a,repeatType:r,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return C8()&&i&&S8.has(i)&&!l&&!u&&!a&&r!=="mirror"&&s!==0&&o!=="inertia"}}const D8={type:"spring",stiffness:500,damping:25,restSpeed:10},M8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),L8={type:"keyframes",duration:.8},I8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P8=(e,{keyframes:t})=>t.length>2?L8:Ur.has(e)?e.startsWith("scale")?M8(t[1]):D8:I8;function B8({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:r,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Cm=(e,t,n,i={},a,r)=>s=>{const o=Zp(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-da(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:a};B8(o)||(c={...c,...P8(e,c)}),c.duration&&(c.duration=da(c.duration)),c.repeatDelay&&(c.repeatDelay=da(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!r&&t.get()!==void 0){const f=md(c.keyframes,o);if(f!==void 0)return at.update(()=>{c.onUpdate(f),c.onComplete()}),new iI([])}return!r&&wE.supports(c)?new wE(c):new Am(c)};function z8({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function SE(e,t,{delay:n=0,transitionOverride:i,type:a}={}){var r;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(s=i);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const f=e.getValue(d,(r=e.latestValues[d])!==null&&r!==void 0?r:null),h=l[d];if(h===void 0||c&&z8(c,d))continue;const g={delay:n,...Zp(s||{},d)};let b=!1;if(window.MotionHandoffAnimation){const m=B_(e);if(m){const y=window.MotionHandoffAnimation(m,d,at);y!==null&&(g.startTime=y,b=!0)}}lm(e,d),f.start(Cm(d,f,h,e.shouldReduceMotion&&L_.has(d)?{type:!1}:g,e,b));const _=f.animation;_&&u.push(_)}return o&&Promise.all(u).then(()=>{at.update(()=>{o&&bI(e,o)})}),u}function km(e,t,n={}){var i;const a=fd(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const s=a?()=>Promise.all(SE(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=r;return j8(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function j8(e,t,n=0,i=0,a=1,r){const s=[],o=(e.variantChildren.size-1)*i,l=a===1?(u=0)=>u*i:(u=0)=>o-u*i;return Array.from(e.variantChildren).sort(U8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(km(u,t,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function U8(e,t){return e.sortNodePosition(t)}function H8(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(r=>km(e,r,n));i=Promise.all(a)}else if(typeof t=="string")i=km(e,t,n);else{const a=typeof t=="function"?fd(e,t,n.custom):t;i=Promise.all(SE(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const F8=jp.length;function AE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?AE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<F8;n++){const i=jp[n],a=e.props[i];(Sl(a)||a===!1)&&(t[i]=a)}return t}const V8=[...zp].reverse(),Y8=zp.length;function q8(e){return t=>Promise.all(t.map(({animation:n,options:i})=>H8(e,n,i)))}function G8(e){let t=q8(e),n=CE(),i=!0;const a=l=>(u,c)=>{var d;const f=fd(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...b}=f;u={...u,...b,...g}}return u};function r(l){t=l(e)}function s(l){const{props:u}=e,c=AE(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let _=0;_<Y8;_++){const m=V8[_],y=n[m],x=u[m]!==void 0?u[m]:c[m],T=Sl(x),S=m===l?y.isActive:null;S===!1&&(g=_);let A=x===c[m]&&x!==u[m]&&T;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&S===null||!x&&!y.prevProp||od(x)||typeof x=="boolean")continue;const D=$8(y.prevProp,x);let L=D||m===l&&y.isActive&&!A&&T||_>g&&T,B=!1;const O=Array.isArray(x)?x:[x];let Y=O.reduce(a(m),{});S===!1&&(Y={});const{prevResolvedValues:U={}}=y,ae={...U,...Y},ee=V=>{L=!0,f.has(V)&&(B=!0,f.delete(V)),y.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in ae){const H=Y[V],te=U[V];if(h.hasOwnProperty(V))continue;let N=!1;Yp(H)&&Yp(te)?N=!E_(H,te):N=H!==te,N?H!=null?ee(V):f.add(V):H!==void 0&&f.has(V)?ee(V):y.protectedKeys[V]=!0}y.prevProp=x,y.prevResolvedValues=Y,y.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||B)&&d.push(...O.map(V=>({animation:V,options:{type:m}})))}if(f.size){const _={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),_[m]=y??null}),d.push({animation:_})}let b=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(d):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:r,getState:()=>n,reset:()=>{n=CE(),i=!0}}}function $8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!E_(t,e):!1}function Vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CE(){return{animate:Vr(!0),whileInView:Vr(),whileHover:Vr(),whileTap:Vr(),whileDrag:Vr(),whileFocus:Vr(),exit:Vr()}}class Qa{constructor(t){this.isMounted=!1,this.node=t}update(){}}class X8 extends Qa{constructor(t){super(t),t.animationState||(t.animationState=G8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();od(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===void 0||t.call(this)}}let K8=0;class Q8 extends Qa{constructor(){super(...arguments),this.id=K8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const W8={animation:{Feature:X8},exit:{Feature:Q8}};function Il(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const Z8=e=>t=>im(t)&&e(t,Pl(t));function Bl(e,t,n,i){return Il(e,t,Z8(n),i)}const kE=(e,t)=>Math.abs(e-t);function J8(e,t){const n=kE(e.x,t.x),i=kE(e.y,t.y);return Math.sqrt(n**2+i**2)}class OE{constructor(t,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:r=!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 d=Nm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=J8(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:b}=Wt;this.history.push({...g,timestamp:b});const{onStart:_,onMove:m}=this.handlers;f||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Om(f,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Nm(d.type==="pointercancel"?this.lastMoveEventInfo:Om(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,_),g&&g(d,_)},!im(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const s=Pl(t),o=Om(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Nm(o,this.history)),this.removeListeners=Ll(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$a(this.updatePoint)}}function Om(e,t){return t?{point:t(e.point)}:e}function NE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nm({point:e},t){return{point:e,delta:NE(e,RE(t)),offset:NE(e,eP(t)),velocity:tP(t,.1)}}function eP(e){return e[0]}function RE(e){return e[e.length-1]}function tP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=RE(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>da(t)));)n--;if(!i)return{x:0,y:0};const r=fa(a.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(a.x-i.x)/r,y:(a.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const DE=1e-4,nP=1-DE,iP=1+DE,ME=.01,aP=0-ME,rP=0+ME;function zn(e){return e.max-e.min}function sP(e,t,n){return Math.abs(e-t)<=n}function LE(e,t,n,i=.5){e.origin=i,e.originPoint=ht(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nP&&e.scale<=iP||isNaN(e.scale))&&(e.scale=1),(e.translate>=aP&&e.translate<=rP||isNaN(e.translate))&&(e.translate=0)}function zl(e,t,n,i){LE(e.x,t.x,n.x,i?i.originX:void 0),LE(e.y,t.y,n.y,i?i.originY:void 0)}function IE(e,t,n){e.min=n.min+t.min,e.max=e.min+zn(t)}function oP(e,t,n){IE(e.x,t.x,n.x),IE(e.y,t.y,n.y)}function PE(e,t,n){e.min=t.min-n.min,e.max=e.min+zn(t)}function jl(e,t,n){PE(e.x,t.x,n.x),PE(e.y,t.y,n.y)}function lP(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ht(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ht(n,e,i.max):Math.min(e,n)),e}function BE(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 uP(e,{top:t,left:n,bottom:i,right:a}){return{x:BE(e.x,n,a),y:BE(e.y,t,i)}}function zE(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function cP(e,t){return{x:zE(e.x,t.x),y:zE(e.y,t.y)}}function dP(e,t){let n=.5;const i=zn(e),a=zn(t);return a>i?n=Fs(t.min,t.max-i,e.min):i>a&&(n=Fs(e.min,e.max-a,t.min)),ha(0,1,n)}function fP(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 Rm=.35;function hP(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:jE(e,"left","right"),y:jE(e,"top","bottom")}}function jE(e,t,n){return{min:UE(e,t),max:UE(e,n)}}function UE(e,t){return typeof e=="number"?e:e[t]||0}const HE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:HE(),y:HE()}),FE=()=>({min:0,max:0}),_t=()=>({x:FE(),y:FE()});function ai(e){return[e("x"),e("y")]}function VE({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function pP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Dm(e){return e===void 0||e===1}function Mm({scale:e,scaleX:t,scaleY:n}){return!Dm(e)||!Dm(t)||!Dm(n)}function Yr(e){return Mm(e)||YE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function YE(e){return qE(e.x)||qE(e.y)}function qE(e){return e&&e!=="0%"}function yd(e,t,n){const i=e-n,a=t*i;return n+a}function GE(e,t,n,i,a){return a!==void 0&&(e=yd(e,a,i)),yd(e,n,i)+t}function Lm(e,t=0,n=1,i,a){e.min=GE(e.min,t,n,i,a),e.max=GE(e.max,t,n,i,a)}function $E(e,{x:t,y:n}){Lm(e.x,t.translate,t.scale,t.originPoint),Lm(e.y,n.translate,n.scale,n.originPoint)}const XE=.999999999999,KE=1.0000000000001;function gP(e,t,n,i=!1){const a=n.length;if(!a)return;t.x=t.y=1;let r,s;for(let o=0;o<a;o++){r=n[o],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ws(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$E(e,s)),i&&Yr(r.latestValues)&&Ws(e,r.latestValues))}t.x<KE&&t.x>XE&&(t.x=1),t.y<KE&&t.y>XE&&(t.y=1)}function Qs(e,t){e.min=e.min+t,e.max=e.max+t}function QE(e,t,n,i,a=.5){const r=ht(e.min,e.max,a);Lm(e,t,n,r,i)}function Ws(e,t){QE(e.x,t.x,t.scaleX,t.scale,t.originX),QE(e.y,t.y,t.scaleY,t.scale,t.originY)}function WE(e,t){return VE(mP(e.getBoundingClientRect(),t))}function bP(e,t,n){const i=WE(e,n),{scroll:a}=t;return a&&(Qs(i.x,a.offset.x),Qs(i.y,a.offset.y)),i}const ZE=({current:e})=>e?e.ownerDocument.defaultView:null,vP=new WeakMap;class yP{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=_t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pl(c).point)},r=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fI(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),ai(_=>{let m=this.getAxisMotionValue(_).get()||0;if(Vi.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[_];x&&(m=zn(x)*(parseFloat(m)/100))}}this.originPoint[_]=m}),g&&at.postRender(()=>g(c,d)),lm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=d;if(h&&this.currentDirection===null){this.currentDirection=xP(_),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),b&&b(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ai(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new OE(t,{onSessionStart:a,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ZE(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:r}=this.getProps();r&&at.postRender(()=>r(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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:a}=this.getProps();if(!i||!xd(t,a,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=lP(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,r=this.constraints;n&&Ys(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=uP(a.layoutBox,n):this.constraints=!1,this.elastic=hP(i),r!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fP(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ys(t))return!1;const i=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const r=bP(i,a.root,this.visualElement.getTransformPagePoint());let s=cP(a.layout.layoutBox,r);if(n){const o=n(pP(s));this.hasMutatedConstraints=!!o,o&&(s=VE(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ai(c=>{if(!xd(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=a?200:1e6,h=a?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return lm(this.visualElement,t),i.start(Cm(t,i,0,n,this.visualElement,!1))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:i}=this.getProps();if(!xd(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,r=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];r.set(t[n]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ys(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ai(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=dP({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ai(s=>{if(!xd(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ht(l,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;vP.set(this.visualElement,this);const t=this.visualElement.current,n=Bl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Ys(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,r=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),at.read(i);const s=Il(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:r=!1,dragElastic:s=Rm,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _P extends Qa{constructor(t){super(t),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new yP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const JE=e=>(t,n)=>{e&&at.postRender(()=>e(t,n))};class EP extends Qa{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(t){this.session=new OE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ZE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:JE(t),onStart:JE(n),onMove:i,onEnd:(r,s)=>{delete this.session,a&&at.postRender(()=>a(r,s))}}}mount(){this.removePointerDownListener=Bl(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 _d={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=eT(e,t.target.x),i=eT(e,t.target.y);return`${n}% ${i}%`}},TP={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Ka.parse(e);if(a.length>5)return i;const r=Ka.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const u=ht(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),r(a)}};class wP extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:r}=t;qL(SP),r&&(n.group&&n.group.add(r),i&&i.register&&a&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),_d.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:a,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||at.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tT(e){const[t,n]=$x(),i=E.useContext(Dp);return v.jsx(wP,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(a_),isPresent:t,safeToRemove:n})}const SP={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:TP};function AP(e,t,n){const i=an(e)?e:Nl(e);return i.start(Cm("",i,t,n)),i.animation}function CP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kP=(e,t)=>e.depth-t.depth;class OP{constructor(){this.children=[],this.isDirty=!1}add(t){rm(this.children,t),this.isDirty=!0}remove(t){sm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kP),this.isDirty=!1,this.children.forEach(t)}}function NP(e,t){const n=Yi.now(),i=({timestamp:a})=>{const r=a-n;r>=t&&($a(i),e(r-t))};return at.read(i,!0),()=>$a(i)}const nT=["TopLeft","TopRight","BottomLeft","BottomRight"],RP=nT.length,iT=e=>typeof e=="string"?parseFloat(e):e,aT=e=>typeof e=="number"||pe.test(e);function DP(e,t,n,i,a,r){a?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,MP(i)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,LP(i))):r&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<RP;s++){const o=`border${nT[s]}Radius`;let l=rT(t,o),u=rT(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||aT(l)===aT(u)?(e[o]=Math.max(ht(iT(l),iT(u),i),0),(Vi.test(u)||Vi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,i))}function rT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const MP=sT(0,.5,Y_),LP=sT(.5,.95,Bn);function sT(e,t,n){return i=>i<e?0:i>t?1:n(Fs(e,t,i))}function oT(e,t){e.min=t.min,e.max=t.max}function ri(e,t){oT(e.x,t.x),oT(e.y,t.y)}function lT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uT(e,t,n,i,a){return e-=t,e=yd(e,1/n,i),a!==void 0&&(e=yd(e,1/a,i)),e}function IP(e,t=0,n=1,i=.5,a,r=e,s=e){if(Vi.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(r.min,r.max,i);e===r&&(o-=t),e.min=uT(e.min,t,n,o,a),e.max=uT(e.max,t,n,o,a)}function cT(e,t,[n,i,a],r,s){IP(e,t[n],t[i],t[a],t.scale,r,s)}const PP=["x","scaleX","originX"],BP=["y","scaleY","originY"];function dT(e,t,n,i){cT(e.x,t,PP,n?n.x:void 0,i?i.x:void 0),cT(e.y,t,BP,n?n.y:void 0,i?i.y:void 0)}function fT(e){return e.translate===0&&e.scale===1}function hT(e){return fT(e.x)&&fT(e.y)}function pT(e,t){return e.min===t.min&&e.max===t.max}function zP(e,t){return pT(e.x,t.x)&&pT(e.y,t.y)}function mT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gT(e,t){return mT(e.x,t.x)&&mT(e.y,t.y)}function bT(e){return zn(e.x)/zn(e.y)}function vT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class jP{constructor(){this.members=[]}add(t){rm(this.members,t),t.scheduleRender()}remove(t){if(sm(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(a=>t===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const r=this.members[a];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UP(e,t,n){let i="";const a=e.x.translate/t.x,r=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||r||s)&&(i=`translate3d(${a}px, ${r}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}const qr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hl=typeof window<"u"&&window.MotionDebug!==void 0,Im=["","X","Y","Z"],HP={visibility:"hidden"},yT=1e3;let FP=0;function Pm(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function xT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=B_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",at,!(a||r))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&xT(i)}function _T({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=FP++,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,Hl&&(qr.totalNodes=qr.resolvedTargetDeltas=qr.recalculatedProjection=0),this.nodes.forEach(qP),this.nodes.forEach(QP),this.nodes.forEach(WP),this.nodes.forEach(GP),Hl&&window.MotionDebug.record(qr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new OP)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new om),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=CP(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=NP(f,250),_d.hasAnimatedSinceResize&&(_d.hasAnimatedSinceResize=!1,this.nodes.forEach(TT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||n9,{onLayoutAnimationStart:_,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!gT(this.targetLayout,g)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...Zp(b,"layout"),onPlay:_,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||TT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$a(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(ZP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ET);return}this.isUpdating||this.nodes.forEach(XP),this.isUpdating=!1,this.nodes.forEach(KP),this.nodes.forEach(VP),this.nodes.forEach(YP),this.clearAllSnapshots();const o=Yi.now();Wt.delta=ha(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,Bp.update.process(Wt),Bp.preRender.process(Wt),Bp.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($P),this.sharedNodes.forEach(JP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!hT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Yr(this.latestValues)||c)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),i9(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return _t();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(a9))){const{scroll:c}=this.root;c&&(Qs(l.x,c.offset.x),Qs(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=_t();if(ri(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ri(l,s),Qs(l.x,d.offset.x),Qs(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=_t();ri(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ws(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Yr(c.latestValues)&&Ws(l,c.latestValues)}return Yr(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(s){const o=_t();ri(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Yr(u.latestValues))continue;Mm(u.latestValues)&&u.updateSnapshot();const c=_t(),d=u.measurePageBox();ri(c,d),dT(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Yr(this.latestValues)&&dT(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_t(),this.relativeTargetOrigin=_t(),jl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_t(),this.targetWithTransforms=_t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ri(this.target,this.layout.layoutBox),$E(this.target,this.targetDelta)):ri(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_t(),this.relativeTargetOrigin=_t(),jl(this.relativeTargetOrigin,this.target,h.target),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hl&&qr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mm(this.parent.latestValues)||YE(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 s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(u=!1),u)return;const{layout:c,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||!(c||d))return;ri(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;gP(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=_t());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lT(this.prevProjectionDelta.x,this.projectionDelta.x),lT(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!vT(this.projectionDelta.x,this.prevProjectionDelta.x)||!vT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Hl&&qr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ks();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=_t(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,_=this.getStack(),m=!_||_.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(t9));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;wT(d.x,s.x,S),wT(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),e9(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&zP(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=_t()),ri(x,this.relativeTarget)),b&&(this.animationValues=c,DP(c,u,this.latestValues,S,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($a(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{_d.hasAnimatedSinceResize=!0,this.currentAnimation=AP(0,yT,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&OT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_t();const d=zn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=zn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ri(o,l),Ws(o,c),zl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jP),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Pm("z",s,u,this.animationValues);for(let c=0;c<Im.length;c++)Pm(`rotate${Im[c]}`,s,u,this.animationValues),Pm(`skew${Im[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return HP;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ud(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ud(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Yr(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=UP(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in dd){if(f[b]===void 0)continue;const{correct:_,applyTo:m}=dd[b],y=u.transform==="none"?f[b]:_(f[b],d);if(m){const x=m.length;for(let T=0;T<x;T++)u[m[T]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=d===this?ud(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(ET),this.root.sharedNodes.clear()}}}function VP(e){e.updateLayout()}function YP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=e.layout,{animationType:r}=e.options,s=n.source!==e.layout.source;r==="size"?ai(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(f);f.min=i[d].min,f.max=f.min+h}):OT(r,n.layoutBox,i)&&ai(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Ks();zl(o,i,n.layoutBox);const l=Ks();s?zl(l,e.applyTransform(a,!0),n.measuredBox):zl(l,i,n.layoutBox);const u=!hT(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=_t();jl(g,n.layoutBox,f.layoutBox);const b=_t();jl(b,i,h.layoutBox),gT(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function qP(e){Hl&&qr.totalNodes++,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 GP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $P(e){e.clearSnapshot()}function ET(e){e.clearMeasurements()}function XP(e){e.isLayoutDirty=!1}function KP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QP(e){e.resolveTargetDelta()}function WP(e){e.calcProjection()}function ZP(e){e.resetSkewAndRotation()}function JP(e){e.removeLeadSnapshot()}function wT(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ST(e,t,n,i){e.min=ht(t.min,n.min,i),e.max=ht(t.max,n.max,i)}function e9(e,t,n,i){ST(e.x,t.x,n.x,i),ST(e.y,t.y,n.y,i)}function t9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const n9={duration:.45,ease:[.4,0,.1,1]},AT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),CT=AT("applewebkit/")&&!AT("chrome/")?Math.round:Bn;function kT(e){e.min=CT(e.min),e.max=CT(e.max)}function i9(e){kT(e.x),kT(e.y)}function OT(e,t,n){return e==="position"||e==="preserve-aspect"&&!sP(bT(t),bT(n),.2)}function a9(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r9=_T({attachResizeListener:(e,t)=>Il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bm={current:void 0},NT=_T({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bm.current){const e=new r9({});e.mount(window),e.setOptions({layoutScroll:!0}),Bm.current=e}return Bm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),s9={pan:{Feature:EP},drag:{Feature:_P,ProjectionNode:NT,MeasureLayout:tT}};function RT(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class o9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=oI(t,n=>(RT(this.node,n,"Start"),i=>RT(this.node,i,"End"))))}unmount(){}}class l9 extends Qa{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=Ll(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function DT(e,t,n){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class u9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=dI(t,n=>(DT(this.node,n,"Start"),(i,{success:a})=>DT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zm=new WeakMap,jm=new WeakMap,c9=e=>{const t=zm.get(e.target);t&&t(e)},d9=e=>{e.forEach(c9)};function f9({root:e,...t}){const n=e||document;jm.has(n)||jm.set(n,{});const i=jm.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(d9,{root:e,...t})),i[a]}function h9(e,t,n){const i=f9(t);return zm.set(e,n),i.observe(e),()=>{zm.delete(e),i.unobserve(e)}}const p9={some:0,all:1};class m9 extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:p9[a]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return h9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(g9(t,n))&&this.startObserver()}unmount(){}}function g9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const b9={inView:{Feature:m9},tap:{Feature:u9},focus:{Feature:l9},hover:{Feature:o9}},v9={layout:{ProjectionNode:NT,MeasureLayout:tT}},Um={current:null},MT={current:!1};function y9(){if(MT.current=!0,!!Ip)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Um.current=e.matches;e.addListener(t),t()}else Um.current=!1}const x9=[...lE,rn,Ka],_9=e=>x9.find(oE(e)),LT=new WeakMap;function E9(e,t,n){for(const i in t){const a=t[i],r=n[i];if(an(a))e.addValue(i,a);else if(an(r))e.addValue(i,Nl(a,{owner:e}));else if(r!==a)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Nl(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class T9{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ym,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 h=Yi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,at.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ld(n),this.isVariantNode=t_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&an(g)&&g.set(l[h],!1)}}mount(t){this.current=t,LT.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,i)=>this.bindToMotionValue(i,n)),MT.current||y9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Um.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LT.delete(this.current),this.projection&&this.projection.unmount(),$a(this.notifyUpdate),$a(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 i=Ur.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&at.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),r(),s&&s(),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 Vs){const n=Vs[t];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_t()}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 i=0;i<IT.length;i++){const a=IT[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const r="on"+a,s=t[r];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=E9(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 i=this.values.get(t);n!==i&&(i&&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 i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Nl(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(rE(a)||G_(a))?a=parseFloat(a):!_9(a)&&Ka.test(n)&&(a=J_(t,n)),this.setBaseTarget(t,an(a)?a.get():a)),an(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const s=Vp(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(i&&a!==void 0)return a;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!an(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new om),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class PT extends T9{constructor(){super(...arguments),this.KeyframeResolver=cE}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:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;an(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function w9(e){return window.getComputedStyle(e)}class S9 extends PT{constructor(){super(...arguments),this.type="html",this.renderInstance=m_}readValueFromInstance(t,n){if(Ur.has(n)){const i=gm(n);return i&&i.default||0}else{const i=w9(t),a=(u_(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return WE(t,n)}build(t,n,i){$p(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Wp(t,n,i)}}class A9 extends PT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ur.has(n)){const i=gm(n);return i&&i.default||0}return n=g_.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return y_(t,n,i)}build(t,n,i){Xp(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,a){b_(t,n,i,a)}mount(t){this.isSVGTag=Qp(t.tagName),super.mount(t)}}const C9=(e,t)=>Fp(e)?new A9(t):new S9(t,{allowProjection:e!==E.Fragment}),k9=eI({...W8,...b9,...s9,...v9},C9),Fl=gL(k9),BT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zT=jx,O9=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return zT(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:r}=t,s=Object.keys(a).map(u=>{const c=n==null?void 0:n[u],d=r==null?void 0:r[u];if(c===null)return null;const f=BT(c)||BT(d);return a[u][f]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(g=>{let[b,_]=g;return Array.isArray(_)?_.includes({...r,...o}[b]):{...r,...o}[b]===_})?[...u,d,f]:u},[]);return zT(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function jT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(t);for(;a!==-1;)i++,a=n.indexOf(t,a+t.length);return i}function lJ(){}function uJ(){}const bn=Wa(/[A-Za-z]/),sn=Wa(/[\dA-Za-z]/),N9=Wa(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Hm=Wa(/\d/),R9=Wa(/[\dA-Fa-f]/),D9=Wa(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Td=Wa(new RegExp("\\p{P}|\\p{S}","u")),Gr=Wa(/\s/);function Wa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function M9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wd=function(e){if(e==null)return B9;if(typeof e=="function")return Sd(e);if(typeof e=="object")return Array.isArray(e)?L9(e):I9(e);if(typeof e=="string")return P9(e);throw new Error("Expected function, string, or object as test")};function L9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wd(e[n]);return Sd(i);function i(...a){let r=-1;for(;++r<t.length;)if(t[r].apply(this,a))return!0;return!1}}function I9(e){const t=e;return Sd(n);function n(i){const a=i;let r;for(r in e)if(a[r]!==t[r])return!1;return!0}}function P9(e){return Sd(t);function t(n){return n&&n.type===e}}function Sd(e){return t;function t(n,i,a){return!!(z9(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function B9(){return!0}function z9(e){return e!==null&&typeof e=="object"&&"type"in e}function cJ(e){return e}const UT=[],j9=!0,Fm=!1,U9="skip";function HT(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const r=wd(a),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=UT,g,b,_;if((!t||r(l,u,c[c.length-1]||void 0))&&(h=H9(n(l,c)),h[0]===Fm))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==U9)for(b=(i?m.children.length:-1)+s,_=c.concat(m);b>-1&&b<m.children.length;){const y=m.children[b];if(g=o(y,b,_)(),g[0]===Fm)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function H9(e){return Array.isArray(e)?e:typeof e=="number"?[j9,e]:e==null?UT:[e]}function F9(e,t,n){const a=wd((n||{}).ignore||[]),r=V9(t);let s=-1;for(;++s<r.length;)HT(e,"text",o);function o(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],g=f?f.children:void 0;if(a(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=r[s][0],h=r[s][1];let g=0;const _=d.children.indexOf(u);let m=!1,y=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const T=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let A=h(...x,S);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(g!==T&&y.push({type:"text",value:u.value.slice(g,T)}),Array.isArray(A)?y.push(...A):A&&y.push(A),g=T+x[0].length,m=!0),!f.global)break;x=f.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),d.children.splice(_,1,...y)):y=[u],_+y.length}}function V9(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const a=n[i];t.push([Y9(a[0]),q9(a[1])])}return t}function Y9(e){return typeof e=="string"?new RegExp(M9(e),"g"):e}function q9(e){return typeof e=="function"?e:function(){return e}}const Vm="phrasing",Ym=["autolink","link","image","label"];function G9(){return{transforms:[J9],enter:{literalAutolink:X9,literalAutolinkEmail:qm,literalAutolinkHttp:qm,literalAutolinkWww:qm},exit:{literalAutolink:Z9,literalAutolinkEmail:W9,literalAutolinkHttp:K9,literalAutolinkWww:Q9}}}function $9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:":",before:"[ps]",after:"\\/",inConstruct:Vm,notInConstruct:Ym}]}}function X9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qm(e){this.config.enter.autolinkProtocol.call(this,e)}function K9(e){this.config.exit.autolinkProtocol.call(this,e)}function Q9(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function W9(e){this.config.exit.autolinkEmail.call(this,e)}function Z9(e){this.exit(e)}function J9(e){F9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,e7],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,t7]],{ignore:["link","linkReference"]})}function e7(e,t,n,i,a){let r="";if(!FT(a)||(/^w/i.test(t)&&(n=t+n,t="",r="http://"),!n7(n)))return!1;const s=i7(n+i);if(!s[0])return!1;const o={type:"link",title:null,url:r+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function t7(e,t,n,i){return!FT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function n7(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function i7(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const a=jT(e,"(");let r=jT(e,")");for(;i!==-1&&a>r;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),r++;return[e,n]}function FT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Gr(n)||Td(n))&&(!t||n!==47)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}VT.peek=f7;function a7(){this.buffer()}function r7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function s7(){this.buffer()}function o7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function l7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function u7(e){this.exit(e)}function c7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function d7(e){this.exit(e)}function f7(){return"["}function VT(e,t,n,i){const a=n.createTracker(i);let r=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return r+=a.move(n.safe(n.associationId(e),{after:"]",before:r})),o(),s(),r+=a.move("]"),r}function h7(){return{enter:{gfmFootnoteCallString:a7,gfmFootnoteCall:r7,gfmFootnoteDefinitionLabelString:s7,gfmFootnoteDefinition:o7},exit:{gfmFootnoteCallString:l7,gfmFootnoteCall:u7,gfmFootnoteDefinitionLabelString:c7,gfmFootnoteDefinition:d7}}}function p7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:VT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,r,s){const o=r.createTracker(s);let l=o.move("[^");const u=r.enter("footnoteDefinition"),c=r.enter("label");return l+=o.move(r.safe(r.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
267
- `:" ")+r.indentLines(r.containerFlow(i,o.current()),t?YT:m7))),u(),l}}function m7(e,t,n){return t===0?e:YT(e,t,n)}function YT(e,t,n){return(n?"":" ")+e}const g7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qT.peek=_7;function b7(){return{canContainEols:["delete"],enter:{strikethrough:y7},exit:{strikethrough:x7}}}function v7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g7}],handlers:{delete:qT}}}function y7(e){this.enter({type:"delete",children:[]},e)}function x7(e){this.exit(e)}function qT(e,t,n,i){const a=n.createTracker(i),r=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),r(),s}function _7(){return"~"}function E7(e){return e.length}function T7(e,t){const n=t||{},i=(n.align||[]).concat(),a=n.stringLength||E7,r=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],_=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const y=w7(e[c][m]);if(n.alignDelimiters!==!1){const x=a(y);_[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}b.push(y)}s[c]=b,o[c]=_}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)r[d]=GT(i[d]);else{const b=GT(i);for(;++d<u;)r[d]=b}d=-1;const f=[],h=[];for(;++d<u;){const b=r[d];let _="",m="";b===99?(_=":",m=":"):b===108?_=":":b===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[d]-_.length-m.length);const x=_+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=_.length+y+m.length,y>l[d]&&(l[d]=y),h[d]=y),f[d]=x}s.splice(1,0,f),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],_=o[c];d=-1;const m=[];for(;++d<u;){const y=b[d]||"";let x="",T="";if(n.alignDelimiters!==!1){const S=l[d]-(_[d]||0),A=r[d];A===114?x=" ".repeat(S):A===99?S%2?(x=" ".repeat(S/2+.5),T=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),T=x):T=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(y),n.alignDelimiters!==!1&&m.push(T),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
266
+ `),()=>{document.head.removeChild(c)}},[t]),v.jsx(rL,{isPresent:t,childRef:i,sizeRef:a,children:_.cloneElement(e,{ref:i})})}const oL=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:r,mode:s})=>{const o=Mp(lL),l=_.useId(),u=_.useCallback(d=>{o.set(d,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),r?[Math.random(),u]:[n,u]);return _.useMemo(()=>{o.forEach((d,f)=>o.set(f,!1))},[n]),_.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=v.jsx(sL,{isPresent:n,children:e})),v.jsx(nd.Provider,{value:c,children:e})};function lL(){return new Map}function $x(e=!0){const t=_.useContext(nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,r=_.useId();_.useEffect(()=>{e&&a(r)},[e]);const s=_.useCallback(()=>e&&i&&i(r),[r,i,e]);return!n&&i?[!1,s]:[!0]}const id=e=>e.key||"";function Xx(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Ip=typeof window<"u",Kx=Ip?_.useLayoutEffect:_.useEffect,Pt=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:r="sync",propagate:s=!1})=>{const[o,l]=$x(s),u=_.useMemo(()=>Xx(e),[e]),c=s&&!o?[]:u.map(id),d=_.useRef(!0),f=_.useRef(u),h=Mp(()=>new Map),[g,b]=_.useState(u),[E,m]=_.useState(u);Kx(()=>{d.current=!1,f.current=u;for(let T=0;T<E.length;T++){const S=id(E[T]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[E,c.length,c.join("-")]);const y=[];if(u!==g){let T=[...u];for(let S=0;S<E.length;S++){const A=E[S],D=id(A);c.includes(D)||(T.splice(S,0,A),y.push(A))}r==="wait"&&y.length&&(T=y),m(Xx(T)),b(u);return}const{forceRender:x}=_.useContext(Dp);return v.jsx(v.Fragment,{children:E.map(T=>{const S=id(T),A=s&&!o?!1:u===E||c.includes(S),D=()=>{if(h.has(S))h.set(S,!0);else return;let L=!0;h.forEach(B=>{B||(L=!1)}),L&&(x==null||x(),m(f.current),s&&(l==null||l()),i&&i())};return v.jsx(oL,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:a,mode:r,onExitComplete:A?void 0:D,children:T},S)})})},Bn=e=>e;let Qx=Bn;function Pp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},da=e=>e*1e3,fa=e=>e/1e3,uL={useManualTiming:!1};function cL(e){let t=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){r.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&i?t:n;return c&&r.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[t,n]=[n,t],t.forEach(o),t.clear(),i=!1,a&&(a=!1,l.process(u))}};return l}const ad=["read","resolveKeyframes","update","preRender","render","postRender"],dL=40;function Wx(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=ad.reduce((m,y)=>(m[y]=cL(r),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(m-a.timestamp,dL),1),a.timestamp=m,a.isProcessing=!0,o.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,a.isProcessing||e(h)};return{schedule:ad.reduce((m,y)=>{const x=s[y];return m[y]=(T,S=!1,A=!1)=>(n||g(),x.schedule(T,S,A)),m},{}),cancel:m=>{for(let y=0;y<ad.length;y++)s[ad[y]].cancel(m)},state:a,steps:s}}const{schedule:at,cancel:$a,state:Wt,steps:Bp}=Wx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0),Zx=_.createContext({strict:!1}),Jx={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"]},Vs={};for(const e in Jx)Vs[e]={isEnabled:t=>Jx[e].some(n=>!!t[n])};function fL(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const hL=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 rd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hL.has(e)}let e_=e=>!rd(e);function pL(e){e&&(e_=t=>t.startsWith("on")?!rd(t):e(t))}try{pL(require("@emotion/is-prop-valid").default)}catch{}function mL(e,t,n){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||(e_(a)||n===!0&&rd(a)||!t&&!rd(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}function gL(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const sd=_.createContext({});function Sl(e){return typeof e=="string"||Array.isArray(e)}function od(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jp=["initial",...zp];function ld(e){return od(e.animate)||jp.some(t=>Sl(e[t]))}function t_(e){return!!(ld(e)||e.variants)}function bL(e,t){if(ld(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Sl(n)?n:void 0,animate:Sl(i)?i:void 0}}return e.inherit!==!1?t:{}}function vL(e){const{initial:t,animate:n}=bL(e,_.useContext(sd));return _.useMemo(()=>({initial:t,animate:n}),[n_(t),n_(n)])}function n_(e){return Array.isArray(e)?e.join(" "):e}const yL=Symbol.for("motionComponentSymbol");function Ys(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xL(e,t,n){return _.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Ys(n)&&(n.current=i))},[t])}const Up=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),i_="data-"+Up("framerAppearId"),{schedule:Hp}=Wx(queueMicrotask,!1),a_=_.createContext({});function _L(e,t,n,i,a){var r,s;const{visualElement:o}=_.useContext(sd),l=_.useContext(Zx),u=_.useContext(nd),c=_.useContext(Lp).reducedMotion,d=_.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=_.useContext(a_);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&EL(d.current,n,a,h);const g=_.useRef(!1);_.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const b=n[i_],E=_.useRef(!!b&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return Kx(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Hp.render(f.render),E.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!E.current&&f.animationState&&f.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),E.current=!1))}),f}function EL(e,t,n,i){const{layoutId:a,layout:r,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:r_(e.parent)),e.projection.setOptions({layoutId:a,layout:r,alwaysMeasureLayout:!!s||o&&Ys(o),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function r_(e){if(e)return e.options.allowProjection!==!1?e.projection:r_(e.parent)}function TL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:a}){var r,s;e&&fL(e);function o(u,c){let d;const f={..._.useContext(Lp),...u,layoutId:wL(u)},{isStatic:h}=f,g=vL(u),b=i(u,h);if(!h&&Ip){SL();const E=AL(f);d=E.MeasureLayout,g.visualElement=_L(a,b,f,t,E.ProjectionNode)}return v.jsxs(sd.Provider,{value:g,children:[d&&g.visualElement?v.jsx(d,{visualElement:g.visualElement,...f}):null,n(a,u,xL(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(r=a.displayName)!==null&&r!==void 0?r:a.name)!==null&&s!==void 0?s:""})`}`;const l=_.forwardRef(o);return l[yL]=a,l}function wL({layoutId:e}){const t=_.useContext(Dp).id;return t&&e!==void 0?t+"-"+e:e}function SL(e,t){_.useContext(Zx).strict}function AL(e){const{drag:t,layout:n}=Vs;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const CL=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(CL.indexOf(e)>-1||/[A-Z]/u.test(e))}function s_(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Vp(e,t,n,i){if(typeof t=="function"){const[a,r]=s_(i);t=t(n!==void 0?n:e.custom,a,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,r]=s_(i);t=t(n!==void 0?n:e.custom,a,r)}return t}const Yp=e=>Array.isArray(e),kL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),OL=e=>Yp(e)?e[e.length-1]||0:e,an=e=>!!(e&&e.getVelocity);function ud(e){const t=an(e)?e.get():e;return kL(t)?t.toValue():t}function NL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,a,r){const s={latestValues:RL(i,a,r,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const o_=e=>(t,n)=>{const i=_.useContext(sd),a=_.useContext(nd),r=()=>NL(e,t,i,a);return n?r():Mp(r)};function RL(e,t,n,i){const a={},r=i(e,{});for(const f in r)a[f]=ud(r[f]);let{initial:s,animate:o}=e;const l=ld(e),u=t_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!od(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=Vp(e,f[h]);if(g){const{transitionEnd:b,transition:E,...m}=g;for(const y in m){let x=m[y];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(a[y]=x)}for(const y in b)a[y]=b[y]}}}return a}const qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ur=new Set(qs),l_=e=>t=>typeof t=="string"&&t.startsWith(e),u_=l_("--"),DL=l_("var(--"),qp=e=>DL(e)?ML.test(e.split("/*")[0].trim()):!1,ML=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,c_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ha=(e,t,n)=>n>t?t:n<e?e:n,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Al={...Gs,transform:e=>ha(0,1,e)},cd={...Gs,default:1},Cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xa=Cl("deg"),Vi=Cl("%"),pe=Cl("px"),LL=Cl("vh"),IL=Cl("vw"),d_={...Vi,parse:e=>Vi.parse(e)/100,transform:e=>Vi.transform(e*100)},PL={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},BL={rotate:Xa,rotateX:Xa,rotateY:Xa,rotateZ:Xa,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Xa,skewX:Xa,skewY:Xa,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Al,originX:d_,originY:d_,originZ:pe},f_={...Gs,transform:Math.round},Gp={...PL,...BL,zIndex:f_,size:pe,fillOpacity:Al,strokeOpacity:Al,numOctaves:f_},zL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jL=qs.length;function UL(e,t,n){let i="",a=!0;for(let r=0;r<jL;r++){const s=qs[r],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=c_(o,Gp[s]);if(!l){a=!1;const c=zL[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}function $p(e,t,n){const{style:i,vars:a,transformOrigin:r}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(Ur.has(l)){s=!0;continue}else if(u_(l)){a[l]=u;continue}else{const c=c_(u,Gp[l]);l.startsWith("origin")?(o=!0,r[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=UL(t,e.transform,n):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}const HL={offset:"stroke-dashoffset",array:"stroke-dasharray"},FL={offset:"strokeDashoffset",array:"strokeDasharray"};function VL(e,t,n=1,i=0,a=!0){e.pathLength=1;const r=a?HL:FL;e[r.offset]=pe.transform(-i);const s=pe.transform(t),o=pe.transform(n);e[r.array]=`${s} ${o}`}function h_(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function YL(e,t,n){const i=h_(t,e.x,e.width),a=h_(n,e.y,e.height);return`${i} ${a}`}function Xp(e,{attrX:t,attrY:n,attrScale:i,originX:a,originY:r,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if($p(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(a!==void 0||r!==void 0||h.transform)&&(h.transformOrigin=YL(g,a!==void 0?a:.5,r!==void 0?r:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&VL(f,s,o,l,!1)}const Kp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p_=()=>({...Kp(),attrs:{}}),Qp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m_(e,{style:t,vars:n},i,a){Object.assign(e.style,t,a&&a.getProjectionStyles(i));for(const r in n)e.style.setProperty(r,n[r])}const g_=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 b_(e,t,n,i){m_(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(g_.has(a)?a:Up(a),t.attrs[a])}const dd={};function qL(e){Object.assign(dd,e)}function v_(e,{layout:t,layoutId:n}){return Ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}function Wp(e,t,n){var i;const{style:a}=e,r={};for(const s in a)(an(a[s])||t.style&&an(t.style[s])||v_(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[s]=a[s]);return r}function y_(e,t,n){const i=Wp(e,t,n);for(const a in e)if(an(e[a])||an(t[a])){const r=qs.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[r]=e[a]}return i}function GL(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const x_=["x","y","width","height","cx","cy","r"],$L={useVisualState:o_({scrapeMotionValuesFromProps:y_,createRenderState:p_,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:a})=>{if(!n)return;let r=!!e.drag;if(!r){for(const o in a)if(Ur.has(o)){r=!0;break}}if(!r)return;let s=!t;if(t)for(let o=0;o<x_.length;o++){const l=x_[o];e[l]!==t[l]&&(s=!0)}s&&at.read(()=>{GL(n,i),at.render(()=>{Xp(i,a,Qp(n.tagName),e.transformTemplate),b_(n,i)})})}})},XL={useVisualState:o_({scrapeMotionValuesFromProps:Wp,createRenderState:Kp})};function __(e,t,n){for(const i in t)!an(t[i])&&!v_(i,n)&&(e[i]=t[i])}function KL({transformTemplate:e},t){return _.useMemo(()=>{const n=Kp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function QL(e,t){const n=e.style||{},i={};return __(i,n,e),Object.assign(i,KL(e,t)),i}function WL(e,t){const n={},i=QL(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}function ZL(e,t,n,i){const a=_.useMemo(()=>{const r=p_();return Xp(r,t,Qp(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};__(r,e.style,e),a.style={...r,...a.style}}return a}function JL(e=!1){return(n,i,a,{latestValues:r},s)=>{const l=(Fp(n)?ZL:WL)(i,r,s,n),u=mL(i,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:a}:{},{children:d}=i,f=_.useMemo(()=>an(d)?d.get():d,[d]);return _.createElement(n,{...c,children:f})}}function eI(e,t){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...Fp(i)?$L:XL,preloadedFeatures:e,useRender:JL(a),createVisualElement:t,Component:i};return TL(s)}}function E_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function fd(e,t,n){const i=e.getProps();return Vp(i,t,n!==void 0?n:i.custom,e)}const tI=Pp(()=>window.ScrollTimeline!==void 0);class nI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t,n){const i=this.animations.map(a=>{if(tI()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,r)=>{a&&a(),this.animations[r].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 iI extends nI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Zp(e,t){return e?e[t]||e.default||e:void 0}const Jp=2e4;function T_(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Jp;)t+=n,i=e.next(t);return t>=Jp?1/0:t}function em(e){return typeof e=="function"}function w_(e,t){e.timeline=t,e.onfinish=null}const tm=e=>Array.isArray(e)&&typeof e[0]=="number",aI={linearEasing:void 0};function rI(e,t){const n=Pp(e);return()=>{var i;return(i=aI[t])!==null&&i!==void 0?i:n()}}const hd=rI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),S_=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let r=0;r<a;r++)i+=e(Fs(0,a-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function A_(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in nm||hd())||tm(e)||Array.isArray(e)&&e.every(A_))}const kl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,nm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kl([0,.65,.55,1]),circOut:kl([.55,0,1,.45]),backIn:kl([.31,.01,.66,-.59]),backOut:kl([.33,1.53,.69,.99])};function C_(e,t){if(e)return typeof e=="function"&&hd()?S_(e,t):tm(e)?kl(e):Array.isArray(e)?e.map(n=>C_(n,t)||nm.easeOut):nm[e]}const Ai={x:!1,y:!1};function k_(){return Ai.x||Ai.y}function sI(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const r=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}function O_(e,t){const n=sI(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[n,a,()=>i.abort()]}function N_(e){return t=>{t.pointerType==="touch"||k_()||e(t)}}function oI(e,t,n={}){const[i,a,r]=O_(e,n),s=N_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=N_(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,a)});return i.forEach(o=>{o.addEventListener("pointerenter",s,a)}),r}const R_=(e,t)=>t?e===t?!0:R_(e,t.parentElement):!1,im=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uI(e){return lI.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function D_(e){return t=>{t.key==="Enter"&&e(t)}}function am(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=D_(()=>{if(Ol.has(n))return;am(n,"down");const a=D_(()=>{am(n,"up")}),r=()=>am(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function M_(e){return im(e)&&!k_()}function dI(e,t,n={}){const[i,a,r]=O_(e,n),s=o=>{const l=o.currentTarget;if(!M_(o)||Ol.has(l))return;Ol.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!M_(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||R_(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",f,a)};return i.forEach(o=>{!uI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",u=>cI(u,a),a)}),r}function fI(e){return e==="x"||e==="y"?Ai[e]?null:(Ai[e]=!0,()=>{Ai[e]=!1}):Ai.x||Ai.y?null:(Ai.x=Ai.y=!0,()=>{Ai.x=Ai.y=!1})}const L_=new Set(["width","height","top","left","right","bottom",...qs]);let pd;function hI(){pd=void 0}const Yi={now:()=>(pd===void 0&&Yi.set(Wt.isProcessing||uL.useManualTiming?Wt.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(hI)}};function rm(e,t){e.indexOf(t)===-1&&e.push(t)}function sm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class om{constructor(){this.subscriptions=[]}add(t){return rm(this.subscriptions,t),()=>sm(this.subscriptions,t)}notify(t,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,i);else for(let r=0;r<a;r++){const s=this.subscriptions[r];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function I_(e,t){return t?e*(1e3/t):0}const P_=30,pI=e=>!isNaN(parseFloat(e));class mI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const r=Yi.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&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=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pI(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 om);const i=this.events[t].add(n);return t==="change"?()=>{i(),at.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>P_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,P_);return I_(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 Nl(e,t){return new mI(e,t)}function gI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function bI(e,t){const n=fd(e,t);let{transitionEnd:i={},transition:a={},...r}=n||{};r={...r,...i};for(const s in r){const o=OL(r[s]);gI(e,s,o)}}function vI(e){return!!(an(e)&&e.add)}function lm(e,t){const n=e.getValue("willChange");if(vI(n))return n.add(t)}function B_(e){return e.props[i_]}const z_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yI=1e-7,xI=12;function _I(e,t,n,i,a){let r,s,o=0;do s=t+(n-t)/2,r=z_(s,i,a)-e,r>0?n=s:t=s;while(Math.abs(r)>yI&&++o<xI);return s}function Rl(e,t,n,i){if(e===t&&n===i)return Bn;const a=r=>_I(r,0,1,e,n);return r=>r===0||r===1?r:z_(a(r),t,i)}const j_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,U_=e=>t=>1-e(1-t),H_=Rl(.33,1.53,.69,.99),um=U_(H_),F_=j_(um),V_=e=>(e*=2)<1?.5*um(e):.5*(2-Math.pow(2,-10*(e-1))),cm=e=>1-Math.sin(Math.acos(e)),Y_=U_(cm),q_=j_(cm),G_=e=>/^0[^.\s]+$/u.test(e);function EI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||G_(e):!0}const Dl=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function TI(e){return e==null}const wI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,t)=>n=>!!(typeof n=="string"&&wI.test(n)&&n.startsWith(e)||t&&!TI(n)&&Object.prototype.hasOwnProperty.call(n,t)),$_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[a,r,s,o]=i.match(dm);return{[e]:parseFloat(a),[t]:parseFloat(r),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},SI=e=>ha(0,255,e),hm={...Gs,transform:e=>Math.round(SI(e))},Hr={test:fm("rgb","red"),parse:$_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+hm.transform(e)+", "+hm.transform(t)+", "+hm.transform(n)+", "+Dl(Al.transform(i))+")"};function AI(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const pm={test:fm("#"),parse:AI,transform:Hr.transform},$s={test:fm("hsl","hue"),parse:$_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Vi.transform(Dl(t))+", "+Vi.transform(Dl(n))+", "+Dl(Al.transform(i))+")"},rn={test:e=>Hr.test(e)||pm.test(e)||$s.test(e),parse:e=>Hr.test(e)?Hr.parse(e):$s.test(e)?$s.parse(e):pm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hr.transform(e):$s.transform(e)},CI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(CI))===null||n===void 0?void 0:n.length)||0)>0}const X_="number",K_="color",OI="var",NI="var(",Q_="${}",RI=/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 Ml(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let r=0;const o=t.replace(RI,l=>(rn.test(l)?(i.color.push(r),a.push(K_),n.push(rn.parse(l))):l.startsWith(NI)?(i.var.push(r),a.push(OI),n.push(l)):(i.number.push(r),a.push(X_),n.push(parseFloat(l))),++r,Q_)).split(Q_);return{values:n,split:o,indexes:i,types:a}}function W_(e){return Ml(e).values}function Z_(e){const{split:t,types:n}=Ml(e),i=t.length;return a=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],a[s]!==void 0){const o=n[s];o===X_?r+=Dl(a[s]):o===K_?r+=rn.transform(a[s]):r+=a[s]}return r}}const DI=e=>typeof e=="number"?0:e;function MI(e){const t=W_(e);return Z_(e)(t.map(DI))}const Ka={test:kI,parse:W_,createTransformer:Z_,getAnimatableNone:MI},LI=new Set(["brightness","contrast","saturate","opacity"]);function II(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(dm)||[];if(!i)return e;const a=n.replace(i,"");let r=LI.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+a+")"}const PI=/\b([a-z-]*)\(.*?\)/gu,mm={...Ka,getAnimatableNone:e=>{const t=e.match(PI);return t?t.map(II).join(" "):e}},BI={...Gp,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:mm,WebkitFilter:mm},gm=e=>BI[e];function J_(e,t){let n=gm(e);return n!==mm&&(n=Ka),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zI=new Set(["auto","none","0"]);function jI(e,t,n){let i=0,a;for(;i<e.length&&!a;){const r=e[i];typeof r=="string"&&!zI.has(r)&&Ml(r).values.length&&(a=e[i]),i++}if(a&&n)for(const r of t)e[r]=J_(n,a)}const eE=e=>e===Gs||e===pe,tE=(e,t)=>parseFloat(e.split(", ")[t]),nE=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return tE(a[1],t);{const r=i.match(/^matrix\((.+)\)$/u);return r?tE(r[1],e):0}},UI=new Set(["x","y","z"]),HI=qs.filter(e=>!UI.has(e));function FI(e){const t=[];return HI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Xs={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:nE(4,13),y:nE(5,14)};Xs.translateX=Xs.x,Xs.translateY=Xs.y;const Fr=new Set;let bm=!1,vm=!1;function iE(){if(vm){const e=Array.from(Fr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const a=FI(i);a.length&&(n.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([r,s])=>{var o;(o=i.getValue(r))===null||o===void 0||o.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}vm=!1,bm=!1,Fr.forEach(e=>e.complete()),Fr.clear()}function aE(){Fr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vm=!0)})}function VI(){aE(),iE()}class ym{constructor(t,n,i,a,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=a,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fr.add(this),bm||(bm=!0,at.read(aE),at.resolveKeyframes(iE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:a}=this;for(let r=0;r<t.length;r++)if(t[r]===null)if(r===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const l=i.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const rE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qI(e){const t=YI.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}function sE(e,t,n=1){const[i,a]=qI(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const s=r.trim();return rE(s)?parseFloat(s):s}return qp(a)?sE(a,t,n+1):a}const oE=e=>t=>t.test(e),lE=[Gs,pe,Vi,Xa,IL,LL,{test:e=>e==="auto",parse:e=>e}],uE=e=>lE.find(oE(e));class cE extends ym{constructor(t,n,i,a,r){super(t,n,i,a,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=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(),qp(u))){const c=sE(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!L_.has(i)||t.length!==2)return;const[a,r]=t,s=uE(a),o=uE(r);if(s!==o)if(eE(s)&&eE(o))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,i=[];for(let a=0;a<t.length;a++)EI(t[a])&&i.push(a);i.length&&jI(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xs[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(i,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const r=n.getValue(i);r&&r.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Xs[i](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const dE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ka.test(e)||e==="0")&&!e.startsWith("url("));function GI(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 $I(e,t,n,i){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],s=dE(a,t),o=dE(r,t);return!s||!o?!1:GI(e)||(n==="spring"||em(n))&&i}const XI=e=>e!==null;function md(e,{repeat:t,repeatType:n="loop"},i){const a=e.filter(XI),r=t&&n!=="loop"&&t%2===1?0:a.length-1;return!r||i===void 0?a[r]:i}const KI=40;class fE{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yi.now(),this.options={autoplay:t,delay:n,type:i,repeat:a,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>KI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&VI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:r,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!$I(t,i,a,r))if(s)this.options.duration=0;else{l&&l(md(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ht=(e,t,n)=>e+(t-e)*n;function xm(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 QI({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let a=0,r=0,s=0;if(!t)a=r=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=xm(l,o,e+1/3),r=xm(l,o,e),s=xm(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:i}}function gd(e,t){return n=>n>0?t:e}const _m=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},WI=[pm,Hr,$s],ZI=e=>WI.find(t=>t.test(e));function hE(e){const t=ZI(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=QI(n)),n}const pE=(e,t)=>{const n=hE(e),i=hE(t);if(!n||!i)return gd(e,t);const a={...n};return r=>(a.red=_m(n.red,i.red,r),a.green=_m(n.green,i.green,r),a.blue=_m(n.blue,i.blue,r),a.alpha=ht(n.alpha,i.alpha,r),Hr.transform(a))},JI=(e,t)=>n=>t(e(n)),Ll=(...e)=>e.reduce(JI),Em=new Set(["none","hidden"]);function e8(e,t){return Em.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function t8(e,t){return n=>ht(e,t,n)}function Tm(e){return typeof e=="number"?t8:typeof e=="string"?qp(e)?gd:rn.test(e)?pE:a8:Array.isArray(e)?mE:typeof e=="object"?rn.test(e)?pE:n8:gd}function mE(e,t){const n=[...e],i=n.length,a=e.map((r,s)=>Tm(r)(r,t[s]));return r=>{for(let s=0;s<i;s++)n[s]=a[s](r);return n}}function n8(e,t){const n={...e,...t},i={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(i[a]=Tm(e[a])(e[a],t[a]));return a=>{for(const r in i)n[r]=i[r](a);return n}}function i8(e,t){var n;const i=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;i[r]=l,a[s]++}return i}const a8=(e,t)=>{const n=Ka.createTransformer(t),i=Ml(e),a=Ml(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?Em.has(e)&&!a.values.length||Em.has(t)&&!i.values.length?e8(e,t):Ll(mE(i8(i,a),a.values),n):gd(e,t)};function gE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):Tm(e)(e,t)}const r8=5;function bE(e,t,n){const i=Math.max(t-r8,0);return I_(n-e(i),t-i)}const bt={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},wm=.001;function s8({duration:e=bt.duration,bounce:t=bt.bounce,velocity:n=bt.velocity,mass:i=bt.mass}){let a,r,s=1-t;s=ha(bt.minDamping,bt.maxDamping,s),e=ha(bt.minDuration,bt.maxDuration,fa(e)),s<1?(a=u=>{const c=u*s,d=c*e,f=c-n,h=Sm(u,s),g=Math.exp(-d);return wm-f/h*g},r=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=Sm(Math.pow(u,2),s);return(-a(u)+wm>0?-1:1)*((f-h)*g)/b}):(a=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-wm+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=l8(a,r,o);if(e=da(e),isNaN(l))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const o8=12;function l8(e,t,n){let i=n;for(let a=1;a<o8;a++)i=i-e(i)/t(i);return i}function Sm(e,t){return e*Math.sqrt(1-t*t)}const u8=["duration","bounce"],c8=["stiffness","damping","mass"];function vE(e,t){return t.some(n=>e[n]!==void 0)}function d8(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!vE(e,c8)&&vE(e,u8))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,r=2*ha(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:bt.mass,stiffness:a,damping:r}}else{const n=s8(e);t={...t,...n,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function yE(e=bt.visualDuration,t=bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=d8({...n,velocity:-fa(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(l*c)),E=s-r,m=fa(Math.sqrt(l/c)),y=Math.abs(E)<5;i||(i=y?bt.restSpeed.granular:bt.restSpeed.default),a||(a=y?bt.restDelta.granular:bt.restDelta.default);let x;if(b<1){const S=Sm(m,b);x=A=>{const D=Math.exp(-b*m*A);return s-D*((g+b*m*E)/S*Math.sin(S*A)+E*Math.cos(S*A))}}else if(b===1)x=S=>s-Math.exp(-m*S)*(E+(g+m*E)*S);else{const S=m*Math.sqrt(b*b-1);x=A=>{const D=Math.exp(-b*m*A),L=Math.min(S*A,300);return s-D*((g+b*m*E)*Math.sinh(L)+S*E*Math.cosh(L))/S}}const T={calculatedDuration:h&&d||null,next:S=>{const A=x(S);if(h)o.done=S>=d;else{let D=0;b<1&&(D=S===0?da(g):bE(x,S,A));const L=Math.abs(D)<=i,B=Math.abs(s-A)<=a;o.done=L&&B}return o.value=o.done?s:A,o},toString:()=>{const S=Math.min(T_(T),Jp),A=S_(D=>T.next(S*D).value,S,30);return S+"ms "+A}};return T}function xE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const E=d+b,m=s===void 0?E:s(E);m!==E&&(b=m-d);const y=L=>-b*Math.exp(-L/i),x=L=>m+y(L),T=L=>{const B=y(L),O=x(L);f.done=Math.abs(B)<=u,f.value=f.done?m:O};let S,A;const D=L=>{h(f.value)&&(S=L,A=yE({keyframes:[f.value,g(f.value)],velocity:bE(x,L,f.value),damping:a,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!A&&S===void 0&&(B=!0,T(L),D(L)),S!==void 0&&L>=S?A.next(L-S):(!B&&T(L),f)}}}const f8=Rl(.42,0,1,1),h8=Rl(0,0,.58,1),_E=Rl(.42,0,.58,1),p8=e=>Array.isArray(e)&&typeof e[0]!="number",m8={linear:Bn,easeIn:f8,easeInOut:_E,easeOut:h8,circIn:cm,circInOut:q_,circOut:Y_,backIn:um,backInOut:F_,backOut:H_,anticipate:V_},EE=e=>{if(tm(e)){Qx(e.length===4);const[t,n,i,a]=e;return Rl(t,n,i,a)}else if(typeof e=="string")return m8[e];return e};function g8(e,t,n){const i=[],a=n||gE,r=e.length-1;for(let s=0;s<r;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Bn:t;o=Ll(l,o)}i.push(o)}return i}function b8(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const r=e.length;if(Qx(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=g8(t,i,a),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Fs(e[d],e[d+1],c);return o[d](f)};return n?c=>u(ha(e[0],e[r-1],c)):u}function v8(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Fs(0,t,i);e.push(ht(n,1,a))}}function y8(e){const t=[0];return v8(t,e.length-1),t}function x8(e,t){return e.map(n=>n*t)}function _8(e,t){return e.map(()=>t||_E).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=p8(i)?i.map(EE):EE(i),r={done:!1,value:t[0]},s=x8(n&&n.length===t.length?n:y8(t),e),o=b8(s,t,{ease:Array.isArray(a)?a:_8(t,a)});return{calculatedDuration:e,next:l=>(r.value=o(l),r.done=l>=e,r)}}const E8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>at.update(t,!0),stop:()=>$a(t),now:()=>Wt.isProcessing?Wt.timestamp:Yi.now()}},T8={decay:xE,inertia:xE,tween:bd,keyframes:bd,spring:yE},w8=e=>e/100;class Am extends fE{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:i,element:a,keyframes:r}=this.options,s=(a==null?void 0:a.KeyframeResolver)||ym,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(r,o,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r,velocity:s=0}=this.options,o=em(n)?n:T8[n]||bd;let l,u;o!==bd&&typeof t[0]!="number"&&(l=Ll(w8,gE(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});r==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=T_(c));const{calculatedDuration:d}=c,f=d+a,h=f*(i+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}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:i}=this;if(!i){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:a,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return r.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:b,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/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),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=r;if(h){const L=Math.min(this.currentTime,c)/d;let B=Math.floor(L),O=L%1;!O&&L>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(O=1-O,b&&(O-=b/d)):g==="mirror"&&(T=s)),x=ha(0,1,O)*d}const S=y?{done:!1,value:l[0]}:T.next(x);o&&(S.value=o(S.value));let{done:A}=S;!y&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&a!==void 0&&(S.value=md(l,this.options,a)),E&&E(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?fa(t.calculatedDuration):0}get time(){return fa(this.currentTime)}set time(t){t=da(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=fa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=E8,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t: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)}}const S8=new Set(["opacity","clipPath","filter","transform"]);function A8(e,t,n,{delay:i=0,duration:a=300,repeat:r=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=C_(o,a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:a,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"})}const C8=Pp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,k8=2e4;function O8(e){return em(e.type)||e.type==="spring"||!A_(e.ease)}function N8(e,t){const n=new Am({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const a=[];let r=0;for(;!i.done&&r<k8;)i=n.sample(r),a.push(i.value),r+=vd;return{times:void 0,keyframes:a,duration:r-vd,ease:"linear"}}const TE={anticipate:V_,backInOut:F_,circInOut:q_};function R8(e){return e in TE}class wE extends fE{constructor(t){super(t);const{name:n,motionValue:i,element:a,keyframes:r}=this.options;this.resolver=new cE(r,(s,o)=>this.onKeyframesResolved(s,o),n,i,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:a,ease:r,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof r=="string"&&hd()&&R8(r)&&(r=TE[r]),O8(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...b}=this.options,E=N8(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),i=E.duration,a=E.times,r=E.ease,s="keyframes"}const c=A8(o.owner.current,l,t,{...this.options,duration:i,times:a,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(w_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(md(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:a,type:s,ease:r,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return fa(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fa(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=da(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.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 Bn;const{animation:i}=n;w_(i,t)}return Bn}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:i,duration:a,type:r,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...h}=this.options,g=new Am({...h,keyframes:i,duration:a,type:r,ease:s,times:o,isGenerator:!0}),b=da(this.time);u.setWithVelocity(g.sample(b-vd).value,g.sample(b).value,vd)}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:i,repeatDelay:a,repeatType:r,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return C8()&&i&&S8.has(i)&&!l&&!u&&!a&&r!=="mirror"&&s!==0&&o!=="inertia"}}const D8={type:"spring",stiffness:500,damping:25,restSpeed:10},M8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),L8={type:"keyframes",duration:.8},I8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},P8=(e,{keyframes:t})=>t.length>2?L8:Ur.has(e)?e.startsWith("scale")?M8(t[1]):D8:I8;function B8({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:r,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Cm=(e,t,n,i={},a,r)=>s=>{const o=Zp(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-da(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:a};B8(o)||(c={...c,...P8(e,c)}),c.duration&&(c.duration=da(c.duration)),c.repeatDelay&&(c.repeatDelay=da(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!r&&t.get()!==void 0){const f=md(c.keyframes,o);if(f!==void 0)return at.update(()=>{c.onUpdate(f),c.onComplete()}),new iI([])}return!r&&wE.supports(c)?new wE(c):new Am(c)};function z8({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function SE(e,t,{delay:n=0,transitionOverride:i,type:a}={}){var r;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(s=i);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const f=e.getValue(d,(r=e.latestValues[d])!==null&&r!==void 0?r:null),h=l[d];if(h===void 0||c&&z8(c,d))continue;const g={delay:n,...Zp(s||{},d)};let b=!1;if(window.MotionHandoffAnimation){const m=B_(e);if(m){const y=window.MotionHandoffAnimation(m,d,at);y!==null&&(g.startTime=y,b=!0)}}lm(e,d),f.start(Cm(d,f,h,e.shouldReduceMotion&&L_.has(d)?{type:!1}:g,e,b));const E=f.animation;E&&u.push(E)}return o&&Promise.all(u).then(()=>{at.update(()=>{o&&bI(e,o)})}),u}function km(e,t,n={}){var i;const a=fd(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const s=a?()=>Promise.all(SE(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=r;return j8(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function j8(e,t,n=0,i=0,a=1,r){const s=[],o=(e.variantChildren.size-1)*i,l=a===1?(u=0)=>u*i:(u=0)=>o-u*i;return Array.from(e.variantChildren).sort(U8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(km(u,t,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function U8(e,t){return e.sortNodePosition(t)}function H8(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(r=>km(e,r,n));i=Promise.all(a)}else if(typeof t=="string")i=km(e,t,n);else{const a=typeof t=="function"?fd(e,t,n.custom):t;i=Promise.all(SE(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const F8=jp.length;function AE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?AE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<F8;n++){const i=jp[n],a=e.props[i];(Sl(a)||a===!1)&&(t[i]=a)}return t}const V8=[...zp].reverse(),Y8=zp.length;function q8(e){return t=>Promise.all(t.map(({animation:n,options:i})=>H8(e,n,i)))}function G8(e){let t=q8(e),n=CE(),i=!0;const a=l=>(u,c)=>{var d;const f=fd(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...b}=f;u={...u,...b,...g}}return u};function r(l){t=l(e)}function s(l){const{props:u}=e,c=AE(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let E=0;E<Y8;E++){const m=V8[E],y=n[m],x=u[m]!==void 0?u[m]:c[m],T=Sl(x),S=m===l?y.isActive:null;S===!1&&(g=E);let A=x===c[m]&&x!==u[m]&&T;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&S===null||!x&&!y.prevProp||od(x)||typeof x=="boolean")continue;const D=$8(y.prevProp,x);let L=D||m===l&&y.isActive&&!A&&T||E>g&&T,B=!1;const O=Array.isArray(x)?x:[x];let Y=O.reduce(a(m),{});S===!1&&(Y={});const{prevResolvedValues:U={}}=y,ae={...U,...Y},ee=V=>{L=!0,f.has(V)&&(B=!0,f.delete(V)),y.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in ae){const H=Y[V],te=U[V];if(h.hasOwnProperty(V))continue;let N=!1;Yp(H)&&Yp(te)?N=!E_(H,te):N=H!==te,N?H!=null?ee(V):f.add(V):H!==void 0&&f.has(V)?ee(V):y.protectedKeys[V]=!0}y.prevProp=x,y.prevResolvedValues=Y,y.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||B)&&d.push(...O.map(V=>({animation:V,options:{type:m}})))}if(f.size){const E={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),E[m]=y??null}),d.push({animation:E})}let b=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(d):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:r,getState:()=>n,reset:()=>{n=CE(),i=!0}}}function $8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!E_(t,e):!1}function Vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function CE(){return{animate:Vr(!0),whileInView:Vr(),whileHover:Vr(),whileTap:Vr(),whileDrag:Vr(),whileFocus:Vr(),exit:Vr()}}class Qa{constructor(t){this.isMounted=!1,this.node=t}update(){}}class X8 extends Qa{constructor(t){super(t),t.animationState||(t.animationState=G8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();od(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===void 0||t.call(this)}}let K8=0;class Q8 extends Qa{constructor(){super(...arguments),this.id=K8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const W8={animation:{Feature:X8},exit:{Feature:Q8}};function Il(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const Z8=e=>t=>im(t)&&e(t,Pl(t));function Bl(e,t,n,i){return Il(e,t,Z8(n),i)}const kE=(e,t)=>Math.abs(e-t);function J8(e,t){const n=kE(e.x,t.x),i=kE(e.y,t.y);return Math.sqrt(n**2+i**2)}class OE{constructor(t,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:r=!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 d=Nm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=J8(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:b}=Wt;this.history.push({...g,timestamp:b});const{onStart:E,onMove:m}=this.handlers;f||(E&&E(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Om(f,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Nm(d.type==="pointercancel"?this.lastMoveEventInfo:Om(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,E),g&&g(d,E)},!im(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const s=Pl(t),o=Om(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Nm(o,this.history)),this.removeListeners=Ll(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$a(this.updatePoint)}}function Om(e,t){return t?{point:t(e.point)}:e}function NE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nm({point:e},t){return{point:e,delta:NE(e,RE(t)),offset:NE(e,eP(t)),velocity:tP(t,.1)}}function eP(e){return e[0]}function RE(e){return e[e.length-1]}function tP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=RE(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>da(t)));)n--;if(!i)return{x:0,y:0};const r=fa(a.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(a.x-i.x)/r,y:(a.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const DE=1e-4,nP=1-DE,iP=1+DE,ME=.01,aP=0-ME,rP=0+ME;function zn(e){return e.max-e.min}function sP(e,t,n){return Math.abs(e-t)<=n}function LE(e,t,n,i=.5){e.origin=i,e.originPoint=ht(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nP&&e.scale<=iP||isNaN(e.scale))&&(e.scale=1),(e.translate>=aP&&e.translate<=rP||isNaN(e.translate))&&(e.translate=0)}function zl(e,t,n,i){LE(e.x,t.x,n.x,i?i.originX:void 0),LE(e.y,t.y,n.y,i?i.originY:void 0)}function IE(e,t,n){e.min=n.min+t.min,e.max=e.min+zn(t)}function oP(e,t,n){IE(e.x,t.x,n.x),IE(e.y,t.y,n.y)}function PE(e,t,n){e.min=t.min-n.min,e.max=e.min+zn(t)}function jl(e,t,n){PE(e.x,t.x,n.x),PE(e.y,t.y,n.y)}function lP(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ht(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ht(n,e,i.max):Math.min(e,n)),e}function BE(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 uP(e,{top:t,left:n,bottom:i,right:a}){return{x:BE(e.x,n,a),y:BE(e.y,t,i)}}function zE(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function cP(e,t){return{x:zE(e.x,t.x),y:zE(e.y,t.y)}}function dP(e,t){let n=.5;const i=zn(e),a=zn(t);return a>i?n=Fs(t.min,t.max-i,e.min):i>a&&(n=Fs(e.min,e.max-a,t.min)),ha(0,1,n)}function fP(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 Rm=.35;function hP(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:jE(e,"left","right"),y:jE(e,"top","bottom")}}function jE(e,t,n){return{min:UE(e,t),max:UE(e,n)}}function UE(e,t){return typeof e=="number"?e:e[t]||0}const HE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:HE(),y:HE()}),FE=()=>({min:0,max:0}),_t=()=>({x:FE(),y:FE()});function ai(e){return[e("x"),e("y")]}function VE({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function pP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Dm(e){return e===void 0||e===1}function Mm({scale:e,scaleX:t,scaleY:n}){return!Dm(e)||!Dm(t)||!Dm(n)}function Yr(e){return Mm(e)||YE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function YE(e){return qE(e.x)||qE(e.y)}function qE(e){return e&&e!=="0%"}function yd(e,t,n){const i=e-n,a=t*i;return n+a}function GE(e,t,n,i,a){return a!==void 0&&(e=yd(e,a,i)),yd(e,n,i)+t}function Lm(e,t=0,n=1,i,a){e.min=GE(e.min,t,n,i,a),e.max=GE(e.max,t,n,i,a)}function $E(e,{x:t,y:n}){Lm(e.x,t.translate,t.scale,t.originPoint),Lm(e.y,n.translate,n.scale,n.originPoint)}const XE=.999999999999,KE=1.0000000000001;function gP(e,t,n,i=!1){const a=n.length;if(!a)return;t.x=t.y=1;let r,s;for(let o=0;o<a;o++){r=n[o],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ws(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,$E(e,s)),i&&Yr(r.latestValues)&&Ws(e,r.latestValues))}t.x<KE&&t.x>XE&&(t.x=1),t.y<KE&&t.y>XE&&(t.y=1)}function Qs(e,t){e.min=e.min+t,e.max=e.max+t}function QE(e,t,n,i,a=.5){const r=ht(e.min,e.max,a);Lm(e,t,n,r,i)}function Ws(e,t){QE(e.x,t.x,t.scaleX,t.scale,t.originX),QE(e.y,t.y,t.scaleY,t.scale,t.originY)}function WE(e,t){return VE(mP(e.getBoundingClientRect(),t))}function bP(e,t,n){const i=WE(e,n),{scroll:a}=t;return a&&(Qs(i.x,a.offset.x),Qs(i.y,a.offset.y)),i}const ZE=({current:e})=>e?e.ownerDocument.defaultView:null,vP=new WeakMap;class yP{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=_t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pl(c).point)},r=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fI(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),ai(E=>{let m=this.getAxisMotionValue(E).get()||0;if(Vi.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const x=y.layout.layoutBox[E];x&&(m=zn(x)*(parseFloat(m)/100))}}this.originPoint[E]=m}),g&&at.postRender(()=>g(c,d)),lm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:E}=d;if(h&&this.currentDirection===null){this.currentDirection=xP(E),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,E),this.updateAxis("y",d.point,E),this.visualElement.render(),b&&b(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ai(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new OE(t,{onSessionStart:a,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:ZE(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:r}=this.getProps();r&&at.postRender(()=>r(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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:a}=this.getProps();if(!i||!xd(t,a,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=lP(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,r=this.constraints;n&&Ys(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=uP(a.layoutBox,n):this.constraints=!1,this.elastic=hP(i),r!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&ai(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fP(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ys(t))return!1;const i=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const r=bP(i,a.root,this.visualElement.getTransformPagePoint());let s=cP(a.layout.layoutBox,r);if(n){const o=n(pP(s));this.hasMutatedConstraints=!!o,o&&(s=VE(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ai(c=>{if(!xd(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=a?200:1e6,h=a?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return lm(this.visualElement,t),i.start(Cm(t,i,0,n,this.visualElement,!1))}stopAnimation(){ai(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ai(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ai(n=>{const{drag:i}=this.getProps();if(!xd(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,r=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];r.set(t[n]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ys(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ai(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=dP({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ai(s=>{if(!xd(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ht(l,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;vP.set(this.visualElement,this);const t=this.visualElement.current,n=Bl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Ys(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,r=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),at.read(i);const s=Il(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ai(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:r=!1,dragElastic:s=Rm,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _P extends Qa{constructor(t){super(t),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new yP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const JE=e=>(t,n)=>{e&&at.postRender(()=>e(t,n))};class EP extends Qa{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(t){this.session=new OE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ZE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:JE(t),onStart:JE(n),onMove:i,onEnd:(r,s)=>{delete this.session,a&&at.postRender(()=>a(r,s))}}}mount(){this.removePointerDownListener=Bl(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 _d={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=eT(e,t.target.x),i=eT(e,t.target.y);return`${n}% ${i}%`}},TP={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Ka.parse(e);if(a.length>5)return i;const r=Ka.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const u=ht(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),r(a)}};class wP extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:r}=t;qL(SP),r&&(n.group&&n.group.add(r),i&&i.register&&a&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),_d.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:a,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||at.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tT(e){const[t,n]=$x(),i=_.useContext(Dp);return v.jsx(wP,{...e,layoutGroup:i,switchLayoutGroup:_.useContext(a_),isPresent:t,safeToRemove:n})}const SP={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:TP};function AP(e,t,n){const i=an(e)?e:Nl(e);return i.start(Cm("",i,t,n)),i.animation}function CP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kP=(e,t)=>e.depth-t.depth;class OP{constructor(){this.children=[],this.isDirty=!1}add(t){rm(this.children,t),this.isDirty=!0}remove(t){sm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kP),this.isDirty=!1,this.children.forEach(t)}}function NP(e,t){const n=Yi.now(),i=({timestamp:a})=>{const r=a-n;r>=t&&($a(i),e(r-t))};return at.read(i,!0),()=>$a(i)}const nT=["TopLeft","TopRight","BottomLeft","BottomRight"],RP=nT.length,iT=e=>typeof e=="string"?parseFloat(e):e,aT=e=>typeof e=="number"||pe.test(e);function DP(e,t,n,i,a,r){a?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,MP(i)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,LP(i))):r&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<RP;s++){const o=`border${nT[s]}Radius`;let l=rT(t,o),u=rT(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||aT(l)===aT(u)?(e[o]=Math.max(ht(iT(l),iT(u),i),0),(Vi.test(u)||Vi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,i))}function rT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const MP=sT(0,.5,Y_),LP=sT(.5,.95,Bn);function sT(e,t,n){return i=>i<e?0:i>t?1:n(Fs(e,t,i))}function oT(e,t){e.min=t.min,e.max=t.max}function ri(e,t){oT(e.x,t.x),oT(e.y,t.y)}function lT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uT(e,t,n,i,a){return e-=t,e=yd(e,1/n,i),a!==void 0&&(e=yd(e,1/a,i)),e}function IP(e,t=0,n=1,i=.5,a,r=e,s=e){if(Vi.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(r.min,r.max,i);e===r&&(o-=t),e.min=uT(e.min,t,n,o,a),e.max=uT(e.max,t,n,o,a)}function cT(e,t,[n,i,a],r,s){IP(e,t[n],t[i],t[a],t.scale,r,s)}const PP=["x","scaleX","originX"],BP=["y","scaleY","originY"];function dT(e,t,n,i){cT(e.x,t,PP,n?n.x:void 0,i?i.x:void 0),cT(e.y,t,BP,n?n.y:void 0,i?i.y:void 0)}function fT(e){return e.translate===0&&e.scale===1}function hT(e){return fT(e.x)&&fT(e.y)}function pT(e,t){return e.min===t.min&&e.max===t.max}function zP(e,t){return pT(e.x,t.x)&&pT(e.y,t.y)}function mT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gT(e,t){return mT(e.x,t.x)&&mT(e.y,t.y)}function bT(e){return zn(e.x)/zn(e.y)}function vT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class jP{constructor(){this.members=[]}add(t){rm(this.members,t),t.scheduleRender()}remove(t){if(sm(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(a=>t===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const r=this.members[a];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function UP(e,t,n){let i="";const a=e.x.translate/t.x,r=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||r||s)&&(i=`translate3d(${a}px, ${r}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}const qr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hl=typeof window<"u"&&window.MotionDebug!==void 0,Im=["","X","Y","Z"],HP={visibility:"hidden"},yT=1e3;let FP=0;function Pm(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function xT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=B_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",at,!(a||r))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&xT(i)}function _T({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=FP++,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,Hl&&(qr.totalNodes=qr.resolvedTargetDeltas=qr.recalculatedProjection=0),this.nodes.forEach(qP),this.nodes.forEach(QP),this.nodes.forEach(WP),this.nodes.forEach(GP),Hl&&window.MotionDebug.record(qr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new OP)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new om),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=CP(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=NP(f,250),_d.hasAnimatedSinceResize&&(_d.hasAnimatedSinceResize=!1,this.nodes.forEach(TT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||n9,{onLayoutAnimationStart:E,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!gT(this.targetLayout,g)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...Zp(b,"layout"),onPlay:E,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||TT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$a(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(ZP),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ET);return}this.isUpdating||this.nodes.forEach(XP),this.isUpdating=!1,this.nodes.forEach(KP),this.nodes.forEach(VP),this.nodes.forEach(YP),this.clearAllSnapshots();const o=Yi.now();Wt.delta=ha(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,Bp.update.process(Wt),Bp.preRender.process(Wt),Bp.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($P),this.sharedNodes.forEach(JP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=_t(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!hT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Yr(this.latestValues)||c)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),i9(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return _t();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(a9))){const{scroll:c}=this.root;c&&(Qs(l.x,c.offset.x),Qs(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=_t();if(ri(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ri(l,s),Qs(l.x,d.offset.x),Qs(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=_t();ri(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ws(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Yr(c.latestValues)&&Ws(l,c.latestValues)}return Yr(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(s){const o=_t();ri(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Yr(u.latestValues))continue;Mm(u.latestValues)&&u.updateSnapshot();const c=_t(),d=u.measurePageBox();ri(c,d),dT(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Yr(this.latestValues)&&dT(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_t(),this.relativeTargetOrigin=_t(),jl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_t(),this.targetWithTransforms=_t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),oP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ri(this.target,this.layout.layoutBox),$E(this.target,this.targetDelta)):ri(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_t(),this.relativeTargetOrigin=_t(),jl(this.relativeTargetOrigin,this.target,h.target),ri(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hl&&qr.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mm(this.parent.latestValues)||YE(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 s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(u=!1),u)return;const{layout:c,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||!(c||d))return;ri(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;gP(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=_t());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lT(this.prevProjectionDelta.x,this.projectionDelta.x),lT(this.prevProjectionDelta.y,this.projectionDelta.y)),zl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!vT(this.projectionDelta.x,this.prevProjectionDelta.x)||!vT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Hl&&qr.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ks();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=_t(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,E=this.getStack(),m=!E||E.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(t9));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;wT(d.x,s.x,S),wT(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),e9(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&zP(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=_t()),ri(x,this.relativeTarget)),b&&(this.animationValues=c,DP(c,u,this.latestValues,S,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($a(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{_d.hasAnimatedSinceResize=!0,this.currentAnimation=AP(0,yT,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&OT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_t();const d=zn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=zn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ri(o,l),Ws(o,c),zl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new jP),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Pm("z",s,u,this.animationValues);for(let c=0;c<Im.length;c++)Pm(`rotate${Im[c]}`,s,u,this.animationValues),Pm(`skew${Im[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return HP;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ud(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ud(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Yr(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=UP(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in dd){if(f[b]===void 0)continue;const{correct:E,applyTo:m}=dd[b],y=u.transform==="none"?f[b]:E(f[b],d);if(m){const x=m.length;for(let T=0;T<x;T++)u[m[T]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=d===this?ud(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(ET),this.root.sharedNodes.clear()}}}function VP(e){e.updateLayout()}function YP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=e.layout,{animationType:r}=e.options,s=n.source!==e.layout.source;r==="size"?ai(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(f);f.min=i[d].min,f.max=f.min+h}):OT(r,n.layoutBox,i)&&ai(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Ks();zl(o,i,n.layoutBox);const l=Ks();s?zl(l,e.applyTransform(a,!0),n.measuredBox):zl(l,i,n.layoutBox);const u=!hT(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=_t();jl(g,n.layoutBox,f.layoutBox);const b=_t();jl(b,i,h.layoutBox),gT(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function qP(e){Hl&&qr.totalNodes++,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 GP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $P(e){e.clearSnapshot()}function ET(e){e.clearMeasurements()}function XP(e){e.isLayoutDirty=!1}function KP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function QP(e){e.resolveTargetDelta()}function WP(e){e.calcProjection()}function ZP(e){e.resetSkewAndRotation()}function JP(e){e.removeLeadSnapshot()}function wT(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ST(e,t,n,i){e.min=ht(t.min,n.min,i),e.max=ht(t.max,n.max,i)}function e9(e,t,n,i){ST(e.x,t.x,n.x,i),ST(e.y,t.y,n.y,i)}function t9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const n9={duration:.45,ease:[.4,0,.1,1]},AT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),CT=AT("applewebkit/")&&!AT("chrome/")?Math.round:Bn;function kT(e){e.min=CT(e.min),e.max=CT(e.max)}function i9(e){kT(e.x),kT(e.y)}function OT(e,t,n){return e==="position"||e==="preserve-aspect"&&!sP(bT(t),bT(n),.2)}function a9(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r9=_T({attachResizeListener:(e,t)=>Il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bm={current:void 0},NT=_T({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bm.current){const e=new r9({});e.mount(window),e.setOptions({layoutScroll:!0}),Bm.current=e}return Bm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),s9={pan:{Feature:EP},drag:{Feature:_P,ProjectionNode:NT,MeasureLayout:tT}};function RT(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class o9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=oI(t,n=>(RT(this.node,n,"Start"),i=>RT(this.node,i,"End"))))}unmount(){}}class l9 extends Qa{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=Ll(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function DT(e,t,n){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class u9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=dI(t,n=>(DT(this.node,n,"Start"),(i,{success:a})=>DT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zm=new WeakMap,jm=new WeakMap,c9=e=>{const t=zm.get(e.target);t&&t(e)},d9=e=>{e.forEach(c9)};function f9({root:e,...t}){const n=e||document;jm.has(n)||jm.set(n,{});const i=jm.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(d9,{root:e,...t})),i[a]}function h9(e,t,n){const i=f9(t);return zm.set(e,n),i.observe(e),()=>{zm.delete(e),i.unobserve(e)}}const p9={some:0,all:1};class m9 extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:p9[a]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return h9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(g9(t,n))&&this.startObserver()}unmount(){}}function g9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const b9={inView:{Feature:m9},tap:{Feature:u9},focus:{Feature:l9},hover:{Feature:o9}},v9={layout:{ProjectionNode:NT,MeasureLayout:tT}},Um={current:null},MT={current:!1};function y9(){if(MT.current=!0,!!Ip)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Um.current=e.matches;e.addListener(t),t()}else Um.current=!1}const x9=[...lE,rn,Ka],_9=e=>x9.find(oE(e)),LT=new WeakMap;function E9(e,t,n){for(const i in t){const a=t[i],r=n[i];if(an(a))e.addValue(i,a);else if(an(r))e.addValue(i,Nl(a,{owner:e}));else if(r!==a)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Nl(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class T9{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ym,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 h=Yi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,at.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ld(n),this.isVariantNode=t_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&an(g)&&g.set(l[h],!1)}}mount(t){this.current=t,LT.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,i)=>this.bindToMotionValue(i,n)),MT.current||y9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Um.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LT.delete(this.current),this.projection&&this.projection.unmount(),$a(this.notifyUpdate),$a(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 i=Ur.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&at.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),r(),s&&s(),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 Vs){const n=Vs[t];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_t()}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 i=0;i<IT.length;i++){const a=IT[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const r="on"+a,s=t[r];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=E9(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 i=this.values.get(t);n!==i&&(i&&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 i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Nl(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(rE(a)||G_(a))?a=parseFloat(a):!_9(a)&&Ka.test(n)&&(a=J_(t,n)),this.setBaseTarget(t,an(a)?a.get():a)),an(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const s=Vp(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(i&&a!==void 0)return a;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!an(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new om),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class PT extends T9{constructor(){super(...arguments),this.KeyframeResolver=cE}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:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;an(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function w9(e){return window.getComputedStyle(e)}class S9 extends PT{constructor(){super(...arguments),this.type="html",this.renderInstance=m_}readValueFromInstance(t,n){if(Ur.has(n)){const i=gm(n);return i&&i.default||0}else{const i=w9(t),a=(u_(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return WE(t,n)}build(t,n,i){$p(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Wp(t,n,i)}}class A9 extends PT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ur.has(n)){const i=gm(n);return i&&i.default||0}return n=g_.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return y_(t,n,i)}build(t,n,i){Xp(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,a){b_(t,n,i,a)}mount(t){this.isSVGTag=Qp(t.tagName),super.mount(t)}}const C9=(e,t)=>Fp(e)?new A9(t):new S9(t,{allowProjection:e!==_.Fragment}),k9=eI({...W8,...b9,...s9,...v9},C9),Fl=gL(k9),BT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zT=jx,O9=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return zT(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:r}=t,s=Object.keys(a).map(u=>{const c=n==null?void 0:n[u],d=r==null?void 0:r[u];if(c===null)return null;const f=BT(c)||BT(d);return a[u][f]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(g=>{let[b,E]=g;return Array.isArray(E)?E.includes({...r,...o}[b]):{...r,...o}[b]===E})?[...u,d,f]:u},[]);return zT(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function jT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(t);for(;a!==-1;)i++,a=n.indexOf(t,a+t.length);return i}function lJ(){}function uJ(){}const bn=Wa(/[A-Za-z]/),sn=Wa(/[\dA-Za-z]/),N9=Wa(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Hm=Wa(/\d/),R9=Wa(/[\dA-Fa-f]/),D9=Wa(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Td=Wa(new RegExp("\\p{P}|\\p{S}","u")),Gr=Wa(/\s/);function Wa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function M9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wd=function(e){if(e==null)return B9;if(typeof e=="function")return Sd(e);if(typeof e=="object")return Array.isArray(e)?L9(e):I9(e);if(typeof e=="string")return P9(e);throw new Error("Expected function, string, or object as test")};function L9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wd(e[n]);return Sd(i);function i(...a){let r=-1;for(;++r<t.length;)if(t[r].apply(this,a))return!0;return!1}}function I9(e){const t=e;return Sd(n);function n(i){const a=i;let r;for(r in e)if(a[r]!==t[r])return!1;return!0}}function P9(e){return Sd(t);function t(n){return n&&n.type===e}}function Sd(e){return t;function t(n,i,a){return!!(z9(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function B9(){return!0}function z9(e){return e!==null&&typeof e=="object"&&"type"in e}function cJ(e){return e}const UT=[],j9=!0,Fm=!1,U9="skip";function HT(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const r=wd(a),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=UT,g,b,E;if((!t||r(l,u,c[c.length-1]||void 0))&&(h=H9(n(l,c)),h[0]===Fm))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==U9)for(b=(i?m.children.length:-1)+s,E=c.concat(m);b>-1&&b<m.children.length;){const y=m.children[b];if(g=o(y,b,E)(),g[0]===Fm)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function H9(e){return Array.isArray(e)?e:typeof e=="number"?[j9,e]:e==null?UT:[e]}function F9(e,t,n){const a=wd((n||{}).ignore||[]),r=V9(t);let s=-1;for(;++s<r.length;)HT(e,"text",o);function o(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],g=f?f.children:void 0;if(a(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=r[s][0],h=r[s][1];let g=0;const E=d.children.indexOf(u);let m=!1,y=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const T=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let A=h(...x,S);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(g!==T&&y.push({type:"text",value:u.value.slice(g,T)}),Array.isArray(A)?y.push(...A):A&&y.push(A),g=T+x[0].length,m=!0),!f.global)break;x=f.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),d.children.splice(E,1,...y)):y=[u],E+y.length}}function V9(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const a=n[i];t.push([Y9(a[0]),q9(a[1])])}return t}function Y9(e){return typeof e=="string"?new RegExp(M9(e),"g"):e}function q9(e){return typeof e=="function"?e:function(){return e}}const Vm="phrasing",Ym=["autolink","link","image","label"];function G9(){return{transforms:[J9],enter:{literalAutolink:X9,literalAutolinkEmail:qm,literalAutolinkHttp:qm,literalAutolinkWww:qm},exit:{literalAutolink:Z9,literalAutolinkEmail:W9,literalAutolinkHttp:K9,literalAutolinkWww:Q9}}}function $9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:":",before:"[ps]",after:"\\/",inConstruct:Vm,notInConstruct:Ym}]}}function X9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qm(e){this.config.enter.autolinkProtocol.call(this,e)}function K9(e){this.config.exit.autolinkProtocol.call(this,e)}function Q9(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function W9(e){this.config.exit.autolinkEmail.call(this,e)}function Z9(e){this.exit(e)}function J9(e){F9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,e7],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,t7]],{ignore:["link","linkReference"]})}function e7(e,t,n,i,a){let r="";if(!FT(a)||(/^w/i.test(t)&&(n=t+n,t="",r="http://"),!n7(n)))return!1;const s=i7(n+i);if(!s[0])return!1;const o={type:"link",title:null,url:r+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function t7(e,t,n,i){return!FT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function n7(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function i7(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const a=jT(e,"(");let r=jT(e,")");for(;i!==-1&&a>r;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),r++;return[e,n]}function FT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Gr(n)||Td(n))&&(!t||n!==47)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}VT.peek=f7;function a7(){this.buffer()}function r7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function s7(){this.buffer()}function o7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function l7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function u7(e){this.exit(e)}function c7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function d7(e){this.exit(e)}function f7(){return"["}function VT(e,t,n,i){const a=n.createTracker(i);let r=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return r+=a.move(n.safe(n.associationId(e),{after:"]",before:r})),o(),s(),r+=a.move("]"),r}function h7(){return{enter:{gfmFootnoteCallString:a7,gfmFootnoteCall:r7,gfmFootnoteDefinitionLabelString:s7,gfmFootnoteDefinition:o7},exit:{gfmFootnoteCallString:l7,gfmFootnoteCall:u7,gfmFootnoteDefinitionLabelString:c7,gfmFootnoteDefinition:d7}}}function p7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:VT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,r,s){const o=r.createTracker(s);let l=o.move("[^");const u=r.enter("footnoteDefinition"),c=r.enter("label");return l+=o.move(r.safe(r.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
267
+ `:" ")+r.indentLines(r.containerFlow(i,o.current()),t?YT:m7))),u(),l}}function m7(e,t,n){return t===0?e:YT(e,t,n)}function YT(e,t,n){return(n?"":" ")+e}const g7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qT.peek=_7;function b7(){return{canContainEols:["delete"],enter:{strikethrough:y7},exit:{strikethrough:x7}}}function v7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g7}],handlers:{delete:qT}}}function y7(e){this.enter({type:"delete",children:[]},e)}function x7(e){this.exit(e)}function qT(e,t,n,i){const a=n.createTracker(i),r=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),r(),s}function _7(){return"~"}function E7(e){return e.length}function T7(e,t){const n=t||{},i=(n.align||[]).concat(),a=n.stringLength||E7,r=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],E=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const y=w7(e[c][m]);if(n.alignDelimiters!==!1){const x=a(y);E[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}b.push(y)}s[c]=b,o[c]=E}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)r[d]=GT(i[d]);else{const b=GT(i);for(;++d<u;)r[d]=b}d=-1;const f=[],h=[];for(;++d<u;){const b=r[d];let E="",m="";b===99?(E=":",m=":"):b===108?E=":":b===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[d]-E.length-m.length);const x=E+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=E.length+y+m.length,y>l[d]&&(l[d]=y),h[d]=y),f[d]=x}s.splice(1,0,f),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],E=o[c];d=-1;const m=[];for(;++d<u;){const y=b[d]||"";let x="",T="";if(n.alignDelimiters!==!1){const S=l[d]-(E[d]||0),A=r[d];A===114?x=" ".repeat(S):A===99?S%2?(x=" ".repeat(S/2+.5),T=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),T=x):T=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(y),n.alignDelimiters!==!1&&m.push(T),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
268
268
  `)}function w7(e){return e==null?"":String(e)}function GT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const $T={}.hasOwnProperty;function XT(e,t){const n=t||{};function i(a,...r){let s=i.invalid;const o=i.handlers;if(a&&$T.call(a,e)){const l=String(a[e]);s=$T.call(o,l)?o[l]:i.unknown}if(s)return s.call(this,a,...r)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function S7(e,t,n,i){const a=n.enter("blockquote"),r=n.createTracker(i);r.move("> "),r.shift(2);const s=n.indentLines(n.containerFlow(e,r.current()),A7);return a(),s}function A7(e,t,n){return">"+(n?"":" ")+e}function C7(e,t){return KT(e,t.inConstruct,!0)&&!KT(e,t.notInConstruct,!1)}function KT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function QT(e,t,n,i){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
269
269
  `&&C7(n.stack,n.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
270
270
  `}function k7(e,t){const n=String(e);let i=n.indexOf(t),a=i,r=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++r>s&&(s=r):r=1,a=i+t.length,i=n.indexOf(t,a);return s}function O7(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function N7(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function R7(e,t,n,i){const a=N7(n),r=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(O7(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(r,D7);return d(),f}const o=n.createTracker(i),l=a.repeat(Math.max(k7(r,a)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
@@ -277,17 +277,17 @@ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
277
277
  `+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
278
278
  `))+1))}const s="#".repeat(a),o=n.enter("headingAtx"),l=n.enter("phrasing");r.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
279
279
  `,...r.current()});return/^[\t ]/.test(u)&&(u=Vl(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}e2.peek=U7;function e2(e){return e.value||""}function U7(){return"<"}t2.peek=H7;function t2(e,t,n,i){const a=Gm(n),r=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${r}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function H7(){return"!"}n2.peek=F7;function n2(e,t,n,i){const a=e.referenceType,r=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,r(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function F7(){return"!"}i2.peek=V7;function i2(e,t,n){let i=e.value||"",a="`",r=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++r<n.unsafe.length;){const s=n.unsafe[r],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return a+i+a}function V7(){return"`"}function a2(e,t){const n=$m(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}r2.peek=Y7;function r2(e,t,n,i){const a=Gm(n),r=a==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let o,l;if(a2(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${r}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function Y7(e,t,n){return a2(e,n)?"<":"["}s2.peek=q7;function s2(e,t,n,i){const a=e.referenceType,r=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,r(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function q7(){return"["}function Xm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function G7(e){const t=Xm(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function $7(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function o2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function X7(e,t,n,i){const a=n.enter("list"),r=n.bulletCurrent;let s=e.ordered?$7(n):Xm(n);const o=e.ordered?s==="."?")":".":G7(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),o2(n)===s&&c){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=r,a(),u}function K7(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Q7(e,t,n,i){const a=K7(n);let r=n.bulletCurrent||Xm(n);t&&t.type==="list"&&t.ordered&&(r=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+r);let s=r.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(i);o.move(r+" ".repeat(s-r.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(d,f,h){return f?(h?"":" ".repeat(s))+d:(h?r:r+" ".repeat(s-r.length))+d}}function W7(e,t,n,i){const a=n.enter("paragraph"),r=n.enter("phrasing"),s=n.containerPhrasing(e,i);return r(),a(),s}const Z7=wd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function J7(e,t,n,i){return(e.children.some(function(s){return Z7(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function eB(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}l2.peek=tB;function l2(e,t,n,i){const a=eB(n),r=n.enter("strong"),s=n.createTracker(i),o=s.move(a+a);let l=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Ad(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Vl(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ad(i.after.charCodeAt(0),d,a);f.inside&&(l=l.slice(0,-1)+Vl(d));const h=s.move(a+a);return r(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+h}function tB(e,t,n){return n.options.strong||"*"}function nB(e,t,n,i){return n.safe(e.value,i)}function iB(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function aB(e,t,n){const i=(o2(n)+(n.options.ruleSpaces?" ":"")).repeat(iB(n));return n.options.ruleSpaces?i.slice(0,-1):i}const u2={blockquote:S7,break:QT,code:R7,definition:M7,emphasis:WT,hardBreak:QT,heading:j7,html:e2,image:t2,imageReference:n2,inlineCode:i2,link:r2,linkReference:s2,list:X7,listItem:Q7,paragraph:W7,root:J7,strong:l2,text:nB,thematicBreak:aB},c2=document.createElement("i");function Km(e){const t="&"+e+";";c2.innerHTML=t;const n=c2.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function d2(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const rB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sB(e){return e.replace(rB,oB)}function oB(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),r=a===120||a===88;return d2(n.slice(r?2:1),r?16:10)}return Km(n)||e}function lB(){return{enter:{table:uB,tableData:f2,tableHeader:f2,tableRow:dB},exit:{codeText:fB,table:cB,tableData:Qm,tableHeader:Qm,tableRow:Qm}}}function uB(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function cB(e){this.exit(e),this.data.inTable=void 0}function dB(e){this.enter({type:"tableRow",children:[]},e)}function Qm(e){this.exit(e)}function f2(e){this.enter({type:"tableCell",children:[]},e)}function fB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,hB));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function hB(e,t){return t==="|"?t:e}function pB(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,r=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
280
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(h,g,b,_){return u(c(h,b,_),h.align)}function o(h,g,b,_){const m=d(h,b,_),y=u([m]);return y.slice(0,y.indexOf(`
281
- `))}function l(h,g,b,_){const m=b.enter("tableCell"),y=b.enter("phrasing"),x=b.containerPhrasing(h,{..._,before:r,after:r});return y(),m(),x}function u(h,g){return T7(h,{align:g,alignDelimiters:i,padding:n,stringLength:a})}function c(h,g,b){const _=h.children;let m=-1;const y=[],x=g.enter("table");for(;++m<_.length;)y[m]=d(_[m],g,b);return x(),y}function d(h,g,b){const _=h.children;let m=-1;const y=[],x=g.enter("tableRow");for(;++m<_.length;)y[m]=l(_[m],h,g,b);return x(),y}function f(h,g,b){let _=u2.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function mB(){return{exit:{taskListCheckValueChecked:h2,taskListCheckValueUnchecked:h2,paragraph:bB}}}function gB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vB}}}function h2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const a=t.children;let r=-1,s;for(;++r<a.length;){const o=a[r];if(o.type==="paragraph"){s=o;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function vB(e,t,n,i){const a=e.children[0],r=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);r&&o.move(s);let l=u2.listItem(e,t,n,{...i,...o.current()});return r&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function yB(){return[G9(),h7(),b7(),lB(),mB()]}function xB(e){return{extensions:[$9(),p7(e),v7(),pB(e),gB()]}}function jn(e,t,n,i){const a=e.length;let r=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);r<i.length;)s=i.slice(r,r+1e4),s.unshift(t,0),e.splice(...s),r+=1e4,t+=1e4}function si(e,t){return e.length>0?(jn(e,e.length,0,t),e):t}const p2={}.hasOwnProperty;function m2(e){const t={};let n=-1;for(;++n<e.length;)_B(t,e[n]);return t}function _B(e,t){let n;for(n in t){const a=(p2.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let s;if(r)for(s in r){p2.call(a,s)||(a[s]=[]);const o=r[s];EB(a[s],Array.isArray(o)?o:o?[o]:[])}}}function EB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);jn(e,0,0,i)}const TB={tokenize:OB,partial:!0},g2={tokenize:NB,partial:!0},b2={tokenize:RB,partial:!0},v2={tokenize:DB,partial:!0},wB={tokenize:MB,partial:!0},y2={name:"wwwAutolink",tokenize:CB,previous:_2},x2={name:"protocolAutolink",tokenize:kB,previous:E2},pa={name:"emailAutolink",tokenize:AB,previous:T2},qi={};function SB(){return{text:qi}}let $r=48;for(;$r<123;)qi[$r]=pa,$r++,$r===58?$r=65:$r===91&&($r=97);qi[43]=pa,qi[45]=pa,qi[46]=pa,qi[95]=pa,qi[72]=[pa,x2],qi[104]=[pa,x2],qi[87]=[pa,y2],qi[119]=[pa,y2];function AB(e,t,n){const i=this;let a,r;return s;function s(d){return!Wm(d)||!T2.call(i,i.previous)||Zm(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Wm(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(wB,c,u)(d):d===45||d===95||sn(d)?(r=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),a=!0,l}function c(d){return r&&a&&bn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function CB(e,t,n){const i=this;return a;function a(s){return s!==87&&s!==119||!_2.call(i,i.previous)||Zm(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TB,e.attempt(g2,e.attempt(b2,r),n),n)(s))}function r(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function kB(e,t,n){const i=this;let a="",r=!1;return s;function s(d){return(d===72||d===104)&&E2.call(i,i.previous)&&!Zm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(bn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),r?u:(r=!0,l)):n(d)}function u(d){return d===null||Ed(d)||Xe(d)||Gr(d)||Td(d)?n(d):e.attempt(g2,e.attempt(b2,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function OB(e,t,n){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),r):n(s)}function r(s){return s===null?n(s):t(s)}}function NB(e,t,n){let i,a,r;return s;function s(u){return u===46||u===95?e.check(v2,l,o)(u):u===null||Xe(u)||Gr(u)||u!==45&&Td(u)?l(u):(r=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!r?n(u):t(u)}}function RB(e,t){let n=0,i=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&i<n?r(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(v2,t,r)(s):s===null||Xe(s)||Gr(s)?t(s):(e.consume(s),a)}function r(s){return s===41&&i++,e.consume(s),a}}function DB(e,t,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),r):o===93?(e.consume(o),a):o===60||o===null||Xe(o)||Gr(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Xe(o)||Gr(o)?t(o):i(o)}function r(o){return bn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):bn(o)?(e.consume(o),s):n(o)}}function MB(e,t,n){return i;function i(r){return e.consume(r),a}function a(r){return sn(r)?n(r):t(r)}}function _2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function E2(e){return!bn(e)}function T2(e){return!(e===47||Wm(e))}function Wm(e){return e===43||e===45||e===46||e===95||sn(e)}function Zm(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Js(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const r=e.charCodeAt(n);let s="";if(r===37&&sn(e.charCodeAt(n+1))&&sn(e.charCodeAt(n+2)))a=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(s=String.fromCharCode(r));else if(r>55295&&r<57344){const o=e.charCodeAt(n+1);r<56320&&o>56319&&o<57344?(s=String.fromCharCode(r,o),a=1):s="�"}else s=String.fromCharCode(r);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function kd(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const r=e[a].resolveAll;r&&!i.includes(r)&&(t=r(t,n),i.push(r))}return t}const Jm={name:"attention",resolveAll:LB,tokenize:IB};function LB(e,t){let n=-1,i,a,r,s,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};w2(d,-l),w2(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},r={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[n][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=si(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=si(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",r,t]]),u=si(u,kd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=si(u,[["exit",r,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=si(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jn(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function IB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Zs(i);let r;return s;function s(l){return r=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===r)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Zs(l),d=!c||c===2&&a||n.includes(l),f=!a||a===2&&c||n.includes(i);return u._open=!!(r===42?d:d&&(a||!f)),u._close=!!(r===42?f:f&&(c||!d)),t(l)}}function w2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PB={name:"autolink",tokenize:BB};function BB(e,t,n){let i=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(h){return bn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||sn(h)?(i=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),i=0,l):(h===43||h===45||h===46||sn(h))&&i++<32?(e.consume(h),o):(i=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ed(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):N9(h)?(e.consume(h),u):n(h)}function c(h){return sn(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),i=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||sn(h))&&i++<63){const g=h===45?f:d;return e.consume(h),g}return n(h)}}function Le(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let r=0;return s;function s(l){return Ne(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ne(l)&&r++<a?(e.consume(l),o):(e.exit(n),t(l))}}const Yl={partial:!0,tokenize:zB};function zB(e,t,n){return i;function i(r){return Ne(r)?Le(e,a,"linePrefix")(r):a(r)}function a(r){return r===null||fe(r)?t(r):n(r)}}const S2={continuation:{tokenize:UB},exit:HB,name:"blockQuote",tokenize:jB};function jB(e,t,n){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),r}return n(s)}function r(s){return Ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function UB(e,t,n){const i=this;return a;function a(s){return Ne(s)?Le(e,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):r(s)}function r(s){return e.attempt(S2,t,n)(s)}}function HB(e){e.exit("blockQuote")}const A2={name:"characterEscape",tokenize:FB};function FB(e,t,n){return i;function i(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),a}function a(r){return D9(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}const C2={name:"characterReference",tokenize:VB};function VB(e,t,n){const i=this;let a=0,r,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,s=sn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=R9,c):(e.enter("characterReferenceValue"),r=7,s=Hm,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return s===sn&&!Km(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<r?(e.consume(d),c):n(d)}}const k2={partial:!0,tokenize:qB},O2={concrete:!0,name:"codeFenced",tokenize:YB};function YB(e,t,n){const i=this,a={partial:!0,tokenize:S};let r=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=i.events[i.events.length-1];return r=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Le(e,d,"whitespace")(A):d(A))}function d(A){return A===null||fe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(k2,b,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function h(A){return A===null||fe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),g)}function b(A){return e.attempt(a,T,_)(A)}function _(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return r>0&&Ne(A)?Le(e,y,"linePrefix",r+1)(A):y(A)}function y(A){return A===null||fe(A)?e.check(k2,b,T)(A):(e.enter("codeFlowValue"),x(A))}function x(A){return A===null||fe(A)?(e.exit("codeFlowValue"),y(A)):(e.consume(A),x)}function T(A){return e.exit("codeFenced"),t(A)}function S(A,D,L){let B=0;return O;function O(Q){return A.enter("lineEnding"),A.consume(Q),A.exit("lineEnding"),Y}function Y(Q){return A.enter("codeFencedFence"),Ne(Q)?Le(A,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===o?(A.enter("codeFencedFenceSequence"),ae(Q)):L(Q)}function ae(Q){return Q===o?(B++,A.consume(Q),ae):B>=s?(A.exit("codeFencedFenceSequence"),Ne(Q)?Le(A,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||fe(Q)?(A.exit("codeFencedFence"),D(Q)):L(Q)}}}function qB(e,t,n){const i=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const e0={name:"codeIndented",tokenize:$B},GB={partial:!0,tokenize:XB};function $B(e,t,n){const i=this;return a;function a(u){return e.enter("codeIndented"),Le(e,r,"linePrefix",5)(u)}function r(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(GB,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function XB(e,t,n){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Le(e,r,"linePrefix",5)(s)}function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?a(s):n(s)}}const KB={name:"codeText",previous:WB,resolve:QB,tokenize:ZB};function QB(e){let t=e.length-4,n=3,i,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function WB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZB(e,t,n){let i=0,a,r;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(r=e.enter("codeTextSequence"),a=0,c(d)):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||fe(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",u(d))}}class JB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const a=n||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&ql(this.left,i),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function N2(e){const t={};let n=-1,i,a,r,s,o,l,u;const c=new JB(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,r=0,r<l.length&&l[r][1].type==="lineEndingBlank"&&(r+=2),r<l.length&&l[r][1].type==="content"))for(;++r<l.length&&l[r][1].type!=="content";)l[r][1].type==="chunkText"&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,ez(c,n)),n=t[n],u=!0);else if(i[1]._container){for(r=n,a=void 0;r--;)if(s=c.get(r),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=r);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(i),c.splice(a,n-a+1,o))}}return jn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ez(e,t){const n=e.get(t)[1],i=e.get(t)[2];let a=t-1;const r=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,d,f=-1,h=n,g=0,b=0;const _=[b];for(;h;){for(;e.get(++a)[1]!==h;);r.push(a),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(b=f+1,_.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):_.pop(),f=_.length;f--;){const m=o.slice(_[f],_[f+1]),y=r.pop();l.push([y,y+m.length-1]),e.splice(y,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const tz={resolve:iz,tokenize:az},nz={partial:!0,tokenize:rz};function iz(e){return N2(e),e}function az(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?r(o):fe(o)?e.check(nz,s,r)(o):(e.consume(o),a)}function r(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function rz(e,t,n){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Le(e,r,"linePrefix")}function r(s){if(s===null||fe(s))return n(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function R2(e,t,n,i,a,r,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(a),e.enter(r),e.consume(m),e.exit(r),f):m===null||m===32||m===41||Ed(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function f(m){return m===62?(e.enter(r),e.consume(m),e.exit(r),e.exit(a),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),f(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function b(m){return!c&&(m===null||m===41||Xe(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,b):m===41?(e.consume(m),c--,b):m===null||m===32||m===40||Ed(m)?n(m):(e.consume(m),m===92?_:b)}function _(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function D2(e,t,n,i,a,r){const s=this;let o=0,l;return u;function u(h){return e.enter(i),e.enter(a),e.consume(h),e.exit(a),e.enter(r),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(r),e.enter(a),e.consume(h),e.exit(a),e.exit(i),t):fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||fe(h)||o++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ne(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function M2(e,t,n,i,a,r){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(i),t):(e.enter(r),u(f))}function u(f){return f===s?(e.exit(r),l(s)):f===null?n(f):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||fe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Gl(e,t){let n;return i;function i(a){return fe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):Ne(a)?Le(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const sz={name:"definition",tokenize:lz},oz={partial:!0,tokenize:uz};function lz(e,t,n){const i=this;let a;return r;function r(h){return e.enter("definition"),s(h)}function s(h){return D2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return a=Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Xe(h)?Gl(e,u)(h):u(h)}function u(h){return R2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(oz,d,d)(h)}function d(h){return Ne(h)?Le(e,f,"whitespace")(h):f(h)}function f(h){return h===null||fe(h)?(e.exit("definition"),i.parser.defined.push(a),t(h)):n(h)}}function uz(e,t,n){return i;function i(o){return Xe(o)?Gl(e,a)(o):n(o)}function a(o){return M2(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return Ne(o)?Le(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const cz={name:"hardBreakEscape",tokenize:dz};function dz(e,t,n){return i;function i(r){return e.enter("hardBreakEscape"),e.consume(r),a}function a(r){return fe(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}const fz={name:"headingAtx",resolve:hz,tokenize:pz};function hz(e,t){let n=e.length-2,i=3,a,r;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},r={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},jn(e,i,n-i+1,[["enter",a,t],["enter",r,t],["exit",r,t],["exit",a,t]])),e}function pz(e,t,n){let i=0;return a;function a(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||Xe(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ne(c)?Le(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const mz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],L2=["pre","script","style","textarea"],gz={concrete:!0,name:"htmlFlow",resolveTo:yz,tokenize:xz},bz={partial:!0,tokenize:Ez},vz={partial:!0,tokenize:_z};function yz(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xz(e,t,n){const i=this;let a,r,s,o,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),r=!0,b):M===63?(e.consume(M),a=3,i.interrupt?t:N):bn(M)?(e.consume(M),s=String.fromCharCode(M),_):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,o=0,g):bn(M)?(e.consume(M),a=4,i.interrupt?t:N):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:N):n(M)}function g(M){const Be="CDATA[";return M===Be.charCodeAt(o++)?(e.consume(M),o===Be.length?i.interrupt?t:U:g):n(M)}function b(M){return bn(M)?(e.consume(M),s=String.fromCharCode(M),_):n(M)}function _(M){if(M===null||M===47||M===62||Xe(M)){const Be=M===47,ge=s.toLowerCase();return!Be&&!r&&L2.includes(ge)?(a=1,i.interrupt?t(M):U(M)):mz.includes(s.toLowerCase())?(a=6,Be?(e.consume(M),m):i.interrupt?t(M):U(M)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):r?y(M):x(M))}return M===45||sn(M)?(e.consume(M),s+=String.fromCharCode(M),_):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:U):n(M)}function y(M){return Ne(M)?(e.consume(M),y):O(M)}function x(M){return M===47?(e.consume(M),O):M===58||M===95||bn(M)?(e.consume(M),T):Ne(M)?(e.consume(M),x):O(M)}function T(M){return M===45||M===46||M===58||M===95||sn(M)?(e.consume(M),T):S(M)}function S(M){return M===61?(e.consume(M),A):Ne(M)?(e.consume(M),S):x(M)}function A(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,D):Ne(M)?(e.consume(M),A):L(M)}function D(M){return M===l?(e.consume(M),l=null,B):M===null||fe(M)?n(M):(e.consume(M),D)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Xe(M)?S(M):(e.consume(M),L)}function B(M){return M===47||M===62||Ne(M)?x(M):n(M)}function O(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||fe(M)?U(M):Ne(M)?(e.consume(M),Y):n(M)}function U(M){return M===45&&a===2?(e.consume(M),F):M===60&&a===1?(e.consume(M),V):M===62&&a===4?(e.consume(M),be):M===63&&a===3?(e.consume(M),N):M===93&&a===5?(e.consume(M),te):fe(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(bz,tt,ae)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),ae(M)):(e.consume(M),U)}function ae(M){return e.check(vz,ee,tt)(M)}function ee(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||fe(M)?ae(M):(e.enter("htmlFlowData"),U(M))}function F(M){return M===45?(e.consume(M),N):U(M)}function V(M){return M===47?(e.consume(M),s="",H):U(M)}function H(M){if(M===62){const Be=s.toLowerCase();return L2.includes(Be)?(e.consume(M),be):U(M)}return bn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):U(M)}function te(M){return M===93?(e.consume(M),N):U(M)}function N(M){return M===62?(e.consume(M),be):M===45&&a===2?(e.consume(M),N):U(M)}function be(M){return M===null||fe(M)?(e.exit("htmlFlowData"),tt(M)):(e.consume(M),be)}function tt(M){return e.exit("htmlFlow"),t(M)}}function _z(e,t,n){const i=this;return a;function a(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):n(s)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Ez(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Yl,t,n)}}const Tz={name:"htmlText",tokenize:wz};function wz(e,t,n){const i=this;let a,r,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),S):N===63?(e.consume(N),x):bn(N)?(e.consume(N),L):n(N)}function u(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),r=0,g):bn(N)?(e.consume(N),y):n(N)}function c(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):fe(N)?(s=d,V(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?F(N):N===45?f(N):d(N)}function g(N){const be="CDATA[";return N===be.charCodeAt(r++)?(e.consume(N),r===be.length?b:g):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),_):fe(N)?(s=b,V(N)):(e.consume(N),b)}function _(N){return N===93?(e.consume(N),m):b(N)}function m(N){return N===62?F(N):N===93?(e.consume(N),m):b(N)}function y(N){return N===null||N===62?F(N):fe(N)?(s=y,V(N)):(e.consume(N),y)}function x(N){return N===null?n(N):N===63?(e.consume(N),T):fe(N)?(s=x,V(N)):(e.consume(N),x)}function T(N){return N===62?F(N):x(N)}function S(N){return bn(N)?(e.consume(N),A):n(N)}function A(N){return N===45||sn(N)?(e.consume(N),A):D(N)}function D(N){return fe(N)?(s=D,V(N)):Ne(N)?(e.consume(N),D):F(N)}function L(N){return N===45||sn(N)?(e.consume(N),L):N===47||N===62||Xe(N)?B(N):n(N)}function B(N){return N===47?(e.consume(N),F):N===58||N===95||bn(N)?(e.consume(N),O):fe(N)?(s=B,V(N)):Ne(N)?(e.consume(N),B):F(N)}function O(N){return N===45||N===46||N===58||N===95||sn(N)?(e.consume(N),O):Y(N)}function Y(N){return N===61?(e.consume(N),U):fe(N)?(s=Y,V(N)):Ne(N)?(e.consume(N),Y):B(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),a=N,ae):fe(N)?(s=U,V(N)):Ne(N)?(e.consume(N),U):(e.consume(N),ee)}function ae(N){return N===a?(e.consume(N),a=void 0,Q):N===null?n(N):fe(N)?(s=ae,V(N)):(e.consume(N),ae)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Xe(N)?B(N):(e.consume(N),ee)}function Q(N){return N===47||N===62||Xe(N)?B(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return Ne(N)?Le(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const t0={name:"labelEnd",resolveAll:kz,resolveTo:Oz,tokenize:Nz},Sz={tokenize:Rz},Az={tokenize:Dz},Cz={tokenize:Mz};function kz(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==n.length&&jn(e,0,e.length,n),e}function Oz(e,t){let n=e.length,i=0,a,r,s,o;for(;n--;)if(a=e[n][1],r){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(r=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[r+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=si(o,e.slice(r+1,r+i+3)),o=si(o,[["enter",c,t]]),o=si(o,kd(t.parser.constructs.insideSpan.null,e.slice(r+i+4,s-3),t)),o=si(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=si(o,e.slice(s+1)),o=si(o,[["exit",l,t]]),jn(e,r,e.length,o),e}function Nz(e,t,n){const i=this;let a=i.events.length,r,s;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){r=i.events[a][1];break}return o;function o(f){return r?r._inactive?d(f):(s=i.parser.defined.includes(Ci(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Sz,c,s?c:d)(f):f===91?e.attempt(Az,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Cz,c,d)(f)}function c(f){return t(f)}function d(f){return r._balanced=!0,n(f)}}function Rz(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Xe(d)?Gl(e,r)(d):r(d)}function r(d){return d===41?c(d):R2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xe(d)?Gl(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?M2(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?Gl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Dz(e,t,n){const i=this;return a;function a(o){return D2.call(i,e,r,s,"reference","referenceMarker","referenceString")(o)}function r(o){return i.parser.defined.includes(Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Mz(e,t,n){return i;function i(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),a}function a(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}const Lz={name:"labelStartImage",resolveAll:t0.resolveAll,tokenize:Iz};function Iz(e,t,n){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),r}function r(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const Pz={name:"labelStartLink",resolveAll:t0.resolveAll,tokenize:Bz};function Bz(e,t,n){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),r}function r(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const n0={name:"lineEnding",tokenize:zz};function zz(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Le(e,t,"linePrefix")}}const Od={name:"thematicBreak",tokenize:jz};function jz(e,t,n){let i=0,a;return r;function r(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Ne(u)?Le(e,o,"whitespace")(u):o(u))}}const Tn={continuation:{tokenize:Vz},exit:qz,name:"list",tokenize:Fz},Uz={partial:!0,tokenize:Gz},Hz={partial:!0,tokenize:Yz};function Fz(e,t,n){const i=this,a=i.events[i.events.length-1];let r=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(h){const g=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Hm(h)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Od,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Hm(h)&&++s<10?(e.consume(h),l):(!i.interrupt||s<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Yl,i.interrupt?n:c,e.attempt(Uz,f,d))}function c(h){return i.containerState.initialBlankLine=!0,r++,f(h)}function d(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=r+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Vz(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,a,r);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Le(e,t,"listItemIndent",i.containerState.size+1)(o)}function r(o){return i.containerState.furtherBlankLines||!Ne(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Hz,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Le(e,e.attempt(Tn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Yz(e,t,n){const i=this;return Le(e,a,"listItemIndent",i.containerState.size+1);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(r):n(r)}}function qz(e){e.exit(this.containerState.type)}function Gz(e,t,n){const i=this;return Le(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(r){const s=i.events[i.events.length-1];return!Ne(r)&&s&&s[1].type==="listItemPrefixWhitespace"?t(r):n(r)}}const I2={name:"setextUnderline",resolveTo:$z,tokenize:Xz};function $z(e,t){let n=e.length,i,a,r;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!r&&e[n][1].type==="definition"&&(r=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",s,t]),e.splice(r+1,0,["exit",e[i][1],t]),e[i][1].end={...e[r][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function Xz(e,t,n){const i=this;let a;return r;function r(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ne(u)?Le(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Kz={tokenize:ij,partial:!0};function Qz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ej,continuation:{tokenize:tj},exit:nj}},text:{91:{name:"gfmFootnoteCall",tokenize:Jz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wz,resolveTo:Zz}}}}function Wz(e,t,n){const i=this;let a=i.events.length;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Ci(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!r.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Zz(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},o=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...o),e}function Jz(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(r>999||d===93&&!s||d===null||d===91||Xe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Ci(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Xe(d)||(s=!0),r++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),r++,u):u(d)}}function ej(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||Xe(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return r=Ci(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Xe(g)||(o=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(r)||a.push(r),Le(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function tj(e,t,n){return e.check(Yl,t,e.attempt(Kz,t,n))}function nj(e){e.exit("gfmFootnoteDefinition")}function ij(e,t,n){const i=this;return Le(e,a,"gfmFootnoteDefinitionIndent",5);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(r):n(r)}}function aj(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:r,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],h=o.parser.constructs.insideSpan.null;h&&jn(f,f.length,0,kd(h,s.slice(u+1,l),o)),jn(f,f.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),jn(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function r(s,o,l){const u=this.previous,c=this.events;let d=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Zs(u);if(g===126)return d>1?l(g):(s.consume(g),d++,h);if(d<2&&!n)return l(g);const _=s.exit("strikethroughSequenceTemporary"),m=Zs(g);return _._open=!m||m===2&&!!b,_._close=!b||b===2&&!!m,o(g)}}}class rj{constructor(){this.map=[]}add(t,n,i){sj(this,t,n,i)}consume(t){if(this.map.sort(function(r,s){return r[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const r of a)t.push(r);a=i.pop()}this.map.length=0}}function sj(e,t,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}function oj(e,t){let n=!1;const i=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function lj(){return{flow:{null:{name:"table",tokenize:uj,resolveAll:cj}}}}function uj(e,t,n){const i=this;let a=0,r=0,s;return o;function o(O){let Y=i.events.length-1;for(;Y>-1;){const ee=i.events[Y][1].type;if(ee==="lineEnding"||ee==="linePrefix")Y--;else break}const U=Y>-1?i.events[Y][1].type:null,ae=U==="tableHead"||U==="tableRow"?A:l;return ae===A&&i.parser.lazy[i.now().line]?n(O):ae(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,r+=1),c(O)}function c(O){return O===null?n(O):fe(O)?r>1?(r=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ne(O)?Le(e,c,"whitespace")(O):(r+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Xe(O)?(e.exit("data"),c(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Ne(O)?Le(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?_(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):S(O)}function b(O){return Ne(O)?Le(e,_,"whitespace")(O):_(O)}function _(O){return O===58?(r+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),m):O===45?(r+=1,m(O)):O===null||fe(O)?T(O):S(O)}function m(O){return O===45?(e.enter("tableDelimiterFiller"),y(O)):S(O)}function y(O){return O===45?(e.consume(O),y):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(O))}function x(O){return Ne(O)?Le(e,T,"whitespace")(O):T(O)}function T(O){return O===124?g(O):O===null||fe(O)?!s||a!==r?S(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):S(O)}function S(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||fe(O)?(e.exit("tableRow"),t(O)):Ne(O)?Le(e,D,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Xe(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?B:L)}function B(O){return O===92||O===124?(e.consume(O),L):L(O)}}function cj(e,t){let n=-1,i=!0,a=0,r=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,d;const f=new rj;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(P2(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,d=void 0,r=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,t]])),a=g.type==="tableDelimiterRow"?2:c?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d),r=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d)),r=s,s=[r[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,r[1]!==0?(s[0]=s[1],d=Nd(f,t,r,a,n,d)):s[1]!==0&&(d=Nd(f,t,s,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&P2(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=oj(t.events,n))}return e}function Nd(e,t,n,i,a,r){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(r.end=Object.assign({},eo(t.events,n[0])),e.add(n[0],0,[["exit",r,t]]));const l=eo(t.events,n[1]);if(r={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",r,t]]),n[2]!==0){const u=eo(t.events,n[2]),c=eo(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(r.end=Object.assign({},eo(t.events,a)),e.add(a,0,[["exit",r,t]]),r=void 0),r}function P2(e,t,n,i,a){const r=[],s=eo(t.events,n);a&&(a.end=Object.assign({},s),r.push(["exit",a,t])),i.end=Object.assign({},s),r.push(["exit",i,t]),e.add(n+1,0,r)}function eo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const dj={name:"tasklistCheck",tokenize:hj};function fj(){return{text:{91:dj}}}function hj(e,t,n){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),r)}function r(l){return Xe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return fe(l)?t(l):Ne(l)?e.check({tokenize:pj},t,n)(l):n(l)}}function pj(e,t,n){return Le(e,i,"whitespace");function i(a){return a===null?n(a):t(a)}}function mj(e){return m2([SB(),Qz(),aj(e),lj(),fj()])}const gj={};function B2(e){const t=this,n=e||gj,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(mj(n)),r.push(yB()),s.push(xB(n))}function z2(e){const t=[],n=String(e||"");let i=n.indexOf(","),a=0,r=!1;for(;!r;){i===-1&&(i=n.length,r=!0);const s=n.slice(a,i).trim();(s||!r)&&t.push(s),a=i+1,i=n.indexOf(",",a)}return t}function j2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yj={};function U2(e,t){return(yj.jsx?vj:bj).test(e)}const xj=/[ \t\n\f\r]/g;function _j(e){return typeof e=="object"?e.type==="text"?H2(e.value):!1:H2(e)}function H2(e){return e.replace(xj,"")===""}let $l=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$l.prototype.normal={},$l.prototype.property={},$l.prototype.space=void 0;function F2(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new $l(n,i,t)}function Xl(e){return e.toLowerCase()}let wn=class{constructor(t,n){this.attribute=n,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let Ej=0;const we=Xr(),kt=Xr(),i0=Xr(),W=Xr(),Ze=Xr(),to=Xr(),Un=Xr();function Xr(){return 2**++Ej}const a0=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:kt,commaOrSpaceSeparated:Un,commaSeparated:to,number:W,overloadedBoolean:i0,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),r0=Object.keys(a0);let s0=class extends wn{constructor(t,n,i,a){let r=-1;if(super(t,n),V2(this,"space",a),typeof i=="number")for(;++r<r0.length;){const s=r0[r];V2(this,r0[r],(i&a0[s])===a0[s])}}};s0.prototype.defined=!0;function V2(e,t,n){n&&(e[t]=n)}function no(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const r=new s0(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(r.mustUseProperty=!0),t[i]=r,n[Xl(i)]=i,n[Xl(r.attribute)]=i}return new $l(t,n,e.space)}const Y2=no({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Ze,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:W,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Ze,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:kt,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function q2(e,t){return t in e?e[t]:t}function G2(e,t){return q2(e,t.toLowerCase())}const Tj=no({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:to,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Ze,autoFocus:we,autoPlay:we,blocking:Ze,capture:null,charSet:null,checked:we,cite:null,className:Ze,cols:W,colSpan:null,content:null,contentEditable:kt,controls:we,controlsList:Ze,coords:W|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:i0,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Ze,height:W,hidden:i0,high:W,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:we,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:W,pattern:null,ping:Ze,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Ze,required:we,reversed:we,rows:W,rowSpan:W,sandbox:Ze,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:kt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:G2}),wj=no({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Un,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:to,g2:to,glyphName:to,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Un,rev:Un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Un,requiredFeatures:Un,requiredFonts:Un,requiredFormats:Un,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Un,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:q2}),$2=no({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),X2=no({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:G2}),K2=no({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Aj=/[A-Z]/g,Q2=/-[a-z]/g,Cj=/^data[-\w.:]+$/i;function o0(e,t){const n=Xl(t);let i=t,a=wn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cj.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(Q2,Oj);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!Q2.test(r)){let s=r.replace(Aj,kj);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=s0}return new a(i,t)}function kj(e){return"-"+e.toLowerCase()}function Oj(e){return e.charAt(1).toUpperCase()}const Rd=F2([Y2,Tj,$2,X2,K2],"html"),io=F2([Y2,wj,$2,X2,K2],"svg");function W2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Z2(e){return e.join(" ").trim()}var l0={},J2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nj=/\n/g,Rj=/^\s*/,Dj=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mj=/^:\s*/,Lj=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ij=/^[;\s]*/,Pj=/^\s+|\s+$/g,Bj=`
282
- `,ew="/",tw="*",Kr="",zj="comment",jj="declaration",Uj=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function a(g){var b=g.match(Nj);b&&(n+=b.length);var _=g.lastIndexOf(Bj);i=~_?g.length-_:i+g.length}function r(){var g={line:n,column:i};return function(b){return b.position=new s(g),u(),b}}function s(g){this.start=g,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function o(g){var b=new Error(t.source+":"+n+":"+i+": "+g);if(b.reason=g,b.filename=t.source,b.line=n,b.column=i,b.source=e,!t.silent)throw b}function l(g){var b=g.exec(e);if(b){var _=b[0];return a(_),e=e.slice(_.length),b}}function u(){l(Rj)}function c(g){var b;for(g=g||[];b=d();)b!==!1&&g.push(b);return g}function d(){var g=r();if(!(ew!=e.charAt(0)||tw!=e.charAt(1))){for(var b=2;Kr!=e.charAt(b)&&(tw!=e.charAt(b)||ew!=e.charAt(b+1));)++b;if(b+=2,Kr===e.charAt(b-1))return o("End of comment missing");var _=e.slice(2,b-2);return i+=2,a(_),e=e.slice(b),i+=2,g({type:zj,comment:_})}}function f(){var g=r(),b=l(Dj);if(b){if(d(),!l(Mj))return o("property missing ':'");var _=l(Lj),m=g({type:jj,property:nw(b[0].replace(J2,Kr)),value:_?nw(_[0].replace(J2,Kr)):Kr});return l(Ij),m}}function h(){var g=[];c(g);for(var b;b=f();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function nw(e){return e?e.replace(Pj,Kr):Kr}var Hj=ja&&ja.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=Vj;var Fj=Hj(Uj);function Vj(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Fj.default)(e),a=typeof t=="function";return i.forEach(function(r){if(r.type==="declaration"){var s=r.property,o=r.value;a?t(s,o,r):o&&(n=n||{},n[s]=o)}}),n}var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var Yj=/^--[a-zA-Z0-9_-]+$/,qj=/-([a-z])/g,Gj=/^[^-]+$/,$j=/^-(webkit|moz|ms|o|khtml)-/,Xj=/^-(ms)-/,Kj=function(e){return!e||Gj.test(e)||Yj.test(e)},Qj=function(e,t){return t.toUpperCase()},iw=function(e,t){return"".concat(t,"-")},Wj=function(e,t){return t===void 0&&(t={}),Kj(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Xj,iw):e=e.replace($j,iw),e.replace(qj,Qj))};Dd.camelCase=Wj;var Zj=ja&&ja.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Jj=Zj(l0),eU=Dd;function u0(e,t){var n={};return!e||typeof e!="string"||(0,Jj.default)(e,function(i,a){i&&a&&(n[(0,eU.camelCase)(i,t)]=a)}),n}u0.default=u0;var tU=u0;const nU=hl(tU),Md=aw("end"),Gi=aw("start");function aw(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function iU(e){const t=Gi(e),n=Md(e);if(t&&n)return{start:t,end:n}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rw(e.position):"start"in e||"end"in e?rw(e):"line"in e||"column"in e?c0(e):""}function c0(e){return sw(e&&e.line)+":"+sw(e&&e.column)}function rw(e){return c0(e&&e.start)+"-"+c0(e&&e.end)}function sw(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",r={},s=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r={...n}),typeof t=="string"?a=t:!r.cause&&t&&(s=!0,a=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?r.ruleId=i:(r.source=i.slice(0,l),r.ruleId=i.slice(l+1))}if(!r.place&&r.ancestors&&r.ancestors){const l=r.ancestors[r.ancestors.length-1];l&&(r.place=l.position)}const o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Kl(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=s&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const d0={}.hasOwnProperty,aU=new Map,rU=/[A-Z]/g,sU=new Set(["table","tbody","thead","tfoot","tr"]),oU=new Set(["td","th"]),ow="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=gU(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=mU(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?io:Rd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=lw(a,e,void 0);return r&&typeof r!="string"?r:a.create(e,a.Fragment,{children:r||void 0},void 0)}function lw(e,t,n){if(t.type==="element")return uU(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fU(e,t,n);if(t.type==="mdxjsEsm")return dU(e,t);if(t.type==="root")return hU(e,t,n);if(t.type==="text")return pU(e,t)}function uU(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=io,e.schema=a),e.ancestors.push(t);const r=cw(e,t.tagName,!1),s=bU(e,t);let o=h0(e,t);return sU.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!_j(l):!0})),uw(e,s,r,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function cU(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ql(e,t.position)}function dU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ql(e,t.position)}function fU(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=io,e.schema=a),e.ancestors.push(t);const r=t.name===null?e.Fragment:cw(e,t.name,!0),s=vU(e,t),o=h0(e,t);return uw(e,s,r,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function hU(e,t,n){const i={};return f0(i,h0(e,t)),e.create(t,e.Fragment,i,n)}function pU(e,t){return t.value}function uw(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function f0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function mU(e,t,n){return i;function i(a,r,s,o){const u=Array.isArray(s.children)?n:t;return o?u(r,s,o):u(r,s)}}function gU(e,t){return n;function n(i,a,r,s){const o=Array.isArray(r.children),l=Gi(i);return t(a,r,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function bU(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&d0.call(t.properties,a)){const r=yU(e,a,t.properties[a]);if(r){const[s,o]=r;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oU.has(t.tagName)?i=o:n[s]=o}}if(i){const r=n.style||(n.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function vU(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const r=i.data.estree.body[0];r.type;const s=r.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ql(e,t.position);else{const a=i.name;let r;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,r=e.evaluater.evaluateExpression(o.expression)}else Ql(e,t.position);else r=i.value===null?!0:i.value;n[a]=r}return n}function h0(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:aU;for(;++i<t.children.length;){const r=t.children[i];let s;if(e.passKeys){const l=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=lw(e,r,s);o!==void 0&&n.push(o)}return n}function yU(e,t,n){const i=o0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?j2(n):Z2(n)),i.property==="style"){let a=typeof n=="object"?n:xU(e,String(n));return e.stylePropertyNameCase==="css"&&(a=_U(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Sj[i.property]||i.property:i.attribute,n]}}function xU(e,t){try{return nU(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,a=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=ow+"#cannot-parse-style-attribute",a}}function cw(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let r=-1,s;for(;++r<a.length;){const o=U2(a[r])?{type:"Identifier",name:a[r]}:{type:"Literal",value:a[r]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}i=s}else i=U2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return d0.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ql(e)}function Ql(e,t){const n=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ow+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _U(e){const t={};let n;for(n in e)d0.call(e,n)&&(t[EU(n)]=e[n]);return t}function EU(e){let t=e.replace(rU,TU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TU(e){return"-"+e.toLowerCase()}const p0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},wU={tokenize:SU};function SU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Le(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),r(o)}function r(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return fe(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),s)}}const AU={tokenize:CU},dw={tokenize:kU};function CU(e){const t=this,n=[];let i=0,a,r,s;return o;function o(x){if(i<n.length){const T=n[i];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&y();const T=t.events.length;let S=T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){A=t.events[S][1].end;break}m(i);let D=T;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return jn(t.events,S+1,0,t.events.slice(T)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!a)return f(x);if(a.currentConstruct&&a.currentConstruct.concrete)return g(x);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(dw,c,d)(x)}function c(x){return a&&y(),m(i),f(x)}function d(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(dw,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){a&&y(),m(0),e.consume(x);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:r}),b(x)}function b(x){if(x===null){_(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return fe(x)?(e.consume(x),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),b)}function _(x,T){const S=t.sliceStream(x);if(T&&S.push(null),x.previous=r,r&&(r.next=x),r=x,a.defineSkip(x.start),a.write(S),t.parser.lazy[x.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<s&&(!a.events[A][1].end||a.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,B,O;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){O=t.events[L][1].end;break}B=!0}for(m(i),A=D;A<t.events.length;)t.events[A][1].end={...O},A++;jn(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(x){let T=n.length;for(;T-- >x;){const S=n[T];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function y(){a.write([null]),r=void 0,a=void 0,t.containerState._closeFlow=void 0}}function kU(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const OU={tokenize:NU};function NU(e){const t=this,n=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,a,Le(e,e.attempt(this.parser.constructs.flow,a,e.attempt(tz,a)),"linePrefix")));return n;function i(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RU={resolveAll:hw()},DU=fw("string"),MU=fw("text");function fw(e){return{resolveAll:hw(e==="text"?LU:void 0),tokenize:t};function t(n){const i=this,a=this.parser.constructs[e],r=n.attempt(a,s,o);return s;function s(c){return u(c)?r(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),r(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function hw(e){return t;function t(n,i){let a=-1,r;for(;++a<=n.length;)r===void 0?n[a]&&n[a][1].type==="data"&&(r=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==r+2&&(n[r][1].end=n[a-1][1].end,n.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(n,i):n}}function LU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],a=t.sliceStream(i);let r=a.length,s=-1,o=0,l;for(;r--;){const u=a[r];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){r++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?s:i.start._bufferIndex+s,_index:i.start._index+r,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const IU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:sz},disable:{null:[]},document:{42:Tn,43:Tn,45:Tn,48:Tn,49:Tn,50:Tn,51:Tn,52:Tn,53:Tn,54:Tn,55:Tn,56:Tn,57:Tn,62:S2},flow:{35:fz,42:Od,45:[I2,Od],60:gz,61:I2,95:Od,96:O2,126:O2},flowInitial:{[-2]:e0,[-1]:e0,32:e0},insideSpan:{null:[Jm,RU]},string:{38:C2,92:A2},text:{[-5]:n0,[-4]:n0,[-3]:n0,33:Lz,38:C2,42:Jm,60:[PB,Tz],91:Pz,92:[cz,A2],93:t0,95:Jm,96:KB}},Symbol.toStringTag,{value:"Module"}));function PU(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},r=[];let s=[],o=[];const l={attempt:D(S),check:D(A),consume:y,enter:x,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&r.push(t),u;function d(Y){return s=si(s,Y),_(),s[s.length-1]!==null?[]:(L(t,0),u.events=kd(r,u.events,u),u.events)}function f(Y,U){return zU(h(Y),U)}function h(Y){return BU(s,Y)}function g(){const{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}}function b(Y){a[Y.line]=Y.column,O()}function _(){let Y;for(;i._index<s.length;){const U=s[i._index];if(typeof U=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<U.length;)m(U.charCodeAt(i._bufferIndex));else m(U)}}function m(Y){c=c(Y)}function y(Y){fe(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,O()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=Y}function x(Y,U){const ae=U||{};return ae.type=Y,ae.start=g(),u.events.push(["enter",ae,u]),o.push(ae),ae}function T(Y){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function S(Y,U){L(Y,U.from)}function A(Y,U){U.restore()}function D(Y,U){return ae;function ae(ee,Q,F){let V,H,te,N;return Array.isArray(ee)?tt(ee):"tokenize"in ee?tt([ee]):be(ee);function be(ze){return dn;function dn(We){const $t=We!==null&&ze[We],Mt=We!==null&&ze.null,Ut=[...Array.isArray($t)?$t:$t?[$t]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return tt(Ut)(We)}}function tt(ze){return V=ze,H=0,ze.length===0?F:M(ze[H])}function M(ze){return dn;function dn(We){return N=B(),te=ze,ze.partial||(u.currentConstruct=ze),ze.name&&u.parser.constructs.disable.null.includes(ze.name)?ge():ze.tokenize.call(U?Object.assign(Object.create(u),U):u,l,Be,ge)(We)}}function Be(ze){return Y(te,N),Q}function ge(ze){return N.restore(),++H<V.length?M(V[H]):F}}}function L(Y,U){Y.resolveAll&&!r.includes(Y)&&r.push(Y),Y.resolve&&jn(u.events,U,u.events.length-U,Y.resolve(u.events.slice(U),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),U=u.previous,ae=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=U,u.currentConstruct=ae,u.events.length=ee,o=Q,O()}}function O(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function BU(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,r=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(i,r)];else{if(s=e.slice(n,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}r>0&&s.push(e[a].slice(0,r))}return s}function zU(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const r=e[n];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
280
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(h,g,b,E){return u(c(h,b,E),h.align)}function o(h,g,b,E){const m=d(h,b,E),y=u([m]);return y.slice(0,y.indexOf(`
281
+ `))}function l(h,g,b,E){const m=b.enter("tableCell"),y=b.enter("phrasing"),x=b.containerPhrasing(h,{...E,before:r,after:r});return y(),m(),x}function u(h,g){return T7(h,{align:g,alignDelimiters:i,padding:n,stringLength:a})}function c(h,g,b){const E=h.children;let m=-1;const y=[],x=g.enter("table");for(;++m<E.length;)y[m]=d(E[m],g,b);return x(),y}function d(h,g,b){const E=h.children;let m=-1;const y=[],x=g.enter("tableRow");for(;++m<E.length;)y[m]=l(E[m],h,g,b);return x(),y}function f(h,g,b){let E=u2.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function mB(){return{exit:{taskListCheckValueChecked:h2,taskListCheckValueUnchecked:h2,paragraph:bB}}}function gB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:vB}}}function h2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const a=t.children;let r=-1,s;for(;++r<a.length;){const o=a[r];if(o.type==="paragraph"){s=o;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function vB(e,t,n,i){const a=e.children[0],r=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);r&&o.move(s);let l=u2.listItem(e,t,n,{...i,...o.current()});return r&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function yB(){return[G9(),h7(),b7(),lB(),mB()]}function xB(e){return{extensions:[$9(),p7(e),v7(),pB(e),gB()]}}function jn(e,t,n,i){const a=e.length;let r=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);r<i.length;)s=i.slice(r,r+1e4),s.unshift(t,0),e.splice(...s),r+=1e4,t+=1e4}function si(e,t){return e.length>0?(jn(e,e.length,0,t),e):t}const p2={}.hasOwnProperty;function m2(e){const t={};let n=-1;for(;++n<e.length;)_B(t,e[n]);return t}function _B(e,t){let n;for(n in t){const a=(p2.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let s;if(r)for(s in r){p2.call(a,s)||(a[s]=[]);const o=r[s];EB(a[s],Array.isArray(o)?o:o?[o]:[])}}}function EB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);jn(e,0,0,i)}const TB={tokenize:OB,partial:!0},g2={tokenize:NB,partial:!0},b2={tokenize:RB,partial:!0},v2={tokenize:DB,partial:!0},wB={tokenize:MB,partial:!0},y2={name:"wwwAutolink",tokenize:CB,previous:_2},x2={name:"protocolAutolink",tokenize:kB,previous:E2},pa={name:"emailAutolink",tokenize:AB,previous:T2},qi={};function SB(){return{text:qi}}let $r=48;for(;$r<123;)qi[$r]=pa,$r++,$r===58?$r=65:$r===91&&($r=97);qi[43]=pa,qi[45]=pa,qi[46]=pa,qi[95]=pa,qi[72]=[pa,x2],qi[104]=[pa,x2],qi[87]=[pa,y2],qi[119]=[pa,y2];function AB(e,t,n){const i=this;let a,r;return s;function s(d){return!Wm(d)||!T2.call(i,i.previous)||Zm(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Wm(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(wB,c,u)(d):d===45||d===95||sn(d)?(r=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),a=!0,l}function c(d){return r&&a&&bn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function CB(e,t,n){const i=this;return a;function a(s){return s!==87&&s!==119||!_2.call(i,i.previous)||Zm(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(TB,e.attempt(g2,e.attempt(b2,r),n),n)(s))}function r(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function kB(e,t,n){const i=this;let a="",r=!1;return s;function s(d){return(d===72||d===104)&&E2.call(i,i.previous)&&!Zm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(bn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),r?u:(r=!0,l)):n(d)}function u(d){return d===null||Ed(d)||Xe(d)||Gr(d)||Td(d)?n(d):e.attempt(g2,e.attempt(b2,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function OB(e,t,n){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),r):n(s)}function r(s){return s===null?n(s):t(s)}}function NB(e,t,n){let i,a,r;return s;function s(u){return u===46||u===95?e.check(v2,l,o)(u):u===null||Xe(u)||Gr(u)||u!==45&&Td(u)?l(u):(r=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!r?n(u):t(u)}}function RB(e,t){let n=0,i=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&i<n?r(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(v2,t,r)(s):s===null||Xe(s)||Gr(s)?t(s):(e.consume(s),a)}function r(s){return s===41&&i++,e.consume(s),a}}function DB(e,t,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),r):o===93?(e.consume(o),a):o===60||o===null||Xe(o)||Gr(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Xe(o)||Gr(o)?t(o):i(o)}function r(o){return bn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):bn(o)?(e.consume(o),s):n(o)}}function MB(e,t,n){return i;function i(r){return e.consume(r),a}function a(r){return sn(r)?n(r):t(r)}}function _2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function E2(e){return!bn(e)}function T2(e){return!(e===47||Wm(e))}function Wm(e){return e===43||e===45||e===46||e===95||sn(e)}function Zm(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Js(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const r=e.charCodeAt(n);let s="";if(r===37&&sn(e.charCodeAt(n+1))&&sn(e.charCodeAt(n+2)))a=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(s=String.fromCharCode(r));else if(r>55295&&r<57344){const o=e.charCodeAt(n+1);r<56320&&o>56319&&o<57344?(s=String.fromCharCode(r,o),a=1):s="�"}else s=String.fromCharCode(r);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function kd(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const r=e[a].resolveAll;r&&!i.includes(r)&&(t=r(t,n),i.push(r))}return t}const Jm={name:"attention",resolveAll:LB,tokenize:IB};function LB(e,t){let n=-1,i,a,r,s,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};w2(d,-l),w2(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},r={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[n][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=si(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=si(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",r,t]]),u=si(u,kd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=si(u,[["exit",r,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=si(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jn(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function IB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Zs(i);let r;return s;function s(l){return r=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===r)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Zs(l),d=!c||c===2&&a||n.includes(l),f=!a||a===2&&c||n.includes(i);return u._open=!!(r===42?d:d&&(a||!f)),u._close=!!(r===42?f:f&&(c||!d)),t(l)}}function w2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PB={name:"autolink",tokenize:BB};function BB(e,t,n){let i=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(h){return bn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||sn(h)?(i=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),i=0,l):(h===43||h===45||h===46||sn(h))&&i++<32?(e.consume(h),o):(i=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ed(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):N9(h)?(e.consume(h),u):n(h)}function c(h){return sn(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),i=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||sn(h))&&i++<63){const g=h===45?f:d;return e.consume(h),g}return n(h)}}function Le(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let r=0;return s;function s(l){return Ne(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ne(l)&&r++<a?(e.consume(l),o):(e.exit(n),t(l))}}const Yl={partial:!0,tokenize:zB};function zB(e,t,n){return i;function i(r){return Ne(r)?Le(e,a,"linePrefix")(r):a(r)}function a(r){return r===null||fe(r)?t(r):n(r)}}const S2={continuation:{tokenize:UB},exit:HB,name:"blockQuote",tokenize:jB};function jB(e,t,n){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),r}return n(s)}function r(s){return Ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function UB(e,t,n){const i=this;return a;function a(s){return Ne(s)?Le(e,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):r(s)}function r(s){return e.attempt(S2,t,n)(s)}}function HB(e){e.exit("blockQuote")}const A2={name:"characterEscape",tokenize:FB};function FB(e,t,n){return i;function i(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),a}function a(r){return D9(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}const C2={name:"characterReference",tokenize:VB};function VB(e,t,n){const i=this;let a=0,r,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,s=sn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=R9,c):(e.enter("characterReferenceValue"),r=7,s=Hm,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return s===sn&&!Km(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<r?(e.consume(d),c):n(d)}}const k2={partial:!0,tokenize:qB},O2={concrete:!0,name:"codeFenced",tokenize:YB};function YB(e,t,n){const i=this,a={partial:!0,tokenize:S};let r=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=i.events[i.events.length-1];return r=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Le(e,d,"whitespace")(A):d(A))}function d(A){return A===null||fe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(k2,b,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function h(A){return A===null||fe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),g)}function b(A){return e.attempt(a,T,E)(A)}function E(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return r>0&&Ne(A)?Le(e,y,"linePrefix",r+1)(A):y(A)}function y(A){return A===null||fe(A)?e.check(k2,b,T)(A):(e.enter("codeFlowValue"),x(A))}function x(A){return A===null||fe(A)?(e.exit("codeFlowValue"),y(A)):(e.consume(A),x)}function T(A){return e.exit("codeFenced"),t(A)}function S(A,D,L){let B=0;return O;function O(Q){return A.enter("lineEnding"),A.consume(Q),A.exit("lineEnding"),Y}function Y(Q){return A.enter("codeFencedFence"),Ne(Q)?Le(A,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===o?(A.enter("codeFencedFenceSequence"),ae(Q)):L(Q)}function ae(Q){return Q===o?(B++,A.consume(Q),ae):B>=s?(A.exit("codeFencedFenceSequence"),Ne(Q)?Le(A,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||fe(Q)?(A.exit("codeFencedFence"),D(Q)):L(Q)}}}function qB(e,t,n){const i=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const e0={name:"codeIndented",tokenize:$B},GB={partial:!0,tokenize:XB};function $B(e,t,n){const i=this;return a;function a(u){return e.enter("codeIndented"),Le(e,r,"linePrefix",5)(u)}function r(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):fe(u)?e.attempt(GB,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||fe(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function XB(e,t,n){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Le(e,r,"linePrefix",5)(s)}function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?a(s):n(s)}}const KB={name:"codeText",previous:WB,resolve:QB,tokenize:ZB};function QB(e){let t=e.length-4,n=3,i,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function WB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ZB(e,t,n){let i=0,a,r;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(r=e.enter("codeTextSequence"),a=0,c(d)):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||fe(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",u(d))}}class JB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const a=n||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&ql(this.left,i),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function N2(e){const t={};let n=-1,i,a,r,s,o,l,u;const c=new JB(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,r=0,r<l.length&&l[r][1].type==="lineEndingBlank"&&(r+=2),r<l.length&&l[r][1].type==="content"))for(;++r<l.length&&l[r][1].type!=="content";)l[r][1].type==="chunkText"&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,ez(c,n)),n=t[n],u=!0);else if(i[1]._container){for(r=n,a=void 0;r--;)if(s=c.get(r),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=r);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(i),c.splice(a,n-a+1,o))}}return jn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function ez(e,t){const n=e.get(t)[1],i=e.get(t)[2];let a=t-1;const r=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,d,f=-1,h=n,g=0,b=0;const E=[b];for(;h;){for(;e.get(++a)[1]!==h;);r.push(a),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(b=f+1,E.push(b),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):E.pop(),f=E.length;f--;){const m=o.slice(E[f],E[f+1]),y=r.pop();l.push([y,y+m.length-1]),e.splice(y,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const tz={resolve:iz,tokenize:az},nz={partial:!0,tokenize:rz};function iz(e){return N2(e),e}function az(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?r(o):fe(o)?e.check(nz,s,r)(o):(e.consume(o),a)}function r(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function rz(e,t,n){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Le(e,r,"linePrefix")}function r(s){if(s===null||fe(s))return n(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function R2(e,t,n,i,a,r,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(a),e.enter(r),e.consume(m),e.exit(r),f):m===null||m===32||m===41||Ed(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function f(m){return m===62?(e.enter(r),e.consume(m),e.exit(r),e.exit(a),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),f(m)):m===null||m===60||fe(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function b(m){return!c&&(m===null||m===41||Xe(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,b):m===41?(e.consume(m),c--,b):m===null||m===32||m===40||Ed(m)?n(m):(e.consume(m),m===92?E:b)}function E(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function D2(e,t,n,i,a,r){const s=this;let o=0,l;return u;function u(h){return e.enter(i),e.enter(a),e.consume(h),e.exit(a),e.enter(r),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(r),e.enter(a),e.consume(h),e.exit(a),e.exit(i),t):fe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||fe(h)||o++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ne(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function M2(e,t,n,i,a,r){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(i),t):(e.enter(r),u(f))}function u(f){return f===s?(e.exit(r),l(s)):f===null?n(f):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||fe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Gl(e,t){let n;return i;function i(a){return fe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):Ne(a)?Le(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const sz={name:"definition",tokenize:lz},oz={partial:!0,tokenize:uz};function lz(e,t,n){const i=this;let a;return r;function r(h){return e.enter("definition"),s(h)}function s(h){return D2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return a=Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Xe(h)?Gl(e,u)(h):u(h)}function u(h){return R2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(oz,d,d)(h)}function d(h){return Ne(h)?Le(e,f,"whitespace")(h):f(h)}function f(h){return h===null||fe(h)?(e.exit("definition"),i.parser.defined.push(a),t(h)):n(h)}}function uz(e,t,n){return i;function i(o){return Xe(o)?Gl(e,a)(o):n(o)}function a(o){return M2(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return Ne(o)?Le(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const cz={name:"hardBreakEscape",tokenize:dz};function dz(e,t,n){return i;function i(r){return e.enter("hardBreakEscape"),e.consume(r),a}function a(r){return fe(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}const fz={name:"headingAtx",resolve:hz,tokenize:pz};function hz(e,t){let n=e.length-2,i=3,a,r;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},r={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},jn(e,i,n-i+1,[["enter",a,t],["enter",r,t],["exit",r,t],["exit",a,t]])),e}function pz(e,t,n){let i=0;return a;function a(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||Xe(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ne(c)?Le(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const mz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],L2=["pre","script","style","textarea"],gz={concrete:!0,name:"htmlFlow",resolveTo:yz,tokenize:xz},bz={partial:!0,tokenize:Ez},vz={partial:!0,tokenize:_z};function yz(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xz(e,t,n){const i=this;let a,r,s,o,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),r=!0,b):M===63?(e.consume(M),a=3,i.interrupt?t:N):bn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,o=0,g):bn(M)?(e.consume(M),a=4,i.interrupt?t:N):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:N):n(M)}function g(M){const Be="CDATA[";return M===Be.charCodeAt(o++)?(e.consume(M),o===Be.length?i.interrupt?t:U:g):n(M)}function b(M){return bn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function E(M){if(M===null||M===47||M===62||Xe(M)){const Be=M===47,ge=s.toLowerCase();return!Be&&!r&&L2.includes(ge)?(a=1,i.interrupt?t(M):U(M)):mz.includes(s.toLowerCase())?(a=6,Be?(e.consume(M),m):i.interrupt?t(M):U(M)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):r?y(M):x(M))}return M===45||sn(M)?(e.consume(M),s+=String.fromCharCode(M),E):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:U):n(M)}function y(M){return Ne(M)?(e.consume(M),y):O(M)}function x(M){return M===47?(e.consume(M),O):M===58||M===95||bn(M)?(e.consume(M),T):Ne(M)?(e.consume(M),x):O(M)}function T(M){return M===45||M===46||M===58||M===95||sn(M)?(e.consume(M),T):S(M)}function S(M){return M===61?(e.consume(M),A):Ne(M)?(e.consume(M),S):x(M)}function A(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,D):Ne(M)?(e.consume(M),A):L(M)}function D(M){return M===l?(e.consume(M),l=null,B):M===null||fe(M)?n(M):(e.consume(M),D)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Xe(M)?S(M):(e.consume(M),L)}function B(M){return M===47||M===62||Ne(M)?x(M):n(M)}function O(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||fe(M)?U(M):Ne(M)?(e.consume(M),Y):n(M)}function U(M){return M===45&&a===2?(e.consume(M),F):M===60&&a===1?(e.consume(M),V):M===62&&a===4?(e.consume(M),be):M===63&&a===3?(e.consume(M),N):M===93&&a===5?(e.consume(M),te):fe(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(bz,tt,ae)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),ae(M)):(e.consume(M),U)}function ae(M){return e.check(vz,ee,tt)(M)}function ee(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||fe(M)?ae(M):(e.enter("htmlFlowData"),U(M))}function F(M){return M===45?(e.consume(M),N):U(M)}function V(M){return M===47?(e.consume(M),s="",H):U(M)}function H(M){if(M===62){const Be=s.toLowerCase();return L2.includes(Be)?(e.consume(M),be):U(M)}return bn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):U(M)}function te(M){return M===93?(e.consume(M),N):U(M)}function N(M){return M===62?(e.consume(M),be):M===45&&a===2?(e.consume(M),N):U(M)}function be(M){return M===null||fe(M)?(e.exit("htmlFlowData"),tt(M)):(e.consume(M),be)}function tt(M){return e.exit("htmlFlow"),t(M)}}function _z(e,t,n){const i=this;return a;function a(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):n(s)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Ez(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Yl,t,n)}}const Tz={name:"htmlText",tokenize:wz};function wz(e,t,n){const i=this;let a,r,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),S):N===63?(e.consume(N),x):bn(N)?(e.consume(N),L):n(N)}function u(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),r=0,g):bn(N)?(e.consume(N),y):n(N)}function c(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):fe(N)?(s=d,V(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?F(N):N===45?f(N):d(N)}function g(N){const be="CDATA[";return N===be.charCodeAt(r++)?(e.consume(N),r===be.length?b:g):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),E):fe(N)?(s=b,V(N)):(e.consume(N),b)}function E(N){return N===93?(e.consume(N),m):b(N)}function m(N){return N===62?F(N):N===93?(e.consume(N),m):b(N)}function y(N){return N===null||N===62?F(N):fe(N)?(s=y,V(N)):(e.consume(N),y)}function x(N){return N===null?n(N):N===63?(e.consume(N),T):fe(N)?(s=x,V(N)):(e.consume(N),x)}function T(N){return N===62?F(N):x(N)}function S(N){return bn(N)?(e.consume(N),A):n(N)}function A(N){return N===45||sn(N)?(e.consume(N),A):D(N)}function D(N){return fe(N)?(s=D,V(N)):Ne(N)?(e.consume(N),D):F(N)}function L(N){return N===45||sn(N)?(e.consume(N),L):N===47||N===62||Xe(N)?B(N):n(N)}function B(N){return N===47?(e.consume(N),F):N===58||N===95||bn(N)?(e.consume(N),O):fe(N)?(s=B,V(N)):Ne(N)?(e.consume(N),B):F(N)}function O(N){return N===45||N===46||N===58||N===95||sn(N)?(e.consume(N),O):Y(N)}function Y(N){return N===61?(e.consume(N),U):fe(N)?(s=Y,V(N)):Ne(N)?(e.consume(N),Y):B(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),a=N,ae):fe(N)?(s=U,V(N)):Ne(N)?(e.consume(N),U):(e.consume(N),ee)}function ae(N){return N===a?(e.consume(N),a=void 0,Q):N===null?n(N):fe(N)?(s=ae,V(N)):(e.consume(N),ae)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Xe(N)?B(N):(e.consume(N),ee)}function Q(N){return N===47||N===62||Xe(N)?B(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return Ne(N)?Le(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const t0={name:"labelEnd",resolveAll:kz,resolveTo:Oz,tokenize:Nz},Sz={tokenize:Rz},Az={tokenize:Dz},Cz={tokenize:Mz};function kz(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==n.length&&jn(e,0,e.length,n),e}function Oz(e,t){let n=e.length,i=0,a,r,s,o;for(;n--;)if(a=e[n][1],r){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(r=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[r+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=si(o,e.slice(r+1,r+i+3)),o=si(o,[["enter",c,t]]),o=si(o,kd(t.parser.constructs.insideSpan.null,e.slice(r+i+4,s-3),t)),o=si(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=si(o,e.slice(s+1)),o=si(o,[["exit",l,t]]),jn(e,r,e.length,o),e}function Nz(e,t,n){const i=this;let a=i.events.length,r,s;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){r=i.events[a][1];break}return o;function o(f){return r?r._inactive?d(f):(s=i.parser.defined.includes(Ci(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Sz,c,s?c:d)(f):f===91?e.attempt(Az,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Cz,c,d)(f)}function c(f){return t(f)}function d(f){return r._balanced=!0,n(f)}}function Rz(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Xe(d)?Gl(e,r)(d):r(d)}function r(d){return d===41?c(d):R2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xe(d)?Gl(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?M2(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?Gl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Dz(e,t,n){const i=this;return a;function a(o){return D2.call(i,e,r,s,"reference","referenceMarker","referenceString")(o)}function r(o){return i.parser.defined.includes(Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Mz(e,t,n){return i;function i(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),a}function a(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}const Lz={name:"labelStartImage",resolveAll:t0.resolveAll,tokenize:Iz};function Iz(e,t,n){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),r}function r(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const Pz={name:"labelStartLink",resolveAll:t0.resolveAll,tokenize:Bz};function Bz(e,t,n){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),r}function r(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const n0={name:"lineEnding",tokenize:zz};function zz(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Le(e,t,"linePrefix")}}const Od={name:"thematicBreak",tokenize:jz};function jz(e,t,n){let i=0,a;return r;function r(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||fe(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Ne(u)?Le(e,o,"whitespace")(u):o(u))}}const Tn={continuation:{tokenize:Vz},exit:qz,name:"list",tokenize:Fz},Uz={partial:!0,tokenize:Gz},Hz={partial:!0,tokenize:Yz};function Fz(e,t,n){const i=this,a=i.events[i.events.length-1];let r=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(h){const g=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Hm(h)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Od,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Hm(h)&&++s<10?(e.consume(h),l):(!i.interrupt||s<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Yl,i.interrupt?n:c,e.attempt(Uz,f,d))}function c(h){return i.containerState.initialBlankLine=!0,r++,f(h)}function d(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=r+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Vz(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,a,r);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Le(e,t,"listItemIndent",i.containerState.size+1)(o)}function r(o){return i.containerState.furtherBlankLines||!Ne(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Hz,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Le(e,e.attempt(Tn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Yz(e,t,n){const i=this;return Le(e,a,"listItemIndent",i.containerState.size+1);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(r):n(r)}}function qz(e){e.exit(this.containerState.type)}function Gz(e,t,n){const i=this;return Le(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(r){const s=i.events[i.events.length-1];return!Ne(r)&&s&&s[1].type==="listItemPrefixWhitespace"?t(r):n(r)}}const I2={name:"setextUnderline",resolveTo:$z,tokenize:Xz};function $z(e,t){let n=e.length,i,a,r;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!r&&e[n][1].type==="definition"&&(r=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",s,t]),e.splice(r+1,0,["exit",e[i][1],t]),e[i][1].end={...e[r][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function Xz(e,t,n){const i=this;let a;return r;function r(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ne(u)?Le(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||fe(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Kz={tokenize:ij,partial:!0};function Qz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ej,continuation:{tokenize:tj},exit:nj}},text:{91:{name:"gfmFootnoteCall",tokenize:Jz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wz,resolveTo:Zz}}}}function Wz(e,t,n){const i=this;let a=i.events.length;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Ci(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!r.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Zz(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},o=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...o),e}function Jz(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(r>999||d===93&&!s||d===null||d===91||Xe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Ci(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Xe(d)||(s=!0),r++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),r++,u):u(d)}}function ej(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||Xe(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return r=Ci(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Xe(g)||(o=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(r)||a.push(r),Le(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function tj(e,t,n){return e.check(Yl,t,e.attempt(Kz,t,n))}function nj(e){e.exit("gfmFootnoteDefinition")}function ij(e,t,n){const i=this;return Le(e,a,"gfmFootnoteDefinitionIndent",5);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(r):n(r)}}function aj(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:r,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],h=o.parser.constructs.insideSpan.null;h&&jn(f,f.length,0,kd(h,s.slice(u+1,l),o)),jn(f,f.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),jn(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function r(s,o,l){const u=this.previous,c=this.events;let d=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Zs(u);if(g===126)return d>1?l(g):(s.consume(g),d++,h);if(d<2&&!n)return l(g);const E=s.exit("strikethroughSequenceTemporary"),m=Zs(g);return E._open=!m||m===2&&!!b,E._close=!b||b===2&&!!m,o(g)}}}class rj{constructor(){this.map=[]}add(t,n,i){sj(this,t,n,i)}consume(t){if(this.map.sort(function(r,s){return r[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const r of a)t.push(r);a=i.pop()}this.map.length=0}}function sj(e,t,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}function oj(e,t){let n=!1;const i=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function lj(){return{flow:{null:{name:"table",tokenize:uj,resolveAll:cj}}}}function uj(e,t,n){const i=this;let a=0,r=0,s;return o;function o(O){let Y=i.events.length-1;for(;Y>-1;){const ee=i.events[Y][1].type;if(ee==="lineEnding"||ee==="linePrefix")Y--;else break}const U=Y>-1?i.events[Y][1].type:null,ae=U==="tableHead"||U==="tableRow"?A:l;return ae===A&&i.parser.lazy[i.now().line]?n(O):ae(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,r+=1),c(O)}function c(O){return O===null?n(O):fe(O)?r>1?(r=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ne(O)?Le(e,c,"whitespace")(O):(r+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Xe(O)?(e.exit("data"),c(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Ne(O)?Le(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?E(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):S(O)}function b(O){return Ne(O)?Le(e,E,"whitespace")(O):E(O)}function E(O){return O===58?(r+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),m):O===45?(r+=1,m(O)):O===null||fe(O)?T(O):S(O)}function m(O){return O===45?(e.enter("tableDelimiterFiller"),y(O)):S(O)}function y(O){return O===45?(e.consume(O),y):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(O))}function x(O){return Ne(O)?Le(e,T,"whitespace")(O):T(O)}function T(O){return O===124?g(O):O===null||fe(O)?!s||a!==r?S(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):S(O)}function S(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||fe(O)?(e.exit("tableRow"),t(O)):Ne(O)?Le(e,D,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Xe(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?B:L)}function B(O){return O===92||O===124?(e.consume(O),L):L(O)}}function cj(e,t){let n=-1,i=!0,a=0,r=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,d;const f=new rj;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(P2(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,d=void 0,r=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,t]])),a=g.type==="tableDelimiterRow"?2:c?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d),r=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d)),r=s,s=[r[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,r[1]!==0?(s[0]=s[1],d=Nd(f,t,r,a,n,d)):s[1]!==0&&(d=Nd(f,t,s,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&P2(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=oj(t.events,n))}return e}function Nd(e,t,n,i,a,r){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(r.end=Object.assign({},eo(t.events,n[0])),e.add(n[0],0,[["exit",r,t]]));const l=eo(t.events,n[1]);if(r={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",r,t]]),n[2]!==0){const u=eo(t.events,n[2]),c=eo(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(r.end=Object.assign({},eo(t.events,a)),e.add(a,0,[["exit",r,t]]),r=void 0),r}function P2(e,t,n,i,a){const r=[],s=eo(t.events,n);a&&(a.end=Object.assign({},s),r.push(["exit",a,t])),i.end=Object.assign({},s),r.push(["exit",i,t]),e.add(n+1,0,r)}function eo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const dj={name:"tasklistCheck",tokenize:hj};function fj(){return{text:{91:dj}}}function hj(e,t,n){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),r)}function r(l){return Xe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return fe(l)?t(l):Ne(l)?e.check({tokenize:pj},t,n)(l):n(l)}}function pj(e,t,n){return Le(e,i,"whitespace");function i(a){return a===null?n(a):t(a)}}function mj(e){return m2([SB(),Qz(),aj(e),lj(),fj()])}const gj={};function B2(e){const t=this,n=e||gj,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(mj(n)),r.push(yB()),s.push(xB(n))}function z2(e){const t=[],n=String(e||"");let i=n.indexOf(","),a=0,r=!1;for(;!r;){i===-1&&(i=n.length,r=!0);const s=n.slice(a,i).trim();(s||!r)&&t.push(s),a=i+1,i=n.indexOf(",",a)}return t}function j2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yj={};function U2(e,t){return(yj.jsx?vj:bj).test(e)}const xj=/[ \t\n\f\r]/g;function _j(e){return typeof e=="object"?e.type==="text"?H2(e.value):!1:H2(e)}function H2(e){return e.replace(xj,"")===""}let $l=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$l.prototype.normal={},$l.prototype.property={},$l.prototype.space=void 0;function F2(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new $l(n,i,t)}function Xl(e){return e.toLowerCase()}let wn=class{constructor(t,n){this.attribute=n,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let Ej=0;const we=Xr(),kt=Xr(),i0=Xr(),W=Xr(),Ze=Xr(),to=Xr(),Un=Xr();function Xr(){return 2**++Ej}const a0=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:kt,commaOrSpaceSeparated:Un,commaSeparated:to,number:W,overloadedBoolean:i0,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),r0=Object.keys(a0);let s0=class extends wn{constructor(t,n,i,a){let r=-1;if(super(t,n),V2(this,"space",a),typeof i=="number")for(;++r<r0.length;){const s=r0[r];V2(this,r0[r],(i&a0[s])===a0[s])}}};s0.prototype.defined=!0;function V2(e,t,n){n&&(e[t]=n)}function no(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const r=new s0(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(r.mustUseProperty=!0),t[i]=r,n[Xl(i)]=i,n[Xl(r.attribute)]=i}return new $l(t,n,e.space)}const Y2=no({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Ze,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:W,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Ze,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:kt,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function q2(e,t){return t in e?e[t]:t}function G2(e,t){return q2(e,t.toLowerCase())}const Tj=no({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:to,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Ze,autoFocus:we,autoPlay:we,blocking:Ze,capture:null,charSet:null,checked:we,cite:null,className:Ze,cols:W,colSpan:null,content:null,contentEditable:kt,controls:we,controlsList:Ze,coords:W|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:i0,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Ze,height:W,hidden:i0,high:W,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:we,itemType:Ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:W,pattern:null,ping:Ze,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Ze,required:we,reversed:we,rows:W,rowSpan:W,sandbox:Ze,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:kt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:G2}),wj=no({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Un,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ze,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:to,g2:to,glyphName:to,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Un,rev:Un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Un,requiredFeatures:Un,requiredFonts:Un,requiredFormats:Un,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Un,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:q2}),$2=no({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),X2=no({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:G2}),K2=no({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Sj={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Aj=/[A-Z]/g,Q2=/-[a-z]/g,Cj=/^data[-\w.:]+$/i;function o0(e,t){const n=Xl(t);let i=t,a=wn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cj.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(Q2,Oj);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!Q2.test(r)){let s=r.replace(Aj,kj);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=s0}return new a(i,t)}function kj(e){return"-"+e.toLowerCase()}function Oj(e){return e.charAt(1).toUpperCase()}const Rd=F2([Y2,Tj,$2,X2,K2],"html"),io=F2([Y2,wj,$2,X2,K2],"svg");function W2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Z2(e){return e.join(" ").trim()}var l0={},J2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nj=/\n/g,Rj=/^\s*/,Dj=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Mj=/^:\s*/,Lj=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ij=/^[;\s]*/,Pj=/^\s+|\s+$/g,Bj=`
282
+ `,ew="/",tw="*",Kr="",zj="comment",jj="declaration",Uj=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function a(g){var b=g.match(Nj);b&&(n+=b.length);var E=g.lastIndexOf(Bj);i=~E?g.length-E:i+g.length}function r(){var g={line:n,column:i};return function(b){return b.position=new s(g),u(),b}}function s(g){this.start=g,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function o(g){var b=new Error(t.source+":"+n+":"+i+": "+g);if(b.reason=g,b.filename=t.source,b.line=n,b.column=i,b.source=e,!t.silent)throw b}function l(g){var b=g.exec(e);if(b){var E=b[0];return a(E),e=e.slice(E.length),b}}function u(){l(Rj)}function c(g){var b;for(g=g||[];b=d();)b!==!1&&g.push(b);return g}function d(){var g=r();if(!(ew!=e.charAt(0)||tw!=e.charAt(1))){for(var b=2;Kr!=e.charAt(b)&&(tw!=e.charAt(b)||ew!=e.charAt(b+1));)++b;if(b+=2,Kr===e.charAt(b-1))return o("End of comment missing");var E=e.slice(2,b-2);return i+=2,a(E),e=e.slice(b),i+=2,g({type:zj,comment:E})}}function f(){var g=r(),b=l(Dj);if(b){if(d(),!l(Mj))return o("property missing ':'");var E=l(Lj),m=g({type:jj,property:nw(b[0].replace(J2,Kr)),value:E?nw(E[0].replace(J2,Kr)):Kr});return l(Ij),m}}function h(){var g=[];c(g);for(var b;b=f();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function nw(e){return e?e.replace(Pj,Kr):Kr}var Hj=ja&&ja.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=Vj;var Fj=Hj(Uj);function Vj(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Fj.default)(e),a=typeof t=="function";return i.forEach(function(r){if(r.type==="declaration"){var s=r.property,o=r.value;a?t(s,o,r):o&&(n=n||{},n[s]=o)}}),n}var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var Yj=/^--[a-zA-Z0-9_-]+$/,qj=/-([a-z])/g,Gj=/^[^-]+$/,$j=/^-(webkit|moz|ms|o|khtml)-/,Xj=/^-(ms)-/,Kj=function(e){return!e||Gj.test(e)||Yj.test(e)},Qj=function(e,t){return t.toUpperCase()},iw=function(e,t){return"".concat(t,"-")},Wj=function(e,t){return t===void 0&&(t={}),Kj(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Xj,iw):e=e.replace($j,iw),e.replace(qj,Qj))};Dd.camelCase=Wj;var Zj=ja&&ja.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Jj=Zj(l0),eU=Dd;function u0(e,t){var n={};return!e||typeof e!="string"||(0,Jj.default)(e,function(i,a){i&&a&&(n[(0,eU.camelCase)(i,t)]=a)}),n}u0.default=u0;var tU=u0;const nU=hl(tU),Md=aw("end"),Gi=aw("start");function aw(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function iU(e){const t=Gi(e),n=Md(e);if(t&&n)return{start:t,end:n}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rw(e.position):"start"in e||"end"in e?rw(e):"line"in e||"column"in e?c0(e):""}function c0(e){return sw(e&&e.line)+":"+sw(e&&e.column)}function rw(e){return c0(e&&e.start)+"-"+c0(e&&e.end)}function sw(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",r={},s=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r={...n}),typeof t=="string"?a=t:!r.cause&&t&&(s=!0,a=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?r.ruleId=i:(r.source=i.slice(0,l),r.ruleId=i.slice(l+1))}if(!r.place&&r.ancestors&&r.ancestors){const l=r.ancestors[r.ancestors.length-1];l&&(r.place=l.position)}const o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Kl(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=s&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const d0={}.hasOwnProperty,aU=new Map,rU=/[A-Z]/g,sU=new Set(["table","tbody","thead","tfoot","tr"]),oU=new Set(["td","th"]),ow="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=gU(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=mU(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?io:Rd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=lw(a,e,void 0);return r&&typeof r!="string"?r:a.create(e,a.Fragment,{children:r||void 0},void 0)}function lw(e,t,n){if(t.type==="element")return uU(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return cU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fU(e,t,n);if(t.type==="mdxjsEsm")return dU(e,t);if(t.type==="root")return hU(e,t,n);if(t.type==="text")return pU(e,t)}function uU(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=io,e.schema=a),e.ancestors.push(t);const r=cw(e,t.tagName,!1),s=bU(e,t);let o=h0(e,t);return sU.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!_j(l):!0})),uw(e,s,r,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function cU(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ql(e,t.position)}function dU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ql(e,t.position)}function fU(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=io,e.schema=a),e.ancestors.push(t);const r=t.name===null?e.Fragment:cw(e,t.name,!0),s=vU(e,t),o=h0(e,t);return uw(e,s,r,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function hU(e,t,n){const i={};return f0(i,h0(e,t)),e.create(t,e.Fragment,i,n)}function pU(e,t){return t.value}function uw(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function f0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function mU(e,t,n){return i;function i(a,r,s,o){const u=Array.isArray(s.children)?n:t;return o?u(r,s,o):u(r,s)}}function gU(e,t){return n;function n(i,a,r,s){const o=Array.isArray(r.children),l=Gi(i);return t(a,r,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function bU(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&d0.call(t.properties,a)){const r=yU(e,a,t.properties[a]);if(r){const[s,o]=r;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oU.has(t.tagName)?i=o:n[s]=o}}if(i){const r=n.style||(n.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function vU(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const r=i.data.estree.body[0];r.type;const s=r.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ql(e,t.position);else{const a=i.name;let r;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,r=e.evaluater.evaluateExpression(o.expression)}else Ql(e,t.position);else r=i.value===null?!0:i.value;n[a]=r}return n}function h0(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:aU;for(;++i<t.children.length;){const r=t.children[i];let s;if(e.passKeys){const l=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=lw(e,r,s);o!==void 0&&n.push(o)}return n}function yU(e,t,n){const i=o0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?j2(n):Z2(n)),i.property==="style"){let a=typeof n=="object"?n:xU(e,String(n));return e.stylePropertyNameCase==="css"&&(a=_U(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Sj[i.property]||i.property:i.attribute,n]}}function xU(e,t){try{return nU(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,a=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=ow+"#cannot-parse-style-attribute",a}}function cw(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let r=-1,s;for(;++r<a.length;){const o=U2(a[r])?{type:"Identifier",name:a[r]}:{type:"Literal",value:a[r]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}i=s}else i=U2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return d0.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ql(e)}function Ql(e,t){const n=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ow+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _U(e){const t={};let n;for(n in e)d0.call(e,n)&&(t[EU(n)]=e[n]);return t}function EU(e){let t=e.replace(rU,TU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TU(e){return"-"+e.toLowerCase()}const p0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},wU={tokenize:SU};function SU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Le(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),r(o)}function r(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return fe(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),s)}}const AU={tokenize:CU},dw={tokenize:kU};function CU(e){const t=this,n=[];let i=0,a,r,s;return o;function o(x){if(i<n.length){const T=n[i];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&y();const T=t.events.length;let S=T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){A=t.events[S][1].end;break}m(i);let D=T;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return jn(t.events,S+1,0,t.events.slice(T)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!a)return f(x);if(a.currentConstruct&&a.currentConstruct.concrete)return g(x);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(dw,c,d)(x)}function c(x){return a&&y(),m(i),f(x)}function d(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(dw,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){a&&y(),m(0),e.consume(x);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:r}),b(x)}function b(x){if(x===null){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return fe(x)?(e.consume(x),E(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),b)}function E(x,T){const S=t.sliceStream(x);if(T&&S.push(null),x.previous=r,r&&(r.next=x),r=x,a.defineSkip(x.start),a.write(S),t.parser.lazy[x.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<s&&(!a.events[A][1].end||a.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,B,O;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){O=t.events[L][1].end;break}B=!0}for(m(i),A=D;A<t.events.length;)t.events[A][1].end={...O},A++;jn(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(x){let T=n.length;for(;T-- >x;){const S=n[T];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function y(){a.write([null]),r=void 0,a=void 0,t.containerState._closeFlow=void 0}}function kU(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const OU={tokenize:NU};function NU(e){const t=this,n=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,a,Le(e,e.attempt(this.parser.constructs.flow,a,e.attempt(tz,a)),"linePrefix")));return n;function i(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const RU={resolveAll:hw()},DU=fw("string"),MU=fw("text");function fw(e){return{resolveAll:hw(e==="text"?LU:void 0),tokenize:t};function t(n){const i=this,a=this.parser.constructs[e],r=n.attempt(a,s,o);return s;function s(c){return u(c)?r(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),r(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function hw(e){return t;function t(n,i){let a=-1,r;for(;++a<=n.length;)r===void 0?n[a]&&n[a][1].type==="data"&&(r=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==r+2&&(n[r][1].end=n[a-1][1].end,n.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(n,i):n}}function LU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],a=t.sliceStream(i);let r=a.length,s=-1,o=0,l;for(;r--;){const u=a[r];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){r++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?s:i.start._bufferIndex+s,_index:i.start._index+r,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const IU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:sz},disable:{null:[]},document:{42:Tn,43:Tn,45:Tn,48:Tn,49:Tn,50:Tn,51:Tn,52:Tn,53:Tn,54:Tn,55:Tn,56:Tn,57:Tn,62:S2},flow:{35:fz,42:Od,45:[I2,Od],60:gz,61:I2,95:Od,96:O2,126:O2},flowInitial:{[-2]:e0,[-1]:e0,32:e0},insideSpan:{null:[Jm,RU]},string:{38:C2,92:A2},text:{[-5]:n0,[-4]:n0,[-3]:n0,33:Lz,38:C2,42:Jm,60:[PB,Tz],91:Pz,92:[cz,A2],93:t0,95:Jm,96:KB}},Symbol.toStringTag,{value:"Module"}));function PU(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},r=[];let s=[],o=[];const l={attempt:D(S),check:D(A),consume:y,enter:x,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&r.push(t),u;function d(Y){return s=si(s,Y),E(),s[s.length-1]!==null?[]:(L(t,0),u.events=kd(r,u.events,u),u.events)}function f(Y,U){return zU(h(Y),U)}function h(Y){return BU(s,Y)}function g(){const{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}}function b(Y){a[Y.line]=Y.column,O()}function E(){let Y;for(;i._index<s.length;){const U=s[i._index];if(typeof U=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<U.length;)m(U.charCodeAt(i._bufferIndex));else m(U)}}function m(Y){c=c(Y)}function y(Y){fe(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,O()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=Y}function x(Y,U){const ae=U||{};return ae.type=Y,ae.start=g(),u.events.push(["enter",ae,u]),o.push(ae),ae}function T(Y){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function S(Y,U){L(Y,U.from)}function A(Y,U){U.restore()}function D(Y,U){return ae;function ae(ee,Q,F){let V,H,te,N;return Array.isArray(ee)?tt(ee):"tokenize"in ee?tt([ee]):be(ee);function be(ze){return dn;function dn(We){const $t=We!==null&&ze[We],Mt=We!==null&&ze.null,Ut=[...Array.isArray($t)?$t:$t?[$t]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return tt(Ut)(We)}}function tt(ze){return V=ze,H=0,ze.length===0?F:M(ze[H])}function M(ze){return dn;function dn(We){return N=B(),te=ze,ze.partial||(u.currentConstruct=ze),ze.name&&u.parser.constructs.disable.null.includes(ze.name)?ge():ze.tokenize.call(U?Object.assign(Object.create(u),U):u,l,Be,ge)(We)}}function Be(ze){return Y(te,N),Q}function ge(ze){return N.restore(),++H<V.length?M(V[H]):F}}}function L(Y,U){Y.resolveAll&&!r.includes(Y)&&r.push(Y),Y.resolve&&jn(u.events,U,u.events.length-U,Y.resolve(u.events.slice(U),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),U=u.previous,ae=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=U,u.currentConstruct=ae,u.events.length=ee,o=Q,O()}}function O(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function BU(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,r=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(i,r)];else{if(s=e.slice(n,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}r>0&&s.push(e[a].slice(0,r))}return s}function zU(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const r=e[n];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
283
283
  `;break}case-3:{s=`\r
284
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(r)}a=r===-2,i.push(s)}return i.join("")}function jU(e){const i={constructs:m2([IU,...(e||{}).extensions||[]]),content:a(wU),defined:[],document:a(AU),flow:a(OU),lazy:{},string:a(DU),text:a(MU)};return i;function a(r){return s;function s(o){return PU(i,r,o)}}}function UU(e){for(;!N2(e););return e}const pw=/[\0\t\n\r]/g;function HU(){let e=1,t="",n=!0,i;return a;function a(r,s,o){const l=[];let u,c,d,f,h;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(s||void 0).decode(r)),d=0,t="",n&&(r.charCodeAt(0)===65279&&d++,n=void 0);d<r.length;){if(pw.lastIndex=d,u=pw.exec(r),f=u&&u.index!==void 0?u.index:r.length,h=r.charCodeAt(f),!u){t=r.slice(d);break}if(h===10&&d===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<f&&(l.push(r.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const mw={}.hasOwnProperty;function FU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),VU(n)(UU(jU(n).document().write(HU()(e,t,!0))))}function VU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:r(Li),blockQuote:r(Mt),characterEscape:B,characterReference:B,codeFenced:r(Ut),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:r(Ut,s),codeText:r(Lt,s),codeTextData:B,data:B,codeFlowValue:B,definition:r(re),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:r(yi),hardBreakEscape:r(Ii),hardBreakTrailing:r(Ii),htmlFlow:r(nt,s),htmlFlowData:B,htmlText:r(nt,s),htmlTextData:B,image:r(fn),label:s,link:r(tn),listItem:r(Es),listItemValue:f,listOrdered:r(At,d),listUnordered:r(At),paragraph:r(Rn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:r(Li),strong:r(Ia),thematicBreak:r(he)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:$t,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ze,characterReference:dn,codeFenced:l(_),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:l(m),codeText:l(Q),codeTextData:O,data:O,definition:l(),definitionDestinationString:T,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(ae),htmlFlowData:O,htmlText:l(ee),htmlTextData:O,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Be,resourceDestinationString:N,resourceTitleString:be,resource:tt,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};gw(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(z){let $={type:"root",children:[]};const ue={stack:[$],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},_e=[];let ve=-1;for(;++ve<z.length;)if(z[ve][1].type==="listOrdered"||z[ve][1].type==="listUnordered")if(z[ve][0]==="enter")_e.push(ve);else{const Xt=_e.pop();ve=a(z,Xt,ve)}for(ve=-1;++ve<z.length;){const Xt=t[z[ve][0]];mw.call(Xt,z[ve][1].type)&&Xt[z[ve][1].type].call(Object.assign({sliceSerialize:z[ve][2].sliceSerialize},ue),z[ve][1])}if(ue.tokenStack.length>0){const Xt=ue.tokenStack[ue.tokenStack.length-1];(Xt[1]||bw).call(ue,void 0,Xt[0])}for($.position={start:Za(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:Za(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)$=t.transforms[ve]($)||$;return $}function a(z,$,ue){let _e=$-1,ve=-1,Xt=!1,Dn,yn,Jn,Mn;for(;++_e<=ue;){const It=z[_e];switch(It[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{It[0]==="enter"?ve++:ve--,Mn=void 0;break}case"lineEndingBlank":{It[0]==="enter"&&(Dn&&!Mn&&!ve&&!Jn&&(Jn=_e),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!ve&&It[0]==="enter"&&It[1].type==="listItemPrefix"||ve===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Dn){let ei=_e;for(yn=void 0;ei--;){const xn=z[ei];if(xn[1].type==="lineEnding"||xn[1].type==="lineEndingBlank"){if(xn[0]==="exit")continue;yn&&(z[yn][1].type="lineEndingBlank",Xt=!0),xn[1].type="lineEnding",yn=ei}else if(!(xn[1].type==="linePrefix"||xn[1].type==="blockQuotePrefix"||xn[1].type==="blockQuotePrefixWhitespace"||xn[1].type==="blockQuoteMarker"||xn[1].type==="listItemIndent"))break}Jn&&(!yn||Jn<yn)&&(Dn._spread=!0),Dn.end=Object.assign({},yn?z[yn][1].start:It[1].end),z.splice(yn||_e,0,["exit",Dn,It[2]]),_e++,ue++}if(It[1].type==="listItemPrefix"){const ei={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0};Dn=ei,z.splice(_e,0,["enter",ei,It[2]]),_e++,ue++,Jn=void 0,Mn=!0}}}return z[$][1]._spread=Xt,ue}function r(z,$){return ue;function ue(_e){o.call(this,z(_e),_e),$&&$.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(z,$,ue){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([$,ue||void 0]),z.position={start:Za($.start),end:void 0}}function l(z){return $;function $(ue){z&&z.call(this,ue),u.call(this,ue)}}function u(z,$){const ue=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==z.type&&($?$.call(this,z,_e[0]):(_e[1]||bw).call(this,z,_e[0]));else throw new Error("Cannot close `"+z.type+"` ("+Kl({start:z.start,end:z.end})+"): it’s not open");ue.position.end=Za(z.end)}function c(){return $m(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(z){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function h(){const z=this.resume(),$=this.stack[this.stack.length-1];$.lang=z}function g(){const z=this.resume(),$=this.stack[this.stack.length-1];$.meta=z}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/(\r?\n|\r)$/g,"")}function y(z){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(z)).toLowerCase()}function x(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function T(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function S(z){const $=this.stack[this.stack.length-1];if(!$.depth){const ue=this.sliceSerialize(z).length;$.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(z){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(z){const ue=this.stack[this.stack.length-1].children;let _e=ue[ue.length-1];(!_e||_e.type!=="text")&&(_e=ne(),_e.position={start:Za(z.start),end:void 0},ue.push(_e)),this.stack.push(_e)}function O(z){const $=this.stack.pop();$.value+=this.sliceSerialize(z),$.position.end=Za(z.end)}function Y(z){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=$.children[$.children.length-1];ue.position.end=Za(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(B.call(this,z),O.call(this,z))}function U(){this.data.atHardBreak=!0}function ae(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function ee(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function Q(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function F(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function V(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function H(z){const $=this.sliceSerialize(z),ue=this.stack[this.stack.length-2];ue.label=sB($),ue.identifier=Ci($).toLowerCase()}function te(){const z=this.stack[this.stack.length-1],$=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const _e=z.children;ue.children=_e}else ue.alt=$}function N(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function be(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function tt(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Be(z){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function ge(z){this.data.characterReferenceType=z.type}function ze(z){const $=this.sliceSerialize(z),ue=this.data.characterReferenceType;let _e;ue?(_e=d2($,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Km($);const ve=this.stack[this.stack.length-1];ve.value+=_e}function dn(z){const $=this.stack.pop();$.position.end=Za(z.end)}function We(z){O.call(this,z);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(z)}function $t(z){O.call(this,z);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(z)}function Mt(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yi(){return{type:"emphasis",children:[]}}function Li(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function nt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function At(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Es(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function Ia(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Za(e){return{line:e.line,column:e.column,offset:e.offset}}function gw(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?gw(e,i):YU(e,i)}}function YU(e,t){let n;for(n in t)if(mw.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function bw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is still open")}function qU(e){const t=this;t.parser=n;function n(i){return FU(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $U(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
284
+ `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(r)}a=r===-2,i.push(s)}return i.join("")}function jU(e){const i={constructs:m2([IU,...(e||{}).extensions||[]]),content:a(wU),defined:[],document:a(AU),flow:a(OU),lazy:{},string:a(DU),text:a(MU)};return i;function a(r){return s;function s(o){return PU(i,r,o)}}}function UU(e){for(;!N2(e););return e}const pw=/[\0\t\n\r]/g;function HU(){let e=1,t="",n=!0,i;return a;function a(r,s,o){const l=[];let u,c,d,f,h;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(s||void 0).decode(r)),d=0,t="",n&&(r.charCodeAt(0)===65279&&d++,n=void 0);d<r.length;){if(pw.lastIndex=d,u=pw.exec(r),f=u&&u.index!==void 0?u.index:r.length,h=r.charCodeAt(f),!u){t=r.slice(d);break}if(h===10&&d===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<f&&(l.push(r.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const mw={}.hasOwnProperty;function FU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),VU(n)(UU(jU(n).document().write(HU()(e,t,!0))))}function VU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:r(Li),blockQuote:r(Mt),characterEscape:B,characterReference:B,codeFenced:r(Ut),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:r(Ut,s),codeText:r(Lt,s),codeTextData:B,data:B,codeFlowValue:B,definition:r(re),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:r(yi),hardBreakEscape:r(Ii),hardBreakTrailing:r(Ii),htmlFlow:r(nt,s),htmlFlowData:B,htmlText:r(nt,s),htmlTextData:B,image:r(fn),label:s,link:r(tn),listItem:r(Es),listItemValue:f,listOrdered:r(At,d),listUnordered:r(At),paragraph:r(Rn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:r(Li),strong:r(Ia),thematicBreak:r(he)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:$t,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ze,characterReference:dn,codeFenced:l(E),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:l(m),codeText:l(Q),codeTextData:O,data:O,definition:l(),definitionDestinationString:T,definitionLabelString:y,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(ae),htmlFlowData:O,htmlText:l(ee),htmlTextData:O,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Be,resourceDestinationString:N,resourceTitleString:be,resource:tt,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};gw(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(z){let $={type:"root",children:[]};const ue={stack:[$],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},_e=[];let ve=-1;for(;++ve<z.length;)if(z[ve][1].type==="listOrdered"||z[ve][1].type==="listUnordered")if(z[ve][0]==="enter")_e.push(ve);else{const Xt=_e.pop();ve=a(z,Xt,ve)}for(ve=-1;++ve<z.length;){const Xt=t[z[ve][0]];mw.call(Xt,z[ve][1].type)&&Xt[z[ve][1].type].call(Object.assign({sliceSerialize:z[ve][2].sliceSerialize},ue),z[ve][1])}if(ue.tokenStack.length>0){const Xt=ue.tokenStack[ue.tokenStack.length-1];(Xt[1]||bw).call(ue,void 0,Xt[0])}for($.position={start:Za(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:Za(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)$=t.transforms[ve]($)||$;return $}function a(z,$,ue){let _e=$-1,ve=-1,Xt=!1,Dn,yn,Jn,Mn;for(;++_e<=ue;){const It=z[_e];switch(It[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{It[0]==="enter"?ve++:ve--,Mn=void 0;break}case"lineEndingBlank":{It[0]==="enter"&&(Dn&&!Mn&&!ve&&!Jn&&(Jn=_e),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!ve&&It[0]==="enter"&&It[1].type==="listItemPrefix"||ve===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Dn){let ei=_e;for(yn=void 0;ei--;){const xn=z[ei];if(xn[1].type==="lineEnding"||xn[1].type==="lineEndingBlank"){if(xn[0]==="exit")continue;yn&&(z[yn][1].type="lineEndingBlank",Xt=!0),xn[1].type="lineEnding",yn=ei}else if(!(xn[1].type==="linePrefix"||xn[1].type==="blockQuotePrefix"||xn[1].type==="blockQuotePrefixWhitespace"||xn[1].type==="blockQuoteMarker"||xn[1].type==="listItemIndent"))break}Jn&&(!yn||Jn<yn)&&(Dn._spread=!0),Dn.end=Object.assign({},yn?z[yn][1].start:It[1].end),z.splice(yn||_e,0,["exit",Dn,It[2]]),_e++,ue++}if(It[1].type==="listItemPrefix"){const ei={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0};Dn=ei,z.splice(_e,0,["enter",ei,It[2]]),_e++,ue++,Jn=void 0,Mn=!0}}}return z[$][1]._spread=Xt,ue}function r(z,$){return ue;function ue(_e){o.call(this,z(_e),_e),$&&$.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(z,$,ue){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([$,ue||void 0]),z.position={start:Za($.start),end:void 0}}function l(z){return $;function $(ue){z&&z.call(this,ue),u.call(this,ue)}}function u(z,$){const ue=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==z.type&&($?$.call(this,z,_e[0]):(_e[1]||bw).call(this,z,_e[0]));else throw new Error("Cannot close `"+z.type+"` ("+Kl({start:z.start,end:z.end})+"): it’s not open");ue.position.end=Za(z.end)}function c(){return $m(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(z){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function h(){const z=this.resume(),$=this.stack[this.stack.length-1];$.lang=z}function g(){const z=this.resume(),$=this.stack[this.stack.length-1];$.meta=z}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/(\r?\n|\r)$/g,"")}function y(z){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(z)).toLowerCase()}function x(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function T(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function S(z){const $=this.stack[this.stack.length-1];if(!$.depth){const ue=this.sliceSerialize(z).length;$.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(z){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(z){const ue=this.stack[this.stack.length-1].children;let _e=ue[ue.length-1];(!_e||_e.type!=="text")&&(_e=ne(),_e.position={start:Za(z.start),end:void 0},ue.push(_e)),this.stack.push(_e)}function O(z){const $=this.stack.pop();$.value+=this.sliceSerialize(z),$.position.end=Za(z.end)}function Y(z){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=$.children[$.children.length-1];ue.position.end=Za(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(B.call(this,z),O.call(this,z))}function U(){this.data.atHardBreak=!0}function ae(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function ee(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function Q(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function F(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function V(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function H(z){const $=this.sliceSerialize(z),ue=this.stack[this.stack.length-2];ue.label=sB($),ue.identifier=Ci($).toLowerCase()}function te(){const z=this.stack[this.stack.length-1],$=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const _e=z.children;ue.children=_e}else ue.alt=$}function N(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function be(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function tt(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Be(z){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function ge(z){this.data.characterReferenceType=z.type}function ze(z){const $=this.sliceSerialize(z),ue=this.data.characterReferenceType;let _e;ue?(_e=d2($,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Km($);const ve=this.stack[this.stack.length-1];ve.value+=_e}function dn(z){const $=this.stack.pop();$.position.end=Za(z.end)}function We(z){O.call(this,z);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(z)}function $t(z){O.call(this,z);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(z)}function Mt(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yi(){return{type:"emphasis",children:[]}}function Li(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function nt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function At(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Es(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function Ia(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Za(e){return{line:e.line,column:e.column,offset:e.offset}}function gw(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?gw(e,i):YU(e,i)}}function YU(e,t){let n;for(n in t)if(mw.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function bw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is still open")}function qU(e){const t=this;t.parser=n;function n(i){return FU(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function GU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function $U(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
285
285
  `}]}function XU(e,t){const n=t.value?t.value+`
286
286
  `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function KU(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function QU(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WU(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Js(i.toLowerCase()),r=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=r+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ZU(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vw(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),r=a[0];r&&r.type==="text"?r.value="["+r.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function eH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return vw(e,t);const a={src:Js(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const r={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,r),e.applyData(t,r)}function tH(e,t){const n={src:Js(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function nH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function iH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return vw(e,t);const a={href:Js(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const r={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aH(e,t){const n={href:Js(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function rH(e,t,n){const i=e.all(t),a=n?sH(n):yw(t),r={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
287
287
  `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
288
- `});const u={type:"element",tagName:"li",properties:r,children:s};return e.patch(t,u),e.applyData(t,u)}function sH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=yw(n[i])}return t}function yw(e){const t=e.spread;return t??e.children.length>1}function oH(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const r={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,r),e.applyData(t,r)}function lH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dH(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gi(t.children[1]),l=Md(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,r),e.applyData(t,r)}function fH(e,t,n){const i=n?n.children:void 0,r=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:r,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function hH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xw=9,_w=32;function pH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const r=[];for(;i;)r.push(Ew(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return r.push(Ew(t.slice(a),a>0,!1)),r.join("")}function Ew(e,t,n){let i=0,a=e.length;if(t){let r=e.codePointAt(i);for(;r===xw||r===_w;)i++,r=e.codePointAt(i)}if(n){let r=e.codePointAt(a-1);for(;r===xw||r===_w;)a--,r=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function mH(e,t){const n={type:"text",value:pH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function gH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const bH={blockquote:GU,break:$U,code:XU,delete:KU,emphasis:QU,footnoteReference:WU,heading:ZU,html:JU,imageReference:eH,image:tH,inlineCode:nH,linkReference:iH,link:aH,listItem:rH,list:oH,paragraph:lH,root:uH,strong:cH,table:dH,tableCell:hH,tableRow:fH,text:mH,thematicBreak:gH,toml:Ld,yaml:Ld,definition:Ld,footnoteDefinition:Ld};function Ld(){}const Tw=-1,Id=0,Wl=1,Pd=2,m0=3,g0=4,b0=5,v0=6,ww=7,Sw=8,Aw=typeof self=="object"?self:globalThis,vH=(e,t)=>{const n=(a,r)=>(e.set(r,a),a),i=a=>{if(e.has(a))return e.get(a);const[r,s]=t[a];switch(r){case Id:case Tw:return n(s,a);case Wl:{const o=n([],a);for(const l of s)o.push(i(l));return o}case Pd:{const o=n({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case m0:return n(new Date(s),a);case g0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case b0:{const o=n(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case v0:{const o=n(new Set,a);for(const l of s)o.add(i(l));return o}case ww:{const{name:o,message:l}=s;return n(new Aw[o](l),a)}case Sw:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Aw[r](s),a)};return i},Cw=e=>vH(new Map,e)(0),ao="",{toString:yH}={},{keys:xH}=Object,Zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=yH.call(e).slice(8,-1);switch(n){case"Array":return[Wl,ao];case"Object":return[Pd,ao];case"Date":return[m0,ao];case"RegExp":return[g0,ao];case"Map":return[b0,ao];case"Set":return[v0,ao];case"DataView":return[Wl,n]}return n.includes("Array")?[Wl,n]:n.includes("Error")?[ww,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),_H=(e,t,n,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return n.set(o,l),l},r=s=>{if(n.has(s))return n.get(s);let[o,l]=Zl(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=Sw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([Tw],s)}return a([o,c],s)}case Wl:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),a([l,[...f]],s)}const c=[],d=a([o,c],s);for(const f of s)c.push(r(f));return d}case Pd:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return r(s.toJSON());const c=[],d=a([o,c],s);for(const f of xH(s))(e||!Bd(Zl(s[f])))&&c.push([r(f),r(s[f])]);return d}case m0:return a([o,s.toISOString()],s);case g0:{const{source:c,flags:d}=s;return a([o,{source:c,flags:d}],s)}case b0:{const c=[],d=a([o,c],s);for(const[f,h]of s)(e||!(Bd(Zl(f))||Bd(Zl(h))))&&c.push([r(f),r(h)]);return d}case v0:{const c=[],d=a([o,c],s);for(const f of s)(e||!Bd(Zl(f)))&&c.push(r(f));return d}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return r},kw=(e,{json:t,lossy:n}={})=>{const i=[];return _H(!(t||n),!!t,new Map,i)(e),i},ro=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Cw(kw(e,t)):structuredClone(e):(e,t)=>Cw(kw(e,t));function EH(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function TH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||EH,i=e.options.footnoteBackLabel||TH,a=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=Js(d.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,h);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const y=_.children[_.children.length-1];y&&y.type==="text"?y.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...ro(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
288
+ `});const u={type:"element",tagName:"li",properties:r,children:s};return e.patch(t,u),e.applyData(t,u)}function sH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=yw(n[i])}return t}function yw(e){const t=e.spread;return t??e.children.length>1}function oH(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const r={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,r),e.applyData(t,r)}function lH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function cH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dH(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gi(t.children[1]),l=Md(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,r),e.applyData(t,r)}function fH(e,t,n){const i=n?n.children:void 0,r=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:r,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function hH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xw=9,_w=32;function pH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const r=[];for(;i;)r.push(Ew(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return r.push(Ew(t.slice(a),a>0,!1)),r.join("")}function Ew(e,t,n){let i=0,a=e.length;if(t){let r=e.codePointAt(i);for(;r===xw||r===_w;)i++,r=e.codePointAt(i)}if(n){let r=e.codePointAt(a-1);for(;r===xw||r===_w;)a--,r=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function mH(e,t){const n={type:"text",value:pH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function gH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const bH={blockquote:GU,break:$U,code:XU,delete:KU,emphasis:QU,footnoteReference:WU,heading:ZU,html:JU,imageReference:eH,image:tH,inlineCode:nH,linkReference:iH,link:aH,listItem:rH,list:oH,paragraph:lH,root:uH,strong:cH,table:dH,tableCell:hH,tableRow:fH,text:mH,thematicBreak:gH,toml:Ld,yaml:Ld,definition:Ld,footnoteDefinition:Ld};function Ld(){}const Tw=-1,Id=0,Wl=1,Pd=2,m0=3,g0=4,b0=5,v0=6,ww=7,Sw=8,Aw=typeof self=="object"?self:globalThis,vH=(e,t)=>{const n=(a,r)=>(e.set(r,a),a),i=a=>{if(e.has(a))return e.get(a);const[r,s]=t[a];switch(r){case Id:case Tw:return n(s,a);case Wl:{const o=n([],a);for(const l of s)o.push(i(l));return o}case Pd:{const o=n({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case m0:return n(new Date(s),a);case g0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case b0:{const o=n(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case v0:{const o=n(new Set,a);for(const l of s)o.add(i(l));return o}case ww:{const{name:o,message:l}=s;return n(new Aw[o](l),a)}case Sw:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Aw[r](s),a)};return i},Cw=e=>vH(new Map,e)(0),ao="",{toString:yH}={},{keys:xH}=Object,Zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=yH.call(e).slice(8,-1);switch(n){case"Array":return[Wl,ao];case"Object":return[Pd,ao];case"Date":return[m0,ao];case"RegExp":return[g0,ao];case"Map":return[b0,ao];case"Set":return[v0,ao];case"DataView":return[Wl,n]}return n.includes("Array")?[Wl,n]:n.includes("Error")?[ww,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),_H=(e,t,n,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return n.set(o,l),l},r=s=>{if(n.has(s))return n.get(s);let[o,l]=Zl(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=Sw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([Tw],s)}return a([o,c],s)}case Wl:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),a([l,[...f]],s)}const c=[],d=a([o,c],s);for(const f of s)c.push(r(f));return d}case Pd:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return r(s.toJSON());const c=[],d=a([o,c],s);for(const f of xH(s))(e||!Bd(Zl(s[f])))&&c.push([r(f),r(s[f])]);return d}case m0:return a([o,s.toISOString()],s);case g0:{const{source:c,flags:d}=s;return a([o,{source:c,flags:d}],s)}case b0:{const c=[],d=a([o,c],s);for(const[f,h]of s)(e||!(Bd(Zl(f))||Bd(Zl(h))))&&c.push([r(f),r(h)]);return d}case v0:{const c=[],d=a([o,c],s);for(const f of s)(e||!Bd(Zl(f)))&&c.push(r(f));return d}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return r},kw=(e,{json:t,lossy:n}={})=>{const i=[];return _H(!(t||n),!!t,new Map,i)(e),i},ro=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Cw(kw(e,t)):structuredClone(e):(e,t)=>Cw(kw(e,t));function EH(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function TH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||EH,i=e.options.footnoteBackLabel||TH,a=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=Js(d.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,h);typeof y=="string"&&(y={type:"text",value:y}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const y=E.children[E.children.length-1];y&&y.type==="text"?y.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...ro(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
289
289
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
290
- `}]}}const y0={}.hasOwnProperty,SH={};function AH(e,t){const n=t||SH,i=new Map,a=new Map,r=new Map,s={...bH,...n.handlers},o={all:u,applyData:kH,definitionById:i,footnoteById:a,footnoteCounts:r,footnoteOrder:[],handlers:s,one:l,options:n,patch:CH,wrap:NH};return Cd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:a,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function l(c,d){const f=c.type,h=o.handlers[f];if(y0.call(o.handlers,f)&&h)return h(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:b,..._}=c,m=ro(_);return m.children=o.all(c),m}return ro(c)}return(o.options.unknownHandler||OH)(o,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=o.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Ow(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=Ow(b.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function CH(e,t){e.position&&(t.position=iU(e))}function kH(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&r&&Object.assign(n.properties,ro(r)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function OH(e,t){const n=t.data||{},i="value"in t&&!(y0.call(n,"hProperties")||y0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function NH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
290
+ `}]}}const y0={}.hasOwnProperty,SH={};function AH(e,t){const n=t||SH,i=new Map,a=new Map,r=new Map,s={...bH,...n.handlers},o={all:u,applyData:kH,definitionById:i,footnoteById:a,footnoteCounts:r,footnoteOrder:[],handlers:s,one:l,options:n,patch:CH,wrap:NH};return Cd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:a,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function l(c,d){const f=c.type,h=o.handlers[f];if(y0.call(o.handlers,f)&&h)return h(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:b,...E}=c,m=ro(E);return m.children=o.all(c),m}return ro(c)}return(o.options.unknownHandler||OH)(o,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=o.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Ow(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=Ow(b.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function CH(e,t){e.position&&(t.position=iU(e))}function kH(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&r&&Object.assign(n.properties,ro(r)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function OH(e,t){const n=t.data||{},i="value"in t&&!(y0.call(n,"hProperties")||y0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function NH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
291
291
  `});++i<e.length;)i&&n.push({type:"text",value:`
292
292
  `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
293
293
  `}),n}function Ow(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nw(e,t){const n=AH(e,t),i=n.one(e,void 0),a=wH(n),r=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&r.children.push({type:"text",value:`
@@ -300,11 +300,11 @@ ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
300
300
  *
301
301
  * This source code is licensed under the MIT license found in the
302
302
  * LICENSE file in the root directory of this source tree.
303
- */var po=E;function Cq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kq=typeof Object.is=="function"?Object.is:Cq,Oq=po.useState,Nq=po.useEffect,Rq=po.useLayoutEffect,Dq=po.useDebugValue;function Mq(e,t){var n=t(),i=Oq({inst:{value:n,getSnapshot:t}}),a=i[0].inst,r=i[1];return Rq(function(){a.value=n,a.getSnapshot=t,$0(a)&&r({inst:a})},[e,n,t]),Nq(function(){return $0(a)&&r({inst:a}),e(function(){$0(a)&&r({inst:a})})},[e]),Dq(n),n}function $0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kq(e,n)}catch{return!0}}function Lq(e,t){return t()}var Iq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lq:Mq;nA.useSyncExternalStore=po.useSyncExternalStore!==void 0?po.useSyncExternalStore:Iq,tA.exports=nA;var Pq=tA.exports;function Bq(){return Pq.useSyncExternalStore(zq,()=>!0,()=>!1)}function zq(){return()=>{}}var X0="Avatar",[jq,xJ]=Oc(X0),[Uq,iA]=jq(X0),aA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[a,r]=E.useState("idle");return v.jsx(Uq,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:r,children:v.jsx(Ln.span,{...i,ref:t})})});aA.displayName=X0;var rA="AvatarImage",sA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:a=()=>{},...r}=e,s=iA(rA,n),o=Hq(i,r),l=Pr(u=>{a(u),s.onImageLoadingStatusChange(u)});return zi(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?v.jsx(Ln.img,{...r,ref:t,src:i}):null});sA.displayName=rA;var oA="AvatarFallback",lA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...a}=e,r=iA(oA,n),[s,o]=E.useState(i===void 0);return E.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&r.imageLoadingStatus!=="loaded"?v.jsx(Ln.span,{...a,ref:t}):null});lA.displayName=oA;function uA(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Hq(e,{referrerPolicy:t,crossOrigin:n}){const i=Bq(),a=E.useRef(null),r=i?(a.current||(a.current=new window.Image),a.current):null,[s,o]=E.useState(()=>uA(r,e));return zi(()=>{o(uA(r,e))},[r,e]),zi(()=>{const l=d=>()=>{o(d)};if(!r)return;const u=l("loaded"),c=l("error");return r.addEventListener("load",u),r.addEventListener("error",c),t&&(r.referrerPolicy=t),typeof n=="string"&&(r.crossOrigin=n),()=>{r.removeEventListener("load",u),r.removeEventListener("error",c)}},[r,n,t]),s}var cA=aA,dA=sA,fA=lA;function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},K0.apply(null,arguments)}function Fq(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var hA,pA;typeof document<"u"&&(hA=document),typeof window<"u"&&(pA=window);var Vq=pn.createContext({document:hA,window:pA}),Yq=["children","head","initialContent","src","mountTarget"],Q0=E.forwardRef((e,t)=>{var{children:n,head:i,initialContent:a,src:r,mountTarget:s}=e,o=Fq(e,Yq),[l,u]=E.useState(!1),[c,d]=E.useState(),f=T=>{T&&d(T)};E.useImperativeHandle(t,()=>c,[c]);var h=a||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var T=g();return s?T==null?void 0:T.querySelector(s):T==null?void 0:T.body},_=E.useRef(),m=E.useCallback(T=>{_.current=T;var S=()=>setInterval(()=>m(T),500);clearInterval(S()),l||u(!0)},[l]);E.useMemo(()=>{!r&&o.onLoad&&l&&o.onLoad(_.current)},[l]),E.useEffect(()=>{if(c&&!r){var T;(T=c.contentWindow)==null||T.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!r){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var y=()=>{var T,S=g(),A=(T=g())==null?void 0:T.head,D=b(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=v.jsx(Vq.Provider,{value:{document:S,window:L},children:n});return[A&&i&&ml.createPortal(i,A),c&&D&&ml.createPortal(B,D)]},x={};return r?(delete x.srcDoc,x.src=r,x.onLoad=o.onLoad):x.srcDoc=h,v.jsx("iframe",K0({title:o.title,ref:f},o,{onLoad:m},x,{children:l&&y()}))});Q0.displayName="IFrame";var qq=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Gq="VisuallyHidden",mA=E.forwardRef((e,t)=>v.jsx(Ln.span,{...e,ref:t,style:{...qq,...e.style}}));mA.displayName=Gq;var $q=mA,[Qd,_J]=Oc("Tooltip",[Uc]),Wd=Uc(),gA="TooltipProvider",Xq=700,W0="tooltip.open",[Kq,Z0]=Qd(gA),bA=e=>{const{__scopeTooltip:t,delayDuration:n=Xq,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:r}=e,s=E.useRef(!0),o=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(Kq,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:o,onPointerInTransitChange:E.useCallback(u=>{o.current=u},[]),disableHoverableContent:a,children:r})};bA.displayName=gA;var fu="Tooltip",[Qq,Zd]=Qd(fu),vA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:a,onOpenChange:r,disableHoverableContent:s,delayDuration:o}=e,l=Z0(fu,e.__scopeTooltip),u=Wd(t),[c,d]=E.useState(null),f=U1(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,_=E.useRef(!1),[m,y]=_y({prop:i,defaultProp:a??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(W0))):l.onClose(),r==null||r(D)},caller:fu}),x=E.useMemo(()=>m?_.current?"delayed-open":"instant-open":"closed",[m]),T=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,y(!0)},[y]),S=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,y(!0),h.current=0},b)},[b,y]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),v.jsx(vy,{...u,children:v.jsx(Qq,{scope:t,contentId:f,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?A():T()},[l.isOpenDelayedRef,A,T]),onTriggerLeave:E.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g,children:n})})};vA.displayName=fu;var J0="TooltipTrigger",yA=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Zd(J0,n),r=Z0(J0,n),s=Wd(n),o=E.useRef(null),l=Bi(t,o,a.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),d=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),v.jsx(mp,{asChild:!0,...s,children:v.jsx(Ln.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:_n(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!r.isPointerInTransitRef.current&&(a.onTriggerEnter(),c.current=!0)}),onPointerLeave:_n(e.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:_n(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_n(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:_n(e.onBlur,a.onClose),onClick:_n(e.onClick,a.onClose)})})});yA.displayName=J0;var Wq="TooltipPortal",[EJ,Zq]=Qd(Wq,{forceMount:void 0}),mo="TooltipContent",xA=E.forwardRef((e,t)=>{const n=Zq(mo,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...r}=e,s=Zd(mo,e.__scopeTooltip);return v.jsx(gp,{present:i||s.open,children:s.disableHoverableContent?v.jsx(_A,{side:a,...r,ref:t}):v.jsx(Jq,{side:a,...r,ref:t})})}),Jq=E.forwardRef((e,t)=>{const n=Zd(mo,e.__scopeTooltip),i=Z0(mo,e.__scopeTooltip),a=E.useRef(null),r=Bi(t,a),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=a.current,{onPointerInTransitChange:d}=i,f=E.useCallback(()=>{o(null),d(!1)},[d]),h=E.useCallback((g,b)=>{const _=g.currentTarget,m={x:g.clientX,y:g.clientY},y=aG(m,_.getBoundingClientRect()),x=rG(m,y),T=sG(b.getBoundingClientRect()),S=lG([...x,...T]);o(S),d(!0)},[d]);return E.useEffect(()=>()=>f(),[f]),E.useEffect(()=>{if(l&&c){const g=_=>h(_,c),b=_=>h(_,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,f]),E.useEffect(()=>{if(s){const g=b=>{const _=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(_))||(c==null?void 0:c.contains(_)),x=!oG(m,s);y?f():x&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,f]),v.jsx(_A,{...e,ref:r})}),[eG,tG]=Qd(fu,{isInside:!1}),nG=VN("TooltipContent"),_A=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:r,onPointerDownOutside:s,...o}=e,l=Zd(mo,n),u=Wd(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(W0,c),()=>document.removeEventListener(W0,c)),[c]),E.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),v.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:v.jsxs(yy,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(nG,{children:i}),v.jsx(eG,{scope:n,isInside:!0,children:v.jsx($q,{id:l.contentId,role:"tooltip",children:a||i})})]})})});xA.displayName=mo;var EA="TooltipArrow",iG=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Wd(n);return tG(EA,n).isInside?null:v.jsx(xy,{...a,...i,ref:t})});iG.displayName=EA;function aG(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,i,a,r)){case r:return"left";case a:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function rG(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function sG(e){const{top:t,right:n,bottom:i,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:i},{x:a,y:i}]}function oG(e,t){const{x:n,y:i}=e;let a=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const o=t[r],l=t[s],u=o.x,c=o.y,d=l.x,f=l.y;c>i!=f>i&&n<(d-u)*(i-c)/(f-c)+u&&(a=!a)}return a}function lG(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),uG(t)}function uG(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const a=e[i];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const a=e[i];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cG=bA,dG=vA,fG=yA,TA=xA;function Jd(e){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jd(e)}var hG=/^\s+/,pG=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var n=mG(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,i,a,r,s,o;return n=t.r/255,i=t.g/255,a=t.b/255,n<=.03928?r=n/12.92:r=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*r+.7152*s+.0722*o},setAlpha:function(t){return this._a=OA(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=SA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=SA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+i+"%, "+a+"%)":"hsva("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=wA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+i+"%, "+a+"%)":"hsla("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return AA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return yG(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ct(this._r,255)*100)+"%",g:Math.round(ct(this._g,255)*100)+"%",b:Math.round(ct(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%)":"rgba("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:RG[AA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+CA(this._r,this._g,this._b,this._a),i=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var r=de(t);i="#"+CA(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+i+")"},toString:function(t){var n=!!t;t=t||this._format;var i=!1,a=this._a<1&&this._a>=0,r=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return r?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(t,n){var i=t.apply(null,[this].concat([].slice.call(n)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(TG,arguments)},brighten:function(){return this._applyModification(wG,arguments)},darken:function(){return this._applyModification(SG,arguments)},desaturate:function(){return this._applyModification(xG,arguments)},saturate:function(){return this._applyModification(_G,arguments)},greyscale:function(){return this._applyModification(EG,arguments)},spin:function(){return this._applyModification(AG,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(OG,arguments)},complement:function(){return this._applyCombination(CG,arguments)},monochromatic:function(){return this._applyCombination(NG,arguments)},splitcomplement:function(){return this._applyCombination(kG,arguments)},triad:function(){return this._applyCombination(kA,[3])},tetrad:function(){return this._applyCombination(kA,[4])}},de.fromRatio=function(e,t){if(Jd(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hu(e[i]));e=n}return de(e,t)};function mG(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,r=null,s=!1,o=!1;return typeof e=="string"&&(e=IG(e)),Jd(e)=="object"&&(ga(e.r)&&ga(e.g)&&ga(e.b)?(t=gG(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ga(e.h)&&ga(e.s)&&ga(e.v)?(i=hu(e.s),a=hu(e.v),t=vG(e.h,i,a),s=!0,o="hsv"):ga(e.h)&&ga(e.s)&&ga(e.l)&&(i=hu(e.s),r=hu(e.l),t=bG(e.h,i,r),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=OA(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function gG(e,t,n){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(n,255)*255}}function wA(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=(i+a)/2;if(i==a)r=s=0;else{var l=i-a;switch(s=o>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,l:o}}function bG(e,t,n){var i,a,r;e=ct(e,360),t=ct(t,100),n=ct(n,100);function s(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*6:u}if(t===0)i=a=r=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=s(l,o,e+1/3),a=s(l,o,e),r=s(l,o,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function SA(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=i,l=i-a;if(s=i===0?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,v:o}}function vG(e,t,n){e=ct(e,360)*6,t=ct(t,100),n=ct(n,100);var i=Math.floor(e),a=e-i,r=n*(1-t),s=n*(1-a*t),o=n*(1-(1-a)*t),l=i%6,u=[n,s,r,r,o,n][l],c=[o,n,n,s,r,r][l],d=[r,r,o,n,n,s][l];return{r:u*255,g:c*255,b:d*255}}function AA(e,t,n,i){var a=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function yG(e,t,n,i,a){var r=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16)),Oi(NA(i))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function CA(e,t,n,i){var a=[Oi(NA(i)),Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return a.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function xG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s-=t/100,n.s=ef(n.s),de(n)}function _G(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s+=t/100,n.s=ef(n.s),de(n)}function EG(e){return de(e).desaturate(100)}function TG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l+=t/100,n.l=ef(n.l),de(n)}function wG(e,t){t=t===0?0:t||10;var n=de(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),de(n)}function SG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l-=t/100,n.l=ef(n.l),de(n)}function AG(e,t){var n=de(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,de(n)}function CG(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function kA(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=de(e).toHsl(),i=[de(e)],a=360/t,r=1;r<t;r++)i.push(de({h:(n.h+r*a)%360,s:n.s,l:n.l}));return i}function kG(e){var t=de(e).toHsl(),n=t.h;return[de(e),de({h:(n+72)%360,s:t.s,l:t.l}),de({h:(n+216)%360,s:t.s,l:t.l})]}function OG(e,t,n){t=t||6,n=n||30;var i=de(e).toHsl(),a=360/n,r=[de(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(de(i));return r}function NG(e,t){t=t||6;for(var n=de(e).toHsv(),i=n.h,a=n.s,r=n.v,s=[],o=1/t;t--;)s.push(de({h:i,s:a,v:r})),r=(r+o)%1;return s}de.mix=function(e,t,n){n=n===0?0:n||50;var i=de(e).toRgb(),a=de(t).toRgb(),r=n/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return de(s)},de.readability=function(e,t){var n=de(e),i=de(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},de.isReadable=function(e,t,n){var i=de.readability(e,t),a,r;switch(r=!1,a=PG(n),a.level+a.size){case"AAsmall":case"AAAlarge":r=i>=4.5;break;case"AAlarge":r=i>=3;break;case"AAAsmall":r=i>=7;break}return r},de.mostReadable=function(e,t,n){var i=null,a=0,r,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)r=de.readability(e,t[u]),r>a&&(a=r,i=de(t[u]));return de.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],n))};var eg=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},RG=de.hexNames=DG(eg);function DG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function OA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){MG(e)&&(e="100%");var n=LG(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ef(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function MG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function LG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Oi(e){return e.length==1?"0"+e:""+e}function hu(e){return e<=1&&(e=e*100+"%"),e}function NA(e){return Math.round(parseFloat(e)*255).toString(16)}function RA(e){return Fn(e)/255}var Ni=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ga(e){return!!Ni.CSS_UNIT.exec(e)}function IG(e){e=e.replace(hG,"").replace(pG,"").toLowerCase();var t=!1;if(eg[e])e=eg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:RA(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:RA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function PG(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var DA={exports:{}},BG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zG=BG,jG=zG;function MA(){}function LA(){}LA.resetWarningCache=MA;var UG=function(){function e(i,a,r,s,o,l){if(l!==jG){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:LA,resetWarningCache:MA};return n.PropTypes=n,n};DA.exports=UG();var HG=DA.exports;const Ke=hl(HG),FG=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 go(e,t,n){const i=VG(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&IA(i,"path",r),IA(i,"relativePath",r),i}function VG(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=FG.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function IA(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const YG=[".DS_Store","Thumbs.db"];function qG(e){return ua(this,void 0,void 0,function*(){return tf(e)&&GG(e.dataTransfer)?QG(e.dataTransfer,e.type):$G(e)?XG(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?KG(e):[]})}function GG(e){return tf(e)}function $G(e){return tf(e)&&tf(e.target)}function tf(e){return typeof e=="object"&&e!==null}function XG(e){return tg(e.target.files).map(t=>go(t))}function KG(e){return ua(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>go(n))})}function QG(e,t){return ua(this,void 0,void 0,function*(){if(e.items){const n=tg(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(WG));return PA(BA(i))}return PA(tg(e.files).map(n=>go(n)))})}function PA(e){return e.filter(t=>YG.indexOf(t.name)===-1)}function tg(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function WG(e){if(typeof e.webkitGetAsEntry!="function")return zA(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?jA(t):zA(e,t)}function BA(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?BA(n):[n]],[])}function zA(e,t){return ua(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,go(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return go(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function ZG(e){return ua(this,void 0,void 0,function*(){return e.isDirectory?jA(e):JG(e)})}function jA(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>ua(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map(ZG));a.push(o),r()}else try{const o=yield Promise.all(a);n(o)}catch(o){i(o)}}),s=>{i(s)})}r()})}function JG(e){return ua(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=go(i,e.fullPath);t(a)},i=>{n(i)})})})}var ng=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var o=s.trim().toLowerCase();return o.charAt(0)==="."?i.toLowerCase().endsWith(o):o.endsWith("/*")?r===o.replace(/\/.*$/,""):a===o})}return!0};function UA(e){return n$(e)||t$(e)||YA(e)||e$()}function e$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
303
+ */var po=_;function Cq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kq=typeof Object.is=="function"?Object.is:Cq,Oq=po.useState,Nq=po.useEffect,Rq=po.useLayoutEffect,Dq=po.useDebugValue;function Mq(e,t){var n=t(),i=Oq({inst:{value:n,getSnapshot:t}}),a=i[0].inst,r=i[1];return Rq(function(){a.value=n,a.getSnapshot=t,$0(a)&&r({inst:a})},[e,n,t]),Nq(function(){return $0(a)&&r({inst:a}),e(function(){$0(a)&&r({inst:a})})},[e]),Dq(n),n}function $0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kq(e,n)}catch{return!0}}function Lq(e,t){return t()}var Iq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Lq:Mq;nA.useSyncExternalStore=po.useSyncExternalStore!==void 0?po.useSyncExternalStore:Iq,tA.exports=nA;var Pq=tA.exports;function Bq(){return Pq.useSyncExternalStore(zq,()=>!0,()=>!1)}function zq(){return()=>{}}var X0="Avatar",[jq,xJ]=Oc(X0),[Uq,iA]=jq(X0),aA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[a,r]=_.useState("idle");return v.jsx(Uq,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:r,children:v.jsx(Ln.span,{...i,ref:t})})});aA.displayName=X0;var rA="AvatarImage",sA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:a=()=>{},...r}=e,s=iA(rA,n),o=Hq(i,r),l=Pr(u=>{a(u),s.onImageLoadingStatusChange(u)});return zi(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?v.jsx(Ln.img,{...r,ref:t,src:i}):null});sA.displayName=rA;var oA="AvatarFallback",lA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...a}=e,r=iA(oA,n),[s,o]=_.useState(i===void 0);return _.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&r.imageLoadingStatus!=="loaded"?v.jsx(Ln.span,{...a,ref:t}):null});lA.displayName=oA;function uA(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Hq(e,{referrerPolicy:t,crossOrigin:n}){const i=Bq(),a=_.useRef(null),r=i?(a.current||(a.current=new window.Image),a.current):null,[s,o]=_.useState(()=>uA(r,e));return zi(()=>{o(uA(r,e))},[r,e]),zi(()=>{const l=d=>()=>{o(d)};if(!r)return;const u=l("loaded"),c=l("error");return r.addEventListener("load",u),r.addEventListener("error",c),t&&(r.referrerPolicy=t),typeof n=="string"&&(r.crossOrigin=n),()=>{r.removeEventListener("load",u),r.removeEventListener("error",c)}},[r,n,t]),s}var cA=aA,dA=sA,fA=lA;function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},K0.apply(null,arguments)}function Fq(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var hA,pA;typeof document<"u"&&(hA=document),typeof window<"u"&&(pA=window);var Vq=pn.createContext({document:hA,window:pA}),Yq=["children","head","initialContent","src","mountTarget"],Q0=_.forwardRef((e,t)=>{var{children:n,head:i,initialContent:a,src:r,mountTarget:s}=e,o=Fq(e,Yq),[l,u]=_.useState(!1),[c,d]=_.useState(),f=T=>{T&&d(T)};_.useImperativeHandle(t,()=>c,[c]);var h=a||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var T=g();return s?T==null?void 0:T.querySelector(s):T==null?void 0:T.body},E=_.useRef(),m=_.useCallback(T=>{E.current=T;var S=()=>setInterval(()=>m(T),500);clearInterval(S()),l||u(!0)},[l]);_.useMemo(()=>{!r&&o.onLoad&&l&&o.onLoad(E.current)},[l]),_.useEffect(()=>{if(c&&!r){var T;(T=c.contentWindow)==null||T.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!r){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var y=()=>{var T,S=g(),A=(T=g())==null?void 0:T.head,D=b(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=v.jsx(Vq.Provider,{value:{document:S,window:L},children:n});return[A&&i&&ml.createPortal(i,A),c&&D&&ml.createPortal(B,D)]},x={};return r?(delete x.srcDoc,x.src=r,x.onLoad=o.onLoad):x.srcDoc=h,v.jsx("iframe",K0({title:o.title,ref:f},o,{onLoad:m},x,{children:l&&y()}))});Q0.displayName="IFrame";var qq=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Gq="VisuallyHidden",mA=_.forwardRef((e,t)=>v.jsx(Ln.span,{...e,ref:t,style:{...qq,...e.style}}));mA.displayName=Gq;var $q=mA,[Qd,_J]=Oc("Tooltip",[Uc]),Wd=Uc(),gA="TooltipProvider",Xq=700,W0="tooltip.open",[Kq,Z0]=Qd(gA),bA=e=>{const{__scopeTooltip:t,delayDuration:n=Xq,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:r}=e,s=_.useRef(!0),o=_.useRef(!1),l=_.useRef(0);return _.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),v.jsx(Kq,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:o,onPointerInTransitChange:_.useCallback(u=>{o.current=u},[]),disableHoverableContent:a,children:r})};bA.displayName=gA;var fu="Tooltip",[Qq,Zd]=Qd(fu),vA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:a,onOpenChange:r,disableHoverableContent:s,delayDuration:o}=e,l=Z0(fu,e.__scopeTooltip),u=Wd(t),[c,d]=_.useState(null),f=U1(),h=_.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,E=_.useRef(!1),[m,y]=_y({prop:i,defaultProp:a??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(W0))):l.onClose(),r==null||r(D)},caller:fu}),x=_.useMemo(()=>m?E.current?"delayed-open":"instant-open":"closed",[m]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,E.current=!1,y(!0)},[y]),S=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{E.current=!0,y(!0),h.current=0},b)},[b,y]);return _.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),v.jsx(vy,{...u,children:v.jsx(Qq,{scope:t,contentId:f,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{l.isOpenDelayedRef.current?A():T()},[l.isOpenDelayedRef,A,T]),onTriggerLeave:_.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g,children:n})})};vA.displayName=fu;var J0="TooltipTrigger",yA=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Zd(J0,n),r=Z0(J0,n),s=Wd(n),o=_.useRef(null),l=Bi(t,o,a.onTriggerChange),u=_.useRef(!1),c=_.useRef(!1),d=_.useCallback(()=>u.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),v.jsx(mp,{asChild:!0,...s,children:v.jsx(Ln.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:_n(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!r.isPointerInTransitRef.current&&(a.onTriggerEnter(),c.current=!0)}),onPointerLeave:_n(e.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:_n(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_n(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:_n(e.onBlur,a.onClose),onClick:_n(e.onClick,a.onClose)})})});yA.displayName=J0;var Wq="TooltipPortal",[EJ,Zq]=Qd(Wq,{forceMount:void 0}),mo="TooltipContent",xA=_.forwardRef((e,t)=>{const n=Zq(mo,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...r}=e,s=Zd(mo,e.__scopeTooltip);return v.jsx(gp,{present:i||s.open,children:s.disableHoverableContent?v.jsx(_A,{side:a,...r,ref:t}):v.jsx(Jq,{side:a,...r,ref:t})})}),Jq=_.forwardRef((e,t)=>{const n=Zd(mo,e.__scopeTooltip),i=Z0(mo,e.__scopeTooltip),a=_.useRef(null),r=Bi(t,a),[s,o]=_.useState(null),{trigger:l,onClose:u}=n,c=a.current,{onPointerInTransitChange:d}=i,f=_.useCallback(()=>{o(null),d(!1)},[d]),h=_.useCallback((g,b)=>{const E=g.currentTarget,m={x:g.clientX,y:g.clientY},y=aG(m,E.getBoundingClientRect()),x=rG(m,y),T=sG(b.getBoundingClientRect()),S=lG([...x,...T]);o(S),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(l&&c){const g=E=>h(E,c),b=E=>h(E,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,f]),_.useEffect(()=>{if(s){const g=b=>{const E=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(E))||(c==null?void 0:c.contains(E)),x=!oG(m,s);y?f():x&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,f]),v.jsx(_A,{...e,ref:r})}),[eG,tG]=Qd(fu,{isInside:!1}),nG=VN("TooltipContent"),_A=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:r,onPointerDownOutside:s,...o}=e,l=Zd(mo,n),u=Wd(n),{onClose:c}=l;return _.useEffect(()=>(document.addEventListener(W0,c),()=>document.removeEventListener(W0,c)),[c]),_.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),v.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:v.jsxs(yy,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(nG,{children:i}),v.jsx(eG,{scope:n,isInside:!0,children:v.jsx($q,{id:l.contentId,role:"tooltip",children:a||i})})]})})});xA.displayName=mo;var EA="TooltipArrow",iG=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Wd(n);return tG(EA,n).isInside?null:v.jsx(xy,{...a,...i,ref:t})});iG.displayName=EA;function aG(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,i,a,r)){case r:return"left";case a:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function rG(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function sG(e){const{top:t,right:n,bottom:i,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:i},{x:a,y:i}]}function oG(e,t){const{x:n,y:i}=e;let a=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const o=t[r],l=t[s],u=o.x,c=o.y,d=l.x,f=l.y;c>i!=f>i&&n<(d-u)*(i-c)/(f-c)+u&&(a=!a)}return a}function lG(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),uG(t)}function uG(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const a=e[i];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const a=e[i];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var cG=bA,dG=vA,fG=yA,TA=xA;function Jd(e){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jd(e)}var hG=/^\s+/,pG=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var n=mG(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,i,a,r,s,o;return n=t.r/255,i=t.g/255,a=t.b/255,n<=.03928?r=n/12.92:r=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*r+.7152*s+.0722*o},setAlpha:function(t){return this._a=OA(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=SA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=SA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+i+"%, "+a+"%)":"hsva("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=wA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+i+"%, "+a+"%)":"hsla("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return AA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return yG(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ct(this._r,255)*100)+"%",g:Math.round(ct(this._g,255)*100)+"%",b:Math.round(ct(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%)":"rgba("+Math.round(ct(this._r,255)*100)+"%, "+Math.round(ct(this._g,255)*100)+"%, "+Math.round(ct(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:RG[AA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+CA(this._r,this._g,this._b,this._a),i=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var r=de(t);i="#"+CA(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+i+")"},toString:function(t){var n=!!t;t=t||this._format;var i=!1,a=this._a<1&&this._a>=0,r=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return r?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(t,n){var i=t.apply(null,[this].concat([].slice.call(n)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(TG,arguments)},brighten:function(){return this._applyModification(wG,arguments)},darken:function(){return this._applyModification(SG,arguments)},desaturate:function(){return this._applyModification(xG,arguments)},saturate:function(){return this._applyModification(_G,arguments)},greyscale:function(){return this._applyModification(EG,arguments)},spin:function(){return this._applyModification(AG,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(OG,arguments)},complement:function(){return this._applyCombination(CG,arguments)},monochromatic:function(){return this._applyCombination(NG,arguments)},splitcomplement:function(){return this._applyCombination(kG,arguments)},triad:function(){return this._applyCombination(kA,[3])},tetrad:function(){return this._applyCombination(kA,[4])}},de.fromRatio=function(e,t){if(Jd(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hu(e[i]));e=n}return de(e,t)};function mG(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,r=null,s=!1,o=!1;return typeof e=="string"&&(e=IG(e)),Jd(e)=="object"&&(ga(e.r)&&ga(e.g)&&ga(e.b)?(t=gG(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ga(e.h)&&ga(e.s)&&ga(e.v)?(i=hu(e.s),a=hu(e.v),t=vG(e.h,i,a),s=!0,o="hsv"):ga(e.h)&&ga(e.s)&&ga(e.l)&&(i=hu(e.s),r=hu(e.l),t=bG(e.h,i,r),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=OA(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function gG(e,t,n){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(n,255)*255}}function wA(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=(i+a)/2;if(i==a)r=s=0;else{var l=i-a;switch(s=o>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,l:o}}function bG(e,t,n){var i,a,r;e=ct(e,360),t=ct(t,100),n=ct(n,100);function s(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*6:u}if(t===0)i=a=r=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=s(l,o,e+1/3),a=s(l,o,e),r=s(l,o,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function SA(e,t,n){e=ct(e,255),t=ct(t,255),n=ct(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=i,l=i-a;if(s=i===0?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,v:o}}function vG(e,t,n){e=ct(e,360)*6,t=ct(t,100),n=ct(n,100);var i=Math.floor(e),a=e-i,r=n*(1-t),s=n*(1-a*t),o=n*(1-(1-a)*t),l=i%6,u=[n,s,r,r,o,n][l],c=[o,n,n,s,r,r][l],d=[r,r,o,n,n,s][l];return{r:u*255,g:c*255,b:d*255}}function AA(e,t,n,i){var a=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function yG(e,t,n,i,a){var r=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16)),Oi(NA(i))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function CA(e,t,n,i){var a=[Oi(NA(i)),Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return a.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function xG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s-=t/100,n.s=ef(n.s),de(n)}function _G(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s+=t/100,n.s=ef(n.s),de(n)}function EG(e){return de(e).desaturate(100)}function TG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l+=t/100,n.l=ef(n.l),de(n)}function wG(e,t){t=t===0?0:t||10;var n=de(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),de(n)}function SG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l-=t/100,n.l=ef(n.l),de(n)}function AG(e,t){var n=de(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,de(n)}function CG(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function kA(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=de(e).toHsl(),i=[de(e)],a=360/t,r=1;r<t;r++)i.push(de({h:(n.h+r*a)%360,s:n.s,l:n.l}));return i}function kG(e){var t=de(e).toHsl(),n=t.h;return[de(e),de({h:(n+72)%360,s:t.s,l:t.l}),de({h:(n+216)%360,s:t.s,l:t.l})]}function OG(e,t,n){t=t||6,n=n||30;var i=de(e).toHsl(),a=360/n,r=[de(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(de(i));return r}function NG(e,t){t=t||6;for(var n=de(e).toHsv(),i=n.h,a=n.s,r=n.v,s=[],o=1/t;t--;)s.push(de({h:i,s:a,v:r})),r=(r+o)%1;return s}de.mix=function(e,t,n){n=n===0?0:n||50;var i=de(e).toRgb(),a=de(t).toRgb(),r=n/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return de(s)},de.readability=function(e,t){var n=de(e),i=de(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},de.isReadable=function(e,t,n){var i=de.readability(e,t),a,r;switch(r=!1,a=PG(n),a.level+a.size){case"AAsmall":case"AAAlarge":r=i>=4.5;break;case"AAlarge":r=i>=3;break;case"AAAsmall":r=i>=7;break}return r},de.mostReadable=function(e,t,n){var i=null,a=0,r,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)r=de.readability(e,t[u]),r>a&&(a=r,i=de(t[u]));return de.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],n))};var eg=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},RG=de.hexNames=DG(eg);function DG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function OA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){MG(e)&&(e="100%");var n=LG(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ef(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function MG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function LG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Oi(e){return e.length==1?"0"+e:""+e}function hu(e){return e<=1&&(e=e*100+"%"),e}function NA(e){return Math.round(parseFloat(e)*255).toString(16)}function RA(e){return Fn(e)/255}var Ni=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ga(e){return!!Ni.CSS_UNIT.exec(e)}function IG(e){e=e.replace(hG,"").replace(pG,"").toLowerCase();var t=!1;if(eg[e])e=eg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:RA(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:RA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function PG(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var DA={exports:{}},BG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zG=BG,jG=zG;function MA(){}function LA(){}LA.resetWarningCache=MA;var UG=function(){function e(i,a,r,s,o,l){if(l!==jG){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:LA,resetWarningCache:MA};return n.PropTypes=n,n};DA.exports=UG();var HG=DA.exports;const Ke=hl(HG),FG=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 go(e,t,n){const i=VG(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&IA(i,"path",r),IA(i,"relativePath",r),i}function VG(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=FG.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function IA(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const YG=[".DS_Store","Thumbs.db"];function qG(e){return ua(this,void 0,void 0,function*(){return tf(e)&&GG(e.dataTransfer)?QG(e.dataTransfer,e.type):$G(e)?XG(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?KG(e):[]})}function GG(e){return tf(e)}function $G(e){return tf(e)&&tf(e.target)}function tf(e){return typeof e=="object"&&e!==null}function XG(e){return tg(e.target.files).map(t=>go(t))}function KG(e){return ua(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>go(n))})}function QG(e,t){return ua(this,void 0,void 0,function*(){if(e.items){const n=tg(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(WG));return PA(BA(i))}return PA(tg(e.files).map(n=>go(n)))})}function PA(e){return e.filter(t=>YG.indexOf(t.name)===-1)}function tg(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function WG(e){if(typeof e.webkitGetAsEntry!="function")return zA(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?jA(t):zA(e,t)}function BA(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?BA(n):[n]],[])}function zA(e,t){return ua(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,go(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return go(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function ZG(e){return ua(this,void 0,void 0,function*(){return e.isDirectory?jA(e):JG(e)})}function jA(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>ua(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map(ZG));a.push(o),r()}else try{const o=yield Promise.all(a);n(o)}catch(o){i(o)}}),s=>{i(s)})}r()})}function JG(e){return ua(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=go(i,e.fullPath);t(a)},i=>{n(i)})})})}var ng=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var o=s.trim().toLowerCase();return o.charAt(0)==="."?i.toLowerCase().endsWith(o):o.endsWith("/*")?r===o.replace(/\/.*$/,""):a===o})}return!0};function UA(e){return n$(e)||t$(e)||YA(e)||e$()}function e$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
304
304
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n$(e){if(Array.isArray(e))return ig(e)}function HA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function FA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(n),!0).forEach(function(i){VA(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pu(e,t){return r$(e)||a$(e,t)||YA(e,t)||i$()}function i$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
305
305
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YA(e,t){if(e){if(typeof e=="string")return ig(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 ig(e,t)}}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw o}}return i}}function r$(e){if(Array.isArray(e))return e}var s$=typeof ng=="function"?ng:ng.default,o$="file-invalid-type",l$="file-too-large",u$="file-too-small",c$="too-many-files",d$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:o$,message:"File type must be ".concat(i)}},qA=function(t){return{code:l$,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},GA=function(t){return{code:u$,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},f$={code:c$,message:"Too many files"};function $A(e,t){var n=e.type==="application/x-moz-file"||s$(e,t);return[n,n?null:d$(t)]}function XA(e,t,n){if(es(e.size))if(es(t)&&es(n)){if(e.size>n)return[!1,qA(n)];if(e.size<t)return[!1,GA(t)]}else{if(es(t)&&e.size<t)return[!1,GA(t)];if(es(n)&&e.size>n)return[!1,qA(n)]}return[!0,null]}function es(e){return e!=null}function h$(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,o=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(l){var u=$A(l,n),c=pu(u,1),d=c[0],f=XA(l,i,a),h=pu(f,1),g=h[0],b=o?o(l):null;return d&&g&&!b})}function nf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function af(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 KA(e){e.preventDefault()}function p$(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function m$(e){return e.indexOf("Edge/")!==-1}function g$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return p$(e)||m$(e)}function Ki(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return t.some(function(o){return!nf(i)&&o&&o.apply(void 0,[i].concat(r)),nf(i)})}}function b$(){return"showOpenFilePicker"in window}function v$(e){if(es(e)){var t=Object.entries(e).filter(function(n){var i=pu(n,2),a=i[0],r=i[1],s=!0;return QA(a)||(console.warn('Skipped "'.concat(a,'" 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.')),s=!1),(!Array.isArray(r)||!r.every(WA))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,i){var a=pu(i,2),r=a[0],s=a[1];return FA(FA({},n),{},VA({},r,s))},{});return[{description:"Files",accept:t}]}return e}function y$(e){if(es(e))return Object.entries(e).reduce(function(t,n){var i=pu(n,2),a=i[0],r=i[1];return[].concat(UA(t),[a],UA(r))},[]).filter(function(t){return QA(t)||WA(t)}).join(",")}function x$(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function _$(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function QA(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function WA(e){return/^.*\.[\w]+$/.test(e)}var E$=["children"],T$=["open"],w$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],S$=["refKey","onChange","onClick"];function A$(e){return O$(e)||k$(e)||ZA(e)||C$()}function C$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
306
306
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function O$(e){if(Array.isArray(e))return rg(e)}function ag(e,t){return D$(e)||R$(e,t)||ZA(e,t)||N$()}function N$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
307
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZA(e,t){if(e){if(typeof e=="string")return rg(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 rg(e,t)}}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function R$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw o}}return i}}function D$(e){if(Array.isArray(e))return e}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(i){sg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rf(e,t){if(e==null)return{};var n=M$(e,t),i,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function M$(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r<i.length;r++)a=i[r],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var og=E.forwardRef(function(e,t){var n=e.children,i=rf(e,E$),a=tC(i),r=a.open,s=rf(a,T$);return E.useImperativeHandle(t,function(){return{open:r}},[r]),pn.createElement(E.Fragment,null,n(pt(pt({},s),{},{open:r})))});og.displayName="Dropzone";var eC={disabled:!1,getFilesFromEvent:qG,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};og.defaultProps=eC,og.propTypes={children:Ke.func,accept:Ke.objectOf(Ke.arrayOf(Ke.string)),multiple:Ke.bool,preventDropOnDocument:Ke.bool,noClick:Ke.bool,noKeyboard:Ke.bool,noDrag:Ke.bool,noDragEventsBubbling:Ke.bool,minSize:Ke.number,maxSize:Ke.number,maxFiles:Ke.number,disabled:Ke.bool,getFilesFromEvent:Ke.func,onFileDialogCancel:Ke.func,onFileDialogOpen:Ke.func,useFsAccessApi:Ke.bool,autoFocus:Ke.bool,onDragEnter:Ke.func,onDragLeave:Ke.func,onDragOver:Ke.func,onDrop:Ke.func,onDropAccepted:Ke.func,onDropRejected:Ke.func,onError:Ke.func,validator:Ke.func};var lg={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function tC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=pt(pt({},eC),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,_=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,x=t.preventDropOnDocument,T=t.noClick,S=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,O=E.useMemo(function(){return y$(n)},[n]),Y=E.useMemo(function(){return v$(n)},[n]),U=E.useMemo(function(){return typeof _=="function"?_:nC},[_]),ae=E.useMemo(function(){return typeof b=="function"?b:nC},[b]),ee=E.useRef(null),Q=E.useRef(null),F=E.useReducer(L$,lg),V=ag(F,2),H=V[0],te=V[1],N=H.isFocused,be=H.isFileDialogActive,tt=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&b$()),M=function(){!tt.current&&be&&setTimeout(function(){if(Q.current){var he=Q.current.files;he.length||(te({type:"closeDialog"}),ae())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,be,ae,tt]);var Be=E.useRef([]),ge=function(he){ee.current&&ee.current.contains(he.target)||(he.preventDefault(),Be.current=[])};E.useEffect(function(){return x&&(document.addEventListener("dragover",KA,!1),document.addEventListener("drop",ge,!1)),function(){x&&(document.removeEventListener("dragover",KA),document.removeEventListener("drop",ge))}},[ee,x]),E.useEffect(function(){return!i&&y&&ee.current&&ee.current.focus(),function(){}},[ee,y,i]);var ze=E.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),dn=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[].concat(A$(Be.current),[ne.target]),af(ne)&&Promise.resolve(a(ne)).then(function(he){if(!(nf(ne)&&!D)){var z=he.length,$=z>0&&h$({files:he,accept:O,minSize:s,maxSize:r,multiple:o,maxFiles:l,validator:B}),ue=z>0&&!$;te({isDragAccept:$,isDragReject:ue,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(he){return ze(he)})},[a,u,ze,D,O,s,r,o,l,B]),We=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=af(ne);if(he&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return he&&d&&d(ne),!1},[d,D]),$t=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=Be.current.filter(function($){return ee.current&&ee.current.contains($)}),z=he.indexOf(ne.target);z!==-1&&he.splice(z,1),Be.current=he,!(he.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),af(ne)&&c&&c(ne))},[ee,c,D]),Mt=E.useCallback(function(ne,he){var z=[],$=[];ne.forEach(function(ue){var _e=$A(ue,O),ve=ag(_e,2),Xt=ve[0],Dn=ve[1],yn=XA(ue,s,r),Jn=ag(yn,2),Mn=Jn[0],It=Jn[1],ei=B?B(ue):null;if(Xt&&Mn&&!ei)z.push(ue);else{var xn=[Dn,It];ei&&(xn=xn.concat(ei)),$.push({file:ue,errors:xn.filter(function(Pa){return Pa})})}}),(!o&&z.length>1||o&&l>=1&&z.length>l)&&(z.forEach(function(ue){$.push({file:ue,errors:[f$]})}),z.splice(0)),te({acceptedFiles:z,fileRejections:$,isDragReject:$.length>0,type:"setFiles"}),f&&f(z,$,he),$.length>0&&g&&g($,he),z.length>0&&h&&h(z,he)},[te,o,O,s,r,l,f,h,g,B]),Ut=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[],af(ne)&&Promise.resolve(a(ne)).then(function(he){nf(ne)&&!D||Mt(he,ne)}).catch(function(he){return ze(he)}),te({type:"reset"})},[a,Mt,ze,D]),Lt=E.useCallback(function(){if(tt.current){te({type:"openDialog"}),U();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(he){return a(he)}).then(function(he){Mt(he,null),te({type:"closeDialog"})}).catch(function(he){x$(he)?(ae(he),te({type:"closeDialog"})):_$(he)?(tt.current=!1,Q.current?(Q.current.value=null,Q.current.click()):ze(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."))):ze(he)});return}Q.current&&(te({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[te,U,ae,m,Mt,ze,Y,o]),re=E.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Lt())},[ee,Lt]),yi=E.useCallback(function(){te({type:"focus"})},[]),Li=E.useCallback(function(){te({type:"blur"})},[]),Ii=E.useCallback(function(){T||(g$()?setTimeout(Lt,0):Lt())},[T,Lt]),nt=function(he){return i?null:he},fn=function(he){return S?null:nt(he)},tn=function(he){return A?null:nt(he)},At=function(he){D&&he.stopPropagation()},Es=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,z=he===void 0?"ref":he,$=ne.role,ue=ne.onKeyDown,_e=ne.onFocus,ve=ne.onBlur,Xt=ne.onClick,Dn=ne.onDragEnter,yn=ne.onDragOver,Jn=ne.onDragLeave,Mn=ne.onDrop,It=rf(ne,w$);return pt(pt(sg({onKeyDown:fn(Ki(ue,re)),onFocus:fn(Ki(_e,yi)),onBlur:fn(Ki(ve,Li)),onClick:nt(Ki(Xt,Ii)),onDragEnter:tn(Ki(Dn,dn)),onDragOver:tn(Ki(yn,We)),onDragLeave:tn(Ki(Jn,$t)),onDrop:tn(Ki(Mn,Ut)),role:typeof $=="string"&&$!==""?$:"presentation"},z,ee),!i&&!S?{tabIndex:0}:{}),It)}},[ee,re,yi,Li,Ii,dn,We,$t,Ut,S,A,i]),Rn=E.useCallback(function(ne){ne.stopPropagation()},[]),Ia=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,z=he===void 0?"ref":he,$=ne.onChange,ue=ne.onClick,_e=rf(ne,S$),ve=sg({accept:O,multiple:o,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:nt(Ki($,Ut)),onClick:nt(Ki(ue,Rn)),tabIndex:-1},z,Q);return pt(pt({},ve),_e)}},[Q,n,o,Ut,i]);return pt(pt({},H),{},{isFocused:N&&!i,getRootProps:Es,getInputProps:Ia,rootRef:ee,inputRef:Q,open:nt(Lt)})}function L$(e,t){switch(t.type){case"focus":return pt(pt({},e),{},{isFocused:!0});case"blur":return pt(pt({},e),{},{isFocused:!1});case"openDialog":return pt(pt({},lg),{},{isFileDialogActive:!0});case"closeDialog":return pt(pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return pt(pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return pt(pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return pt({},lg);default:return e}}function nC(){}var iC={};const I$=yN(YR);var sf={},aC;function P$(){if(aC)return sf;aC=1,Object.defineProperty(sf,"__esModule",{value:!0});var e=E;function t(){var n=e.useRef(!1),i=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),i}return sf.default=t,sf}Object.defineProperty(iC,"__esModule",{value:!0});var ug=I$,cg=E,B$=ug.__importDefault(P$());function z$(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=cg.useRef(0),a=B$.default(),r=cg.useState(n),s=r[0],o=r[1],l=cg.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=++i.current;return s.loading||o(function(f){return ug.__assign(ug.__assign({},f),{loading:!0})}),e.apply(void 0,u).then(function(f){return a()&&d===i.current&&o({value:f,loading:!1}),f},function(f){return a()&&d===i.current&&o({error:f,loading:!1}),f})},t);return[s,l]}var j$=iC.default=z$,je;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const r={};for(const s of a)r[s]=s;return r},e.getValidEnumValues=a=>{const r=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(const o of r)s[o]=a[o];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(r){return a[r]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const r=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&r.push(s);return r},e.find=(a,r)=>{for(const s of a)if(r(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}e.joinValues=i,e.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(je||(je={}));var rC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(rC||(rC={}));const oe=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),nr=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}},J=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ba extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(r){return r.message},i={_errors:[]},a=r=>{for(const s of r.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let o=i,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return a(this),i}static assert(t){if(!(t instanceof ba))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const a of this.issues)if(a.path.length>0){const r=a.path[0];n[r]=n[r]||[],n[r].push(t(a))}else i.push(t(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}ba.create=e=>new ba(e);const dg=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:n="Invalid function arguments";break;case J.invalid_return_type:n="Invalid function return type";break;case J.invalid_date:n="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case J.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case J.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case J.custom:n="Invalid input";break;case J.invalid_intersection_types:n="Intersection results could not be merged";break;case J.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let U$=dg;function H$(){return U$}const F$=e=>{const{data:t,path:n,errorMaps:i,issueData:a}=e,r=[...n,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="";const l=i.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...a,path:r,message:o}};function ie(e,t){const n=H$(),i=F$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dg?void 0:dg].filter(a=>!!a)});e.common.issues.push(i)}class Vn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const a of n){if(a.status==="aborted")return ye;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const a of n){const r=await a.key,s=await a.value;i.push({key:r,value:s})}return Vn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const a of n){const{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return ye;r.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[r.value]=s.value)}return{status:t.value,value:i}}}const ye=Object.freeze({status:"aborted"}),mu=e=>({status:"dirty",value:e}),ui=e=>({status:"valid",value:e}),sC=e=>e.status==="aborted",oC=e=>e.status==="dirty",bo=e=>e.status==="valid",of=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class ir{constructor(t,n,i,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const lC=(e,t)=>{if(bo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ba(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:a}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??i??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:a}}class Pe{get description(){return this._def.description}_getType(t){return nr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vn,ctx:{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(of(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return lC(i,a)}"~validate"(t){var i,a;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return bo(r)?{value:r.value}:{issues:n.common.issues}}catch(r){(a=(i=r==null?void 0:r.message)==null?void 0:i.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>bo(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parse({data:t,path:i.path,parent:i}),r=await(of(a)?a:Promise.resolve(a));return lC(i,r)}refine(t,n){const i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,r)=>{const s=t(a),o=()=>r.addIssue({code:J.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(t){return new xo({schema:this,typeName:xe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return sr.create(this,this._def)}nullable(){return _o.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qi.create(this)}promise(){return df.create(this,this._def)}or(t){return uf.create([this,t],this._def)}and(t){return cf.create(this,t,this._def)}transform(t){return new xo({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pg({...Oe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new dX({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mg({...Oe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return bg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const V$=/^c[^\s-]{8,}$/i,Y$=/^[0-9a-z]+$/,q$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,G$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$$=/^[a-z0-9_-]{21}$/i,X$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Q$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,W$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fg;const Z$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nX=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iX=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",aX=new RegExp(`^${uC}$`);function cC(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function rX(e){return new RegExp(`^${cC(e)}$`)}function sX(e){let t=`${uC}T${cC(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oX(e,t){return!!((t==="v4"||!t)&&Z$.test(e)||(t==="v6"||!t)&&eX.test(e))}function lX(e,t){if(!X$.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function uX(e,t){return!!((t==="v4"||!t)&&J$.test(e)||(t==="v6"||!t)&&tX.test(e))}class ar extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.string,received:r.parsedType}),ye}const i=new Vn;let a;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")t.data.length>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const s=t.data.length>r.value,o=t.data.length<r.value;(s||o)&&(a=this._getOrReturnCtx(t,a),s?ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):o&&ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")Q$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"email",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")fg||(fg=new RegExp(W$,"u")),fg.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"emoji",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")G$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"uuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")$$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"nanoid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")V$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")Y$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid2",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")q$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ulid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ie(a,{validation:"url",code:J.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"regex",code:J.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?sX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?aX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?rX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?K$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"duration",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?oX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ip",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?lX(t.data,r.alg)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"jwt",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?uX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cidr",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?nX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?iX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64url",code:J.invalid_string,message:r.message}),i.dirty()):je.assertNever(r);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(a=>t.test(a),{validation:n,code:J.invalid_string,...ce.errToObj(i)})}_addCheck(t){return new ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ce.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ar.create=e=>new ar({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function cX(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=n>i?n:i,r=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return r%s/10**a}class gu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==oe.number){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.number,received:r.parsedType}),ye}let i;const a=new Vn;for(const r of this._def.checks)r.kind==="int"?je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?cX(t.data,r.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_finite,message:r.message}),a.dirty()):je.assertNever(r);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new gu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}gu.create=e=>new gu({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class bu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==oe.bigint)return this._getInvalidInput(t);let i;const a=new Vn;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):je.assertNever(r);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new bu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new bu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}bu.create=e=>new bu({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class dC extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.boolean,received:i.parsedType}),ye}return ui(t.data)}}dC.create=e=>new dC({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class lf extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.date,received:r.parsedType}),ye}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_date}),ye}const i=new Vn;let a;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):je.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new lf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}lf.create=e=>new lf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...Oe(e)});class fC extends Pe{_parse(t){if(this._getType(t)!==oe.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.symbol,received:i.parsedType}),ye}return ui(t.data)}}fC.create=e=>new fC({typeName:xe.ZodSymbol,...Oe(e)});class hC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.undefined,received:i.parsedType}),ye}return ui(t.data)}}hC.create=e=>new hC({typeName:xe.ZodUndefined,...Oe(e)});class pC extends Pe{_parse(t){if(this._getType(t)!==oe.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.null,received:i.parsedType}),ye}return ui(t.data)}}pC.create=e=>new pC({typeName:xe.ZodNull,...Oe(e)});class mC extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return ui(t.data)}}mC.create=e=>new mC({typeName:xe.ZodAny,...Oe(e)});class gC extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ui(t.data)}}gC.create=e=>new gC({typeName:xe.ZodUnknown,...Oe(e)});class rr extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.never,received:n.parsedType}),ye}}rr.create=e=>new rr({typeName:xe.ZodNever,...Oe(e)});class bC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.void,received:i.parsedType}),ye}return ui(t.data)}}bC.create=e=>new bC({typeName:xe.ZodVoid,...Oe(e)});class Qi extends Pe{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),a=this._def;if(n.parsedType!==oe.array)return ie(n,{code:J.invalid_type,expected:oe.array,received:n.parsedType}),ye;if(a.exactLength!==null){const s=n.data.length>a.exactLength.value,o=n.data.length<a.exactLength.value;(s||o)&&(ie(n,{code:s?J.too_big:J.too_small,minimum:o?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ie(n,{code:J.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ie(n,{code:J.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>a.type._parseAsync(new ir(n,s,n.path,o)))).then(s=>Vn.mergeArray(i,s));const r=[...n.data].map((s,o)=>a.type._parseSync(new ir(n,s,n.path,o)));return Vn.mergeArray(i,r)}get element(){return this._def.type}min(t,n){return new Qi({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Qi({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Qi({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Qi.create=(e,t)=>new Qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(t)});function vo(e){if(e instanceof Nt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=sr.create(vo(i))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Qi?new Qi({...e._def,type:vo(e.element)}):e instanceof sr?sr.create(vo(e.unwrap())):e instanceof _o?_o.create(vo(e.unwrap())):e instanceof ts?ts.create(e.items.map(t=>vo(t))):e}class Nt extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==oe.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:oe.object,received:u.parsedType}),ye}const{status:i,ctx:a}=this._processInputParams(t),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof rr&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=r[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ir(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof rr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(ie(a,{code:J.unrecognized_keys,keys:o}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ir(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Vn.mergeObjectSync(i,u)):Vn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Nt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var r,s;const a=((s=(r=this._def).errorMap)==null?void 0:s.call(r,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:ce.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const n={};for(const i of je.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of je.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}deepPartial(){return vo(this)}partial(t){const n={};for(const i of je.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?n[i]=a:n[i]=a.optional()}return new Nt({...this._def,shape:()=>n})}required(t){const n={};for(const i of je.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof sr;)r=r._def.innerType;n[i]=r}return new Nt({...this._def,shape:()=>n})}keyof(){return _C(je.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)});class uf extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function a(r){for(const o of r)if(o.result.status==="valid")return o.result;for(const o of r)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=r.map(o=>new ba(o.ctx.common.issues));return ie(n,{code:J.invalid_union,unionErrors:s}),ye}if(n.common.async)return Promise.all(i.map(async r=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let r;const s=[];for(const l of i){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;const o=s.map(l=>new ba(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}uf.create=(e,t)=>new uf({options:e,typeName:xe.ZodUnion,...Oe(t)});function hg(e,t){const n=nr(e),i=nr(t);if(e===t)return{valid:!0,data:e};if(n===oe.object&&i===oe.object){const a=je.objectKeys(t),r=je.objectKeys(e).filter(o=>a.indexOf(o)!==-1),s={...e,...t};for(const o of r){const l=hg(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===oe.array&&i===oe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r<e.length;r++){const s=e[r],o=t[r],l=hg(s,o);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return n===oe.date&&i===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cf extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=(r,s)=>{if(sC(r)||sC(s))return ye;const o=hg(r.value,s.value);return o.valid?((oC(r)||oC(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(i,{code:J.invalid_intersection_types}),ye)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}cf.create=(e,t,n)=>new cf({left:e,right:t,typeName:xe.ZodIntersection,...Oe(n)});class ts extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.array)return ie(i,{code:J.invalid_type,expected:oe.array,received:i.parsedType}),ye;if(i.data.length<this._def.items.length)return ie(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const r=[...i.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ir(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>Vn.mergeArray(n,s)):Vn.mergeArray(n,r)}get items(){return this._def.items}rest(t){return new ts({...this._def,rest:t})}}ts.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ts({items:e,typeName:xe.ZodTuple,rest:null,...Oe(t)})};class vC extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.map)return ie(i,{code:J.invalid_type,expected:oe.map,received:i.parsedType}),ye;const a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],u)=>({key:a._parse(new ir(i,o,i.path,[u,"key"])),value:r._parse(new ir(i,l,i.path,[u,"value"]))}));if(i.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}vC.create=(e,t,n)=>new vC({valueType:t,keyType:e,typeName:xe.ZodMap,...Oe(n)});class vu extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.set)return ie(i,{code:J.invalid_type,expected:oe.set,received:i.parsedType}),ye;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(ie(i,{code:J.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(ie(i,{code:J.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const r=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...i.data.values()].map((l,u)=>r._parse(new ir(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new vu({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new vu({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vu.create=(e,t)=>new vu({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...Oe(t)});class yC extends Pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yC.create=(e,t)=>new yC({getter:e,typeName:xe.ZodLazy,...Oe(t)});class xC extends Pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:J.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}xC.create=(e,t)=>new xC({value:e,typeName:xe.ZodLiteral,...Oe(t)});function _C(e,t){return new yo({values:e,typeName:xe.ZodEnum,...Oe(t)})}class yo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:je.joinValues(i),received:n.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:J.invalid_enum_value,options:i}),ye}return ui(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yo.create(t,{...this._def,...n})}exclude(t,n=this._def){return yo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}yo.create=_C;class EC extends Pe{_parse(t){const n=je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==oe.string&&i.parsedType!==oe.number){const a=je.objectValues(n);return ie(i,{expected:je.joinValues(a),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(je.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=je.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:a}),ye}return ui(t.data)}get enum(){return this._def.values}}EC.create=(e,t)=>new EC({values:e,typeName:xe.ZodNativeEnum,...Oe(t)});class df extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:oe.promise,received:n.parsedType}),ye;const i=n.parsedType===oe.promise?n.data:Promise.resolve(n.data);return ui(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:xe.ZodPromise,...Oe(t)});class xo extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=this._def.effect||null,r={addIssue:s=>{ie(i,s),s.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){const s=a.transform(i.data,r);if(i.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?mu(l.value):l});{if(n.value==="aborted")return ye;const o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?ye:o.status==="dirty"||n.value==="dirty"?mu(o.value):o}}if(a.type==="refinement"){const s=o=>{const l=a.refinement(o,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!bo(s))return ye;const o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>bo(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):ye);je.assertNever(a)}}xo.create=(e,t,n)=>new xo({schema:e,typeName:xe.ZodEffects,effect:t,...Oe(n)}),xo.createWithPreprocess=(e,t,n)=>new xo({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...Oe(n)});class sr extends Pe{_parse(t){return this._getType(t)===oe.undefined?ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sr.create=(e,t)=>new sr({innerType:e,typeName:xe.ZodOptional,...Oe(t)});class _o extends Pe{_parse(t){return this._getType(t)===oe.null?ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_o.create=(e,t)=>new _o({innerType:e,typeName:xe.ZodNullable,...Oe(t)});class pg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pg.create=(e,t)=>new pg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class mg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return of(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}mg.create=(e,t)=>new mg({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class TC extends Pe{_parse(t){if(this._getType(t)!==oe.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}TC.create=e=>new TC({typeName:xe.ZodNaN,...Oe(e)});class dX extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class gg extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ye:r.status==="dirty"?(n.dirty(),mu(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ye:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,n){return new gg({in:t,out:n,typeName:xe.ZodPipeline})}}class bg extends Pe{_parse(t){const n=this._def.innerType._parse(t),i=a=>(bo(a)&&(a.value=Object.freeze(a.value)),a);return of(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}}bg.create=(e,t)=>new bg({innerType:e,typeName:xe.ZodReadonly,...Oe(t)});var xe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(xe||(xe={}));const wC=ar.create;rr.create,Qi.create;const fX=Nt.create;uf.create,cf.create,ts.create,yo.create,df.create,sr.create,_o.create;function Ue(e){return{"data-component":e}}const vg=[{kind:"csv",label:"CSV",mimes:["text/csv","application/csv"],extensions:["csv"]},{kind:"excel",label:"Excel",mimes:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],extensions:["xls","xlsx"]}],SC=Object.fromEntries(vg.flatMap(e=>e.mimes.map(t=>[t,e.extensions.map(n=>`.${n}`)])));function AC({type:e,name:t}){var n,i;const a=((n=t.split(".").pop())==null?void 0:n.toLowerCase())??"",r=((i=e.toLowerCase().split(";")[0])==null?void 0:i.trim())??"";return vg.find(s=>a&&s.extensions.includes(a))??vg.find(s=>r&&s.mimes.includes(r))??null}function le(...e){return aL(jx(e))}const Eo={x:2,y:2},va=E.memo(E.forwardRef(({children:e,className:t,scale:n=1.02,off:i=!1},a)=>{const[r,s]=E.useState(!1),[o,l]=E.useState({x:0,y:0});if(i||/translate/.test(e.props.className||""))return e;const u=h=>{var g,b;const{clientX:_,clientY:m}=h,y=h.currentTarget.getBoundingClientRect(),x=_-(y.left+y.width/2),T=m-(y.top+y.height/2),S=Math.max(-1,Math.min(1,x/(y.width/2))),A=Math.max(-1,Math.min(1,T/(y.height/2))),D=S*Eo.x,L=A*Eo.y;l({x:D,y:L}),(b=(g=e.props).onMouseMove)==null||b.call(g,h)},c=()=>{var h,g;s(!0),(g=(h=e.props).onMouseEnter)==null||g.call(h)},d=()=>{var h,g;s(!1),l({x:0,y:0}),(g=(h=e.props).onMouseLeave)==null||g.call(h)},f={"--wobble-x":r?`${o.x}px`:"0px","--wobble-y":r?`${o.y}px`:"0px","--scale":1-(n-1)};return E.cloneElement(e,{ref:a,onMouseMove:u,onMouseEnter:c,onMouseLeave:d,style:{...f,...e.props.style},className:le("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));va.displayName="Wobble";const hX=10,pX=(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),mX=(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),gX=(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),bX=(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}}),vX={right:pX,left:mX,up:gX,down:bX},rt=E.forwardRef(({fadeIn:e="down",distance:t=hX,children:n,snapExit:i=!1,overrides:a={},delay:r=0,...s},o)=>{const l=e?vX[e](t,a,r):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),v.jsx(Fl.div,{ref:o,...s,...l,children:n})});rt.displayName="MotionDiv";const yX=O9(le("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),Tt=E.forwardRef(({className:e,variant:t="default",size:n,asChild:i=!1,...a},r)=>v.jsx(va,{ref:r,children:v.jsx(i?HN:"button",{...Ue("ui_lib/btn"),"data-variant":t,className:le(yX({variant:t,size:n,className:e})),...a})}));Tt.displayName="Button";const CC=E.createContext(null);function xX({children:e}){const[t,n]=E.useState(!1),[i,a]=E.useState(null),r=o=>{a(o),n(!0)},s=()=>{n(!1),setTimeout(()=>{a(null)},200)};return v.jsxs(CC.Provider,{value:{open:r,close:s,isOpen:t,content:i},children:[v.jsx(_X,{}),e]})}function ff(){return E.useContext(CC)||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function _X(){const{contentIframeRef:e}=Ct(),{isOpen:t,content:n,close:i}=ff();return E.useEffect(()=>{var a,r;const s=o=>{o.key==="Escape"&&i()};return(r=(a=e==null?void 0:e.current)==null?void 0:a.contentWindow)==null||r.document.addEventListener("keydown",s),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",s)}},[]),v.jsx(Pt,{mode:"wait",children:t&&n&&v.jsx(rt,{overrides:{initial:{y:0},exit:{y:0}},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm",tabIndex:-1,onClick:i,children:n},"dialog-content")})}function yg({children:e,className:t,withClose:n=!1}){const{close:i}=ff();return v.jsxs("div",{className:le("fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",t),onClick:a=>a.stopPropagation(),children:[e,n&&v.jsxs(Tt,{size:"fit",className:"rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",onClick:i,children:[v.jsx(td,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})}const kC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2 text-center pt-2",e),...t});kC.displayName="DialogerHeader";const OC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2 text-center",e),...t});OC.displayName="DialogerBody";const NC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2",e),...t});NC.displayName="DialogerFooter";const RC=pn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));RC.displayName="DialogerTitle";const DC=pn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));DC.displayName="DialogerDescription";function xg({children:e,trigger:t}){const{open:n}=ff();return E.cloneElement(t,{onClick:()=>n(e)})}const MC=1,LC=5,hf=.5,EX=2.5;function TX(e,t,n,i){if(!n||!i||t<=1)return{x:0,y:0};const a=n.getBoundingClientRect(),r=i.offsetWidth,s=i.offsetHeight,o=Math.max(0,(r*t-a.width)/(2*t)),l=Math.max(0,(s*t-a.height)/(2*t));return{x:Math.min(o,Math.max(-o,e.x)),y:Math.min(l,Math.max(-l,e.y))}}function IC({src:e,alt:t}){const[n,i]=E.useState(1),[a,r]=E.useState({x:0,y:0}),[s,o]=E.useState(!1),l=E.useRef({x:0,y:0}),u=E.useRef({x:0,y:0}),c=E.useRef(null),d=E.useRef(null),f=E.useRef(!1),h=S=>Math.min(LC,Math.max(MC,S)),g=E.useCallback(()=>{i(1),r({x:0,y:0})},[]),b=E.useCallback(()=>{i(S=>h(S+hf))},[]),_=E.useCallback(()=>{i(S=>{const A=h(S-hf);return A<=1&&r({x:0,y:0}),A})},[]);E.useCallback(S=>{S.preventDefault(),S.stopPropagation();const A=S.deltaY>0?-hf:hf;i(D=>{const L=h(D+A);return L<=1&&r({x:0,y:0}),L})},[]);const m=E.useCallback(S=>{S.preventDefault(),f.current=!1,o(!0),l.current={x:S.clientX,y:S.clientY},u.current={...a},S.target.setPointerCapture(S.pointerId)},[a]),y=E.useCallback(S=>{if(!s)return;const A=S.clientX-l.current.x,D=S.clientY-l.current.y;if((Math.abs(A)>3||Math.abs(D)>3)&&(f.current=!0),n<=1)return;const L={x:u.current.x+A/n,y:u.current.y+D/n};r(TX(L,n,c.current,d.current))},[s,n]),x=E.useCallback(()=>{const S=f.current;o(!1),!S&&i(A=>A>1?(r({x:0,y:0}),1):EX)},[]),T=n>1;return v.jsxs("div",{className:"relative size-full flex items-center justify-center select-none",onClick:S=>S.stopPropagation(),children:[v.jsx("div",{ref:c,className:le("overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",T&&"size-full"),onPointerDown:m,onPointerMove:y,onPointerUp:x,onPointerCancel:x,style:{cursor:s?"grabbing":T?"grab":"zoom-in",touchAction:"none"},children:v.jsx("img",{ref:d,src:e,alt:t,className:"block max-w-full object-contain pointer-events-none",draggable:!1,style:{maxHeight:"100vh",transform:`scale(${n}) translate(${a.x}px, ${a.y}px)`,transformOrigin:"center center"}})}),v.jsxs("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100",children:[v.jsx(_g,{onClick:_,label:"Zoom out",disabled:n<=MC,children:v.jsx(CM,{className:"size-3.5"})}),v.jsxs("span",{className:"text-white text-xs font-medium min-w-[3ch] text-center tabular-nums",children:[Math.round(n*100),"%"]}),v.jsx(_g,{onClick:b,label:"Zoom in",disabled:n>=LC,children:v.jsx(AM,{className:"size-3.5"})}),T&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"w-px h-4 bg-white/30 mx-0.5"}),v.jsx(_g,{onClick:g,label:"Reset zoom",children:v.jsx(yM,{className:"size-3.5"})})]})]})]})}function _g({onClick:e,label:t,children:n,disabled:i}){return v.jsx("button",{onClick:e,"aria-label":t,disabled:i,className:"text-white/80 hover:text-white disabled:text-white/30 disabled:hover:bg-transparent p-1.5 rounded-full hover:bg-white/15 transition-colors",children:n})}function PC({url:e,name:t,size:n,icon:i,label:a}){return v.jsx(va,{children:v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:le("block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border","bg-background/80 transition-colors hover:bg-accent/60","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:v.jsxs("div",{className:"flex items-center gap-3 p-3 min-w-0",children:[v.jsx("div",{className:le("flex size-10 shrink-0 items-center justify-center rounded-xl","bg-secondary text-muted-foreground"),"aria-hidden":!0,children:i}),v.jsxs("div",{className:"min-w-0 flex-1 flex flex-col gap-0.5 text-left",children:[v.jsx("span",{className:le("text-xs font-medium text-foreground line-clamp-1","break-words [word-break:break-word]"),children:t}),v.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[(n/1024).toFixed(2)," KB · ",a]})]})]})})})}function BC({attachment:e}){const{name:t,size:n,type:i,url:a}=e,r=i.startsWith("image/"),s=i.startsWith("video/"),o=i.startsWith("audio/"),l=i==="application/pdf";if(o)return v.jsx(va,{children:v.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:v.jsxs("audio",{controls:!0,className:"w-full",children:[v.jsx("source",{src:a,type:i}),"Your browser does not support the audio tag."]})})});if(s)return v.jsx(va,{children:v.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("video",{controls:!0,children:[v.jsx("source",{src:a,type:i}),"Your browser does not support the video tag."]})})});if(r)return v.jsx(xg,{trigger:v.jsx("div",{children:v.jsx(va,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:v.jsx("img",{src:a,className:"object-cover size-16",alt:t})})})}),children:v.jsx(yg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:v.jsx(IC,{src:a,alt:t})})});if(l)return v.jsx(PC,{url:a,name:t,size:n,icon:v.jsx(Px,{className:"size-5",strokeWidth:1.75}),label:"PDF"});const u=AC({type:i,name:t});return u?v.jsx(PC,{url:a,name:t,size:n,icon:v.jsx(Ix,{className:"size-5",strokeWidth:1.75}),label:u.label}):v.jsx(va,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("div",{className:"flex items-end gap-2 p-2",children:[v.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:le("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),v.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})})}const zC=pn.memo(tF,(e,t)=>e.children===t.children&&e.className===t.className);function Eg({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=$e();return v.jsx(zC,{"data-type":t,"data-id":n,remarkPlugins:[B2],rehypePlugins:[eA],components:{a:({children:a,...r})=>v.jsx("a",{target:r.target||i||"_top",...r,children:a}),img:({src:a,alt:r,...s})=>a?v.jsx(xg,{trigger:v.jsx("img",{src:a,alt:r,...s,className:"cursor-pointer rounded-xl"}),children:v.jsx(yg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:v.jsx(IC,{src:a,alt:r})})}):v.jsx("img",{src:a,alt:r,...s})},children:e})}function To(){const{widgetCtx:{org:e}}=Ct(),{sessionState:{session:t}}=wi(),n=$e(),{messagesState:{messages:i}}=En(),{routerState:{screen:a}}=Si();return{react:pn,org:e,session:t,config:n,messages:i,currentScreen:a}}function wX({currentMessage:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t["message::after"];return i?v.jsx(i,{...n,currentMessage:e}):null}function Tg(e){const{data:t,id:n,type:i,attachments:a,isFirstInGroup:r,isLastInGroup:s,isAloneInGroup:o,dataComponentNames:l,classNames:u}=e;if(i!=="AI"&&i!=="AGENT")return null;const{message:c,variant:d="default"}=t;return v.jsxs("div",{...Ue((l==null?void 0:l.messageContainer)??"chat/agent_msg/root"),className:le("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[a&&a.length>0&&v.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:a==null?void 0:a.map(f=>v.jsx(BC,{attachment:f},f.id))}),c.length>0&&v.jsxs("div",{className:"flex flex-row gap-2",children:[v.jsx("div",{...Ue((l==null?void 0:l.message)??"chat/agent_msg/msg"),"data-first":r,"data-last":s,"data-alone":o,"data-variant":d,className:le("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",d==="error"&&"bg-destructive/15 text-destructive",r&&!o&&"rounded-bl-md",s&&!o&&"rounded-tl-md",!r&&!s&&!o&&"rounded-l-md",u==null?void 0:u.message),children:v.jsx(Eg,{messageType:i,messageId:n,children:c})}),v.jsx(wX,{currentMessage:e})]})]})}function SX(e){return v.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:v.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const wg=E.forwardRef(({className:e,...t},n)=>v.jsx(cA,{ref:n,className:le("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));wg.displayName=cA.displayName;const Sg=E.forwardRef(({className:e,...t},n)=>v.jsx(dA,{ref:n,className:le("aspect-square h-full w-full",e),...t}));Sg.displayName=dA.displayName;const Ag=E.forwardRef(({className:e,...t},n)=>v.jsx(fA,{ref:n,className:le("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Ag.displayName=fA.displayName;function Cg({agent:e,...t}){var n,i;return v.jsxs(wg,{...t,children:[v.jsx(Sg,{src:(e==null?void 0:e.avatarUrl)||(e==null?void 0:e.avatar)||"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&v.jsx(Ag,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function AX({agent:e}){return v.jsx(Pt,{children:v.jsxs(rt,{...Ue("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[v.jsx(Cg,{agent:e}),v.jsxs("div",{...Ue("chat/bot_loading/bouncing_dots_container"),className:le("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[v.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),v.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),v.jsx(Fl.span,{className:"rounded-full animate-bounce"})]})]})})}const jC='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}',CX=cG,kX=dG,OX=fG,UC=E.forwardRef(({className:e,sideOffset:t=4,...n},i)=>v.jsx(TA,{ref:i,sideOffset:t,className:le("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));UC.displayName=TA.displayName;function yu({children:e,content:t,side:n,align:i}){const{disableTooltips:a}=$e();return!t||a?e:v.jsxs(kX,{children:[v.jsx(OX,{asChild:!0,children:e}),v.jsx(UC,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}const HC=450;function Wi(){const[e,t]=pn.useState(()=>(window.top||window).innerWidth<HC);return pn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<HC)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const pf={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function ns(){var e,t,n,i,a,r,s,o,l,u,c,d,f,h,g,b,_,m,y,x,T,S,A,D,L,B,O,Y,U,ae,ee,Q,F,V,H,te,N,be,tt,M,Be,ge,ze,dn,We,$t,Mt;const{dir:Ut}=kp(),{isSmallScreen:Lt}=Wi(),{theme:re,inline:yi}=$e(),Li=Rn=>yi?"100%":Rn,Ii=(Rn,Ia)=>Lt?`100dv${Rn}`:Ia,nt=(Rn,Ia)=>Li(Ii(Rn,Ia)),fn={zIndex:((e=re==null?void 0:re.widgetTrigger)==null?void 0:e.zIndex)??1e7,offset:{bottom:((n=(t=re==null?void 0:re.widgetTrigger)==null?void 0:t.offset)==null?void 0:n.bottom)??20,right:((a=(i=re==null?void 0:re.widgetTrigger)==null?void 0:i.offset)==null?void 0:a.right)??(Ut==="ltr"?20:"initial"),left:((s=(r=re==null?void 0:re.widgetTrigger)==null?void 0:r.offset)==null?void 0:s.left)??(Ut==="rtl"?20:"initial")},size:{button:((l=(o=re==null?void 0:re.widgetTrigger)==null?void 0:o.size)==null?void 0:l.button)??48,icon:((c=(u=re==null?void 0:re.widgetTrigger)==null?void 0:u.size)==null?void 0:c.icon)??24}},tn=(()=>{const Rn=Ut==="ltr"?fn.offset.right:fn.offset.left;return typeof Rn!="number"?0:Rn})(),At={palette:(re==null?void 0:re.palette)??"neutral",primaryColor:(re==null?void 0:re.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:fn,widgetContentContainer:{borderRadius:Lt?"0px":((d=re==null?void 0:re.widgetContentContainer)==null?void 0:d.borderRadius)??"32px",zIndex:((f=re==null?void 0:re.widgetContentContainer)==null?void 0:f.zIndex)??fn.zIndex+1,outline:((h=re==null?void 0:re.widgetContentContainer)==null?void 0:h.outline)??"none",outlineColor:((g=re==null?void 0:re.widgetContentContainer)==null?void 0:g.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((b=re==null?void 0:re.widgetContentContainer)==null?void 0:b.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((_=re==null?void 0:re.widgetContentContainer)==null?void 0:_.transitionProperty)??"all",transitionTimingFunction:((m=re==null?void 0:re.widgetContentContainer)==null?void 0:m.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((y=re==null?void 0:re.widgetContentContainer)==null?void 0:y.transitionDuration)??pf.transitionDuration,offset:{side:Lt?0:fn.offset.bottom+fn.size.button+Eo.y*2+(((T=(x=re==null?void 0:re.widgetContentContainer)==null?void 0:x.offset)==null?void 0:T.side)??10),align:Lt?0:tn+(((A=(S=re==null?void 0:re.widgetContentContainer)==null?void 0:S.offset)==null?void 0:A.align)??0)}},screens:{welcome:{width:nt("w",((L=(D=re==null?void 0:re.screens)==null?void 0:D.welcome)==null?void 0:L.width)??"400px"),minHeight:nt("h",((O=(B=re==null?void 0:re.screens)==null?void 0:B.welcome)==null?void 0:O.minHeight)??"1px")},sessions:{width:nt("w",((U=(Y=re==null?void 0:re.screens)==null?void 0:Y.sessions)==null?void 0:U.width)??"450px"),height:nt("h",((ee=(ae=re==null?void 0:re.screens)==null?void 0:ae.sessions)==null?void 0:ee.height)??"600px")},chat:{width:nt("w",((F=(Q=re==null?void 0:re.screens)==null?void 0:Q.chat)==null?void 0:F.width)??"525px"),height:nt("h",((H=(V=re==null?void 0:re.screens)==null?void 0:V.chat)==null?void 0:H.height)??"700px"),withCanvas:{width:nt("w",((be=(N=(te=re==null?void 0:re.screens)==null?void 0:te.chat)==null?void 0:N.withCanvas)==null?void 0:be.width)??"min(1050px, 100vw)"),height:nt("h",((Be=(M=(tt=re==null?void 0:re.screens)==null?void 0:tt.chat)==null?void 0:M.withCanvas)==null?void 0:Be.height)??"min(800px, 100vh)"),transitionTimingFunction:((dn=(ze=(ge=re==null?void 0:re.screens)==null?void 0:ge.chat)==null?void 0:ze.withCanvas)==null?void 0:dn.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((Mt=($t=(We=re==null?void 0:re.screens)==null?void 0:We.chat)==null?void 0:$t.withCanvas)==null?void 0:Mt.transitionDuration)??pf.transitionDuration}}}},Es={maxHeight:nt("h",`calc(
307
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZA(e,t){if(e){if(typeof e=="string")return rg(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 rg(e,t)}}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function R$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw o}}return i}}function D$(e){if(Array.isArray(e))return e}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(i){sg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rf(e,t){if(e==null)return{};var n=M$(e,t),i,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function M$(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r<i.length;r++)a=i[r],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var og=_.forwardRef(function(e,t){var n=e.children,i=rf(e,E$),a=tC(i),r=a.open,s=rf(a,T$);return _.useImperativeHandle(t,function(){return{open:r}},[r]),pn.createElement(_.Fragment,null,n(pt(pt({},s),{},{open:r})))});og.displayName="Dropzone";var eC={disabled:!1,getFilesFromEvent:qG,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};og.defaultProps=eC,og.propTypes={children:Ke.func,accept:Ke.objectOf(Ke.arrayOf(Ke.string)),multiple:Ke.bool,preventDropOnDocument:Ke.bool,noClick:Ke.bool,noKeyboard:Ke.bool,noDrag:Ke.bool,noDragEventsBubbling:Ke.bool,minSize:Ke.number,maxSize:Ke.number,maxFiles:Ke.number,disabled:Ke.bool,getFilesFromEvent:Ke.func,onFileDialogCancel:Ke.func,onFileDialogOpen:Ke.func,useFsAccessApi:Ke.bool,autoFocus:Ke.bool,onDragEnter:Ke.func,onDragLeave:Ke.func,onDragOver:Ke.func,onDrop:Ke.func,onDropAccepted:Ke.func,onDropRejected:Ke.func,onError:Ke.func,validator:Ke.func};var lg={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function tC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=pt(pt({},eC),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,E=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,x=t.preventDropOnDocument,T=t.noClick,S=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,O=_.useMemo(function(){return y$(n)},[n]),Y=_.useMemo(function(){return v$(n)},[n]),U=_.useMemo(function(){return typeof E=="function"?E:nC},[E]),ae=_.useMemo(function(){return typeof b=="function"?b:nC},[b]),ee=_.useRef(null),Q=_.useRef(null),F=_.useReducer(L$,lg),V=ag(F,2),H=V[0],te=V[1],N=H.isFocused,be=H.isFileDialogActive,tt=_.useRef(typeof window<"u"&&window.isSecureContext&&m&&b$()),M=function(){!tt.current&&be&&setTimeout(function(){if(Q.current){var he=Q.current.files;he.length||(te({type:"closeDialog"}),ae())}},300)};_.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,be,ae,tt]);var Be=_.useRef([]),ge=function(he){ee.current&&ee.current.contains(he.target)||(he.preventDefault(),Be.current=[])};_.useEffect(function(){return x&&(document.addEventListener("dragover",KA,!1),document.addEventListener("drop",ge,!1)),function(){x&&(document.removeEventListener("dragover",KA),document.removeEventListener("drop",ge))}},[ee,x]),_.useEffect(function(){return!i&&y&&ee.current&&ee.current.focus(),function(){}},[ee,y,i]);var ze=_.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),dn=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[].concat(A$(Be.current),[ne.target]),af(ne)&&Promise.resolve(a(ne)).then(function(he){if(!(nf(ne)&&!D)){var z=he.length,$=z>0&&h$({files:he,accept:O,minSize:s,maxSize:r,multiple:o,maxFiles:l,validator:B}),ue=z>0&&!$;te({isDragAccept:$,isDragReject:ue,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(he){return ze(he)})},[a,u,ze,D,O,s,r,o,l,B]),We=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=af(ne);if(he&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return he&&d&&d(ne),!1},[d,D]),$t=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=Be.current.filter(function($){return ee.current&&ee.current.contains($)}),z=he.indexOf(ne.target);z!==-1&&he.splice(z,1),Be.current=he,!(he.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),af(ne)&&c&&c(ne))},[ee,c,D]),Mt=_.useCallback(function(ne,he){var z=[],$=[];ne.forEach(function(ue){var _e=$A(ue,O),ve=ag(_e,2),Xt=ve[0],Dn=ve[1],yn=XA(ue,s,r),Jn=ag(yn,2),Mn=Jn[0],It=Jn[1],ei=B?B(ue):null;if(Xt&&Mn&&!ei)z.push(ue);else{var xn=[Dn,It];ei&&(xn=xn.concat(ei)),$.push({file:ue,errors:xn.filter(function(Pa){return Pa})})}}),(!o&&z.length>1||o&&l>=1&&z.length>l)&&(z.forEach(function(ue){$.push({file:ue,errors:[f$]})}),z.splice(0)),te({acceptedFiles:z,fileRejections:$,isDragReject:$.length>0,type:"setFiles"}),f&&f(z,$,he),$.length>0&&g&&g($,he),z.length>0&&h&&h(z,he)},[te,o,O,s,r,l,f,h,g,B]),Ut=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[],af(ne)&&Promise.resolve(a(ne)).then(function(he){nf(ne)&&!D||Mt(he,ne)}).catch(function(he){return ze(he)}),te({type:"reset"})},[a,Mt,ze,D]),Lt=_.useCallback(function(){if(tt.current){te({type:"openDialog"}),U();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(he){return a(he)}).then(function(he){Mt(he,null),te({type:"closeDialog"})}).catch(function(he){x$(he)?(ae(he),te({type:"closeDialog"})):_$(he)?(tt.current=!1,Q.current?(Q.current.value=null,Q.current.click()):ze(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."))):ze(he)});return}Q.current&&(te({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[te,U,ae,m,Mt,ze,Y,o]),re=_.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Lt())},[ee,Lt]),yi=_.useCallback(function(){te({type:"focus"})},[]),Li=_.useCallback(function(){te({type:"blur"})},[]),Ii=_.useCallback(function(){T||(g$()?setTimeout(Lt,0):Lt())},[T,Lt]),nt=function(he){return i?null:he},fn=function(he){return S?null:nt(he)},tn=function(he){return A?null:nt(he)},At=function(he){D&&he.stopPropagation()},Es=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,z=he===void 0?"ref":he,$=ne.role,ue=ne.onKeyDown,_e=ne.onFocus,ve=ne.onBlur,Xt=ne.onClick,Dn=ne.onDragEnter,yn=ne.onDragOver,Jn=ne.onDragLeave,Mn=ne.onDrop,It=rf(ne,w$);return pt(pt(sg({onKeyDown:fn(Ki(ue,re)),onFocus:fn(Ki(_e,yi)),onBlur:fn(Ki(ve,Li)),onClick:nt(Ki(Xt,Ii)),onDragEnter:tn(Ki(Dn,dn)),onDragOver:tn(Ki(yn,We)),onDragLeave:tn(Ki(Jn,$t)),onDrop:tn(Ki(Mn,Ut)),role:typeof $=="string"&&$!==""?$:"presentation"},z,ee),!i&&!S?{tabIndex:0}:{}),It)}},[ee,re,yi,Li,Ii,dn,We,$t,Ut,S,A,i]),Rn=_.useCallback(function(ne){ne.stopPropagation()},[]),Ia=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,z=he===void 0?"ref":he,$=ne.onChange,ue=ne.onClick,_e=rf(ne,S$),ve=sg({accept:O,multiple:o,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:nt(Ki($,Ut)),onClick:nt(Ki(ue,Rn)),tabIndex:-1},z,Q);return pt(pt({},ve),_e)}},[Q,n,o,Ut,i]);return pt(pt({},H),{},{isFocused:N&&!i,getRootProps:Es,getInputProps:Ia,rootRef:ee,inputRef:Q,open:nt(Lt)})}function L$(e,t){switch(t.type){case"focus":return pt(pt({},e),{},{isFocused:!0});case"blur":return pt(pt({},e),{},{isFocused:!1});case"openDialog":return pt(pt({},lg),{},{isFileDialogActive:!0});case"closeDialog":return pt(pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return pt(pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return pt(pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return pt({},lg);default:return e}}function nC(){}var iC={};const I$=yN(YR);var sf={},aC;function P$(){if(aC)return sf;aC=1,Object.defineProperty(sf,"__esModule",{value:!0});var e=_;function t(){var n=e.useRef(!1),i=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),i}return sf.default=t,sf}Object.defineProperty(iC,"__esModule",{value:!0});var ug=I$,cg=_,B$=ug.__importDefault(P$());function z$(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=cg.useRef(0),a=B$.default(),r=cg.useState(n),s=r[0],o=r[1],l=cg.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=++i.current;return s.loading||o(function(f){return ug.__assign(ug.__assign({},f),{loading:!0})}),e.apply(void 0,u).then(function(f){return a()&&d===i.current&&o({value:f,loading:!1}),f},function(f){return a()&&d===i.current&&o({error:f,loading:!1}),f})},t);return[s,l]}var j$=iC.default=z$,je;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const r={};for(const s of a)r[s]=s;return r},e.getValidEnumValues=a=>{const r=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(const o of r)s[o]=a[o];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(r){return a[r]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const r=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&r.push(s);return r},e.find=(a,r)=>{for(const s of a)if(r(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}e.joinValues=i,e.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(je||(je={}));var rC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(rC||(rC={}));const oe=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),nr=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}},J=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ba extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(r){return r.message},i={_errors:[]},a=r=>{for(const s of r.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let o=i,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return a(this),i}static assert(t){if(!(t instanceof ba))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const a of this.issues)if(a.path.length>0){const r=a.path[0];n[r]=n[r]||[],n[r].push(t(a))}else i.push(t(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}ba.create=e=>new ba(e);const dg=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:n="Invalid function arguments";break;case J.invalid_return_type:n="Invalid function return type";break;case J.invalid_date:n="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case J.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case J.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case J.custom:n="Invalid input";break;case J.invalid_intersection_types:n="Intersection results could not be merged";break;case J.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let U$=dg;function H$(){return U$}const F$=e=>{const{data:t,path:n,errorMaps:i,issueData:a}=e,r=[...n,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="";const l=i.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...a,path:r,message:o}};function ie(e,t){const n=H$(),i=F$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dg?void 0:dg].filter(a=>!!a)});e.common.issues.push(i)}class Vn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const a of n){if(a.status==="aborted")return ye;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const a of n){const r=await a.key,s=await a.value;i.push({key:r,value:s})}return Vn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const a of n){const{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return ye;r.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[r.value]=s.value)}return{status:t.value,value:i}}}const ye=Object.freeze({status:"aborted"}),mu=e=>({status:"dirty",value:e}),ui=e=>({status:"valid",value:e}),sC=e=>e.status==="aborted",oC=e=>e.status==="dirty",bo=e=>e.status==="valid",of=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class ir{constructor(t,n,i,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const lC=(e,t)=>{if(bo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ba(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:a}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??i??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:a}}class Pe{get description(){return this._def.description}_getType(t){return nr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vn,ctx:{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(of(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return lC(i,a)}"~validate"(t){var i,a;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return bo(r)?{value:r.value}:{issues:n.common.issues}}catch(r){(a=(i=r==null?void 0:r.message)==null?void 0:i.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>bo(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parse({data:t,path:i.path,parent:i}),r=await(of(a)?a:Promise.resolve(a));return lC(i,r)}refine(t,n){const i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,r)=>{const s=t(a),o=()=>r.addIssue({code:J.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(t){return new xo({schema:this,typeName:xe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return sr.create(this,this._def)}nullable(){return _o.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qi.create(this)}promise(){return df.create(this,this._def)}or(t){return uf.create([this,t],this._def)}and(t){return cf.create(this,t,this._def)}transform(t){return new xo({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pg({...Oe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new dX({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mg({...Oe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return bg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const V$=/^c[^\s-]{8,}$/i,Y$=/^[0-9a-z]+$/,q$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,G$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$$=/^[a-z0-9_-]{21}$/i,X$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,K$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Q$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,W$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fg;const Z$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nX=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iX=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",aX=new RegExp(`^${uC}$`);function cC(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function rX(e){return new RegExp(`^${cC(e)}$`)}function sX(e){let t=`${uC}T${cC(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oX(e,t){return!!((t==="v4"||!t)&&Z$.test(e)||(t==="v6"||!t)&&eX.test(e))}function lX(e,t){if(!X$.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function uX(e,t){return!!((t==="v4"||!t)&&J$.test(e)||(t==="v6"||!t)&&tX.test(e))}class ar extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.string,received:r.parsedType}),ye}const i=new Vn;let a;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")t.data.length>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const s=t.data.length>r.value,o=t.data.length<r.value;(s||o)&&(a=this._getOrReturnCtx(t,a),s?ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):o&&ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")Q$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"email",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")fg||(fg=new RegExp(W$,"u")),fg.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"emoji",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")G$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"uuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")$$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"nanoid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")V$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")Y$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid2",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")q$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ulid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ie(a,{validation:"url",code:J.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"regex",code:J.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?sX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?aX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?rX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?K$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"duration",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?oX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ip",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?lX(t.data,r.alg)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"jwt",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?uX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cidr",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?nX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?iX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64url",code:J.invalid_string,message:r.message}),i.dirty()):je.assertNever(r);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(a=>t.test(a),{validation:n,code:J.invalid_string,...ce.errToObj(i)})}_addCheck(t){return new ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ce.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ar.create=e=>new ar({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function cX(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=n>i?n:i,r=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return r%s/10**a}class gu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==oe.number){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.number,received:r.parsedType}),ye}let i;const a=new Vn;for(const r of this._def.checks)r.kind==="int"?je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?cX(t.data,r.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_finite,message:r.message}),a.dirty()):je.assertNever(r);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new gu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}gu.create=e=>new gu({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class bu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==oe.bigint)return this._getInvalidInput(t);let i;const a=new Vn;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):je.assertNever(r);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new bu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new bu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}bu.create=e=>new bu({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class dC extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.boolean,received:i.parsedType}),ye}return ui(t.data)}}dC.create=e=>new dC({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class lf extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:oe.date,received:r.parsedType}),ye}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_date}),ye}const i=new Vn;let a;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):je.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new lf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}lf.create=e=>new lf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...Oe(e)});class fC extends Pe{_parse(t){if(this._getType(t)!==oe.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.symbol,received:i.parsedType}),ye}return ui(t.data)}}fC.create=e=>new fC({typeName:xe.ZodSymbol,...Oe(e)});class hC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.undefined,received:i.parsedType}),ye}return ui(t.data)}}hC.create=e=>new hC({typeName:xe.ZodUndefined,...Oe(e)});class pC extends Pe{_parse(t){if(this._getType(t)!==oe.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.null,received:i.parsedType}),ye}return ui(t.data)}}pC.create=e=>new pC({typeName:xe.ZodNull,...Oe(e)});class mC extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return ui(t.data)}}mC.create=e=>new mC({typeName:xe.ZodAny,...Oe(e)});class gC extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ui(t.data)}}gC.create=e=>new gC({typeName:xe.ZodUnknown,...Oe(e)});class rr extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.never,received:n.parsedType}),ye}}rr.create=e=>new rr({typeName:xe.ZodNever,...Oe(e)});class bC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.void,received:i.parsedType}),ye}return ui(t.data)}}bC.create=e=>new bC({typeName:xe.ZodVoid,...Oe(e)});class Qi extends Pe{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),a=this._def;if(n.parsedType!==oe.array)return ie(n,{code:J.invalid_type,expected:oe.array,received:n.parsedType}),ye;if(a.exactLength!==null){const s=n.data.length>a.exactLength.value,o=n.data.length<a.exactLength.value;(s||o)&&(ie(n,{code:s?J.too_big:J.too_small,minimum:o?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ie(n,{code:J.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ie(n,{code:J.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>a.type._parseAsync(new ir(n,s,n.path,o)))).then(s=>Vn.mergeArray(i,s));const r=[...n.data].map((s,o)=>a.type._parseSync(new ir(n,s,n.path,o)));return Vn.mergeArray(i,r)}get element(){return this._def.type}min(t,n){return new Qi({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Qi({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Qi({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Qi.create=(e,t)=>new Qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(t)});function vo(e){if(e instanceof Nt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=sr.create(vo(i))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Qi?new Qi({...e._def,type:vo(e.element)}):e instanceof sr?sr.create(vo(e.unwrap())):e instanceof _o?_o.create(vo(e.unwrap())):e instanceof ts?ts.create(e.items.map(t=>vo(t))):e}class Nt extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==oe.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:oe.object,received:u.parsedType}),ye}const{status:i,ctx:a}=this._processInputParams(t),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof rr&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=r[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ir(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof rr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(ie(a,{code:J.unrecognized_keys,keys:o}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ir(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Vn.mergeObjectSync(i,u)):Vn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Nt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var r,s;const a=((s=(r=this._def).errorMap)==null?void 0:s.call(r,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:ce.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const n={};for(const i of je.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of je.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}deepPartial(){return vo(this)}partial(t){const n={};for(const i of je.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?n[i]=a:n[i]=a.optional()}return new Nt({...this._def,shape:()=>n})}required(t){const n={};for(const i of je.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof sr;)r=r._def.innerType;n[i]=r}return new Nt({...this._def,shape:()=>n})}keyof(){return _C(je.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)});class uf extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function a(r){for(const o of r)if(o.result.status==="valid")return o.result;for(const o of r)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=r.map(o=>new ba(o.ctx.common.issues));return ie(n,{code:J.invalid_union,unionErrors:s}),ye}if(n.common.async)return Promise.all(i.map(async r=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let r;const s=[];for(const l of i){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;const o=s.map(l=>new ba(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}uf.create=(e,t)=>new uf({options:e,typeName:xe.ZodUnion,...Oe(t)});function hg(e,t){const n=nr(e),i=nr(t);if(e===t)return{valid:!0,data:e};if(n===oe.object&&i===oe.object){const a=je.objectKeys(t),r=je.objectKeys(e).filter(o=>a.indexOf(o)!==-1),s={...e,...t};for(const o of r){const l=hg(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===oe.array&&i===oe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r<e.length;r++){const s=e[r],o=t[r],l=hg(s,o);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return n===oe.date&&i===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cf extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=(r,s)=>{if(sC(r)||sC(s))return ye;const o=hg(r.value,s.value);return o.valid?((oC(r)||oC(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(i,{code:J.invalid_intersection_types}),ye)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}cf.create=(e,t,n)=>new cf({left:e,right:t,typeName:xe.ZodIntersection,...Oe(n)});class ts extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.array)return ie(i,{code:J.invalid_type,expected:oe.array,received:i.parsedType}),ye;if(i.data.length<this._def.items.length)return ie(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const r=[...i.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ir(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>Vn.mergeArray(n,s)):Vn.mergeArray(n,r)}get items(){return this._def.items}rest(t){return new ts({...this._def,rest:t})}}ts.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ts({items:e,typeName:xe.ZodTuple,rest:null,...Oe(t)})};class vC extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.map)return ie(i,{code:J.invalid_type,expected:oe.map,received:i.parsedType}),ye;const a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],u)=>({key:a._parse(new ir(i,o,i.path,[u,"key"])),value:r._parse(new ir(i,l,i.path,[u,"value"]))}));if(i.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}vC.create=(e,t,n)=>new vC({valueType:t,keyType:e,typeName:xe.ZodMap,...Oe(n)});class vu extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.set)return ie(i,{code:J.invalid_type,expected:oe.set,received:i.parsedType}),ye;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(ie(i,{code:J.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(ie(i,{code:J.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const r=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...i.data.values()].map((l,u)=>r._parse(new ir(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new vu({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new vu({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vu.create=(e,t)=>new vu({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...Oe(t)});class yC extends Pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}yC.create=(e,t)=>new yC({getter:e,typeName:xe.ZodLazy,...Oe(t)});class xC extends Pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:J.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}xC.create=(e,t)=>new xC({value:e,typeName:xe.ZodLiteral,...Oe(t)});function _C(e,t){return new yo({values:e,typeName:xe.ZodEnum,...Oe(t)})}class yo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:je.joinValues(i),received:n.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:J.invalid_enum_value,options:i}),ye}return ui(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yo.create(t,{...this._def,...n})}exclude(t,n=this._def){return yo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}yo.create=_C;class EC extends Pe{_parse(t){const n=je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==oe.string&&i.parsedType!==oe.number){const a=je.objectValues(n);return ie(i,{expected:je.joinValues(a),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(je.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=je.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:a}),ye}return ui(t.data)}get enum(){return this._def.values}}EC.create=(e,t)=>new EC({values:e,typeName:xe.ZodNativeEnum,...Oe(t)});class df extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:oe.promise,received:n.parsedType}),ye;const i=n.parsedType===oe.promise?n.data:Promise.resolve(n.data);return ui(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:xe.ZodPromise,...Oe(t)});class xo extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=this._def.effect||null,r={addIssue:s=>{ie(i,s),s.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){const s=a.transform(i.data,r);if(i.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?mu(l.value):l});{if(n.value==="aborted")return ye;const o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?ye:o.status==="dirty"||n.value==="dirty"?mu(o.value):o}}if(a.type==="refinement"){const s=o=>{const l=a.refinement(o,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!bo(s))return ye;const o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>bo(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):ye);je.assertNever(a)}}xo.create=(e,t,n)=>new xo({schema:e,typeName:xe.ZodEffects,effect:t,...Oe(n)}),xo.createWithPreprocess=(e,t,n)=>new xo({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...Oe(n)});class sr extends Pe{_parse(t){return this._getType(t)===oe.undefined?ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sr.create=(e,t)=>new sr({innerType:e,typeName:xe.ZodOptional,...Oe(t)});class _o extends Pe{_parse(t){return this._getType(t)===oe.null?ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_o.create=(e,t)=>new _o({innerType:e,typeName:xe.ZodNullable,...Oe(t)});class pg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pg.create=(e,t)=>new pg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class mg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return of(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}mg.create=(e,t)=>new mg({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class TC extends Pe{_parse(t){if(this._getType(t)!==oe.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}TC.create=e=>new TC({typeName:xe.ZodNaN,...Oe(e)});class dX extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class gg extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ye:r.status==="dirty"?(n.dirty(),mu(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ye:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,n){return new gg({in:t,out:n,typeName:xe.ZodPipeline})}}class bg extends Pe{_parse(t){const n=this._def.innerType._parse(t),i=a=>(bo(a)&&(a.value=Object.freeze(a.value)),a);return of(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}}bg.create=(e,t)=>new bg({innerType:e,typeName:xe.ZodReadonly,...Oe(t)});var xe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(xe||(xe={}));const wC=ar.create;rr.create,Qi.create;const fX=Nt.create;uf.create,cf.create,ts.create,yo.create,df.create,sr.create,_o.create;function Ue(e){return{"data-component":e}}const vg=[{kind:"csv",label:"CSV",mimes:["text/csv","application/csv"],extensions:["csv"]},{kind:"excel",label:"Excel",mimes:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],extensions:["xls","xlsx"]}],SC=Object.fromEntries(vg.flatMap(e=>e.mimes.map(t=>[t,e.extensions.map(n=>`.${n}`)])));function AC({type:e,name:t}){var n,i;const a=((n=t.split(".").pop())==null?void 0:n.toLowerCase())??"",r=((i=e.toLowerCase().split(";")[0])==null?void 0:i.trim())??"";return vg.find(s=>a&&s.extensions.includes(a))??vg.find(s=>r&&s.mimes.includes(r))??null}function le(...e){return aL(jx(e))}const Eo={x:2,y:2},va=_.memo(_.forwardRef(({children:e,className:t,scale:n=1.02,off:i=!1},a)=>{const[r,s]=_.useState(!1),[o,l]=_.useState({x:0,y:0});if(i||/translate/.test(e.props.className||""))return e;const u=h=>{var g,b;const{clientX:E,clientY:m}=h,y=h.currentTarget.getBoundingClientRect(),x=E-(y.left+y.width/2),T=m-(y.top+y.height/2),S=Math.max(-1,Math.min(1,x/(y.width/2))),A=Math.max(-1,Math.min(1,T/(y.height/2))),D=S*Eo.x,L=A*Eo.y;l({x:D,y:L}),(b=(g=e.props).onMouseMove)==null||b.call(g,h)},c=()=>{var h,g;s(!0),(g=(h=e.props).onMouseEnter)==null||g.call(h)},d=()=>{var h,g;s(!1),l({x:0,y:0}),(g=(h=e.props).onMouseLeave)==null||g.call(h)},f={"--wobble-x":r?`${o.x}px`:"0px","--wobble-y":r?`${o.y}px`:"0px","--scale":1-(n-1)};return _.cloneElement(e,{ref:a,onMouseMove:u,onMouseEnter:c,onMouseLeave:d,style:{...f,...e.props.style},className:le("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));va.displayName="Wobble";const hX=10,pX=(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),mX=(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),gX=(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),bX=(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}}),vX={right:pX,left:mX,up:gX,down:bX},rt=_.forwardRef(({fadeIn:e="down",distance:t=hX,children:n,snapExit:i=!1,overrides:a={},delay:r=0,...s},o)=>{const l=e?vX[e](t,a,r):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),v.jsx(Fl.div,{ref:o,...s,...l,children:n})});rt.displayName="MotionDiv";const yX=O9(le("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),Tt=_.forwardRef(({className:e,variant:t="default",size:n,asChild:i=!1,...a},r)=>v.jsx(va,{ref:r,children:v.jsx(i?HN:"button",{...Ue("ui_lib/btn"),"data-variant":t,className:le(yX({variant:t,size:n,className:e})),...a})}));Tt.displayName="Button";const CC=_.createContext(null);function xX({children:e}){const[t,n]=_.useState(!1),[i,a]=_.useState(null),r=o=>{a(o),n(!0)},s=()=>{n(!1),setTimeout(()=>{a(null)},200)};return v.jsxs(CC.Provider,{value:{open:r,close:s,isOpen:t,content:i},children:[v.jsx(_X,{}),e]})}function ff(){return _.useContext(CC)||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function _X(){const{contentIframeRef:e}=Ct(),{isOpen:t,content:n,close:i}=ff();return _.useEffect(()=>{var a,r;const s=o=>{o.key==="Escape"&&i()};return(r=(a=e==null?void 0:e.current)==null?void 0:a.contentWindow)==null||r.document.addEventListener("keydown",s),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",s)}},[]),v.jsx(Pt,{mode:"wait",children:t&&n&&v.jsx(rt,{overrides:{initial:{y:0},exit:{y:0}},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm",tabIndex:-1,onClick:i,children:n},"dialog-content")})}function yg({children:e,className:t,withClose:n=!1}){const{close:i}=ff();return v.jsxs("div",{className:le("fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",t),onClick:a=>a.stopPropagation(),children:[e,n&&v.jsxs(Tt,{size:"fit",className:"rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",onClick:i,children:[v.jsx(td,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})}const kC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2 text-center pt-2",e),...t});kC.displayName="DialogerHeader";const OC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2 text-center",e),...t});OC.displayName="DialogerBody";const NC=({className:e,...t})=>v.jsx("div",{className:le("flex flex-col gap-2",e),...t});NC.displayName="DialogerFooter";const RC=pn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));RC.displayName="DialogerTitle";const DC=pn.forwardRef(({className:e,...t},n)=>v.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));DC.displayName="DialogerDescription";function xg({children:e,trigger:t}){const{open:n}=ff();return _.cloneElement(t,{onClick:()=>n(e)})}const MC=1,LC=5,hf=.5,EX=2.5;function TX(e,t,n,i){if(!n||!i||t<=1)return{x:0,y:0};const a=n.getBoundingClientRect(),r=i.offsetWidth,s=i.offsetHeight,o=Math.max(0,(r*t-a.width)/(2*t)),l=Math.max(0,(s*t-a.height)/(2*t));return{x:Math.min(o,Math.max(-o,e.x)),y:Math.min(l,Math.max(-l,e.y))}}function IC({src:e,alt:t}){const[n,i]=_.useState(1),[a,r]=_.useState({x:0,y:0}),[s,o]=_.useState(!1),l=_.useRef({x:0,y:0}),u=_.useRef({x:0,y:0}),c=_.useRef(null),d=_.useRef(null),f=_.useRef(!1),h=S=>Math.min(LC,Math.max(MC,S)),g=_.useCallback(()=>{i(1),r({x:0,y:0})},[]),b=_.useCallback(()=>{i(S=>h(S+hf))},[]),E=_.useCallback(()=>{i(S=>{const A=h(S-hf);return A<=1&&r({x:0,y:0}),A})},[]);_.useCallback(S=>{S.preventDefault(),S.stopPropagation();const A=S.deltaY>0?-hf:hf;i(D=>{const L=h(D+A);return L<=1&&r({x:0,y:0}),L})},[]);const m=_.useCallback(S=>{S.preventDefault(),f.current=!1,o(!0),l.current={x:S.clientX,y:S.clientY},u.current={...a},S.target.setPointerCapture(S.pointerId)},[a]),y=_.useCallback(S=>{if(!s)return;const A=S.clientX-l.current.x,D=S.clientY-l.current.y;if((Math.abs(A)>3||Math.abs(D)>3)&&(f.current=!0),n<=1)return;const L={x:u.current.x+A/n,y:u.current.y+D/n};r(TX(L,n,c.current,d.current))},[s,n]),x=_.useCallback(()=>{const S=f.current;o(!1),!S&&i(A=>A>1?(r({x:0,y:0}),1):EX)},[]),T=n>1;return v.jsxs("div",{className:"relative size-full flex items-center justify-center select-none",onClick:S=>S.stopPropagation(),children:[v.jsx("div",{ref:c,className:le("overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",T&&"size-full"),onPointerDown:m,onPointerMove:y,onPointerUp:x,onPointerCancel:x,style:{cursor:s?"grabbing":T?"grab":"zoom-in",touchAction:"none"},children:v.jsx("img",{ref:d,src:e,alt:t,className:"block max-w-full object-contain pointer-events-none",draggable:!1,style:{maxHeight:"100vh",transform:`scale(${n}) translate(${a.x}px, ${a.y}px)`,transformOrigin:"center center"}})}),v.jsxs("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100",children:[v.jsx(_g,{onClick:E,label:"Zoom out",disabled:n<=MC,children:v.jsx(CM,{className:"size-3.5"})}),v.jsxs("span",{className:"text-white text-xs font-medium min-w-[3ch] text-center tabular-nums",children:[Math.round(n*100),"%"]}),v.jsx(_g,{onClick:b,label:"Zoom in",disabled:n>=LC,children:v.jsx(AM,{className:"size-3.5"})}),T&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"w-px h-4 bg-white/30 mx-0.5"}),v.jsx(_g,{onClick:g,label:"Reset zoom",children:v.jsx(yM,{className:"size-3.5"})})]})]})]})}function _g({onClick:e,label:t,children:n,disabled:i}){return v.jsx("button",{onClick:e,"aria-label":t,disabled:i,className:"text-white/80 hover:text-white disabled:text-white/30 disabled:hover:bg-transparent p-1.5 rounded-full hover:bg-white/15 transition-colors",children:n})}function PC({url:e,name:t,size:n,icon:i,label:a}){return v.jsx(va,{children:v.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:le("block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border","bg-background/80 transition-colors hover:bg-accent/60","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:v.jsxs("div",{className:"flex items-center gap-3 p-3 min-w-0",children:[v.jsx("div",{className:le("flex size-10 shrink-0 items-center justify-center rounded-xl","bg-secondary text-muted-foreground"),"aria-hidden":!0,children:i}),v.jsxs("div",{className:"min-w-0 flex-1 flex flex-col gap-0.5 text-left",children:[v.jsx("span",{className:le("text-xs font-medium text-foreground line-clamp-1","break-words [word-break:break-word]"),children:t}),v.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[(n/1024).toFixed(2)," KB · ",a]})]})]})})})}function BC({attachment:e}){const{name:t,size:n,type:i,url:a}=e,r=i.startsWith("image/"),s=i.startsWith("video/"),o=i.startsWith("audio/"),l=i==="application/pdf";if(o)return v.jsx(va,{children:v.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:v.jsxs("audio",{controls:!0,className:"w-full",children:[v.jsx("source",{src:a,type:i}),"Your browser does not support the audio tag."]})})});if(s)return v.jsx(va,{children:v.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("video",{controls:!0,children:[v.jsx("source",{src:a,type:i}),"Your browser does not support the video tag."]})})});if(r)return v.jsx(xg,{trigger:v.jsx("div",{children:v.jsx(va,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:v.jsx("img",{src:a,className:"object-cover size-16",alt:t})})})}),children:v.jsx(yg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:v.jsx(IC,{src:a,alt:t})})});if(l)return v.jsx(PC,{url:a,name:t,size:n,icon:v.jsx(Px,{className:"size-5",strokeWidth:1.75}),label:"PDF"});const u=AC({type:i,name:t});return u?v.jsx(PC,{url:a,name:t,size:n,icon:v.jsx(Ix,{className:"size-5",strokeWidth:1.75}),label:u.label}):v.jsx(va,{children:v.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:v.jsxs("div",{className:"flex items-end gap-2 p-2",children:[v.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:le("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),v.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})})}const zC=pn.memo(tF,(e,t)=>e.children===t.children&&e.className===t.className);function Eg({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=$e();return v.jsx(zC,{"data-type":t,"data-id":n,remarkPlugins:[B2],rehypePlugins:[eA],components:{a:({children:a,...r})=>v.jsx("a",{target:r.target||i||"_top",...r,children:a}),img:({src:a,alt:r,...s})=>a?v.jsx(xg,{trigger:v.jsx("img",{src:a,alt:r,...s,className:"cursor-pointer rounded-xl"}),children:v.jsx(yg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:v.jsx(IC,{src:a,alt:r})})}):v.jsx("img",{src:a,alt:r,...s})},children:e})}function To(){const{widgetCtx:{org:e}}=Ct(),{sessionState:{session:t}}=wi(),n=$e(),{messagesState:{messages:i}}=En(),{routerState:{screen:a}}=Si();return{react:pn,org:e,session:t,config:n,messages:i,currentScreen:a}}function wX({currentMessage:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t["message::after"];return i?v.jsx(i,{...n,currentMessage:e}):null}function Tg(e){const{data:t,id:n,type:i,attachments:a,isFirstInGroup:r,isLastInGroup:s,isAloneInGroup:o,dataComponentNames:l,classNames:u}=e;if(i!=="AI"&&i!=="AGENT")return null;const{message:c,variant:d="default"}=t;return v.jsxs("div",{...Ue((l==null?void 0:l.messageContainer)??"chat/agent_msg/root"),className:le("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[a&&a.length>0&&v.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:a==null?void 0:a.map(f=>v.jsx(BC,{attachment:f},f.id))}),c.length>0&&v.jsxs("div",{className:"flex flex-row gap-2",children:[v.jsx("div",{...Ue((l==null?void 0:l.message)??"chat/agent_msg/msg"),"data-first":r,"data-last":s,"data-alone":o,"data-variant":d,className:le("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",d==="error"&&"bg-destructive/15 text-destructive",r&&!o&&"rounded-bl-md",s&&!o&&"rounded-tl-md",!r&&!s&&!o&&"rounded-l-md",u==null?void 0:u.message),children:v.jsx(Eg,{messageType:i,messageId:n,children:c})}),v.jsx(wX,{currentMessage:e})]})]})}function SX(e){return v.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:v.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const wg=_.forwardRef(({className:e,...t},n)=>v.jsx(cA,{ref:n,className:le("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));wg.displayName=cA.displayName;const Sg=_.forwardRef(({className:e,...t},n)=>v.jsx(dA,{ref:n,className:le("aspect-square h-full w-full",e),...t}));Sg.displayName=dA.displayName;const Ag=_.forwardRef(({className:e,...t},n)=>v.jsx(fA,{ref:n,className:le("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Ag.displayName=fA.displayName;function Cg({agent:e,...t}){var n,i;return v.jsxs(wg,{...t,children:[v.jsx(Sg,{src:(e==null?void 0:e.avatarUrl)||(e==null?void 0:e.avatar)||"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&v.jsx(Ag,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function AX({agent:e}){return v.jsx(Pt,{children:v.jsxs(rt,{...Ue("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[v.jsx(Cg,{agent:e}),v.jsxs("div",{...Ue("chat/bot_loading/bouncing_dots_container"),className:le("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[v.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),v.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),v.jsx(Fl.span,{className:"rounded-full animate-bounce"})]})]})})}const jC='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}',CX=cG,kX=dG,OX=fG,UC=_.forwardRef(({className:e,sideOffset:t=4,...n},i)=>v.jsx(TA,{ref:i,sideOffset:t,className:le("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));UC.displayName=TA.displayName;function yu({children:e,content:t,side:n,align:i}){const{disableTooltips:a}=$e();return!t||a?e:v.jsxs(kX,{children:[v.jsx(OX,{asChild:!0,children:e}),v.jsx(UC,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}const HC=450;function Wi(){const[e,t]=pn.useState(()=>(window.top||window).innerWidth<HC);return pn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<HC)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const pf={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function ns(){var e,t,n,i,a,r,s,o,l,u,c,d,f,h,g,b,E,m,y,x,T,S,A,D,L,B,O,Y,U,ae,ee,Q,F,V,H,te,N,be,tt,M,Be,ge,ze,dn,We,$t,Mt;const{dir:Ut}=kp(),{isSmallScreen:Lt}=Wi(),{theme:re,inline:yi}=$e(),Li=Rn=>yi?"100%":Rn,Ii=(Rn,Ia)=>Lt?`100dv${Rn}`:Ia,nt=(Rn,Ia)=>Li(Ii(Rn,Ia)),fn={zIndex:((e=re==null?void 0:re.widgetTrigger)==null?void 0:e.zIndex)??1e7,offset:{bottom:((n=(t=re==null?void 0:re.widgetTrigger)==null?void 0:t.offset)==null?void 0:n.bottom)??20,right:((a=(i=re==null?void 0:re.widgetTrigger)==null?void 0:i.offset)==null?void 0:a.right)??(Ut==="ltr"?20:"initial"),left:((s=(r=re==null?void 0:re.widgetTrigger)==null?void 0:r.offset)==null?void 0:s.left)??(Ut==="rtl"?20:"initial")},size:{button:((l=(o=re==null?void 0:re.widgetTrigger)==null?void 0:o.size)==null?void 0:l.button)??48,icon:((c=(u=re==null?void 0:re.widgetTrigger)==null?void 0:u.size)==null?void 0:c.icon)??24}},tn=(()=>{const Rn=Ut==="ltr"?fn.offset.right:fn.offset.left;return typeof Rn!="number"?0:Rn})(),At={palette:(re==null?void 0:re.palette)??"neutral",primaryColor:(re==null?void 0:re.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:fn,widgetContentContainer:{borderRadius:Lt?"0px":((d=re==null?void 0:re.widgetContentContainer)==null?void 0:d.borderRadius)??"32px",zIndex:((f=re==null?void 0:re.widgetContentContainer)==null?void 0:f.zIndex)??fn.zIndex+1,outline:((h=re==null?void 0:re.widgetContentContainer)==null?void 0:h.outline)??"none",outlineColor:((g=re==null?void 0:re.widgetContentContainer)==null?void 0:g.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((b=re==null?void 0:re.widgetContentContainer)==null?void 0:b.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((E=re==null?void 0:re.widgetContentContainer)==null?void 0:E.transitionProperty)??"all",transitionTimingFunction:((m=re==null?void 0:re.widgetContentContainer)==null?void 0:m.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((y=re==null?void 0:re.widgetContentContainer)==null?void 0:y.transitionDuration)??pf.transitionDuration,offset:{side:Lt?0:fn.offset.bottom+fn.size.button+Eo.y*2+(((T=(x=re==null?void 0:re.widgetContentContainer)==null?void 0:x.offset)==null?void 0:T.side)??10),align:Lt?0:tn+(((A=(S=re==null?void 0:re.widgetContentContainer)==null?void 0:S.offset)==null?void 0:A.align)??0)}},screens:{welcome:{width:nt("w",((L=(D=re==null?void 0:re.screens)==null?void 0:D.welcome)==null?void 0:L.width)??"400px"),minHeight:nt("h",((O=(B=re==null?void 0:re.screens)==null?void 0:B.welcome)==null?void 0:O.minHeight)??"1px")},sessions:{width:nt("w",((U=(Y=re==null?void 0:re.screens)==null?void 0:Y.sessions)==null?void 0:U.width)??"450px"),height:nt("h",((ee=(ae=re==null?void 0:re.screens)==null?void 0:ae.sessions)==null?void 0:ee.height)??"600px")},chat:{width:nt("w",((F=(Q=re==null?void 0:re.screens)==null?void 0:Q.chat)==null?void 0:F.width)??"525px"),height:nt("h",((H=(V=re==null?void 0:re.screens)==null?void 0:V.chat)==null?void 0:H.height)??"700px"),withCanvas:{width:nt("w",((be=(N=(te=re==null?void 0:re.screens)==null?void 0:te.chat)==null?void 0:N.withCanvas)==null?void 0:be.width)??"min(1050px, 100vw)"),height:nt("h",((Be=(M=(tt=re==null?void 0:re.screens)==null?void 0:tt.chat)==null?void 0:M.withCanvas)==null?void 0:Be.height)??"min(800px, 100vh)"),transitionTimingFunction:((dn=(ze=(ge=re==null?void 0:re.screens)==null?void 0:ge.chat)==null?void 0:ze.withCanvas)==null?void 0:dn.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((Mt=($t=(We=re==null?void 0:re.screens)==null?void 0:We.chat)==null?void 0:$t.withCanvas)==null?void 0:Mt.transitionDuration)??pf.transitionDuration}}}},Es={maxHeight:nt("h",`calc(
308
308
  100vh
309
309
  - ${At.widgetTrigger.offset.bottom}px
310
310
  - ${At.widgetContentContainer.offset.side}px
@@ -320,7 +320,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
320
320
  ${At.screens.welcome.width},
321
321
  ${At.screens.sessions.width},
322
322
  ${At.screens.chat.width}
323
- )`)};return{theme:At,computed:Es,cssVars:NX({palette:At.palette,primary:At.primaryColor})}}function NX({palette:e,primary:t}){const n=FC(e),i=de(t).toHsl(),a=de(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${i.h} ${i.s*100}% ${i.l*100}%`,"--opencx-primary-foreground":a,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function FC(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},i={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},a={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return i;case"slate":return a;default:return ii(e,FC.name),t}}function VC(){const{contentIframeRef:e}=Ct(),{inline:t}=$e();return{setWidth:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-width",t?"100%":n)},setHeight:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-height",t?"100%":n)}}}function kg({width:e,height:t}){const{isSmallScreen:n}=Wi(),{setWidth:i,setHeight:a}=VC();E.useEffect(()=>{e&&i(e),t&&a(t)},[n,t,e,i,a])}const YC=Lx;function xu({name:e,className:t}){const n=(()=>{switch(e){case"Check":return nM;case"CheckCheck":return tM;case"CircleCheck":return Mx;case"CircleCheckBig":return oM;case"CircleX":return lM;case"Expand":return uM;case"Maximize":return gM;case"Maximize2":return mM;case"Minimize":return vM;case"Minimize2":return bM;case"Shrink":return _M;case"SquareCheck":return TM;case"SquareCheckBig":return EM;case"SquareX":return wM;case"X":return td;case void 0:return YC;default:return ii(e,xu.name),YC}})();return v.jsx(n,{className:le("size-4",t)})}function RX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.headerBottom;return n?v.jsx(n,{...t}):null}function DX({fallback:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t.headerTitle;return i?v.jsx(i,{...n}):e}function Og(){const{widgetCtx:{org:e}}=Ct(),{routerState:{screen:t}}=Si(),{textContent:n}=$e();return(()=>{var i,a;switch(t){case"chat":return(i=n==null?void 0:n.chatScreen)==null?void 0:i.headerTitle;case"sessions":return(a=n==null?void 0:n.sessionsScreen)==null?void 0:a.headerTitle;case"welcome":return;default:ii(t,Og.name);return}})()??e.name??"Chat"}function MX(e){switch(e){case"chat":return Ue("chat/header");case"sessions":return Ue("sessions/header");case"welcome":return;default:ii(e,Og.name);return}}function LX(){const{router:e}=$e(),{routerState:{screen:t},toSessionsScreen:n}=Si();return t!=="chat"||e!=null&&e.chatScreenOnly?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:v.jsx(aM,{className:"size-4 rtl:-scale-100"})})}function IX({button:e}){const{setIsOpen:t}=jr(),{isSmallScreen:n}=Wi();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{if(e.handleClick)return e.handleClick();t(!1)},children:v.jsx(xu,{name:e.icon})})}function Ng({button:e}){const[t,n]=E.useState(!1),{routerState:{screen:i}}=Si(),{isSmallScreen:a}=Wi(),{theme:r}=ns(),{setWidth:s,setHeight:o}=VC();if(i!=="chat"&&i!=="sessions")return null;const l=(()=>{switch(i){case"chat":return r.screens.chat.height;case"sessions":return r.screens.sessions.height;default:return ii(i,Ng.name),r.screens.chat.height}})(),u=(()=>{switch(i){case"chat":return r.screens.chat.width;case"sessions":return r.screens.sessions.width;default:return ii(i,Ng.name),r.screens.chat.width}})(),c=()=>{n(d=>{const f=!d;return o(f?"100vh":l),s(f?`max(40vw, ${u})`:u),f})};return a&&e.hideOnSmallScreen||!a&&e.hideOnLargeScreen?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:v.jsx(xu,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function qC({button:e}){var t,n;const{close:i}=ff(),{widgetCtx:a}=Ct(),{setIsOpen:r}=jr(),{resolveSession:s,sessionState:o}=wi(),{isSmallScreen:l}=Wi(),u=!o.session,c=((t=o.session)==null?void 0:t.isOpened)===!1,d=e.onResolved||"stay-in-chat",f=e.behaviorBeforeSessionCreation||"disabled",h=e.behaviorIfSessionIsResolved||"disabled",g=!!(o.isResolvingSession||u&&f==="disabled"||c&&h==="disabled"),b=async()=>{const{success:m,error:y}=await s();if(i(),!m)return console.error(y);switch(d){case"stay-in-chat":return;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),a.resetChat();break;default:ii(d,qC.name);break}},_=()=>{if(u)switch(f){case"disabled":return;case"close-widget":r(!1);break;default:ii(f,_.name)}if(c)switch(h){case"disabled":return;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),setTimeout(()=>{a.resetChat()},200);break;default:ii(h,_.name)}};return l&&e.hideOnSmallScreen||!l&&e.hideOnLargeScreen?null:((n=e.confirmation)==null?void 0:n.type)==="modal"&&!c&&!u?v.jsx(xg,{trigger:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:g,children:v.jsx(xu,{name:e.icon})}),children:v.jsxs(yg,{children:[v.jsx(kC,{children:v.jsx(RC,{children:e.confirmation.title||"Close conversation"})}),v.jsx(OC,{children:v.jsx(DC,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),v.jsxs(NC,{children:[v.jsx(Tt,{variant:"secondary",onClick:i,disabled:o.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),v.jsx(Tt,{variant:"destructive",onClick:b,disabled:o.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c||u?_:b,disabled:g,children:v.jsx(xu,{name:e.icon})})}function Rg({button:e}){switch(e.functionality){case"close-widget":return v.jsx(IX,{button:e});case"expand-shrink":return v.jsx(Ng,{button:e});case"resolve-session":return v.jsx(qC,{button:e});default:return ii(e,Rg.name),null}}const PX={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function BX(){const{routerState:{screen:e}}=Si(),{headerButtons:t}=$e(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?v.jsx(Rg,{button:PX}):v.jsx(v.Fragment,{children:n.map(i=>v.jsx(Rg,{button:i},`${i.functionality}-${i.icon}`))})}function GC(){const{routerState:{screen:e}}=Si(),t=MX(e),n=Og();return v.jsxs("header",{...t,className:"py-2 px-4 shrink-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(LX,{}),v.jsx("div",{className:le("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:v.jsx(DX,{fallback:v.jsx("h2",{className:"font-semibold",children:n})})}),v.jsx(BX,{})]}),v.jsx(RX,{})]})}function $C({className:e}){return v.jsx(pM,{className:le("size-4 animate-spin",e)})}function zX(){const{messagesState:{isInitialFetchLoading:e}}=En(),{isSmallScreen:t}=Wi(),{activeMode:n,Component:i}=Ox();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function jX(){const e=To(),{activeMode:t,Component:n}=Ox(),{sendMessage:i}=En(),{createStateCheckpoint:a}=wi(),[r,s]=E.useState(!1),o=async l=>{try{s(!0),await i(l)}catch(u){console.error(u)}finally{s(!1)}};return!t||!n?null:v.jsx(n,{...e,mode:t,createStateCheckpoint:a,sendMessage:o,isSendingMessage:r})}function or(){const{dir:e}=kp(),t=$e();return E.useMemo(()=>{const n=q5(t.language)?t.language:"en";return{t:i=>G5(i,n,t.translationOverrides),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}const Zi=pn.forwardRef((e,t)=>{var n,i,a;return v.jsx(rt,{...e,ref:t,className:le("overflow-hidden",e.className),overrides:{initial:{height:0,opacity:0,...(n=e.overrides)==null?void 0:n.initial},animate:{height:"auto",opacity:1,...(i=e.overrides)==null?void 0:i.animate},exit:{height:0,opacity:0,...(a=e.overrides)==null?void 0:a.exit}}})});Zi.displayName="MotionDiv__VerticalReveal";const UX=[{label:"Terrible",value:1,emoji:"😡"},{label:"Poor",value:2,emoji:"😞"},{label:"Okay",value:3,emoji:"😐"},{label:"Good",value:4,emoji:"😊"},{label:"Great",value:5,emoji:"😍"}];function HX(){const{isSmallScreen:e}=Wi(),{t}=or(),{submitCsat:n,isCsatRequested:i,isCsatSubmitted:a,submittedScore:r,submittedFeedback:s}=Nx(),[o,l]=E.useState(null),[u,c]=E.useState(null),d=h=>{l(g=>g===h?null:h)},f=()=>{o&&n({score:o,feedback:u||void 0})};return!i&&!a?null:v.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[v.jsx(Pt,{mode:"wait",children:i&&!o?v.jsx(Zi,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_title")})},"csat-requested-title"):a?v.jsx(Zi,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_submitted_title")})},"csat-submitted-title"):null}),v.jsx("div",{dir:"ltr",className:le("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",a&&"gap-0 justify-center"),children:UX.map(h=>v.jsx(Tt,{variant:h.value===o?"secondary":"ghost",size:"selfless",className:le("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!o&&"opacity-100",h.value===o&&"opacity-100",a&&h.value!==r&&"opacity-0 size-0",a&&h.value===r&&"opacity-100 size-fit text-4xl"),onClick:i?()=>d(h.value):void 0,children:h.emoji},h.value))}),v.jsx(Pt,{mode:"wait",children:(o||r)&&v.jsx(Zi,{children:v.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[v.jsx("textarea",{rows:3,className:le("transition-all","max-h-40 [field-sizing:content]","w-full resize-none","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm",a&&"text-center"),value:a?s||"":u||"",onChange:i?h=>c(h.target.value):void 0,readOnly:a,placeholder:i?t("csat_feedback_placeholder"):void 0}),v.jsx(Tt,{size:"fit",onClick:f,disabled:!o,className:le("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",a&&"opacity-0 size-0"),children:v.jsx(Dx,{className:"size-4"})})]})},"feedback-box")}),v.jsx("div",{className:le("h-0 transition-[height]",a&&"h-4")})]})}function Dg({suggestion:e,className:t,...n}){const{sendMessage:i}=En(),a=()=>{const r=e.trim();r&&i({content:r})};return v.jsx(Tt,{...Ue("chat/suggested_reply_btn"),size:"sm",className:le("rounded-xl w-fit",t),...n,onClick:a,children:e})}function FX(){const{t:e}=or(),t=[e("i_need_more_help"),e("this_was_helpful")];return v.jsx("div",{...Ue("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>v.jsx(Dg,{suggestion:n,className:"flex-1"},n))})}function XC(){const{sessionState:e}=wi(),{chatFooterItems:t}=$e(),n=!!e.session&&!e.session.isOpened,i=!n;return v.jsx(Pt,{mode:"wait",children:t==null?void 0:t.map((a,r)=>a.showWhenSessionIsOpen===!1&&i||a.showWhenSessionIsResolved===!1&&n?null:v.jsx(Zi,{children:v.jsx("div",{className:"pb-2 text-center text-xs",children:v.jsx(Eg,{children:a.message})})},`${a.message}-${r}`))})}function VX({file:{status:e,file:t,error:n},onCancel:i}){const[a,r]=E.useState(null);E.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>r(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return v.jsx(hM,{className:"size-4 animate-spin"});case"error":return v.jsx(sM,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&a?v.jsx("img",{src:typeof a=="string"?a:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?v.jsx(cM,{className:"size-4 text-muted-foreground"}):l==="video"?v.jsx(dM,{className:"size-4 text-muted-foreground"}):t.type==="application/pdf"?v.jsx(Px,{className:"size-4 text-muted-foreground"}):AC({type:t.type,name:t.name})?v.jsx(Ix,{className:"size-4 text-muted-foreground"}):v.jsx(fM,{className:"size-4 text-muted-foreground"})};return v.jsx(yu,{side:"bottom",content:e==="error"?v.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:v.jsxs("div",{className:le(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),v.jsx("button",{type:"button",className:le("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:i,children:v.jsx(td,{className:"size-4 text-primary-foreground"})}),v.jsx(o,{})]})})}function YX(){var e;const{isSmallScreen:t}=Wi(),n=E.useRef(null),{sendMessage:i}=En(),{sessionState:a}=wi(),{disableSendingWhenAwaitingAIReply:r}=$e(),{t:s}=or(),[o,l]=E.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:f,isUploading:h,successFiles:g}=Q5(),b=!!((e=a.session)!=null&&e.isHandedOff),{isAwaitingBotReply:_}=Cx(),m=r!==!1&&_,y=B=>{f(B)},x=!o.trim()&&g.length===0,T=async()=>{if(m||x)return;h&&console.info("please wait for the file(s) to upload");const B=o.trim();i({content:B,attachments:g.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),l(""),c()},{getRootProps:S,getInputProps:A,open:D}=tC({onDrop:y,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:b?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"],...SC}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"],...SC}}),L=B=>{const O=B.clipboardData;O&&O.files.length>0&&y(Array.from(O.files))};return v.jsxs("div",{...Ue("chat/input_box/root"),className:"p-2 relative space-y-1",...S(),children:[v.jsx("input",{...A()}),v.jsxs("div",{...Ue("chat/input_box/inner_root"),className:le("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[v.jsxs("div",{...Ue("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&v.jsx("div",{...Ue("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:v.jsx(Pt,{mode:"popLayout",children:u.map(B=>v.jsx(rt,{snapExit:!0,children:v.jsx(VX,{onCancel:()=>d(B.id),file:B})},B.id))})}),v.jsx("textarea",{...Ue("chat/input_box/textarea"),onPaste:L,ref:n,id:"chat-input",value:o,rows:3,className:le("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",t?"text-[16px]":"text-sm"),onChange:B=>l(B.target.value),onKeyDown:async B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),T())},placeholder:s("write_a_message_placeholder")})]}),v.jsxs("div",{className:"gap-2 flex justify-between",children:[v.jsx(yu,{side:"top",align:"start",content:"attach images, PDFs, or spreadsheets (maximum size 5mb)",children:v.jsx(Tt,{onClick:D,size:"fit",variant:"ghost",className:le("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:v.jsx(Pt,{mode:"wait",children:m?v.jsx(rt,{children:v.jsx(Bx,{className:"size-4 opacity-50"})},"paper-clip-disabled"):v.jsx(rt,{children:v.jsx(Bx,{className:"size-4"})},"paper-clip")})})}),v.jsx(yu,{content:"send message",side:"top",align:"end",children:v.jsx(Tt,{size:"fit",onClick:T,disabled:m||h||x,className:"rounded-full size-8 flex items-center justify-center p-0",children:v.jsx(Pt,{mode:"wait",children:m||h?v.jsx(rt,{snapExit:!0,children:v.jsx(Lx,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):v.jsx(rt,{snapExit:!0,children:v.jsx(Dx,{className:"size-4"})},"send")})})})]})]})]})}function KC(){const{widgetCtx:e}=Ct(),{router:t}=$e(),{canCreateNewSession:n}=wi(),{toSessionsScreen:i}=Si(),{t:a}=or();return v.jsx(v.Fragment,{children:n||t!=null&&t.chatScreenOnly?v.jsx(Tt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:a("new_conversation")}):v.jsx(Tt,{onClick:i,className:"rounded-2xl w-full",children:a("back_to_conversations")})})}function qX(){const{t:e}=or(),{isCsatRequested:t,isCsatSubmitted:n}=Nx();return v.jsx("div",{className:"p-2",children:v.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:v.jsx(Pt,{mode:"wait",children:t||n?v.jsxs(Zi,{children:[v.jsx(HX,{}),v.jsx(Pt,{mode:"wait",children:n&&v.jsx(Zi,{children:v.jsx(KC,{})},"new-conv-or-back-to-convs-button")})]},"csat"):v.jsxs(Zi,{children:[v.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[v.jsx(Mx,{className:"size-4 text-emerald-600"}),v.jsx("h2",{className:"text-sm font-medium",children:e("your_issue_has_been_resolved")})]}),v.jsx(KC,{})]},"session-closed")})})})}function GX(){var e;const{initialQuestions:t,initialQuestionsPosition:n,thisWasHelpfulOrNot:i}=$e(),{sessionState:a}=wi(),{messagesState:r}=En(),s=r.messages.length===0;return v.jsx("footer",{children:v.jsx(Pt,{mode:"wait",children:a.session&&!((e=a.session)!=null&&e.isOpened)?v.jsxs(Zi,{children:[v.jsx(qX,{}),v.jsx(XC,{})]},"session-closed"):v.jsxs(Zi,{children:[r.lastAIResMightSolveUserIssue&&(i==null?void 0:i.enabled)!==!1&&v.jsx(FX,{}),s&&t&&n!=="below-initial-messages"&&v.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((o,l)=>v.jsx(Dg,{suggestion:o},`${o}-${l}`))}),v.jsx(YX,{}),v.jsx(XC,{})]},"chat-input")})})}function $X({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:a}=Ct();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=a.getComponent(i.data.action.name);if(s)return v.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const r=a.getComponent(i.component);return r?v.jsx(r,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):v.jsx(Tg,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function QC({messages:e,className:t,containerClassName:n}){var i,a;const{timestamps:r}=$e();if(!((i=r==null?void 0:r.perMessageGroup)!=null&&i.enabled))return null;const s=(a=e[e.length-1])==null?void 0:a.timestamp;if(!s)return null;const o=(()=>{try{return new Date(s).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return o?v.jsx("div",{className:n,children:v.jsx("span",{className:le("text-xs text-muted-foreground",t),children:o})}):null}function mf({messages:e,agent:t,suggestedReplies:n}){return v.jsxs("div",{...Ue("chat/agent_msg_group/root"),className:le("flex items-end gap-2"),children:[v.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(Cg,{...Ue("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),v.jsxs("div",{className:le("flex-1 flex flex-col gap-1"),children:[v.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/root"),className:le("flex items-end gap-2"),children:[v.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(Cg,{...Ue("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),v.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/msgs"),className:le("flex-1 flex flex-col gap-1"),children:[e.map((i,a,r)=>v.jsx($X,{isFirstInGroup:a===0,isLastInGroup:a===r.length-1,isAloneInGroup:r.length===1,...i},i.id)),v.jsx(QC,{messages:e})]})]}),n&&n.length>0&&v.jsx("div",{...Ue("chat/agent_msg_group/suggestions"),className:le("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,a)=>v.jsx(Dg,{suggestion:i},`${i}-${a}`))})]})]})}function XX(){var e,t;const n=To();if((e=n.session)!=null&&e.isOpened||!n.session)return null;const i=(t=n.config.customComponents)==null?void 0:t.onSessionResolved;return i?v.jsx(i,{...n}):null}function KX({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var a;return v.jsxs("div",{...Ue("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&v.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(a=e.attachments)==null?void 0:a.map(r=>v.jsx(BC,{attachment:r},r.id))}),e.content.length>0&&v.jsx("div",{...Ue("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:le("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!i&&"rounded-br-md",n&&!i&&"rounded-tr-md",!t&&!n&&!i&&"rounded-r-md"),children:e.content})]})}function QX({messages:e}){return v.jsxs("div",{...Ue("chat/user_msg_group/root"),className:le("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>v.jsx(KX,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),v.jsx(QC,{messages:e,containerClassName:"ms-auto"})]})}function WX(e){const t=[];let n=null;return e.forEach(i=>{var a,r,s,o,l,u;(((a=n==null?void 0:n[0])==null?void 0:a.type)!==i.type||((r=n[0])==null?void 0:r.type)==="AGENT"&&i.type==="AGENT"&&(((s=i.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)||((l=i.agent)==null?void 0:l.name)!==((u=n[0].agent)==null?void 0:u.name)))&&(n=[],t.push(n)),n.push(i)}),t}function ZX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function JX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function eK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function tK(){const{messagesState:{messages:e}}=En(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:a}=$e();return v.jsx(v.Fragment,{children:e.length===0&&t.length>0&&v.jsx(mf,{messages:t.map(({message:r},s)=>({component:"bot_message",data:{message:r},id:`${s}-${r}`,type:"AI",timestamp:null})),suggestedReplies:e.length===0&&n==="below-initial-messages"?i:void 0,agent:a?{...a,isAi:!0,id:null}:void 0})})}function nK(){const{messagesState:{messages:e}}=En(),{chatBannerItems:t}=$e();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:v.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},a)=>e.length>0&&!i?null:v.jsx("div",{children:v.jsx(Eg,{children:n})},`${n}-${a}`))})}function iK(){const{messagesState:{messages:e}}=En(),t=$e(),{advancedInitialMessages:n=[],initialQuestions:i,initialQuestionsPosition:a}=t,r=(()=>{var s;return n.length?[]:e.length?[]:(s=t.initialMessages)!=null&&s.length?t.initialMessages:["Hello, how can I help you?"]})();return v.jsx(v.Fragment,{children:e.length===0&&r.length>0&&v.jsx(mf,{messages:r.map((s,o)=>({component:"bot_message",data:{message:s},id:`${o}-${s}`,type:"AI",timestamp:null})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:t.bot?{...t.bot,isAi:!0,id:null}:void 0})})}function aK(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.chatBottomComponents;return n?v.jsx("div",{children:n.map(({key:i,component:a})=>v.jsx(a,{...t},i))}):null}function rK(){const{messagesState:{messages:e}}=En(),{isAwaitingBotReply:t}=Cx(),{componentStore:n}=Ct(),{bot:i,humanAgent:a}=$e(),r=E.useMemo(()=>WX(e),[e]),s=n.getComponent("loading"),o=E.useRef(null);function l(){setTimeout(()=>{const u=o.current;u&&(u.scrollTop=u.scrollHeight)},0)}return E.useEffect(()=>{l()},[e]),v.jsxs("div",{...Ue("chat/msgs/root"),ref:o,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[v.jsx(nK,{}),v.jsx(tK,{}),v.jsx(iK,{}),r.map((u,c)=>{var d,f,h,g;const b=(d=u==null?void 0:u[0])==null?void 0:d.type,_=(f=u[0])==null?void 0:f.id;if(!b||!_)return null;if(ZX(u))return v.jsx(QX,{messages:u},_);if(JX(u)){const m=c===r.length-1;return t&&m?null:((h=u[0])==null||h.agent,v.jsx(mf,{messages:u,agent:i?{...i,isAi:!0,id:null}:void 0},_))}if(eK(u)){const m=(g=u[0])==null?void 0:g.agent;return v.jsx(mf,{messages:u,agent:m?{...m,name:(a==null?void 0:a.name)||m.name||"",avatarUrl:(a==null?void 0:a.avatarUrl)||m.avatarUrl||null}:a?{isAi:!1,id:null,name:a.name||"",avatarUrl:a.avatarUrl||null}:void 0},_)}return null}),t&&s&&v.jsx(s,{agent:i}),v.jsx(aK,{}),v.jsx(XX,{})]})}function sK(){const{messagesState:{isInitialFetchLoading:e}}=En(),{sessionState:{session:t}}=wi(),{isCanvasOpen:n}=zX(),{theme:i}=ns();kg({width:n?i.screens.chat.withCanvas.width:i.screens.chat.width,height:n?i.screens.chat.withCanvas.height:i.screens.chat.height});const a=E.useRef((t==null?void 0:t.id)||"chat").current;return v.jsx("div",{...Ue("chat/root"),className:le("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full justify-between flex flex-col",children:[v.jsx(GC,{}),v.jsx(Pt,{mode:"wait",children:e?v.jsx(rt,{className:"flex flex-col items-center justify-center w-full flex-1",children:v.jsx($C,{})},"loading"):v.jsxs(rt,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[v.jsxs("div",{...Ue("chat/main/root"),className:le("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:[v.jsx(rK,{}),v.jsx(GX,{})]}),v.jsx("div",{...Ue("chat/canvas/root"),className:le("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:v.jsx(jX,{})})]},a)})]})})}function oK({className:e,...t}){return v.jsx("div",{className:le("animate-pulse rounded-md bg-secondary",e),...t})}function lK({className:e}){return v.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:le("text-primary-foreground",e),children:v.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function WC({className:e}){const{token:t}=$e();return v.jsx("div",{className:le("flex items-center justify-center gap-2 p-2 pt-0",e),children:v.jsx(va,{children:v.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:le("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[v.jsx("span",{children:"Powered by"}),v.jsx("span",{children:" "}),v.jsxs("span",{className:"flex items-center gap-[1px]",children:[v.jsx("span",{children:v.jsx(lK,{className:"size-3 inline-block"})}),v.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function uK({children:e}){return v.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function ZC({session:e,className:t}){const{bot:n,humanAgent:i}=$e(),{toChatScreen:a}=Si(),r=e.assignee.kind==="human"?(i==null?void 0:i.name)||e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?(i==null?void 0:i.avatarUrl)||e.assignee.avatarUrl||"":(n==null?void 0:n.avatarUrl)||(n==null?void 0:n.avatar)||"";return v.jsxs(Tt,{variant:"ghost",size:"lg",className:le("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>a(e.id),children:[v.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[v.jsx(Pt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:v.jsxs(wg,{className:"size-10",children:[v.jsx(Sg,{src:s,alt:"Agent Icon"}),v.jsx(Ag,{children:v.jsx(SM,{className:"size-4"})})]})})}),v.jsxs("div",{className:"flex-1",children:[v.jsx(Pt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:r},r)}),v.jsx(Pt,{mode:"wait",children:e.lastMessage?v.jsx(rt,{snapExit:!0,children:v.jsx(zC,{remarkPlugins:[B2],rehypePlugins:[eA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):v.jsx(rt,{className:"w-1/2",snapExit:!0,children:v.jsx(oK,{className:"h-4 w-full"})},"skeleton")})]})]}),v.jsx(rM,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function cK(){const{t:e}=or(),{toChatScreen:t}=Si(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:a,closedSessions:r,canCreateNewSession:s}=wi();return v.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:v.jsx(Pt,{mode:"wait",children:i?v.jsx(rt,{className:"flex-1 flex items-center justify-center",children:v.jsx($C,{})},"loading"):v.jsx(rt,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?v.jsxs(v.Fragment,{children:[v.jsxs(Pt,{children:[a.length>0&&v.jsx(rt,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:a.map(o=>v.jsx(ZC,{session:o},o.id))},"open-sessions"),r.length>0&&v.jsxs(rt,{className:"space-y-2",delay:.2,snapExit:!0,children:[v.jsx(uK,{children:e("closed_conversations")}),r.map(o=>v.jsx(ZC,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&v.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))})]}):v.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsx("p",{className:"text-muted-foreground",children:e("no_conversations_yet")})}),E.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))]})},"sessions")})})}function dK(){const{theme:e}=ns();return kg({width:e.screens.sessions.width,height:e.screens.sessions.height}),v.jsx("div",{...Ue("sessions/root"),className:le("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full flex flex-col",children:[v.jsx(GC,{}),v.jsx(cK,{}),v.jsx(WC,{})]})})}const gf=E.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:a}=Wi();return v.jsx("input",{ref:i,type:t,className:le(a?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})});gf.displayName="Input";function fK(){const{contentIframeRef:e}=Ct(),{inline:t}=$e(),n=E.useRef(null);return E.useEffect(()=>{const i=e==null?void 0:e.current;if(i&&n.current){const a=n.current;let r;const s=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{const o=a.offsetHeight;i.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(a),()=>{cancelAnimationFrame(r),s.unobserve(a)}}},[e,t]),{observedElementRef:n}}const hK=fX({name:wC().min(2),email:wC().email()});function pK(){var e,t,n,i,a,r,s,o;const{widgetCtx:{org:l}}=Ct(),{setIsOpen:u}=jr(),{createUnverifiedContact:c}=Ax(),{isSmallScreen:d}=Wi(),f=$e(),{theme:h}=ns(),{t:g}=or(),{observedElementRef:b}=fK();kg({height:void 0,width:h.screens.welcome.width});const[_,m]=E.useState(((e=f.prefillUserData)==null?void 0:e.name)||""),[y,x]=E.useState(((t=f.prefillUserData)==null?void 0:t.email)||""),T=(f.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[S,A]=E.useState({}),[D,L]=j$(async B=>{B.preventDefault();const O=hK.safeParse({name:_,email:y});O.success&&await c({email:O.data.email,non_verified_name:O.data.name},Object.values(S).filter(Boolean).length?S:void 0)},[_,y,S]);return v.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:h.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:v.jsxs("div",{ref:b,className:le("flex flex-col",d&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[v.jsxs("div",{className:le("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[d&&v.jsx(rt,{className:"absolute top-6 end-6",children:v.jsx(Tt,{size:"selfless",onClick:()=>u(!1),children:v.jsx(td,{className:"size-4"})})}),v.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(n=f.assets)!=null&&n.organizationLogo?v.jsx("img",{src:(i=f.assets)==null?void 0:i.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):v.jsx("h2",{className:"font-bold text-sm",children:l.name})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((r=(a=f.textContent)==null?void 0:a.welcomeScreen)==null?void 0:r.title)||g("welcome_screen_title")}),v.jsx("p",{className:"text-sm",children:((o=(s=f.textContent)==null?void 0:s.welcomeScreen)==null?void 0:o.description)||g("welcome_screen_description")})]})]}),v.jsxs("div",{className:le("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[v.jsxs("form",{onSubmit:L,className:"space-y-2",children:[v.jsx(gf,{value:_,onChange:B=>m(B.target.value),required:!0,placeholder:g("your_name_placeholder"),name:"name"}),v.jsx(gf,{required:!0,value:y,onChange:B=>x(B.target.value),type:"email",placeholder:g("your_email_placeholder"),name:"email"}),T.map(B=>v.jsx(gf,{value:S[B],onChange:O=>A(Y=>({...Y,[B]:O.target.value})),placeholder:`${B} (${g("optional")})`},B)),v.jsxs(Tt,{disabled:D.loading,className:"w-full",size:"lg",children:[D.loading?g("start_chat_button_loading"):g("start_chat_button"),v.jsx(xM,{className:"size-4 rtl:-scale-100"})]})]}),v.jsx(WC,{})]})]})})}function JC(){const{routerState:{screen:e}}=Si();return v.jsx("div",{className:"relative bg-background size-full",children:v.jsx(Pt,{mode:"wait",children:(()=>{switch(e){case"welcome":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(pK,{})},e);case"sessions":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(dK,{})},e);case"chat":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(sK,{})},e);default:return ii(e,JC.name),null}})()})})}const mK="4.0.54",gK=`<!DOCTYPE html>
323
+ )`)};return{theme:At,computed:Es,cssVars:NX({palette:At.palette,primary:At.primaryColor})}}function NX({palette:e,primary:t}){const n=FC(e),i=de(t).toHsl(),a=de(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${i.h} ${i.s*100}% ${i.l*100}%`,"--opencx-primary-foreground":a,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function FC(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},i={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},a={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return i;case"slate":return a;default:return ii(e,FC.name),t}}function VC(){const{contentIframeRef:e}=Ct(),{inline:t}=$e();return{setWidth:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-width",t?"100%":n)},setHeight:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-height",t?"100%":n)}}}function kg({width:e,height:t}){const{isSmallScreen:n}=Wi(),{setWidth:i,setHeight:a}=VC();_.useEffect(()=>{e&&i(e),t&&a(t)},[n,t,e,i,a])}const YC=Lx;function xu({name:e,className:t}){const n=(()=>{switch(e){case"Check":return nM;case"CheckCheck":return tM;case"CircleCheck":return Mx;case"CircleCheckBig":return oM;case"CircleX":return lM;case"Expand":return uM;case"Maximize":return gM;case"Maximize2":return mM;case"Minimize":return vM;case"Minimize2":return bM;case"Shrink":return _M;case"SquareCheck":return TM;case"SquareCheckBig":return EM;case"SquareX":return wM;case"X":return td;case void 0:return YC;default:return ii(e,xu.name),YC}})();return v.jsx(n,{className:le("size-4",t)})}function RX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.headerBottom;return n?v.jsx(n,{...t}):null}function DX({fallback:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t.headerTitle;return i?v.jsx(i,{...n}):e}function Og(){const{widgetCtx:{org:e}}=Ct(),{routerState:{screen:t}}=Si(),{textContent:n}=$e();return(()=>{var i,a;switch(t){case"chat":return(i=n==null?void 0:n.chatScreen)==null?void 0:i.headerTitle;case"sessions":return(a=n==null?void 0:n.sessionsScreen)==null?void 0:a.headerTitle;case"welcome":return;default:ii(t,Og.name);return}})()??e.name??"Chat"}function MX(e){switch(e){case"chat":return Ue("chat/header");case"sessions":return Ue("sessions/header");case"welcome":return;default:ii(e,Og.name);return}}function LX(){const{router:e}=$e(),{routerState:{screen:t},toSessionsScreen:n}=Si();return t!=="chat"||e!=null&&e.chatScreenOnly?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:v.jsx(aM,{className:"size-4 rtl:-scale-100"})})}function IX({button:e}){const{setIsOpen:t}=jr(),{isSmallScreen:n}=Wi();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{if(e.handleClick)return e.handleClick();t(!1)},children:v.jsx(xu,{name:e.icon})})}function Ng({button:e}){const[t,n]=_.useState(!1),{routerState:{screen:i}}=Si(),{isSmallScreen:a}=Wi(),{theme:r}=ns(),{setWidth:s,setHeight:o}=VC();if(i!=="chat"&&i!=="sessions")return null;const l=(()=>{switch(i){case"chat":return r.screens.chat.height;case"sessions":return r.screens.sessions.height;default:return ii(i,Ng.name),r.screens.chat.height}})(),u=(()=>{switch(i){case"chat":return r.screens.chat.width;case"sessions":return r.screens.sessions.width;default:return ii(i,Ng.name),r.screens.chat.width}})(),c=()=>{n(d=>{const f=!d;return o(f?"100vh":l),s(f?`max(40vw, ${u})`:u),f})};return a&&e.hideOnSmallScreen||!a&&e.hideOnLargeScreen?null:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:v.jsx(xu,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function qC({button:e}){var t,n;const{close:i}=ff(),{widgetCtx:a}=Ct(),{setIsOpen:r}=jr(),{resolveSession:s,sessionState:o}=wi(),{isSmallScreen:l}=Wi(),u=!o.session,c=((t=o.session)==null?void 0:t.isOpened)===!1,d=e.onResolved||"stay-in-chat",f=e.behaviorBeforeSessionCreation||"disabled",h=e.behaviorIfSessionIsResolved||"disabled",g=!!(o.isResolvingSession||u&&f==="disabled"||c&&h==="disabled"),b=async()=>{const{success:m,error:y}=await s();if(i(),!m)return console.error(y);switch(d){case"stay-in-chat":return;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),a.resetChat();break;default:ii(d,qC.name);break}},E=()=>{if(u)switch(f){case"disabled":return;case"close-widget":r(!1);break;default:ii(f,E.name)}if(c)switch(h){case"disabled":return;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),setTimeout(()=>{a.resetChat()},200);break;default:ii(h,E.name)}};return l&&e.hideOnSmallScreen||!l&&e.hideOnLargeScreen?null:((n=e.confirmation)==null?void 0:n.type)==="modal"&&!c&&!u?v.jsx(xg,{trigger:v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:g,children:v.jsx(xu,{name:e.icon})}),children:v.jsxs(yg,{children:[v.jsx(kC,{children:v.jsx(RC,{children:e.confirmation.title||"Close conversation"})}),v.jsx(OC,{children:v.jsx(DC,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),v.jsxs(NC,{children:[v.jsx(Tt,{variant:"secondary",onClick:i,disabled:o.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),v.jsx(Tt,{variant:"destructive",onClick:b,disabled:o.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):v.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c||u?E:b,disabled:g,children:v.jsx(xu,{name:e.icon})})}function Rg({button:e}){switch(e.functionality){case"close-widget":return v.jsx(IX,{button:e});case"expand-shrink":return v.jsx(Ng,{button:e});case"resolve-session":return v.jsx(qC,{button:e});default:return ii(e,Rg.name),null}}const PX={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function BX(){const{routerState:{screen:e}}=Si(),{headerButtons:t}=$e(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?v.jsx(Rg,{button:PX}):v.jsx(v.Fragment,{children:n.map(i=>v.jsx(Rg,{button:i},`${i.functionality}-${i.icon}`))})}function GC(){const{routerState:{screen:e}}=Si(),t=MX(e),n=Og();return v.jsxs("header",{...t,className:"py-2 px-4 shrink-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(LX,{}),v.jsx("div",{className:le("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:v.jsx(DX,{fallback:v.jsx("h2",{className:"font-semibold",children:n})})}),v.jsx(BX,{})]}),v.jsx(RX,{})]})}function $C({className:e}){return v.jsx(pM,{className:le("size-4 animate-spin",e)})}function zX(){const{messagesState:{isInitialFetchLoading:e}}=En(),{isSmallScreen:t}=Wi(),{activeMode:n,Component:i}=Ox();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function jX(){const e=To(),{activeMode:t,Component:n}=Ox(),{sendMessage:i}=En(),{createStateCheckpoint:a}=wi(),[r,s]=_.useState(!1),o=async l=>{try{s(!0),await i(l)}catch(u){console.error(u)}finally{s(!1)}};return!t||!n?null:v.jsx(n,{...e,mode:t,createStateCheckpoint:a,sendMessage:o,isSendingMessage:r})}function or(){const{dir:e}=kp(),t=$e();return _.useMemo(()=>{const n=q5(t.language)?t.language:"en";return{t:i=>G5(i,n,t.translationOverrides),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}const Zi=pn.forwardRef((e,t)=>{var n,i,a;return v.jsx(rt,{...e,ref:t,className:le("overflow-hidden",e.className),overrides:{initial:{height:0,opacity:0,...(n=e.overrides)==null?void 0:n.initial},animate:{height:"auto",opacity:1,...(i=e.overrides)==null?void 0:i.animate},exit:{height:0,opacity:0,...(a=e.overrides)==null?void 0:a.exit}}})});Zi.displayName="MotionDiv__VerticalReveal";const UX=[{label:"Terrible",value:1,emoji:"😡"},{label:"Poor",value:2,emoji:"😞"},{label:"Okay",value:3,emoji:"😐"},{label:"Good",value:4,emoji:"😊"},{label:"Great",value:5,emoji:"😍"}];function HX(){const{isSmallScreen:e}=Wi(),{t}=or(),{submitCsat:n,isCsatRequested:i,isCsatSubmitted:a,submittedScore:r,submittedFeedback:s}=Nx(),[o,l]=_.useState(null),[u,c]=_.useState(null),d=h=>{l(g=>g===h?null:h)},f=()=>{o&&n({score:o,feedback:u||void 0})};return!i&&!a?null:v.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[v.jsx(Pt,{mode:"wait",children:i&&!o?v.jsx(Zi,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_title")})},"csat-requested-title"):a?v.jsx(Zi,{children:v.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_submitted_title")})},"csat-submitted-title"):null}),v.jsx("div",{dir:"ltr",className:le("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",a&&"gap-0 justify-center"),children:UX.map(h=>v.jsx(Tt,{variant:h.value===o?"secondary":"ghost",size:"selfless",className:le("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!o&&"opacity-100",h.value===o&&"opacity-100",a&&h.value!==r&&"opacity-0 size-0",a&&h.value===r&&"opacity-100 size-fit text-4xl"),onClick:i?()=>d(h.value):void 0,children:h.emoji},h.value))}),v.jsx(Pt,{mode:"wait",children:(o||r)&&v.jsx(Zi,{children:v.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[v.jsx("textarea",{rows:3,className:le("transition-all","max-h-40 [field-sizing:content]","w-full resize-none","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm",a&&"text-center"),value:a?s||"":u||"",onChange:i?h=>c(h.target.value):void 0,readOnly:a,placeholder:i?t("csat_feedback_placeholder"):void 0}),v.jsx(Tt,{size:"fit",onClick:f,disabled:!o,className:le("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",a&&"opacity-0 size-0"),children:v.jsx(Dx,{className:"size-4"})})]})},"feedback-box")}),v.jsx("div",{className:le("h-0 transition-[height]",a&&"h-4")})]})}function Dg({suggestion:e,className:t,...n}){const{sendMessage:i}=En(),a=()=>{const r=e.trim();r&&i({content:r})};return v.jsx(Tt,{...Ue("chat/suggested_reply_btn"),size:"sm",className:le("rounded-xl w-fit",t),...n,onClick:a,children:e})}function FX(){const{t:e}=or(),t=[e("i_need_more_help"),e("this_was_helpful")];return v.jsx("div",{...Ue("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>v.jsx(Dg,{suggestion:n,className:"flex-1"},n))})}function XC(){const{sessionState:e}=wi(),{chatFooterItems:t}=$e(),n=!!e.session&&!e.session.isOpened,i=!n;return v.jsx(Pt,{mode:"wait",children:t==null?void 0:t.map((a,r)=>a.showWhenSessionIsOpen===!1&&i||a.showWhenSessionIsResolved===!1&&n?null:v.jsx(Zi,{children:v.jsx("div",{className:"pb-2 text-center text-xs",children:v.jsx(Eg,{children:a.message})})},`${a.message}-${r}`))})}function VX({file:{status:e,file:t,error:n},onCancel:i}){const[a,r]=_.useState(null);_.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>r(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return v.jsx(hM,{className:"size-4 animate-spin"});case"error":return v.jsx(sM,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&a?v.jsx("img",{src:typeof a=="string"?a:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?v.jsx(cM,{className:"size-4 text-muted-foreground"}):l==="video"?v.jsx(dM,{className:"size-4 text-muted-foreground"}):t.type==="application/pdf"?v.jsx(Px,{className:"size-4 text-muted-foreground"}):AC({type:t.type,name:t.name})?v.jsx(Ix,{className:"size-4 text-muted-foreground"}):v.jsx(fM,{className:"size-4 text-muted-foreground"})};return v.jsx(yu,{side:"bottom",content:e==="error"?v.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:v.jsxs("div",{className:le(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),v.jsx("button",{type:"button",className:le("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:i,children:v.jsx(td,{className:"size-4 text-primary-foreground"})}),v.jsx(o,{})]})})}function YX(){var e;const{isSmallScreen:t}=Wi(),n=_.useRef(null),{sendMessage:i}=En(),{sessionState:a}=wi(),{disableSendingWhenAwaitingAIReply:r}=$e(),{t:s}=or(),[o,l]=_.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:f,isUploading:h,successFiles:g}=Q5(),b=!!((e=a.session)!=null&&e.isHandedOff),{isAwaitingBotReply:E}=Cx(),m=r!==!1&&E,y=B=>{f(B)},x=!o.trim()&&g.length===0,T=async()=>{if(m||x)return;h&&console.info("please wait for the file(s) to upload");const B=o.trim();i({content:B,attachments:g.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),l(""),c()},{getRootProps:S,getInputProps:A,open:D}=tC({onDrop:y,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:b?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"],...SC}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"],...SC}}),L=B=>{const O=B.clipboardData;O&&O.files.length>0&&y(Array.from(O.files))};return v.jsxs("div",{...Ue("chat/input_box/root"),className:"p-2 relative space-y-1",...S(),children:[v.jsx("input",{...A()}),v.jsxs("div",{...Ue("chat/input_box/inner_root"),className:le("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[v.jsxs("div",{...Ue("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&v.jsx("div",{...Ue("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:v.jsx(Pt,{mode:"popLayout",children:u.map(B=>v.jsx(rt,{snapExit:!0,children:v.jsx(VX,{onCancel:()=>d(B.id),file:B})},B.id))})}),v.jsx("textarea",{...Ue("chat/input_box/textarea"),onPaste:L,ref:n,id:"chat-input",value:o,rows:3,className:le("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",t?"text-[16px]":"text-sm"),onChange:B=>l(B.target.value),onKeyDown:async B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),T())},placeholder:s("write_a_message_placeholder")})]}),v.jsxs("div",{className:"gap-2 flex justify-between",children:[v.jsx(yu,{side:"top",align:"start",content:"attach images, PDFs, or spreadsheets (maximum size 5mb)",children:v.jsx(Tt,{onClick:D,size:"fit",variant:"ghost",className:le("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:v.jsx(Pt,{mode:"wait",children:m?v.jsx(rt,{children:v.jsx(Bx,{className:"size-4 opacity-50"})},"paper-clip-disabled"):v.jsx(rt,{children:v.jsx(Bx,{className:"size-4"})},"paper-clip")})})}),v.jsx(yu,{content:"send message",side:"top",align:"end",children:v.jsx(Tt,{size:"fit",onClick:T,disabled:m||h||x,className:"rounded-full size-8 flex items-center justify-center p-0",children:v.jsx(Pt,{mode:"wait",children:m||h?v.jsx(rt,{snapExit:!0,children:v.jsx(Lx,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):v.jsx(rt,{snapExit:!0,children:v.jsx(Dx,{className:"size-4"})},"send")})})})]})]})]})}function KC(){const{widgetCtx:e}=Ct(),{router:t}=$e(),{canCreateNewSession:n}=wi(),{toSessionsScreen:i}=Si(),{t:a}=or();return v.jsx(v.Fragment,{children:n||t!=null&&t.chatScreenOnly?v.jsx(Tt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:a("new_conversation")}):v.jsx(Tt,{onClick:i,className:"rounded-2xl w-full",children:a("back_to_conversations")})})}function qX(){const{t:e}=or(),{isCsatRequested:t,isCsatSubmitted:n}=Nx();return v.jsx("div",{className:"p-2",children:v.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:v.jsx(Pt,{mode:"wait",children:t||n?v.jsxs(Zi,{children:[v.jsx(HX,{}),v.jsx(Pt,{mode:"wait",children:n&&v.jsx(Zi,{children:v.jsx(KC,{})},"new-conv-or-back-to-convs-button")})]},"csat"):v.jsxs(Zi,{children:[v.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[v.jsx(Mx,{className:"size-4 text-emerald-600"}),v.jsx("h2",{className:"text-sm font-medium",children:e("your_issue_has_been_resolved")})]}),v.jsx(KC,{})]},"session-closed")})})})}function GX(){var e;const{initialQuestions:t,initialQuestionsPosition:n,thisWasHelpfulOrNot:i}=$e(),{sessionState:a}=wi(),{messagesState:r}=En(),s=r.messages.length===0;return v.jsx("footer",{children:v.jsx(Pt,{mode:"wait",children:a.session&&!((e=a.session)!=null&&e.isOpened)?v.jsxs(Zi,{children:[v.jsx(qX,{}),v.jsx(XC,{})]},"session-closed"):v.jsxs(Zi,{children:[r.lastAIResMightSolveUserIssue&&(i==null?void 0:i.enabled)!==!1&&v.jsx(FX,{}),s&&t&&n!=="below-initial-messages"&&v.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((o,l)=>v.jsx(Dg,{suggestion:o},`${o}-${l}`))}),v.jsx(YX,{}),v.jsx(XC,{})]},"chat-input")})})}function $X({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:a}=Ct();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=a.getComponent(i.data.action.name);if(s)return v.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const r=a.getComponent(i.component);return r?v.jsx(r,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):v.jsx(Tg,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function QC({messages:e,className:t,containerClassName:n}){var i,a;const{timestamps:r}=$e();if(!((i=r==null?void 0:r.perMessageGroup)!=null&&i.enabled))return null;const s=(a=e[e.length-1])==null?void 0:a.timestamp;if(!s)return null;const o=(()=>{try{return new Date(s).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return o?v.jsx("div",{className:n,children:v.jsx("span",{className:le("text-xs text-muted-foreground",t),children:o})}):null}function mf({messages:e,agent:t,suggestedReplies:n}){return v.jsxs("div",{...Ue("chat/agent_msg_group/root"),className:le("flex items-end gap-2"),children:[v.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(Cg,{...Ue("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),v.jsxs("div",{className:le("flex-1 flex flex-col gap-1"),children:[v.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/root"),className:le("flex items-end gap-2"),children:[v.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:v.jsx(Cg,{...Ue("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),v.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/msgs"),className:le("flex-1 flex flex-col gap-1"),children:[e.map((i,a,r)=>v.jsx($X,{isFirstInGroup:a===0,isLastInGroup:a===r.length-1,isAloneInGroup:r.length===1,...i},i.id)),v.jsx(QC,{messages:e})]})]}),n&&n.length>0&&v.jsx("div",{...Ue("chat/agent_msg_group/suggestions"),className:le("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,a)=>v.jsx(Dg,{suggestion:i},`${i}-${a}`))})]})]})}function XX(){var e,t;const n=To();if((e=n.session)!=null&&e.isOpened||!n.session)return null;const i=(t=n.config.customComponents)==null?void 0:t.onSessionResolved;return i?v.jsx(i,{...n}):null}function KX({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var a;return v.jsxs("div",{...Ue("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&v.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(a=e.attachments)==null?void 0:a.map(r=>v.jsx(BC,{attachment:r},r.id))}),e.content.length>0&&v.jsx("div",{...Ue("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:le("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!i&&"rounded-br-md",n&&!i&&"rounded-tr-md",!t&&!n&&!i&&"rounded-r-md"),children:e.content})]})}function QX({messages:e}){return v.jsxs("div",{...Ue("chat/user_msg_group/root"),className:le("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>v.jsx(KX,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),v.jsx(QC,{messages:e,containerClassName:"ms-auto"})]})}function WX(e){const t=[];let n=null;return e.forEach(i=>{var a,r,s,o,l,u;(((a=n==null?void 0:n[0])==null?void 0:a.type)!==i.type||((r=n[0])==null?void 0:r.type)==="AGENT"&&i.type==="AGENT"&&(((s=i.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)||((l=i.agent)==null?void 0:l.name)!==((u=n[0].agent)==null?void 0:u.name)))&&(n=[],t.push(n)),n.push(i)}),t}function ZX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function JX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function eK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function tK(){const{messagesState:{messages:e}}=En(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:a}=$e();return v.jsx(v.Fragment,{children:e.length===0&&t.length>0&&v.jsx(mf,{messages:t.map(({message:r},s)=>({component:"bot_message",data:{message:r},id:`${s}-${r}`,type:"AI",timestamp:null})),suggestedReplies:e.length===0&&n==="below-initial-messages"?i:void 0,agent:a?{...a,isAi:!0,id:null}:void 0})})}function nK(){const{messagesState:{messages:e}}=En(),{chatBannerItems:t}=$e();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:v.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},a)=>e.length>0&&!i?null:v.jsx("div",{children:v.jsx(Eg,{children:n})},`${n}-${a}`))})}function iK(){const{messagesState:{messages:e}}=En(),t=$e(),{advancedInitialMessages:n=[],initialQuestions:i,initialQuestionsPosition:a}=t,r=(()=>{var s;return n.length?[]:e.length?[]:(s=t.initialMessages)!=null&&s.length?t.initialMessages:["Hello, how can I help you?"]})();return v.jsx(v.Fragment,{children:e.length===0&&r.length>0&&v.jsx(mf,{messages:r.map((s,o)=>({component:"bot_message",data:{message:s},id:`${o}-${s}`,type:"AI",timestamp:null})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:t.bot?{...t.bot,isAi:!0,id:null}:void 0})})}function aK(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.chatBottomComponents;return n?v.jsx("div",{children:n.map(({key:i,component:a})=>v.jsx(a,{...t},i))}):null}function rK(){const{messagesState:{messages:e}}=En(),{isAwaitingBotReply:t}=Cx(),{componentStore:n}=Ct(),{bot:i,humanAgent:a}=$e(),r=_.useMemo(()=>WX(e),[e]),s=n.getComponent("loading"),o=_.useRef(null);function l(){setTimeout(()=>{const u=o.current;u&&(u.scrollTop=u.scrollHeight)},0)}return _.useEffect(()=>{l()},[e]),v.jsxs("div",{...Ue("chat/msgs/root"),ref:o,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[v.jsx(nK,{}),v.jsx(tK,{}),v.jsx(iK,{}),r.map((u,c)=>{var d,f,h,g;const b=(d=u==null?void 0:u[0])==null?void 0:d.type,E=(f=u[0])==null?void 0:f.id;if(!b||!E)return null;if(ZX(u))return v.jsx(QX,{messages:u},E);if(JX(u)){const m=c===r.length-1;return t&&m?null:((h=u[0])==null||h.agent,v.jsx(mf,{messages:u,agent:i?{...i,isAi:!0,id:null}:void 0},E))}if(eK(u)){const m=(g=u[0])==null?void 0:g.agent;return v.jsx(mf,{messages:u,agent:m?{...m,name:(a==null?void 0:a.name)||m.name||"",avatarUrl:(a==null?void 0:a.avatarUrl)||m.avatarUrl||null}:a?{isAi:!1,id:null,name:a.name||"",avatarUrl:a.avatarUrl||null}:void 0},E)}return null}),t&&s&&v.jsx(s,{agent:i}),v.jsx(aK,{}),v.jsx(XX,{})]})}function sK(){const{messagesState:{isInitialFetchLoading:e}}=En(),{sessionState:{session:t}}=wi(),{isCanvasOpen:n}=zX(),{theme:i}=ns();kg({width:n?i.screens.chat.withCanvas.width:i.screens.chat.width,height:n?i.screens.chat.withCanvas.height:i.screens.chat.height});const a=_.useRef((t==null?void 0:t.id)||"chat").current;return v.jsx("div",{...Ue("chat/root"),className:le("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full justify-between flex flex-col",children:[v.jsx(GC,{}),v.jsx(Pt,{mode:"wait",children:e?v.jsx(rt,{className:"flex flex-col items-center justify-center w-full flex-1",children:v.jsx($C,{})},"loading"):v.jsxs(rt,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[v.jsxs("div",{...Ue("chat/main/root"),className:le("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:[v.jsx(rK,{}),v.jsx(GX,{})]}),v.jsx("div",{...Ue("chat/canvas/root"),className:le("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:v.jsx(jX,{})})]},a)})]})})}function oK({className:e,...t}){return v.jsx("div",{className:le("animate-pulse rounded-md bg-secondary",e),...t})}function lK({className:e}){return v.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:le("text-primary-foreground",e),children:v.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function WC({className:e}){const{token:t}=$e();return v.jsx("div",{className:le("flex items-center justify-center gap-2 p-2 pt-0",e),children:v.jsx(va,{children:v.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:le("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[v.jsx("span",{children:"Powered by"}),v.jsx("span",{children:" "}),v.jsxs("span",{className:"flex items-center gap-[1px]",children:[v.jsx("span",{children:v.jsx(lK,{className:"size-3 inline-block"})}),v.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function uK({children:e}){return v.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function ZC({session:e,className:t}){const{bot:n,humanAgent:i}=$e(),{toChatScreen:a}=Si(),r=e.assignee.kind==="human"?(i==null?void 0:i.name)||e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?(i==null?void 0:i.avatarUrl)||e.assignee.avatarUrl||"":(n==null?void 0:n.avatarUrl)||(n==null?void 0:n.avatar)||"";return v.jsxs(Tt,{variant:"ghost",size:"lg",className:le("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>a(e.id),children:[v.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[v.jsx(Pt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:v.jsxs(wg,{className:"size-10",children:[v.jsx(Sg,{src:s,alt:"Agent Icon"}),v.jsx(Ag,{children:v.jsx(SM,{className:"size-4"})})]})})}),v.jsxs("div",{className:"flex-1",children:[v.jsx(Pt,{mode:"wait",children:v.jsx(rt,{snapExit:!0,children:r},r)}),v.jsx(Pt,{mode:"wait",children:e.lastMessage?v.jsx(rt,{snapExit:!0,children:v.jsx(zC,{remarkPlugins:[B2],rehypePlugins:[eA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):v.jsx(rt,{className:"w-1/2",snapExit:!0,children:v.jsx(oK,{className:"h-4 w-full"})},"skeleton")})]})]}),v.jsx(rM,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function cK(){const{t:e}=or(),{toChatScreen:t}=Si(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:a,closedSessions:r,canCreateNewSession:s}=wi();return v.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:v.jsx(Pt,{mode:"wait",children:i?v.jsx(rt,{className:"flex-1 flex items-center justify-center",children:v.jsx($C,{})},"loading"):v.jsx(rt,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?v.jsxs(v.Fragment,{children:[v.jsxs(Pt,{children:[a.length>0&&v.jsx(rt,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:a.map(o=>v.jsx(ZC,{session:o},o.id))},"open-sessions"),r.length>0&&v.jsxs(rt,{className:"space-y-2",delay:.2,snapExit:!0,children:[v.jsx(uK,{children:e("closed_conversations")}),r.map(o=>v.jsx(ZC,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&v.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:_.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))})]}):v.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[v.jsx("div",{className:"flex-1 flex items-center justify-center",children:v.jsx("p",{className:"text-muted-foreground",children:e("no_conversations_yet")})}),_.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))]})},"sessions")})})}function dK(){const{theme:e}=ns();return kg({width:e.screens.sessions.width,height:e.screens.sessions.height}),v.jsx("div",{...Ue("sessions/root"),className:le("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:v.jsxs("div",{className:"size-full flex flex-col",children:[v.jsx(GC,{}),v.jsx(cK,{}),v.jsx(WC,{})]})})}const gf=_.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:a}=Wi();return v.jsx("input",{ref:i,type:t,className:le(a?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})});gf.displayName="Input";function fK(){const{contentIframeRef:e}=Ct(),{inline:t}=$e(),n=_.useRef(null);return _.useEffect(()=>{const i=e==null?void 0:e.current;if(i&&n.current){const a=n.current;let r;const s=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{const o=a.offsetHeight;i.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(a),()=>{cancelAnimationFrame(r),s.unobserve(a)}}},[e,t]),{observedElementRef:n}}const hK=fX({name:wC().min(2),email:wC().email()});function pK(){var e,t,n,i,a,r,s,o;const{widgetCtx:{org:l}}=Ct(),{setIsOpen:u}=jr(),{createUnverifiedContact:c}=Ax(),{isSmallScreen:d}=Wi(),f=$e(),{theme:h}=ns(),{t:g}=or(),{observedElementRef:b}=fK();kg({height:void 0,width:h.screens.welcome.width});const[E,m]=_.useState(((e=f.prefillUserData)==null?void 0:e.name)||""),[y,x]=_.useState(((t=f.prefillUserData)==null?void 0:t.email)||""),T=(f.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[S,A]=_.useState({}),[D,L]=j$(async B=>{B.preventDefault();const O=hK.safeParse({name:E,email:y});O.success&&await c({email:O.data.email,non_verified_name:O.data.name},Object.values(S).filter(Boolean).length?S:void 0)},[E,y,S]);return v.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:h.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:v.jsxs("div",{ref:b,className:le("flex flex-col",d&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[v.jsxs("div",{className:le("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[d&&v.jsx(rt,{className:"absolute top-6 end-6",children:v.jsx(Tt,{size:"selfless",onClick:()=>u(!1),children:v.jsx(td,{className:"size-4"})})}),v.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(n=f.assets)!=null&&n.organizationLogo?v.jsx("img",{src:(i=f.assets)==null?void 0:i.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):v.jsx("h2",{className:"font-bold text-sm",children:l.name})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((r=(a=f.textContent)==null?void 0:a.welcomeScreen)==null?void 0:r.title)||g("welcome_screen_title")}),v.jsx("p",{className:"text-sm",children:((o=(s=f.textContent)==null?void 0:s.welcomeScreen)==null?void 0:o.description)||g("welcome_screen_description")})]})]}),v.jsxs("div",{className:le("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[v.jsxs("form",{onSubmit:L,className:"space-y-2",children:[v.jsx(gf,{value:E,onChange:B=>m(B.target.value),required:!0,placeholder:g("your_name_placeholder"),name:"name"}),v.jsx(gf,{required:!0,value:y,onChange:B=>x(B.target.value),type:"email",placeholder:g("your_email_placeholder"),name:"email"}),T.map(B=>v.jsx(gf,{value:S[B],onChange:O=>A(Y=>({...Y,[B]:O.target.value})),placeholder:`${B} (${g("optional")})`},B)),v.jsxs(Tt,{disabled:D.loading,className:"w-full",size:"lg",children:[D.loading?g("start_chat_button_loading"):g("start_chat_button"),v.jsx(xM,{className:"size-4 rtl:-scale-100"})]})]}),v.jsx(WC,{})]})]})})}function JC(){const{routerState:{screen:e}}=Si();return v.jsx("div",{className:"relative bg-background size-full",children:v.jsx(Pt,{mode:"wait",children:(()=>{switch(e){case"welcome":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(pK,{})},e);case"sessions":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(dK,{})},e);case"chat":return v.jsx(rt,{fadeIn:"right",className:"size-full",snapExit:!0,children:v.jsx(sK,{})},e);default:return ii(e,JC.name),null}})()})})}const mK="4.0.55",gK=`<!DOCTYPE html>
324
324
  <html>
325
325
  <head>
326
326
  <style>
@@ -361,7 +361,7 @@ html, body {
361
361
  *
362
362
  * This source code is licensed under the MIT license found in the
363
363
  * LICENSE file in the root directory of this source tree.
364
- */(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,N=F[te];if(0<a(N,V))F[te]=V,F[H]=N,H=te;else break e}}function n(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],H=F.pop();if(H!==V){F[0]=H;e:for(var te=0,N=F.length,be=N>>>1;te<be;){var tt=2*(te+1)-1,M=F[tt],Be=tt+1,ge=F[Be];if(0>a(M,H))Be<N&&0>a(ge,M)?(F[te]=ge,F[Be]=H,te=Be):(F[te]=M,F[tt]=H,te=tt);else if(Be<N&&0>a(ge,H))F[te]=ge,F[Be]=H,te=Be;else break e}}return V}function a(F,V){var H=F.sortIndex-V.sortIndex;return H!==0?H:F.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,b=!1,_=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(F){for(var V=n(u);V!==null;){if(V.callback===null)i(u);else if(V.startTime<=F)i(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function S(F){if(b=!1,T(F),!g)if(n(l)!==null)g=!0,A||(A=!0,U());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var A=!1,D=-1,L=5,B=-1;function O(){return _?!0:!(e.unstable_now()-B<L)}function Y(){if(_=!1,A){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,b&&(b=!1,y(D),D=-1),h=!0;var H=f;try{t:{for(T(F),d=n(l);d!==null&&!(d.expirationTime>F&&O());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var N=te(d.expirationTime<=F);if(F=e.unstable_now(),typeof N=="function"){d.callback=N,T(F),V=!0;break t}d===n(l)&&i(l),T(F)}else i(l);d=n(l)}if(d!==null)V=!0;else{var be=n(u);be!==null&&Q(S,be.startTime-F),V=!1}}break e}finally{d=null,f=H,h=!1}V=void 0}}finally{V?U():A=!1}}}var U;if(typeof x=="function")U=function(){x(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ee=ae.port2;ae.port1.onmessage=Y,U=function(){ee.postMessage(null)}}else U=function(){m(Y,0)};function Q(F,V){D=m(function(){F(e.unstable_now())},V)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var H=f;f=V;try{return F()}finally{f=H}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=f;f=F;try{return V()}finally{f=H}},e.unstable_scheduleCallback=function(F,V,H){var te=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?te+H:te):H=te,F){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=H+N,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:N,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(b?(y(D),D=-1):b=!0,Q(S,H-te))):(F.sortIndex=N,t(l,F),g||h||(g=!0,A||(A=!0,U()))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var V=f;return function(){var H=f;f=V;try{return F.apply(this,arguments)}finally{f=H}}}})(ak),ik.exports=ak;var AK=ik.exports;/**
364
+ */(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,N=F[te];if(0<a(N,V))F[te]=V,F[H]=N,H=te;else break e}}function n(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],H=F.pop();if(H!==V){F[0]=H;e:for(var te=0,N=F.length,be=N>>>1;te<be;){var tt=2*(te+1)-1,M=F[tt],Be=tt+1,ge=F[Be];if(0>a(M,H))Be<N&&0>a(ge,M)?(F[te]=ge,F[Be]=H,te=Be):(F[te]=M,F[tt]=H,te=tt);else if(Be<N&&0>a(ge,H))F[te]=ge,F[Be]=H,te=Be;else break e}}return V}function a(F,V){var H=F.sortIndex-V.sortIndex;return H!==0?H:F.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,b=!1,E=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(F){for(var V=n(u);V!==null;){if(V.callback===null)i(u);else if(V.startTime<=F)i(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function S(F){if(b=!1,T(F),!g)if(n(l)!==null)g=!0,A||(A=!0,U());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var A=!1,D=-1,L=5,B=-1;function O(){return E?!0:!(e.unstable_now()-B<L)}function Y(){if(E=!1,A){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,b&&(b=!1,y(D),D=-1),h=!0;var H=f;try{t:{for(T(F),d=n(l);d!==null&&!(d.expirationTime>F&&O());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var N=te(d.expirationTime<=F);if(F=e.unstable_now(),typeof N=="function"){d.callback=N,T(F),V=!0;break t}d===n(l)&&i(l),T(F)}else i(l);d=n(l)}if(d!==null)V=!0;else{var be=n(u);be!==null&&Q(S,be.startTime-F),V=!1}}break e}finally{d=null,f=H,h=!1}V=void 0}}finally{V?U():A=!1}}}var U;if(typeof x=="function")U=function(){x(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ee=ae.port2;ae.port1.onmessage=Y,U=function(){ee.postMessage(null)}}else U=function(){m(Y,0)};function Q(F,V){D=m(function(){F(e.unstable_now())},V)}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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var H=f;f=V;try{return F()}finally{f=H}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=f;f=F;try{return V()}finally{f=H}},e.unstable_scheduleCallback=function(F,V,H){var te=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?te+H:te):H=te,F){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=H+N,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:N,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(b?(y(D),D=-1):b=!0,Q(S,H-te))):(F.sortIndex=N,t(l,F),g||h||(g=!0,A||(A=!0,U()))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var V=f;return function(){var H=f;f=V;try{return F.apply(this,arguments)}finally{f=H}}}})(ak),ik.exports=ak;var AK=ik.exports;/**
365
365
  * @license React
366
366
  * react-dom-client.production.js
367
367
  *
@@ -369,13 +369,13 @@ html, body {
369
369
  *
370
370
  * This source code is licensed under the MIT license found in the
371
371
  * LICENSE file in the root directory of this source tree.
372
- */var Bt=AK,rk=E,CK=ml;function q(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function sk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _u(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 ok(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 lk(e){if(_u(e)!==e)throw Error(q(188))}function kK(e){var t=e.alternate;if(!t){if(t=_u(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var r=a.alternate;if(r===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return lk(a),e;if(r===i)return lk(a),t;r=r.sibling}throw Error(q(188))}if(n.return!==i.return)n=a,i=r;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,i=r;break}if(o===i){s=!0,i=a,n=r;break}o=o.sibling}if(!s){for(o=r.child;o;){if(o===n){s=!0,n=r,i=a;break}if(o===i){s=!0,i=r,n=a;break}o=o.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==i)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function uk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=uk(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,OK=Symbol.for("react.element"),vf=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),ck=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),NK=Symbol.for("react.provider"),dk=Symbol.for("react.consumer"),ya=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),Ig=Symbol.for("react.suspense"),Pg=Symbol.for("react.suspense_list"),Bg=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),zg=Symbol.for("react.activity"),RK=Symbol.for("react.memo_cache_sentinel"),fk=Symbol.iterator;function Tu(e){return e===null||typeof e!="object"?null:(e=fk&&e[fk]||e["@@iterator"],typeof e=="function"?e:null)}var DK=Symbol.for("react.client.reference");function jg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===DK?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Mg:return"Profiler";case ck:return"StrictMode";case Ig:return"Suspense";case Pg:return"SuspenseList";case zg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case ya:return(e.displayName||"Context")+".Provider";case dk:return(e._context.displayName||"Context")+".Consumer";case Lg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bg:return t=e.displayName||null,t!==null?t:jg(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return jg(e(t))}catch{}}return null}var wu=Array.isArray,me=rk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=CK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,is={pending:!1,data:null,method:null,action:null},Ug=[],So=-1;function Ji(e){return{current:e}}function Vt(e){0>So||(e.current=Ug[So],Ug[So]=null,So--)}function dt(e,t){So++,Ug[So]=e.current,e.current=t}var ea=Ji(null),Su=Ji(null),ur=Ji(null),yf=Ji(null);function xf(e,t){switch(dt(ur,t),dt(Su,e),dt(ea,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?MO(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=MO(t),e=LO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Vt(ea),dt(ea,e)}function Ao(){Vt(ea),Vt(Su),Vt(ur)}function Hg(e){e.memoizedState!==null&&dt(yf,e);var t=ea.current,n=LO(t,e.type);t!==n&&(dt(Su,e),dt(ea,n))}function _f(e){Su.current===e&&(Vt(ea),Vt(Su)),yf.current===e&&(Vt(yf),vc._currentValue=is)}var Fg=Object.prototype.hasOwnProperty,Vg=Bt.unstable_scheduleCallback,Yg=Bt.unstable_cancelCallback,MK=Bt.unstable_shouldYield,LK=Bt.unstable_requestPaint,ta=Bt.unstable_now,IK=Bt.unstable_getCurrentPriorityLevel,hk=Bt.unstable_ImmediatePriority,pk=Bt.unstable_UserBlockingPriority,Ef=Bt.unstable_NormalPriority,PK=Bt.unstable_LowPriority,mk=Bt.unstable_IdlePriority,BK=Bt.log,zK=Bt.unstable_setDisableYieldValue,Au=null,Yn=null;function cr(e){if(typeof BK=="function"&&zK(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Au,e)}catch{}}var qn=Math.clz32?Math.clz32:HK,jK=Math.log,UK=Math.LN2;function HK(e){return e>>>=0,e===0?32:31-(jK(e)/UK|0)|0}var Tf=256,wf=4194304;function as(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Sf(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,r=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~r,i!==0?a=as(i):(s&=o,s!==0?a=as(s):n||(n=o&~e,n!==0&&(a=as(n))))):(o=i&~r,o!==0?a=as(o):s!==0?a=as(s):n||(n=i&~e,n!==0&&(a=as(n)))),a===0?0:t!==0&&t!==a&&!(t&r)&&(r=a&-a,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:a}function Cu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function FK(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gk(){var e=Tf;return Tf<<=1,!(Tf&4194048)&&(Tf=256),e}function bk(){var e=wf;return wf<<=1,!(wf&62914560)&&(wf=4194304),e}function qg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ku(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VK(e,t,n,i,a,r){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-qn(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&vk(e,i,0),r!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=r&~(s&~t))}function vk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function yk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-qn(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Gg(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $g(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xk(){var e=He.p;return e!==0?e:(e=window.event,e===void 0?32:JO(e.type))}function YK(e,t){var n=He.p;try{return He.p=e,t()}finally{He.p=n}}var dr=Math.random().toString(36).slice(2),un="__reactFiber$"+dr,An="__reactProps$"+dr,Co="__reactContainer$"+dr,Xg="__reactEvents$"+dr,qK="__reactListeners$"+dr,GK="__reactHandles$"+dr,_k="__reactResources$"+dr,Ou="__reactMarker$"+dr;function Kg(e){delete e[un],delete e[An],delete e[Xg],delete e[qK],delete e[GK]}function ko(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Co]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zO(e);e!==null;){if(n=e[un])return n;e=zO(e)}return t}e=n,n=e.parentNode}return null}function Oo(e){if(e=e[un]||e[Co]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function No(e){var t=e[_k];return t||(t=e[_k]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Ou]=!0}var Ek=new Set,Tk={};function rs(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(Tk[e]=t,e=0;e<t.length;e++)Ek.add(t[e])}var $K=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wk={},Sk={};function XK(e){return Fg.call(Sk,e)?!0:Fg.call(wk,e)?!1:$K.test(e)?Sk[e]=!0:(wk[e]=!0,!1)}function Af(e,t,n){if(XK(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function xa(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Qg,Ak;function Do(e){if(Qg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qg=t&&t[1]||"",Ak=-1<n.stack.indexOf(`
372
+ */var Bt=AK,rk=_,CK=ml;function q(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function sk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _u(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 ok(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 lk(e){if(_u(e)!==e)throw Error(q(188))}function kK(e){var t=e.alternate;if(!t){if(t=_u(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var r=a.alternate;if(r===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return lk(a),e;if(r===i)return lk(a),t;r=r.sibling}throw Error(q(188))}if(n.return!==i.return)n=a,i=r;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,i=r;break}if(o===i){s=!0,i=a,n=r;break}o=o.sibling}if(!s){for(o=r.child;o;){if(o===n){s=!0,n=r,i=a;break}if(o===i){s=!0,i=r,n=a;break}o=o.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==i)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function uk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=uk(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,OK=Symbol.for("react.element"),vf=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),ck=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),NK=Symbol.for("react.provider"),dk=Symbol.for("react.consumer"),ya=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),Ig=Symbol.for("react.suspense"),Pg=Symbol.for("react.suspense_list"),Bg=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),zg=Symbol.for("react.activity"),RK=Symbol.for("react.memo_cache_sentinel"),fk=Symbol.iterator;function Tu(e){return e===null||typeof e!="object"?null:(e=fk&&e[fk]||e["@@iterator"],typeof e=="function"?e:null)}var DK=Symbol.for("react.client.reference");function jg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===DK?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Mg:return"Profiler";case ck:return"StrictMode";case Ig:return"Suspense";case Pg:return"SuspenseList";case zg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case ya:return(e.displayName||"Context")+".Provider";case dk:return(e._context.displayName||"Context")+".Consumer";case Lg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bg:return t=e.displayName||null,t!==null?t:jg(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return jg(e(t))}catch{}}return null}var wu=Array.isArray,me=rk.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=CK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,is={pending:!1,data:null,method:null,action:null},Ug=[],So=-1;function Ji(e){return{current:e}}function Vt(e){0>So||(e.current=Ug[So],Ug[So]=null,So--)}function dt(e,t){So++,Ug[So]=e.current,e.current=t}var ea=Ji(null),Su=Ji(null),ur=Ji(null),yf=Ji(null);function xf(e,t){switch(dt(ur,t),dt(Su,e),dt(ea,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?MO(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=MO(t),e=LO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Vt(ea),dt(ea,e)}function Ao(){Vt(ea),Vt(Su),Vt(ur)}function Hg(e){e.memoizedState!==null&&dt(yf,e);var t=ea.current,n=LO(t,e.type);t!==n&&(dt(Su,e),dt(ea,n))}function _f(e){Su.current===e&&(Vt(ea),Vt(Su)),yf.current===e&&(Vt(yf),vc._currentValue=is)}var Fg=Object.prototype.hasOwnProperty,Vg=Bt.unstable_scheduleCallback,Yg=Bt.unstable_cancelCallback,MK=Bt.unstable_shouldYield,LK=Bt.unstable_requestPaint,ta=Bt.unstable_now,IK=Bt.unstable_getCurrentPriorityLevel,hk=Bt.unstable_ImmediatePriority,pk=Bt.unstable_UserBlockingPriority,Ef=Bt.unstable_NormalPriority,PK=Bt.unstable_LowPriority,mk=Bt.unstable_IdlePriority,BK=Bt.log,zK=Bt.unstable_setDisableYieldValue,Au=null,Yn=null;function cr(e){if(typeof BK=="function"&&zK(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Au,e)}catch{}}var qn=Math.clz32?Math.clz32:HK,jK=Math.log,UK=Math.LN2;function HK(e){return e>>>=0,e===0?32:31-(jK(e)/UK|0)|0}var Tf=256,wf=4194304;function as(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Sf(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,r=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~r,i!==0?a=as(i):(s&=o,s!==0?a=as(s):n||(n=o&~e,n!==0&&(a=as(n))))):(o=i&~r,o!==0?a=as(o):s!==0?a=as(s):n||(n=i&~e,n!==0&&(a=as(n)))),a===0?0:t!==0&&t!==a&&!(t&r)&&(r=a&-a,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:a}function Cu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function FK(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gk(){var e=Tf;return Tf<<=1,!(Tf&4194048)&&(Tf=256),e}function bk(){var e=wf;return wf<<=1,!(wf&62914560)&&(wf=4194304),e}function qg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ku(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VK(e,t,n,i,a,r){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-qn(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&vk(e,i,0),r!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=r&~(s&~t))}function vk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function yk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-qn(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Gg(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $g(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function xk(){var e=He.p;return e!==0?e:(e=window.event,e===void 0?32:JO(e.type))}function YK(e,t){var n=He.p;try{return He.p=e,t()}finally{He.p=n}}var dr=Math.random().toString(36).slice(2),un="__reactFiber$"+dr,An="__reactProps$"+dr,Co="__reactContainer$"+dr,Xg="__reactEvents$"+dr,qK="__reactListeners$"+dr,GK="__reactHandles$"+dr,_k="__reactResources$"+dr,Ou="__reactMarker$"+dr;function Kg(e){delete e[un],delete e[An],delete e[Xg],delete e[qK],delete e[GK]}function ko(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Co]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zO(e);e!==null;){if(n=e[un])return n;e=zO(e)}return t}e=n,n=e.parentNode}return null}function Oo(e){if(e=e[un]||e[Co]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function No(e){var t=e[_k];return t||(t=e[_k]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Ou]=!0}var Ek=new Set,Tk={};function rs(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(Tk[e]=t,e=0;e<t.length;e++)Ek.add(t[e])}var $K=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wk={},Sk={};function XK(e){return Fg.call(Sk,e)?!0:Fg.call(wk,e)?!1:$K.test(e)?Sk[e]=!0:(wk[e]=!0,!1)}function Af(e,t,n){if(XK(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function xa(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var Qg,Ak;function Do(e){if(Qg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Qg=t&&t[1]||"",Ak=-1<n.stack.indexOf(`
373
373
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
374
374
  `+Qg+e+Ak}var Wg=!1;function Zg(e,t){if(!e||Wg)return"";Wg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var f=h}Reflect.construct(e,[],d)}else{try{d.call()}catch(h){f=h}e.call(d.prototype)}}else{try{throw Error()}catch(h){f=h}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),s=r[0],o=r[1];if(s&&o){var l=s.split(`
375
375
  `),u=o.split(`
376
376
  `);for(a=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(i===l.length||a===u.length)for(i=l.length-1,a=u.length-1;1<=i&&0<=a&&l[i]!==u[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==u[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==u[a]){var c=`
377
377
  `+l[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=a);break}}}finally{Wg=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Do(n):""}function KK(e){switch(e.tag){case 26:case 27:case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 15:return Zg(e.type,!1);case 11:return Zg(e.type.render,!1);case 1:return Zg(e.type,!0);case 31:return Do("Activity");default:return""}}function Ck(e){try{var t="";do t+=KK(e),e=e.return;while(e);return t}catch(n){return`
378
378
  Error generating stack: `+n.message+`
379
- `+n.stack}}function ci(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QK(e){var t=kk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){i=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kf(e){e._valueTracker||(e._valueTracker=QK(e))}function Ok(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=kk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Of(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var WK=/[\n"\\]/g;function di(e){return e.replace(WK,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jg(e,t,n,i,a,r,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ci(t)):e.value!==""+ci(t)&&(e.value=""+ci(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?eb(e,s,ci(t)):n!=null?eb(e,s,ci(n)):i!=null&&e.removeAttribute("value"),a==null&&r!=null&&(e.defaultChecked=!!r),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+ci(o):e.removeAttribute("name")}function Nk(e,t,n,i,a,r,s,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+ci(n):"",t=t!=null?""+ci(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function eb(e,t,n){t==="number"&&Of(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Mo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ci(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Rk(e,t,n){if(t!=null&&(t=""+ci(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ci(n):""}function Dk(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(wu(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ci(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ZK=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mk(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||ZK.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lk(e,t,n){if(t!=null&&typeof t!="object")throw Error(q(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&Mk(e,a,i)}else for(var r in t)t.hasOwnProperty(r)&&Mk(e,r,t[r])}function tb(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var JK=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nf(e){return eQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nb=null;function ib(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Po=null;function Ik(e){var t=Oo(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jg(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+di(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[An]||null;if(!a)throw Error(q(90));Jg(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Ok(i)}break e;case"textarea":Rk(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}}}var ab=!1;function Pk(e,t,n){if(ab)return e(t,n);ab=!0;try{var i=e(t);return i}finally{if(ab=!1,(Io!==null||Po!==null)&&(mh(),Io&&(t=Io,e=Po,Po=Io=null,Ik(t),e)))for(t=0;t<e.length;t++)Ik(e[t])}}function Ru(e,t){var n=e.stateNode;if(n===null)return null;var i=n[An]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rb=!1;if(_a)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){rb=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{rb=!1}var fr=null,sb=null,Rf=null;function Bk(){if(Rf)return Rf;var e,t=sb,n=t.length,i,a="value"in fr?fr.value:fr.textContent,r=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===a[r-i];i++);return Rf=a.slice(e,1<i?1-i:void 0)}function Df(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 Mf(){return!0}function zk(){return!1}function Cn(e){function t(n,i,a,r,s){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=r,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Mf:zk,this.isPropagationStopped=zk,this}return st(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=Mf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mf)},persist:function(){},isPersistent:Mf}),t}var ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lf=Cn(ss),Mu=st({},ss,{view:0,detail:0}),tQ=Cn(Mu),ob,lb,Lu,If=st({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cb,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!==Lu&&(Lu&&e.type==="mousemove"?(ob=e.screenX-Lu.screenX,lb=e.screenY-Lu.screenY):lb=ob=0,Lu=e),ob)},movementY:function(e){return"movementY"in e?e.movementY:lb}}),jk=Cn(If),nQ=st({},If,{dataTransfer:0}),iQ=Cn(nQ),aQ=st({},Mu,{relatedTarget:0}),ub=Cn(aQ),rQ=st({},ss,{animationName:0,elapsedTime:0,pseudoElement:0}),sQ=Cn(rQ),oQ=st({},ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lQ=Cn(oQ),uQ=st({},ss,{data:0}),Uk=Cn(uQ),cQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dQ={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"},fQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hQ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fQ[e])?!!t[e]:!1}function cb(){return hQ}var pQ=st({},Mu,{key:function(e){if(e.key){var t=cQ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cb,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mQ=Cn(pQ),gQ=st({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hk=Cn(gQ),bQ=st({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cb}),vQ=Cn(bQ),yQ=st({},ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),xQ=Cn(yQ),_Q=st({},If,{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}),EQ=Cn(_Q),TQ=st({},ss,{newState:0,oldState:0}),wQ=Cn(TQ),SQ=[9,13,27,32],db=_a&&"CompositionEvent"in window,Iu=null;_a&&"documentMode"in document&&(Iu=document.documentMode);var AQ=_a&&"TextEvent"in window&&!Iu,Fk=_a&&(!db||Iu&&8<Iu&&11>=Iu),Vk=" ",Yk=!1;function qk(e,t){switch(e){case"keyup":return SQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function CQ(e,t){switch(e){case"compositionend":return Gk(t);case"keypress":return t.which!==32?null:(Yk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Yk?null:e;default:return null}}function kQ(e,t){if(Bo)return e==="compositionend"||!db&&qk(e,t)?(e=Bk(),Rf=sb=fr=null,Bo=!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 Fk&&t.locale!=="ko"?null:t.data;default:return null}}var OQ={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 $k(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OQ[e.type]:t==="textarea"}function Xk(e,t,n,i){Io?Po?Po.push(i):Po=[i]:Io=i,t=_h(t,"onChange"),0<t.length&&(n=new Lf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Pu=null,Bu=null;function NQ(e){kO(e,0)}function Pf(e){var t=Nu(e);if(Ok(t))return e}function Kk(e,t){if(e==="change")return t}var Qk=!1;if(_a){var fb;if(_a){var hb="oninput"in document;if(!hb){var Wk=document.createElement("div");Wk.setAttribute("oninput","return;"),hb=typeof Wk.oninput=="function"}fb=hb}else fb=!1;Qk=fb&&(!document.documentMode||9<document.documentMode)}function Zk(){Pu&&(Pu.detachEvent("onpropertychange",Jk),Bu=Pu=null)}function Jk(e){if(e.propertyName==="value"&&Pf(Bu)){var t=[];Xk(t,Bu,e,ib(e)),Pk(NQ,t)}}function RQ(e,t,n){e==="focusin"?(Zk(),Pu=t,Bu=n,Pu.attachEvent("onpropertychange",Jk)):e==="focusout"&&Zk()}function DQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pf(Bu)}function MQ(e,t){if(e==="click")return Pf(t)}function LQ(e,t){if(e==="input"||e==="change")return Pf(t)}function IQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:IQ;function zu(e,t){if(Gn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Fg.call(t,a)||!Gn(e[a],t[a]))return!1}return!0}function e3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function t3(e,t){var n=e3(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e3(n)}}function n3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function i3(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Of(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Of(e.document)}return t}function pb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var PQ=_a&&"documentMode"in document&&11>=document.documentMode,zo=null,mb=null,ju=null,gb=!1;function a3(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gb||zo==null||zo!==Of(i)||(i=zo,"selectionStart"in i&&pb(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ju&&zu(ju,i)||(ju=i,i=_h(mb,"onSelect"),0<i.length&&(t=new Lf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=zo)))}function os(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jo={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionrun:os("Transition","TransitionRun"),transitionstart:os("Transition","TransitionStart"),transitioncancel:os("Transition","TransitionCancel"),transitionend:os("Transition","TransitionEnd")},bb={},r3={};_a&&(r3=document.createElement("div").style,"AnimationEvent"in window||(delete jo.animationend.animation,delete jo.animationiteration.animation,delete jo.animationstart.animation),"TransitionEvent"in window||delete jo.transitionend.transition);function ls(e){if(bb[e])return bb[e];if(!jo[e])return e;var t=jo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in r3)return bb[e]=t[n];return e}var s3=ls("animationend"),o3=ls("animationiteration"),l3=ls("animationstart"),BQ=ls("transitionrun"),zQ=ls("transitionstart"),jQ=ls("transitioncancel"),u3=ls("transitionend"),c3=new Map,vb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vb.push("scrollEnd");function Ri(e,t){c3.set(e,t),rs(t,[e])}var d3=new WeakMap;function fi(e,t){if(typeof e=="object"&&e!==null){var n=d3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ck(t)},d3.set(e,t),t)}return{value:e,source:t,stack:Ck(t)}}var hi=[],Uo=0,yb=0;function Bf(){for(var e=Uo,t=yb=Uo=0;t<e;){var n=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];hi[t++]=null;var r=hi[t];if(hi[t++]=null,i!==null&&a!==null){var s=i.pending;s===null?a.next=a:(a.next=s.next,s.next=a),i.pending=a}r!==0&&f3(n,a,r)}}function zf(e,t,n,i){hi[Uo++]=e,hi[Uo++]=t,hi[Uo++]=n,hi[Uo++]=i,yb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function xb(e,t,n,i){return zf(e,t,n,i),jf(e)}function Ho(e,t){return zf(e,null,null,t),jf(e)}function f3(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,r=e.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(a=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,a&&t!==null&&(a=31-qn(n),e=r.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),r):null}function jf(e){if(50<cc)throw cc=0,Av=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function UQ(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,i){return new UQ(e,t,n,i)}function _b(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ea(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function h3(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Uf(e,t,n,i,a,r){var s=0;if(i=e,typeof e=="function")_b(e)&&(s=1);else if(typeof e=="string")s=FW(e,n,ea.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case zg:return e=$n(31,n,t,a),e.elementType=zg,e.lanes=r,e;case wo:return us(n.children,a,r,t);case ck:s=8,a|=24;break;case Mg:return e=$n(12,n,t,a|2),e.elementType=Mg,e.lanes=r,e;case Ig:return e=$n(13,n,t,a),e.elementType=Ig,e.lanes=r,e;case Pg:return e=$n(19,n,t,a),e.elementType=Pg,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case NK:case ya:s=10;break e;case dk:s=9;break e;case Lg:s=11;break e;case Bg:s=14;break e;case lr:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=$n(s,n,t,a),t.elementType=e,t.type=i,t.lanes=r,t}function us(e,t,n,i){return e=$n(7,e,i,t),e.lanes=n,e}function Eb(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Tb(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vo=[],Yo=0,Hf=null,Ff=0,pi=[],mi=0,cs=null,Ta=1,wa="";function ds(e,t){Vo[Yo++]=Ff,Vo[Yo++]=Hf,Hf=e,Ff=t}function p3(e,t,n){pi[mi++]=Ta,pi[mi++]=wa,pi[mi++]=cs,cs=e;var i=Ta;e=wa;var a=32-qn(i)-1;i&=~(1<<a),n+=1;var r=32-qn(t)+a;if(30<r){var s=a-a%5;r=(i&(1<<s)-1).toString(32),i>>=s,a-=s,Ta=1<<32-qn(t)+a|n<<a|i,wa=r+e}else Ta=1<<r|n<<a|i,wa=e}function wb(e){e.return!==null&&(ds(e,1),p3(e,1,0))}function Sb(e){for(;e===Hf;)Hf=Vo[--Yo],Vo[Yo]=null,Ff=Vo[--Yo],Vo[Yo]=null;for(;e===cs;)cs=pi[--mi],pi[mi]=null,wa=pi[--mi],pi[mi]=null,Ta=pi[--mi],pi[mi]=null}var vn=null,vt=null,Fe=!1,fs=null,na=!1,Ab=Error(q(519));function hs(e){var t=Error(q(418,""));throw Fu(fi(t,e)),Ab}function m3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[un]=e,t[An]=i,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<fc.length;n++)De(fc[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Nk(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),kf(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Dk(t,i.value,i.defaultValue,i.children),kf(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||DO(t.textContent,n)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=Eh),t=!0):t=!1,t||hs(e)}function g3(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 13:na=!1;return;case 27:case 3:na=!0;return;default:vn=vn.return}}function Uu(e){if(e!==vn)return!1;if(!Fe)return g3(e),Fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fv(e.type,e.memoizedProps)),n=!n),n&&vt&&hs(e),g3(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){vt=Mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}vt=null}}else t===27?(t=vt,kr(e.type)?(e=Gv,Gv=null,vt=e):vt=t):vt=vn?Mi(e.stateNode.nextSibling):null;return!0}function Hu(){vt=vn=null,Fe=!1}function b3(){var e=fs;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),fs=null),e}function Fu(e){fs===null?fs=[e]:fs.push(e)}var Cb=Ji(null),ps=null,Sa=null;function hr(e,t,n){dt(Cb,t._currentValue),t._currentValue=n}function Aa(e){e._currentValue=Cb.current,Vt(Cb)}function kb(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ob(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=a.dependencies;if(r!==null){var s=a.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),kb(r.return,n,e),i||(s=null);break e}r=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(q(341));s.lanes|=n,r=s.alternate,r!==null&&(r.lanes|=n),kb(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vu(e,t,n,i){e=null;for(var a=t,r=!1;a!==null;){if(!r){if(a.flags&524288)r=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(q(387));if(s=s.memoizedProps,s!==null){var o=a.type;Gn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===yf.current){if(s=a.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(vc):e=[vc])}a=a.return}e!==null&&Ob(t,e,n,i),t.flags|=262144}function Vf(e){for(e=e.firstContext;e!==null;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){ps=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function cn(e){return v3(ps,e)}function Yf(e,t){return ps===null&&ms(e),v3(e,t)}function v3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(q(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var HQ=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},FQ=Bt.unstable_scheduleCallback,VQ=Bt.unstable_NormalPriority,zt={$$typeof:ya,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nb(){return{controller:new HQ,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&FQ(VQ,function(){e.controller.abort()})}var qu=null,Rb=0,qo=0,Go=null;function YQ(e,t){if(qu===null){var n=qu=[];Rb=0,qo=Mv(),Go={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Rb++,t.then(y3,y3),t}function y3(){if(--Rb===0&&qu!==null){Go!==null&&(Go.status="fulfilled");var e=qu;qu=null,qo=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qQ(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var x3=me.S;me.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&YQ(e,t),x3!==null&&x3(e,t)};var gs=Ji(null);function Db(){var e=gs.current;return e!==null?e:et.pooledCache}function qf(e,t){t===null?dt(gs,gs.current):dt(gs,t.pool)}function _3(){var e=Db();return e===null?null:{parent:zt._currentValue,pool:e}}var Gu=Error(q(460)),E3=Error(q(474)),Gf=Error(q(542)),Mb={then:function(){}};function T3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(){}function w3(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($f,$f),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e;default:if(typeof t.status=="string")t.then($f,$f);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(q(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e}throw $u=t,Gu}}var $u=null;function S3(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function A3(e){if(e===Gu||e===Gf)throw Error(q(483))}var pr=!1;function Lb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ib(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Ve&2){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=jf(e),f3(e,null,n),t}return zf(e,i,t,n),jf(e)}function Xu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,yk(e,n)}}function Pb(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?a=r=s:r=r.next=s,n=n.next}while(n!==null);r===null?a=r=t:r=r.next=t}else a=r=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bb=!1;function Ku(){if(Bb){var e=Go;if(e!==null)throw e}}function Qu(e,t,n,i){Bb=!1;var a=e.updateQueue;pr=!1;var r=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?r=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(r!==null){var d=a.baseState;s=0,c=u=l=null,o=r;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(Ie&f)===f:(i&f)===f){f!==0&&f===qo&&(Bb=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;f=t;var _=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(_,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,f=typeof g=="function"?g.call(_,d,f):g,f==null)break e;d=st({},d,f);break e;case 2:pr=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);c===null&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,r===null&&(a.shared.lanes=0),wr|=s,e.lanes=s,e.memoizedState=d}}function C3(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function k3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)C3(n[e],t)}var $o=Ji(null),Xf=Ji(0);function O3(e,t){e=Ma,dt(Xf,e),dt($o,t),Ma=e|t.baseLanes}function zb(){dt(Xf,Ma),dt($o,$o.current)}function jb(){Ma=Xf.current,Vt($o),Vt(Xf)}var br=0,Ce=null,qe=null,Rt=null,Kf=!1,Xo=!1,bs=!1,Qf=0,Wu=0,Ko=null,GQ=0;function wt(){throw Error(q(321))}function Ub(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function Hb(e,t,n,i,a,r){return br=r,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,me.H=e===null||e.memoizedState===null?f6:h6,bs=!1,r=n(i,a),bs=!1,Xo&&(r=R3(t,n,i,a)),N3(e),r}function N3(e){me.H=nh;var t=qe!==null&&qe.next!==null;if(br=0,Rt=qe=Ce=null,Kf=!1,Wu=0,Ko=null,t)throw Error(q(300));e===null||qt||(e=e.dependencies,e!==null&&Vf(e)&&(qt=!0))}function R3(e,t,n,i){Ce=e;var a=0;do{if(Xo&&(Ko=null),Wu=0,Xo=!1,25<=a)throw Error(q(301));if(a+=1,Rt=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}me.H=JQ,r=t(n,i)}while(Xo);return r}function $Q(){var e=me.H,t=e.useState()[0];return t=typeof t.then=="function"?Zu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Fb(){var e=Qf!==0;return Qf=0,e}function Vb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Yb(e){if(Kf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kf=!1}br=0,Rt=qe=Ce=null,Xo=!1,Wu=Qf=0,Ko=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Dt(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(q(467)):Error(q(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function qb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(e){var t=Wu;return Wu+=1,Ko===null&&(Ko=[]),e=w3(Ko,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,me.H=t===null||t.memoizedState===null?f6:h6),e}function Wf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zu(e);if(e.$$typeof===ya)return cn(e)}throw Error(q(438,String(e)))}function Gb(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qb(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=RK;return t.index++,n}function Ca(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=Dt();return $b(t,qe,e)}function $b(e,t,n){var i=e.queue;if(i===null)throw Error(q(311));i.lastRenderedReducer=n;var a=e.baseQueue,r=i.pending;if(r!==null){if(a!==null){var s=a.next;a.next=r.next,r.next=s}t.baseQueue=a=r,i.pending=null}if(r=e.baseState,a===null)e.memoizedState=r;else{t=a.next;var o=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ie&d)===d:(br&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===qo&&(c=!0);else if((br&f)===f){u=u.next,f===qo&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=r):l=l.next=d,Ce.lanes|=f,wr|=f;d=u.action,bs&&n(r,d),r=u.hasEagerState?u.eagerState:n(r,d)}else f={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=r):l=l.next=f,Ce.lanes|=d,wr|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=r:l.next=o,!Gn(r,e.memoizedState)&&(qt=!0,c&&(n=Go,n!==null)))throw n;e.memoizedState=r,e.baseState=s,e.baseQueue=l,i.lastRenderedState=r}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Xb(e){var t=Dt(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,r=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do r=e(r,s.action),s=s.next;while(s!==a);Gn(r,t.memoizedState)||(qt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,i]}function D3(e,t,n){var i=Ce,a=Dt(),r=Fe;if(r){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!Gn((qe||a).memoizedState,n);s&&(a.memoizedState=n,qt=!0),a=a.queue;var o=I3.bind(null,i,a,e);if(Ju(2048,8,o,[e]),a.getSnapshot!==t||s||Rt!==null&&Rt.memoizedState.tag&1){if(i.flags|=2048,Qo(9,Jf(),L3.bind(null,i,a,n,t),null),et===null)throw Error(q(349));r||br&124||M3(i,t,n)}return n}function M3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=qb(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function L3(e,t,n,i){t.value=n,t.getSnapshot=i,P3(t)&&B3(e)}function I3(e,t,n){return n(function(){P3(t)&&B3(e)})}function P3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gn(e,n)}catch{return!0}}function B3(e){var t=Ho(e,2);t!==null&&Zn(t,e,2)}function Kb(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),bs){cr(!0);try{n()}finally{cr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t}function z3(e,t,n,i){return e.baseState=n,$b(e,qe,typeof i=="function"?i:Ca)}function XQ(e,t,n,i,a){if(th(e))throw Error(q(485));if(e=t.action,e!==null){var r={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){r.listeners.push(s)}};me.T!==null?n(!0):r.isTransition=!1,i(r),n=t.pending,n===null?(r.next=t.pending=r,j3(t,r)):(r.next=n.next,t.pending=n.next=r)}}function j3(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var r=me.T,s={};me.T=s;try{var o=n(a,i),l=me.S;l!==null&&l(s,o),U3(e,t,o)}catch(u){Qb(e,t,u)}finally{me.T=r}}else try{r=n(a,i),U3(e,t,r)}catch(u){Qb(e,t,u)}}function U3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){H3(e,t,i)},function(i){return Qb(e,t,i)}):H3(e,t,n)}function H3(e,t,n){t.status="fulfilled",t.value=n,F3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,j3(e,n)))}function Qb(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,F3(t),t=t.next;while(t!==i)}e.action=null}function F3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function V3(e,t){return t}function Y3(e,t){if(Fe){var n=et.formState;if(n!==null){e:{var i=Ce;if(Fe){if(vt){t:{for(var a=vt,r=na;a.nodeType!==8;){if(!r){a=null;break t}if(a=Mi(a.nextSibling),a===null){a=null;break t}}r=a.data,a=r==="F!"||r==="F"?a:null}if(a){vt=Mi(a.nextSibling),i=a.data==="F!";break e}}hs(i)}i=!1}i&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:V3,lastRenderedState:t},n.queue=i,n=u6.bind(null,Ce,i),i.dispatch=n,i=Kb(!1),r=tv.bind(null,Ce,!1,i.queue),i=kn(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=XQ.bind(null,Ce,a,r,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function q3(e){var t=Dt();return G3(t,qe,e)}function G3(e,t,n){if(t=$b(e,t,V3)[0],e=Zf(Ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Zu(t)}catch(s){throw s===Gu?Gf:s}else i=t;t=Dt();var a=t.queue,r=a.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Qo(9,Jf(),KQ.bind(null,a,n),null)),[i,r,e]}function KQ(e,t){e.action=t}function $3(e){var t=Dt(),n=qe;if(n!==null)return G3(t,n,e);Dt(),t=t.memoizedState,n=Dt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Qo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=qb(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Jf(){return{destroy:void 0,resource:void 0}}function X3(){return Dt().memoizedState}function eh(e,t,n,i){var a=kn();i=i===void 0?null:i,Ce.flags|=e,a.memoizedState=Qo(1|t,Jf(),n,i)}function Ju(e,t,n,i){var a=Dt();i=i===void 0?null:i;var r=a.memoizedState.inst;qe!==null&&i!==null&&Ub(i,qe.memoizedState.deps)?a.memoizedState=Qo(t,r,n,i):(Ce.flags|=e,a.memoizedState=Qo(1|t,r,n,i))}function K3(e,t){eh(8390656,8,e,t)}function Q3(e,t){Ju(2048,8,e,t)}function W3(e,t){return Ju(4,2,e,t)}function Z3(e,t){return Ju(4,4,e,t)}function J3(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function e6(e,t,n){n=n!=null?n.concat([e]):null,Ju(4,4,J3.bind(null,t,e),n)}function Wb(){}function t6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Ub(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function n6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Ub(t,i[1]))return i[0];if(i=e(),bs){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[i,t],i}function Zb(e,t,n){return n===void 0||br&1073741824?e.memoizedState=t:(e.memoizedState=n,e=rO(),Ce.lanes|=e,wr|=e,n)}function i6(e,t,n,i){return Gn(n,t)?n:$o.current!==null?(e=Zb(e,n,i),Gn(e,t)||(qt=!0),e):br&42?(e=rO(),Ce.lanes|=e,wr|=e,t):(qt=!0,e.memoizedState=n)}function a6(e,t,n,i,a){var r=He.p;He.p=r!==0&&8>r?r:8;var s=me.T,o={};me.T=o,tv(e,!1,t,n);try{var l=a(),u=me.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=qQ(l,i);ec(e,t,c,Wn(e))}else ec(e,t,i,Wn(e))}catch(d){ec(e,t,{then:function(){},status:"rejected",reason:d},Wn())}finally{He.p=r,me.T=s}}function QQ(){}function Jb(e,t,n,i){if(e.tag!==5)throw Error(q(476));var a=r6(e).queue;a6(e,a,t,is,n===null?QQ:function(){return s6(e),n(i)})}function r6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:is,baseState:is,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:is},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function s6(e){var t=r6(e).next.queue;ec(e,t,{},Wn())}function ev(){return cn(vc)}function o6(){return Dt().memoizedState}function l6(){return Dt().memoizedState}function WQ(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Wn();e=mr(n);var i=gr(t,e,n);i!==null&&(Zn(i,t,n),Xu(i,t,n)),t={cache:Nb()},e.payload=t;return}t=t.return}}function ZQ(e,t,n){var i=Wn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},th(e)?c6(t,n):(n=xb(e,t,n,i),n!==null&&(Zn(n,e,i),d6(n,t,i)))}function u6(e,t,n){var i=Wn();ec(e,t,n,i)}function ec(e,t,n,i){var a={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(th(e))c6(t,a);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var s=t.lastRenderedState,o=r(s,n);if(a.hasEagerState=!0,a.eagerState=o,Gn(o,s))return zf(e,t,a,0),et===null&&Bf(),!1}catch{}finally{}if(n=xb(e,t,a,i),n!==null)return Zn(n,e,i),d6(n,t,i),!0}return!1}function tv(e,t,n,i){if(i={lane:2,revertLane:Mv(),action:i,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error(q(479))}else t=xb(e,n,i,2),t!==null&&Zn(t,e,2)}function th(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function c6(e,t){Xo=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function d6(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,yk(e,n)}}var nh={readContext:cn,use:Wf,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},f6={readContext:cn,use:Wf,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:K3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,eh(4194308,4,J3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eh(4194308,4,e,t)},useInsertionEffect:function(e,t){eh(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var i=e();if(bs){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=kn();if(n!==void 0){var a=n(t);if(bs){cr(!0);try{n(t)}finally{cr(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=ZQ.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=Kb(e);var t=e.queue,n=u6.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Wb,useDeferredValue:function(e,t){var n=kn();return Zb(n,e,t)},useTransition:function(){var e=Kb(!1);return e=a6.bind(null,Ce,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,a=kn();if(Fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),et===null)throw Error(q(349));Ie&124||M3(i,t,n)}a.memoizedState=n;var r={value:n,getSnapshot:t};return a.queue=r,K3(I3.bind(null,i,r,e),[e]),i.flags|=2048,Qo(9,Jf(),L3.bind(null,i,r,n,t),null),n},useId:function(){var e=kn(),t=et.identifierPrefix;if(Fe){var n=wa,i=Ta;n=(i&~(1<<32-qn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Qf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=GQ++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:ev,useFormState:Y3,useActionState:Y3,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tv.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Gb,useCacheRefresh:function(){return kn().memoizedState=WQ.bind(null,Ce)}},h6={readContext:cn,use:Wf,useCallback:t6,useContext:cn,useEffect:Q3,useImperativeHandle:e6,useInsertionEffect:W3,useLayoutEffect:Z3,useMemo:n6,useReducer:Zf,useRef:X3,useState:function(){return Zf(Ca)},useDebugValue:Wb,useDeferredValue:function(e,t){var n=Dt();return i6(n,qe.memoizedState,e,t)},useTransition:function(){var e=Zf(Ca)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:D3,useId:o6,useHostTransitionStatus:ev,useFormState:q3,useActionState:q3,useOptimistic:function(e,t){var n=Dt();return z3(n,qe,e,t)},useMemoCache:Gb,useCacheRefresh:l6},JQ={readContext:cn,use:Wf,useCallback:t6,useContext:cn,useEffect:Q3,useImperativeHandle:e6,useInsertionEffect:W3,useLayoutEffect:Z3,useMemo:n6,useReducer:Xb,useRef:X3,useState:function(){return Xb(Ca)},useDebugValue:Wb,useDeferredValue:function(e,t){var n=Dt();return qe===null?Zb(n,e,t):i6(n,qe.memoizedState,e,t)},useTransition:function(){var e=Xb(Ca)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:D3,useId:o6,useHostTransitionStatus:ev,useFormState:$3,useActionState:$3,useOptimistic:function(e,t){var n=Dt();return qe!==null?z3(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Gb,useCacheRefresh:l6},Wo=null,tc=0;function ih(e){var t=tc;return tc+=1,Wo===null&&(Wo=[]),w3(Wo,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ah(e,t){throw t.$$typeof===OK?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function p6(e){var t=e._init;return t(e._payload)}function m6(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function i(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function a(m,y){return m=Ea(m,y),m.index=0,m.sibling=null,m}function r(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=67108866,y):x):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,x,T){return y===null||y.tag!==6?(y=Eb(x,m.mode,T),y.return=m,y):(y=a(y,x),y.return=m,y)}function l(m,y,x,T){var S=x.type;return S===wo?c(m,y,x.props.children,T,x.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===lr&&p6(S)===y.type)?(y=a(y,x.props),nc(y,x),y.return=m,y):(y=Uf(x.type,x.key,x.props,null,m.mode,T),nc(y,x),y.return=m,y)}function u(m,y,x,T){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Tb(x,m.mode,T),y.return=m,y):(y=a(y,x.children||[]),y.return=m,y)}function c(m,y,x,T,S){return y===null||y.tag!==7?(y=us(x,m.mode,T,S),y.return=m,y):(y=a(y,x),y.return=m,y)}function d(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Eb(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vf:return x=Uf(y.type,y.key,y.props,null,m.mode,x),nc(x,y),x.return=m,x;case Eu:return y=Tb(y,m.mode,x),y.return=m,y;case lr:var T=y._init;return y=T(y._payload),d(m,y,x)}if(wu(y)||Tu(y))return y=us(y,m.mode,x,null),y.return=m,y;if(typeof y.then=="function")return d(m,ih(y),x);if(y.$$typeof===ya)return d(m,Yf(m,y),x);ah(m,y)}return null}function f(m,y,x,T){var S=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,y,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:return x.key===S?l(m,y,x,T):null;case Eu:return x.key===S?u(m,y,x,T):null;case lr:return S=x._init,x=S(x._payload),f(m,y,x,T)}if(wu(x)||Tu(x))return S!==null?null:c(m,y,x,T,null);if(typeof x.then=="function")return f(m,y,ih(x),T);if(x.$$typeof===ya)return f(m,y,Yf(m,x),T);ah(m,x)}return null}function h(m,y,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(y,m,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case vf:return m=m.get(T.key===null?x:T.key)||null,l(y,m,T,S);case Eu:return m=m.get(T.key===null?x:T.key)||null,u(y,m,T,S);case lr:var A=T._init;return T=A(T._payload),h(m,y,x,T,S)}if(wu(T)||Tu(T))return m=m.get(x)||null,c(y,m,T,S,null);if(typeof T.then=="function")return h(m,y,x,ih(T),S);if(T.$$typeof===ya)return h(m,y,x,Yf(y,T),S);ah(y,T)}return null}function g(m,y,x,T){for(var S=null,A=null,D=y,L=y=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var O=f(m,D,x[L],T);if(O===null){D===null&&(D=B);break}e&&D&&O.alternate===null&&t(m,D),y=r(O,y,L),A===null?S=O:A.sibling=O,A=O,D=B}if(L===x.length)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;L<x.length;L++)D=d(m,x[L],T),D!==null&&(y=r(D,y,L),A===null?S=D:A.sibling=D,A=D);return Fe&&ds(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],T),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),y=r(B,y,L),A===null?S=B:A.sibling=B,A=B);return e&&D.forEach(function(Y){return t(m,Y)}),Fe&&ds(m,L),S}function b(m,y,x,T){if(x==null)throw Error(q(151));for(var S=null,A=null,D=y,L=y=0,B=null,O=x.next();D!==null&&!O.done;L++,O=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=f(m,D,O.value,T);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),y=r(Y,y,L),A===null?S=Y:A.sibling=Y,A=Y,D=B}if(O.done)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;!O.done;L++,O=x.next())O=d(m,O.value,T),O!==null&&(y=r(O,y,L),A===null?S=O:A.sibling=O,A=O);return Fe&&ds(m,L),S}for(D=i(D);!O.done;L++,O=x.next())O=h(D,m,L,O.value,T),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?L:O.key),y=r(O,y,L),A===null?S=O:A.sibling=O,A=O);return e&&D.forEach(function(U){return t(m,U)}),Fe&&ds(m,L),S}function _(m,y,x,T){if(typeof x=="object"&&x!==null&&x.type===wo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:e:{for(var S=x.key;y!==null;){if(y.key===S){if(S=x.type,S===wo){if(y.tag===7){n(m,y.sibling),T=a(y,x.props.children),T.return=m,m=T;break e}}else if(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===lr&&p6(S)===y.type){n(m,y.sibling),T=a(y,x.props),nc(T,x),T.return=m,m=T;break e}n(m,y);break}else t(m,y);y=y.sibling}x.type===wo?(T=us(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Uf(x.type,x.key,x.props,null,m.mode,T),nc(T,x),T.return=m,m=T)}return s(m);case Eu:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),T=a(y,x.children||[]),T.return=m,m=T;break e}else{n(m,y);break}else t(m,y);y=y.sibling}T=Tb(x,m.mode,T),T.return=m,m=T}return s(m);case lr:return S=x._init,x=S(x._payload),_(m,y,x,T)}if(wu(x))return g(m,y,x,T);if(Tu(x)){if(S=Tu(x),typeof S!="function")throw Error(q(150));return x=S.call(x),b(m,y,x,T)}if(typeof x.then=="function")return _(m,y,ih(x),T);if(x.$$typeof===ya)return _(m,y,Yf(m,x),T);ah(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),T=a(y,x),T.return=m,m=T):(n(m,y),T=Eb(x,m.mode,T),T.return=m,m=T),s(m)):n(m,y)}return function(m,y,x,T){try{tc=0;var S=_(m,y,x,T);return Wo=null,S}catch(D){if(D===Gu||D===Gf)throw D;var A=$n(29,D,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var Zo=m6(!0),g6=m6(!1),gi=Ji(null),ia=null;function vr(e){var t=e.alternate;dt(jt,jt.current&1),dt(gi,e),ia===null&&(t===null||$o.current!==null||t.memoizedState!==null)&&(ia=e)}function b6(e){if(e.tag===22){if(dt(jt,jt.current),dt(gi,e),ia===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ia=e)}}else yr()}function yr(){dt(jt,jt.current),dt(gi,gi.current)}function ka(e){Vt(gi),ia===e&&(ia=null),Vt(jt)}var jt=Ji(0);function rh(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==="$?"||qv(n)))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}function nv(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var iv={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Wn(),a=mr(i);a.payload=t,n!=null&&(a.callback=n),t=gr(e,a,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Wn(),a=mr(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=gr(e,a,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),i=mr(n);i.tag=2,t!=null&&(i.callback=t),t=gr(e,i,n),t!==null&&(Zn(t,e,n),Xu(t,e,n))}};function v6(e,t,n,i,a,r,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,r,s):t.prototype&&t.prototype.isPureReactComponent?!zu(n,i)||!zu(a,r):!0}function y6(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&iv.enqueueReplaceState(t,t.state,null)}function vs(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=st({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}var sh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function x6(e){sh(e)}function _6(e){console.error(e)}function E6(e){sh(e)}function oh(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function T6(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function av(e,t,n){return n=mr(n),n.tag=3,n.payload={element:null},n.callback=function(){oh(e,t)},n}function w6(e){return e=mr(e),e.tag=3,e}function S6(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var r=i.value;e.payload=function(){return a(r)},e.callback=function(){T6(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){T6(t,n,i),typeof a!="function"&&(Sr===null?Sr=new Set([this]):Sr.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function eW(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vu(t,n,a,!0),n=gi.current,n!==null){switch(n.tag){case 13:return ia===null?kv():n.alternate===null&&yt===0&&(yt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Mb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Nv(e,i,a)),!1;case 22:return n.flags|=65536,i===Mb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Nv(e,i,a)),!1}throw Error(q(435,n.tag))}return Nv(e,i,a),kv(),!1}if(Fe)return t=gi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Ab&&(e=Error(q(422),{cause:i}),Fu(fi(e,n)))):(i!==Ab&&(t=Error(q(423),{cause:i}),Fu(fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=fi(i,n),a=av(e.stateNode,i,a),Pb(e,a),yt!==4&&(yt=2)),!1;var r=Error(q(520),{cause:i});if(r=fi(r,n),uc===null?uc=[r]:uc.push(r),yt!==4&&(yt=2),t===null)return!0;i=fi(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=av(n.stateNode,i,e),Pb(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Sr===null||!Sr.has(r))))return n.flags|=65536,a&=-a,n.lanes|=a,a=w6(a),S6(a,e,n,i),Pb(n,a),!1}n=n.return}while(n!==null);return!1}var A6=Error(q(461)),qt=!1;function Zt(e,t,n,i){t.child=e===null?g6(t,null,n,i):Zo(t,e.child,n,i)}function C6(e,t,n,i,a){n=n.render;var r=t.ref;if("ref"in i){var s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}else s=i;return ms(t),i=Hb(e,t,n,s,r,a),o=Fb(),e!==null&&!qt?(Vb(e,t,a),Oa(e,t,a)):(Fe&&o&&wb(t),t.flags|=1,Zt(e,t,i,a),t.child)}function k6(e,t,n,i,a){if(e===null){var r=n.type;return typeof r=="function"&&!_b(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,O6(e,t,r,i,a)):(e=Uf(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!fv(e,a)){var s=r.memoizedProps;if(n=n.compare,n=n!==null?n:zu,n(s,i)&&e.ref===t.ref)return Oa(e,t,a)}return t.flags|=1,e=Ea(r,i),e.ref=t.ref,e.return=t,t.child=e}function O6(e,t,n,i,a){if(e!==null){var r=e.memoizedProps;if(zu(r,i)&&e.ref===t.ref)if(qt=!1,t.pendingProps=i=r,fv(e,a))e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,Oa(e,t,a)}return rv(e,t,n,i,a)}function N6(e,t,n){var i=t.pendingProps,a=i.children,r=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if(t.flags&128){if(i=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;t.childLanes=r&~i}else t.childLanes=0,t.child=null;return R6(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qf(t,r!==null?r.cachePool:null),r!==null?O3(t,r):zb(),b6(t);else return t.lanes=t.childLanes=536870912,R6(e,t,r!==null?r.baseLanes|n:n,n)}else r!==null?(qf(t,r.cachePool),O3(t,r),yr(),t.memoizedState=null):(e!==null&&qf(t,null),zb(),yr());return Zt(e,t,a,n),t.child}function R6(e,t,n,i){var a=Db();return a=a===null?null:{parent:zt._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&qf(t,null),zb(),b6(t),e!==null&&Vu(e,t,i,!0),null}function lh(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(q(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function rv(e,t,n,i,a){return ms(t),n=Hb(e,t,n,i,void 0,a),i=Fb(),e!==null&&!qt?(Vb(e,t,a),Oa(e,t,a)):(Fe&&i&&wb(t),t.flags|=1,Zt(e,t,n,a),t.child)}function D6(e,t,n,i,a,r){return ms(t),t.updateQueue=null,n=R3(t,i,n,a),N3(e),i=Fb(),e!==null&&!qt?(Vb(e,t,r),Oa(e,t,r)):(Fe&&i&&wb(t),t.flags|=1,Zt(e,t,n,r),t.child)}function M6(e,t,n,i,a){if(ms(t),t.stateNode===null){var r=Fo,s=n.contextType;typeof s=="object"&&s!==null&&(r=cn(s)),r=new n(i,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=iv,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=i,r.state=t.memoizedState,r.refs={},Lb(t),s=n.contextType,r.context=typeof s=="object"&&s!==null?cn(s):Fo,r.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(nv(t,n,s,i),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(s=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&iv.enqueueReplaceState(r,r.state,null),Qu(t,i,r,a),Ku(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,l=vs(n,o);r.props=l;var u=r.context,c=n.contextType;s=Fo,typeof c=="object"&&c!==null&&(s=cn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||u!==s)&&y6(t,r,i,s),pr=!1;var f=t.memoizedState;r.state=f,Qu(t,i,r,a),Ku(),u=t.memoizedState,o||f!==u||pr?(typeof d=="function"&&(nv(t,n,d,i),u=t.memoizedState),(l=pr||v6(t,n,l,i,f,u,s))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),r.props=i,r.state=u,r.context=s,i=l):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{r=t.stateNode,Ib(e,t),s=t.memoizedProps,c=vs(n,s),r.props=c,d=t.pendingProps,f=r.context,u=n.contextType,l=Fo,typeof u=="object"&&u!==null&&(l=cn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==d||f!==l)&&y6(t,r,i,l),pr=!1,f=t.memoizedState,r.state=f,Qu(t,i,r,a),Ku();var h=t.memoizedState;s!==d||f!==h||pr||e!==null&&e.dependencies!==null&&Vf(e.dependencies)?(typeof o=="function"&&(nv(t,n,o,i),h=t.memoizedState),(c=pr||v6(t,n,c,i,f,h,l)||e!==null&&e.dependencies!==null&&Vf(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,h,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,h,l)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),r.props=i,r.state=h,r.context=l,i=c):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return r=i,lh(e,t),i=(t.flags&128)!==0,r||i?(r=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&i?(t.child=Zo(t,e.child,null,a),t.child=Zo(t,null,n,a)):Zt(e,t,n,a),t.memoizedState=r.state,e=t.child):e=Oa(e,t,a),e}function L6(e,t,n,i){return Hu(),t.flags|=256,Zt(e,t,n,i),t.child}var sv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ov(e){return{baseLanes:e,cachePool:_3()}}function lv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bi),e}function I6(e,t,n){var i=t.pendingProps,a=!1,r=(t.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(a?vr(t):yr(),Fe){var o=vt,l;if(l=o){e:{for(l=o,o=na;l.nodeType!==8;){if(!o){o=null;break e}if(l=Mi(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:cs!==null?{id:Ta,overflow:wa}:null,retryLane:536870912,hydrationErrors:null},l=$n(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,vn=t,vt=null,l=!0):l=!1}l||hs(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return qv(o)?t.lanes=32:t.lanes=536870912,null;ka(t)}return o=i.children,i=i.fallback,a?(yr(),a=t.mode,o=uh({mode:"hidden",children:o},a),i=us(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,a=t.child,a.memoizedState=ov(n),a.childLanes=lv(e,s,n),t.memoizedState=sv,i):(vr(t),uv(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(r)t.flags&256?(vr(t),t.flags&=-257,t=cv(e,t,n)):t.memoizedState!==null?(yr(),t.child=e.child,t.flags|=128,t=null):(yr(),a=i.fallback,o=t.mode,i=uh({mode:"visible",children:i.children},o),a=us(a,o,n,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,Zo(t,e.child,null,n),i=t.child,i.memoizedState=ov(n),i.childLanes=lv(e,s,n),t.memoizedState=sv,t=a);else if(vr(t),qv(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Fu({value:i,source:null,stack:null}),t=cv(e,t,n)}else if(qt||Vu(e,t,n,!1),s=(n&e.childLanes)!==0,qt||s){if(s=et,s!==null&&(i=n&-n,i=i&42?1:Gg(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,Ho(e,i),Zn(s,e,i),A6;o.data==="$?"||kv(),t=cv(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,vt=Mi(o.nextSibling),vn=t,Fe=!0,fs=null,na=!1,e!==null&&(pi[mi++]=Ta,pi[mi++]=wa,pi[mi++]=cs,Ta=e.id,wa=e.overflow,cs=t),t=uv(t,i.children),t.flags|=4096);return t}return a?(yr(),a=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=Ea(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?a=Ea(u,a):(a=us(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,o=e.child.memoizedState,o===null?o=ov(n):(l=o.cachePool,l!==null?(u=zt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=_3(),o={baseLanes:o.baseLanes|n,cachePool:l}),a.memoizedState=o,a.childLanes=lv(e,s,n),t.memoizedState=sv,i):(vr(t),n=e.child,e=n.sibling,n=Ea(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function uv(e,t){return t=uh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uh(e,t){return e=$n(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function cv(e,t,n){return Zo(t,e.child,null,n),e=uv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P6(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),kb(e.return,t,n)}function dv(e,t,n,i,a){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=a)}function B6(e,t,n){var i=t.pendingProps,a=i.revealOrder,r=i.tail;if(Zt(e,t,i.children,n),i=jt.current,i&2)i=i&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&&P6(e,n,t);else if(e.tag===19)P6(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}i&=1}switch(dt(jt,i),a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&rh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),dv(t,!1,a,n,r);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&rh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}dv(t,!0,n,null,r);break;case"together":dv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wr|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=Ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fv(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Vf(e)))}function tW(e,t,n){switch(t.tag){case 3:xf(t,t.stateNode.containerInfo),hr(t,zt,e.memoizedState.cache),Hu();break;case 27:case 5:Hg(t);break;case 4:xf(t,t.stateNode.containerInfo);break;case 10:hr(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(vr(t),t.flags|=128,null):n&t.child.childLanes?I6(e,t,n):(vr(t),e=Oa(e,t,n),e!==null?e.sibling:null);vr(t);break;case 19:var a=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vu(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return B6(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),dt(jt,jt.current),i)break;return null;case 22:case 23:return t.lanes=0,N6(e,t,n);case 24:hr(t,zt,e.memoizedState.cache)}return Oa(e,t,n)}function z6(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qt=!0;else{if(!fv(e,n)&&!(t.flags&128))return qt=!1,tW(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&p3(t,Ff,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,a=i._init;if(i=a(i._payload),t.type=i,typeof i=="function")_b(i)?(e=vs(i,e),t.tag=1,t=M6(null,t,i,e,n)):(t.tag=0,t=rv(null,t,i,e,n));else{if(i!=null){if(a=i.$$typeof,a===Lg){t.tag=11,t=C6(null,t,i,e,n);break e}else if(a===Bg){t.tag=14,t=k6(null,t,i,e,n);break e}}throw t=jg(i)||i,Error(q(306,t,""))}}return t;case 0:return rv(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=vs(i,t.pendingProps),M6(e,t,i,a,n);case 3:e:{if(xf(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var r=t.memoizedState;a=r.element,Ib(e,t),Qu(t,i,null,n);var s=t.memoizedState;if(i=s.cache,hr(t,zt,i),i!==r.cache&&Ob(t,[zt],n,!0),Ku(),i=s.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=L6(e,t,i,n);break e}else if(i!==a){a=fi(Error(q(424)),t),Fu(a),t=L6(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(vt=Mi(e.firstChild),vn=t,Fe=!0,fs=null,na=!0,n=g6(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hu(),i===a){t=Oa(e,t,n);break e}Zt(e,t,i,n)}t=t.child}return t;case 26:return lh(e,t),e===null?(n=FO(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fe||(n=t.type,e=t.pendingProps,i=Th(ur.current).createElement(n),i[un]=t,i[An]=e,en(i,n,e),Yt(i),t.stateNode=i):t.memoizedState=FO(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Hg(t),e===null&&Fe&&(i=t.stateNode=jO(t.type,t.pendingProps,ur.current),vn=t,na=!0,a=vt,kr(t.type)?(Gv=a,vt=Mi(i.firstChild)):vt=a),Zt(e,t,t.pendingProps.children,n),lh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((a=i=vt)&&(i=OW(i,t.type,t.pendingProps,na),i!==null?(t.stateNode=i,vn=t,vt=Mi(i.firstChild),na=!1,a=!0):a=!1),a||hs(t)),Hg(t),a=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,Fv(a,r)?i=null:s!==null&&Fv(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Hb(e,t,$Q,null,null,n),vc._currentValue=a),lh(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Fe&&((e=n=vt)&&(n=NW(n,t.pendingProps,na),n!==null?(t.stateNode=n,vn=t,vt=null,e=!0):e=!1),e||hs(t)),null;case 13:return I6(e,t,n);case 4:return xf(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zo(t,null,i,n):Zt(e,t,i,n),t.child;case 11:return C6(e,t,t.type,t.pendingProps,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hr(t,t.type,i.value),Zt(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,ms(t),a=cn(a),i=i(a),t.flags|=1,Zt(e,t,i,n),t.child;case 14:return k6(e,t,t.type,t.pendingProps,n);case 15:return O6(e,t,t.type,t.pendingProps,n);case 19:return B6(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=uh(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ea(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return N6(e,t,n);case 24:return ms(t),i=cn(zt),e===null?(a=Db(),a===null&&(a=et,r=Nb(),a.pooledCache=r,r.refCount++,r!==null&&(a.pooledCacheLanes|=n),a=r),t.memoizedState={parent:i,cache:a},Lb(t),hr(t,zt,a)):(e.lanes&n&&(Ib(e,t),Qu(t,null,null,n),Ku()),a=e.memoizedState,r=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),hr(t,zt,i)):(i=r.cache,hr(t,zt,i),i!==a.cache&&Ob(t,[zt],n,!0))),Zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Na(e){e.flags|=4}function j6(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$O(t)){if(t=gi.current,t!==null&&((Ie&4194048)===Ie?ia!==null:(Ie&62914560)!==Ie&&!(Ie&536870912)||t!==ia))throw $u=Mb,E3;e.flags|=8192}}function ch(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bk():536870912,e.lanes|=t,nl|=t)}function ic(e,t){if(!Fe)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&65011712,i|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function nW(e,t,n){var i=t.pendingProps;switch(Sb(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Aa(zt),Ao(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uu(t)?Na(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,b3())),mt(t),null;case 26:return n=t.memoizedState,e===null?(Na(t),n!==null?(mt(t),j6(t,n)):(mt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Na(t),mt(t),j6(t,n)):(mt(t),t.flags&=-16777217):(e.memoizedProps!==i&&Na(t),mt(t),t.flags&=-16777217),null;case 27:_f(t),n=ur.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}e=ea.current,Uu(t)?m3(t):(e=jO(a,i,n),t.stateNode=e,Na(t))}return mt(t),null;case 5:if(_f(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}if(e=ea.current,Uu(t))m3(t);else{switch(a=Th(ur.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?a.createElement(n,{is:i.is}):a.createElement(n)}}e[un]=t,e[An]=i;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(en(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Na(t)}}return mt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=ur.current,Uu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=vn,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[un]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||DO(e.nodeValue,n)),e||hs(t)}else e=Th(e).createTextNode(i),e[un]=t,t.stateNode=e}return mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Uu(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[un]=t}else Hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),a=!1}else a=b3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ka(t),t):(ka(t),null)}if(ka(t),t.flags&128)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool);var r=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==a&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ch(t,t.updateQueue),mt(t),null;case 4:return Ao(),e===null&&Bv(t.stateNode.containerInfo),mt(t),null;case 10:return Aa(t.type),mt(t),null;case 19:if(Vt(jt),a=t.memoizedState,a===null)return mt(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)ic(a,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=rh(e),r!==null){for(t.flags|=128,ic(a,!1),e=r.updateQueue,t.updateQueue=e,ch(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)h3(n,e),n=n.sibling;return dt(jt,jt.current&1|2),t.child}e=e.sibling}a.tail!==null&&ta()>hh&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304)}else{if(!i)if(e=rh(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ch(t,e),ic(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Fe)return mt(t),null}else 2*ta()-a.renderingStartTime>hh&&n!==536870912&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ta(),t.sibling=null,e=jt.current,dt(jt,i?e&1|2:e&1),t):(mt(t),null);case 22:case 23:return ka(t),jb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),n=t.updateQueue,n!==null&&ch(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Vt(gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Aa(zt),mt(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function iW(e,t){switch(Sb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(zt),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _f(t),null;case 13:if(ka(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(jt),null;case 4:return Ao(),null;case 10:return Aa(t.type),null;case 22:case 23:return ka(t),jb(),e!==null&&Vt(gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Aa(zt),null;case 25:return null;default:return null}}function U6(e,t){switch(Sb(t),t.tag){case 3:Aa(zt),Ao();break;case 26:case 27:case 5:_f(t);break;case 4:Ao();break;case 13:ka(t);break;case 19:Vt(jt);break;case 10:Aa(t.type);break;case 22:case 23:ka(t),jb(),e!==null&&Vt(gs);break;case 24:Aa(zt)}}function ac(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var r=n.create,s=n.inst;i=r(),s.destroy=i}n=n.next}while(n!==a)}}catch(o){Qe(t,t.return,o)}}function xr(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var r=a.next;i=r;do{if((i.tag&e)===e){var s=i.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,u=o;try{u()}catch(c){Qe(a,l,c)}}}i=i.next}while(i!==r)}}catch(c){Qe(t,t.return,c)}}function H6(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{k3(t,n)}catch(i){Qe(e,e.return,i)}}}function F6(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Qe(e,t,i)}}function rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){Qe(e,t,a)}}function aa(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){Qe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Qe(e,t,a)}else n.current=null}function V6(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){Qe(e,e.return,a)}}function hv(e,t,n){try{var i=e.stateNode;wW(i,e.type,n,t),i[An]=t}catch(a){Qe(e,e.return,a)}}function Y6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kr(e.type)||e.tag===4}function pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mv(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eh));else if(i!==4&&(i===27&&kr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(mv(e,t,n),e=e.sibling;e!==null;)mv(e,t,n),e=e.sibling}function dh(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&kr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(dh(e,t,n),e=e.sibling;e!==null;)dh(e,t,n),e=e.sibling}function q6(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);en(t,i,n),t[un]=e,t[An]=n}catch(r){Qe(e,e.return,r)}}var Ra=!1,St=!1,gv=!1,G6=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function aW(e,t){if(e=e.containerInfo,Uv=Oh,e=i3(e),pb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==r||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===a&&(o=s),f===r&&++c===i&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hv={focusedElem:e,selectionRange:n},Oh=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(t=Gt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,a=r.memoizedProps,r=r.memoizedState,i=n.stateNode;try{var g=vs(n.type,a,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,r),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){Qe(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Yv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(q(163))}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}}function $6(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:_r(e,n),i&4&&ac(5,n);break;case 1:if(_r(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Qe(n,n.return,s)}else{var a=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Qe(n,n.return,s)}}i&64&&H6(n),i&512&&rc(n,n.return);break;case 3:if(_r(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{k3(e,t)}catch(s){Qe(n,n.return,s)}}break;case 27:t===null&&i&4&&q6(n);case 26:case 5:_r(e,n),t===null&&i&4&&V6(n),i&512&&rc(n,n.return);break;case 12:_r(e,n);break;case 13:_r(e,n),i&4&&Q6(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=hW.bind(null,n),RW(e,n))));break;case 22:if(i=n.memoizedState!==null||Ra,!i){t=t!==null&&t.memoizedState!==null||St,a=Ra;var r=St;Ra=i,(St=t)&&!r?Er(e,n,(n.subtreeFlags&8772)!==0):_r(e,n),Ra=a,St=r}break;case 30:break;default:_r(e,n)}}function X6(e){var t=e.alternate;t!==null&&(e.alternate=null,X6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Kg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ft=null,On=!1;function Da(e,t,n){for(n=n.child;n!==null;)K6(e,t,n),n=n.sibling}function K6(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:St||aa(n,t),Da(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||aa(n,t);var i=ft,a=On;kr(n.type)&&(ft=n.stateNode,On=!1),Da(e,t,n),pc(n.stateNode),ft=i,On=a;break;case 5:St||aa(n,t);case 6:if(i=ft,a=On,ft=null,Da(e,t,n),ft=i,On=a,ft!==null)if(On)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(n.stateNode)}catch(r){Qe(n,t,r)}else try{ft.removeChild(n.stateNode)}catch(r){Qe(n,t,r)}break;case 18:ft!==null&&(On?(e=ft,BO(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ec(e)):BO(ft,n.stateNode));break;case 4:i=ft,a=On,ft=n.stateNode.containerInfo,On=!0,Da(e,t,n),ft=i,On=a;break;case 0:case 11:case 14:case 15:St||xr(2,n,t),St||xr(4,n,t),Da(e,t,n);break;case 1:St||(aa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&F6(n,t,i)),Da(e,t,n);break;case 21:Da(e,t,n);break;case 22:St=(i=St)||n.memoizedState!==null,Da(e,t,n),St=i;break;default:Da(e,t,n)}}function Q6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(n){Qe(t,t.return,n)}}function rW(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new G6),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new G6),t;default:throw Error(q(435,e.tag))}}function bv(e,t){var n=rW(e);t.forEach(function(i){var a=pW.bind(null,e,i);n.has(i)||(n.add(i),i.then(a,a))})}function Xn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],r=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(kr(o.type)){ft=o.stateNode,On=!1;break e}break;case 5:ft=o.stateNode,On=!1;break e;case 3:case 4:ft=o.stateNode.containerInfo,On=!0;break e}o=o.return}if(ft===null)throw Error(q(160));K6(r,s,a),ft=null,On=!1,r=a.alternate,r!==null&&(r.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)W6(t,e),t=t.sibling}var Di=null;function W6(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(t,e),Kn(e),i&4&&(xr(3,e,e.return),ac(3,e),xr(5,e,e.return));break;case 1:Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),i&64&&Ra&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var a=Di;if(Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),i&4){var r=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":r=a.getElementsByTagName("title")[0],(!r||r[Ou]||r[un]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=a.createElement(i),a.head.insertBefore(r,a.querySelector("head > title"))),en(r,i,n),r[un]=e,Yt(r),i=r;break e;case"link":var s=qO("link","href",a).get(i+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(r=s[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;case"meta":if(s=qO("meta","content",a).get(i+(n.content||""))){for(o=0;o<s.length;o++)if(r=s[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;default:throw Error(q(468,i))}r[un]=e,Yt(r),i=r}e.stateNode=i}else GO(a,e.type,e.stateNode);else e.stateNode=YO(a,i,e.memoizedProps);else r!==i?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,i===null?GO(a,e.type,e.stateNode):YO(a,i,e.memoizedProps)):i===null&&e.stateNode!==null&&hv(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),n!==null&&i&4&&hv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),e.flags&32){a=e.stateNode;try{Lo(a,"")}catch(h){Qe(e,e.return,h)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,hv(e,a,n!==null?n.memoizedProps:a)),i&1024&&(gv=!0);break;case 6:if(Xn(t,e),Kn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){Qe(e,e.return,h)}}break;case 3:if(Ah=null,a=Di,Di=wh(t.containerInfo),Xn(t,e),Di=a,Kn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(h){Qe(e,e.return,h)}gv&&(gv=!1,Z6(e));break;case 4:i=Di,Di=wh(e.stateNode.containerInfo),Xn(t,e),Kn(e),Di=i;break;case 12:Xn(t,e),Kn(e);break;case 13:Xn(t,e),Kn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Tv=ta()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,bv(e,i)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Ra,c=St;if(Ra=u||a,St=c||l,Xn(t,e),St=c,Ra=u,Kn(e),i&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Ra||St||ys(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(r=l.stateNode,a)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){Qe(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(h){Qe(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,bv(e,n))));break;case 19:Xn(t,e),Kn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,bv(e,i)));break;case 30:break;case 21:break;default:Xn(t,e),Kn(e)}}function Kn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Y6(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var a=n.stateNode,r=pv(e);dh(e,r,a);break;case 5:var s=n.stateNode;n.flags&32&&(Lo(s,""),n.flags&=-33);var o=pv(e);dh(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=pv(e);mv(e,u,l);break;default:throw Error(q(161))}}catch(c){Qe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z6(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Z6(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _r(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$6(e,t.alternate,t),t=t.sibling}function ys(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xr(4,t,t.return),ys(t);break;case 1:aa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&F6(t,t.return,n),ys(t);break;case 27:pc(t.stateNode);case 26:case 5:aa(t,t.return),ys(t);break;case 22:t.memoizedState===null&&ys(t);break;case 30:ys(t);break;default:ys(t)}e=e.sibling}}function Er(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,a=e,r=t,s=r.flags;switch(r.tag){case 0:case 11:case 15:Er(a,r,n),ac(4,r);break;case 1:if(Er(a,r,n),i=r,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Qe(i,i.return,u)}if(i=r,a=i.updateQueue,a!==null){var o=i.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)C3(l[a],o)}catch(u){Qe(i,i.return,u)}}n&&s&64&&H6(r),rc(r,r.return);break;case 27:q6(r);case 26:case 5:Er(a,r,n),n&&i===null&&s&4&&V6(r),rc(r,r.return);break;case 12:Er(a,r,n);break;case 13:Er(a,r,n),n&&s&4&&Q6(a,r);break;case 22:r.memoizedState===null&&Er(a,r,n),rc(r,r.return);break;case 30:break;default:Er(a,r,n)}t=t.sibling}}function vv(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yu(n))}function yv(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function ra(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J6(e,t,n,i),t=t.sibling}function J6(e,t,n,i){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ra(e,t,n,i),a&2048&&ac(9,t);break;case 1:ra(e,t,n,i);break;case 3:ra(e,t,n,i),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e)));break;case 12:if(a&2048){ra(e,t,n,i),e=t.stateNode;try{var r=t.memoizedProps,s=r.id,o=r.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Qe(t,t.return,l)}}else ra(e,t,n,i);break;case 13:ra(e,t,n,i);break;case 23:break;case 22:r=t.stateNode,s=t.alternate,t.memoizedState!==null?r._visibility&2?ra(e,t,n,i):sc(e,t):r._visibility&2?ra(e,t,n,i):(r._visibility|=2,Jo(e,t,n,i,(t.subtreeFlags&10256)!==0)),a&2048&&vv(s,t);break;case 24:ra(e,t,n,i),a&2048&&yv(t.alternate,t);break;default:ra(e,t,n,i)}}function Jo(e,t,n,i,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,s=t,o=n,l=i,u=s.flags;switch(s.tag){case 0:case 11:case 15:Jo(r,s,o,l,a),ac(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Jo(r,s,o,l,a):sc(r,s):(c._visibility|=2,Jo(r,s,o,l,a)),a&&u&2048&&vv(s.alternate,s);break;case 24:Jo(r,s,o,l,a),a&&u&2048&&yv(s.alternate,s);break;default:Jo(r,s,o,l,a)}t=t.sibling}}function sc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:sc(n,i),a&2048&&vv(i.alternate,i);break;case 24:sc(n,i),a&2048&&yv(i.alternate,i);break;default:sc(n,i)}t=t.sibling}}var oc=8192;function el(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)eO(e),e=e.sibling}function eO(e){switch(e.tag){case 26:el(e),e.flags&oc&&e.memoizedState!==null&&YW(Di,e.memoizedState,e.memoizedProps);break;case 5:el(e);break;case 3:case 4:var t=Di;Di=wh(e.stateNode.containerInfo),el(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,el(e),oc=t):el(e));break;default:el(e)}}function tO(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,iO(i,e)}tO(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nO(e),e=e.sibling}function nO(e){switch(e.tag){case 0:case 11:case 15:lc(e),e.flags&2048&&xr(9,e,e.return);break;case 3:lc(e);break;case 12:lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fh(e)):lc(e);break;default:lc(e)}}function fh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,iO(i,e)}tO(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xr(8,t,t.return),fh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fh(t));break;default:fh(t)}e=e.sibling}}function iO(e,t){for(;Gt!==null;){var n=Gt;switch(n.tag){case 0:case 11:case 15:xr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yu(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Gt=i;else e:for(n=e;Gt!==null;){i=Gt;var a=i.sibling,r=i.return;if(X6(i),i===n){Gt=null;break e}if(a!==null){a.return=r,Gt=a;break e}Gt=r}}}var sW={getCacheForType:function(e){var t=cn(zt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},oW=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,Re=null,Ie=0,Ye=0,Qn=null,Tr=!1,tl=!1,xv=!1,Ma=0,yt=0,wr=0,xs=0,_v=0,bi=0,nl=0,uc=null,Nn=null,Ev=!1,Tv=0,hh=1/0,ph=null,Sr=null,Jt=0,Ar=null,il=null,al=0,wv=0,Sv=null,aO=null,cc=0,Av=null;function Wn(){if(Ve&2&&Ie!==0)return Ie&-Ie;if(me.T!==null){var e=qo;return e!==0?e:Mv()}return xk()}function rO(){bi===0&&(bi=!(Ie&536870912)||Fe?gk():536870912);var e=gi.current;return e!==null&&(e.flags|=32),bi}function Zn(e,t,n){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(rl(e,0),Cr(e,Ie,bi,!1)),ku(e,n),(!(Ve&2)||e!==et)&&(e===et&&(!(Ve&2)&&(xs|=n),yt===4&&Cr(e,Ie,bi,!1)),sa(e))}function sO(e,t,n){if(Ve&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cu(e,t),a=i?cW(e,t):Ov(e,t,!0),r=i;do{if(a===0){tl&&!i&&Cr(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!lW(n)){a=Ov(e,t,!1),r=!1;continue}if(a===2){if(r=t,e.errorRecoveryDisabledLanes&r)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=uc;var l=o.current.memoizedState.isDehydrated;if(l&&(rl(o,s).flags|=256),s=Ov(o,s,!1),s!==2){if(xv&&!l){o.errorRecoveryDisabledLanes|=r,xs|=r,a=4;break e}r=Nn,Nn=a,r!==null&&(Nn===null?Nn=r:Nn.push.apply(Nn,r))}a=s}if(r=!1,a!==2)continue}}if(a===1){rl(e,0),Cr(e,t,0,!0);break}e:{switch(i=e,r=a,r){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:Cr(i,t,bi,!Tr);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(a=Tv+300-ta(),10<a)){if(Cr(i,t,bi,!Tr),Sf(i,0,!0)!==0)break e;i.timeoutHandle=IO(oO.bind(null,i,n,Nn,ph,Ev,t,bi,xs,nl,Tr,r,2,-0,0),a);break e}oO(i,n,Nn,ph,Ev,t,bi,xs,nl,Tr,r,0,-0,0)}}break}while(!0);sa(e)}function oO(e,t,n,i,a,r,s,o,l,u,c,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:VW},eO(t),d=qW(),d!==null)){e.cancelPendingCommit=d(pO.bind(null,e,t,r,n,i,a,s,o,l,c,1,f,h)),Cr(e,r,s,!u);return}pO(e,t,r,n,i,a,s,o,l)}function lW(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],r=a.getSnapshot;a=a.value;try{if(!Gn(r(),a))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 Cr(e,t,n,i){t&=~_v,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var r=31-qn(a),s=1<<r;i[r]=-1,a&=~s}n!==0&&vk(e,n,t)}function mh(){return Ve&6?!0:(dc(0),!1)}function Cv(){if(Re!==null){if(Ye===0)var e=Re.return;else e=Re,Sa=ps=null,Yb(e),Wo=null,tc=0,e=Re;for(;e!==null;)U6(e.alternate,e),e=e.return;Re=null}}function rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,AW(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cv(),et=e,Re=n=Ea(e.current,null),Ie=t,Ye=0,Qn=null,Tr=!1,tl=Cu(e,t),xv=!1,nl=bi=_v=xs=wr=yt=0,Nn=uc=null,Ev=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var a=31-qn(i),r=1<<a;t|=e[a],i&=~r}return Ma=t,Bf(),n}function lO(e,t){Ce=null,me.H=nh,t===Gu||t===Gf?(t=S3(),Ye=3):t===E3?(t=S3(),Ye=4):Ye=t===A6?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Re===null&&(yt=1,oh(e,fi(t,e.current)))}function uO(){var e=me.H;return me.H=nh,e===null?nh:e}function cO(){var e=me.A;return me.A=sW,e}function kv(){yt=4,Tr||(Ie&4194048)!==Ie&&gi.current!==null||(tl=!0),!(wr&134217727)&&!(xs&134217727)||et===null||Cr(et,Ie,bi,!1)}function Ov(e,t,n){var i=Ve;Ve|=2;var a=uO(),r=cO();(et!==e||Ie!==t)&&(ph=null,rl(e,t)),t=!1;var s=yt;e:do try{if(Ye!==0&&Re!==null){var o=Re,l=Qn;switch(Ye){case 8:Cv(),s=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(t=!0);var u=Ye;if(Ye=0,Qn=null,sl(e,o,l,u),n&&tl){s=0;break e}break;default:u=Ye,Ye=0,Qn=null,sl(e,o,l,u)}}uW(),s=yt;break}catch(c){lO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Sa=ps=null,Ve=i,me.H=a,me.A=r,Re===null&&(et=null,Ie=0,Bf()),s}function uW(){for(;Re!==null;)dO(Re)}function cW(e,t){var n=Ve;Ve|=2;var i=uO(),a=cO();et!==e||Ie!==t?(ph=null,hh=ta()+500,rl(e,t)):tl=Cu(e,t);e:do try{if(Ye!==0&&Re!==null){t=Re;var r=Qn;t:switch(Ye){case 1:Ye=0,Qn=null,sl(e,t,r,1);break;case 2:case 9:if(T3(r)){Ye=0,Qn=null,fO(t);break}t=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),sa(e)},r.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:T3(r)?(Ye=0,Qn=null,fO(t)):(Ye=0,Qn=null,sl(e,t,r,7));break;case 5:var s=null;switch(Re.tag){case 26:s=Re.memoizedState;case 5:case 27:var o=Re;if(!s||$O(s)){Ye=0,Qn=null;var l=o.sibling;if(l!==null)Re=l;else{var u=o.return;u!==null?(Re=u,gh(u)):Re=null}break t}}Ye=0,Qn=null,sl(e,t,r,5);break;case 6:Ye=0,Qn=null,sl(e,t,r,6);break;case 8:Cv(),yt=6;break e;default:throw Error(q(462))}}dW();break}catch(c){lO(e,c)}while(!0);return Sa=ps=null,me.H=i,me.A=a,Ve=n,Re!==null?0:(et=null,Ie=0,Bf(),yt)}function dW(){for(;Re!==null&&!MK();)dO(Re)}function dO(e){var t=z6(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function fO(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=D6(n,t,t.pendingProps,t.type,void 0,Ie);break;case 11:t=D6(n,t,t.pendingProps,t.type.render,t.ref,Ie);break;case 5:Yb(t);default:U6(n,t),t=Re=h3(t,Ma),t=z6(n,t,Ma)}e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function sl(e,t,n,i){Sa=ps=null,Yb(t),Wo=null,tc=0;var a=t.return;try{if(eW(e,a,t,n,Ie)){yt=1,oh(e,fi(n,e.current)),Re=null;return}}catch(r){if(a!==null)throw Re=a,r;yt=1,oh(e,fi(n,e.current)),Re=null;return}t.flags&32768?(Fe||i===1?e=!0:tl||Ie&536870912?e=!1:(Tr=e=!0,(i===2||i===9||i===3||i===6)&&(i=gi.current,i!==null&&i.tag===13&&(i.flags|=16384))),hO(t,e)):gh(t)}function gh(e){var t=e;do{if(t.flags&32768){hO(t,Tr);return}e=t.return;var n=nW(t.alternate,t,Ma);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);yt===0&&(yt=5)}function hO(e,t){do{var n=iW(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);yt=6,Re=null}function pO(e,t,n,i,a,r,s,o,l){e.cancelPendingCommit=null;do bh();while(Jt!==0);if(Ve&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(r=t.lanes|t.childLanes,r|=yb,VK(e,n,r,s,o,l),e===et&&(Re=et=null,Ie=0),il=t,Ar=e,al=n,wv=r,Sv=a,aO=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,mW(Ef,function(){return yO(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=me.T,me.T=null,a=He.p,He.p=2,s=Ve,Ve|=4;try{aW(e,t,n)}finally{Ve=s,He.p=a,me.T=i}}Jt=1,mO(),gO(),bO()}}function mO(){if(Jt===1){Jt=0;var e=Ar,t=il,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{W6(t,e);var r=Hv,s=i3(e.containerInfo),o=r.focusedElem,l=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&n3(o.ownerDocument.documentElement,o)){if(l!==null&&pb(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),_=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>_&&(s=_,_=b,b=s);var m=t3(o,b),y=t3(o,_);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var x=d.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),b>_?(h.addRange(x),h.extend(y.node,y.offset)):(x.setEnd(y.node,y.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var T=d[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Oh=!!Uv,Hv=Uv=null}finally{Ve=a,He.p=i,me.T=n}}e.current=t,Jt=2}}function gO(){if(Jt===2){Jt=0;var e=Ar,t=il,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{$6(e,t.alternate,t)}finally{Ve=a,He.p=i,me.T=n}}Jt=3}}function bO(){if(Jt===4||Jt===3){Jt=0,LK();var e=Ar,t=il,n=al,i=aO;t.subtreeFlags&10256||t.flags&10256?Jt=5:(Jt=0,il=Ar=null,vO(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Sr=null),$g(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Au,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=me.T,a=He.p,He.p=2,me.T=null;try{for(var r=e.onRecoverableError,s=0;s<i.length;s++){var o=i[s];r(o.value,{componentStack:o.stack})}}finally{me.T=t,He.p=a}}al&3&&bh(),sa(e),a=e.pendingLanes,n&4194090&&a&42?e===Av?cc++:(cc=0,Av=e):cc=0,dc(0)}}function vO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function bh(e){return mO(),gO(),bO(),yO()}function yO(){if(Jt!==5)return!1;var e=Ar,t=wv;wv=0;var n=$g(al),i=me.T,a=He.p;try{He.p=32>n?32:n,me.T=null,n=Sv,Sv=null;var r=Ar,s=al;if(Jt=0,il=Ar=null,al=0,Ve&6)throw Error(q(331));var o=Ve;if(Ve|=4,nO(r.current),J6(r,r.current,s,n),Ve=o,dc(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Au,r)}catch{}return!0}finally{He.p=a,me.T=i,vO(e,t)}}function xO(e,t,n){t=fi(n,t),t=av(e.stateNode,t,2),e=gr(e,t,2),e!==null&&(ku(e,2),sa(e))}function Qe(e,t,n){if(e.tag===3)xO(e,e,n);else for(;t!==null;){if(t.tag===3){xO(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Sr===null||!Sr.has(i))){e=fi(n,e),n=w6(2),i=gr(t,n,2),i!==null&&(S6(n,i,t,e),ku(i,2),sa(i));break}}t=t.return}}function Nv(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new oW;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(xv=!0,a.add(n),e=fW.bind(null,e,t,n),t.then(e,e))}function fW(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Ie&n)===n&&(yt===4||yt===3&&(Ie&62914560)===Ie&&300>ta()-Tv?!(Ve&2)&&rl(e,0):_v|=n,nl===Ie&&(nl=0)),sa(e)}function _O(e,t){t===0&&(t=bk()),e=Ho(e,t),e!==null&&(ku(e,t),sa(e))}function hW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_O(e,n)}function pW(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(q(314))}i!==null&&i.delete(t),_O(e,n)}function mW(e,t){return Vg(e,t)}var vh=null,ol=null,Rv=!1,yh=!1,Dv=!1,_s=0;function sa(e){e!==ol&&e.next===null&&(ol===null?vh=ol=e:ol=ol.next=e),yh=!0,Rv||(Rv=!0,bW())}function dc(e,t){if(!Dv&&yh){Dv=!0;do for(var n=!1,i=vh;i!==null;){if(e!==0){var a=i.pendingLanes;if(a===0)var r=0;else{var s=i.suspendedLanes,o=i.pingedLanes;r=(1<<31-qn(42|e)+1)-1,r&=a&~(s&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,SO(i,r))}else r=Ie,r=Sf(i,i===et?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(r&3)||Cu(i,r)||(n=!0,SO(i,r));i=i.next}while(n);Dv=!1}}function gW(){EO()}function EO(){yh=Rv=!1;var e=0;_s!==0&&(SW()&&(e=_s),_s=0);for(var t=ta(),n=null,i=vh;i!==null;){var a=i.next,r=TO(i,t);r===0?(i.next=null,n===null?vh=a:n.next=a,a===null&&(ol=n)):(n=i,(e!==0||r&3)&&(yh=!0)),i=a}dc(e)}function TO(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var s=31-qn(r),o=1<<s,l=a[s];l===-1?(!(o&n)||o&i)&&(a[s]=FK(o,t)):l<=t&&(e.expiredLanes|=o),r&=~o}if(t=et,n=Ie,n=Sf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Yg(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Yg(i),$g(n)){case 2:case 8:n=pk;break;case 32:n=Ef;break;case 268435456:n=mk;break;default:n=Ef}return i=wO.bind(null,e),n=Vg(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Yg(i),e.callbackPriority=2,e.callbackNode=null,2}function wO(e,t){if(Jt!==0&&Jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bh()&&e.callbackNode!==n)return null;var i=Ie;return i=Sf(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(sO(e,i,t),TO(e,ta()),e.callbackNode!=null&&e.callbackNode===n?wO.bind(null,e):null)}function SO(e,t){if(bh())return null;sO(e,t,!0)}function bW(){CW(function(){Ve&6?Vg(hk,gW):EO()})}function Mv(){return _s===0&&(_s=gk()),_s}function AO(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nf(""+e)}function CO(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function vW(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var r=AO((a[An]||null).action),s=i.submitter;s&&(t=(t=s[An]||null)?AO(t.formAction):s.getAttribute("formAction"),t!==null&&(r=t,s=null));var o=new Lf("action","action",null,i,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_s!==0){var l=s?CO(a,s):new FormData(a);Jb(n,{pending:!0,data:l,method:a.method,action:r},null,l)}}else typeof r=="function"&&(o.preventDefault(),l=s?CO(a,s):new FormData(a),Jb(n,{pending:!0,data:l,method:a.method,action:r},r,l))},currentTarget:a}]})}}for(var Lv=0;Lv<vb.length;Lv++){var Iv=vb[Lv],yW=Iv.toLowerCase(),xW=Iv[0].toUpperCase()+Iv.slice(1);Ri(yW,"on"+xW)}Ri(s3,"onAnimationEnd"),Ri(o3,"onAnimationIteration"),Ri(l3,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(BQ,"onTransitionRun"),Ri(zQ,"onTransitionStart"),Ri(jQ,"onTransitionCancel"),Ri(u3,"onTransitionEnd"),Ro("onMouseEnter",["mouseout","mouseover"]),Ro("onMouseLeave",["mouseout","mouseover"]),Ro("onPointerEnter",["pointerout","pointerover"]),Ro("onPointerLeave",["pointerout","pointerover"]),rs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rs("onBeforeInput",["compositionend","keypress","textInput","paste"]),rs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="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(" "),_W=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function kO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){sh(c)}a.currentTarget=null,r=l}else for(s=0;s<i.length;s++){if(o=i[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){sh(c)}a.currentTarget=null,r=l}}}}function De(e,t){var n=t[Xg];n===void 0&&(n=t[Xg]=new Set);var i=e+"__bubble";n.has(i)||(OO(t,e,2,!1),n.add(i))}function Pv(e,t,n){var i=0;t&&(i|=4),OO(n,e,i,t)}var xh="_reactListening"+Math.random().toString(36).slice(2);function Bv(e){if(!e[xh]){e[xh]=!0,Ek.forEach(function(n){n!=="selectionchange"&&(_W.has(n)||Pv(n,!1,e),Pv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xh]||(t[xh]=!0,Pv("selectionchange",!1,t))}}function OO(e,t,n,i){switch(JO(t)){case 2:var a=XW;break;case 8:a=KW;break;default:a=Wv}n=a.bind(null,t,n,e),a=void 0,!rb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zv(e,t,n,i,a){var r=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=ko(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){i=r=s;continue e}o=o.parentNode}}i=i.return}Pk(function(){var u=r,c=ib(n),d=[];e:{var f=c3.get(e);if(f!==void 0){var h=Lf,g=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":h=mQ;break;case"focusin":g="focus",h=ub;break;case"focusout":g="blur",h=ub;break;case"beforeblur":case"afterblur":h=ub;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":h=jk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=iQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=vQ;break;case s3:case o3:case l3:h=sQ;break;case u3:h=xQ;break;case"scroll":case"scrollend":h=tQ;break;case"wheel":h=EQ;break;case"copy":case"cut":case"paste":h=lQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Hk;break;case"toggle":case"beforetoggle":h=wQ}var b=(t&4)!==0,_=!b&&(e==="scroll"||e==="scrollend"),m=b?f!==null?f+"Capture":null:f;b=[];for(var y=u,x;y!==null;){var T=y;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Ru(y,m),T!=null&&b.push(hc(y,T,x))),_)break;y=y.return}0<b.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==nb&&(g=n.relatedTarget||n.fromElement)&&(ko(g)||g[Co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ko(g):null,g!==null&&(_=_u(g),b=g.tag,g!==_||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=jk,T="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=Hk,T="onPointerLeave",m="onPointerEnter",y="pointer"),_=h==null?f:Nu(h),x=g==null?f:Nu(g),f=new b(T,y+"leave",h,n,c),f.target=_,f.relatedTarget=x,T=null,ko(c)===u&&(b=new b(m,y+"enter",g,n,c),b.target=x,b.relatedTarget=_,T=b),_=T,h&&g)t:{for(b=h,m=g,y=0,x=b;x;x=ll(x))y++;for(x=0,T=m;T;T=ll(T))x++;for(;0<y-x;)b=ll(b),y--;for(;0<x-y;)m=ll(m),x--;for(;y--;){if(b===m||m!==null&&b===m.alternate)break t;b=ll(b),m=ll(m)}b=null}else b=null;h!==null&&NO(d,f,h,b,!1),g!==null&&_!==null&&NO(d,_,g,b,!0)}}e:{if(f=u?Nu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=Kk;else if($k(f))if(Qk)S=LQ;else{S=DQ;var A=RQ}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&tb(u.elementType)&&(S=Kk):S=MQ;if(S&&(S=S(e,u))){Xk(d,S,n,c);break e}A&&A(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&eb(f,"number",f.value)}switch(A=u?Nu(u):window,e){case"focusin":($k(A)||A.contentEditable==="true")&&(zo=A,mb=u,ju=null);break;case"focusout":ju=mb=zo=null;break;case"mousedown":gb=!0;break;case"contextmenu":case"mouseup":case"dragend":gb=!1,a3(d,n,c);break;case"selectionchange":if(PQ)break;case"keydown":case"keyup":a3(d,n,c)}var D;if(db)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Bo?qk(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Fk&&n.locale!=="ko"&&(Bo||L!=="onCompositionStart"?L==="onCompositionEnd"&&Bo&&(D=Bk()):(fr=c,sb="value"in fr?fr.value:fr.textContent,Bo=!0)),A=_h(u,L),0<A.length&&(L=new Uk(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=Gk(n),D!==null&&(L.data=D)))),(D=AQ?CQ(e,n):kQ(e,n))&&(L=_h(u,"onBeforeInput"),0<L.length&&(A=new Uk("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:L}),A.data=D)),vW(d,e,u,n,c)}kO(d,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _h(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,r=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||r===null||(a=Ru(e,n),a!=null&&i.unshift(hc(e,a,r)),a=Ru(e,t),a!=null&&i.push(hc(e,a,r))),e.tag===3)return i;e=e.return}return[]}function ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function NO(e,t,n,i,a){for(var r=t._reactName,s=[];n!==null&&n!==i;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===i)break;o!==5&&o!==26&&o!==27||u===null||(l=u,a?(u=Ru(n,r),u!=null&&s.unshift(hc(n,u,l))):a||(u=Ru(n,r),u!=null&&s.push(hc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var EW=/\r\n?/g,TW=/\u0000|\uFFFD/g;function RO(e){return(typeof e=="string"?e:""+e).replace(EW,`
380
- `).replace(TW,"")}function DO(e,t){return t=RO(t),RO(e)===t}function Eh(){}function Ge(e,t,n,i,a,r){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Lo(e,""+i);break;case"className":Cf(e,"class",i);break;case"tabIndex":Cf(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(e,n,i);break;case"style":Lk(e,i,r);break;case"data":if(t!=="object"){Cf(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",a.name,a,null),Ge(e,t,"formEncType",a.formEncType,a,null),Ge(e,t,"formMethod",a.formMethod,a,null),Ge(e,t,"formTarget",a.formTarget,a,null)):(Ge(e,t,"encType",a.encType,a,null),Ge(e,t,"method",a.method,a,null),Ge(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Nf(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":De("beforetoggle",e),De("toggle",e),Af(e,"popover",i);break;case"xlinkActuate":xa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":xa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":xa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":xa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":xa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":xa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":xa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":xa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":xa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Af(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=JK.get(n)||n,Af(e,n,i))}}function jv(e,t,n,i,a,r){switch(n){case"style":Lk(e,i,r);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&Lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tk.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),r=e[An]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,a),typeof i=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,a);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Af(e,n,i)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var i=!1,a=!1,r;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(s!=null)switch(r){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,r,s,n,null)}}a&&Ge(e,t,"srcSet",n.srcSet,n,null),i&&Ge(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=r=s=a=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":a=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(q(137,t));break;default:Ge(e,t,i,c,n,null)}}Nk(e,r,o,l,u,s,a,!1),kf(e);return;case"select":De("invalid",e),i=s=r=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":r=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:Ge(e,t,a,o,n,null)}t=r,n=s,e.multiple=!!i,t!=null?Mo(e,!!i,t,!1):n!=null&&Mo(e,!!i,n,!0);return;case"textarea":De("invalid",e),r=a=i=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":i=o;break;case"defaultValue":a=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(q(91));break;default:Ge(e,t,s,o,n,null)}Dk(e,i,a,r),kf(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ge(e,t,l,i,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<fc.length;i++)De(fc[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,u,i,n,null)}return;default:if(tb(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&jv(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Ge(e,t,o,i,n,null))}function wW(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,r=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||Ge(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":r=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:h!==d&&Ge(e,t,f,h,i,d)}}Jg(e,s,o,l,u,c,r,a);return;case"select":h=s=o=f=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":h=l;default:i.hasOwnProperty(r)||Ge(e,t,r,null,i,l)}for(a in i)if(r=i[a],l=n[a],i.hasOwnProperty(a)&&(r!=null||l!=null))switch(a){case"value":f=r;break;case"defaultValue":o=r;break;case"multiple":s=r;default:r!==l&&Ge(e,t,a,r,i,l)}t=o,n=s,i=h,f!=null?Mo(e,!!n,f,!1):!!i!=!!n&&(t!=null?Mo(e,!!n,t,!0):Mo(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ge(e,t,o,null,i,a)}for(s in i)if(a=i[s],r=n[s],i.hasOwnProperty(s)&&(a!=null||r!=null))switch(s){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(q(91));break;default:a!==r&&Ge(e,t,s,a,i,r)}Rk(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ge(e,t,g,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,t,l,f,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!i.hasOwnProperty(b)&&Ge(e,t,b,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Ge(e,t,u,f,i,h)}return;default:if(tb(t)){for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!==void 0&&!i.hasOwnProperty(_)&&jv(e,t,_,void 0,i,f);for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||jv(e,t,c,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&Ge(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||Ge(e,t,d,f,i,h)}var Uv=null,Hv=null;function Th(e){return e.nodeType===9?e:e.ownerDocument}function MO(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function LO(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Fv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vv=null;function SW(){var e=window.event;return e&&e.type==="popstate"?e===Vv?!1:(Vv=e,!0):(Vv=null,!1)}var IO=typeof setTimeout=="function"?setTimeout:void 0,AW=typeof clearTimeout=="function"?clearTimeout:void 0,PO=typeof Promise=="function"?Promise:void 0,CW=typeof queueMicrotask=="function"?queueMicrotask:typeof PO<"u"?function(e){return PO.resolve(null).then(e).catch(kW)}:IO;function kW(e){setTimeout(function(){throw e})}function kr(e){return e==="head"}function BO(e,t){var n=t,i=0,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<i&&8>i){n=i;var s=e.ownerDocument;if(n&1&&pc(s.documentElement),n&2&&pc(s.body),n&4)for(n=s.head,pc(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ou]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(a===0){e.removeChild(r),Ec(t);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:i=n.charCodeAt(0)-48;else i=0;n=r}while(n);Ec(t)}function Yv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Yv(n),Kg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function OW(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ou])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Mi(e.nextSibling),e===null)break}return null}function NW(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mi(e.nextSibling),e===null))return null;return e}function qv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function RW(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Gv=null;function zO(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}function jO(e,t,n){switch(t=Th(n),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kg(e)}var vi=new Map,UO=new Set;function wh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var La=He.d;He.d={f:DW,r:MW,D:LW,C:IW,L:PW,m:BW,X:jW,S:zW,M:UW};function DW(){var e=La.f(),t=mh();return e||t}function MW(e){var t=Oo(e);t!==null&&t.tag===5&&t.type==="form"?s6(t):La.r(e)}var ul=typeof document>"u"?null:document;function HO(e,t,n){var i=ul;if(i&&typeof t=="string"&&t){var a=di(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),UO.has(a)||(UO.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function LW(e){La.D(e),HO("dns-prefetch",e,null)}function IW(e,t){La.C(e,t),HO("preconnect",e,t)}function PW(e,t,n){La.L(e,t,n);var i=ul;if(i&&e&&t){var a='link[rel="preload"][as="'+di(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+di(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+di(n.imageSizes)+'"]')):a+='[href="'+di(e)+'"]';var r=a;switch(t){case"style":r=cl(e);break;case"script":r=dl(e)}vi.has(r)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vi.set(r,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(mc(r))||t==="script"&&i.querySelector(gc(r))||(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function BW(e,t){La.m(e,t);var n=ul;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+di(i)+'"][href="'+di(e)+'"]',r=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=dl(e)}if(!vi.has(r)&&(e=st({rel:"modulepreload",href:e},t),vi.set(r,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gc(r)))return}i=n.createElement("link"),en(i,"link",e),Yt(i),n.head.appendChild(i)}}}function zW(e,t,n){La.S(e,t,n);var i=ul;if(i&&e){var a=No(i).hoistableStyles,r=cl(e);t=t||"default";var s=a.get(r);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(mc(r)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vi.get(r))&&$v(e,n);var l=s=i.createElement("link");Yt(l),en(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Sh(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(r,s)}}}function jW(e,t){La.X(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=st({src:e,async:!0},t),(t=vi.get(a))&&Xv(e,t),r=n.createElement("script"),Yt(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function UW(e,t){La.M(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=st({src:e,async:!0,type:"module"},t),(t=vi.get(a))&&Xv(e,t),r=n.createElement("script"),Yt(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function FO(e,t,n,i){var a=(a=ur.current)?wh(a):null;if(!a)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=cl(n.href),n=No(a).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=cl(n.href);var r=No(a).hoistableStyles,s=r.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,s),(r=a.querySelector(mc(e)))&&!r._p&&(s.instance=r,s.state.loading=5),vi.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vi.set(e,n),r||HW(a,e,n,s.state))),t&&i===null)throw Error(q(528,""));return s}if(t&&i!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(n),n=No(a).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function cl(e){return'href="'+di(e)+'"'}function mc(e){return'link[rel="stylesheet"]['+e+"]"}function VO(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function HW(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),en(t,"link",n),Yt(t),e.head.appendChild(t))}function dl(e){return'[src="'+di(e)+'"]'}function gc(e){return"script[async]"+e}function YO(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+di(n.href)+'"]');if(i)return t.instance=i,Yt(i),i;var a=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Yt(i),en(i,"style",a),Sh(i,n.precedence,e),t.instance=i;case"stylesheet":a=cl(n.href);var r=e.querySelector(mc(a));if(r)return t.state.loading|=4,t.instance=r,Yt(r),r;i=VO(n),(a=vi.get(a))&&$v(i,a),r=(e.ownerDocument||e).createElement("link"),Yt(r);var s=r;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",i),t.state.loading|=4,Sh(r,n.precedence,e),t.instance=r;case"script":return r=dl(n.src),(a=e.querySelector(gc(r)))?(t.instance=a,Yt(a),a):(i=n,(a=vi.get(r))&&(i=st({},n),Xv(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),Yt(a),en(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,Sh(i,n.precedence,e));return t.instance}function Sh(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,r=a,s=0;s<i.length;s++){var o=i[s];if(o.dataset.precedence===t)r=o;else if(r!==a)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $v(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ah=null;function qO(e,t,n){if(Ah===null){var i=new Map,a=Ah=new Map;a.set(n,i)}else a=Ah,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var r=n[a];if(!(r[Ou]||r[un]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var s=r.getAttribute(t)||"";s=e+s;var o=i.get(s);o?o.push(r):i.set(s,[r])}}return i}function GO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function FW(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $O(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bc=null;function VW(){}function YW(e,t,n){if(bc===null)throw Error(q(475));var i=bc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=cl(n.href),r=e.querySelector(mc(a));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Ch.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=r,Yt(r);return}r=e.ownerDocument||e,n=VO(n),(a=vi.get(a))&&$v(n,a),r=r.createElement("link"),Yt(r);var s=r;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",n),t.instance=r}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=Ch.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function qW(){if(bc===null)throw Error(q(475));var e=bc;return e.stylesheets&&e.count===0&&Kv(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Kv(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Ch(){if(this.count--,this.count===0){if(this.stylesheets)Kv(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kh=null;function Kv(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kh=new Map,t.forEach(GW,e),kh=null,Ch.call(e))}function GW(e,t){if(!(t.state.loading&4)){var n=kh.get(e);if(n)var i=n.get(null);else{n=new Map,kh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<a.length;r++){var s=a[r];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),i=s)}i&&n.set(null,i)}a=t.instance,s=a.getAttribute("data-precedence"),r=n.get(s)||i,r===i&&n.set(null,a),n.set(s,a),this.count++,i=Ch.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),r?r.parentNode.insertBefore(a,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var vc={$$typeof:ya,Provider:null,Consumer:null,_currentValue:is,_currentValue2:is,_threadCount:0};function $W(e,t,n,i,a,r,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qg(0),this.hiddenUpdates=qg(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=r,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function XO(e,t,n,i,a,r,s,o,l,u,c,d){return e=new $W(e,t,n,s,o,l,u,d),t=1,r===!0&&(t|=24),r=$n(3,null,null,t),e.current=r,r.stateNode=e,t=Nb(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:t},Lb(r),e}function KO(e){return e?(e=Fo,e):Fo}function QO(e,t,n,i,a,r){a=KO(a),i.context===null?i.context=a:i.pendingContext=a,i=mr(t),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=gr(e,i,t),n!==null&&(Zn(n,e,t),Xu(n,e,t))}function WO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qv(e,t){WO(e,t),(e=e.alternate)&&WO(e,t)}function ZO(e){if(e.tag===13){var t=Ho(e,67108864);t!==null&&Zn(t,e,67108864),Qv(e,67108864)}}var Oh=!0;function XW(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=2,Wv(e,t,n,i)}finally{He.p=r,me.T=a}}function KW(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=8,Wv(e,t,n,i)}finally{He.p=r,me.T=a}}function Wv(e,t,n,i){if(Oh){var a=Zv(i);if(a===null)zv(e,t,i,Nh,n),eN(e,i);else if(WW(a,e,t,n,i))i.stopPropagation();else if(eN(e,i),t&4&&-1<QW.indexOf(e)){for(;a!==null;){var r=Oo(a);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var s=as(r.pendingLanes);if(s!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-qn(s);o.entanglements[1]|=l,s&=~l}sa(r),!(Ve&6)&&(hh=ta()+500,dc(0))}}break;case 13:o=Ho(r,2),o!==null&&Zn(o,r,2),mh(),Qv(r,2)}if(r=Zv(i),r===null&&zv(e,t,i,Nh,n),r===a)break;a=r}a!==null&&i.stopPropagation()}else zv(e,t,i,null,n)}}function Zv(e){return e=ib(e),Jv(e)}var Nh=null;function Jv(e){if(Nh=null,e=ko(e),e!==null){var t=_u(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ok(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 Nh=e,null}function JO(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(IK()){case hk:return 2;case pk:return 8;case Ef:case PK:return 32;case mk:return 268435456;default:return 32}default:return 32}}var e1=!1,Or=null,Nr=null,Rr=null,yc=new Map,xc=new Map,Dr=[],QW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eN(e,t){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function _c(e,t,n,i,a,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[a]},t!==null&&(t=Oo(t),t!==null&&ZO(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function WW(e,t,n,i,a){switch(t){case"focusin":return Or=_c(Or,e,t,n,i,a),!0;case"dragenter":return Nr=_c(Nr,e,t,n,i,a),!0;case"mouseover":return Rr=_c(Rr,e,t,n,i,a),!0;case"pointerover":var r=a.pointerId;return yc.set(r,_c(yc.get(r)||null,e,t,n,i,a)),!0;case"gotpointercapture":return r=a.pointerId,xc.set(r,_c(xc.get(r)||null,e,t,n,i,a)),!0}return!1}function tN(e){var t=ko(e.target);if(t!==null){var n=_u(t);if(n!==null){if(t=n.tag,t===13){if(t=ok(n),t!==null){e.blockedOn=t,YK(e.priority,function(){if(n.tag===13){var i=Wn();i=Gg(i);var a=Ho(n,i);a!==null&&Zn(a,n,i),Qv(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zv(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);nb=i,n.target.dispatchEvent(i),nb=null}else return t=Oo(n),t!==null&&ZO(t),e.blockedOn=n,!1;t.shift()}return!0}function nN(e,t,n){Rh(e)&&n.delete(t)}function ZW(){e1=!1,Or!==null&&Rh(Or)&&(Or=null),Nr!==null&&Rh(Nr)&&(Nr=null),Rr!==null&&Rh(Rr)&&(Rr=null),yc.forEach(nN),xc.forEach(nN)}function Dh(e,t){e.blockedOn===t&&(e.blockedOn=null,e1||(e1=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,ZW)))}var Mh=null;function iN(e){Mh!==e&&(Mh=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){Mh===e&&(Mh=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Jv(i||n)===null)continue;break}var r=Oo(n);r!==null&&(e.splice(t,3),t-=3,Jb(r,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ec(e){function t(l){return Dh(l,e)}Or!==null&&Dh(Or,e),Nr!==null&&Dh(Nr,e),Rr!==null&&Dh(Rr,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<Dr.length;n++){var i=Dr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)tN(n),n.blockedOn===null&&Dr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],r=n[i+1],s=a[An]||null;if(typeof r=="function")s||iN(n);else if(s){var o=null;if(r&&r.hasAttribute("formAction")){if(a=r,s=r[An]||null)o=s.formAction;else if(Jv(a)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),iN(n)}}}function t1(e){this._internalRoot=e}Lh.prototype.render=t1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Wn();QO(n,i,e,t,null,null)},Lh.prototype.unmount=t1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;QO(e.current,2,null,e,null,null),mh(),t[Co]=null}};function Lh(e){this._internalRoot=e}Lh.prototype.unstable_scheduleHydration=function(e){if(e){var t=xk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dr.length&&t!==0&&t<Dr[n].priority;n++);Dr.splice(n,0,e),n===0&&tN(e)}};var aN=rk.version;if(aN!=="19.1.1")throw Error(q(527,aN,"19.1.1"));He.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=kK(t),e=e!==null?uk(e):null,e=e===null?null:e.stateNode,e};var JW={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ih.isDisabled&&Ih.supportsFiber)try{Au=Ih.inject(JW),Yn=Ih}catch{}}bf.createRoot=function(e,t){if(!sk(e))throw Error(q(299));var n=!1,i="",a=x6,r=_6,s=E6,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=XO(e,1,!1,null,null,n,i,a,r,s,o,null),e[Co]=t.current,Bv(e),new t1(t)},bf.hydrateRoot=function(e,t,n){if(!sk(e))throw Error(q(299));var i=!1,a="",r=x6,s=_6,o=E6,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=XO(e,1,!0,t,n??null,i,a,r,s,o,l,u),t.context=KO(null),n=t.current,i=Wn(),i=Gg(i),a=mr(i),a.callback=null,gr(n,a,i),n=i,t.current.lanes=n,ku(t,n),sa(t),e[Co]=t.current,Bv(e),new Lh(t)},bf.version="19.1.1";function rN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rN)}catch(e){console.error(e)}}rN(),nk.exports=bf;var eZ=nk.exports;const tZ="4.0.54",nZ="opencx-root";function iZ(e){aZ(nZ,v.jsx(tk,{options:e}))}window.initOpenScript=iZ,window.openCXWidgetVersion=tZ;function aZ(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),eZ.createRoot(n).render(t)}})();
379
+ `+n.stack}}function ci(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QK(e){var t=kk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){i=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kf(e){e._valueTracker||(e._valueTracker=QK(e))}function Ok(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=kk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Of(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var WK=/[\n"\\]/g;function di(e){return e.replace(WK,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jg(e,t,n,i,a,r,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ci(t)):e.value!==""+ci(t)&&(e.value=""+ci(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?eb(e,s,ci(t)):n!=null?eb(e,s,ci(n)):i!=null&&e.removeAttribute("value"),a==null&&r!=null&&(e.defaultChecked=!!r),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+ci(o):e.removeAttribute("name")}function Nk(e,t,n,i,a,r,s,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+ci(n):"",t=t!=null?""+ci(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function eb(e,t,n){t==="number"&&Of(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Mo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+ci(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Rk(e,t,n){if(t!=null&&(t=""+ci(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ci(n):""}function Dk(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(wu(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ci(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ZK=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mk(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||ZK.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Lk(e,t,n){if(t!=null&&typeof t!="object")throw Error(q(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&Mk(e,a,i)}else for(var r in t)t.hasOwnProperty(r)&&Mk(e,r,t[r])}function tb(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var JK=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),eQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nf(e){return eQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var nb=null;function ib(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Po=null;function Ik(e){var t=Oo(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jg(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+di(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[An]||null;if(!a)throw Error(q(90));Jg(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Ok(i)}break e;case"textarea":Rk(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}}}var ab=!1;function Pk(e,t,n){if(ab)return e(t,n);ab=!0;try{var i=e(t);return i}finally{if(ab=!1,(Io!==null||Po!==null)&&(mh(),Io&&(t=Io,e=Po,Po=Io=null,Ik(t),e)))for(t=0;t<e.length;t++)Ik(e[t])}}function Ru(e,t){var n=e.stateNode;if(n===null)return null;var i=n[An]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var _a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rb=!1;if(_a)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){rb=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{rb=!1}var fr=null,sb=null,Rf=null;function Bk(){if(Rf)return Rf;var e,t=sb,n=t.length,i,a="value"in fr?fr.value:fr.textContent,r=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===a[r-i];i++);return Rf=a.slice(e,1<i?1-i:void 0)}function Df(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 Mf(){return!0}function zk(){return!1}function Cn(e){function t(n,i,a,r,s){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=r,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Mf:zk,this.isPropagationStopped=zk,this}return st(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=Mf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mf)},persist:function(){},isPersistent:Mf}),t}var ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lf=Cn(ss),Mu=st({},ss,{view:0,detail:0}),tQ=Cn(Mu),ob,lb,Lu,If=st({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cb,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!==Lu&&(Lu&&e.type==="mousemove"?(ob=e.screenX-Lu.screenX,lb=e.screenY-Lu.screenY):lb=ob=0,Lu=e),ob)},movementY:function(e){return"movementY"in e?e.movementY:lb}}),jk=Cn(If),nQ=st({},If,{dataTransfer:0}),iQ=Cn(nQ),aQ=st({},Mu,{relatedTarget:0}),ub=Cn(aQ),rQ=st({},ss,{animationName:0,elapsedTime:0,pseudoElement:0}),sQ=Cn(rQ),oQ=st({},ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lQ=Cn(oQ),uQ=st({},ss,{data:0}),Uk=Cn(uQ),cQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dQ={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"},fQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hQ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fQ[e])?!!t[e]:!1}function cb(){return hQ}var pQ=st({},Mu,{key:function(e){if(e.key){var t=cQ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cb,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mQ=Cn(pQ),gQ=st({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hk=Cn(gQ),bQ=st({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cb}),vQ=Cn(bQ),yQ=st({},ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),xQ=Cn(yQ),_Q=st({},If,{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}),EQ=Cn(_Q),TQ=st({},ss,{newState:0,oldState:0}),wQ=Cn(TQ),SQ=[9,13,27,32],db=_a&&"CompositionEvent"in window,Iu=null;_a&&"documentMode"in document&&(Iu=document.documentMode);var AQ=_a&&"TextEvent"in window&&!Iu,Fk=_a&&(!db||Iu&&8<Iu&&11>=Iu),Vk=" ",Yk=!1;function qk(e,t){switch(e){case"keyup":return SQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function CQ(e,t){switch(e){case"compositionend":return Gk(t);case"keypress":return t.which!==32?null:(Yk=!0,Vk);case"textInput":return e=t.data,e===Vk&&Yk?null:e;default:return null}}function kQ(e,t){if(Bo)return e==="compositionend"||!db&&qk(e,t)?(e=Bk(),Rf=sb=fr=null,Bo=!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 Fk&&t.locale!=="ko"?null:t.data;default:return null}}var OQ={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 $k(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OQ[e.type]:t==="textarea"}function Xk(e,t,n,i){Io?Po?Po.push(i):Po=[i]:Io=i,t=_h(t,"onChange"),0<t.length&&(n=new Lf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Pu=null,Bu=null;function NQ(e){kO(e,0)}function Pf(e){var t=Nu(e);if(Ok(t))return e}function Kk(e,t){if(e==="change")return t}var Qk=!1;if(_a){var fb;if(_a){var hb="oninput"in document;if(!hb){var Wk=document.createElement("div");Wk.setAttribute("oninput","return;"),hb=typeof Wk.oninput=="function"}fb=hb}else fb=!1;Qk=fb&&(!document.documentMode||9<document.documentMode)}function Zk(){Pu&&(Pu.detachEvent("onpropertychange",Jk),Bu=Pu=null)}function Jk(e){if(e.propertyName==="value"&&Pf(Bu)){var t=[];Xk(t,Bu,e,ib(e)),Pk(NQ,t)}}function RQ(e,t,n){e==="focusin"?(Zk(),Pu=t,Bu=n,Pu.attachEvent("onpropertychange",Jk)):e==="focusout"&&Zk()}function DQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pf(Bu)}function MQ(e,t){if(e==="click")return Pf(t)}function LQ(e,t){if(e==="input"||e==="change")return Pf(t)}function IQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:IQ;function zu(e,t){if(Gn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Fg.call(t,a)||!Gn(e[a],t[a]))return!1}return!0}function e3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function t3(e,t){var n=e3(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e3(n)}}function n3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?n3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function i3(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Of(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Of(e.document)}return t}function pb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var PQ=_a&&"documentMode"in document&&11>=document.documentMode,zo=null,mb=null,ju=null,gb=!1;function a3(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gb||zo==null||zo!==Of(i)||(i=zo,"selectionStart"in i&&pb(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ju&&zu(ju,i)||(ju=i,i=_h(mb,"onSelect"),0<i.length&&(t=new Lf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=zo)))}function os(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jo={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionrun:os("Transition","TransitionRun"),transitionstart:os("Transition","TransitionStart"),transitioncancel:os("Transition","TransitionCancel"),transitionend:os("Transition","TransitionEnd")},bb={},r3={};_a&&(r3=document.createElement("div").style,"AnimationEvent"in window||(delete jo.animationend.animation,delete jo.animationiteration.animation,delete jo.animationstart.animation),"TransitionEvent"in window||delete jo.transitionend.transition);function ls(e){if(bb[e])return bb[e];if(!jo[e])return e;var t=jo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in r3)return bb[e]=t[n];return e}var s3=ls("animationend"),o3=ls("animationiteration"),l3=ls("animationstart"),BQ=ls("transitionrun"),zQ=ls("transitionstart"),jQ=ls("transitioncancel"),u3=ls("transitionend"),c3=new Map,vb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vb.push("scrollEnd");function Ri(e,t){c3.set(e,t),rs(t,[e])}var d3=new WeakMap;function fi(e,t){if(typeof e=="object"&&e!==null){var n=d3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ck(t)},d3.set(e,t),t)}return{value:e,source:t,stack:Ck(t)}}var hi=[],Uo=0,yb=0;function Bf(){for(var e=Uo,t=yb=Uo=0;t<e;){var n=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];hi[t++]=null;var r=hi[t];if(hi[t++]=null,i!==null&&a!==null){var s=i.pending;s===null?a.next=a:(a.next=s.next,s.next=a),i.pending=a}r!==0&&f3(n,a,r)}}function zf(e,t,n,i){hi[Uo++]=e,hi[Uo++]=t,hi[Uo++]=n,hi[Uo++]=i,yb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function xb(e,t,n,i){return zf(e,t,n,i),jf(e)}function Ho(e,t){return zf(e,null,null,t),jf(e)}function f3(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,r=e.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(a=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,a&&t!==null&&(a=31-qn(n),e=r.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),r):null}function jf(e){if(50<cc)throw cc=0,Av=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function UQ(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(e,t,n,i){return new UQ(e,t,n,i)}function _b(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ea(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function h3(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Uf(e,t,n,i,a,r){var s=0;if(i=e,typeof e=="function")_b(e)&&(s=1);else if(typeof e=="string")s=FW(e,n,ea.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case zg:return e=$n(31,n,t,a),e.elementType=zg,e.lanes=r,e;case wo:return us(n.children,a,r,t);case ck:s=8,a|=24;break;case Mg:return e=$n(12,n,t,a|2),e.elementType=Mg,e.lanes=r,e;case Ig:return e=$n(13,n,t,a),e.elementType=Ig,e.lanes=r,e;case Pg:return e=$n(19,n,t,a),e.elementType=Pg,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case NK:case ya:s=10;break e;case dk:s=9;break e;case Lg:s=11;break e;case Bg:s=14;break e;case lr:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=$n(s,n,t,a),t.elementType=e,t.type=i,t.lanes=r,t}function us(e,t,n,i){return e=$n(7,e,i,t),e.lanes=n,e}function Eb(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Tb(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vo=[],Yo=0,Hf=null,Ff=0,pi=[],mi=0,cs=null,Ta=1,wa="";function ds(e,t){Vo[Yo++]=Ff,Vo[Yo++]=Hf,Hf=e,Ff=t}function p3(e,t,n){pi[mi++]=Ta,pi[mi++]=wa,pi[mi++]=cs,cs=e;var i=Ta;e=wa;var a=32-qn(i)-1;i&=~(1<<a),n+=1;var r=32-qn(t)+a;if(30<r){var s=a-a%5;r=(i&(1<<s)-1).toString(32),i>>=s,a-=s,Ta=1<<32-qn(t)+a|n<<a|i,wa=r+e}else Ta=1<<r|n<<a|i,wa=e}function wb(e){e.return!==null&&(ds(e,1),p3(e,1,0))}function Sb(e){for(;e===Hf;)Hf=Vo[--Yo],Vo[Yo]=null,Ff=Vo[--Yo],Vo[Yo]=null;for(;e===cs;)cs=pi[--mi],pi[mi]=null,wa=pi[--mi],pi[mi]=null,Ta=pi[--mi],pi[mi]=null}var vn=null,vt=null,Fe=!1,fs=null,na=!1,Ab=Error(q(519));function hs(e){var t=Error(q(418,""));throw Fu(fi(t,e)),Ab}function m3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[un]=e,t[An]=i,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<fc.length;n++)De(fc[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Nk(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),kf(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Dk(t,i.value,i.defaultValue,i.children),kf(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||DO(t.textContent,n)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=Eh),t=!0):t=!1,t||hs(e)}function g3(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 13:na=!1;return;case 27:case 3:na=!0;return;default:vn=vn.return}}function Uu(e){if(e!==vn)return!1;if(!Fe)return g3(e),Fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Fv(e.type,e.memoizedProps)),n=!n),n&&vt&&hs(e),g3(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){vt=Mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}vt=null}}else t===27?(t=vt,kr(e.type)?(e=Gv,Gv=null,vt=e):vt=t):vt=vn?Mi(e.stateNode.nextSibling):null;return!0}function Hu(){vt=vn=null,Fe=!1}function b3(){var e=fs;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),fs=null),e}function Fu(e){fs===null?fs=[e]:fs.push(e)}var Cb=Ji(null),ps=null,Sa=null;function hr(e,t,n){dt(Cb,t._currentValue),t._currentValue=n}function Aa(e){e._currentValue=Cb.current,Vt(Cb)}function kb(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Ob(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=a.dependencies;if(r!==null){var s=a.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),kb(r.return,n,e),i||(s=null);break e}r=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(q(341));s.lanes|=n,r=s.alternate,r!==null&&(r.lanes|=n),kb(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vu(e,t,n,i){e=null;for(var a=t,r=!1;a!==null;){if(!r){if(a.flags&524288)r=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(q(387));if(s=s.memoizedProps,s!==null){var o=a.type;Gn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===yf.current){if(s=a.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(vc):e=[vc])}a=a.return}e!==null&&Ob(t,e,n,i),t.flags|=262144}function Vf(e){for(e=e.firstContext;e!==null;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){ps=e,Sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function cn(e){return v3(ps,e)}function Yf(e,t){return ps===null&&ms(e),v3(e,t)}function v3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sa===null){if(e===null)throw Error(q(308));Sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sa=Sa.next=t;return n}var HQ=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},FQ=Bt.unstable_scheduleCallback,VQ=Bt.unstable_NormalPriority,zt={$$typeof:ya,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nb(){return{controller:new HQ,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&FQ(VQ,function(){e.controller.abort()})}var qu=null,Rb=0,qo=0,Go=null;function YQ(e,t){if(qu===null){var n=qu=[];Rb=0,qo=Mv(),Go={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Rb++,t.then(y3,y3),t}function y3(){if(--Rb===0&&qu!==null){Go!==null&&(Go.status="fulfilled");var e=qu;qu=null,qo=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qQ(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var x3=me.S;me.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&YQ(e,t),x3!==null&&x3(e,t)};var gs=Ji(null);function Db(){var e=gs.current;return e!==null?e:et.pooledCache}function qf(e,t){t===null?dt(gs,gs.current):dt(gs,t.pool)}function _3(){var e=Db();return e===null?null:{parent:zt._currentValue,pool:e}}var Gu=Error(q(460)),E3=Error(q(474)),Gf=Error(q(542)),Mb={then:function(){}};function T3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(){}function w3(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($f,$f),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e;default:if(typeof t.status=="string")t.then($f,$f);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(q(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e}throw $u=t,Gu}}var $u=null;function S3(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function A3(e){if(e===Gu||e===Gf)throw Error(q(483))}var pr=!1;function Lb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ib(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Ve&2){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=jf(e),f3(e,null,n),t}return zf(e,i,t,n),jf(e)}function Xu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,yk(e,n)}}function Pb(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?a=r=s:r=r.next=s,n=n.next}while(n!==null);r===null?a=r=t:r=r.next=t}else a=r=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bb=!1;function Ku(){if(Bb){var e=Go;if(e!==null)throw e}}function Qu(e,t,n,i){Bb=!1;var a=e.updateQueue;pr=!1;var r=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?r=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(r!==null){var d=a.baseState;s=0,c=u=l=null,o=r;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(Ie&f)===f:(i&f)===f){f!==0&&f===qo&&(Bb=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;f=t;var E=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(E,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,f=typeof g=="function"?g.call(E,d,f):g,f==null)break e;d=st({},d,f);break e;case 2:pr=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);c===null&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,r===null&&(a.shared.lanes=0),wr|=s,e.lanes=s,e.memoizedState=d}}function C3(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function k3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)C3(n[e],t)}var $o=Ji(null),Xf=Ji(0);function O3(e,t){e=Ma,dt(Xf,e),dt($o,t),Ma=e|t.baseLanes}function zb(){dt(Xf,Ma),dt($o,$o.current)}function jb(){Ma=Xf.current,Vt($o),Vt(Xf)}var br=0,Ce=null,qe=null,Rt=null,Kf=!1,Xo=!1,bs=!1,Qf=0,Wu=0,Ko=null,GQ=0;function wt(){throw Error(q(321))}function Ub(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function Hb(e,t,n,i,a,r){return br=r,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,me.H=e===null||e.memoizedState===null?f6:h6,bs=!1,r=n(i,a),bs=!1,Xo&&(r=R3(t,n,i,a)),N3(e),r}function N3(e){me.H=nh;var t=qe!==null&&qe.next!==null;if(br=0,Rt=qe=Ce=null,Kf=!1,Wu=0,Ko=null,t)throw Error(q(300));e===null||qt||(e=e.dependencies,e!==null&&Vf(e)&&(qt=!0))}function R3(e,t,n,i){Ce=e;var a=0;do{if(Xo&&(Ko=null),Wu=0,Xo=!1,25<=a)throw Error(q(301));if(a+=1,Rt=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}me.H=JQ,r=t(n,i)}while(Xo);return r}function $Q(){var e=me.H,t=e.useState()[0];return t=typeof t.then=="function"?Zu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Fb(){var e=Qf!==0;return Qf=0,e}function Vb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Yb(e){if(Kf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kf=!1}br=0,Rt=qe=Ce=null,Xo=!1,Wu=Qf=0,Ko=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Dt(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(q(467)):Error(q(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function qb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(e){var t=Wu;return Wu+=1,Ko===null&&(Ko=[]),e=w3(Ko,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,me.H=t===null||t.memoizedState===null?f6:h6),e}function Wf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zu(e);if(e.$$typeof===ya)return cn(e)}throw Error(q(438,String(e)))}function Gb(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qb(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=RK;return t.index++,n}function Ca(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=Dt();return $b(t,qe,e)}function $b(e,t,n){var i=e.queue;if(i===null)throw Error(q(311));i.lastRenderedReducer=n;var a=e.baseQueue,r=i.pending;if(r!==null){if(a!==null){var s=a.next;a.next=r.next,r.next=s}t.baseQueue=a=r,i.pending=null}if(r=e.baseState,a===null)e.memoizedState=r;else{t=a.next;var o=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ie&d)===d:(br&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===qo&&(c=!0);else if((br&f)===f){u=u.next,f===qo&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=r):l=l.next=d,Ce.lanes|=f,wr|=f;d=u.action,bs&&n(r,d),r=u.hasEagerState?u.eagerState:n(r,d)}else f={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=r):l=l.next=f,Ce.lanes|=d,wr|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=r:l.next=o,!Gn(r,e.memoizedState)&&(qt=!0,c&&(n=Go,n!==null)))throw n;e.memoizedState=r,e.baseState=s,e.baseQueue=l,i.lastRenderedState=r}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Xb(e){var t=Dt(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,r=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do r=e(r,s.action),s=s.next;while(s!==a);Gn(r,t.memoizedState)||(qt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,i]}function D3(e,t,n){var i=Ce,a=Dt(),r=Fe;if(r){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!Gn((qe||a).memoizedState,n);s&&(a.memoizedState=n,qt=!0),a=a.queue;var o=I3.bind(null,i,a,e);if(Ju(2048,8,o,[e]),a.getSnapshot!==t||s||Rt!==null&&Rt.memoizedState.tag&1){if(i.flags|=2048,Qo(9,Jf(),L3.bind(null,i,a,n,t),null),et===null)throw Error(q(349));r||br&124||M3(i,t,n)}return n}function M3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=qb(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function L3(e,t,n,i){t.value=n,t.getSnapshot=i,P3(t)&&B3(e)}function I3(e,t,n){return n(function(){P3(t)&&B3(e)})}function P3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gn(e,n)}catch{return!0}}function B3(e){var t=Ho(e,2);t!==null&&Zn(t,e,2)}function Kb(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),bs){cr(!0);try{n()}finally{cr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t}function z3(e,t,n,i){return e.baseState=n,$b(e,qe,typeof i=="function"?i:Ca)}function XQ(e,t,n,i,a){if(th(e))throw Error(q(485));if(e=t.action,e!==null){var r={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){r.listeners.push(s)}};me.T!==null?n(!0):r.isTransition=!1,i(r),n=t.pending,n===null?(r.next=t.pending=r,j3(t,r)):(r.next=n.next,t.pending=n.next=r)}}function j3(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var r=me.T,s={};me.T=s;try{var o=n(a,i),l=me.S;l!==null&&l(s,o),U3(e,t,o)}catch(u){Qb(e,t,u)}finally{me.T=r}}else try{r=n(a,i),U3(e,t,r)}catch(u){Qb(e,t,u)}}function U3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){H3(e,t,i)},function(i){return Qb(e,t,i)}):H3(e,t,n)}function H3(e,t,n){t.status="fulfilled",t.value=n,F3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,j3(e,n)))}function Qb(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,F3(t),t=t.next;while(t!==i)}e.action=null}function F3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function V3(e,t){return t}function Y3(e,t){if(Fe){var n=et.formState;if(n!==null){e:{var i=Ce;if(Fe){if(vt){t:{for(var a=vt,r=na;a.nodeType!==8;){if(!r){a=null;break t}if(a=Mi(a.nextSibling),a===null){a=null;break t}}r=a.data,a=r==="F!"||r==="F"?a:null}if(a){vt=Mi(a.nextSibling),i=a.data==="F!";break e}}hs(i)}i=!1}i&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:V3,lastRenderedState:t},n.queue=i,n=u6.bind(null,Ce,i),i.dispatch=n,i=Kb(!1),r=tv.bind(null,Ce,!1,i.queue),i=kn(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=XQ.bind(null,Ce,a,r,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function q3(e){var t=Dt();return G3(t,qe,e)}function G3(e,t,n){if(t=$b(e,t,V3)[0],e=Zf(Ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Zu(t)}catch(s){throw s===Gu?Gf:s}else i=t;t=Dt();var a=t.queue,r=a.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Qo(9,Jf(),KQ.bind(null,a,n),null)),[i,r,e]}function KQ(e,t){e.action=t}function $3(e){var t=Dt(),n=qe;if(n!==null)return G3(t,n,e);Dt(),t=t.memoizedState,n=Dt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Qo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=qb(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Jf(){return{destroy:void 0,resource:void 0}}function X3(){return Dt().memoizedState}function eh(e,t,n,i){var a=kn();i=i===void 0?null:i,Ce.flags|=e,a.memoizedState=Qo(1|t,Jf(),n,i)}function Ju(e,t,n,i){var a=Dt();i=i===void 0?null:i;var r=a.memoizedState.inst;qe!==null&&i!==null&&Ub(i,qe.memoizedState.deps)?a.memoizedState=Qo(t,r,n,i):(Ce.flags|=e,a.memoizedState=Qo(1|t,r,n,i))}function K3(e,t){eh(8390656,8,e,t)}function Q3(e,t){Ju(2048,8,e,t)}function W3(e,t){return Ju(4,2,e,t)}function Z3(e,t){return Ju(4,4,e,t)}function J3(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function e6(e,t,n){n=n!=null?n.concat([e]):null,Ju(4,4,J3.bind(null,t,e),n)}function Wb(){}function t6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Ub(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function n6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Ub(t,i[1]))return i[0];if(i=e(),bs){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[i,t],i}function Zb(e,t,n){return n===void 0||br&1073741824?e.memoizedState=t:(e.memoizedState=n,e=rO(),Ce.lanes|=e,wr|=e,n)}function i6(e,t,n,i){return Gn(n,t)?n:$o.current!==null?(e=Zb(e,n,i),Gn(e,t)||(qt=!0),e):br&42?(e=rO(),Ce.lanes|=e,wr|=e,t):(qt=!0,e.memoizedState=n)}function a6(e,t,n,i,a){var r=He.p;He.p=r!==0&&8>r?r:8;var s=me.T,o={};me.T=o,tv(e,!1,t,n);try{var l=a(),u=me.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=qQ(l,i);ec(e,t,c,Wn(e))}else ec(e,t,i,Wn(e))}catch(d){ec(e,t,{then:function(){},status:"rejected",reason:d},Wn())}finally{He.p=r,me.T=s}}function QQ(){}function Jb(e,t,n,i){if(e.tag!==5)throw Error(q(476));var a=r6(e).queue;a6(e,a,t,is,n===null?QQ:function(){return s6(e),n(i)})}function r6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:is,baseState:is,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:is},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function s6(e){var t=r6(e).next.queue;ec(e,t,{},Wn())}function ev(){return cn(vc)}function o6(){return Dt().memoizedState}function l6(){return Dt().memoizedState}function WQ(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Wn();e=mr(n);var i=gr(t,e,n);i!==null&&(Zn(i,t,n),Xu(i,t,n)),t={cache:Nb()},e.payload=t;return}t=t.return}}function ZQ(e,t,n){var i=Wn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},th(e)?c6(t,n):(n=xb(e,t,n,i),n!==null&&(Zn(n,e,i),d6(n,t,i)))}function u6(e,t,n){var i=Wn();ec(e,t,n,i)}function ec(e,t,n,i){var a={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(th(e))c6(t,a);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var s=t.lastRenderedState,o=r(s,n);if(a.hasEagerState=!0,a.eagerState=o,Gn(o,s))return zf(e,t,a,0),et===null&&Bf(),!1}catch{}finally{}if(n=xb(e,t,a,i),n!==null)return Zn(n,e,i),d6(n,t,i),!0}return!1}function tv(e,t,n,i){if(i={lane:2,revertLane:Mv(),action:i,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error(q(479))}else t=xb(e,n,i,2),t!==null&&Zn(t,e,2)}function th(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function c6(e,t){Xo=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function d6(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,yk(e,n)}}var nh={readContext:cn,use:Wf,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},f6={readContext:cn,use:Wf,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:K3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,eh(4194308,4,J3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eh(4194308,4,e,t)},useInsertionEffect:function(e,t){eh(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var i=e();if(bs){cr(!0);try{e()}finally{cr(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=kn();if(n!==void 0){var a=n(t);if(bs){cr(!0);try{n(t)}finally{cr(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=ZQ.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=Kb(e);var t=e.queue,n=u6.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Wb,useDeferredValue:function(e,t){var n=kn();return Zb(n,e,t)},useTransition:function(){var e=Kb(!1);return e=a6.bind(null,Ce,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,a=kn();if(Fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),et===null)throw Error(q(349));Ie&124||M3(i,t,n)}a.memoizedState=n;var r={value:n,getSnapshot:t};return a.queue=r,K3(I3.bind(null,i,r,e),[e]),i.flags|=2048,Qo(9,Jf(),L3.bind(null,i,r,n,t),null),n},useId:function(){var e=kn(),t=et.identifierPrefix;if(Fe){var n=wa,i=Ta;n=(i&~(1<<32-qn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Qf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=GQ++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:ev,useFormState:Y3,useActionState:Y3,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=tv.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Gb,useCacheRefresh:function(){return kn().memoizedState=WQ.bind(null,Ce)}},h6={readContext:cn,use:Wf,useCallback:t6,useContext:cn,useEffect:Q3,useImperativeHandle:e6,useInsertionEffect:W3,useLayoutEffect:Z3,useMemo:n6,useReducer:Zf,useRef:X3,useState:function(){return Zf(Ca)},useDebugValue:Wb,useDeferredValue:function(e,t){var n=Dt();return i6(n,qe.memoizedState,e,t)},useTransition:function(){var e=Zf(Ca)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:D3,useId:o6,useHostTransitionStatus:ev,useFormState:q3,useActionState:q3,useOptimistic:function(e,t){var n=Dt();return z3(n,qe,e,t)},useMemoCache:Gb,useCacheRefresh:l6},JQ={readContext:cn,use:Wf,useCallback:t6,useContext:cn,useEffect:Q3,useImperativeHandle:e6,useInsertionEffect:W3,useLayoutEffect:Z3,useMemo:n6,useReducer:Xb,useRef:X3,useState:function(){return Xb(Ca)},useDebugValue:Wb,useDeferredValue:function(e,t){var n=Dt();return qe===null?Zb(n,e,t):i6(n,qe.memoizedState,e,t)},useTransition:function(){var e=Xb(Ca)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:D3,useId:o6,useHostTransitionStatus:ev,useFormState:$3,useActionState:$3,useOptimistic:function(e,t){var n=Dt();return qe!==null?z3(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Gb,useCacheRefresh:l6},Wo=null,tc=0;function ih(e){var t=tc;return tc+=1,Wo===null&&(Wo=[]),w3(Wo,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ah(e,t){throw t.$$typeof===OK?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function p6(e){var t=e._init;return t(e._payload)}function m6(e){function t(m,y){if(e){var x=m.deletions;x===null?(m.deletions=[y],m.flags|=16):x.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function i(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function a(m,y){return m=Ea(m,y),m.index=0,m.sibling=null,m}function r(m,y,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<y?(m.flags|=67108866,y):x):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,x,T){return y===null||y.tag!==6?(y=Eb(x,m.mode,T),y.return=m,y):(y=a(y,x),y.return=m,y)}function l(m,y,x,T){var S=x.type;return S===wo?c(m,y,x.props.children,T,x.key):y!==null&&(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===lr&&p6(S)===y.type)?(y=a(y,x.props),nc(y,x),y.return=m,y):(y=Uf(x.type,x.key,x.props,null,m.mode,T),nc(y,x),y.return=m,y)}function u(m,y,x,T){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Tb(x,m.mode,T),y.return=m,y):(y=a(y,x.children||[]),y.return=m,y)}function c(m,y,x,T,S){return y===null||y.tag!==7?(y=us(x,m.mode,T,S),y.return=m,y):(y=a(y,x),y.return=m,y)}function d(m,y,x){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Eb(""+y,m.mode,x),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vf:return x=Uf(y.type,y.key,y.props,null,m.mode,x),nc(x,y),x.return=m,x;case Eu:return y=Tb(y,m.mode,x),y.return=m,y;case lr:var T=y._init;return y=T(y._payload),d(m,y,x)}if(wu(y)||Tu(y))return y=us(y,m.mode,x,null),y.return=m,y;if(typeof y.then=="function")return d(m,ih(y),x);if(y.$$typeof===ya)return d(m,Yf(m,y),x);ah(m,y)}return null}function f(m,y,x,T){var S=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,y,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:return x.key===S?l(m,y,x,T):null;case Eu:return x.key===S?u(m,y,x,T):null;case lr:return S=x._init,x=S(x._payload),f(m,y,x,T)}if(wu(x)||Tu(x))return S!==null?null:c(m,y,x,T,null);if(typeof x.then=="function")return f(m,y,ih(x),T);if(x.$$typeof===ya)return f(m,y,Yf(m,x),T);ah(m,x)}return null}function h(m,y,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(y,m,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case vf:return m=m.get(T.key===null?x:T.key)||null,l(y,m,T,S);case Eu:return m=m.get(T.key===null?x:T.key)||null,u(y,m,T,S);case lr:var A=T._init;return T=A(T._payload),h(m,y,x,T,S)}if(wu(T)||Tu(T))return m=m.get(x)||null,c(y,m,T,S,null);if(typeof T.then=="function")return h(m,y,x,ih(T),S);if(T.$$typeof===ya)return h(m,y,x,Yf(y,T),S);ah(y,T)}return null}function g(m,y,x,T){for(var S=null,A=null,D=y,L=y=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var O=f(m,D,x[L],T);if(O===null){D===null&&(D=B);break}e&&D&&O.alternate===null&&t(m,D),y=r(O,y,L),A===null?S=O:A.sibling=O,A=O,D=B}if(L===x.length)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;L<x.length;L++)D=d(m,x[L],T),D!==null&&(y=r(D,y,L),A===null?S=D:A.sibling=D,A=D);return Fe&&ds(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],T),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),y=r(B,y,L),A===null?S=B:A.sibling=B,A=B);return e&&D.forEach(function(Y){return t(m,Y)}),Fe&&ds(m,L),S}function b(m,y,x,T){if(x==null)throw Error(q(151));for(var S=null,A=null,D=y,L=y=0,B=null,O=x.next();D!==null&&!O.done;L++,O=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=f(m,D,O.value,T);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),y=r(Y,y,L),A===null?S=Y:A.sibling=Y,A=Y,D=B}if(O.done)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;!O.done;L++,O=x.next())O=d(m,O.value,T),O!==null&&(y=r(O,y,L),A===null?S=O:A.sibling=O,A=O);return Fe&&ds(m,L),S}for(D=i(D);!O.done;L++,O=x.next())O=h(D,m,L,O.value,T),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?L:O.key),y=r(O,y,L),A===null?S=O:A.sibling=O,A=O);return e&&D.forEach(function(U){return t(m,U)}),Fe&&ds(m,L),S}function E(m,y,x,T){if(typeof x=="object"&&x!==null&&x.type===wo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:e:{for(var S=x.key;y!==null;){if(y.key===S){if(S=x.type,S===wo){if(y.tag===7){n(m,y.sibling),T=a(y,x.props.children),T.return=m,m=T;break e}}else if(y.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===lr&&p6(S)===y.type){n(m,y.sibling),T=a(y,x.props),nc(T,x),T.return=m,m=T;break e}n(m,y);break}else t(m,y);y=y.sibling}x.type===wo?(T=us(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Uf(x.type,x.key,x.props,null,m.mode,T),nc(T,x),T.return=m,m=T)}return s(m);case Eu:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(m,y.sibling),T=a(y,x.children||[]),T.return=m,m=T;break e}else{n(m,y);break}else t(m,y);y=y.sibling}T=Tb(x,m.mode,T),T.return=m,m=T}return s(m);case lr:return S=x._init,x=S(x._payload),E(m,y,x,T)}if(wu(x))return g(m,y,x,T);if(Tu(x)){if(S=Tu(x),typeof S!="function")throw Error(q(150));return x=S.call(x),b(m,y,x,T)}if(typeof x.then=="function")return E(m,y,ih(x),T);if(x.$$typeof===ya)return E(m,y,Yf(m,x),T);ah(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,y!==null&&y.tag===6?(n(m,y.sibling),T=a(y,x),T.return=m,m=T):(n(m,y),T=Eb(x,m.mode,T),T.return=m,m=T),s(m)):n(m,y)}return function(m,y,x,T){try{tc=0;var S=E(m,y,x,T);return Wo=null,S}catch(D){if(D===Gu||D===Gf)throw D;var A=$n(29,D,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var Zo=m6(!0),g6=m6(!1),gi=Ji(null),ia=null;function vr(e){var t=e.alternate;dt(jt,jt.current&1),dt(gi,e),ia===null&&(t===null||$o.current!==null||t.memoizedState!==null)&&(ia=e)}function b6(e){if(e.tag===22){if(dt(jt,jt.current),dt(gi,e),ia===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ia=e)}}else yr()}function yr(){dt(jt,jt.current),dt(gi,gi.current)}function ka(e){Vt(gi),ia===e&&(ia=null),Vt(jt)}var jt=Ji(0);function rh(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==="$?"||qv(n)))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}function nv(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var iv={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Wn(),a=mr(i);a.payload=t,n!=null&&(a.callback=n),t=gr(e,a,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Wn(),a=mr(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=gr(e,a,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),i=mr(n);i.tag=2,t!=null&&(i.callback=t),t=gr(e,i,n),t!==null&&(Zn(t,e,n),Xu(t,e,n))}};function v6(e,t,n,i,a,r,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,r,s):t.prototype&&t.prototype.isPureReactComponent?!zu(n,i)||!zu(a,r):!0}function y6(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&iv.enqueueReplaceState(t,t.state,null)}function vs(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=st({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}var sh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function x6(e){sh(e)}function _6(e){console.error(e)}function E6(e){sh(e)}function oh(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function T6(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function av(e,t,n){return n=mr(n),n.tag=3,n.payload={element:null},n.callback=function(){oh(e,t)},n}function w6(e){return e=mr(e),e.tag=3,e}function S6(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var r=i.value;e.payload=function(){return a(r)},e.callback=function(){T6(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){T6(t,n,i),typeof a!="function"&&(Sr===null?Sr=new Set([this]):Sr.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function eW(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vu(t,n,a,!0),n=gi.current,n!==null){switch(n.tag){case 13:return ia===null?kv():n.alternate===null&&yt===0&&(yt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Mb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Nv(e,i,a)),!1;case 22:return n.flags|=65536,i===Mb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Nv(e,i,a)),!1}throw Error(q(435,n.tag))}return Nv(e,i,a),kv(),!1}if(Fe)return t=gi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Ab&&(e=Error(q(422),{cause:i}),Fu(fi(e,n)))):(i!==Ab&&(t=Error(q(423),{cause:i}),Fu(fi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=fi(i,n),a=av(e.stateNode,i,a),Pb(e,a),yt!==4&&(yt=2)),!1;var r=Error(q(520),{cause:i});if(r=fi(r,n),uc===null?uc=[r]:uc.push(r),yt!==4&&(yt=2),t===null)return!0;i=fi(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=av(n.stateNode,i,e),Pb(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Sr===null||!Sr.has(r))))return n.flags|=65536,a&=-a,n.lanes|=a,a=w6(a),S6(a,e,n,i),Pb(n,a),!1}n=n.return}while(n!==null);return!1}var A6=Error(q(461)),qt=!1;function Zt(e,t,n,i){t.child=e===null?g6(t,null,n,i):Zo(t,e.child,n,i)}function C6(e,t,n,i,a){n=n.render;var r=t.ref;if("ref"in i){var s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}else s=i;return ms(t),i=Hb(e,t,n,s,r,a),o=Fb(),e!==null&&!qt?(Vb(e,t,a),Oa(e,t,a)):(Fe&&o&&wb(t),t.flags|=1,Zt(e,t,i,a),t.child)}function k6(e,t,n,i,a){if(e===null){var r=n.type;return typeof r=="function"&&!_b(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,O6(e,t,r,i,a)):(e=Uf(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!fv(e,a)){var s=r.memoizedProps;if(n=n.compare,n=n!==null?n:zu,n(s,i)&&e.ref===t.ref)return Oa(e,t,a)}return t.flags|=1,e=Ea(r,i),e.ref=t.ref,e.return=t,t.child=e}function O6(e,t,n,i,a){if(e!==null){var r=e.memoizedProps;if(zu(r,i)&&e.ref===t.ref)if(qt=!1,t.pendingProps=i=r,fv(e,a))e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,Oa(e,t,a)}return rv(e,t,n,i,a)}function N6(e,t,n){var i=t.pendingProps,a=i.children,r=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if(t.flags&128){if(i=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;t.childLanes=r&~i}else t.childLanes=0,t.child=null;return R6(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qf(t,r!==null?r.cachePool:null),r!==null?O3(t,r):zb(),b6(t);else return t.lanes=t.childLanes=536870912,R6(e,t,r!==null?r.baseLanes|n:n,n)}else r!==null?(qf(t,r.cachePool),O3(t,r),yr(),t.memoizedState=null):(e!==null&&qf(t,null),zb(),yr());return Zt(e,t,a,n),t.child}function R6(e,t,n,i){var a=Db();return a=a===null?null:{parent:zt._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&qf(t,null),zb(),b6(t),e!==null&&Vu(e,t,i,!0),null}function lh(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(q(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function rv(e,t,n,i,a){return ms(t),n=Hb(e,t,n,i,void 0,a),i=Fb(),e!==null&&!qt?(Vb(e,t,a),Oa(e,t,a)):(Fe&&i&&wb(t),t.flags|=1,Zt(e,t,n,a),t.child)}function D6(e,t,n,i,a,r){return ms(t),t.updateQueue=null,n=R3(t,i,n,a),N3(e),i=Fb(),e!==null&&!qt?(Vb(e,t,r),Oa(e,t,r)):(Fe&&i&&wb(t),t.flags|=1,Zt(e,t,n,r),t.child)}function M6(e,t,n,i,a){if(ms(t),t.stateNode===null){var r=Fo,s=n.contextType;typeof s=="object"&&s!==null&&(r=cn(s)),r=new n(i,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=iv,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=i,r.state=t.memoizedState,r.refs={},Lb(t),s=n.contextType,r.context=typeof s=="object"&&s!==null?cn(s):Fo,r.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(nv(t,n,s,i),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(s=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&iv.enqueueReplaceState(r,r.state,null),Qu(t,i,r,a),Ku(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,l=vs(n,o);r.props=l;var u=r.context,c=n.contextType;s=Fo,typeof c=="object"&&c!==null&&(s=cn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||u!==s)&&y6(t,r,i,s),pr=!1;var f=t.memoizedState;r.state=f,Qu(t,i,r,a),Ku(),u=t.memoizedState,o||f!==u||pr?(typeof d=="function"&&(nv(t,n,d,i),u=t.memoizedState),(l=pr||v6(t,n,l,i,f,u,s))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),r.props=i,r.state=u,r.context=s,i=l):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{r=t.stateNode,Ib(e,t),s=t.memoizedProps,c=vs(n,s),r.props=c,d=t.pendingProps,f=r.context,u=n.contextType,l=Fo,typeof u=="object"&&u!==null&&(l=cn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==d||f!==l)&&y6(t,r,i,l),pr=!1,f=t.memoizedState,r.state=f,Qu(t,i,r,a),Ku();var h=t.memoizedState;s!==d||f!==h||pr||e!==null&&e.dependencies!==null&&Vf(e.dependencies)?(typeof o=="function"&&(nv(t,n,o,i),h=t.memoizedState),(c=pr||v6(t,n,c,i,f,h,l)||e!==null&&e.dependencies!==null&&Vf(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,h,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,h,l)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),r.props=i,r.state=h,r.context=l,i=c):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return r=i,lh(e,t),i=(t.flags&128)!==0,r||i?(r=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&i?(t.child=Zo(t,e.child,null,a),t.child=Zo(t,null,n,a)):Zt(e,t,n,a),t.memoizedState=r.state,e=t.child):e=Oa(e,t,a),e}function L6(e,t,n,i){return Hu(),t.flags|=256,Zt(e,t,n,i),t.child}var sv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ov(e){return{baseLanes:e,cachePool:_3()}}function lv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bi),e}function I6(e,t,n){var i=t.pendingProps,a=!1,r=(t.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(jt.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(a?vr(t):yr(),Fe){var o=vt,l;if(l=o){e:{for(l=o,o=na;l.nodeType!==8;){if(!o){o=null;break e}if(l=Mi(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:cs!==null?{id:Ta,overflow:wa}:null,retryLane:536870912,hydrationErrors:null},l=$n(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,vn=t,vt=null,l=!0):l=!1}l||hs(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return qv(o)?t.lanes=32:t.lanes=536870912,null;ka(t)}return o=i.children,i=i.fallback,a?(yr(),a=t.mode,o=uh({mode:"hidden",children:o},a),i=us(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,a=t.child,a.memoizedState=ov(n),a.childLanes=lv(e,s,n),t.memoizedState=sv,i):(vr(t),uv(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(r)t.flags&256?(vr(t),t.flags&=-257,t=cv(e,t,n)):t.memoizedState!==null?(yr(),t.child=e.child,t.flags|=128,t=null):(yr(),a=i.fallback,o=t.mode,i=uh({mode:"visible",children:i.children},o),a=us(a,o,n,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,Zo(t,e.child,null,n),i=t.child,i.memoizedState=ov(n),i.childLanes=lv(e,s,n),t.memoizedState=sv,t=a);else if(vr(t),qv(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Fu({value:i,source:null,stack:null}),t=cv(e,t,n)}else if(qt||Vu(e,t,n,!1),s=(n&e.childLanes)!==0,qt||s){if(s=et,s!==null&&(i=n&-n,i=i&42?1:Gg(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,Ho(e,i),Zn(s,e,i),A6;o.data==="$?"||kv(),t=cv(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,vt=Mi(o.nextSibling),vn=t,Fe=!0,fs=null,na=!1,e!==null&&(pi[mi++]=Ta,pi[mi++]=wa,pi[mi++]=cs,Ta=e.id,wa=e.overflow,cs=t),t=uv(t,i.children),t.flags|=4096);return t}return a?(yr(),a=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=Ea(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?a=Ea(u,a):(a=us(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,o=e.child.memoizedState,o===null?o=ov(n):(l=o.cachePool,l!==null?(u=zt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=_3(),o={baseLanes:o.baseLanes|n,cachePool:l}),a.memoizedState=o,a.childLanes=lv(e,s,n),t.memoizedState=sv,i):(vr(t),n=e.child,e=n.sibling,n=Ea(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function uv(e,t){return t=uh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uh(e,t){return e=$n(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function cv(e,t,n){return Zo(t,e.child,null,n),e=uv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P6(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),kb(e.return,t,n)}function dv(e,t,n,i,a){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=a)}function B6(e,t,n){var i=t.pendingProps,a=i.revealOrder,r=i.tail;if(Zt(e,t,i.children,n),i=jt.current,i&2)i=i&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&&P6(e,n,t);else if(e.tag===19)P6(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}i&=1}switch(dt(jt,i),a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&rh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),dv(t,!1,a,n,r);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&rh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}dv(t,!0,n,null,r);break;case"together":dv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wr|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=Ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fv(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Vf(e)))}function tW(e,t,n){switch(t.tag){case 3:xf(t,t.stateNode.containerInfo),hr(t,zt,e.memoizedState.cache),Hu();break;case 27:case 5:Hg(t);break;case 4:xf(t,t.stateNode.containerInfo);break;case 10:hr(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(vr(t),t.flags|=128,null):n&t.child.childLanes?I6(e,t,n):(vr(t),e=Oa(e,t,n),e!==null?e.sibling:null);vr(t);break;case 19:var a=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vu(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return B6(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),dt(jt,jt.current),i)break;return null;case 22:case 23:return t.lanes=0,N6(e,t,n);case 24:hr(t,zt,e.memoizedState.cache)}return Oa(e,t,n)}function z6(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qt=!0;else{if(!fv(e,n)&&!(t.flags&128))return qt=!1,tW(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&p3(t,Ff,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,a=i._init;if(i=a(i._payload),t.type=i,typeof i=="function")_b(i)?(e=vs(i,e),t.tag=1,t=M6(null,t,i,e,n)):(t.tag=0,t=rv(null,t,i,e,n));else{if(i!=null){if(a=i.$$typeof,a===Lg){t.tag=11,t=C6(null,t,i,e,n);break e}else if(a===Bg){t.tag=14,t=k6(null,t,i,e,n);break e}}throw t=jg(i)||i,Error(q(306,t,""))}}return t;case 0:return rv(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=vs(i,t.pendingProps),M6(e,t,i,a,n);case 3:e:{if(xf(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var r=t.memoizedState;a=r.element,Ib(e,t),Qu(t,i,null,n);var s=t.memoizedState;if(i=s.cache,hr(t,zt,i),i!==r.cache&&Ob(t,[zt],n,!0),Ku(),i=s.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=L6(e,t,i,n);break e}else if(i!==a){a=fi(Error(q(424)),t),Fu(a),t=L6(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(vt=Mi(e.firstChild),vn=t,Fe=!0,fs=null,na=!0,n=g6(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hu(),i===a){t=Oa(e,t,n);break e}Zt(e,t,i,n)}t=t.child}return t;case 26:return lh(e,t),e===null?(n=FO(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fe||(n=t.type,e=t.pendingProps,i=Th(ur.current).createElement(n),i[un]=t,i[An]=e,en(i,n,e),Yt(i),t.stateNode=i):t.memoizedState=FO(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Hg(t),e===null&&Fe&&(i=t.stateNode=jO(t.type,t.pendingProps,ur.current),vn=t,na=!0,a=vt,kr(t.type)?(Gv=a,vt=Mi(i.firstChild)):vt=a),Zt(e,t,t.pendingProps.children,n),lh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((a=i=vt)&&(i=OW(i,t.type,t.pendingProps,na),i!==null?(t.stateNode=i,vn=t,vt=Mi(i.firstChild),na=!1,a=!0):a=!1),a||hs(t)),Hg(t),a=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,Fv(a,r)?i=null:s!==null&&Fv(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Hb(e,t,$Q,null,null,n),vc._currentValue=a),lh(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Fe&&((e=n=vt)&&(n=NW(n,t.pendingProps,na),n!==null?(t.stateNode=n,vn=t,vt=null,e=!0):e=!1),e||hs(t)),null;case 13:return I6(e,t,n);case 4:return xf(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zo(t,null,i,n):Zt(e,t,i,n),t.child;case 11:return C6(e,t,t.type,t.pendingProps,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,hr(t,t.type,i.value),Zt(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,ms(t),a=cn(a),i=i(a),t.flags|=1,Zt(e,t,i,n),t.child;case 14:return k6(e,t,t.type,t.pendingProps,n);case 15:return O6(e,t,t.type,t.pendingProps,n);case 19:return B6(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=uh(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ea(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return N6(e,t,n);case 24:return ms(t),i=cn(zt),e===null?(a=Db(),a===null&&(a=et,r=Nb(),a.pooledCache=r,r.refCount++,r!==null&&(a.pooledCacheLanes|=n),a=r),t.memoizedState={parent:i,cache:a},Lb(t),hr(t,zt,a)):(e.lanes&n&&(Ib(e,t),Qu(t,null,null,n),Ku()),a=e.memoizedState,r=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),hr(t,zt,i)):(i=r.cache,hr(t,zt,i),i!==a.cache&&Ob(t,[zt],n,!0))),Zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Na(e){e.flags|=4}function j6(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$O(t)){if(t=gi.current,t!==null&&((Ie&4194048)===Ie?ia!==null:(Ie&62914560)!==Ie&&!(Ie&536870912)||t!==ia))throw $u=Mb,E3;e.flags|=8192}}function ch(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bk():536870912,e.lanes|=t,nl|=t)}function ic(e,t){if(!Fe)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&65011712,i|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function nW(e,t,n){var i=t.pendingProps;switch(Sb(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Aa(zt),Ao(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uu(t)?Na(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,b3())),mt(t),null;case 26:return n=t.memoizedState,e===null?(Na(t),n!==null?(mt(t),j6(t,n)):(mt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Na(t),mt(t),j6(t,n)):(mt(t),t.flags&=-16777217):(e.memoizedProps!==i&&Na(t),mt(t),t.flags&=-16777217),null;case 27:_f(t),n=ur.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}e=ea.current,Uu(t)?m3(t):(e=jO(a,i,n),t.stateNode=e,Na(t))}return mt(t),null;case 5:if(_f(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}if(e=ea.current,Uu(t))m3(t);else{switch(a=Th(ur.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?a.createElement(n,{is:i.is}):a.createElement(n)}}e[un]=t,e[An]=i;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(en(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Na(t)}}return mt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Na(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=ur.current,Uu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=vn,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[un]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||DO(e.nodeValue,n)),e||hs(t)}else e=Th(e).createTextNode(i),e[un]=t,t.stateNode=e}return mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Uu(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[un]=t}else Hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),a=!1}else a=b3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ka(t),t):(ka(t),null)}if(ka(t),t.flags&128)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool);var r=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==a&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),ch(t,t.updateQueue),mt(t),null;case 4:return Ao(),e===null&&Bv(t.stateNode.containerInfo),mt(t),null;case 10:return Aa(t.type),mt(t),null;case 19:if(Vt(jt),a=t.memoizedState,a===null)return mt(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)ic(a,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=rh(e),r!==null){for(t.flags|=128,ic(a,!1),e=r.updateQueue,t.updateQueue=e,ch(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)h3(n,e),n=n.sibling;return dt(jt,jt.current&1|2),t.child}e=e.sibling}a.tail!==null&&ta()>hh&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304)}else{if(!i)if(e=rh(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ch(t,e),ic(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Fe)return mt(t),null}else 2*ta()-a.renderingStartTime>hh&&n!==536870912&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ta(),t.sibling=null,e=jt.current,dt(jt,i?e&1|2:e&1),t):(mt(t),null);case 22:case 23:return ka(t),jb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),n=t.updateQueue,n!==null&&ch(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Vt(gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Aa(zt),mt(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function iW(e,t){switch(Sb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(zt),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _f(t),null;case 13:if(ka(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(jt),null;case 4:return Ao(),null;case 10:return Aa(t.type),null;case 22:case 23:return ka(t),jb(),e!==null&&Vt(gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Aa(zt),null;case 25:return null;default:return null}}function U6(e,t){switch(Sb(t),t.tag){case 3:Aa(zt),Ao();break;case 26:case 27:case 5:_f(t);break;case 4:Ao();break;case 13:ka(t);break;case 19:Vt(jt);break;case 10:Aa(t.type);break;case 22:case 23:ka(t),jb(),e!==null&&Vt(gs);break;case 24:Aa(zt)}}function ac(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var r=n.create,s=n.inst;i=r(),s.destroy=i}n=n.next}while(n!==a)}}catch(o){Qe(t,t.return,o)}}function xr(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var r=a.next;i=r;do{if((i.tag&e)===e){var s=i.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,u=o;try{u()}catch(c){Qe(a,l,c)}}}i=i.next}while(i!==r)}}catch(c){Qe(t,t.return,c)}}function H6(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{k3(t,n)}catch(i){Qe(e,e.return,i)}}}function F6(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Qe(e,t,i)}}function rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){Qe(e,t,a)}}function aa(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){Qe(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Qe(e,t,a)}else n.current=null}function V6(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){Qe(e,e.return,a)}}function hv(e,t,n){try{var i=e.stateNode;wW(i,e.type,n,t),i[An]=t}catch(a){Qe(e,e.return,a)}}function Y6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kr(e.type)||e.tag===4}function pv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mv(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eh));else if(i!==4&&(i===27&&kr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(mv(e,t,n),e=e.sibling;e!==null;)mv(e,t,n),e=e.sibling}function dh(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&kr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(dh(e,t,n),e=e.sibling;e!==null;)dh(e,t,n),e=e.sibling}function q6(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);en(t,i,n),t[un]=e,t[An]=n}catch(r){Qe(e,e.return,r)}}var Ra=!1,St=!1,gv=!1,G6=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function aW(e,t){if(e=e.containerInfo,Uv=Oh,e=i3(e),pb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==r||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===a&&(o=s),f===r&&++c===i&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hv={focusedElem:e,selectionRange:n},Oh=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(t=Gt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,a=r.memoizedProps,r=r.memoizedState,i=n.stateNode;try{var g=vs(n.type,a,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,r),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){Qe(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Yv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(q(163))}if(e=t.sibling,e!==null){e.return=t.return,Gt=e;break}Gt=t.return}}function $6(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:_r(e,n),i&4&&ac(5,n);break;case 1:if(_r(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Qe(n,n.return,s)}else{var a=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Qe(n,n.return,s)}}i&64&&H6(n),i&512&&rc(n,n.return);break;case 3:if(_r(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{k3(e,t)}catch(s){Qe(n,n.return,s)}}break;case 27:t===null&&i&4&&q6(n);case 26:case 5:_r(e,n),t===null&&i&4&&V6(n),i&512&&rc(n,n.return);break;case 12:_r(e,n);break;case 13:_r(e,n),i&4&&Q6(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=hW.bind(null,n),RW(e,n))));break;case 22:if(i=n.memoizedState!==null||Ra,!i){t=t!==null&&t.memoizedState!==null||St,a=Ra;var r=St;Ra=i,(St=t)&&!r?Er(e,n,(n.subtreeFlags&8772)!==0):_r(e,n),Ra=a,St=r}break;case 30:break;default:_r(e,n)}}function X6(e){var t=e.alternate;t!==null&&(e.alternate=null,X6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Kg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ft=null,On=!1;function Da(e,t,n){for(n=n.child;n!==null;)K6(e,t,n),n=n.sibling}function K6(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:St||aa(n,t),Da(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||aa(n,t);var i=ft,a=On;kr(n.type)&&(ft=n.stateNode,On=!1),Da(e,t,n),pc(n.stateNode),ft=i,On=a;break;case 5:St||aa(n,t);case 6:if(i=ft,a=On,ft=null,Da(e,t,n),ft=i,On=a,ft!==null)if(On)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(n.stateNode)}catch(r){Qe(n,t,r)}else try{ft.removeChild(n.stateNode)}catch(r){Qe(n,t,r)}break;case 18:ft!==null&&(On?(e=ft,BO(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ec(e)):BO(ft,n.stateNode));break;case 4:i=ft,a=On,ft=n.stateNode.containerInfo,On=!0,Da(e,t,n),ft=i,On=a;break;case 0:case 11:case 14:case 15:St||xr(2,n,t),St||xr(4,n,t),Da(e,t,n);break;case 1:St||(aa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&F6(n,t,i)),Da(e,t,n);break;case 21:Da(e,t,n);break;case 22:St=(i=St)||n.memoizedState!==null,Da(e,t,n),St=i;break;default:Da(e,t,n)}}function Q6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(n){Qe(t,t.return,n)}}function rW(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new G6),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new G6),t;default:throw Error(q(435,e.tag))}}function bv(e,t){var n=rW(e);t.forEach(function(i){var a=pW.bind(null,e,i);n.has(i)||(n.add(i),i.then(a,a))})}function Xn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],r=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(kr(o.type)){ft=o.stateNode,On=!1;break e}break;case 5:ft=o.stateNode,On=!1;break e;case 3:case 4:ft=o.stateNode.containerInfo,On=!0;break e}o=o.return}if(ft===null)throw Error(q(160));K6(r,s,a),ft=null,On=!1,r=a.alternate,r!==null&&(r.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)W6(t,e),t=t.sibling}var Di=null;function W6(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(t,e),Kn(e),i&4&&(xr(3,e,e.return),ac(3,e),xr(5,e,e.return));break;case 1:Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),i&64&&Ra&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var a=Di;if(Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),i&4){var r=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":r=a.getElementsByTagName("title")[0],(!r||r[Ou]||r[un]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=a.createElement(i),a.head.insertBefore(r,a.querySelector("head > title"))),en(r,i,n),r[un]=e,Yt(r),i=r;break e;case"link":var s=qO("link","href",a).get(i+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(r=s[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;case"meta":if(s=qO("meta","content",a).get(i+(n.content||""))){for(o=0;o<s.length;o++)if(r=s[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;default:throw Error(q(468,i))}r[un]=e,Yt(r),i=r}e.stateNode=i}else GO(a,e.type,e.stateNode);else e.stateNode=YO(a,i,e.memoizedProps);else r!==i?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,i===null?GO(a,e.type,e.stateNode):YO(a,i,e.memoizedProps)):i===null&&e.stateNode!==null&&hv(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),n!==null&&i&4&&hv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xn(t,e),Kn(e),i&512&&(St||n===null||aa(n,n.return)),e.flags&32){a=e.stateNode;try{Lo(a,"")}catch(h){Qe(e,e.return,h)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,hv(e,a,n!==null?n.memoizedProps:a)),i&1024&&(gv=!0);break;case 6:if(Xn(t,e),Kn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){Qe(e,e.return,h)}}break;case 3:if(Ah=null,a=Di,Di=wh(t.containerInfo),Xn(t,e),Di=a,Kn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(h){Qe(e,e.return,h)}gv&&(gv=!1,Z6(e));break;case 4:i=Di,Di=wh(e.stateNode.containerInfo),Xn(t,e),Kn(e),Di=i;break;case 12:Xn(t,e),Kn(e);break;case 13:Xn(t,e),Kn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Tv=ta()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,bv(e,i)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Ra,c=St;if(Ra=u||a,St=c||l,Xn(t,e),St=c,Ra=u,Kn(e),i&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Ra||St||ys(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(r=l.stateNode,a)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){Qe(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(h){Qe(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,bv(e,n))));break;case 19:Xn(t,e),Kn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,bv(e,i)));break;case 30:break;case 21:break;default:Xn(t,e),Kn(e)}}function Kn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Y6(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var a=n.stateNode,r=pv(e);dh(e,r,a);break;case 5:var s=n.stateNode;n.flags&32&&(Lo(s,""),n.flags&=-33);var o=pv(e);dh(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=pv(e);mv(e,u,l);break;default:throw Error(q(161))}}catch(c){Qe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z6(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Z6(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _r(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$6(e,t.alternate,t),t=t.sibling}function ys(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xr(4,t,t.return),ys(t);break;case 1:aa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&F6(t,t.return,n),ys(t);break;case 27:pc(t.stateNode);case 26:case 5:aa(t,t.return),ys(t);break;case 22:t.memoizedState===null&&ys(t);break;case 30:ys(t);break;default:ys(t)}e=e.sibling}}function Er(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,a=e,r=t,s=r.flags;switch(r.tag){case 0:case 11:case 15:Er(a,r,n),ac(4,r);break;case 1:if(Er(a,r,n),i=r,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Qe(i,i.return,u)}if(i=r,a=i.updateQueue,a!==null){var o=i.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)C3(l[a],o)}catch(u){Qe(i,i.return,u)}}n&&s&64&&H6(r),rc(r,r.return);break;case 27:q6(r);case 26:case 5:Er(a,r,n),n&&i===null&&s&4&&V6(r),rc(r,r.return);break;case 12:Er(a,r,n);break;case 13:Er(a,r,n),n&&s&4&&Q6(a,r);break;case 22:r.memoizedState===null&&Er(a,r,n),rc(r,r.return);break;case 30:break;default:Er(a,r,n)}t=t.sibling}}function vv(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yu(n))}function yv(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function ra(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)J6(e,t,n,i),t=t.sibling}function J6(e,t,n,i){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ra(e,t,n,i),a&2048&&ac(9,t);break;case 1:ra(e,t,n,i);break;case 3:ra(e,t,n,i),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e)));break;case 12:if(a&2048){ra(e,t,n,i),e=t.stateNode;try{var r=t.memoizedProps,s=r.id,o=r.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Qe(t,t.return,l)}}else ra(e,t,n,i);break;case 13:ra(e,t,n,i);break;case 23:break;case 22:r=t.stateNode,s=t.alternate,t.memoizedState!==null?r._visibility&2?ra(e,t,n,i):sc(e,t):r._visibility&2?ra(e,t,n,i):(r._visibility|=2,Jo(e,t,n,i,(t.subtreeFlags&10256)!==0)),a&2048&&vv(s,t);break;case 24:ra(e,t,n,i),a&2048&&yv(t.alternate,t);break;default:ra(e,t,n,i)}}function Jo(e,t,n,i,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,s=t,o=n,l=i,u=s.flags;switch(s.tag){case 0:case 11:case 15:Jo(r,s,o,l,a),ac(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Jo(r,s,o,l,a):sc(r,s):(c._visibility|=2,Jo(r,s,o,l,a)),a&&u&2048&&vv(s.alternate,s);break;case 24:Jo(r,s,o,l,a),a&&u&2048&&yv(s.alternate,s);break;default:Jo(r,s,o,l,a)}t=t.sibling}}function sc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:sc(n,i),a&2048&&vv(i.alternate,i);break;case 24:sc(n,i),a&2048&&yv(i.alternate,i);break;default:sc(n,i)}t=t.sibling}}var oc=8192;function el(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)eO(e),e=e.sibling}function eO(e){switch(e.tag){case 26:el(e),e.flags&oc&&e.memoizedState!==null&&YW(Di,e.memoizedState,e.memoizedProps);break;case 5:el(e);break;case 3:case 4:var t=Di;Di=wh(e.stateNode.containerInfo),el(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,el(e),oc=t):el(e));break;default:el(e)}}function tO(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,iO(i,e)}tO(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nO(e),e=e.sibling}function nO(e){switch(e.tag){case 0:case 11:case 15:lc(e),e.flags&2048&&xr(9,e,e.return);break;case 3:lc(e);break;case 12:lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fh(e)):lc(e);break;default:lc(e)}}function fh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,iO(i,e)}tO(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xr(8,t,t.return),fh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fh(t));break;default:fh(t)}e=e.sibling}}function iO(e,t){for(;Gt!==null;){var n=Gt;switch(n.tag){case 0:case 11:case 15:xr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yu(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Gt=i;else e:for(n=e;Gt!==null;){i=Gt;var a=i.sibling,r=i.return;if(X6(i),i===n){Gt=null;break e}if(a!==null){a.return=r,Gt=a;break e}Gt=r}}}var sW={getCacheForType:function(e){var t=cn(zt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},oW=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,Re=null,Ie=0,Ye=0,Qn=null,Tr=!1,tl=!1,xv=!1,Ma=0,yt=0,wr=0,xs=0,_v=0,bi=0,nl=0,uc=null,Nn=null,Ev=!1,Tv=0,hh=1/0,ph=null,Sr=null,Jt=0,Ar=null,il=null,al=0,wv=0,Sv=null,aO=null,cc=0,Av=null;function Wn(){if(Ve&2&&Ie!==0)return Ie&-Ie;if(me.T!==null){var e=qo;return e!==0?e:Mv()}return xk()}function rO(){bi===0&&(bi=!(Ie&536870912)||Fe?gk():536870912);var e=gi.current;return e!==null&&(e.flags|=32),bi}function Zn(e,t,n){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(rl(e,0),Cr(e,Ie,bi,!1)),ku(e,n),(!(Ve&2)||e!==et)&&(e===et&&(!(Ve&2)&&(xs|=n),yt===4&&Cr(e,Ie,bi,!1)),sa(e))}function sO(e,t,n){if(Ve&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cu(e,t),a=i?cW(e,t):Ov(e,t,!0),r=i;do{if(a===0){tl&&!i&&Cr(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!lW(n)){a=Ov(e,t,!1),r=!1;continue}if(a===2){if(r=t,e.errorRecoveryDisabledLanes&r)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=uc;var l=o.current.memoizedState.isDehydrated;if(l&&(rl(o,s).flags|=256),s=Ov(o,s,!1),s!==2){if(xv&&!l){o.errorRecoveryDisabledLanes|=r,xs|=r,a=4;break e}r=Nn,Nn=a,r!==null&&(Nn===null?Nn=r:Nn.push.apply(Nn,r))}a=s}if(r=!1,a!==2)continue}}if(a===1){rl(e,0),Cr(e,t,0,!0);break}e:{switch(i=e,r=a,r){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:Cr(i,t,bi,!Tr);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(a=Tv+300-ta(),10<a)){if(Cr(i,t,bi,!Tr),Sf(i,0,!0)!==0)break e;i.timeoutHandle=IO(oO.bind(null,i,n,Nn,ph,Ev,t,bi,xs,nl,Tr,r,2,-0,0),a);break e}oO(i,n,Nn,ph,Ev,t,bi,xs,nl,Tr,r,0,-0,0)}}break}while(!0);sa(e)}function oO(e,t,n,i,a,r,s,o,l,u,c,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:VW},eO(t),d=qW(),d!==null)){e.cancelPendingCommit=d(pO.bind(null,e,t,r,n,i,a,s,o,l,c,1,f,h)),Cr(e,r,s,!u);return}pO(e,t,r,n,i,a,s,o,l)}function lW(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],r=a.getSnapshot;a=a.value;try{if(!Gn(r(),a))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 Cr(e,t,n,i){t&=~_v,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var r=31-qn(a),s=1<<r;i[r]=-1,a&=~s}n!==0&&vk(e,n,t)}function mh(){return Ve&6?!0:(dc(0),!1)}function Cv(){if(Re!==null){if(Ye===0)var e=Re.return;else e=Re,Sa=ps=null,Yb(e),Wo=null,tc=0,e=Re;for(;e!==null;)U6(e.alternate,e),e=e.return;Re=null}}function rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,AW(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Cv(),et=e,Re=n=Ea(e.current,null),Ie=t,Ye=0,Qn=null,Tr=!1,tl=Cu(e,t),xv=!1,nl=bi=_v=xs=wr=yt=0,Nn=uc=null,Ev=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var a=31-qn(i),r=1<<a;t|=e[a],i&=~r}return Ma=t,Bf(),n}function lO(e,t){Ce=null,me.H=nh,t===Gu||t===Gf?(t=S3(),Ye=3):t===E3?(t=S3(),Ye=4):Ye=t===A6?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Re===null&&(yt=1,oh(e,fi(t,e.current)))}function uO(){var e=me.H;return me.H=nh,e===null?nh:e}function cO(){var e=me.A;return me.A=sW,e}function kv(){yt=4,Tr||(Ie&4194048)!==Ie&&gi.current!==null||(tl=!0),!(wr&134217727)&&!(xs&134217727)||et===null||Cr(et,Ie,bi,!1)}function Ov(e,t,n){var i=Ve;Ve|=2;var a=uO(),r=cO();(et!==e||Ie!==t)&&(ph=null,rl(e,t)),t=!1;var s=yt;e:do try{if(Ye!==0&&Re!==null){var o=Re,l=Qn;switch(Ye){case 8:Cv(),s=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(t=!0);var u=Ye;if(Ye=0,Qn=null,sl(e,o,l,u),n&&tl){s=0;break e}break;default:u=Ye,Ye=0,Qn=null,sl(e,o,l,u)}}uW(),s=yt;break}catch(c){lO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Sa=ps=null,Ve=i,me.H=a,me.A=r,Re===null&&(et=null,Ie=0,Bf()),s}function uW(){for(;Re!==null;)dO(Re)}function cW(e,t){var n=Ve;Ve|=2;var i=uO(),a=cO();et!==e||Ie!==t?(ph=null,hh=ta()+500,rl(e,t)):tl=Cu(e,t);e:do try{if(Ye!==0&&Re!==null){t=Re;var r=Qn;t:switch(Ye){case 1:Ye=0,Qn=null,sl(e,t,r,1);break;case 2:case 9:if(T3(r)){Ye=0,Qn=null,fO(t);break}t=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),sa(e)},r.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:T3(r)?(Ye=0,Qn=null,fO(t)):(Ye=0,Qn=null,sl(e,t,r,7));break;case 5:var s=null;switch(Re.tag){case 26:s=Re.memoizedState;case 5:case 27:var o=Re;if(!s||$O(s)){Ye=0,Qn=null;var l=o.sibling;if(l!==null)Re=l;else{var u=o.return;u!==null?(Re=u,gh(u)):Re=null}break t}}Ye=0,Qn=null,sl(e,t,r,5);break;case 6:Ye=0,Qn=null,sl(e,t,r,6);break;case 8:Cv(),yt=6;break e;default:throw Error(q(462))}}dW();break}catch(c){lO(e,c)}while(!0);return Sa=ps=null,me.H=i,me.A=a,Ve=n,Re!==null?0:(et=null,Ie=0,Bf(),yt)}function dW(){for(;Re!==null&&!MK();)dO(Re)}function dO(e){var t=z6(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function fO(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=D6(n,t,t.pendingProps,t.type,void 0,Ie);break;case 11:t=D6(n,t,t.pendingProps,t.type.render,t.ref,Ie);break;case 5:Yb(t);default:U6(n,t),t=Re=h3(t,Ma),t=z6(n,t,Ma)}e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function sl(e,t,n,i){Sa=ps=null,Yb(t),Wo=null,tc=0;var a=t.return;try{if(eW(e,a,t,n,Ie)){yt=1,oh(e,fi(n,e.current)),Re=null;return}}catch(r){if(a!==null)throw Re=a,r;yt=1,oh(e,fi(n,e.current)),Re=null;return}t.flags&32768?(Fe||i===1?e=!0:tl||Ie&536870912?e=!1:(Tr=e=!0,(i===2||i===9||i===3||i===6)&&(i=gi.current,i!==null&&i.tag===13&&(i.flags|=16384))),hO(t,e)):gh(t)}function gh(e){var t=e;do{if(t.flags&32768){hO(t,Tr);return}e=t.return;var n=nW(t.alternate,t,Ma);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);yt===0&&(yt=5)}function hO(e,t){do{var n=iW(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);yt=6,Re=null}function pO(e,t,n,i,a,r,s,o,l){e.cancelPendingCommit=null;do bh();while(Jt!==0);if(Ve&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(r=t.lanes|t.childLanes,r|=yb,VK(e,n,r,s,o,l),e===et&&(Re=et=null,Ie=0),il=t,Ar=e,al=n,wv=r,Sv=a,aO=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,mW(Ef,function(){return yO(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=me.T,me.T=null,a=He.p,He.p=2,s=Ve,Ve|=4;try{aW(e,t,n)}finally{Ve=s,He.p=a,me.T=i}}Jt=1,mO(),gO(),bO()}}function mO(){if(Jt===1){Jt=0;var e=Ar,t=il,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{W6(t,e);var r=Hv,s=i3(e.containerInfo),o=r.focusedElem,l=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&n3(o.ownerDocument.documentElement,o)){if(l!==null&&pb(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),E=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>E&&(s=E,E=b,b=s);var m=t3(o,b),y=t3(o,E);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var x=d.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),b>E?(h.addRange(x),h.extend(y.node,y.offset)):(x.setEnd(y.node,y.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var T=d[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Oh=!!Uv,Hv=Uv=null}finally{Ve=a,He.p=i,me.T=n}}e.current=t,Jt=2}}function gO(){if(Jt===2){Jt=0;var e=Ar,t=il,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{$6(e,t.alternate,t)}finally{Ve=a,He.p=i,me.T=n}}Jt=3}}function bO(){if(Jt===4||Jt===3){Jt=0,LK();var e=Ar,t=il,n=al,i=aO;t.subtreeFlags&10256||t.flags&10256?Jt=5:(Jt=0,il=Ar=null,vO(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Sr=null),$g(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Au,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=me.T,a=He.p,He.p=2,me.T=null;try{for(var r=e.onRecoverableError,s=0;s<i.length;s++){var o=i[s];r(o.value,{componentStack:o.stack})}}finally{me.T=t,He.p=a}}al&3&&bh(),sa(e),a=e.pendingLanes,n&4194090&&a&42?e===Av?cc++:(cc=0,Av=e):cc=0,dc(0)}}function vO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function bh(e){return mO(),gO(),bO(),yO()}function yO(){if(Jt!==5)return!1;var e=Ar,t=wv;wv=0;var n=$g(al),i=me.T,a=He.p;try{He.p=32>n?32:n,me.T=null,n=Sv,Sv=null;var r=Ar,s=al;if(Jt=0,il=Ar=null,al=0,Ve&6)throw Error(q(331));var o=Ve;if(Ve|=4,nO(r.current),J6(r,r.current,s,n),Ve=o,dc(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Au,r)}catch{}return!0}finally{He.p=a,me.T=i,vO(e,t)}}function xO(e,t,n){t=fi(n,t),t=av(e.stateNode,t,2),e=gr(e,t,2),e!==null&&(ku(e,2),sa(e))}function Qe(e,t,n){if(e.tag===3)xO(e,e,n);else for(;t!==null;){if(t.tag===3){xO(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Sr===null||!Sr.has(i))){e=fi(n,e),n=w6(2),i=gr(t,n,2),i!==null&&(S6(n,i,t,e),ku(i,2),sa(i));break}}t=t.return}}function Nv(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new oW;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(xv=!0,a.add(n),e=fW.bind(null,e,t,n),t.then(e,e))}function fW(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Ie&n)===n&&(yt===4||yt===3&&(Ie&62914560)===Ie&&300>ta()-Tv?!(Ve&2)&&rl(e,0):_v|=n,nl===Ie&&(nl=0)),sa(e)}function _O(e,t){t===0&&(t=bk()),e=Ho(e,t),e!==null&&(ku(e,t),sa(e))}function hW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_O(e,n)}function pW(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(q(314))}i!==null&&i.delete(t),_O(e,n)}function mW(e,t){return Vg(e,t)}var vh=null,ol=null,Rv=!1,yh=!1,Dv=!1,_s=0;function sa(e){e!==ol&&e.next===null&&(ol===null?vh=ol=e:ol=ol.next=e),yh=!0,Rv||(Rv=!0,bW())}function dc(e,t){if(!Dv&&yh){Dv=!0;do for(var n=!1,i=vh;i!==null;){if(e!==0){var a=i.pendingLanes;if(a===0)var r=0;else{var s=i.suspendedLanes,o=i.pingedLanes;r=(1<<31-qn(42|e)+1)-1,r&=a&~(s&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,SO(i,r))}else r=Ie,r=Sf(i,i===et?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(r&3)||Cu(i,r)||(n=!0,SO(i,r));i=i.next}while(n);Dv=!1}}function gW(){EO()}function EO(){yh=Rv=!1;var e=0;_s!==0&&(SW()&&(e=_s),_s=0);for(var t=ta(),n=null,i=vh;i!==null;){var a=i.next,r=TO(i,t);r===0?(i.next=null,n===null?vh=a:n.next=a,a===null&&(ol=n)):(n=i,(e!==0||r&3)&&(yh=!0)),i=a}dc(e)}function TO(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var s=31-qn(r),o=1<<s,l=a[s];l===-1?(!(o&n)||o&i)&&(a[s]=FK(o,t)):l<=t&&(e.expiredLanes|=o),r&=~o}if(t=et,n=Ie,n=Sf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Yg(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Yg(i),$g(n)){case 2:case 8:n=pk;break;case 32:n=Ef;break;case 268435456:n=mk;break;default:n=Ef}return i=wO.bind(null,e),n=Vg(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Yg(i),e.callbackPriority=2,e.callbackNode=null,2}function wO(e,t){if(Jt!==0&&Jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bh()&&e.callbackNode!==n)return null;var i=Ie;return i=Sf(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(sO(e,i,t),TO(e,ta()),e.callbackNode!=null&&e.callbackNode===n?wO.bind(null,e):null)}function SO(e,t){if(bh())return null;sO(e,t,!0)}function bW(){CW(function(){Ve&6?Vg(hk,gW):EO()})}function Mv(){return _s===0&&(_s=gk()),_s}function AO(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nf(""+e)}function CO(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function vW(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var r=AO((a[An]||null).action),s=i.submitter;s&&(t=(t=s[An]||null)?AO(t.formAction):s.getAttribute("formAction"),t!==null&&(r=t,s=null));var o=new Lf("action","action",null,i,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_s!==0){var l=s?CO(a,s):new FormData(a);Jb(n,{pending:!0,data:l,method:a.method,action:r},null,l)}}else typeof r=="function"&&(o.preventDefault(),l=s?CO(a,s):new FormData(a),Jb(n,{pending:!0,data:l,method:a.method,action:r},r,l))},currentTarget:a}]})}}for(var Lv=0;Lv<vb.length;Lv++){var Iv=vb[Lv],yW=Iv.toLowerCase(),xW=Iv[0].toUpperCase()+Iv.slice(1);Ri(yW,"on"+xW)}Ri(s3,"onAnimationEnd"),Ri(o3,"onAnimationIteration"),Ri(l3,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(BQ,"onTransitionRun"),Ri(zQ,"onTransitionStart"),Ri(jQ,"onTransitionCancel"),Ri(u3,"onTransitionEnd"),Ro("onMouseEnter",["mouseout","mouseover"]),Ro("onMouseLeave",["mouseout","mouseover"]),Ro("onPointerEnter",["pointerout","pointerover"]),Ro("onPointerLeave",["pointerout","pointerover"]),rs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rs("onBeforeInput",["compositionend","keypress","textInput","paste"]),rs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="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(" "),_W=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function kO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){sh(c)}a.currentTarget=null,r=l}else for(s=0;s<i.length;s++){if(o=i[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){sh(c)}a.currentTarget=null,r=l}}}}function De(e,t){var n=t[Xg];n===void 0&&(n=t[Xg]=new Set);var i=e+"__bubble";n.has(i)||(OO(t,e,2,!1),n.add(i))}function Pv(e,t,n){var i=0;t&&(i|=4),OO(n,e,i,t)}var xh="_reactListening"+Math.random().toString(36).slice(2);function Bv(e){if(!e[xh]){e[xh]=!0,Ek.forEach(function(n){n!=="selectionchange"&&(_W.has(n)||Pv(n,!1,e),Pv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xh]||(t[xh]=!0,Pv("selectionchange",!1,t))}}function OO(e,t,n,i){switch(JO(t)){case 2:var a=XW;break;case 8:a=KW;break;default:a=Wv}n=a.bind(null,t,n,e),a=void 0,!rb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zv(e,t,n,i,a){var r=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=ko(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){i=r=s;continue e}o=o.parentNode}}i=i.return}Pk(function(){var u=r,c=ib(n),d=[];e:{var f=c3.get(e);if(f!==void 0){var h=Lf,g=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":h=mQ;break;case"focusin":g="focus",h=ub;break;case"focusout":g="blur",h=ub;break;case"beforeblur":case"afterblur":h=ub;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":h=jk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=iQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=vQ;break;case s3:case o3:case l3:h=sQ;break;case u3:h=xQ;break;case"scroll":case"scrollend":h=tQ;break;case"wheel":h=EQ;break;case"copy":case"cut":case"paste":h=lQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Hk;break;case"toggle":case"beforetoggle":h=wQ}var b=(t&4)!==0,E=!b&&(e==="scroll"||e==="scrollend"),m=b?f!==null?f+"Capture":null:f;b=[];for(var y=u,x;y!==null;){var T=y;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Ru(y,m),T!=null&&b.push(hc(y,T,x))),E)break;y=y.return}0<b.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==nb&&(g=n.relatedTarget||n.fromElement)&&(ko(g)||g[Co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ko(g):null,g!==null&&(E=_u(g),b=g.tag,g!==E||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=jk,T="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=Hk,T="onPointerLeave",m="onPointerEnter",y="pointer"),E=h==null?f:Nu(h),x=g==null?f:Nu(g),f=new b(T,y+"leave",h,n,c),f.target=E,f.relatedTarget=x,T=null,ko(c)===u&&(b=new b(m,y+"enter",g,n,c),b.target=x,b.relatedTarget=E,T=b),E=T,h&&g)t:{for(b=h,m=g,y=0,x=b;x;x=ll(x))y++;for(x=0,T=m;T;T=ll(T))x++;for(;0<y-x;)b=ll(b),y--;for(;0<x-y;)m=ll(m),x--;for(;y--;){if(b===m||m!==null&&b===m.alternate)break t;b=ll(b),m=ll(m)}b=null}else b=null;h!==null&&NO(d,f,h,b,!1),g!==null&&E!==null&&NO(d,E,g,b,!0)}}e:{if(f=u?Nu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=Kk;else if($k(f))if(Qk)S=LQ;else{S=DQ;var A=RQ}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&tb(u.elementType)&&(S=Kk):S=MQ;if(S&&(S=S(e,u))){Xk(d,S,n,c);break e}A&&A(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&eb(f,"number",f.value)}switch(A=u?Nu(u):window,e){case"focusin":($k(A)||A.contentEditable==="true")&&(zo=A,mb=u,ju=null);break;case"focusout":ju=mb=zo=null;break;case"mousedown":gb=!0;break;case"contextmenu":case"mouseup":case"dragend":gb=!1,a3(d,n,c);break;case"selectionchange":if(PQ)break;case"keydown":case"keyup":a3(d,n,c)}var D;if(db)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Bo?qk(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Fk&&n.locale!=="ko"&&(Bo||L!=="onCompositionStart"?L==="onCompositionEnd"&&Bo&&(D=Bk()):(fr=c,sb="value"in fr?fr.value:fr.textContent,Bo=!0)),A=_h(u,L),0<A.length&&(L=new Uk(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=Gk(n),D!==null&&(L.data=D)))),(D=AQ?CQ(e,n):kQ(e,n))&&(L=_h(u,"onBeforeInput"),0<L.length&&(A=new Uk("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:L}),A.data=D)),vW(d,e,u,n,c)}kO(d,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _h(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,r=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||r===null||(a=Ru(e,n),a!=null&&i.unshift(hc(e,a,r)),a=Ru(e,t),a!=null&&i.push(hc(e,a,r))),e.tag===3)return i;e=e.return}return[]}function ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function NO(e,t,n,i,a){for(var r=t._reactName,s=[];n!==null&&n!==i;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===i)break;o!==5&&o!==26&&o!==27||u===null||(l=u,a?(u=Ru(n,r),u!=null&&s.unshift(hc(n,u,l))):a||(u=Ru(n,r),u!=null&&s.push(hc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var EW=/\r\n?/g,TW=/\u0000|\uFFFD/g;function RO(e){return(typeof e=="string"?e:""+e).replace(EW,`
380
+ `).replace(TW,"")}function DO(e,t){return t=RO(t),RO(e)===t}function Eh(){}function Ge(e,t,n,i,a,r){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Lo(e,""+i);break;case"className":Cf(e,"class",i);break;case"tabIndex":Cf(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(e,n,i);break;case"style":Lk(e,i,r);break;case"data":if(t!=="object"){Cf(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",a.name,a,null),Ge(e,t,"formEncType",a.formEncType,a,null),Ge(e,t,"formMethod",a.formMethod,a,null),Ge(e,t,"formTarget",a.formTarget,a,null)):(Ge(e,t,"encType",a.encType,a,null),Ge(e,t,"method",a.method,a,null),Ge(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Nf(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":De("beforetoggle",e),De("toggle",e),Af(e,"popover",i);break;case"xlinkActuate":xa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":xa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":xa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":xa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":xa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":xa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":xa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":xa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":xa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Af(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=JK.get(n)||n,Af(e,n,i))}}function jv(e,t,n,i,a,r){switch(n){case"style":Lk(e,i,r);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&Lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tk.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),r=e[An]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,a),typeof i=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,a);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Af(e,n,i)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var i=!1,a=!1,r;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(s!=null)switch(r){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,r,s,n,null)}}a&&Ge(e,t,"srcSet",n.srcSet,n,null),i&&Ge(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=r=s=a=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":a=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(q(137,t));break;default:Ge(e,t,i,c,n,null)}}Nk(e,r,o,l,u,s,a,!1),kf(e);return;case"select":De("invalid",e),i=s=r=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":r=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:Ge(e,t,a,o,n,null)}t=r,n=s,e.multiple=!!i,t!=null?Mo(e,!!i,t,!1):n!=null&&Mo(e,!!i,n,!0);return;case"textarea":De("invalid",e),r=a=i=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":i=o;break;case"defaultValue":a=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(q(91));break;default:Ge(e,t,s,o,n,null)}Dk(e,i,a,r),kf(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ge(e,t,l,i,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<fc.length;i++)De(fc[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,u,i,n,null)}return;default:if(tb(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&jv(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Ge(e,t,o,i,n,null))}function wW(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,r=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||Ge(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":r=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:h!==d&&Ge(e,t,f,h,i,d)}}Jg(e,s,o,l,u,c,r,a);return;case"select":h=s=o=f=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":h=l;default:i.hasOwnProperty(r)||Ge(e,t,r,null,i,l)}for(a in i)if(r=i[a],l=n[a],i.hasOwnProperty(a)&&(r!=null||l!=null))switch(a){case"value":f=r;break;case"defaultValue":o=r;break;case"multiple":s=r;default:r!==l&&Ge(e,t,a,r,i,l)}t=o,n=s,i=h,f!=null?Mo(e,!!n,f,!1):!!i!=!!n&&(t!=null?Mo(e,!!n,t,!0):Mo(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ge(e,t,o,null,i,a)}for(s in i)if(a=i[s],r=n[s],i.hasOwnProperty(s)&&(a!=null||r!=null))switch(s){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(q(91));break;default:a!==r&&Ge(e,t,s,a,i,r)}Rk(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ge(e,t,g,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,t,l,f,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!=null&&!i.hasOwnProperty(b)&&Ge(e,t,b,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Ge(e,t,u,f,i,h)}return;default:if(tb(t)){for(var E in n)f=n[E],n.hasOwnProperty(E)&&f!==void 0&&!i.hasOwnProperty(E)&&jv(e,t,E,void 0,i,f);for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||jv(e,t,c,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&Ge(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||Ge(e,t,d,f,i,h)}var Uv=null,Hv=null;function Th(e){return e.nodeType===9?e:e.ownerDocument}function MO(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function LO(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Fv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vv=null;function SW(){var e=window.event;return e&&e.type==="popstate"?e===Vv?!1:(Vv=e,!0):(Vv=null,!1)}var IO=typeof setTimeout=="function"?setTimeout:void 0,AW=typeof clearTimeout=="function"?clearTimeout:void 0,PO=typeof Promise=="function"?Promise:void 0,CW=typeof queueMicrotask=="function"?queueMicrotask:typeof PO<"u"?function(e){return PO.resolve(null).then(e).catch(kW)}:IO;function kW(e){setTimeout(function(){throw e})}function kr(e){return e==="head"}function BO(e,t){var n=t,i=0,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<i&&8>i){n=i;var s=e.ownerDocument;if(n&1&&pc(s.documentElement),n&2&&pc(s.body),n&4)for(n=s.head,pc(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ou]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(a===0){e.removeChild(r),Ec(t);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:i=n.charCodeAt(0)-48;else i=0;n=r}while(n);Ec(t)}function Yv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Yv(n),Kg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function OW(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ou])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Mi(e.nextSibling),e===null)break}return null}function NW(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mi(e.nextSibling),e===null))return null;return e}function qv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function RW(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Gv=null;function zO(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}function jO(e,t,n){switch(t=Th(n),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kg(e)}var vi=new Map,UO=new Set;function wh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var La=He.d;He.d={f:DW,r:MW,D:LW,C:IW,L:PW,m:BW,X:jW,S:zW,M:UW};function DW(){var e=La.f(),t=mh();return e||t}function MW(e){var t=Oo(e);t!==null&&t.tag===5&&t.type==="form"?s6(t):La.r(e)}var ul=typeof document>"u"?null:document;function HO(e,t,n){var i=ul;if(i&&typeof t=="string"&&t){var a=di(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),UO.has(a)||(UO.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function LW(e){La.D(e),HO("dns-prefetch",e,null)}function IW(e,t){La.C(e,t),HO("preconnect",e,t)}function PW(e,t,n){La.L(e,t,n);var i=ul;if(i&&e&&t){var a='link[rel="preload"][as="'+di(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+di(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+di(n.imageSizes)+'"]')):a+='[href="'+di(e)+'"]';var r=a;switch(t){case"style":r=cl(e);break;case"script":r=dl(e)}vi.has(r)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vi.set(r,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(mc(r))||t==="script"&&i.querySelector(gc(r))||(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function BW(e,t){La.m(e,t);var n=ul;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+di(i)+'"][href="'+di(e)+'"]',r=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=dl(e)}if(!vi.has(r)&&(e=st({rel:"modulepreload",href:e},t),vi.set(r,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gc(r)))return}i=n.createElement("link"),en(i,"link",e),Yt(i),n.head.appendChild(i)}}}function zW(e,t,n){La.S(e,t,n);var i=ul;if(i&&e){var a=No(i).hoistableStyles,r=cl(e);t=t||"default";var s=a.get(r);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(mc(r)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vi.get(r))&&$v(e,n);var l=s=i.createElement("link");Yt(l),en(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Sh(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(r,s)}}}function jW(e,t){La.X(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=st({src:e,async:!0},t),(t=vi.get(a))&&Xv(e,t),r=n.createElement("script"),Yt(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function UW(e,t){La.M(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=st({src:e,async:!0,type:"module"},t),(t=vi.get(a))&&Xv(e,t),r=n.createElement("script"),Yt(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function FO(e,t,n,i){var a=(a=ur.current)?wh(a):null;if(!a)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=cl(n.href),n=No(a).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=cl(n.href);var r=No(a).hoistableStyles,s=r.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,s),(r=a.querySelector(mc(e)))&&!r._p&&(s.instance=r,s.state.loading=5),vi.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vi.set(e,n),r||HW(a,e,n,s.state))),t&&i===null)throw Error(q(528,""));return s}if(t&&i!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(n),n=No(a).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function cl(e){return'href="'+di(e)+'"'}function mc(e){return'link[rel="stylesheet"]['+e+"]"}function VO(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function HW(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),en(t,"link",n),Yt(t),e.head.appendChild(t))}function dl(e){return'[src="'+di(e)+'"]'}function gc(e){return"script[async]"+e}function YO(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+di(n.href)+'"]');if(i)return t.instance=i,Yt(i),i;var a=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Yt(i),en(i,"style",a),Sh(i,n.precedence,e),t.instance=i;case"stylesheet":a=cl(n.href);var r=e.querySelector(mc(a));if(r)return t.state.loading|=4,t.instance=r,Yt(r),r;i=VO(n),(a=vi.get(a))&&$v(i,a),r=(e.ownerDocument||e).createElement("link"),Yt(r);var s=r;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",i),t.state.loading|=4,Sh(r,n.precedence,e),t.instance=r;case"script":return r=dl(n.src),(a=e.querySelector(gc(r)))?(t.instance=a,Yt(a),a):(i=n,(a=vi.get(r))&&(i=st({},n),Xv(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),Yt(a),en(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,Sh(i,n.precedence,e));return t.instance}function Sh(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,r=a,s=0;s<i.length;s++){var o=i[s];if(o.dataset.precedence===t)r=o;else if(r!==a)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $v(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ah=null;function qO(e,t,n){if(Ah===null){var i=new Map,a=Ah=new Map;a.set(n,i)}else a=Ah,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var r=n[a];if(!(r[Ou]||r[un]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var s=r.getAttribute(t)||"";s=e+s;var o=i.get(s);o?o.push(r):i.set(s,[r])}}return i}function GO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function FW(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $O(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bc=null;function VW(){}function YW(e,t,n){if(bc===null)throw Error(q(475));var i=bc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=cl(n.href),r=e.querySelector(mc(a));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Ch.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=r,Yt(r);return}r=e.ownerDocument||e,n=VO(n),(a=vi.get(a))&&$v(n,a),r=r.createElement("link"),Yt(r);var s=r;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",n),t.instance=r}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=Ch.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function qW(){if(bc===null)throw Error(q(475));var e=bc;return e.stylesheets&&e.count===0&&Kv(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Kv(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Ch(){if(this.count--,this.count===0){if(this.stylesheets)Kv(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kh=null;function Kv(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kh=new Map,t.forEach(GW,e),kh=null,Ch.call(e))}function GW(e,t){if(!(t.state.loading&4)){var n=kh.get(e);if(n)var i=n.get(null);else{n=new Map,kh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<a.length;r++){var s=a[r];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),i=s)}i&&n.set(null,i)}a=t.instance,s=a.getAttribute("data-precedence"),r=n.get(s)||i,r===i&&n.set(null,a),n.set(s,a),this.count++,i=Ch.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),r?r.parentNode.insertBefore(a,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var vc={$$typeof:ya,Provider:null,Consumer:null,_currentValue:is,_currentValue2:is,_threadCount:0};function $W(e,t,n,i,a,r,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qg(0),this.hiddenUpdates=qg(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=r,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function XO(e,t,n,i,a,r,s,o,l,u,c,d){return e=new $W(e,t,n,s,o,l,u,d),t=1,r===!0&&(t|=24),r=$n(3,null,null,t),e.current=r,r.stateNode=e,t=Nb(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:t},Lb(r),e}function KO(e){return e?(e=Fo,e):Fo}function QO(e,t,n,i,a,r){a=KO(a),i.context===null?i.context=a:i.pendingContext=a,i=mr(t),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=gr(e,i,t),n!==null&&(Zn(n,e,t),Xu(n,e,t))}function WO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qv(e,t){WO(e,t),(e=e.alternate)&&WO(e,t)}function ZO(e){if(e.tag===13){var t=Ho(e,67108864);t!==null&&Zn(t,e,67108864),Qv(e,67108864)}}var Oh=!0;function XW(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=2,Wv(e,t,n,i)}finally{He.p=r,me.T=a}}function KW(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=8,Wv(e,t,n,i)}finally{He.p=r,me.T=a}}function Wv(e,t,n,i){if(Oh){var a=Zv(i);if(a===null)zv(e,t,i,Nh,n),eN(e,i);else if(WW(a,e,t,n,i))i.stopPropagation();else if(eN(e,i),t&4&&-1<QW.indexOf(e)){for(;a!==null;){var r=Oo(a);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var s=as(r.pendingLanes);if(s!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-qn(s);o.entanglements[1]|=l,s&=~l}sa(r),!(Ve&6)&&(hh=ta()+500,dc(0))}}break;case 13:o=Ho(r,2),o!==null&&Zn(o,r,2),mh(),Qv(r,2)}if(r=Zv(i),r===null&&zv(e,t,i,Nh,n),r===a)break;a=r}a!==null&&i.stopPropagation()}else zv(e,t,i,null,n)}}function Zv(e){return e=ib(e),Jv(e)}var Nh=null;function Jv(e){if(Nh=null,e=ko(e),e!==null){var t=_u(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ok(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 Nh=e,null}function JO(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(IK()){case hk:return 2;case pk:return 8;case Ef:case PK:return 32;case mk:return 268435456;default:return 32}default:return 32}}var e1=!1,Or=null,Nr=null,Rr=null,yc=new Map,xc=new Map,Dr=[],QW="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function eN(e,t){switch(e){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Rr=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function _c(e,t,n,i,a,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[a]},t!==null&&(t=Oo(t),t!==null&&ZO(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function WW(e,t,n,i,a){switch(t){case"focusin":return Or=_c(Or,e,t,n,i,a),!0;case"dragenter":return Nr=_c(Nr,e,t,n,i,a),!0;case"mouseover":return Rr=_c(Rr,e,t,n,i,a),!0;case"pointerover":var r=a.pointerId;return yc.set(r,_c(yc.get(r)||null,e,t,n,i,a)),!0;case"gotpointercapture":return r=a.pointerId,xc.set(r,_c(xc.get(r)||null,e,t,n,i,a)),!0}return!1}function tN(e){var t=ko(e.target);if(t!==null){var n=_u(t);if(n!==null){if(t=n.tag,t===13){if(t=ok(n),t!==null){e.blockedOn=t,YK(e.priority,function(){if(n.tag===13){var i=Wn();i=Gg(i);var a=Ho(n,i);a!==null&&Zn(a,n,i),Qv(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zv(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);nb=i,n.target.dispatchEvent(i),nb=null}else return t=Oo(n),t!==null&&ZO(t),e.blockedOn=n,!1;t.shift()}return!0}function nN(e,t,n){Rh(e)&&n.delete(t)}function ZW(){e1=!1,Or!==null&&Rh(Or)&&(Or=null),Nr!==null&&Rh(Nr)&&(Nr=null),Rr!==null&&Rh(Rr)&&(Rr=null),yc.forEach(nN),xc.forEach(nN)}function Dh(e,t){e.blockedOn===t&&(e.blockedOn=null,e1||(e1=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,ZW)))}var Mh=null;function iN(e){Mh!==e&&(Mh=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){Mh===e&&(Mh=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Jv(i||n)===null)continue;break}var r=Oo(n);r!==null&&(e.splice(t,3),t-=3,Jb(r,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ec(e){function t(l){return Dh(l,e)}Or!==null&&Dh(Or,e),Nr!==null&&Dh(Nr,e),Rr!==null&&Dh(Rr,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<Dr.length;n++){var i=Dr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)tN(n),n.blockedOn===null&&Dr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],r=n[i+1],s=a[An]||null;if(typeof r=="function")s||iN(n);else if(s){var o=null;if(r&&r.hasAttribute("formAction")){if(a=r,s=r[An]||null)o=s.formAction;else if(Jv(a)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),iN(n)}}}function t1(e){this._internalRoot=e}Lh.prototype.render=t1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Wn();QO(n,i,e,t,null,null)},Lh.prototype.unmount=t1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;QO(e.current,2,null,e,null,null),mh(),t[Co]=null}};function Lh(e){this._internalRoot=e}Lh.prototype.unstable_scheduleHydration=function(e){if(e){var t=xk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dr.length&&t!==0&&t<Dr[n].priority;n++);Dr.splice(n,0,e),n===0&&tN(e)}};var aN=rk.version;if(aN!=="19.1.1")throw Error(q(527,aN,"19.1.1"));He.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=kK(t),e=e!==null?uk(e):null,e=e===null?null:e.stateNode,e};var JW={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ih.isDisabled&&Ih.supportsFiber)try{Au=Ih.inject(JW),Yn=Ih}catch{}}bf.createRoot=function(e,t){if(!sk(e))throw Error(q(299));var n=!1,i="",a=x6,r=_6,s=E6,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=XO(e,1,!1,null,null,n,i,a,r,s,o,null),e[Co]=t.current,Bv(e),new t1(t)},bf.hydrateRoot=function(e,t,n){if(!sk(e))throw Error(q(299));var i=!1,a="",r=x6,s=_6,o=E6,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=XO(e,1,!0,t,n??null,i,a,r,s,o,l,u),t.context=KO(null),n=t.current,i=Wn(),i=Gg(i),a=mr(i),a.callback=null,gr(n,a,i),n=i,t.current.lanes=n,ku(t,n),sa(t),e[Co]=t.current,Bv(e),new Lh(t)},bf.version="19.1.1";function rN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rN)}catch(e){console.error(e)}}rN(),nk.exports=bf;var eZ=nk.exports;const tZ="4.0.55",nZ="opencx-root";function iZ(e){aZ(nZ,v.jsx(tk,{options:e}))}window.initOpenScript=iZ,window.openCXWidgetVersion=tZ;function aZ(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),eZ.createRoot(n).render(t)}})();
381
381
  //# sourceMappingURL=script.js.map