@eka-care/medassist-widget 0.1.64 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/medassist-widget.js +19 -19
- package/package.json +2 -2
package/dist/medassist-widget.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var MedAssistWidget=(function(cu){"use strict";function Xb(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fu={exports:{}},Ta={};var Jg;function qb(){if(Jg)return Ta;Jg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Ta.Fragment=t,Ta.jsx=r,Ta.jsxs=r,Ta}var Zg;function Jb(){return Zg||(Zg=1,fu.exports=qb()),fu.exports}var g=Jb(),du={exports:{}},Te={};var Wg;function Zb(){if(Wg)return Te;Wg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),C=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=C&&N[C]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,U={};function Q(N,q,E){this.props=N,this.context=q,this.refs=U,this.updater=E||v}Q.prototype.isReactComponent={},Q.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},Q.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function I(){}I.prototype=Q.prototype;function M(N,q,E){this.props=N,this.context=q,this.refs=U,this.updater=E||v}var z=M.prototype=new I;z.constructor=M,b(z,Q.prototype),z.isPureReactComponent=!0;var j=Array.isArray;function F(){}var H={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function O(N,q,E){var ne=E.ref;return{$$typeof:e,type:N,key:q,ref:ne!==void 0?ne:null,props:E}}function $(N,q){return O(N.type,q,N.props)}function ee(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function V(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(E){return q[E]})}var se=/\/+/g;function Ae(N,q){return typeof N=="object"&&N!==null&&N.key!=null?V(""+N.key):q.toString(36)}function J(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(F,F):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function L(N,q,E,ne,oe){var ue=typeof N;(ue==="undefined"||ue==="boolean")&&(N=null);var pe=!1;if(N===null)pe=!0;else switch(ue){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(N.$$typeof){case e:case t:pe=!0;break;case m:return pe=N._init,L(pe(N._payload),q,E,ne,oe)}}if(pe)return oe=oe(N),pe=ne===""?"."+Ae(N,0):ne,j(oe)?(E="",pe!=null&&(E=pe.replace(se,"$&/")+"/"),L(oe,q,E,"",function(eA){return eA})):oe!=null&&(ee(oe)&&(oe=$(oe,E+(oe.key==null||N&&N.key===oe.key?"":(""+oe.key).replace(se,"$&/")+"/")+pe)),q.push(oe)),1;pe=0;var Oe=ne===""?".":ne+":";if(j(N))for(var xe=0;xe<N.length;xe++)ne=N[xe],ue=Oe+Ae(ne,xe),pe+=L(ne,q,E,ue,oe);else if(xe=w(N),typeof xe=="function")for(N=xe.call(N),xe=0;!(ne=N.next()).done;)ne=ne.value,ue=Oe+Ae(ne,xe++),pe+=L(ne,q,E,ue,oe);else if(ue==="object"){if(typeof N.then=="function")return L(J(N),q,E,ne,oe);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Z(N,q,E){if(N==null)return N;var ne=[],oe=0;return L(N,ne,"","",function(ue){return q.call(E,ue,oe++)}),ne}function te(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(E){(N._status===0||N._status===-1)&&(N._status=1,N._result=E)},function(E){(N._status===0||N._status===-1)&&(N._status=2,N._result=E)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var ge=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}},T={map:Z,forEach:function(N,q,E){Z(N,function(){q.apply(this,arguments)},E)},count:function(N){var q=0;return Z(N,function(){q++}),q},toArray:function(N){return Z(N,function(q){return q})||[]},only:function(N){if(!ee(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Te.Activity=B,Te.Children=T,Te.Component=Q,Te.Fragment=r,Te.Profiler=s,Te.PureComponent=M,Te.StrictMode=i,Te.Suspense=f,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Te.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},Te.cache=function(N){return function(){return N.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(N,q,E){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ne=b({},N.props),oe=N.key;if(q!=null)for(ue in q.key!==void 0&&(oe=""+q.key),q)!k.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||(ne[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)ne.children=E;else if(1<ue){for(var pe=Array(ue),Oe=0;Oe<ue;Oe++)pe[Oe]=arguments[Oe+2];ne.children=pe}return O(N.type,oe,ne)},Te.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:l,_context:N},N},Te.createElement=function(N,q,E){var ne,oe={},ue=null;if(q!=null)for(ne in q.key!==void 0&&(ue=""+q.key),q)k.call(q,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(oe[ne]=q[ne]);var pe=arguments.length-2;if(pe===1)oe.children=E;else if(1<pe){for(var Oe=Array(pe),xe=0;xe<pe;xe++)Oe[xe]=arguments[xe+2];oe.children=Oe}if(N&&N.defaultProps)for(ne in pe=N.defaultProps,pe)oe[ne]===void 0&&(oe[ne]=pe[ne]);return O(N,ue,oe)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(N){return{$$typeof:u,render:N}},Te.isValidElement=ee,Te.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:te}},Te.memo=function(N,q){return{$$typeof:h,type:N,compare:q===void 0?null:q}},Te.startTransition=function(N){var q=H.T,E={};H.T=E;try{var ne=N(),oe=H.S;oe!==null&&oe(E,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(F,ge)}catch(ue){ge(ue)}finally{q!==null&&E.types!==null&&(q.types=E.types),H.T=q}},Te.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Te.use=function(N){return H.H.use(N)},Te.useActionState=function(N,q,E){return H.H.useActionState(N,q,E)},Te.useCallback=function(N,q){return H.H.useCallback(N,q)},Te.useContext=function(N){return H.H.useContext(N)},Te.useDebugValue=function(){},Te.useDeferredValue=function(N,q){return H.H.useDeferredValue(N,q)},Te.useEffect=function(N,q){return H.H.useEffect(N,q)},Te.useEffectEvent=function(N){return H.H.useEffectEvent(N)},Te.useId=function(){return H.H.useId()},Te.useImperativeHandle=function(N,q,E){return H.H.useImperativeHandle(N,q,E)},Te.useInsertionEffect=function(N,q){return H.H.useInsertionEffect(N,q)},Te.useLayoutEffect=function(N,q){return H.H.useLayoutEffect(N,q)},Te.useMemo=function(N,q){return H.H.useMemo(N,q)},Te.useOptimistic=function(N,q){return H.H.useOptimistic(N,q)},Te.useReducer=function(N,q,E){return H.H.useReducer(N,q,E)},Te.useRef=function(N){return H.H.useRef(N)},Te.useState=function(N){return H.H.useState(N)},Te.useSyncExternalStore=function(N,q,E){return H.H.useSyncExternalStore(N,q,E)},Te.useTransition=function(){return H.H.useTransition()},Te.version="19.2.0",Te}var $g;function Ul(){return $g||($g=1,du.exports=Zb()),du.exports}var x=Ul();const Na=uu(x),ep=Xb({__proto__:null,default:Na},[x]);var hu={exports:{}},Ia={},gu={exports:{}},pu={};var Ap;function Wb(){return Ap||(Ap=1,(function(e){function t(L,Z){var te=L.length;L.push(Z);e:for(;0<te;){var ge=te-1>>>1,T=L[ge];if(0<s(T,Z))L[ge]=Z,L[te]=T,te=ge;else break e}}function r(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Z=L[0],te=L.pop();if(te!==Z){L[0]=te;e:for(var ge=0,T=L.length,N=T>>>1;ge<N;){var q=2*(ge+1)-1,E=L[q],ne=q+1,oe=L[ne];if(0>s(E,te))ne<T&&0>s(oe,E)?(L[ge]=oe,L[ne]=te,ge=ne):(L[ge]=E,L[q]=te,ge=q);else if(ne<T&&0>s(oe,te))L[ge]=oe,L[ne]=te,ge=ne;else break e}}return Z}function s(L,Z){var te=L.sortIndex-Z.sortIndex;return te!==0?te:L.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,B=null,C=3,w=!1,v=!1,b=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function z(L){for(var Z=r(h);Z!==null;){if(Z.callback===null)i(h);else if(Z.startTime<=L)i(h),Z.sortIndex=Z.expirationTime,t(f,Z);else break;Z=r(h)}}function j(L){if(b=!1,z(L),!v)if(r(f)!==null)v=!0,F||(F=!0,V());else{var Z=r(h);Z!==null&&J(j,Z.startTime-L)}}var F=!1,H=-1,k=5,O=-1;function $(){return U?!0:!(e.unstable_now()-O<k)}function ee(){if(U=!1,F){var L=e.unstable_now();O=L;var Z=!0;try{e:{v=!1,b&&(b=!1,I(H),H=-1),w=!0;var te=C;try{A:{for(z(L),B=r(f);B!==null&&!(B.expirationTime>L&&$());){var ge=B.callback;if(typeof ge=="function"){B.callback=null,C=B.priorityLevel;var T=ge(B.expirationTime<=L);if(L=e.unstable_now(),typeof T=="function"){B.callback=T,z(L),Z=!0;break A}B===r(f)&&i(f),z(L)}else i(f);B=r(f)}if(B!==null)Z=!0;else{var N=r(h);N!==null&&J(j,N.startTime-L),Z=!1}}break e}finally{B=null,C=te,w=!1}Z=void 0}}finally{Z?V():F=!1}}}var V;if(typeof M=="function")V=function(){M(ee)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,Ae=se.port2;se.port1.onmessage=ee,V=function(){Ae.postMessage(null)}}else V=function(){Q(ee,0)};function J(L,Z){H=Q(function(){L(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L||(k=0<L?Math.floor(1e3/L):5)},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_next=function(L){switch(C){case 1:case 2:case 3:var Z=3;break;default:Z=C}var te=C;C=Z;try{return L()}finally{C=te}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var te=C;C=L;try{return Z()}finally{C=te}},e.unstable_scheduleCallback=function(L,Z,te){var ge=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,L){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=te+T,L={id:m++,callback:Z,priorityLevel:L,startTime:te,expirationTime:T,sortIndex:-1},te>ge?(L.sortIndex=te,t(h,L),r(f)===null&&L===r(h)&&(b?(I(H),H=-1):b=!0,J(j,te-ge))):(L.sortIndex=T,t(f,L),v||w||(v=!0,F||(F=!0,V()))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var Z=C;return function(){var te=C;C=Z;try{return L.apply(this,arguments)}finally{C=te}}}})(pu)),pu}var tp;function $b(){return tp||(tp=1,gu.exports=Wb()),gu.exports}var mu={exports:{}},at={};var np;function e1(){if(np)return at;np=1;var e=Ul();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,m){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:B==null?null:""+B,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,at.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,m)},at.flushSync=function(f){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=m,i.d.f()}},at.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},at.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},at.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin),C=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:C,fetchPriority:w}):m==="script"&&i.d.X(f,{crossOrigin:B,integrity:C,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},at.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},at.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},at.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},at.requestFormReset=function(f){i.d.r(f)},at.unstable_batchedUpdates=function(f,h){return f(h)},at.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},at.useFormStatus=function(){return c.H.useHostTransitionStatus()},at.version="19.2.0",at}var rp;function A1(){if(rp)return mu.exports;rp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),mu.exports=e1(),mu.exports}var ip;function t1(){if(ip)return Ia;ip=1;var e=$b(),t=Ul(),r=A1();function i(A){var n="https://react.dev/errors/"+A;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+A+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function l(A){var n=A,a=A;if(A.alternate)for(;n.return;)n=n.return;else{A=n;do n=A,(n.flags&4098)!==0&&(a=n.return),A=n.return;while(A)}return n.tag===3?a:null}function c(A){if(A.tag===13){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function u(A){if(A.tag===31){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function f(A){if(l(A)!==A)throw Error(i(188))}function h(A){var n=A.alternate;if(!n){if(n=l(A),n===null)throw Error(i(188));return n!==A?null:A}for(var a=A,o=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return f(d),A;if(p===o)return f(d),n;p=p.sibling}throw Error(i(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,S=d.child;S;){if(S===a){y=!0,a=d,o=p;break}if(S===o){y=!0,o=d,a=p;break}S=S.sibling}if(!y){for(S=p.child;S;){if(S===a){y=!0,a=p,o=d;break}if(S===o){y=!0,o=p,a=d;break}S=S.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?A:n}function m(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A;for(A=A.child;A!==null;){if(n=m(A),n!==null)return n;A=A.sibling}return null}var B=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),M=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function V(A){return A===null||typeof A!="object"?null:(A=ee&&A[ee]||A["@@iterator"],typeof A=="function"?A:null)}var se=Symbol.for("react.client.reference");function Ae(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===se?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case b:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case j:return"Suspense";case F:return"SuspenseList";case O:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case v:return"Portal";case M:return A.displayName||"Context";case I:return(A._context.displayName||"Context")+".Consumer";case z:var n=A.render;return A=A.displayName,A||(A=n.displayName||n.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case H:return n=A.displayName||null,n!==null?n:Ae(A.type)||"Memo";case k:n=A._payload,A=A._init;try{return Ae(A(n))}catch{}}return null}var J=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ge=[],T=-1;function N(A){return{current:A}}function q(A){0>T||(A.current=ge[T],ge[T]=null,T--)}function E(A,n){T++,ge[T]=A.current,A.current=n}var ne=N(null),oe=N(null),ue=N(null),pe=N(null);function Oe(A,n){switch(E(ue,n),E(oe,A),E(ne,null),n.nodeType){case 9:case 11:A=(A=n.documentElement)&&(A=A.namespaceURI)?mb(A):0;break;default:if(A=n.tagName,n=n.namespaceURI)n=mb(n),A=Bb(n,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}q(ne),E(ne,A)}function xe(){q(ne),q(oe),q(ue)}function eA(A){A.memoizedState!==null&&E(pe,A);var n=ne.current,a=Bb(n,A.type);n!==a&&(E(oe,A),E(ne,a))}function Pe(A){oe.current===A&&(q(ne),q(oe)),pe.current===A&&(q(pe),bl._currentValue=te)}var nA,OA;function rA(A){if(nA===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);nA=n&&n[1]||"",OA=-1<a.stack.indexOf(`
|
|
1
|
+
var MedAssistWidget=(function(uu){"use strict";function Xb(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function fu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var du={exports:{}},Ta={};var Jg;function qb(){if(Jg)return Ta;Jg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,s,l){var c=null;if(l!==void 0&&(c=""+l),s.key!==void 0&&(c=""+s.key),"key"in s){l={};for(var u in s)u!=="key"&&(l[u]=s[u])}else l=s;return s=l.ref,{$$typeof:e,type:i,key:c,ref:s!==void 0?s:null,props:l}}return Ta.Fragment=t,Ta.jsx=r,Ta.jsxs=r,Ta}var Zg;function Jb(){return Zg||(Zg=1,du.exports=qb()),du.exports}var g=Jb(),hu={exports:{}},Te={};var Wg;function Zb(){if(Wg)return Te;Wg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),C=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=C&&I[C]||I["@@iterator"],typeof I=="function"?I:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,U={};function Q(I,P,E){this.props=I,this.context=P,this.refs=U,this.updater=E||v}Q.prototype.isReactComponent={},Q.prototype.setState=function(I,P){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,P,"setState")},Q.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function T(){}T.prototype=Q.prototype;function O(I,P,E){this.props=I,this.context=P,this.refs=U,this.updater=E||v}var G=O.prototype=new T;G.constructor=O,b(G,Q.prototype),G.isPureReactComponent=!0;var k=Array.isArray;function F(){}var H={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function M(I,P,E){var te=E.ref;return{$$typeof:e,type:I,key:P,ref:te!==void 0?te:null,props:E}}function W(I,P){return M(I.type,P,I.props)}function ee(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function j(I){var P={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(E){return P[E]})}var se=/\/+/g;function le(I,P){return typeof I=="object"&&I!==null&&I.key!=null?j(""+I.key):P.toString(36)}function z(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(F,F):(I.status="pending",I.then(function(P){I.status==="pending"&&(I.status="fulfilled",I.value=P)},function(P){I.status==="pending"&&(I.status="rejected",I.reason=P)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function R(I,P,E,te,oe){var fe=typeof I;(fe==="undefined"||fe==="boolean")&&(I=null);var ge=!1;if(I===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(I.$$typeof){case e:case t:ge=!0;break;case m:return ge=I._init,R(ge(I._payload),P,E,te,oe)}}if(ge)return oe=oe(I),ge=te===""?"."+le(I,0):te,k(oe)?(E="",ge!=null&&(E=ge.replace(se,"$&/")+"/"),R(oe,P,E,"",function(Ze){return Ze})):oe!=null&&(ee(oe)&&(oe=W(oe,E+(oe.key==null||I&&I.key===oe.key?"":(""+oe.key).replace(se,"$&/")+"/")+ge)),P.push(oe)),1;ge=0;var Re=te===""?".":te+":";if(k(I))for(var Fe=0;Fe<I.length;Fe++)te=I[Fe],fe=Re+le(te,Fe),ge+=R(te,P,E,fe,oe);else if(Fe=w(I),typeof Fe=="function")for(I=Fe.call(I),Fe=0;!(te=I.next()).done;)te=te.value,fe=Re+le(te,Fe++),ge+=R(te,P,E,fe,oe);else if(fe==="object"){if(typeof I.then=="function")return R(z(I),P,E,te,oe);throw P=String(I),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ge}function q(I,P,E){if(I==null)return I;var te=[],oe=0;return R(I,te,"","",function(fe){return P.call(E,fe,oe++)}),te}function Ae(I){if(I._status===-1){var P=I._result;P=P(),P.then(function(E){(I._status===0||I._status===-1)&&(I._status=1,I._result=E)},function(E){(I._status===0||I._status===-1)&&(I._status=2,I._result=E)}),I._status===-1&&(I._status=0,I._result=P)}if(I._status===1)return I._result.default;throw I._result}var me=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}},N={map:q,forEach:function(I,P,E){q(I,function(){P.apply(this,arguments)},E)},count:function(I){var P=0;return q(I,function(){P++}),P},toArray:function(I){return q(I,function(P){return P})||[]},only:function(I){if(!ee(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return Te.Activity=B,Te.Children=N,Te.Component=Q,Te.Fragment=r,Te.Profiler=s,Te.PureComponent=O,Te.StrictMode=i,Te.Suspense=f,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Te.__COMPILER_RUNTIME={__proto__:null,c:function(I){return H.H.useMemoCache(I)}},Te.cache=function(I){return function(){return I.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(I,P,E){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var te=b({},I.props),oe=I.key;if(P!=null)for(fe in P.key!==void 0&&(oe=""+P.key),P)!L.call(P,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&P.ref===void 0||(te[fe]=P[fe]);var fe=arguments.length-2;if(fe===1)te.children=E;else if(1<fe){for(var ge=Array(fe),Re=0;Re<fe;Re++)ge[Re]=arguments[Re+2];te.children=ge}return M(I.type,oe,te)},Te.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},Te.createElement=function(I,P,E){var te,oe={},fe=null;if(P!=null)for(te in P.key!==void 0&&(fe=""+P.key),P)L.call(P,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(oe[te]=P[te]);var ge=arguments.length-2;if(ge===1)oe.children=E;else if(1<ge){for(var Re=Array(ge),Fe=0;Fe<ge;Fe++)Re[Fe]=arguments[Fe+2];oe.children=Re}if(I&&I.defaultProps)for(te in ge=I.defaultProps,ge)oe[te]===void 0&&(oe[te]=ge[te]);return M(I,fe,oe)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(I){return{$$typeof:u,render:I}},Te.isValidElement=ee,Te.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:Ae}},Te.memo=function(I,P){return{$$typeof:h,type:I,compare:P===void 0?null:P}},Te.startTransition=function(I){var P=H.T,E={};H.T=E;try{var te=I(),oe=H.S;oe!==null&&oe(E,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(F,me)}catch(fe){me(fe)}finally{P!==null&&E.types!==null&&(P.types=E.types),H.T=P}},Te.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Te.use=function(I){return H.H.use(I)},Te.useActionState=function(I,P,E){return H.H.useActionState(I,P,E)},Te.useCallback=function(I,P){return H.H.useCallback(I,P)},Te.useContext=function(I){return H.H.useContext(I)},Te.useDebugValue=function(){},Te.useDeferredValue=function(I,P){return H.H.useDeferredValue(I,P)},Te.useEffect=function(I,P){return H.H.useEffect(I,P)},Te.useEffectEvent=function(I){return H.H.useEffectEvent(I)},Te.useId=function(){return H.H.useId()},Te.useImperativeHandle=function(I,P,E){return H.H.useImperativeHandle(I,P,E)},Te.useInsertionEffect=function(I,P){return H.H.useInsertionEffect(I,P)},Te.useLayoutEffect=function(I,P){return H.H.useLayoutEffect(I,P)},Te.useMemo=function(I,P){return H.H.useMemo(I,P)},Te.useOptimistic=function(I,P){return H.H.useOptimistic(I,P)},Te.useReducer=function(I,P,E){return H.H.useReducer(I,P,E)},Te.useRef=function(I){return H.H.useRef(I)},Te.useState=function(I){return H.H.useState(I)},Te.useSyncExternalStore=function(I,P,E){return H.H.useSyncExternalStore(I,P,E)},Te.useTransition=function(){return H.H.useTransition()},Te.version="19.2.0",Te}var $g;function Ql(){return $g||($g=1,hu.exports=Zb()),hu.exports}var x=Ql();const Na=fu(x),ep=Xb({__proto__:null,default:Na},[x]);var gu={exports:{}},Ia={},pu={exports:{}},mu={};var Ap;function Wb(){return Ap||(Ap=1,(function(e){function t(R,q){var Ae=R.length;R.push(q);e:for(;0<Ae;){var me=Ae-1>>>1,N=R[me];if(0<s(N,q))R[me]=q,R[Ae]=N,Ae=me;else break e}}function r(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var q=R[0],Ae=R.pop();if(Ae!==q){R[0]=Ae;e:for(var me=0,N=R.length,I=N>>>1;me<I;){var P=2*(me+1)-1,E=R[P],te=P+1,oe=R[te];if(0>s(E,Ae))te<N&&0>s(oe,E)?(R[me]=oe,R[te]=Ae,me=te):(R[me]=E,R[P]=Ae,me=P);else if(te<N&&0>s(oe,Ae))R[me]=oe,R[te]=Ae,me=te;else break e}}return q}function s(R,q){var Ae=R.sortIndex-q.sortIndex;return Ae!==0?Ae:R.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],m=1,B=null,C=3,w=!1,v=!1,b=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function G(R){for(var q=r(h);q!==null;){if(q.callback===null)i(h);else if(q.startTime<=R)i(h),q.sortIndex=q.expirationTime,t(f,q);else break;q=r(h)}}function k(R){if(b=!1,G(R),!v)if(r(f)!==null)v=!0,F||(F=!0,j());else{var q=r(h);q!==null&&z(k,q.startTime-R)}}var F=!1,H=-1,L=5,M=-1;function W(){return U?!0:!(e.unstable_now()-M<L)}function ee(){if(U=!1,F){var R=e.unstable_now();M=R;var q=!0;try{e:{v=!1,b&&(b=!1,T(H),H=-1),w=!0;var Ae=C;try{A:{for(G(R),B=r(f);B!==null&&!(B.expirationTime>R&&W());){var me=B.callback;if(typeof me=="function"){B.callback=null,C=B.priorityLevel;var N=me(B.expirationTime<=R);if(R=e.unstable_now(),typeof N=="function"){B.callback=N,G(R),q=!0;break A}B===r(f)&&i(f),G(R)}else i(f);B=r(f)}if(B!==null)q=!0;else{var I=r(h);I!==null&&z(k,I.startTime-R),q=!1}}break e}finally{B=null,C=Ae,w=!1}q=void 0}}finally{q?j():F=!1}}}var j;if(typeof O=="function")j=function(){O(ee)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,le=se.port2;se.port1.onmessage=ee,j=function(){le.postMessage(null)}}else j=function(){Q(ee,0)};function z(R,q){H=Q(function(){R(e.unstable_now())},q)}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(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R||(L=0<R?Math.floor(1e3/R):5)},e.unstable_getCurrentPriorityLevel=function(){return C},e.unstable_next=function(R){switch(C){case 1:case 2:case 3:var q=3;break;default:q=C}var Ae=C;C=q;try{return R()}finally{C=Ae}},e.unstable_requestPaint=function(){U=!0},e.unstable_runWithPriority=function(R,q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Ae=C;C=R;try{return q()}finally{C=Ae}},e.unstable_scheduleCallback=function(R,q,Ae){var me=e.unstable_now();switch(typeof Ae=="object"&&Ae!==null?(Ae=Ae.delay,Ae=typeof Ae=="number"&&0<Ae?me+Ae:me):Ae=me,R){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=Ae+N,R={id:m++,callback:q,priorityLevel:R,startTime:Ae,expirationTime:N,sortIndex:-1},Ae>me?(R.sortIndex=Ae,t(h,R),r(f)===null&&R===r(h)&&(b?(T(H),H=-1):b=!0,z(k,Ae-me))):(R.sortIndex=N,t(f,R),v||w||(v=!0,F||(F=!0,j()))),R},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(R){var q=C;return function(){var Ae=C;C=q;try{return R.apply(this,arguments)}finally{C=Ae}}}})(mu)),mu}var tp;function $b(){return tp||(tp=1,pu.exports=Wb()),pu.exports}var Bu={exports:{}},rt={};var np;function e1(){if(np)return rt;np=1;var e=Ql();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(f,h,m){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:B==null?null:""+B,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rt.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(f,h,null,m)},rt.flushSync=function(f){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=m,i.d.f()}},rt.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},rt.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},rt.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin),C=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:B,integrity:C,fetchPriority:w}):m==="script"&&i.d.X(f,{crossOrigin:B,integrity:C,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},rt.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},rt.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,B=u(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:B,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},rt.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},rt.requestFormReset=function(f){i.d.r(f)},rt.unstable_batchedUpdates=function(f,h){return f(h)},rt.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},rt.useFormStatus=function(){return c.H.useHostTransitionStatus()},rt.version="19.2.0",rt}var rp;function A1(){if(rp)return Bu.exports;rp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),Bu.exports=e1(),Bu.exports}var ip;function t1(){if(ip)return Ia;ip=1;var e=$b(),t=Ql(),r=A1();function i(A){var n="https://react.dev/errors/"+A;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+A+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function l(A){var n=A,a=A;if(A.alternate)for(;n.return;)n=n.return;else{A=n;do n=A,(n.flags&4098)!==0&&(a=n.return),A=n.return;while(A)}return n.tag===3?a:null}function c(A){if(A.tag===13){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function u(A){if(A.tag===31){var n=A.memoizedState;if(n===null&&(A=A.alternate,A!==null&&(n=A.memoizedState)),n!==null)return n.dehydrated}return null}function f(A){if(l(A)!==A)throw Error(i(188))}function h(A){var n=A.alternate;if(!n){if(n=l(A),n===null)throw Error(i(188));return n!==A?null:A}for(var a=A,o=n;;){var d=a.return;if(d===null)break;var p=d.alternate;if(p===null){if(o=d.return,o!==null){a=o;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===a)return f(d),A;if(p===o)return f(d),n;p=p.sibling}throw Error(i(188))}if(a.return!==o.return)a=d,o=p;else{for(var y=!1,S=d.child;S;){if(S===a){y=!0,a=d,o=p;break}if(S===o){y=!0,o=d,a=p;break}S=S.sibling}if(!y){for(S=p.child;S;){if(S===a){y=!0,a=p,o=d;break}if(S===o){y=!0,o=p,a=d;break}S=S.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==o)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?A:n}function m(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A;for(A=A.child;A!==null;){if(n=m(A),n!==null)return n;A=A.sibling}return null}var B=Object.assign,C=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),O=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=ee&&A[ee]||A["@@iterator"],typeof A=="function"?A:null)}var se=Symbol.for("react.client.reference");function le(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===se?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case b:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case k:return"Suspense";case F:return"SuspenseList";case M:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case v:return"Portal";case O:return A.displayName||"Context";case T:return(A._context.displayName||"Context")+".Consumer";case G:var n=A.render;return A=A.displayName,A||(A=n.displayName||n.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case H:return n=A.displayName||null,n!==null?n:le(A.type)||"Memo";case L:n=A._payload,A=A._init;try{return le(A(n))}catch{}}return null}var z=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae={pending:!1,data:null,method:null,action:null},me=[],N=-1;function I(A){return{current:A}}function P(A){0>N||(A.current=me[N],me[N]=null,N--)}function E(A,n){N++,me[N]=A.current,A.current=n}var te=I(null),oe=I(null),fe=I(null),ge=I(null);function Re(A,n){switch(E(fe,n),E(oe,A),E(te,null),n.nodeType){case 9:case 11:A=(A=n.documentElement)&&(A=A.namespaceURI)?mb(A):0;break;default:if(A=n.tagName,n=n.namespaceURI)n=mb(n),A=Bb(n,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}P(te),E(te,A)}function Fe(){P(te),P(oe),P(fe)}function Ze(A){A.memoizedState!==null&&E(ge,A);var n=te.current,a=Bb(n,A.type);n!==a&&(E(oe,A),E(te,a))}function ke(A){oe.current===A&&(P(te),P(oe)),ge.current===A&&(P(ge),vl._currentValue=Ae)}var FA,aA;function EA(A){if(FA===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);FA=n&&n[1]||"",aA=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(d=o=0;o<_.length&&!_[o].includes("DetermineComponentFrameRoot");)o++;for(;d<
|
|
6
|
-
`+_[o].replace(" at new "," at ");return A.displayName&&
|
|
3
|
+
`+FA+A+aA}var bA=!1;function Ut(A,n){if(!A||bA)return"";bA=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch($){var Z=$}Reflect.construct(A,[],ae)}else{try{ae.call()}catch($){Z=$}A.call(ae.prototype)}}else{try{throw Error()}catch($){Z=$}(ae=A())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch($){if($&&Z&&typeof $.stack=="string")return[$.stack,Z.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),y=p[0],S=p[1];if(y&&S){var _=y.split(`
|
|
4
|
+
`),X=S.split(`
|
|
5
|
+
`);for(d=o=0;o<_.length&&!_[o].includes("DetermineComponentFrameRoot");)o++;for(;d<X.length&&!X[d].includes("DetermineComponentFrameRoot");)d++;if(o===_.length||d===X.length)for(o=_.length-1,d=X.length-1;1<=o&&0<=d&&_[o]!==X[d];)d--;for(;1<=o&&0<=d;o--,d--)if(_[o]!==X[d]){if(o!==1||d!==1)do if(o--,d--,0>d||_[o]!==X[d]){var ne=`
|
|
6
|
+
`+_[o].replace(" at new "," at ");return A.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",A.displayName)),ne}while(1<=o&&0<=d);break}}}finally{bA=!1,Error.prepareStackTrace=a}return(a=A?A.displayName||A.name:"")?EA(a):""}function mt(A,n){switch(A.tag){case 26:case 27:case 5:return EA(A.type);case 16:return EA("Lazy");case 13:return A.child!==n&&n!==null?EA("Suspense Fallback"):EA("Suspense");case 19:return EA("SuspenseList");case 0:case 15:return Ut(A.type,!1);case 11:return Ut(A.type.render,!1);case 1:return Ut(A.type,!0);case 31:return EA("Activity");default:return""}}function yn(A){try{var n="",a=null;do n+=mt(A,a),a=A,A=A.return;while(A);return n}catch(o){return`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var Ut=Object.prototype.hasOwnProperty,ut=e.unstable_scheduleCallback,yn=e.unstable_cancelCallback,mr=e.unstable_shouldYield,Vi=e.unstable_requestPaint,XA=e.unstable_now,Gi=e.unstable_getCurrentPriorityLevel,R=e.unstable_ImmediatePriority,K=e.unstable_UserBlockingPriority,le=e.unstable_NormalPriority,de=e.unstable_LowPriority,Ee=e.unstable_IdlePriority,Fe=e.log,wA=e.unstable_setDisableYieldValue,qe=null,Je=null;function mA(A){if(typeof Fe=="function"&&wA(A),Je&&typeof Je.setStrictMode=="function")try{Je.setStrictMode(qe,A)}catch{}}var Ye=Math.clz32?Math.clz32:lA,fA=Math.log,Qe=Math.LN2;function lA(A){return A>>>=0,A===0?32:31-(fA(A)/Qe|0)|0}var xA=256,Gt=262144,En=4194304;function SA(A){var n=A&42;if(n!==0)return n;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function qA(A,n,a){var o=A.pendingLanes;if(o===0)return 0;var d=0,p=A.suspendedLanes,y=A.pingedLanes;A=A.warmLanes;var S=o&134217727;return S!==0?(o=S&~p,o!==0?d=SA(o):(y&=S,y!==0?d=SA(y):a||(a=S&~A,a!==0&&(d=SA(a))))):(S=o&~p,S!==0?d=SA(S):y!==0?d=SA(y):a||(a=o&~A,a!==0&&(d=SA(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function He(A,n){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&n)===0}function zt(A,n){switch(A){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Br(){var A=En;return En<<=1,(En&62914560)===0&&(En=4194304),A}function sn(A){for(var n=[],a=0;31>a;a++)n.push(A);return n}function ln(A,n){A.pendingLanes|=n,n!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function zi(A,n,a,o,d,p){var y=A.pendingLanes;A.pendingLanes=a,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=a,A.entangledLanes&=a,A.errorRecoveryDisabledLanes&=a,A.shellSuspendCounter=0;var S=A.entanglements,_=A.expirationTimes,Y=A.hiddenUpdates;for(a=y&~a;0<a;){var re=31-Ye(a),ae=1<<re;S[re]=0,_[re]=-1;var X=Y[re];if(X!==null)for(Y[re]=null,re=0;re<X.length;re++){var W=X[re];W!==null&&(W.lane&=-536870913)}a&=~ae}o!==0&&GA(A,o,0),p!==0&&d===0&&A.tag!==0&&(A.suspendedLanes|=p&~(y&~n))}function GA(A,n,a){A.pendingLanes|=n,A.suspendedLanes&=~n;var o=31-Ye(n);A.entangledLanes|=n,A.entanglements[o]=A.entanglements[o]|1073741824|a&261930}function dt(A,n){var a=A.entangledLanes|=n;for(A=A.entanglements;a;){var o=31-Ye(a),d=1<<o;d&n|A[o]&n&&(A[o]|=n),a&=~d}}function $r(A,n){var a=n&-n;return a=(a&42)!==0?1:Rs(a),(a&(A.suspendedLanes|n))!==0?0:a}function Rs(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=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:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function Ls(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function Pi(){var A=Z.p;return A!==0?A:(A=window.event,A===void 0?32:jb(A.type))}function CA(A,n){var a=Z.p;try{return Z.p=A,n()}finally{Z.p=a}}var Xe=Math.random().toString(36).slice(2),QA="__reactFiber$"+Xe,At="__reactProps$"+Xe,ei="__reactContainer$"+Xe,kd="__reactEvents$"+Xe,CM="__reactListeners$"+Xe,yM="__reactHandles$"+Xe,ry="__reactResources$"+Xe,Ds="__reactMarker$"+Xe;function jd(A){delete A[QA],delete A[At],delete A[kd],delete A[CM],delete A[yM]}function Yi(A){var n=A[QA];if(n)return n;for(var a=A.parentNode;a;){if(n=a[ei]||a[QA]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(A=xb(A);A!==null;){if(a=A[QA])return a;A=xb(A)}return n}A=a,a=A.parentNode}return null}function Xi(A){if(A=A[QA]||A[ei]){var n=A.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return A}return null}function ks(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A.stateNode;throw Error(i(33))}function qi(A){var n=A[ry];return n||(n=A[ry]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function JA(A){A[Ds]=!0}var iy=new Set,ay={};function Ai(A,n){Ji(A,n),Ji(A+"Capture",n)}function Ji(A,n){for(ay[A]=n,A=0;A<n.length;A++)iy.add(n[A])}var EM=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]*$"),sy={},ly={};function vM(A){return Ut.call(ly,A)?!0:Ut.call(sy,A)?!1:EM.test(A)?ly[A]=!0:(sy[A]=!0,!1)}function Wo(A,n,a){if(vM(n))if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":A.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){A.removeAttribute(n);return}}A.setAttribute(n,""+a)}}function $o(A,n,a){if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(n);return}A.setAttribute(n,""+a)}}function Mn(A,n,a,o){if(o===null)A.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(a);return}A.setAttributeNS(n,a,""+o)}}function Pt(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function oy(A){var n=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function bM(A,n,a){var o=Object.getOwnPropertyDescriptor(A.constructor.prototype,n);if(!A.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(A,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(A,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){A._valueTracker=null,delete A[n]}}}}function Kd(A){if(!A._valueTracker){var n=oy(A)?"checked":"value";A._valueTracker=bM(A,n,""+A[n])}}function cy(A){if(!A)return!1;var n=A._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return A&&(o=oy(A)?A.checked?"true":"false":A.value),A=o,A!==a?(n.setValue(A),!0):!1}function ec(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var xM=/[\n"\\]/g;function Yt(A){return A.replace(xM,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Vd(A,n,a,o,d,p,y,S){A.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?A.type=y:A.removeAttribute("type"),n!=null?y==="number"?(n===0&&A.value===""||A.value!=n)&&(A.value=""+Pt(n)):A.value!==""+Pt(n)&&(A.value=""+Pt(n)):y!=="submit"&&y!=="reset"||A.removeAttribute("value"),n!=null?Gd(A,y,Pt(n)):a!=null?Gd(A,y,Pt(a)):o!=null&&A.removeAttribute("value"),d==null&&p!=null&&(A.defaultChecked=!!p),d!=null&&(A.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?A.name=""+Pt(S):A.removeAttribute("name")}function uy(A,n,a,o,d,p,y,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(A.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Kd(A);return}a=a!=null?""+Pt(a):"",n=n!=null?""+Pt(n):a,S||n===A.value||(A.value=n),A.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,A.checked=S?A.checked:!!o,A.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(A.name=y),Kd(A)}function Gd(A,n,a){n==="number"&&ec(A.ownerDocument)===A||A.defaultValue===""+a||(A.defaultValue=""+a)}function Zi(A,n,a,o){if(A=A.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<A.length;a++)d=n.hasOwnProperty("$"+A[a].value),A[a].selected!==d&&(A[a].selected=d),d&&o&&(A[a].defaultSelected=!0)}else{for(a=""+Pt(a),n=null,d=0;d<A.length;d++){if(A[d].value===a){A[d].selected=!0,o&&(A[d].defaultSelected=!0);return}n!==null||A[d].disabled||(n=A[d])}n!==null&&(n.selected=!0)}}function fy(A,n,a){if(n!=null&&(n=""+Pt(n),n!==A.value&&(A.value=n),a==null)){A.defaultValue!==n&&(A.defaultValue=n);return}A.defaultValue=a!=null?""+Pt(a):""}function dy(A,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(i(92));if(J(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=Pt(n),A.defaultValue=a,o=A.textContent,o===a&&o!==""&&o!==null&&(A.value=o),Kd(A)}function Wi(A,n){if(n){var a=A.firstChild;if(a&&a===A.lastChild&&a.nodeType===3){a.nodeValue=n;return}}A.textContent=n}var SM=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 hy(A,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?A.setProperty(n,""):n==="float"?A.cssFloat="":A[n]="":o?A.setProperty(n,a):typeof a!="number"||a===0||SM.has(n)?n==="float"?A.cssFloat=a:A[n]=(""+a).trim():A[n]=a+"px"}function gy(A,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(A=A.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?A.setProperty(o,""):o==="float"?A.cssFloat="":A[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&a[d]!==o&&hy(A,d,o)}else for(var p in n)n.hasOwnProperty(p)&&hy(A,p,n[p])}function zd(A){if(A.indexOf("-")===-1)return!1;switch(A){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 QM=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"]]),UM=/^[\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 Ac(A){return UM.test(""+A)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":A}function On(){}var Pd=null;function Yd(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}var $i=null,ea=null;function py(A){var n=Xi(A);if(n&&(A=n.stateNode)){var a=A[At]||null;e:switch(A=n.stateNode,n.type){case"input":if(Vd(A,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=A;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Yt(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==A&&o.form===A.form){var d=o[At]||null;if(!d)throw Error(i(90));Vd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===A.form&&cy(o)}break e;case"textarea":fy(A,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Zi(A,!!a.multiple,n,!1)}}}var Xd=!1;function my(A,n,a){if(Xd)return A(n,a);Xd=!0;try{var o=A(n);return o}finally{if(Xd=!1,($i!==null||ea!==null)&&(Kc(),$i&&(n=$i,A=ea,ea=$i=null,py(n),A)))for(n=0;n<A.length;n++)py(A[n])}}function js(A,n){var a=A.stateNode;if(a===null)return null;var o=a[At]||null;if(o===null)return null;a=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(A=A.type,o=!(A==="button"||A==="input"||A==="select"||A==="textarea")),A=!o;break e;default:A=!1}if(A)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qd=!1;if(Rn)try{var Ks={};Object.defineProperty(Ks,"passive",{get:function(){qd=!0}}),window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{qd=!1}var wr=null,Jd=null,tc=null;function By(){if(tc)return tc;var A,n=Jd,a=n.length,o,d="value"in wr?wr.value:wr.textContent,p=d.length;for(A=0;A<a&&n[A]===d[A];A++);var y=a-A;for(o=1;o<=y&&n[a-o]===d[p-o];o++);return tc=d.slice(A,1<o?1-o:void 0)}function nc(A){var n=A.keyCode;return"charCode"in A?(A=A.charCode,A===0&&n===13&&(A=13)):A=n,A===10&&(A=13),32<=A||A===13?A:0}function rc(){return!0}function wy(){return!1}function wt(A){function n(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var S in A)A.hasOwnProperty(S)&&(a=A[S],this[S]=a?a(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?rc:wy,this.isPropagationStopped=wy,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=rc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=rc)},persist:function(){},isPersistent:rc}),n}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(A){return A.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ic=wt(ti),Vs=B({},ti,{view:0,detail:0}),FM=wt(Vs),Zd,Wd,Gs,ac=B({},Vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,button:0,buttons:0,relatedTarget:function(A){return A.relatedTarget===void 0?A.fromElement===A.srcElement?A.toElement:A.fromElement:A.relatedTarget},movementX:function(A){return"movementX"in A?A.movementX:(A!==Gs&&(Gs&&A.type==="mousemove"?(Zd=A.screenX-Gs.screenX,Wd=A.screenY-Gs.screenY):Wd=Zd=0,Gs=A),Zd)},movementY:function(A){return"movementY"in A?A.movementY:Wd}}),Cy=wt(ac),TM=B({},ac,{dataTransfer:0}),NM=wt(TM),IM=B({},Vs,{relatedTarget:0}),$d=wt(IM),_M=B({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),HM=wt(_M),MM=B({},ti,{clipboardData:function(A){return"clipboardData"in A?A.clipboardData:window.clipboardData}}),OM=wt(MM),RM=B({},ti,{data:0}),yy=wt(RM),LM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DM={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"},kM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jM(A){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(A):(A=kM[A])?!!n[A]:!1}function eh(){return jM}var KM=B({},Vs,{key:function(A){if(A.key){var n=LM[A.key]||A.key;if(n!=="Unidentified")return n}return A.type==="keypress"?(A=nc(A),A===13?"Enter":String.fromCharCode(A)):A.type==="keydown"||A.type==="keyup"?DM[A.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(A){return A.type==="keypress"?nc(A):0},keyCode:function(A){return A.type==="keydown"||A.type==="keyup"?A.keyCode:0},which:function(A){return A.type==="keypress"?nc(A):A.type==="keydown"||A.type==="keyup"?A.keyCode:0}}),VM=wt(KM),GM=B({},ac,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ey=wt(GM),zM=B({},Vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),PM=wt(zM),YM=B({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),XM=wt(YM),qM=B({},ac,{deltaX:function(A){return"deltaX"in A?A.deltaX:"wheelDeltaX"in A?-A.wheelDeltaX:0},deltaY:function(A){return"deltaY"in A?A.deltaY:"wheelDeltaY"in A?-A.wheelDeltaY:"wheelDelta"in A?-A.wheelDelta:0},deltaZ:0,deltaMode:0}),JM=wt(qM),ZM=B({},ti,{newState:0,oldState:0}),WM=wt(ZM),$M=[9,13,27,32],Ah=Rn&&"CompositionEvent"in window,zs=null;Rn&&"documentMode"in document&&(zs=document.documentMode);var eO=Rn&&"TextEvent"in window&&!zs,vy=Rn&&(!Ah||zs&&8<zs&&11>=zs),by=" ",xy=!1;function Sy(A,n){switch(A){case"keyup":return $M.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qy(A){return A=A.detail,typeof A=="object"&&"data"in A?A.data:null}var Aa=!1;function AO(A,n){switch(A){case"compositionend":return Qy(n);case"keypress":return n.which!==32?null:(xy=!0,by);case"textInput":return A=n.data,A===by&&xy?null:A;default:return null}}function tO(A,n){if(Aa)return A==="compositionend"||!Ah&&Sy(A,n)?(A=By(),tc=Jd=wr=null,Aa=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return vy&&n.locale!=="ko"?null:n.data;default:return null}}var nO={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 Uy(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n==="input"?!!nO[A.type]:n==="textarea"}function Fy(A,n,a,o){$i?ea?ea.push(o):ea=[o]:$i=o,n=qc(n,"onChange"),0<n.length&&(a=new ic("onChange","change",null,a,o),A.push({event:a,listeners:n}))}var Ps=null,Ys=null;function rO(A){ub(A,0)}function sc(A){var n=ks(A);if(cy(n))return A}function Ty(A,n){if(A==="change")return n}var Ny=!1;if(Rn){var th;if(Rn){var nh="oninput"in document;if(!nh){var Iy=document.createElement("div");Iy.setAttribute("oninput","return;"),nh=typeof Iy.oninput=="function"}th=nh}else th=!1;Ny=th&&(!document.documentMode||9<document.documentMode)}function _y(){Ps&&(Ps.detachEvent("onpropertychange",Hy),Ys=Ps=null)}function Hy(A){if(A.propertyName==="value"&&sc(Ys)){var n=[];Fy(n,Ys,A,Yd(A)),my(rO,n)}}function iO(A,n,a){A==="focusin"?(_y(),Ps=n,Ys=a,Ps.attachEvent("onpropertychange",Hy)):A==="focusout"&&_y()}function aO(A){if(A==="selectionchange"||A==="keyup"||A==="keydown")return sc(Ys)}function sO(A,n){if(A==="click")return sc(n)}function lO(A,n){if(A==="input"||A==="change")return sc(n)}function oO(A,n){return A===n&&(A!==0||1/A===1/n)||A!==A&&n!==n}var Ft=typeof Object.is=="function"?Object.is:oO;function Xs(A,n){if(Ft(A,n))return!0;if(typeof A!="object"||A===null||typeof n!="object"||n===null)return!1;var a=Object.keys(A),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!Ut.call(n,d)||!Ft(A[d],n[d]))return!1}return!0}function My(A){for(;A&&A.firstChild;)A=A.firstChild;return A}function Oy(A,n){var a=My(A);A=0;for(var o;a;){if(a.nodeType===3){if(o=A+a.textContent.length,A<=n&&o>=n)return{node:a,offset:n-A};A=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=My(a)}}function Ry(A,n){return A&&n?A===n?!0:A&&A.nodeType===3?!1:n&&n.nodeType===3?Ry(A,n.parentNode):"contains"in A?A.contains(n):A.compareDocumentPosition?!!(A.compareDocumentPosition(n)&16):!1:!1}function Ly(A){A=A!=null&&A.ownerDocument!=null&&A.ownerDocument.defaultView!=null?A.ownerDocument.defaultView:window;for(var n=ec(A.document);n instanceof A.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)A=n.contentWindow;else break;n=ec(A.document)}return n}function rh(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n&&(n==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||n==="textarea"||A.contentEditable==="true")}var cO=Rn&&"documentMode"in document&&11>=document.documentMode,ta=null,ih=null,qs=null,ah=!1;function Dy(A,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ah||ta==null||ta!==ec(o)||(o=ta,"selectionStart"in o&&rh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),qs&&Xs(qs,o)||(qs=o,o=qc(ih,"onSelect"),0<o.length&&(n=new ic("onSelect","select",null,n,a),A.push({event:n,listeners:o}),n.target=ta)))}function ni(A,n){var a={};return a[A.toLowerCase()]=n.toLowerCase(),a["Webkit"+A]="webkit"+n,a["Moz"+A]="moz"+n,a}var na={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionrun:ni("Transition","TransitionRun"),transitionstart:ni("Transition","TransitionStart"),transitioncancel:ni("Transition","TransitionCancel"),transitionend:ni("Transition","TransitionEnd")},sh={},ky={};Rn&&(ky=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function ri(A){if(sh[A])return sh[A];if(!na[A])return A;var n=na[A],a;for(a in n)if(n.hasOwnProperty(a)&&a in ky)return sh[A]=n[a];return A}var jy=ri("animationend"),Ky=ri("animationiteration"),Vy=ri("animationstart"),uO=ri("transitionrun"),fO=ri("transitionstart"),dO=ri("transitioncancel"),Gy=ri("transitionend"),zy=new Map,lh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lh.push("scrollEnd");function on(A,n){zy.set(A,n),Ai(n,[A])}var lc=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}},Xt=[],ra=0,oh=0;function oc(){for(var A=ra,n=oh=ra=0;n<A;){var a=Xt[n];Xt[n++]=null;var o=Xt[n];Xt[n++]=null;var d=Xt[n];Xt[n++]=null;var p=Xt[n];if(Xt[n++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&Py(a,d,p)}}function cc(A,n,a,o){Xt[ra++]=A,Xt[ra++]=n,Xt[ra++]=a,Xt[ra++]=o,oh|=o,A.lanes|=o,A=A.alternate,A!==null&&(A.lanes|=o)}function ch(A,n,a,o){return cc(A,n,a,o),uc(A)}function ii(A,n){return cc(A,null,null,n),uc(A)}function Py(A,n,a){A.lanes|=a;var o=A.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=A.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(A=p.stateNode,A===null||A._visibility&1||(d=!0)),A=p,p=p.return;return A.tag===3?(p=A.stateNode,d&&n!==null&&(d=31-Ye(a),A=p.hiddenUpdates,o=A[d],o===null?A[d]=[n]:o.push(n),n.lane=a|536870912),p):null}function uc(A){if(50<ml)throw ml=0,wg=null,Error(i(185));for(var n=A.return;n!==null;)A=n,n=A.return;return A.tag===3?A.stateNode:null}var ia={};function hO(A,n,a,o){this.tag=A,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(A,n,a,o){return new hO(A,n,a,o)}function uh(A){return A=A.prototype,!(!A||!A.isReactComponent)}function Ln(A,n){var a=A.alternate;return a===null?(a=Tt(A.tag,n,A.key,A.mode),a.elementType=A.elementType,a.type=A.type,a.stateNode=A.stateNode,a.alternate=A,A.alternate=a):(a.pendingProps=n,a.type=A.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=A.flags&65011712,a.childLanes=A.childLanes,a.lanes=A.lanes,a.child=A.child,a.memoizedProps=A.memoizedProps,a.memoizedState=A.memoizedState,a.updateQueue=A.updateQueue,n=A.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=A.sibling,a.index=A.index,a.ref=A.ref,a.refCleanup=A.refCleanup,a}function Yy(A,n){A.flags&=65011714;var a=A.alternate;return a===null?(A.childLanes=0,A.lanes=n,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=a.childLanes,A.lanes=a.lanes,A.child=a.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=a.memoizedProps,A.memoizedState=a.memoizedState,A.updateQueue=a.updateQueue,A.type=a.type,n=a.dependencies,A.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),A}function fc(A,n,a,o,d,p){var y=0;if(o=A,typeof A=="function")uh(A)&&(y=1);else if(typeof A=="string")y=wR(A,a,ne.current)?26:A==="html"||A==="head"||A==="body"?27:5;else e:switch(A){case O:return A=Tt(31,a,n,d),A.elementType=O,A.lanes=p,A;case b:return ai(a.children,d,p,n);case U:y=8,d|=24;break;case Q:return A=Tt(12,a,n,d|2),A.elementType=Q,A.lanes=p,A;case j:return A=Tt(13,a,n,d),A.elementType=j,A.lanes=p,A;case F:return A=Tt(19,a,n,d),A.elementType=F,A.lanes=p,A;default:if(typeof A=="object"&&A!==null)switch(A.$$typeof){case M:y=10;break e;case I:y=9;break e;case z:y=11;break e;case H:y=14;break e;case k:y=16,o=null;break e}y=29,a=Error(i(130,A===null?"null":typeof A,"")),o=null}return n=Tt(y,a,n,d),n.elementType=A,n.type=o,n.lanes=p,n}function ai(A,n,a,o){return A=Tt(7,A,o,n),A.lanes=a,A}function fh(A,n,a){return A=Tt(6,A,null,n),A.lanes=a,A}function Xy(A){var n=Tt(18,null,null,0);return n.stateNode=A,n}function dh(A,n,a){return n=Tt(4,A.children!==null?A.children:[],A.key,n),n.lanes=a,n.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},n}var qy=new WeakMap;function qt(A,n){if(typeof A=="object"&&A!==null){var a=qy.get(A);return a!==void 0?a:(n={value:A,source:n,stack:Cn(n)},qy.set(A,n),n)}return{value:A,source:n,stack:Cn(n)}}var aa=[],sa=0,dc=null,Js=0,Jt=[],Zt=0,Cr=null,vn=1,bn="";function Dn(A,n){aa[sa++]=Js,aa[sa++]=dc,dc=A,Js=n}function Jy(A,n,a){Jt[Zt++]=vn,Jt[Zt++]=bn,Jt[Zt++]=Cr,Cr=A;var o=vn;A=bn;var d=32-Ye(o)-1;o&=~(1<<d),a+=1;var p=32-Ye(n)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,vn=1<<32-Ye(n)+d|a<<d|o,bn=p+A}else vn=1<<p|a<<d|o,bn=A}function hh(A){A.return!==null&&(Dn(A,1),Jy(A,1,0))}function gh(A){for(;A===dc;)dc=aa[--sa],aa[sa]=null,Js=aa[--sa],aa[sa]=null;for(;A===Cr;)Cr=Jt[--Zt],Jt[Zt]=null,bn=Jt[--Zt],Jt[Zt]=null,vn=Jt[--Zt],Jt[Zt]=null}function Zy(A,n){Jt[Zt++]=vn,Jt[Zt++]=bn,Jt[Zt++]=Cr,vn=n.id,bn=n.overflow,Cr=A}var tt=null,yA=null,Ge=!1,yr=null,Wt=!1,ph=Error(i(519));function Er(A){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zs(qt(n,A)),ph}function Wy(A){var n=A.stateNode,a=A.type,o=A.memoizedProps;switch(n[QA]=A,n[At]=o,a){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(a=0;a<wl.length;a++)De(wl[a],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),uy(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),dy(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||gb(n.textContent,a)?(o.popover!=null&&(De("beforetoggle",n),De("toggle",n)),o.onScroll!=null&&De("scroll",n),o.onScrollEnd!=null&&De("scrollend",n),o.onClick!=null&&(n.onclick=On),n=!0):n=!1,n||Er(A,!0)}function $y(A){for(tt=A.return;tt;)switch(tt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:tt=tt.return}}function la(A){if(A!==tt)return!1;if(!Ge)return $y(A),Ge=!0,!1;var n=A.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=A.type,a=!(a!=="form"&&a!=="button")||Hg(A.type,A.memoizedProps)),a=!a),a&&yA&&Er(A),$y(A),n===13){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));yA=bb(A)}else if(n===31){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));yA=bb(A)}else n===27?(n=yA,Or(A.type)?(A=Dg,Dg=null,yA=A):yA=n):yA=tt?en(A.stateNode.nextSibling):null;return!0}function si(){yA=tt=null,Ge=!1}function mh(){var A=yr;return A!==null&&(vt===null?vt=A:vt.push.apply(vt,A),yr=null),A}function Zs(A){yr===null?yr=[A]:yr.push(A)}var Bh=N(null),li=null,kn=null;function vr(A,n,a){E(Bh,n._currentValue),n._currentValue=a}function jn(A){A._currentValue=Bh.current,q(Bh)}function wh(A,n,a){for(;A!==null;){var o=A.alternate;if((A.childLanes&n)!==n?(A.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),A===a)break;A=A.return}}function Ch(A,n,a,o){var d=A.child;for(d!==null&&(d.return=A);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=d;for(var _=0;_<n.length;_++)if(S.context===n[_]){p.lanes|=a,S=p.alternate,S!==null&&(S.lanes|=a),wh(p.return,a,A),o||(y=null);break e}p=S.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),wh(y,a,A),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===A){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function oa(A,n,a,o){A=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var S=d.type;Ft(d.pendingProps.value,y.value)||(A!==null?A.push(S):A=[S])}}else if(d===pe.current){if(y=d.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(A!==null?A.push(bl):A=[bl])}d=d.return}A!==null&&Ch(n,A,a,o),n.flags|=262144}function hc(A){for(A=A.firstContext;A!==null;){if(!Ft(A.context._currentValue,A.memoizedValue))return!0;A=A.next}return!1}function oi(A){li=A,kn=null,A=A.dependencies,A!==null&&(A.firstContext=null)}function nt(A){return eE(li,A)}function gc(A,n){return li===null&&oi(A),eE(A,n)}function eE(A,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},kn===null){if(A===null)throw Error(i(308));kn=n,A.dependencies={lanes:0,firstContext:n},A.flags|=524288}else kn=kn.next=n;return a}var gO=typeof AbortController<"u"?AbortController:function(){var A=[],n=this.signal={aborted:!1,addEventListener:function(a,o){A.push(o)}};this.abort=function(){n.aborted=!0,A.forEach(function(a){return a()})}},pO=e.unstable_scheduleCallback,mO=e.unstable_NormalPriority,RA={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yh(){return{controller:new gO,data:new Map,refCount:0}}function Ws(A){A.refCount--,A.refCount===0&&pO(mO,function(){A.controller.abort()})}var $s=null,Eh=0,ca=0,ua=null;function BO(A,n){if($s===null){var a=$s=[];Eh=0,ca=xg(),ua={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Eh++,n.then(AE,AE),n}function AE(){if(--Eh===0&&$s!==null){ua!==null&&(ua.status="fulfilled");var A=$s;$s=null,ca=0,ua=null;for(var n=0;n<A.length;n++)(0,A[n])()}}function wO(A,n){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return A.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var tE=L.S;L.S=function(A,n){Dv=XA(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&BO(A,n),tE!==null&&tE(A,n)};var ci=N(null);function vh(){var A=ci.current;return A!==null?A:dA.pooledCache}function pc(A,n){n===null?E(ci,ci.current):E(ci,n.pool)}function nE(){var A=vh();return A===null?null:{parent:RA._currentValue,pool:A}}var fa=Error(i(460)),bh=Error(i(474)),mc=Error(i(542)),Bc={then:function(){}};function rE(A){return A=A.status,A==="fulfilled"||A==="rejected"}function iE(A,n,a){switch(a=A[a],a===void 0?A.push(n):a!==n&&(n.then(On,On),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,sE(A),A;default:if(typeof n.status=="string")n.then(On,On);else{if(A=dA,A!==null&&100<A.shellSuspendCounter)throw Error(i(482));A=n,A.status="pending",A.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,sE(A),A}throw fi=n,fa}}function ui(A){try{var n=A._init;return n(A._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fi=a,fa):a}}var fi=null;function aE(){if(fi===null)throw Error(i(459));var A=fi;return fi=null,A}function sE(A){if(A===fa||A===mc)throw Error(i(483))}var da=null,el=0;function wc(A){var n=el;return el+=1,da===null&&(da=[]),iE(da,A,n)}function Al(A,n){n=n.props.ref,A.ref=n!==void 0?n:null}function Cc(A,n){throw n.$$typeof===C?Error(i(525)):(A=Object.prototype.toString.call(n),Error(i(31,A==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":A)))}function lE(A){function n(G,D){if(A){var P=G.deletions;P===null?(G.deletions=[D],G.flags|=16):P.push(D)}}function a(G,D){if(!A)return null;for(;D!==null;)n(G,D),D=D.sibling;return null}function o(G){for(var D=new Map;G!==null;)G.key!==null?D.set(G.key,G):D.set(G.index,G),G=G.sibling;return D}function d(G,D){return G=Ln(G,D),G.index=0,G.sibling=null,G}function p(G,D,P){return G.index=P,A?(P=G.alternate,P!==null?(P=P.index,P<D?(G.flags|=67108866,D):P):(G.flags|=67108866,D)):(G.flags|=1048576,D)}function y(G){return A&&G.alternate===null&&(G.flags|=67108866),G}function S(G,D,P,ie){return D===null||D.tag!==6?(D=fh(P,G.mode,ie),D.return=G,D):(D=d(D,P),D.return=G,D)}function _(G,D,P,ie){var be=P.type;return be===b?re(G,D,P.props.children,ie,P.key):D!==null&&(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&ui(be)===D.type)?(D=d(D,P.props),Al(D,P),D.return=G,D):(D=fc(P.type,P.key,P.props,null,G.mode,ie),Al(D,P),D.return=G,D)}function Y(G,D,P,ie){return D===null||D.tag!==4||D.stateNode.containerInfo!==P.containerInfo||D.stateNode.implementation!==P.implementation?(D=dh(P,G.mode,ie),D.return=G,D):(D=d(D,P.children||[]),D.return=G,D)}function re(G,D,P,ie,be){return D===null||D.tag!==7?(D=ai(P,G.mode,ie,be),D.return=G,D):(D=d(D,P),D.return=G,D)}function ae(G,D,P){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=fh(""+D,G.mode,P),D.return=G,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return P=fc(D.type,D.key,D.props,null,G.mode,P),Al(P,D),P.return=G,P;case v:return D=dh(D,G.mode,P),D.return=G,D;case k:return D=ui(D),ae(G,D,P)}if(J(D)||V(D))return D=ai(D,G.mode,P,null),D.return=G,D;if(typeof D.then=="function")return ae(G,wc(D),P);if(D.$$typeof===M)return ae(G,gc(G,D),P);Cc(G,D)}return null}function X(G,D,P,ie){var be=D!==null?D.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return be!==null?null:S(G,D,""+P,ie);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case w:return P.key===be?_(G,D,P,ie):null;case v:return P.key===be?Y(G,D,P,ie):null;case k:return P=ui(P),X(G,D,P,ie)}if(J(P)||V(P))return be!==null?null:re(G,D,P,ie,null);if(typeof P.then=="function")return X(G,D,wc(P),ie);if(P.$$typeof===M)return X(G,D,gc(G,P),ie);Cc(G,P)}return null}function W(G,D,P,ie,be){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return G=G.get(P)||null,S(D,G,""+ie,be);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return G=G.get(ie.key===null?P:ie.key)||null,_(D,G,ie,be);case v:return G=G.get(ie.key===null?P:ie.key)||null,Y(D,G,ie,be);case k:return ie=ui(ie),W(G,D,P,ie,be)}if(J(ie)||V(ie))return G=G.get(P)||null,re(D,G,ie,be,null);if(typeof ie.then=="function")return W(G,D,P,wc(ie),be);if(ie.$$typeof===M)return W(G,D,P,gc(D,ie),be);Cc(D,ie)}return null}function we(G,D,P,ie){for(var be=null,Ze=null,ve=D,Me=D=0,Ke=null;ve!==null&&Me<P.length;Me++){ve.index>Me?(Ke=ve,ve=null):Ke=ve.sibling;var We=X(G,ve,P[Me],ie);if(We===null){ve===null&&(ve=Ke);break}A&&ve&&We.alternate===null&&n(G,ve),D=p(We,D,Me),Ze===null?be=We:Ze.sibling=We,Ze=We,ve=Ke}if(Me===P.length)return a(G,ve),Ge&&Dn(G,Me),be;if(ve===null){for(;Me<P.length;Me++)ve=ae(G,P[Me],ie),ve!==null&&(D=p(ve,D,Me),Ze===null?be=ve:Ze.sibling=ve,Ze=ve);return Ge&&Dn(G,Me),be}for(ve=o(ve);Me<P.length;Me++)Ke=W(ve,G,Me,P[Me],ie),Ke!==null&&(A&&Ke.alternate!==null&&ve.delete(Ke.key===null?Me:Ke.key),D=p(Ke,D,Me),Ze===null?be=Ke:Ze.sibling=Ke,Ze=Ke);return A&&ve.forEach(function(jr){return n(G,jr)}),Ge&&Dn(G,Me),be}function Se(G,D,P,ie){if(P==null)throw Error(i(151));for(var be=null,Ze=null,ve=D,Me=D=0,Ke=null,We=P.next();ve!==null&&!We.done;Me++,We=P.next()){ve.index>Me?(Ke=ve,ve=null):Ke=ve.sibling;var jr=X(G,ve,We.value,ie);if(jr===null){ve===null&&(ve=Ke);break}A&&ve&&jr.alternate===null&&n(G,ve),D=p(jr,D,Me),Ze===null?be=jr:Ze.sibling=jr,Ze=jr,ve=Ke}if(We.done)return a(G,ve),Ge&&Dn(G,Me),be;if(ve===null){for(;!We.done;Me++,We=P.next())We=ae(G,We.value,ie),We!==null&&(D=p(We,D,Me),Ze===null?be=We:Ze.sibling=We,Ze=We);return Ge&&Dn(G,Me),be}for(ve=o(ve);!We.done;Me++,We=P.next())We=W(ve,G,Me,We.value,ie),We!==null&&(A&&We.alternate!==null&&ve.delete(We.key===null?Me:We.key),D=p(We,D,Me),Ze===null?be=We:Ze.sibling=We,Ze=We);return A&&ve.forEach(function(TR){return n(G,TR)}),Ge&&Dn(G,Me),be}function uA(G,D,P,ie){if(typeof P=="object"&&P!==null&&P.type===b&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case w:e:{for(var be=P.key;D!==null;){if(D.key===be){if(be=P.type,be===b){if(D.tag===7){a(G,D.sibling),ie=d(D,P.props.children),ie.return=G,G=ie;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===k&&ui(be)===D.type){a(G,D.sibling),ie=d(D,P.props),Al(ie,P),ie.return=G,G=ie;break e}a(G,D);break}else n(G,D);D=D.sibling}P.type===b?(ie=ai(P.props.children,G.mode,ie,P.key),ie.return=G,G=ie):(ie=fc(P.type,P.key,P.props,null,G.mode,ie),Al(ie,P),ie.return=G,G=ie)}return y(G);case v:e:{for(be=P.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===P.containerInfo&&D.stateNode.implementation===P.implementation){a(G,D.sibling),ie=d(D,P.children||[]),ie.return=G,G=ie;break e}else{a(G,D);break}else n(G,D);D=D.sibling}ie=dh(P,G.mode,ie),ie.return=G,G=ie}return y(G);case k:return P=ui(P),uA(G,D,P,ie)}if(J(P))return we(G,D,P,ie);if(V(P)){if(be=V(P),typeof be!="function")throw Error(i(150));return P=be.call(P),Se(G,D,P,ie)}if(typeof P.then=="function")return uA(G,D,wc(P),ie);if(P.$$typeof===M)return uA(G,D,gc(G,P),ie);Cc(G,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,D!==null&&D.tag===6?(a(G,D.sibling),ie=d(D,P),ie.return=G,G=ie):(a(G,D),ie=fh(P,G.mode,ie),ie.return=G,G=ie),y(G)):a(G,D)}return function(G,D,P,ie){try{el=0;var be=uA(G,D,P,ie);return da=null,be}catch(ve){if(ve===fa||ve===mc)throw ve;var Ze=Tt(29,ve,null,G.mode);return Ze.lanes=ie,Ze.return=G,Ze}finally{}}}var di=lE(!0),oE=lE(!1),br=!1;function xh(A){A.updateQueue={baseState:A.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sh(A,n){A=A.updateQueue,n.updateQueue===A&&(n.updateQueue={baseState:A.baseState,firstBaseUpdate:A.firstBaseUpdate,lastBaseUpdate:A.lastBaseUpdate,shared:A.shared,callbacks:null})}function xr(A){return{lane:A,tag:0,payload:null,callback:null,next:null}}function Sr(A,n,a){var o=A.updateQueue;if(o===null)return null;if(o=o.shared,(AA&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=uc(A),Py(A,null,a),n}return cc(A,o,n,a),uc(A)}function tl(A,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,dt(A,a)}}function Qh(A,n){var a=A.updateQueue,o=A.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},A.updateQueue=a;return}A=a.lastBaseUpdate,A===null?a.firstBaseUpdate=n:A.next=n,a.lastBaseUpdate=n}var Uh=!1;function nl(){if(Uh){var A=ua;if(A!==null)throw A}}function rl(A,n,a,o){Uh=!1;var d=A.updateQueue;br=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var _=S,Y=_.next;_.next=null,y===null?p=Y:y.next=Y,y=_;var re=A.alternate;re!==null&&(re=re.updateQueue,S=re.lastBaseUpdate,S!==y&&(S===null?re.firstBaseUpdate=Y:S.next=Y,re.lastBaseUpdate=_))}if(p!==null){var ae=d.baseState;y=0,re=Y=_=null,S=p;do{var X=S.lane&-536870913,W=X!==S.lane;if(W?(je&X)===X:(o&X)===X){X!==0&&X===ca&&(Uh=!0),re!==null&&(re=re.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var we=A,Se=S;X=n;var uA=a;switch(Se.tag){case 1:if(we=Se.payload,typeof we=="function"){ae=we.call(uA,ae,X);break e}ae=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Se.payload,X=typeof we=="function"?we.call(uA,ae,X):we,X==null)break e;ae=B({},ae,X);break e;case 2:br=!0}}X=S.callback,X!==null&&(A.flags|=64,W&&(A.flags|=8192),W=d.callbacks,W===null?d.callbacks=[X]:W.push(X))}else W={lane:X,tag:S.tag,payload:S.payload,callback:S.callback,next:null},re===null?(Y=re=W,_=ae):re=re.next=W,y|=X;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;W=S,S=W.next,W.next=null,d.lastBaseUpdate=W,d.shared.pending=null}}while(!0);re===null&&(_=ae),d.baseState=_,d.firstBaseUpdate=Y,d.lastBaseUpdate=re,p===null&&(d.shared.lanes=0),Nr|=y,A.lanes=y,A.memoizedState=ae}}function cE(A,n){if(typeof A!="function")throw Error(i(191,A));A.call(n)}function uE(A,n){var a=A.callbacks;if(a!==null)for(A.callbacks=null,A=0;A<a.length;A++)cE(a[A],n)}var ha=N(null),yc=N(0);function fE(A,n){A=Jn,E(yc,A),E(ha,n),Jn=A|n.baseLanes}function Fh(){E(yc,Jn),E(ha,ha.current)}function Th(){Jn=yc.current,q(ha),q(yc)}var Nt=N(null),$t=null;function Qr(A){var n=A.alternate;E(IA,IA.current&1),E(Nt,A),$t===null&&(n===null||ha.current!==null||n.memoizedState!==null)&&($t=A)}function Nh(A){E(IA,IA.current),E(Nt,A),$t===null&&($t=A)}function dE(A){A.tag===22?(E(IA,IA.current),E(Nt,A),$t===null&&($t=A)):Ur()}function Ur(){E(IA,IA.current),E(Nt,Nt.current)}function It(A){q(Nt),$t===A&&($t=null),q(IA)}var IA=N(0);function Ec(A){for(var n=A;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rg(a)||Lg(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Kn=0,Ne=null,oA=null,LA=null,vc=!1,ga=!1,hi=!1,bc=0,il=0,pa=null,CO=0;function UA(){throw Error(i(321))}function Ih(A,n){if(n===null)return!1;for(var a=0;a<n.length&&a<A.length;a++)if(!Ft(A[a],n[a]))return!1;return!0}function _h(A,n,a,o,d,p){return Kn=p,Ne=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,L.H=A===null||A.memoizedState===null?JE:Xh,hi=!1,p=a(o,d),hi=!1,ga&&(p=gE(n,a,o,d)),hE(A),p}function hE(A){L.H=ll;var n=oA!==null&&oA.next!==null;if(Kn=0,LA=oA=Ne=null,vc=!1,il=0,pa=null,n)throw Error(i(300));A===null||DA||(A=A.dependencies,A!==null&&hc(A)&&(DA=!0))}function gE(A,n,a,o){Ne=A;var d=0;do{if(ga&&(pa=null),il=0,ga=!1,25<=d)throw Error(i(301));if(d+=1,LA=oA=null,A.updateQueue!=null){var p=A.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}L.H=ZE,p=n(a,o)}while(ga);return p}function yO(){var A=L.H,n=A.useState()[0];return n=typeof n.then=="function"?al(n):n,A=A.useState()[0],(oA!==null?oA.memoizedState:null)!==A&&(Ne.flags|=1024),n}function Hh(){var A=bc!==0;return bc=0,A}function Mh(A,n,a){n.updateQueue=A.updateQueue,n.flags&=-2053,A.lanes&=~a}function Oh(A){if(vc){for(A=A.memoizedState;A!==null;){var n=A.queue;n!==null&&(n.pending=null),A=A.next}vc=!1}Kn=0,LA=oA=Ne=null,ga=!1,il=bc=0,pa=null}function ht(){var A={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return LA===null?Ne.memoizedState=LA=A:LA=LA.next=A,LA}function _A(){if(oA===null){var A=Ne.alternate;A=A!==null?A.memoizedState:null}else A=oA.next;var n=LA===null?Ne.memoizedState:LA.next;if(n!==null)LA=n,oA=A;else{if(A===null)throw Ne.alternate===null?Error(i(467)):Error(i(310));oA=A,A={memoizedState:oA.memoizedState,baseState:oA.baseState,baseQueue:oA.baseQueue,queue:oA.queue,next:null},LA===null?Ne.memoizedState=LA=A:LA=LA.next=A}return LA}function xc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function al(A){var n=il;return il+=1,pa===null&&(pa=[]),A=iE(pa,A,n),n=Ne,(LA===null?n.memoizedState:LA.next)===null&&(n=n.alternate,L.H=n===null||n.memoizedState===null?JE:Xh),A}function Sc(A){if(A!==null&&typeof A=="object"){if(typeof A.then=="function")return al(A);if(A.$$typeof===M)return nt(A)}throw Error(i(438,String(A)))}function Rh(A){var n=null,a=Ne.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=xc(),Ne.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(A),o=0;o<A;o++)a[o]=$;return n.index++,a}function Vn(A,n){return typeof n=="function"?n(A):n}function Qc(A){var n=_A();return Lh(n,oA,A)}function Lh(A,n,a){var o=A.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var d=A.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,o.pending=null}if(p=A.baseState,d===null)A.memoizedState=p;else{n=d.next;var S=y=null,_=null,Y=n,re=!1;do{var ae=Y.lane&-536870913;if(ae!==Y.lane?(je&ae)===ae:(Kn&ae)===ae){var X=Y.revertLane;if(X===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ae===ca&&(re=!0);else if((Kn&X)===X){Y=Y.next,X===ca&&(re=!0);continue}else ae={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},_===null?(S=_=ae,y=p):_=_.next=ae,Ne.lanes|=X,Nr|=X;ae=Y.action,hi&&a(p,ae),p=Y.hasEagerState?Y.eagerState:a(p,ae)}else X={lane:ae,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},_===null?(S=_=X,y=p):_=_.next=X,Ne.lanes|=ae,Nr|=ae;Y=Y.next}while(Y!==null&&Y!==n);if(_===null?y=p:_.next=S,!Ft(p,A.memoizedState)&&(DA=!0,re&&(a=ua,a!==null)))throw a;A.memoizedState=p,A.baseState=y,A.baseQueue=_,o.lastRenderedState=p}return d===null&&(o.lanes=0),[A.memoizedState,o.dispatch]}function Dh(A){var n=_A(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=A;var o=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=A(p,y.action),y=y.next;while(y!==d);Ft(p,n.memoizedState)||(DA=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,o]}function pE(A,n,a){var o=Ne,d=_A(),p=Ge;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var y=!Ft((oA||d).memoizedState,a);if(y&&(d.memoizedState=a,DA=!0),d=d.queue,Kh(wE.bind(null,o,d,A),[A]),d.getSnapshot!==n||y||LA!==null&&LA.memoizedState.tag&1){if(o.flags|=2048,ma(9,{destroy:void 0},BE.bind(null,o,d,a,n),null),dA===null)throw Error(i(349));p||(Kn&127)!==0||mE(o,n,a)}return a}function mE(A,n,a){A.flags|=16384,A={getSnapshot:n,value:a},n=Ne.updateQueue,n===null?(n=xc(),Ne.updateQueue=n,n.stores=[A]):(a=n.stores,a===null?n.stores=[A]:a.push(A))}function BE(A,n,a,o){n.value=a,n.getSnapshot=o,CE(n)&&yE(A)}function wE(A,n,a){return a(function(){CE(n)&&yE(A)})}function CE(A){var n=A.getSnapshot;A=A.value;try{var a=n();return!Ft(A,a)}catch{return!0}}function yE(A){var n=ii(A,2);n!==null&&bt(n,A,2)}function kh(A){var n=ht();if(typeof A=="function"){var a=A;if(A=a(),hi){mA(!0);try{a()}finally{mA(!1)}}}return n.memoizedState=n.baseState=A,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:A},n}function EE(A,n,a,o){return A.baseState=a,Lh(A,oA,typeof o=="function"?o:Vn)}function EO(A,n,a,o,d){if(Tc(A))throw Error(i(485));if(A=n.action,A!==null){var p={payload:d,action:A,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};L.T!==null?a(!0):p.isTransition=!1,o(p),a=n.pending,a===null?(p.next=n.pending=p,vE(n,p)):(p.next=a.next,n.pending=a.next=p)}}function vE(A,n){var a=n.action,o=n.payload,d=A.state;if(n.isTransition){var p=L.T,y={};L.T=y;try{var S=a(d,o),_=L.S;_!==null&&_(y,S),bE(A,n,S)}catch(Y){jh(A,n,Y)}finally{p!==null&&y.types!==null&&(p.types=y.types),L.T=p}}else try{p=a(d,o),bE(A,n,p)}catch(Y){jh(A,n,Y)}}function bE(A,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){xE(A,n,o)},function(o){return jh(A,n,o)}):xE(A,n,a)}function xE(A,n,a){n.status="fulfilled",n.value=a,SE(n),A.state=a,n=A.pending,n!==null&&(a=n.next,a===n?A.pending=null:(a=a.next,n.next=a,vE(A,a)))}function jh(A,n,a){var o=A.pending;if(A.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,SE(n),n=n.next;while(n!==o)}A.action=null}function SE(A){A=A.listeners;for(var n=0;n<A.length;n++)(0,A[n])()}function QE(A,n){return n}function UE(A,n){if(Ge){var a=dA.formState;if(a!==null){e:{var o=Ne;if(Ge){if(yA){A:{for(var d=yA,p=Wt;d.nodeType!==8;){if(!p){d=null;break A}if(d=en(d.nextSibling),d===null){d=null;break A}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){yA=en(d.nextSibling),o=d.data==="F!";break e}}Er(o)}o=!1}o&&(n=a[0])}}return a=ht(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QE,lastRenderedState:n},a.queue=o,a=YE.bind(null,Ne,o),o.dispatch=a,o=kh(!1),p=Yh.bind(null,Ne,!1,o.queue),o=ht(),d={state:n,dispatch:null,action:A,pending:null},o.queue=d,a=EO.bind(null,Ne,d,p,a),d.dispatch=a,o.memoizedState=A,[n,a,!1]}function FE(A){var n=_A();return TE(n,oA,A)}function TE(A,n,a){if(n=Lh(A,n,QE)[0],A=Qc(Vn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=al(n)}catch(y){throw y===fa?mc:y}else o=n;n=_A();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(Ne.flags|=2048,ma(9,{destroy:void 0},vO.bind(null,d,a),null)),[o,p,A]}function vO(A,n){A.action=n}function NE(A){var n=_A(),a=oA;if(a!==null)return TE(n,a,A);_A(),n=n.memoizedState,a=_A();var o=a.queue.dispatch;return a.memoizedState=A,[n,o,!1]}function ma(A,n,a,o){return A={tag:A,create:a,deps:o,inst:n,next:null},n=Ne.updateQueue,n===null&&(n=xc(),Ne.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=A.next=A:(o=a.next,a.next=A,A.next=o,n.lastEffect=A),A}function IE(){return _A().memoizedState}function Uc(A,n,a,o){var d=ht();Ne.flags|=A,d.memoizedState=ma(1|n,{destroy:void 0},a,o===void 0?null:o)}function Fc(A,n,a,o){var d=_A();o=o===void 0?null:o;var p=d.memoizedState.inst;oA!==null&&o!==null&&Ih(o,oA.memoizedState.deps)?d.memoizedState=ma(n,p,a,o):(Ne.flags|=A,d.memoizedState=ma(1|n,p,a,o))}function _E(A,n){Uc(8390656,8,A,n)}function Kh(A,n){Fc(2048,8,A,n)}function bO(A){Ne.flags|=4;var n=Ne.updateQueue;if(n===null)n=xc(),Ne.updateQueue=n,n.events=[A];else{var a=n.events;a===null?n.events=[A]:a.push(A)}}function HE(A){var n=_A().memoizedState;return bO({ref:n,nextImpl:A}),function(){if((AA&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function ME(A,n){return Fc(4,2,A,n)}function OE(A,n){return Fc(4,4,A,n)}function RE(A,n){if(typeof n=="function"){A=A();var a=n(A);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return A=A(),n.current=A,function(){n.current=null}}function LE(A,n,a){a=a!=null?a.concat([A]):null,Fc(4,4,RE.bind(null,n,A),a)}function Vh(){}function DE(A,n){var a=_A();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&Ih(n,o[1])?o[0]:(a.memoizedState=[A,n],A)}function kE(A,n){var a=_A();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&Ih(n,o[1]))return o[0];if(o=A(),hi){mA(!0);try{A()}finally{mA(!1)}}return a.memoizedState=[o,n],o}function Gh(A,n,a){return a===void 0||(Kn&1073741824)!==0&&(je&261930)===0?A.memoizedState=n:(A.memoizedState=a,A=jv(),Ne.lanes|=A,Nr|=A,a)}function jE(A,n,a,o){return Ft(a,n)?a:ha.current!==null?(A=Gh(A,a,o),Ft(A,n)||(DA=!0),A):(Kn&42)===0||(Kn&1073741824)!==0&&(je&261930)===0?(DA=!0,A.memoizedState=a):(A=jv(),Ne.lanes|=A,Nr|=A,n)}function KE(A,n,a,o,d){var p=Z.p;Z.p=p!==0&&8>p?p:8;var y=L.T,S={};L.T=S,Yh(A,!1,n,a);try{var _=d(),Y=L.S;if(Y!==null&&Y(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var re=wO(_,o);sl(A,n,re,Mt())}else sl(A,n,o,Mt())}catch(ae){sl(A,n,{then:function(){},status:"rejected",reason:ae},Mt())}finally{Z.p=p,y!==null&&S.types!==null&&(y.types=S.types),L.T=y}}function xO(){}function zh(A,n,a,o){if(A.tag!==5)throw Error(i(476));var d=VE(A).queue;KE(A,d,n,te,a===null?xO:function(){return GE(A),a(o)})}function VE(A){var n=A.memoizedState;if(n!==null)return n;n={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:te},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:a},next:null},A.memoizedState=n,A=A.alternate,A!==null&&(A.memoizedState=n),n}function GE(A){var n=VE(A);n.next===null&&(n=A.alternate.memoizedState),sl(A,n.next.queue,{},Mt())}function Ph(){return nt(bl)}function zE(){return _A().memoizedState}function PE(){return _A().memoizedState}function SO(A){for(var n=A.return;n!==null;){switch(n.tag){case 24:case 3:var a=Mt();A=xr(a);var o=Sr(n,A,a);o!==null&&(bt(o,n,a),tl(o,n,a)),n={cache:yh()},A.payload=n;return}n=n.return}}function QO(A,n,a){var o=Mt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Tc(A)?XE(n,a):(a=ch(A,n,a,o),a!==null&&(bt(a,A,o),qE(a,n,o)))}function YE(A,n,a){var o=Mt();sl(A,n,a,o)}function sl(A,n,a,o){var d={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Tc(A))XE(n,d);else{var p=A.alternate;if(A.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,S=p(y,a);if(d.hasEagerState=!0,d.eagerState=S,Ft(S,y))return cc(A,n,d,0),dA===null&&oc(),!1}catch{}finally{}if(a=ch(A,n,d,o),a!==null)return bt(a,A,o),qE(a,n,o),!0}return!1}function Yh(A,n,a,o){if(o={lane:2,revertLane:xg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Tc(A)){if(n)throw Error(i(479))}else n=ch(A,a,o,2),n!==null&&bt(n,A,2)}function Tc(A){var n=A.alternate;return A===Ne||n!==null&&n===Ne}function XE(A,n){ga=vc=!0;var a=A.pending;a===null?n.next=n:(n.next=a.next,a.next=n),A.pending=n}function qE(A,n,a){if((a&4194048)!==0){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,dt(A,a)}}var ll={readContext:nt,use:Sc,useCallback:UA,useContext:UA,useEffect:UA,useImperativeHandle:UA,useLayoutEffect:UA,useInsertionEffect:UA,useMemo:UA,useReducer:UA,useRef:UA,useState:UA,useDebugValue:UA,useDeferredValue:UA,useTransition:UA,useSyncExternalStore:UA,useId:UA,useHostTransitionStatus:UA,useFormState:UA,useActionState:UA,useOptimistic:UA,useMemoCache:UA,useCacheRefresh:UA};ll.useEffectEvent=UA;var JE={readContext:nt,use:Sc,useCallback:function(A,n){return ht().memoizedState=[A,n===void 0?null:n],A},useContext:nt,useEffect:_E,useImperativeHandle:function(A,n,a){a=a!=null?a.concat([A]):null,Uc(4194308,4,RE.bind(null,n,A),a)},useLayoutEffect:function(A,n){return Uc(4194308,4,A,n)},useInsertionEffect:function(A,n){Uc(4,2,A,n)},useMemo:function(A,n){var a=ht();n=n===void 0?null:n;var o=A();if(hi){mA(!0);try{A()}finally{mA(!1)}}return a.memoizedState=[o,n],o},useReducer:function(A,n,a){var o=ht();if(a!==void 0){var d=a(n);if(hi){mA(!0);try{a(n)}finally{mA(!1)}}}else d=n;return o.memoizedState=o.baseState=d,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:d},o.queue=A,A=A.dispatch=QO.bind(null,Ne,A),[o.memoizedState,A]},useRef:function(A){var n=ht();return A={current:A},n.memoizedState=A},useState:function(A){A=kh(A);var n=A.queue,a=YE.bind(null,Ne,n);return n.dispatch=a,[A.memoizedState,a]},useDebugValue:Vh,useDeferredValue:function(A,n){var a=ht();return Gh(a,A,n)},useTransition:function(){var A=kh(!1);return A=KE.bind(null,Ne,A.queue,!0,!1),ht().memoizedState=A,[!1,A]},useSyncExternalStore:function(A,n,a){var o=Ne,d=ht();if(Ge){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),dA===null)throw Error(i(349));(je&127)!==0||mE(o,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,_E(wE.bind(null,o,p,A),[A]),o.flags|=2048,ma(9,{destroy:void 0},BE.bind(null,o,p,a,n),null),a},useId:function(){var A=ht(),n=dA.identifierPrefix;if(Ge){var a=bn,o=vn;a=(o&~(1<<32-Ye(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=bc++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=CO++,n="_"+n+"r_"+a.toString(32)+"_";return A.memoizedState=n},useHostTransitionStatus:Ph,useFormState:UE,useActionState:UE,useOptimistic:function(A){var n=ht();n.memoizedState=n.baseState=A;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Yh.bind(null,Ne,!0,a),a.dispatch=n,[A,n]},useMemoCache:Rh,useCacheRefresh:function(){return ht().memoizedState=SO.bind(null,Ne)},useEffectEvent:function(A){var n=ht(),a={impl:A};return n.memoizedState=a,function(){if((AA&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Xh={readContext:nt,use:Sc,useCallback:DE,useContext:nt,useEffect:Kh,useImperativeHandle:LE,useInsertionEffect:ME,useLayoutEffect:OE,useMemo:kE,useReducer:Qc,useRef:IE,useState:function(){return Qc(Vn)},useDebugValue:Vh,useDeferredValue:function(A,n){var a=_A();return jE(a,oA.memoizedState,A,n)},useTransition:function(){var A=Qc(Vn)[0],n=_A().memoizedState;return[typeof A=="boolean"?A:al(A),n]},useSyncExternalStore:pE,useId:zE,useHostTransitionStatus:Ph,useFormState:FE,useActionState:FE,useOptimistic:function(A,n){var a=_A();return EE(a,oA,A,n)},useMemoCache:Rh,useCacheRefresh:PE};Xh.useEffectEvent=HE;var ZE={readContext:nt,use:Sc,useCallback:DE,useContext:nt,useEffect:Kh,useImperativeHandle:LE,useInsertionEffect:ME,useLayoutEffect:OE,useMemo:kE,useReducer:Dh,useRef:IE,useState:function(){return Dh(Vn)},useDebugValue:Vh,useDeferredValue:function(A,n){var a=_A();return oA===null?Gh(a,A,n):jE(a,oA.memoizedState,A,n)},useTransition:function(){var A=Dh(Vn)[0],n=_A().memoizedState;return[typeof A=="boolean"?A:al(A),n]},useSyncExternalStore:pE,useId:zE,useHostTransitionStatus:Ph,useFormState:NE,useActionState:NE,useOptimistic:function(A,n){var a=_A();return oA!==null?EE(a,oA,A,n):(a.baseState=A,[A,a.queue.dispatch])},useMemoCache:Rh,useCacheRefresh:PE};ZE.useEffectEvent=HE;function qh(A,n,a,o){n=A.memoizedState,a=a(o,n),a=a==null?n:B({},n,a),A.memoizedState=a,A.lanes===0&&(A.updateQueue.baseState=a)}var Jh={enqueueSetState:function(A,n,a){A=A._reactInternals;var o=Mt(),d=xr(o);d.payload=n,a!=null&&(d.callback=a),n=Sr(A,d,o),n!==null&&(bt(n,A,o),tl(n,A,o))},enqueueReplaceState:function(A,n,a){A=A._reactInternals;var o=Mt(),d=xr(o);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=Sr(A,d,o),n!==null&&(bt(n,A,o),tl(n,A,o))},enqueueForceUpdate:function(A,n){A=A._reactInternals;var a=Mt(),o=xr(a);o.tag=2,n!=null&&(o.callback=n),n=Sr(A,o,a),n!==null&&(bt(n,A,a),tl(n,A,a))}};function WE(A,n,a,o,d,p,y){return A=A.stateNode,typeof A.shouldComponentUpdate=="function"?A.shouldComponentUpdate(o,p,y):n.prototype&&n.prototype.isPureReactComponent?!Xs(a,o)||!Xs(d,p):!0}function $E(A,n,a,o){A=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==A&&Jh.enqueueReplaceState(n,n.state,null)}function gi(A,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(A=A.defaultProps){a===n&&(a=B({},a));for(var d in A)a[d]===void 0&&(a[d]=A[d])}return a}function ev(A){lc(A)}function Av(A){}function tv(A){lc(A)}function Nc(A,n){try{var a=A.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function nv(A,n,a){try{var o=A.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Zh(A,n,a){return a=xr(a),a.tag=3,a.payload={element:null},a.callback=function(){Nc(A,n)},a}function rv(A){return A=xr(A),A.tag=3,A}function iv(A,n,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;A.payload=function(){return d(p)},A.callback=function(){nv(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(A.callback=function(){nv(n,a,o),typeof d!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function UO(A,n,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&oa(n,a,d,!0),a=Nt.current,a!==null){switch(a.tag){case 31:case 13:return $t===null?Vc():a.alternate===null&&FA===0&&(FA=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===Bc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Eg(A,o,d)),!1;case 22:return a.flags|=65536,o===Bc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Eg(A,o,d)),!1}throw Error(i(435,a.tag))}return Eg(A,o,d),Vc(),!1}if(Ge)return n=Nt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==ph&&(A=Error(i(422),{cause:o}),Zs(qt(A,a)))):(o!==ph&&(n=Error(i(423),{cause:o}),Zs(qt(n,a))),A=A.current.alternate,A.flags|=65536,d&=-d,A.lanes|=d,o=qt(o,a),d=Zh(A.stateNode,o,d),Qh(A,d),FA!==4&&(FA=2)),!1;var p=Error(i(520),{cause:o});if(p=qt(p,a),pl===null?pl=[p]:pl.push(p),FA!==4&&(FA=2),n===null)return!0;o=qt(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,A=d&-d,a.lanes|=A,A=Zh(a.stateNode,o,A),Qh(a,A),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ir===null||!Ir.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=rv(d),iv(d,A,a,o),Qh(a,d),!1}a=a.return}while(a!==null);return!1}var Wh=Error(i(461)),DA=!1;function rt(A,n,a,o){n.child=A===null?oE(n,null,a,o):di(n,A.child,a,o)}function av(A,n,a,o,d){a=a.render;var p=n.ref;if("ref"in o){var y={};for(var S in o)S!=="ref"&&(y[S]=o[S])}else y=o;return oi(n),o=_h(A,n,a,y,p,d),S=Hh(),A!==null&&!DA?(Mh(A,n,d),Gn(A,n,d)):(Ge&&S&&hh(n),n.flags|=1,rt(A,n,o,d),n.child)}function sv(A,n,a,o,d){if(A===null){var p=a.type;return typeof p=="function"&&!uh(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,lv(A,n,p,o,d)):(A=fc(a.type,null,o,n,n.mode,d),A.ref=n.ref,A.return=n,n.child=A)}if(p=A.child,!ag(A,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Xs,a(y,o)&&A.ref===n.ref)return Gn(A,n,d)}return n.flags|=1,A=Ln(p,o),A.ref=n.ref,A.return=n,n.child=A}function lv(A,n,a,o,d){if(A!==null){var p=A.memoizedProps;if(Xs(p,o)&&A.ref===n.ref)if(DA=!1,n.pendingProps=o=p,ag(A,d))(A.flags&131072)!==0&&(DA=!0);else return n.lanes=A.lanes,Gn(A,n,d)}return $h(A,n,a,o,d)}function ov(A,n,a,o){var d=o.children,p=A!==null?A.memoizedState:null;if(A===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,A!==null){for(o=n.child=A.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,n.child=null;return cv(A,n,p,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},A!==null&&pc(n,p!==null?p.cachePool:null),p!==null?fE(n,p):Fh(),dE(n);else return o=n.lanes=536870912,cv(A,n,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(pc(n,p.cachePool),fE(n,p),Ur(),n.memoizedState=null):(A!==null&&pc(n,null),Fh(),Ur());return rt(A,n,d,a),n.child}function ol(A,n){return A!==null&&A.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function cv(A,n,a,o,d){var p=vh();return p=p===null?null:{parent:RA._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},A!==null&&pc(n,null),Fh(),dE(n),A!==null&&oa(A,n,o,!0),n.childLanes=d,null}function Ic(A,n){return n=Hc({mode:n.mode,children:n.children},A.mode),n.ref=A.ref,A.child=n,n.return=A,n}function uv(A,n,a){return di(n,A.child,null,a),A=Ic(n,n.pendingProps),A.flags|=2,It(n),n.memoizedState=null,A}function FO(A,n,a){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,A===null){if(Ge){if(o.mode==="hidden")return A=Ic(n,o),n.lanes=536870912,ol(null,A);if(Nh(n),(A=yA)?(A=vb(A,Wt),A=A!==null&&A.data==="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:Cr!==null?{id:vn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},a=Xy(A),a.return=n,n.child=a,tt=n,yA=null)):A=null,A===null)throw Er(n);return n.lanes=536870912,null}return Ic(n,o)}var p=A.memoizedState;if(p!==null){var y=p.dehydrated;if(Nh(n),d)if(n.flags&256)n.flags&=-257,n=uv(A,n,a);else if(n.memoizedState!==null)n.child=A.child,n.flags|=128,n=null;else throw Error(i(558));else if(DA||oa(A,n,a,!1),d=(a&A.childLanes)!==0,DA||d){if(o=dA,o!==null&&(y=$r(o,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,ii(A,y),bt(o,A,y),Wh;Vc(),n=uv(A,n,a)}else A=p.treeContext,yA=en(y.nextSibling),tt=n,Ge=!0,yr=null,Wt=!1,A!==null&&Zy(n,A),n=Ic(n,o),n.flags|=4096;return n}return A=Ln(A.child,{mode:o.mode,children:o.children}),A.ref=n.ref,n.child=A,A.return=n,A}function _c(A,n){var a=n.ref;if(a===null)A!==null&&A.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(A===null||A.ref!==a)&&(n.flags|=4194816)}}function $h(A,n,a,o,d){return oi(n),a=_h(A,n,a,o,void 0,d),o=Hh(),A!==null&&!DA?(Mh(A,n,d),Gn(A,n,d)):(Ge&&o&&hh(n),n.flags|=1,rt(A,n,a,d),n.child)}function fv(A,n,a,o,d,p){return oi(n),n.updateQueue=null,a=gE(n,o,a,d),hE(A),o=Hh(),A!==null&&!DA?(Mh(A,n,p),Gn(A,n,p)):(Ge&&o&&hh(n),n.flags|=1,rt(A,n,a,p),n.child)}function dv(A,n,a,o,d){if(oi(n),n.stateNode===null){var p=ia,y=a.contextType;typeof y=="object"&&y!==null&&(p=nt(y)),p=new a(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Jh,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},xh(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?nt(y):ia,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(qh(n,a,y,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Jh.enqueueReplaceState(p,p.state,null),rl(n,o,p,d),nl(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(A===null){p=n.stateNode;var S=n.memoizedProps,_=gi(a,S);p.props=_;var Y=p.context,re=a.contextType;y=ia,typeof re=="object"&&re!==null&&(y=nt(re));var ae=a.getDerivedStateFromProps;re=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,re||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||Y!==y)&&$E(n,p,o,y),br=!1;var X=n.memoizedState;p.state=X,rl(n,o,p,d),nl(),Y=n.memoizedState,S||X!==Y||br?(typeof ae=="function"&&(qh(n,a,ae,o),Y=n.memoizedState),(_=br||WE(n,a,_,o,X,Y,y))?(re||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=Y),p.props=o,p.state=Y,p.context=y,o=_):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,Sh(A,n),y=n.memoizedProps,re=gi(a,y),p.props=re,ae=n.pendingProps,X=p.context,Y=a.contextType,_=ia,typeof Y=="object"&&Y!==null&&(_=nt(Y)),S=a.getDerivedStateFromProps,(Y=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==ae||X!==_)&&$E(n,p,o,_),br=!1,X=n.memoizedState,p.state=X,rl(n,o,p,d),nl();var W=n.memoizedState;y!==ae||X!==W||br||A!==null&&A.dependencies!==null&&hc(A.dependencies)?(typeof S=="function"&&(qh(n,a,S,o),W=n.memoizedState),(re=br||WE(n,a,re,o,X,W,_)||A!==null&&A.dependencies!==null&&hc(A.dependencies))?(Y||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,W,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,W,_)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&X===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&X===A.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=W),p.props=o,p.state=W,p.context=_,o=re):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&X===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&X===A.memoizedState||(n.flags|=1024),o=!1)}return p=o,_c(A,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,A!==null&&o?(n.child=di(n,A.child,null,d),n.child=di(n,null,a,d)):rt(A,n,a,d),n.memoizedState=p.state,A=n.child):A=Gn(A,n,d),A}function hv(A,n,a,o){return si(),n.flags|=256,rt(A,n,a,o),n.child}var eg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ag(A){return{baseLanes:A,cachePool:nE()}}function tg(A,n,a){return A=A!==null?A.childLanes&~a:0,n&&(A|=Ht),A}function gv(A,n,a){var o=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=A!==null&&A.memoizedState===null?!1:(IA.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,A===null){if(Ge){if(d?Qr(n):Ur(),(A=yA)?(A=vb(A,Wt),A=A!==null&&A.data!=="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:Cr!==null?{id:vn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},a=Xy(A),a.return=n,n.child=a,tt=n,yA=null)):A=null,A===null)throw Er(n);return Lg(A)?n.lanes=32:n.lanes=536870912,null}var S=o.children;return o=o.fallback,d?(Ur(),d=n.mode,S=Hc({mode:"hidden",children:S},d),o=ai(o,d,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,o=n.child,o.memoizedState=Ag(a),o.childLanes=tg(A,y,a),n.memoizedState=eg,ol(null,o)):(Qr(n),ng(n,S))}var _=A.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(p)n.flags&256?(Qr(n),n.flags&=-257,n=rg(A,n,a)):n.memoizedState!==null?(Ur(),n.child=A.child,n.flags|=128,n=null):(Ur(),S=o.fallback,d=n.mode,o=Hc({mode:"visible",children:o.children},d),S=ai(S,d,a,null),S.flags|=2,o.return=n,S.return=n,o.sibling=S,n.child=o,di(n,A.child,null,a),o=n.child,o.memoizedState=Ag(a),o.childLanes=tg(A,y,a),n.memoizedState=eg,n=ol(null,o));else if(Qr(n),Lg(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var Y=y.dgst;y=Y,o=Error(i(419)),o.stack="",o.digest=y,Zs({value:o,source:null,stack:null}),n=rg(A,n,a)}else if(DA||oa(A,n,a,!1),y=(a&A.childLanes)!==0,DA||y){if(y=dA,y!==null&&(o=$r(y,a),o!==0&&o!==_.retryLane))throw _.retryLane=o,ii(A,o),bt(y,A,o),Wh;Rg(S)||Vc(),n=rg(A,n,a)}else Rg(S)?(n.flags|=192,n.child=A.child,n=null):(A=_.treeContext,yA=en(S.nextSibling),tt=n,Ge=!0,yr=null,Wt=!1,A!==null&&Zy(n,A),n=ng(n,o.children),n.flags|=4096);return n}return d?(Ur(),S=o.fallback,d=n.mode,_=A.child,Y=_.sibling,o=Ln(_,{mode:"hidden",children:o.children}),o.subtreeFlags=_.subtreeFlags&65011712,Y!==null?S=Ln(Y,S):(S=ai(S,d,a,null),S.flags|=2),S.return=n,o.return=n,o.sibling=S,n.child=o,ol(null,o),o=n.child,S=A.child.memoizedState,S===null?S=Ag(a):(d=S.cachePool,d!==null?(_=RA._currentValue,d=d.parent!==_?{parent:_,pool:_}:d):d=nE(),S={baseLanes:S.baseLanes|a,cachePool:d}),o.memoizedState=S,o.childLanes=tg(A,y,a),n.memoizedState=eg,ol(A.child,o)):(Qr(n),a=A.child,A=a.sibling,a=Ln(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,A!==null&&(y=n.deletions,y===null?(n.deletions=[A],n.flags|=16):y.push(A)),n.child=a,n.memoizedState=null,a)}function ng(A,n){return n=Hc({mode:"visible",children:n},A.mode),n.return=A,A.child=n}function Hc(A,n){return A=Tt(22,A,null,n),A.lanes=0,A}function rg(A,n,a){return di(n,A.child,null,a),A=ng(n,n.pendingProps.children),A.flags|=2,n.memoizedState=null,A}function pv(A,n,a){A.lanes|=n;var o=A.alternate;o!==null&&(o.lanes|=n),wh(A.return,n,a)}function ig(A,n,a,o,d,p){var y=A.memoizedState;y===null?A.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function mv(A,n,a){var o=n.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var y=IA.current,S=(y&2)!==0;if(S?(y=y&1|2,n.flags|=128):y&=1,E(IA,y),rt(A,n,o,a),o=Ge?Js:0,!S&&A!==null&&(A.flags&128)!==0)e:for(A=n.child;A!==null;){if(A.tag===13)A.memoizedState!==null&&pv(A,a,n);else if(A.tag===19)pv(A,a,n);else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===n)break e;for(;A.sibling===null;){if(A.return===null||A.return===n)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)A=a.alternate,A!==null&&Ec(A)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),ig(n,!1,d,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(A=d.alternate,A!==null&&Ec(A)===null){n.child=d;break}A=d.sibling,d.sibling=a,a=d,d=A}ig(n,!0,a,null,p,o);break;case"together":ig(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function Gn(A,n,a){if(A!==null&&(n.dependencies=A.dependencies),Nr|=n.lanes,(a&n.childLanes)===0)if(A!==null){if(oa(A,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(A!==null&&n.child!==A.child)throw Error(i(153));if(n.child!==null){for(A=n.child,a=Ln(A,A.pendingProps),n.child=a,a.return=n;A.sibling!==null;)A=A.sibling,a=a.sibling=Ln(A,A.pendingProps),a.return=n;a.sibling=null}return n.child}function ag(A,n){return(A.lanes&n)!==0?!0:(A=A.dependencies,!!(A!==null&&hc(A)))}function TO(A,n,a){switch(n.tag){case 3:Oe(n,n.stateNode.containerInfo),vr(n,RA,A.memoizedState.cache),si();break;case 27:case 5:eA(n);break;case 4:Oe(n,n.stateNode.containerInfo);break;case 10:vr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Nh(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?gv(A,n,a):(Qr(n),A=Gn(A,n,a),A!==null?A.sibling:null);Qr(n);break;case 19:var d=(A.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(oa(A,n,a,!1),o=(a&n.childLanes)!==0),d){if(o)return mv(A,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),E(IA,IA.current),o)break;return null;case 22:return n.lanes=0,ov(A,n,a,n.pendingProps);case 24:vr(n,RA,A.memoizedState.cache)}return Gn(A,n,a)}function Bv(A,n,a){if(A!==null)if(A.memoizedProps!==n.pendingProps)DA=!0;else{if(!ag(A,a)&&(n.flags&128)===0)return DA=!1,TO(A,n,a);DA=(A.flags&131072)!==0}else DA=!1,Ge&&(n.flags&1048576)!==0&&Jy(n,Js,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(A=ui(n.elementType),n.type=A,typeof A=="function")uh(A)?(o=gi(A,o),n.tag=1,n=dv(null,n,A,o,a)):(n.tag=0,n=$h(null,n,A,o,a));else{if(A!=null){var d=A.$$typeof;if(d===z){n.tag=11,n=av(null,n,A,o,a);break e}else if(d===H){n.tag=14,n=sv(null,n,A,o,a);break e}}throw n=Ae(A)||A,Error(i(306,n,""))}}return n;case 0:return $h(A,n,n.type,n.pendingProps,a);case 1:return o=n.type,d=gi(o,n.pendingProps),dv(A,n,o,d,a);case 3:e:{if(Oe(n,n.stateNode.containerInfo),A===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;d=p.element,Sh(A,n),rl(n,o,null,a);var y=n.memoizedState;if(o=y.cache,vr(n,RA,o),o!==p.cache&&Ch(n,[RA],a,!0),nl(),o=y.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=hv(A,n,o,a);break e}else if(o!==d){d=qt(Error(i(424)),n),Zs(d),n=hv(A,n,o,a);break e}else{switch(A=n.stateNode.containerInfo,A.nodeType){case 9:A=A.body;break;default:A=A.nodeName==="HTML"?A.ownerDocument.body:A}for(yA=en(A.firstChild),tt=n,Ge=!0,yr=null,Wt=!0,a=oE(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(si(),o===d){n=Gn(A,n,a);break e}rt(A,n,o,a)}n=n.child}return n;case 26:return _c(A,n),A===null?(a=Fb(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ge||(a=n.type,A=n.pendingProps,o=Jc(ue.current).createElement(a),o[QA]=n,o[At]=A,it(o,a,A),JA(o),n.stateNode=o):n.memoizedState=Fb(n.type,A.memoizedProps,n.pendingProps,A.memoizedState),null;case 27:return eA(n),A===null&&Ge&&(o=n.stateNode=Sb(n.type,n.pendingProps,ue.current),tt=n,Wt=!0,d=yA,Or(n.type)?(Dg=d,yA=en(o.firstChild)):yA=d),rt(A,n,n.pendingProps.children,a),_c(A,n),A===null&&(n.flags|=4194304),n.child;case 5:return A===null&&Ge&&((d=o=yA)&&(o=aR(o,n.type,n.pendingProps,Wt),o!==null?(n.stateNode=o,tt=n,yA=en(o.firstChild),Wt=!1,d=!0):d=!1),d||Er(n)),eA(n),d=n.type,p=n.pendingProps,y=A!==null?A.memoizedProps:null,o=p.children,Hg(d,p)?o=null:y!==null&&Hg(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=_h(A,n,yO,null,null,a),bl._currentValue=d),_c(A,n),rt(A,n,o,a),n.child;case 6:return A===null&&Ge&&((A=a=yA)&&(a=sR(a,n.pendingProps,Wt),a!==null?(n.stateNode=a,tt=n,yA=null,A=!0):A=!1),A||Er(n)),null;case 13:return gv(A,n,a);case 4:return Oe(n,n.stateNode.containerInfo),o=n.pendingProps,A===null?n.child=di(n,null,o,a):rt(A,n,o,a),n.child;case 11:return av(A,n,n.type,n.pendingProps,a);case 7:return rt(A,n,n.pendingProps,a),n.child;case 8:return rt(A,n,n.pendingProps.children,a),n.child;case 12:return rt(A,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,vr(n,n.type,o.value),rt(A,n,o.children,a),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,oi(n),d=nt(d),o=o(d),n.flags|=1,rt(A,n,o,a),n.child;case 14:return sv(A,n,n.type,n.pendingProps,a);case 15:return lv(A,n,n.type,n.pendingProps,a);case 19:return mv(A,n,a);case 31:return FO(A,n,a);case 22:return ov(A,n,a,n.pendingProps);case 24:return oi(n),o=nt(RA),A===null?(d=vh(),d===null&&(d=dA,p=yh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:o,cache:d},xh(n),vr(n,RA,d)):((A.lanes&a)!==0&&(Sh(A,n),rl(n,null,null,a),nl()),d=A.memoizedState,p=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),vr(n,RA,o)):(o=p.cache,vr(n,RA,o),o!==d.cache&&Ch(n,[RA],a,!0))),rt(A,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function zn(A){A.flags|=4}function sg(A,n,a,o,d){if((n=(A.mode&32)!==0)&&(n=!1),n){if(A.flags|=16777216,(d&335544128)===d)if(A.stateNode.complete)A.flags|=8192;else if(zv())A.flags|=8192;else throw fi=Bc,bh}else A.flags&=-16777217}function wv(A,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)A.flags&=-16777217;else if(A.flags|=16777216,!Hb(n))if(zv())A.flags|=8192;else throw fi=Bc,bh}function Mc(A,n){n!==null&&(A.flags|=4),A.flags&16384&&(n=A.tag!==22?Br():536870912,A.lanes|=n,ya|=n)}function cl(A,n){if(!Ge)switch(A.tailMode){case"hidden":n=A.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?A.tail=null:a.sibling=null;break;case"collapsed":a=A.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||A.tail===null?A.tail=null:A.tail.sibling=null:o.sibling=null}}function EA(A){var n=A.alternate!==null&&A.alternate.child===A.child,a=0,o=0;if(n)for(var d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=A,d=d.sibling;else for(d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=A,d=d.sibling;return A.subtreeFlags|=o,A.childLanes=a,n}function NO(A,n,a){var o=n.pendingProps;switch(gh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return EA(n),null;case 1:return EA(n),null;case 3:return a=n.stateNode,o=null,A!==null&&(o=A.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),jn(RA),xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(A===null||A.child===null)&&(la(n)?zn(n):A===null||A.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,mh())),EA(n),null;case 26:var d=n.type,p=n.memoizedState;return A===null?(zn(n),p!==null?(EA(n),wv(n,p)):(EA(n),sg(n,d,null,o,a))):p?p!==A.memoizedState?(zn(n),EA(n),wv(n,p)):(EA(n),n.flags&=-16777217):(A=A.memoizedProps,A!==o&&zn(n),EA(n),sg(n,d,A,o,a)),null;case 27:if(Pe(n),a=ue.current,d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&zn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return EA(n),null}A=ne.current,la(n)?Wy(n):(A=Sb(d,o,a),n.stateNode=A,zn(n))}return EA(n),null;case 5:if(Pe(n),d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&zn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return EA(n),null}if(p=ne.current,la(n))Wy(n);else{var y=Jc(ue.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}p[QA]=n,p[At]=o;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;e:switch(it(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&zn(n)}}return EA(n),sg(n,n.type,A===null?null:A.memoizedProps,n.pendingProps,a),null;case 6:if(A&&n.stateNode!=null)A.memoizedProps!==o&&zn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(A=ue.current,la(n)){if(A=n.stateNode,a=n.memoizedProps,o=null,d=tt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}A[QA]=n,A=!!(A.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||gb(A.nodeValue,a)),A||Er(n,!0)}else A=Jc(A).createTextNode(o),A[QA]=n,n.stateNode=A}return EA(n),null;case 31:if(a=n.memoizedState,A===null||A.memoizedState!==null){if(o=la(n),a!==null){if(A===null){if(!o)throw Error(i(318));if(A=n.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(557));A[QA]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;EA(n),A=!1}else a=mh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=a),A=!0;if(!A)return n.flags&256?(It(n),n):(It(n),null);if((n.flags&128)!==0)throw Error(i(558))}return EA(n),null;case 13:if(o=n.memoizedState,A===null||A.memoizedState!==null&&A.memoizedState.dehydrated!==null){if(d=la(n),o!==null&&o.dehydrated!==null){if(A===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[QA]=n}else si(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;EA(n),d=!1}else d=mh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(It(n),n):(It(n),null)}return It(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,A=A!==null&&A.memoizedState!==null,a&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),a!==A&&a&&(n.child.flags|=8192),Mc(n,n.updateQueue),EA(n),null);case 4:return xe(),A===null&&Fg(n.stateNode.containerInfo),EA(n),null;case 10:return jn(n.type),EA(n),null;case 19:if(q(IA),o=n.memoizedState,o===null)return EA(n),null;if(d=(n.flags&128)!==0,p=o.rendering,p===null)if(d)cl(o,!1);else{if(FA!==0||A!==null&&(A.flags&128)!==0)for(A=n.child;A!==null;){if(p=Ec(A),p!==null){for(n.flags|=128,cl(o,!1),A=p.updateQueue,n.updateQueue=A,Mc(n,A),n.subtreeFlags=0,A=a,a=n.child;a!==null;)Yy(a,A),a=a.sibling;return E(IA,IA.current&1|2),Ge&&Dn(n,o.treeForkCount),n.child}A=A.sibling}o.tail!==null&&XA()>kc&&(n.flags|=128,d=!0,cl(o,!1),n.lanes=4194304)}else{if(!d)if(A=Ec(p),A!==null){if(n.flags|=128,d=!0,A=A.updateQueue,n.updateQueue=A,Mc(n,A),cl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!Ge)return EA(n),null}else 2*XA()-o.renderingStartTime>kc&&a!==536870912&&(n.flags|=128,d=!0,cl(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(A=o.last,A!==null?A.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(A=o.tail,o.rendering=A,o.tail=A.sibling,o.renderingStartTime=XA(),A.sibling=null,a=IA.current,E(IA,d?a&1|2:a&1),Ge&&Dn(n,o.treeForkCount),A):(EA(n),null);case 22:case 23:return It(n),Th(),o=n.memoizedState!==null,A!==null?A.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(EA(n),n.subtreeFlags&6&&(n.flags|=8192)):EA(n),a=n.updateQueue,a!==null&&Mc(n,a.retryQueue),a=null,A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),A!==null&&q(ci),null;case 24:return a=null,A!==null&&(a=A.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),jn(RA),EA(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function IO(A,n){switch(gh(n),n.tag){case 1:return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 3:return jn(RA),xe(),A=n.flags,(A&65536)!==0&&(A&128)===0?(n.flags=A&-65537|128,n):null;case 26:case 27:case 5:return Pe(n),null;case 31:if(n.memoizedState!==null){if(It(n),n.alternate===null)throw Error(i(340));si()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 13:if(It(n),A=n.memoizedState,A!==null&&A.dehydrated!==null){if(n.alternate===null)throw Error(i(340));si()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 19:return q(IA),null;case 4:return xe(),null;case 10:return jn(n.type),null;case 22:case 23:return It(n),Th(),A!==null&&q(ci),A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 24:return jn(RA),null;case 25:return null;default:return null}}function Cv(A,n){switch(gh(n),n.tag){case 3:jn(RA),xe();break;case 26:case 27:case 5:Pe(n);break;case 4:xe();break;case 31:n.memoizedState!==null&&It(n);break;case 13:It(n);break;case 19:q(IA);break;case 10:jn(n.type);break;case 22:case 23:It(n),Th(),A!==null&&q(ci);break;case 24:jn(RA)}}function ul(A,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&A)===A){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(S){aA(n,n.return,S)}}function Fr(A,n,a){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&A)===A){var y=o.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,d=n;var _=a,Y=S;try{Y()}catch(re){aA(d,_,re)}}}o=o.next}while(o!==p)}}catch(re){aA(n,n.return,re)}}function yv(A){var n=A.updateQueue;if(n!==null){var a=A.stateNode;try{uE(n,a)}catch(o){aA(A,A.return,o)}}}function Ev(A,n,a){a.props=gi(A.type,A.memoizedProps),a.state=A.memoizedState;try{a.componentWillUnmount()}catch(o){aA(A,n,o)}}function fl(A,n){try{var a=A.ref;if(a!==null){switch(A.tag){case 26:case 27:case 5:var o=A.stateNode;break;case 30:o=A.stateNode;break;default:o=A.stateNode}typeof a=="function"?A.refCleanup=a(o):a.current=o}}catch(d){aA(A,n,d)}}function xn(A,n){var a=A.ref,o=A.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){aA(A,n,d)}finally{A.refCleanup=null,A=A.alternate,A!=null&&(A.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){aA(A,n,d)}else a.current=null}function vv(A){var n=A.type,a=A.memoizedProps,o=A.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){aA(A,A.return,d)}}function lg(A,n,a){try{var o=A.stateNode;eR(o,A.type,a,n),o[At]=n}catch(d){aA(A,A.return,d)}}function bv(A){return A.tag===5||A.tag===3||A.tag===26||A.tag===27&&Or(A.type)||A.tag===4}function og(A){e:for(;;){for(;A.sibling===null;){if(A.return===null||bv(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.tag===27&&Or(A.type)||A.flags&2||A.child===null||A.tag===4)continue e;A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function cg(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(A,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(A),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=On));else if(o!==4&&(o===27&&Or(A.type)&&(a=A.stateNode,n=null),A=A.child,A!==null))for(cg(A,n,a),A=A.sibling;A!==null;)cg(A,n,a),A=A.sibling}function Oc(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?a.insertBefore(A,n):a.appendChild(A);else if(o!==4&&(o===27&&Or(A.type)&&(a=A.stateNode),A=A.child,A!==null))for(Oc(A,n,a),A=A.sibling;A!==null;)Oc(A,n,a),A=A.sibling}function xv(A){var n=A.stateNode,a=A.memoizedProps;try{for(var o=A.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);it(n,o,a),n[QA]=A,n[At]=a}catch(p){aA(A,A.return,p)}}var Pn=!1,kA=!1,ug=!1,Sv=typeof WeakSet=="function"?WeakSet:Set,ZA=null;function _O(A,n){if(A=A.containerInfo,Ig=nu,A=Ly(A),rh(A)){if("selectionStart"in A)var a={start:A.selectionStart,end:A.selectionEnd};else{a=(a=A.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;var y=0,S=-1,_=-1,Y=0,re=0,ae=A,X=null;e:for(;;){for(var W;ae!==a||d!==0&&ae.nodeType!==3||(S=y+d),ae!==p||o!==0&&ae.nodeType!==3||(_=y+o),ae.nodeType===3&&(y+=ae.nodeValue.length),(W=ae.firstChild)!==null;)X=ae,ae=W;for(;;){if(ae===A)break e;if(X===a&&++Y===d&&(S=y),X===p&&++re===o&&(_=y),(W=ae.nextSibling)!==null)break;ae=X,X=ae.parentNode}ae=W}a=S===-1||_===-1?null:{start:S,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(_g={focusedElem:A,selectionRange:a},nu=!1,ZA=n;ZA!==null;)if(n=ZA,A=n.child,(n.subtreeFlags&1028)!==0&&A!==null)A.return=n,ZA=A;else for(;ZA!==null;){switch(n=ZA,p=n.alternate,A=n.flags,n.tag){case 0:if((A&4)!==0&&(A=n.updateQueue,A=A!==null?A.events:null,A!==null))for(a=0;a<A.length;a++)d=A[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((A&1024)!==0&&p!==null){A=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var we=gi(a.type,d);A=o.getSnapshotBeforeUpdate(we,p),o.__reactInternalSnapshotBeforeUpdate=A}catch(Se){aA(a,a.return,Se)}}break;case 3:if((A&1024)!==0){if(A=n.stateNode.containerInfo,a=A.nodeType,a===9)Og(A);else if(a===1)switch(A.nodeName){case"HEAD":case"HTML":case"BODY":Og(A);break;default:A.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error(i(163))}if(A=n.sibling,A!==null){A.return=n.return,ZA=A;break}ZA=n.return}}function Qv(A,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Xn(A,a),o&4&&ul(5,a);break;case 1:if(Xn(A,a),o&4)if(A=a.stateNode,n===null)try{A.componentDidMount()}catch(y){aA(a,a.return,y)}else{var d=gi(a.type,n.memoizedProps);n=n.memoizedState;try{A.componentDidUpdate(d,n,A.__reactInternalSnapshotBeforeUpdate)}catch(y){aA(a,a.return,y)}}o&64&&yv(a),o&512&&fl(a,a.return);break;case 3:if(Xn(A,a),o&64&&(A=a.updateQueue,A!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{uE(A,n)}catch(y){aA(a,a.return,y)}}break;case 27:n===null&&o&4&&xv(a);case 26:case 5:Xn(A,a),n===null&&o&4&&vv(a),o&512&&fl(a,a.return);break;case 12:Xn(A,a);break;case 31:Xn(A,a),o&4&&Tv(A,a);break;case 13:Xn(A,a),o&4&&Nv(A,a),o&64&&(A=a.memoizedState,A!==null&&(A=A.dehydrated,A!==null&&(a=KO.bind(null,a),lR(A,a))));break;case 22:if(o=a.memoizedState!==null||Pn,!o){n=n!==null&&n.memoizedState!==null||kA,d=Pn;var p=kA;Pn=o,(kA=n)&&!p?qn(A,a,(a.subtreeFlags&8772)!==0):Xn(A,a),Pn=d,kA=p}break;case 30:break;default:Xn(A,a)}}function Uv(A){var n=A.alternate;n!==null&&(A.alternate=null,Uv(n)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(n=A.stateNode,n!==null&&jd(n)),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}var bA=null,Ct=!1;function Yn(A,n,a){for(a=a.child;a!==null;)Fv(A,n,a),a=a.sibling}function Fv(A,n,a){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(qe,a)}catch{}switch(a.tag){case 26:kA||xn(a,n),Yn(A,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:kA||xn(a,n);var o=bA,d=Ct;Or(a.type)&&(bA=a.stateNode,Ct=!1),Yn(A,n,a),yl(a.stateNode),bA=o,Ct=d;break;case 5:kA||xn(a,n);case 6:if(o=bA,d=Ct,bA=null,Yn(A,n,a),bA=o,Ct=d,bA!==null)if(Ct)try{(bA.nodeType===9?bA.body:bA.nodeName==="HTML"?bA.ownerDocument.body:bA).removeChild(a.stateNode)}catch(p){aA(a,n,p)}else try{bA.removeChild(a.stateNode)}catch(p){aA(a,n,p)}break;case 18:bA!==null&&(Ct?(A=bA,yb(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,a.stateNode),Fa(A)):yb(bA,a.stateNode));break;case 4:o=bA,d=Ct,bA=a.stateNode.containerInfo,Ct=!0,Yn(A,n,a),bA=o,Ct=d;break;case 0:case 11:case 14:case 15:Fr(2,a,n),kA||Fr(4,a,n),Yn(A,n,a);break;case 1:kA||(xn(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Ev(a,n,o)),Yn(A,n,a);break;case 21:Yn(A,n,a);break;case 22:kA=(o=kA)||a.memoizedState!==null,Yn(A,n,a),kA=o;break;default:Yn(A,n,a)}}function Tv(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null))){A=A.dehydrated;try{Fa(A)}catch(a){aA(n,n.return,a)}}}function Nv(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null&&(A=A.dehydrated,A!==null))))try{Fa(A)}catch(a){aA(n,n.return,a)}}function HO(A){switch(A.tag){case 31:case 13:case 19:var n=A.stateNode;return n===null&&(n=A.stateNode=new Sv),n;case 22:return A=A.stateNode,n=A._retryCache,n===null&&(n=A._retryCache=new Sv),n;default:throw Error(i(435,A.tag))}}function Rc(A,n){var a=HO(A);n.forEach(function(o){if(!a.has(o)){a.add(o);var d=VO.bind(null,A,o);o.then(d,d)}})}function yt(A,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=A,y=n,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Or(S.type)){bA=S.stateNode,Ct=!1;break e}break;case 5:bA=S.stateNode,Ct=!1;break e;case 3:case 4:bA=S.stateNode.containerInfo,Ct=!0;break e}S=S.return}if(bA===null)throw Error(i(160));Fv(p,y,d),bA=null,Ct=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Iv(n,A),n=n.sibling}var cn=null;function Iv(A,n){var a=A.alternate,o=A.flags;switch(A.tag){case 0:case 11:case 14:case 15:yt(n,A),Et(A),o&4&&(Fr(3,A,A.return),ul(3,A),Fr(5,A,A.return));break;case 1:yt(n,A),Et(A),o&512&&(kA||a===null||xn(a,a.return)),o&64&&Pn&&(A=A.updateQueue,A!==null&&(o=A.callbacks,o!==null&&(a=A.shared.hiddenCallbacks,A.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=cn;if(yt(n,A),Et(A),o&512&&(kA||a===null||xn(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=A.memoizedState,a===null)if(o===null)if(A.stateNode===null){e:{o=A.type,a=A.memoizedProps,d=d.ownerDocument||d;A:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ds]||p[QA]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),it(p,o,a),p[QA]=A,JA(p),o=p;break e;case"link":var y=Ib("link","href",d).get(o+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(p=y[S],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break A}}p=d.createElement(o),it(p,o,a),d.head.appendChild(p);break;case"meta":if(y=Ib("meta","content",d).get(o+(a.content||""))){for(S=0;S<y.length;S++)if(p=y[S],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break A}}p=d.createElement(o),it(p,o,a),d.head.appendChild(p);break;default:throw Error(i(468,o))}p[QA]=A,JA(p),o=p}A.stateNode=o}else _b(d,A.type,A.stateNode);else A.stateNode=Nb(d,o,A.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?_b(d,A.type,A.stateNode):Nb(d,o,A.memoizedProps)):o===null&&A.stateNode!==null&&lg(A,A.memoizedProps,a.memoizedProps)}break;case 27:yt(n,A),Et(A),o&512&&(kA||a===null||xn(a,a.return)),a!==null&&o&4&&lg(A,A.memoizedProps,a.memoizedProps);break;case 5:if(yt(n,A),Et(A),o&512&&(kA||a===null||xn(a,a.return)),A.flags&32){d=A.stateNode;try{Wi(d,"")}catch(we){aA(A,A.return,we)}}o&4&&A.stateNode!=null&&(d=A.memoizedProps,lg(A,d,a!==null?a.memoizedProps:d)),o&1024&&(ug=!0);break;case 6:if(yt(n,A),Et(A),o&4){if(A.stateNode===null)throw Error(i(162));o=A.memoizedProps,a=A.stateNode;try{a.nodeValue=o}catch(we){aA(A,A.return,we)}}break;case 3:if($c=null,d=cn,cn=Zc(n.containerInfo),yt(n,A),cn=d,Et(A),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Fa(n.containerInfo)}catch(we){aA(A,A.return,we)}ug&&(ug=!1,_v(A));break;case 4:o=cn,cn=Zc(A.stateNode.containerInfo),yt(n,A),Et(A),cn=o;break;case 12:yt(n,A),Et(A);break;case 31:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Rc(A,o)));break;case 13:yt(n,A),Et(A),A.child.flags&8192&&A.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Dc=XA()),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Rc(A,o)));break;case 22:d=A.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,Y=Pn,re=kA;if(Pn=Y||d,kA=re||_,yt(n,A),kA=re,Pn=Y,Et(A),o&8192)e:for(n=A.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||_||Pn||kA||pi(A)),a=null,n=A;;){if(n.tag===5||n.tag===26){if(a===null){_=a=n;try{if(p=_.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=_.stateNode;var ae=_.memoizedProps.style,X=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;S.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(we){aA(_,_.return,we)}}}else if(n.tag===6){if(a===null){_=n;try{_.stateNode.nodeValue=d?"":_.memoizedProps}catch(we){aA(_,_.return,we)}}}else if(n.tag===18){if(a===null){_=n;try{var W=_.stateNode;d?Eb(W,!0):Eb(_.stateNode,!1)}catch(we){aA(_,_.return,we)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===A)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break e;for(;n.sibling===null;){if(n.return===null||n.return===A)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=A.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Rc(A,a))));break;case 19:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Rc(A,o)));break;case 30:break;case 21:break;default:yt(n,A),Et(A)}}function Et(A){var n=A.flags;if(n&2){try{for(var a,o=A.return;o!==null;){if(bv(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var d=a.stateNode,p=og(A);Oc(A,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(Wi(y,""),a.flags&=-33);var S=og(A);Oc(A,S,y);break;case 3:case 4:var _=a.stateNode.containerInfo,Y=og(A);cg(A,Y,_);break;default:throw Error(i(161))}}catch(re){aA(A,A.return,re)}A.flags&=-3}n&4096&&(A.flags&=-4097)}function _v(A){if(A.subtreeFlags&1024)for(A=A.child;A!==null;){var n=A;_v(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),A=A.sibling}}function Xn(A,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qv(A,n.alternate,n),n=n.sibling}function pi(A){for(A=A.child;A!==null;){var n=A;switch(n.tag){case 0:case 11:case 14:case 15:Fr(4,n,n.return),pi(n);break;case 1:xn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Ev(n,n.return,a),pi(n);break;case 27:yl(n.stateNode);case 26:case 5:xn(n,n.return),pi(n);break;case 22:n.memoizedState===null&&pi(n);break;case 30:pi(n);break;default:pi(n)}A=A.sibling}}function qn(A,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=A,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:qn(d,p,a),ul(4,p);break;case 1:if(qn(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Y){aA(o,o.return,Y)}if(o=p,d=o.updateQueue,d!==null){var S=o.stateNode;try{var _=d.shared.hiddenCallbacks;if(_!==null)for(d.shared.hiddenCallbacks=null,d=0;d<_.length;d++)cE(_[d],S)}catch(Y){aA(o,o.return,Y)}}a&&y&64&&yv(p),fl(p,p.return);break;case 27:xv(p);case 26:case 5:qn(d,p,a),a&&o===null&&y&4&&vv(p),fl(p,p.return);break;case 12:qn(d,p,a);break;case 31:qn(d,p,a),a&&y&4&&Tv(d,p);break;case 13:qn(d,p,a),a&&y&4&&Nv(d,p);break;case 22:p.memoizedState===null&&qn(d,p,a),fl(p,p.return);break;case 30:break;default:qn(d,p,a)}n=n.sibling}}function fg(A,n){var a=null;A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),A=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(A=n.memoizedState.cachePool.pool),A!==a&&(A!=null&&A.refCount++,a!=null&&Ws(a))}function dg(A,n){A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Ws(A))}function un(A,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hv(A,n,a,o),n=n.sibling}function Hv(A,n,a,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:un(A,n,a,o),d&2048&&ul(9,n);break;case 1:un(A,n,a,o);break;case 3:un(A,n,a,o),d&2048&&(A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Ws(A)));break;case 12:if(d&2048){un(A,n,a,o),A=n.stateNode;try{var p=n.memoizedProps,y=p.id,S=p.onPostCommit;typeof S=="function"&&S(y,n.alternate===null?"mount":"update",A.passiveEffectDuration,-0)}catch(_){aA(n,n.return,_)}}else un(A,n,a,o);break;case 31:un(A,n,a,o);break;case 13:un(A,n,a,o);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?un(A,n,a,o):dl(A,n):p._visibility&2?un(A,n,a,o):(p._visibility|=2,Ba(A,n,a,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&fg(y,n);break;case 24:un(A,n,a,o),d&2048&&dg(n.alternate,n);break;default:un(A,n,a,o)}}function Ba(A,n,a,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=A,y=n,S=a,_=o,Y=y.flags;switch(y.tag){case 0:case 11:case 15:Ba(p,y,S,_,d),ul(8,y);break;case 23:break;case 22:var re=y.stateNode;y.memoizedState!==null?re._visibility&2?Ba(p,y,S,_,d):dl(p,y):(re._visibility|=2,Ba(p,y,S,_,d)),d&&Y&2048&&fg(y.alternate,y);break;case 24:Ba(p,y,S,_,d),d&&Y&2048&&dg(y.alternate,y);break;default:Ba(p,y,S,_,d)}n=n.sibling}}function dl(A,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=A,o=n,d=o.flags;switch(o.tag){case 22:dl(a,o),d&2048&&fg(o.alternate,o);break;case 24:dl(a,o),d&2048&&dg(o.alternate,o);break;default:dl(a,o)}n=n.sibling}}var hl=8192;function wa(A,n,a){if(A.subtreeFlags&hl)for(A=A.child;A!==null;)Mv(A,n,a),A=A.sibling}function Mv(A,n,a){switch(A.tag){case 26:wa(A,n,a),A.flags&hl&&A.memoizedState!==null&&CR(a,cn,A.memoizedState,A.memoizedProps);break;case 5:wa(A,n,a);break;case 3:case 4:var o=cn;cn=Zc(A.stateNode.containerInfo),wa(A,n,a),cn=o;break;case 22:A.memoizedState===null&&(o=A.alternate,o!==null&&o.memoizedState!==null?(o=hl,hl=16777216,wa(A,n,a),hl=o):wa(A,n,a));break;default:wa(A,n,a)}}function Ov(A){var n=A.alternate;if(n!==null&&(A=n.child,A!==null)){n.child=null;do n=A.sibling,A.sibling=null,A=n;while(A!==null)}}function gl(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];ZA=o,Lv(o,A)}Ov(A)}if(A.subtreeFlags&10256)for(A=A.child;A!==null;)Rv(A),A=A.sibling}function Rv(A){switch(A.tag){case 0:case 11:case 15:gl(A),A.flags&2048&&Fr(9,A,A.return);break;case 3:gl(A);break;case 12:gl(A);break;case 22:var n=A.stateNode;A.memoizedState!==null&&n._visibility&2&&(A.return===null||A.return.tag!==13)?(n._visibility&=-3,Lc(A)):gl(A);break;default:gl(A)}}function Lc(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];ZA=o,Lv(o,A)}Ov(A)}for(A=A.child;A!==null;){switch(n=A,n.tag){case 0:case 11:case 15:Fr(8,n,n.return),Lc(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Lc(n));break;default:Lc(n)}A=A.sibling}}function Lv(A,n){for(;ZA!==null;){var a=ZA;switch(a.tag){case 0:case 11:case 15:Fr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ws(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,ZA=o;else e:for(a=A;ZA!==null;){o=ZA;var d=o.sibling,p=o.return;if(Uv(o),o===a){ZA=null;break e}if(d!==null){d.return=p,ZA=d;break e}ZA=p}}}var MO={getCacheForType:function(A){var n=nt(RA),a=n.data.get(A);return a===void 0&&(a=A(),n.data.set(A,a)),a},cacheSignal:function(){return nt(RA).controller.signal}},OO=typeof WeakMap=="function"?WeakMap:Map,AA=0,dA=null,Le=null,je=0,iA=0,_t=null,Tr=!1,Ca=!1,hg=!1,Jn=0,FA=0,Nr=0,mi=0,gg=0,Ht=0,ya=0,pl=null,vt=null,pg=!1,Dc=0,Dv=0,kc=1/0,jc=null,Ir=null,zA=0,_r=null,Ea=null,Zn=0,mg=0,Bg=null,kv=null,ml=0,wg=null;function Mt(){return(AA&2)!==0&&je!==0?je&-je:L.T!==null?xg():Pi()}function jv(){if(Ht===0)if((je&536870912)===0||Ge){var A=Gt;Gt<<=1,(Gt&3932160)===0&&(Gt=262144),Ht=A}else Ht=536870912;return A=Nt.current,A!==null&&(A.flags|=32),Ht}function bt(A,n,a){(A===dA&&(iA===2||iA===9)||A.cancelPendingCommit!==null)&&(va(A,0),Hr(A,je,Ht,!1)),ln(A,a),((AA&2)===0||A!==dA)&&(A===dA&&((AA&2)===0&&(mi|=a),FA===4&&Hr(A,je,Ht,!1)),Sn(A))}function Kv(A,n,a){if((AA&6)!==0)throw Error(i(327));var o=!a&&(n&127)===0&&(n&A.expiredLanes)===0||He(A,n),d=o?DO(A,n):yg(A,n,!0),p=o;do{if(d===0){Ca&&!o&&Hr(A,n,0,!1);break}else{if(a=A.current.alternate,p&&!RO(a)){d=yg(A,n,!1),p=!1;continue}if(d===2){if(p=n,A.errorRecoveryDisabledLanes&p)var y=0;else y=A.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var S=A;d=pl;var _=S.current.memoizedState.isDehydrated;if(_&&(va(S,y).flags|=256),y=yg(S,y,!1),y!==2){if(hg&&!_){S.errorRecoveryDisabledLanes|=p,mi|=p,d=4;break e}p=vt,vt=d,p!==null&&(vt===null?vt=p:vt.push.apply(vt,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){va(A,0),Hr(A,n,0,!0);break}e:{switch(o=A,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Hr(o,n,Ht,!Tr);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=Dc+300-XA(),10<d)){if(Hr(o,n,Ht,!Tr),qA(o,0,!0)!==0)break e;Zn=n,o.timeoutHandle=wb(Vv.bind(null,o,a,vt,jc,pg,n,Ht,mi,ya,Tr,p,"Throttled",-0,0),d);break e}Vv(o,a,vt,jc,pg,n,Ht,mi,ya,Tr,p,null,-0,0)}}break}while(!0);Sn(A)}function Vv(A,n,a,o,d,p,y,S,_,Y,re,ae,X,W){if(A.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:On},Mv(n,p,ae);var we=(p&62914560)===p?Dc-XA():(p&4194048)===p?Dv-XA():0;if(we=yR(ae,we),we!==null){Zn=p,A.cancelPendingCommit=we(Zv.bind(null,A,n,p,a,o,d,y,S,_,re,ae,null,X,W)),Hr(A,p,y,!Y);return}}Zv(A,n,p,a,o,d,y,S,_)}function RO(A){for(var n=A;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!Ft(p(),d))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Hr(A,n,a,o){n&=~gg,n&=~mi,A.suspendedLanes|=n,A.pingedLanes&=~n,o&&(A.warmLanes|=n),o=A.expirationTimes;for(var d=n;0<d;){var p=31-Ye(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&GA(A,a,n)}function Kc(){return(AA&6)===0?(Bl(0),!1):!0}function Cg(){if(Le!==null){if(iA===0)var A=Le.return;else A=Le,kn=li=null,Oh(A),da=null,el=0,A=Le;for(;A!==null;)Cv(A.alternate,A),A=A.return;Le=null}}function va(A,n){var a=A.timeoutHandle;a!==-1&&(A.timeoutHandle=-1,nR(a)),a=A.cancelPendingCommit,a!==null&&(A.cancelPendingCommit=null,a()),Zn=0,Cg(),dA=A,Le=a=Ln(A.current,null),je=n,iA=0,_t=null,Tr=!1,Ca=He(A,n),hg=!1,ya=Ht=gg=mi=Nr=FA=0,vt=pl=null,pg=!1,(n&8)!==0&&(n|=n&32);var o=A.entangledLanes;if(o!==0)for(A=A.entanglements,o&=n;0<o;){var d=31-Ye(o),p=1<<d;n|=A[d],o&=~p}return Jn=n,oc(),a}function Gv(A,n){Ne=null,L.H=ll,n===fa||n===mc?(n=aE(),iA=3):n===bh?(n=aE(),iA=4):iA=n===Wh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,_t=n,Le===null&&(FA=1,Nc(A,qt(n,A.current)))}function zv(){var A=Nt.current;return A===null?!0:(je&4194048)===je?$t===null:(je&62914560)===je||(je&536870912)!==0?A===$t:!1}function Pv(){var A=L.H;return L.H=ll,A===null?ll:A}function Yv(){var A=L.A;return L.A=MO,A}function Vc(){FA=4,Tr||(je&4194048)!==je&&Nt.current!==null||(Ca=!0),(Nr&134217727)===0&&(mi&134217727)===0||dA===null||Hr(dA,je,Ht,!1)}function yg(A,n,a){var o=AA;AA|=2;var d=Pv(),p=Yv();(dA!==A||je!==n)&&(jc=null,va(A,n)),n=!1;var y=FA;e:do try{if(iA!==0&&Le!==null){var S=Le,_=_t;switch(iA){case 8:Cg(),y=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(n=!0);var Y=iA;if(iA=0,_t=null,ba(A,S,_,Y),a&&Ca){y=0;break e}break;default:Y=iA,iA=0,_t=null,ba(A,S,_,Y)}}LO(),y=FA;break}catch(re){Gv(A,re)}while(!0);return n&&A.shellSuspendCounter++,kn=li=null,AA=o,L.H=d,L.A=p,Le===null&&(dA=null,je=0,oc()),y}function LO(){for(;Le!==null;)Xv(Le)}function DO(A,n){var a=AA;AA|=2;var o=Pv(),d=Yv();dA!==A||je!==n?(jc=null,kc=XA()+500,va(A,n)):Ca=He(A,n);e:do try{if(iA!==0&&Le!==null){n=Le;var p=_t;A:switch(iA){case 1:iA=0,_t=null,ba(A,n,p,1);break;case 2:case 9:if(rE(p)){iA=0,_t=null,qv(n);break}n=function(){iA!==2&&iA!==9||dA!==A||(iA=7),Sn(A)},p.then(n,n);break e;case 3:iA=7;break e;case 4:iA=5;break e;case 7:rE(p)?(iA=0,_t=null,qv(n)):(iA=0,_t=null,ba(A,n,p,7));break;case 5:var y=null;switch(Le.tag){case 26:y=Le.memoizedState;case 5:case 27:var S=Le;if(y?Hb(y):S.stateNode.complete){iA=0,_t=null;var _=S.sibling;if(_!==null)Le=_;else{var Y=S.return;Y!==null?(Le=Y,Gc(Y)):Le=null}break A}}iA=0,_t=null,ba(A,n,p,5);break;case 6:iA=0,_t=null,ba(A,n,p,6);break;case 8:Cg(),FA=6;break e;default:throw Error(i(462))}}kO();break}catch(re){Gv(A,re)}while(!0);return kn=li=null,L.H=o,L.A=d,AA=a,Le!==null?0:(dA=null,je=0,oc(),FA)}function kO(){for(;Le!==null&&!mr();)Xv(Le)}function Xv(A){var n=Bv(A.alternate,A,Jn);A.memoizedProps=A.pendingProps,n===null?Gc(A):Le=n}function qv(A){var n=A,a=n.alternate;switch(n.tag){case 15:case 0:n=fv(a,n,n.pendingProps,n.type,void 0,je);break;case 11:n=fv(a,n,n.pendingProps,n.type.render,n.ref,je);break;case 5:Oh(n);default:Cv(a,n),n=Le=Yy(n,Jn),n=Bv(a,n,Jn)}A.memoizedProps=A.pendingProps,n===null?Gc(A):Le=n}function ba(A,n,a,o){kn=li=null,Oh(n),da=null,el=0;var d=n.return;try{if(UO(A,d,n,a,je)){FA=1,Nc(A,qt(a,A.current)),Le=null;return}}catch(p){if(d!==null)throw Le=d,p;FA=1,Nc(A,qt(a,A.current)),Le=null;return}n.flags&32768?(Ge||o===1?A=!0:Ca||(je&536870912)!==0?A=!1:(Tr=A=!0,(o===2||o===9||o===3||o===6)&&(o=Nt.current,o!==null&&o.tag===13&&(o.flags|=16384))),Jv(n,A)):Gc(n)}function Gc(A){var n=A;do{if((n.flags&32768)!==0){Jv(n,Tr);return}A=n.return;var a=NO(n.alternate,n,Jn);if(a!==null){Le=a;return}if(n=n.sibling,n!==null){Le=n;return}Le=n=A}while(n!==null);FA===0&&(FA=5)}function Jv(A,n){do{var a=IO(A.alternate,A);if(a!==null){a.flags&=32767,Le=a;return}if(a=A.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(A=A.sibling,A!==null)){Le=A;return}Le=A=a}while(A!==null);FA=6,Le=null}function Zv(A,n,a,o,d,p,y,S,_){A.cancelPendingCommit=null;do zc();while(zA!==0);if((AA&6)!==0)throw Error(i(327));if(n!==null){if(n===A.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=oh,zi(A,a,p,y,S,_),A===dA&&(Le=dA=null,je=0),Ea=n,_r=A,Zn=a,mg=p,Bg=d,kv=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(A.callbackNode=null,A.callbackPriority=0,GO(le,function(){return tb(),null})):(A.callbackNode=null,A.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=L.T,L.T=null,d=Z.p,Z.p=2,y=AA,AA|=4;try{_O(A,n)}finally{AA=y,Z.p=d,L.T=o}}zA=1,Wv(),$v(),eb()}}function Wv(){if(zA===1){zA=0;var A=_r,n=Ea,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=L.T,L.T=null;var o=Z.p;Z.p=2;var d=AA;AA|=4;try{Iv(n,A);var p=_g,y=Ly(A.containerInfo),S=p.focusedElem,_=p.selectionRange;if(y!==S&&S&&S.ownerDocument&&Ry(S.ownerDocument.documentElement,S)){if(_!==null&&rh(S)){var Y=_.start,re=_.end;if(re===void 0&&(re=Y),"selectionStart"in S)S.selectionStart=Y,S.selectionEnd=Math.min(re,S.value.length);else{var ae=S.ownerDocument||document,X=ae&&ae.defaultView||window;if(X.getSelection){var W=X.getSelection(),we=S.textContent.length,Se=Math.min(_.start,we),uA=_.end===void 0?Se:Math.min(_.end,we);!W.extend&&Se>uA&&(y=uA,uA=Se,Se=y);var G=Oy(S,Se),D=Oy(S,uA);if(G&&D&&(W.rangeCount!==1||W.anchorNode!==G.node||W.anchorOffset!==G.offset||W.focusNode!==D.node||W.focusOffset!==D.offset)){var P=ae.createRange();P.setStart(G.node,G.offset),W.removeAllRanges(),Se>uA?(W.addRange(P),W.extend(D.node,D.offset)):(P.setEnd(D.node,D.offset),W.addRange(P))}}}}for(ae=[],W=S;W=W.parentNode;)W.nodeType===1&&ae.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ae.length;S++){var ie=ae[S];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}nu=!!Ig,_g=Ig=null}finally{AA=d,Z.p=o,L.T=a}}A.current=n,zA=2}}function $v(){if(zA===2){zA=0;var A=_r,n=Ea,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=L.T,L.T=null;var o=Z.p;Z.p=2;var d=AA;AA|=4;try{Qv(A,n.alternate,n)}finally{AA=d,Z.p=o,L.T=a}}zA=3}}function eb(){if(zA===4||zA===3){zA=0,Vi();var A=_r,n=Ea,a=Zn,o=kv;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?zA=5:(zA=0,Ea=_r=null,Ab(A,A.pendingLanes));var d=A.pendingLanes;if(d===0&&(Ir=null),Ls(a),n=n.stateNode,Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(qe,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=L.T,d=Z.p,Z.p=2,L.T=null;try{for(var p=A.onRecoverableError,y=0;y<o.length;y++){var S=o[y];p(S.value,{componentStack:S.stack})}}finally{L.T=n,Z.p=d}}(Zn&3)!==0&&zc(),Sn(A),d=A.pendingLanes,(a&261930)!==0&&(d&42)!==0?A===wg?ml++:(ml=0,wg=A):ml=0,Bl(0)}}function Ab(A,n){(A.pooledCacheLanes&=n)===0&&(n=A.pooledCache,n!=null&&(A.pooledCache=null,Ws(n)))}function zc(){return Wv(),$v(),eb(),tb()}function tb(){if(zA!==5)return!1;var A=_r,n=mg;mg=0;var a=Ls(Zn),o=L.T,d=Z.p;try{Z.p=32>a?32:a,L.T=null,a=Bg,Bg=null;var p=_r,y=Zn;if(zA=0,Ea=_r=null,Zn=0,(AA&6)!==0)throw Error(i(331));var S=AA;if(AA|=4,Rv(p.current),Hv(p,p.current,y,a),AA=S,Bl(0),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(qe,p)}catch{}return!0}finally{Z.p=d,L.T=o,Ab(A,n)}}function nb(A,n,a){n=qt(a,n),n=Zh(A.stateNode,n,2),A=Sr(A,n,2),A!==null&&(ln(A,2),Sn(A))}function aA(A,n,a){if(A.tag===3)nb(A,A,a);else for(;n!==null;){if(n.tag===3){nb(n,A,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ir===null||!Ir.has(o))){A=qt(a,A),a=rv(2),o=Sr(n,a,2),o!==null&&(iv(a,o,n,A),ln(o,2),Sn(o));break}}n=n.return}}function Eg(A,n,a){var o=A.pingCache;if(o===null){o=A.pingCache=new OO;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(a)||(hg=!0,d.add(a),A=jO.bind(null,A,n,a),n.then(A,A))}function jO(A,n,a){var o=A.pingCache;o!==null&&o.delete(n),A.pingedLanes|=A.suspendedLanes&a,A.warmLanes&=~a,dA===A&&(je&a)===a&&(FA===4||FA===3&&(je&62914560)===je&&300>XA()-Dc?(AA&2)===0&&va(A,0):gg|=a,ya===je&&(ya=0)),Sn(A)}function rb(A,n){n===0&&(n=Br()),A=ii(A,n),A!==null&&(ln(A,n),Sn(A))}function KO(A){var n=A.memoizedState,a=0;n!==null&&(a=n.retryLane),rb(A,a)}function VO(A,n){var a=0;switch(A.tag){case 31:case 13:var o=A.stateNode,d=A.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=A.stateNode;break;case 22:o=A.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),rb(A,a)}function GO(A,n){return ut(A,n)}var Pc=null,xa=null,vg=!1,Yc=!1,bg=!1,Mr=0;function Sn(A){A!==xa&&A.next===null&&(xa===null?Pc=xa=A:xa=xa.next=A),Yc=!0,vg||(vg=!0,PO())}function Bl(A,n){if(!bg&&Yc){bg=!0;do for(var a=!1,o=Pc;o!==null;){if(A!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,S=o.pingedLanes;p=(1<<31-Ye(42|A)+1)-1,p&=d&~(y&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,lb(o,p))}else p=je,p=qA(o,o===dA?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||He(o,p)||(a=!0,lb(o,p));o=o.next}while(a);bg=!1}}function zO(){ib()}function ib(){Yc=vg=!1;var A=0;Mr!==0&&tR()&&(A=Mr);for(var n=XA(),a=null,o=Pc;o!==null;){var d=o.next,p=ab(o,n);p===0?(o.next=null,a===null?Pc=d:a.next=d,d===null&&(xa=a)):(a=o,(A!==0||(p&3)!==0)&&(Yc=!0)),o=d}zA!==0&&zA!==5||Bl(A),Mr!==0&&(Mr=0)}function ab(A,n){for(var a=A.suspendedLanes,o=A.pingedLanes,d=A.expirationTimes,p=A.pendingLanes&-62914561;0<p;){var y=31-Ye(p),S=1<<y,_=d[y];_===-1?((S&a)===0||(S&o)!==0)&&(d[y]=zt(S,n)):_<=n&&(A.expiredLanes|=S),p&=~S}if(n=dA,a=je,a=qA(A,A===n?a:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o=A.callbackNode,a===0||A===n&&(iA===2||iA===9)||A.cancelPendingCommit!==null)return o!==null&&o!==null&&yn(o),A.callbackNode=null,A.callbackPriority=0;if((a&3)===0||He(A,a)){if(n=a&-a,n===A.callbackPriority)return n;switch(o!==null&&yn(o),Ls(a)){case 2:case 8:a=K;break;case 32:a=le;break;case 268435456:a=Ee;break;default:a=le}return o=sb.bind(null,A),a=ut(a,o),A.callbackPriority=n,A.callbackNode=a,n}return o!==null&&o!==null&&yn(o),A.callbackPriority=2,A.callbackNode=null,2}function sb(A,n){if(zA!==0&&zA!==5)return A.callbackNode=null,A.callbackPriority=0,null;var a=A.callbackNode;if(zc()&&A.callbackNode!==a)return null;var o=je;return o=qA(A,A===dA?o:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o===0?null:(Kv(A,o,n),ab(A,XA()),A.callbackNode!=null&&A.callbackNode===a?sb.bind(null,A):null)}function lb(A,n){if(zc())return null;Kv(A,n,!0)}function PO(){rR(function(){(AA&6)!==0?ut(R,zO):ib()})}function xg(){if(Mr===0){var A=ca;A===0&&(A=xA,xA<<=1,(xA&261888)===0&&(xA=256)),Mr=A}return Mr}function ob(A){return A==null||typeof A=="symbol"||typeof A=="boolean"?null:typeof A=="function"?A:Ac(""+A)}function cb(A,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,A.id&&a.setAttribute("form",A.id),n.parentNode.insertBefore(a,n),A=new FormData(A),a.parentNode.removeChild(a),A}function YO(A,n,a,o,d){if(n==="submit"&&a&&a.stateNode===d){var p=ob((d[At]||null).action),y=o.submitter;y&&(n=(n=y[At]||null)?ob(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var S=new ic("action","action",null,o,d);A.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Mr!==0){var _=y?cb(d,y):new FormData(d);zh(a,{pending:!0,data:_,method:d.method,action:p},null,_)}}else typeof p=="function"&&(S.preventDefault(),_=y?cb(d,y):new FormData(d),zh(a,{pending:!0,data:_,method:d.method,action:p},p,_))},currentTarget:d}]})}}for(var Sg=0;Sg<lh.length;Sg++){var Qg=lh[Sg],XO=Qg.toLowerCase(),qO=Qg[0].toUpperCase()+Qg.slice(1);on(XO,"on"+qO)}on(jy,"onAnimationEnd"),on(Ky,"onAnimationIteration"),on(Vy,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(uO,"onTransitionRun"),on(fO,"onTransitionStart"),on(dO,"onTransitionCancel"),on(Gy,"onTransitionEnd"),Ji("onMouseEnter",["mouseout","mouseover"]),Ji("onMouseLeave",["mouseout","mouseover"]),Ji("onPointerEnter",["pointerout","pointerover"]),Ji("onPointerLeave",["pointerout","pointerover"]),Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wl="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(" "),JO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wl));function ub(A,n){n=(n&4)!==0;for(var a=0;a<A.length;a++){var o=A[a],d=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var y=o.length-1;0<=y;y--){var S=o[y],_=S.instance,Y=S.currentTarget;if(S=S.listener,_!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=Y;try{p(d)}catch(re){lc(re)}d.currentTarget=null,p=_}else for(y=0;y<o.length;y++){if(S=o[y],_=S.instance,Y=S.currentTarget,S=S.listener,_!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=Y;try{p(d)}catch(re){lc(re)}d.currentTarget=null,p=_}}}}function De(A,n){var a=n[kd];a===void 0&&(a=n[kd]=new Set);var o=A+"__bubble";a.has(o)||(fb(n,A,2,!1),a.add(o))}function Ug(A,n,a){var o=0;n&&(o|=4),fb(a,A,o,n)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function Fg(A){if(!A[Xc]){A[Xc]=!0,iy.forEach(function(a){a!=="selectionchange"&&(JO.has(a)||Ug(a,!1,A),Ug(a,!0,A))});var n=A.nodeType===9?A:A.ownerDocument;n===null||n[Xc]||(n[Xc]=!0,Ug("selectionchange",!1,n))}}function fb(A,n,a,o){switch(jb(n)){case 2:var d=bR;break;case 8:d=xR;break;default:d=Gg}a=d.bind(null,n,a,A),d=void 0,!qd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?A.addEventListener(n,a,{capture:!0,passive:d}):A.addEventListener(n,a,!0):d!==void 0?A.addEventListener(n,a,{passive:d}):A.addEventListener(n,a,!1)}function Tg(A,n,a,o,d){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===d)break;if(y===4)for(y=o.return;y!==null;){var _=y.tag;if((_===3||_===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;S!==null;){if(y=Yi(S),y===null)return;if(_=y.tag,_===5||_===6||_===26||_===27){o=p=y;continue e}S=S.parentNode}}o=o.return}my(function(){var Y=p,re=Yd(a),ae=[];e:{var X=zy.get(A);if(X!==void 0){var W=ic,we=A;switch(A){case"keypress":if(nc(a)===0)break e;case"keydown":case"keyup":W=VM;break;case"focusin":we="focus",W=$d;break;case"focusout":we="blur",W=$d;break;case"beforeblur":case"afterblur":W=$d;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=Cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=NM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=PM;break;case jy:case Ky:case Vy:W=HM;break;case Gy:W=XM;break;case"scroll":case"scrollend":W=FM;break;case"wheel":W=JM;break;case"copy":case"cut":case"paste":W=OM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=Ey;break;case"toggle":case"beforetoggle":W=WM}var Se=(n&4)!==0,uA=!Se&&(A==="scroll"||A==="scrollend"),G=Se?X!==null?X+"Capture":null:X;Se=[];for(var D=Y,P;D!==null;){var ie=D;if(P=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||P===null||G===null||(ie=js(D,G),ie!=null&&Se.push(Cl(D,ie,P))),uA)break;D=D.return}0<Se.length&&(X=new W(X,we,null,a,re),ae.push({event:X,listeners:Se}))}}if((n&7)===0){e:{if(X=A==="mouseover"||A==="pointerover",W=A==="mouseout"||A==="pointerout",X&&a!==Pd&&(we=a.relatedTarget||a.fromElement)&&(Yi(we)||we[ei]))break e;if((W||X)&&(X=re.window===re?re:(X=re.ownerDocument)?X.defaultView||X.parentWindow:window,W?(we=a.relatedTarget||a.toElement,W=Y,we=we?Yi(we):null,we!==null&&(uA=l(we),Se=we.tag,we!==uA||Se!==5&&Se!==27&&Se!==6)&&(we=null)):(W=null,we=Y),W!==we)){if(Se=Cy,ie="onMouseLeave",G="onMouseEnter",D="mouse",(A==="pointerout"||A==="pointerover")&&(Se=Ey,ie="onPointerLeave",G="onPointerEnter",D="pointer"),uA=W==null?X:ks(W),P=we==null?X:ks(we),X=new Se(ie,D+"leave",W,a,re),X.target=uA,X.relatedTarget=P,ie=null,Yi(re)===Y&&(Se=new Se(G,D+"enter",we,a,re),Se.target=P,Se.relatedTarget=uA,ie=Se),uA=ie,W&&we)A:{for(Se=ZO,G=W,D=we,P=0,ie=G;ie;ie=Se(ie))P++;ie=0;for(var be=D;be;be=Se(be))ie++;for(;0<P-ie;)G=Se(G),P--;for(;0<ie-P;)D=Se(D),ie--;for(;P--;){if(G===D||D!==null&&G===D.alternate){Se=G;break A}G=Se(G),D=Se(D)}Se=null}else Se=null;W!==null&&db(ae,X,W,Se,!1),we!==null&&uA!==null&&db(ae,uA,we,Se,!0)}}e:{if(X=Y?ks(Y):window,W=X.nodeName&&X.nodeName.toLowerCase(),W==="select"||W==="input"&&X.type==="file")var Ze=Ty;else if(Uy(X))if(Ny)Ze=lO;else{Ze=aO;var ve=iO}else W=X.nodeName,!W||W.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?Y&&zd(Y.elementType)&&(Ze=Ty):Ze=sO;if(Ze&&(Ze=Ze(A,Y))){Fy(ae,Ze,a,re);break e}ve&&ve(A,X,Y),A==="focusout"&&Y&&X.type==="number"&&Y.memoizedProps.value!=null&&Gd(X,"number",X.value)}switch(ve=Y?ks(Y):window,A){case"focusin":(Uy(ve)||ve.contentEditable==="true")&&(ta=ve,ih=Y,qs=null);break;case"focusout":qs=ih=ta=null;break;case"mousedown":ah=!0;break;case"contextmenu":case"mouseup":case"dragend":ah=!1,Dy(ae,a,re);break;case"selectionchange":if(cO)break;case"keydown":case"keyup":Dy(ae,a,re)}var Me;if(Ah)e:{switch(A){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else Aa?Sy(A,a)&&(Ke="onCompositionEnd"):A==="keydown"&&a.keyCode===229&&(Ke="onCompositionStart");Ke&&(vy&&a.locale!=="ko"&&(Aa||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&Aa&&(Me=By()):(wr=re,Jd="value"in wr?wr.value:wr.textContent,Aa=!0)),ve=qc(Y,Ke),0<ve.length&&(Ke=new yy(Ke,A,null,a,re),ae.push({event:Ke,listeners:ve}),Me?Ke.data=Me:(Me=Qy(a),Me!==null&&(Ke.data=Me)))),(Me=eO?AO(A,a):tO(A,a))&&(Ke=qc(Y,"onBeforeInput"),0<Ke.length&&(ve=new yy("onBeforeInput","beforeinput",null,a,re),ae.push({event:ve,listeners:Ke}),ve.data=Me)),YO(ae,A,Y,a,re)}ub(ae,n)})}function Cl(A,n,a){return{instance:A,listener:n,currentTarget:a}}function qc(A,n){for(var a=n+"Capture",o=[];A!==null;){var d=A,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=js(A,a),d!=null&&o.unshift(Cl(A,d,p)),d=js(A,n),d!=null&&o.push(Cl(A,d,p))),A.tag===3)return o;A=A.return}return[]}function ZO(A){if(A===null)return null;do A=A.return;while(A&&A.tag!==5&&A.tag!==27);return A||null}function db(A,n,a,o,d){for(var p=n._reactName,y=[];a!==null&&a!==o;){var S=a,_=S.alternate,Y=S.stateNode;if(S=S.tag,_!==null&&_===o)break;S!==5&&S!==26&&S!==27||Y===null||(_=Y,d?(Y=js(a,p),Y!=null&&y.unshift(Cl(a,Y,_))):d||(Y=js(a,p),Y!=null&&y.push(Cl(a,Y,_)))),a=a.return}y.length!==0&&A.push({event:n,listeners:y})}var WO=/\r\n?/g,$O=/\u0000|\uFFFD/g;function hb(A){return(typeof A=="string"?A:""+A).replace(WO,`
|
|
9
|
-
`).replace($O,"")}function gb(A,n){return n=hb(n),hb(A)===n}function cA(A,n,a,o,d,p){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Wi(A,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Wi(A,""+o);break;case"className":$o(A,"class",o);break;case"tabIndex":$o(A,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":$o(A,a,o);break;case"style":gy(A,o,p);break;case"data":if(n!=="object"){$o(A,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){A.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=Ac(""+o),A.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){A.setAttribute(a,"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 p=="function"&&(a==="formAction"?(n!=="input"&&cA(A,n,"name",d.name,d,null),cA(A,n,"formEncType",d.formEncType,d,null),cA(A,n,"formMethod",d.formMethod,d,null),cA(A,n,"formTarget",d.formTarget,d,null)):(cA(A,n,"encType",d.encType,d,null),cA(A,n,"method",d.method,d,null),cA(A,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=Ac(""+o),A.setAttribute(a,o);break;case"onClick":o!=null&&(A.onclick=On);break;case"onScroll":o!=null&&De("scroll",A);break;case"onScrollEnd":o!=null&&De("scrollend",A);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"multiple":A.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":A.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){A.removeAttribute("xlink:href");break}a=Ac(""+o),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""+o):A.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""):A.removeAttribute(a);break;case"capture":case"download":o===!0?A.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,o):A.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?A.setAttribute(a,o):A.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?A.removeAttribute(a):A.setAttribute(a,o);break;case"popover":De("beforetoggle",A),De("toggle",A),Wo(A,"popover",o);break;case"xlinkActuate":Mn(A,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Mn(A,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Mn(A,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Mn(A,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Mn(A,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Mn(A,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Mn(A,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Mn(A,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Mn(A,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Wo(A,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QM.get(a)||a,Wo(A,a,o))}}function Ng(A,n,a,o,d,p){switch(a){case"style":gy(A,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"children":typeof o=="string"?Wi(A,o):(typeof o=="number"||typeof o=="bigint")&&Wi(A,""+o);break;case"onScroll":o!=null&&De("scroll",A);break;case"onScrollEnd":o!=null&&De("scrollend",A);break;case"onClick":o!=null&&(A.onclick=On);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ay.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=A[At]||null,p=p!=null?p[a]:null,typeof p=="function"&&A.removeEventListener(n,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in A?A[a]=null:A.hasAttribute(a)&&A.removeAttribute(a)),A.addEventListener(n,o,d);break e}a in A?A[a]=o:o===!0?A.setAttribute(a,""):Wo(A,a,o)}}}function it(A,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",A),De("load",A);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:cA(A,n,p,y,a,null)}}d&&cA(A,n,"srcSet",a.srcSet,a,null),o&&cA(A,n,"src",a.src,a,null);return;case"input":De("invalid",A);var S=p=y=d=null,_=null,Y=null;for(o in a)if(a.hasOwnProperty(o)){var re=a[o];if(re!=null)switch(o){case"name":d=re;break;case"type":y=re;break;case"checked":_=re;break;case"defaultChecked":Y=re;break;case"value":p=re;break;case"defaultValue":S=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,n));break;default:cA(A,n,o,re,a,null)}}uy(A,p,S,_,Y,y,d,!1);return;case"select":De("invalid",A),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(S=a[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":y=S;break;case"multiple":o=S;default:cA(A,n,d,S,a,null)}n=p,a=y,A.multiple=!!o,n!=null?Zi(A,!!o,n,!1):a!=null&&Zi(A,!!o,a,!0);return;case"textarea":De("invalid",A),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":o=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:cA(A,n,y,S,a,null)}dy(A,o,d,p);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(o=a[_],o!=null))switch(_){case"selected":A.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:cA(A,n,_,o,a,null)}return;case"dialog":De("beforetoggle",A),De("toggle",A),De("cancel",A),De("close",A);break;case"iframe":case"object":De("load",A);break;case"video":case"audio":for(o=0;o<wl.length;o++)De(wl[o],A);break;case"image":De("error",A),De("load",A);break;case"details":De("toggle",A);break;case"embed":case"source":case"link":De("error",A),De("load",A);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in a)if(a.hasOwnProperty(Y)&&(o=a[Y],o!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:cA(A,n,Y,o,a,null)}return;default:if(zd(n)){for(re in a)a.hasOwnProperty(re)&&(o=a[re],o!==void 0&&Ng(A,n,re,o,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(o=a[S],o!=null&&cA(A,n,S,o,a,null))}function eR(A,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,S=null,_=null,Y=null,re=null;for(W in a){var ae=a[W];if(a.hasOwnProperty(W)&&ae!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":_=ae;default:o.hasOwnProperty(W)||cA(A,n,W,null,o,ae)}}for(var X in o){var W=o[X];if(ae=a[X],o.hasOwnProperty(X)&&(W!=null||ae!=null))switch(X){case"type":p=W;break;case"name":d=W;break;case"checked":Y=W;break;case"defaultChecked":re=W;break;case"value":y=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,n));break;default:W!==ae&&cA(A,n,X,W,o,ae)}}Vd(A,y,S,_,Y,re,p,d);return;case"select":W=y=S=X=null;for(p in a)if(_=a[p],a.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":W=_;default:o.hasOwnProperty(p)||cA(A,n,p,null,o,_)}for(d in o)if(p=o[d],_=a[d],o.hasOwnProperty(d)&&(p!=null||_!=null))switch(d){case"value":X=p;break;case"defaultValue":S=p;break;case"multiple":y=p;default:p!==_&&cA(A,n,d,p,o,_)}n=S,a=y,o=W,X!=null?Zi(A,!!a,X,!1):!!o!=!!a&&(n!=null?Zi(A,!!a,n,!0):Zi(A,!!a,a?[]:"",!1));return;case"textarea":W=X=null;for(S in a)if(d=a[S],a.hasOwnProperty(S)&&d!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:cA(A,n,S,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":X=d;break;case"defaultValue":W=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&cA(A,n,y,d,o,p)}fy(A,X,W);return;case"option":for(var we in a)if(X=a[we],a.hasOwnProperty(we)&&X!=null&&!o.hasOwnProperty(we))switch(we){case"selected":A.selected=!1;break;default:cA(A,n,we,null,o,X)}for(_ in o)if(X=o[_],W=a[_],o.hasOwnProperty(_)&&X!==W&&(X!=null||W!=null))switch(_){case"selected":A.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:cA(A,n,_,X,o,W)}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 Se in a)X=a[Se],a.hasOwnProperty(Se)&&X!=null&&!o.hasOwnProperty(Se)&&cA(A,n,Se,null,o,X);for(Y in o)if(X=o[Y],W=a[Y],o.hasOwnProperty(Y)&&X!==W&&(X!=null||W!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,n));break;default:cA(A,n,Y,X,o,W)}return;default:if(zd(n)){for(var uA in a)X=a[uA],a.hasOwnProperty(uA)&&X!==void 0&&!o.hasOwnProperty(uA)&&Ng(A,n,uA,void 0,o,X);for(re in o)X=o[re],W=a[re],!o.hasOwnProperty(re)||X===W||X===void 0&&W===void 0||Ng(A,n,re,X,o,W);return}}for(var G in a)X=a[G],a.hasOwnProperty(G)&&X!=null&&!o.hasOwnProperty(G)&&cA(A,n,G,null,o,X);for(ae in o)X=o[ae],W=a[ae],!o.hasOwnProperty(ae)||X===W||X==null&&W==null||cA(A,n,ae,X,o,W)}function pb(A){switch(A){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AR(){if(typeof performance.getEntriesByType=="function"){for(var A=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var d=a[o],p=d.transferSize,y=d.initiatorType,S=d.duration;if(p&&S&&pb(y)){for(y=0,S=d.responseEnd,o+=1;o<a.length;o++){var _=a[o],Y=_.startTime;if(Y>S)break;var re=_.transferSize,ae=_.initiatorType;re&&pb(ae)&&(_=_.responseEnd,y+=re*(_<S?1:(S-Y)/(_-Y)))}if(--o,n+=8*(p+y)/(d.duration/1e3),A++,10<A)break}}if(0<A)return n/A/1e6}return navigator.connection&&(A=navigator.connection.downlink,typeof A=="number")?A:5}var Ig=null,_g=null;function Jc(A){return A.nodeType===9?A:A.ownerDocument}function mb(A){switch(A){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bb(A,n){if(A===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return A===1&&n==="foreignObject"?0:A}function Hg(A,n){return A==="textarea"||A==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Mg=null;function tR(){var A=window.event;return A&&A.type==="popstate"?A===Mg?!1:(Mg=A,!0):(Mg=null,!1)}var wb=typeof setTimeout=="function"?setTimeout:void 0,nR=typeof clearTimeout=="function"?clearTimeout:void 0,Cb=typeof Promise=="function"?Promise:void 0,rR=typeof queueMicrotask=="function"?queueMicrotask:typeof Cb<"u"?function(A){return Cb.resolve(null).then(A).catch(iR)}:wb;function iR(A){setTimeout(function(){throw A})}function Or(A){return A==="head"}function yb(A,n){var a=n,o=0;do{var d=a.nextSibling;if(A.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(o===0){A.removeChild(d),Fa(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")yl(A.ownerDocument.documentElement);else if(a==="head"){a=A.ownerDocument.head,yl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,S=p.nodeName;p[Ds]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&yl(A.ownerDocument.body);a=d}while(a);Fa(n)}function Eb(A,n){var a=A;A=0;do{var o=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(A===0)break;A--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||A++;a=o}while(a)}function Og(A){var n=A.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Og(a),jd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}A.removeChild(a)}}function aR(A,n,a,o){for(;A.nodeType===1;){var d=a;if(A.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(A.nodeName!=="INPUT"||A.type!=="hidden"))break}else if(o){if(!A[Ds])switch(n){case"meta":if(!A.hasAttribute("itemprop"))break;return A;case"link":if(p=A.getAttribute("rel"),p==="stylesheet"&&A.hasAttribute("data-precedence"))break;if(p!==d.rel||A.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||A.getAttribute("title")!==(d.title==null?null:d.title))break;return A;case"style":if(A.hasAttribute("data-precedence"))break;return A;case"script":if(p=A.getAttribute("src"),(p!==(d.src==null?null:d.src)||A.getAttribute("type")!==(d.type==null?null:d.type)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&A.hasAttribute("async")&&!A.hasAttribute("itemprop"))break;return A;default:return A}}else if(n==="input"&&A.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&A.getAttribute("name")===p)return A}else return A;if(A=en(A.nextSibling),A===null)break}return null}function sR(A,n,a){if(n==="")return null;for(;A.nodeType!==3;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!a||(A=en(A.nextSibling),A===null))return null;return A}function vb(A,n){for(;A.nodeType!==8;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!n||(A=en(A.nextSibling),A===null))return null;return A}function Rg(A){return A.data==="$?"||A.data==="$~"}function Lg(A){return A.data==="$!"||A.data==="$?"&&A.ownerDocument.readyState!=="loading"}function lR(A,n){var a=A.ownerDocument;if(A.data==="$~")A._reactRetry=n;else if(A.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),A._reactRetry=o}}function en(A){for(;A!=null;A=A.nextSibling){var n=A.nodeType;if(n===1||n===3)break;if(n===8){if(n=A.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return A}var Dg=null;function bb(A){A=A.nextSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="/$"||a==="/&"){if(n===0)return en(A.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}A=A.nextSibling}return null}function xb(A){A=A.previousSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return A;n--}else a!=="/$"&&a!=="/&"||n++}A=A.previousSibling}return null}function Sb(A,n,a){switch(n=Jc(a),A){case"html":if(A=n.documentElement,!A)throw Error(i(452));return A;case"head":if(A=n.head,!A)throw Error(i(453));return A;case"body":if(A=n.body,!A)throw Error(i(454));return A;default:throw Error(i(451))}}function yl(A){for(var n=A.attributes;n.length;)A.removeAttributeNode(n[0]);jd(A)}var An=new Map,Qb=new Set;function Zc(A){return typeof A.getRootNode=="function"?A.getRootNode():A.nodeType===9?A:A.ownerDocument}var Wn=Z.d;Z.d={f:oR,r:cR,D:uR,C:fR,L:dR,m:hR,X:pR,S:gR,M:mR};function oR(){var A=Wn.f(),n=Kc();return A||n}function cR(A){var n=Xi(A);n!==null&&n.tag===5&&n.type==="form"?GE(n):Wn.r(A)}var Sa=typeof document>"u"?null:document;function Ub(A,n,a){var o=Sa;if(o&&typeof n=="string"&&n){var d=Yt(n);d='link[rel="'+A+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Qb.has(d)||(Qb.add(d),A={rel:A,crossOrigin:a,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),it(n,"link",A),JA(n),o.head.appendChild(n)))}}function uR(A){Wn.D(A),Ub("dns-prefetch",A,null)}function fR(A,n){Wn.C(A,n),Ub("preconnect",A,n)}function dR(A,n,a){Wn.L(A,n,a);var o=Sa;if(o&&A&&n){var d='link[rel="preload"][as="'+Yt(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Yt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Yt(a.imageSizes)+'"]')):d+='[href="'+Yt(A)+'"]';var p=d;switch(n){case"style":p=Qa(A);break;case"script":p=Ua(A)}An.has(p)||(A=B({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:A,as:n},a),An.set(p,A),o.querySelector(d)!==null||n==="style"&&o.querySelector(El(p))||n==="script"&&o.querySelector(vl(p))||(n=o.createElement("link"),it(n,"link",A),JA(n),o.head.appendChild(n)))}}function hR(A,n){Wn.m(A,n);var a=Sa;if(a&&A){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Yt(o)+'"][href="'+Yt(A)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ua(A)}if(!An.has(p)&&(A=B({rel:"modulepreload",href:A},n),An.set(p,A),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(vl(p)))return}o=a.createElement("link"),it(o,"link",A),JA(o),a.head.appendChild(o)}}}function gR(A,n,a){Wn.S(A,n,a);var o=Sa;if(o&&A){var d=qi(o).hoistableStyles,p=Qa(A);n=n||"default";var y=d.get(p);if(!y){var S={loading:0,preload:null};if(y=o.querySelector(El(p)))S.loading=5;else{A=B({rel:"stylesheet",href:A,"data-precedence":n},a),(a=An.get(p))&&kg(A,a);var _=y=o.createElement("link");JA(_),it(_,"link",A),_._p=new Promise(function(Y,re){_.onload=Y,_.onerror=re}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Wc(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:S},d.set(p,y)}}}function pR(A,n){Wn.X(A,n);var a=Sa;if(a&&A){var o=qi(a).hoistableScripts,d=Ua(A),p=o.get(d);p||(p=a.querySelector(vl(d)),p||(A=B({src:A,async:!0},n),(n=An.get(d))&&jg(A,n),p=a.createElement("script"),JA(p),it(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function mR(A,n){Wn.M(A,n);var a=Sa;if(a&&A){var o=qi(a).hoistableScripts,d=Ua(A),p=o.get(d);p||(p=a.querySelector(vl(d)),p||(A=B({src:A,async:!0,type:"module"},n),(n=An.get(d))&&jg(A,n),p=a.createElement("script"),JA(p),it(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Fb(A,n,a,o){var d=(d=ue.current)?Zc(d):null;if(!d)throw Error(i(446));switch(A){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Qa(a.href),a=qi(d).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){A=Qa(a.href);var p=qi(d).hoistableStyles,y=p.get(A);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(A,y),(p=d.querySelector(El(A)))&&!p._p&&(y.instance=p,y.state.loading=5),An.has(A)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},An.set(A,a),p||BR(d,A,a,y.state))),n&&o===null)throw Error(i(528,""));return y}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ua(a),a=qi(d).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,A))}}function Qa(A){return'href="'+Yt(A)+'"'}function El(A){return'link[rel="stylesheet"]['+A+"]"}function Tb(A){return B({},A,{"data-precedence":A.precedence,precedence:null})}function BR(A,n,a,o){A.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=A.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),it(n,"link",a),JA(n),A.head.appendChild(n))}function Ua(A){return'[src="'+Yt(A)+'"]'}function vl(A){return"script[async]"+A}function Nb(A,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=A.querySelector('style[data-href~="'+Yt(a.href)+'"]');if(o)return n.instance=o,JA(o),o;var d=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(A.ownerDocument||A).createElement("style"),JA(o),it(o,"style",d),Wc(o,a.precedence,A),n.instance=o;case"stylesheet":d=Qa(a.href);var p=A.querySelector(El(d));if(p)return n.state.loading|=4,n.instance=p,JA(p),p;o=Tb(a),(d=An.get(d))&&kg(o,d),p=(A.ownerDocument||A).createElement("link"),JA(p);var y=p;return y._p=new Promise(function(S,_){y.onload=S,y.onerror=_}),it(p,"link",o),n.state.loading|=4,Wc(p,a.precedence,A),n.instance=p;case"script":return p=Ua(a.src),(d=A.querySelector(vl(p)))?(n.instance=d,JA(d),d):(o=a,(d=An.get(p))&&(o=B({},a),jg(o,d)),A=A.ownerDocument||A,d=A.createElement("script"),JA(d),it(d,"link",o),A.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Wc(o,a.precedence,A));return n.instance}function Wc(A,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var S=o[y];if(S.dataset.precedence===n)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(A,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(A,n.firstChild))}function kg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.title==null&&(A.title=n.title)}function jg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.integrity==null&&(A.integrity=n.integrity)}var $c=null;function Ib(A,n,a){if($c===null){var o=new Map,d=$c=new Map;d.set(a,o)}else d=$c,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(A))return o;for(o.set(A,null),a=a.getElementsByTagName(A),d=0;d<a.length;d++){var p=a[d];if(!(p[Ds]||p[QA]||A==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=A+y;var S=o.get(y);S?S.push(p):o.set(y,[p])}}return o}function _b(A,n,a){A=A.ownerDocument||A,A.head.insertBefore(a,n==="title"?A.querySelector("head > title"):null)}function wR(A,n,a){if(a===1||n.itemProp!=null)return!1;switch(A){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return A=n.disabled,typeof n.precedence=="string"&&A==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Hb(A){return!(A.type==="stylesheet"&&(A.state.loading&3)===0)}function CR(A,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Qa(o.href),p=n.querySelector(El(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(A.count++,A=eu.bind(A),n.then(A,A)),a.state.loading|=4,a.instance=p,JA(p);return}p=n.ownerDocument||n,o=Tb(o),(d=An.get(d))&&kg(o,d),p=p.createElement("link"),JA(p);var y=p;y._p=new Promise(function(S,_){y.onload=S,y.onerror=_}),it(p,"link",o),a.instance=p}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(A.count++,a=eu.bind(A),n.addEventListener("load",a),n.addEventListener("error",a))}}var Kg=0;function yR(A,n){return A.stylesheets&&A.count===0&&tu(A,A.stylesheets),0<A.count||0<A.imgCount?function(a){var o=setTimeout(function(){if(A.stylesheets&&tu(A,A.stylesheets),A.unsuspend){var p=A.unsuspend;A.unsuspend=null,p()}},6e4+n);0<A.imgBytes&&Kg===0&&(Kg=62500*AR());var d=setTimeout(function(){if(A.waitingForImages=!1,A.count===0&&(A.stylesheets&&tu(A,A.stylesheets),A.unsuspend)){var p=A.unsuspend;A.unsuspend=null,p()}},(A.imgBytes>Kg?50:800)+n);return A.unsuspend=a,function(){A.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tu(this,this.stylesheets);else if(this.unsuspend){var A=this.unsuspend;this.unsuspend=null,A()}}}var Au=null;function tu(A,n){A.stylesheets=null,A.unsuspend!==null&&(A.count++,Au=new Map,n.forEach(ER,A),Au=null,eu.call(A))}function ER(A,n){if(!(n.state.loading&4)){var a=Au.get(A);if(a)var o=a.get(null);else{a=new Map,Au.set(A,a);for(var d=A.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=eu.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(A=A.nodeType===9?A.head:A,A.insertBefore(d,A.firstChild)),n.state.loading|=4}}var bl={$$typeof:M,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function vR(A,n,a,o,d,p,y,S,_){this.tag=1,this.containerInfo=A,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=sn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sn(0),this.hiddenUpdates=sn(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Mb(A,n,a,o,d,p,y,S,_,Y,re,ae){return A=new vR(A,n,a,y,_,Y,re,ae,S),n=1,p===!0&&(n|=24),p=Tt(3,null,null,n),A.current=p,p.stateNode=A,n=yh(),n.refCount++,A.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:n},xh(p),A}function Ob(A){return A?(A=ia,A):ia}function Rb(A,n,a,o,d,p){d=Ob(d),o.context===null?o.context=d:o.pendingContext=d,o=xr(n),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=Sr(A,o,n),a!==null&&(bt(a,A,n),tl(a,A,n))}function Lb(A,n){if(A=A.memoizedState,A!==null&&A.dehydrated!==null){var a=A.retryLane;A.retryLane=a!==0&&a<n?a:n}}function Vg(A,n){Lb(A,n),(A=A.alternate)&&Lb(A,n)}function Db(A){if(A.tag===13||A.tag===31){var n=ii(A,67108864);n!==null&&bt(n,A,67108864),Vg(A,67108864)}}function kb(A){if(A.tag===13||A.tag===31){var n=Mt();n=Rs(n);var a=ii(A,n);a!==null&&bt(a,A,n),Vg(A,n)}}var nu=!0;function bR(A,n,a,o){var d=L.T;L.T=null;var p=Z.p;try{Z.p=2,Gg(A,n,a,o)}finally{Z.p=p,L.T=d}}function xR(A,n,a,o){var d=L.T;L.T=null;var p=Z.p;try{Z.p=8,Gg(A,n,a,o)}finally{Z.p=p,L.T=d}}function Gg(A,n,a,o){if(nu){var d=zg(o);if(d===null)Tg(A,n,o,ru,a),Kb(A,o);else if(QR(d,A,n,a,o))o.stopPropagation();else if(Kb(A,o),n&4&&-1<SR.indexOf(A)){for(;d!==null;){var p=Xi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=SA(p.pendingLanes);if(y!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var _=1<<31-Ye(y);S.entanglements[1]|=_,y&=~_}Sn(p),(AA&6)===0&&(kc=XA()+500,Bl(0))}}break;case 31:case 13:S=ii(p,2),S!==null&&bt(S,p,2),Kc(),Vg(p,2)}if(p=zg(o),p===null&&Tg(A,n,o,ru,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else Tg(A,n,o,null,a)}}function zg(A){return A=Yd(A),Pg(A)}var ru=null;function Pg(A){if(ru=null,A=Yi(A),A!==null){var n=l(A);if(n===null)A=null;else{var a=n.tag;if(a===13){if(A=c(n),A!==null)return A;A=null}else if(a===31){if(A=u(n),A!==null)return A;A=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;A=null}else n!==A&&(A=null)}}return ru=A,null}function jb(A){switch(A){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(Gi()){case R:return 2;case K:return 8;case le:case de:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var Yg=!1,Rr=null,Lr=null,Dr=null,xl=new Map,Sl=new Map,kr=[],SR="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 Kb(A,n){switch(A){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":xl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sl.delete(n.pointerId)}}function Ql(A,n,a,o,d,p){return A===null||A.nativeEvent!==p?(A={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Xi(n),n!==null&&Db(n)),A):(A.eventSystemFlags|=o,n=A.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),A)}function QR(A,n,a,o,d){switch(n){case"focusin":return Rr=Ql(Rr,A,n,a,o,d),!0;case"dragenter":return Lr=Ql(Lr,A,n,a,o,d),!0;case"mouseover":return Dr=Ql(Dr,A,n,a,o,d),!0;case"pointerover":var p=d.pointerId;return xl.set(p,Ql(xl.get(p)||null,A,n,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,Sl.set(p,Ql(Sl.get(p)||null,A,n,a,o,d)),!0}return!1}function Vb(A){var n=Yi(A.target);if(n!==null){var a=l(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){A.blockedOn=n,CA(A.priority,function(){kb(a)});return}}else if(n===31){if(n=u(a),n!==null){A.blockedOn=n,CA(A.priority,function(){kb(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){A.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}A.blockedOn=null}function iu(A){if(A.blockedOn!==null)return!1;for(var n=A.targetContainers;0<n.length;){var a=zg(A.nativeEvent);if(a===null){a=A.nativeEvent;var o=new a.constructor(a.type,a);Pd=o,a.target.dispatchEvent(o),Pd=null}else return n=Xi(a),n!==null&&Db(n),A.blockedOn=a,!1;n.shift()}return!0}function Gb(A,n,a){iu(A)&&a.delete(n)}function UR(){Yg=!1,Rr!==null&&iu(Rr)&&(Rr=null),Lr!==null&&iu(Lr)&&(Lr=null),Dr!==null&&iu(Dr)&&(Dr=null),xl.forEach(Gb),Sl.forEach(Gb)}function au(A,n){A.blockedOn===n&&(A.blockedOn=null,Yg||(Yg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UR)))}var su=null;function zb(A){su!==A&&(su=A,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){su===A&&(su=null);for(var n=0;n<A.length;n+=3){var a=A[n],o=A[n+1],d=A[n+2];if(typeof o!="function"){if(Pg(o||a)===null)continue;break}var p=Xi(a);p!==null&&(A.splice(n,3),n-=3,zh(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function Fa(A){function n(_){return au(_,A)}Rr!==null&&au(Rr,A),Lr!==null&&au(Lr,A),Dr!==null&&au(Dr,A),xl.forEach(n),Sl.forEach(n);for(var a=0;a<kr.length;a++){var o=kr[a];o.blockedOn===A&&(o.blockedOn=null)}for(;0<kr.length&&(a=kr[0],a.blockedOn===null);)Vb(a),a.blockedOn===null&&kr.shift();if(a=(A.ownerDocument||A).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[At]||null;if(typeof p=="function")y||zb(a);else if(y){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[At]||null)S=y.formAction;else if(Pg(d)!==null)continue}else S=y.action;typeof S=="function"?a[o+1]=S:(a.splice(o,3),o-=3),zb(a)}}}function Pb(){function A(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",A),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",A),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Xg(A){this._internalRoot=A}lu.prototype.render=Xg.prototype.render=function(A){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,o=Mt();Rb(a,o,A,n,null,null)},lu.prototype.unmount=Xg.prototype.unmount=function(){var A=this._internalRoot;if(A!==null){this._internalRoot=null;var n=A.containerInfo;Rb(A.current,2,null,A,null,null),Kc(),n[ei]=null}};function lu(A){this._internalRoot=A}lu.prototype.unstable_scheduleHydration=function(A){if(A){var n=Pi();A={blockedOn:null,target:A,priority:n};for(var a=0;a<kr.length&&n!==0&&n<kr[a].priority;a++);kr.splice(a,0,A),a===0&&Vb(A)}};var Yb=t.version;if(Yb!=="19.2.0")throw Error(i(527,Yb,"19.2.0"));Z.findDOMNode=function(A){var n=A._reactInternals;if(n===void 0)throw typeof A.render=="function"?Error(i(188)):(A=Object.keys(A).join(","),Error(i(268,A)));return A=h(n),A=A!==null?m(A):null,A=A===null?null:A.stateNode,A};var FR={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{qe=ou.inject(FR),Je=ou}catch{}}return Ia.createRoot=function(A,n){if(!s(A))throw Error(i(299));var a=!1,o="",d=ev,p=Av,y=tv;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Mb(A,1,!1,null,null,a,o,null,d,p,y,Pb),A[ei]=n.current,Fg(A),new Xg(n)},Ia.hydrateRoot=function(A,n,a){if(!s(A))throw Error(i(299));var o=!1,d="",p=ev,y=Av,S=tv,_=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),n=Mb(A,1,!0,n,a??null,o,d,_,p,y,S,Pb),n.context=Ob(null),a=n.current,o=Mt(),o=Rs(o),d=xr(o),d.callback=null,Sr(a,d,o),a=o,n.current.lanes=a,ln(n,a),Sn(n),A[ei]=n.current,Fg(A),new lu(n)},Ia.version="19.2.0",Ia}var ap;function n1(){if(ap)return hu.exports;ap=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),hu.exports=t1(),hu.exports}var r1=n1();function sp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Bu(...e){return t=>{let r=!1;const i=e.map(s=>{const l=sp(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():sp(e[s],null)}}}}function Qn(...e){return x.useCallback(Bu(...e),e)}function i1(e){const t=a1(e),r=x.forwardRef((i,s)=>{const{children:l,...c}=i,u=x.Children.toArray(l),f=u.find(l1);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}function a1(e){const t=x.forwardRef((r,i)=>{const{children:s,...l}=r;if(x.isValidElement(s)){const c=c1(s),u=o1(l,s.props);return s.type!==x.Fragment&&(u.ref=i?Bu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s1=Symbol("radix.slottable");function l1(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s1}function o1(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function c1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var u1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$n=u1.reduce((e,t)=>{const r=i1(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),er=globalThis?.document?x.useLayoutEffect:()=>{};function f1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var Bi=e=>{const{present:t,children:r}=e,i=d1(t),s=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),l=Qn(i.ref,h1(s));return typeof r=="function"||i.isPresent?x.cloneElement(s,{ref:l}):null};Bi.displayName="Presence";function d1(e){const[t,r]=x.useState(),i=x.useRef(null),s=x.useRef(e),l=x.useRef("none"),c=e?"mounted":"unmounted",[u,f]=f1(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Fl(i.current);l.current=u==="mounted"?h:"none"},[u]),er(()=>{const h=i.current,m=s.current;if(m!==e){const C=l.current,w=Fl(h);e?f("MOUNT"):w==="none"||h?.display==="none"?f("UNMOUNT"):f(m&&C!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),er(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,B=w=>{const b=Fl(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&b&&(f("ANIMATION_END"),!s.current)){const U=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=U)})}},C=w=>{w.target===t&&(l.current=Fl(i.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Fl(e){return e?.animationName||"none"}function h1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lp(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c),f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...v}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>v,Object.values(v));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,v=x.useContext(w);if(v)return v;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,g1(s,...t)]}function g1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function Ar(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>t.current?.(...r),[])}var p1=x.createContext(void 0);function m1(e){const t=x.useContext(p1);return e||t||"ltr"}function B1(e,[t,r]){return Math.min(r,Math.max(t,e))}function Un(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function w1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var wu="ScrollArea",[op]=lp(wu),[C1,Ot]=op(wu),cp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:l=600,...c}=e,[u,f]=x.useState(null),[h,m]=x.useState(null),[B,C]=x.useState(null),[w,v]=x.useState(null),[b,U]=x.useState(null),[Q,I]=x.useState(0),[M,z]=x.useState(0),[j,F]=x.useState(!1),[H,k]=x.useState(!1),O=Qn(t,ee=>f(ee)),$=m1(s);return g.jsx(C1,{scope:r,type:i,dir:$,scrollHideDelay:l,scrollArea:u,viewport:h,onViewportChange:m,content:B,onContentChange:C,scrollbarX:w,onScrollbarXChange:v,scrollbarXEnabled:j,onScrollbarXEnabledChange:F,scrollbarY:b,onScrollbarYChange:U,scrollbarYEnabled:H,onScrollbarYEnabledChange:k,onCornerWidthChange:I,onCornerHeightChange:z,children:g.jsx($n.div,{dir:$,...c,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":Q+"px","--radix-scroll-area-corner-height":M+"px",...e.style}})})});cp.displayName=wu;var up="ScrollAreaViewport",fp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:i,nonce:s,...l}=e,c=Ot(up,r),u=x.useRef(null),f=Qn(t,u,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx($n.div,{"data-radix-scroll-area-viewport":"",...l,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});fp.displayName=up;var fn="ScrollAreaScrollbar",Cu=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Ot(fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,u=e.orientation==="horizontal";return x.useEffect(()=>(u?l(!0):c(!0),()=>{u?l(!1):c(!1)}),[u,l,c]),s.type==="hover"?g.jsx(y1,{...i,ref:t,forceMount:r}):s.type==="scroll"?g.jsx(E1,{...i,ref:t,forceMount:r}):s.type==="auto"?g.jsx(dp,{...i,ref:t,forceMount:r}):s.type==="always"?g.jsx(yu,{...i,ref:t}):null});Cu.displayName=fn;var y1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Ot(fn,e.__scopeScrollArea),[l,c]=x.useState(!1);return x.useEffect(()=>{const u=s.scrollArea;let f=0;if(u){const h=()=>{window.clearTimeout(f),c(!0)},m=()=>{f=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return u.addEventListener("pointerenter",h),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),u.removeEventListener("pointerenter",h),u.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),g.jsx(Bi,{present:r||l,children:g.jsx(dp,{"data-state":l?"visible":"hidden",...i,ref:t})})}),E1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Ot(fn,e.__scopeScrollArea),l=e.orientation==="horizontal",c=_l(()=>f("SCROLL_END"),100),[u,f]=w1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(u==="idle"){const h=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[u,s.scrollHideDelay,f]),x.useEffect(()=>{const h=s.viewport,m=l?"scrollLeft":"scrollTop";if(h){let B=h[m];const C=()=>{const w=h[m];B!==w&&(f("SCROLL"),c()),B=w};return h.addEventListener("scroll",C),()=>h.removeEventListener("scroll",C)}},[s.viewport,l,f,c]),g.jsx(Bi,{present:r||u!=="hidden",children:g.jsx(yu,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:Un(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:Un(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),dp=x.forwardRef((e,t)=>{const r=Ot(fn,e.__scopeScrollArea),{forceMount:i,...s}=e,[l,c]=x.useState(!1),u=e.orientation==="horizontal",f=_l(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(u?h:m)}},10);return wi(r.viewport,f),wi(r.content,f),g.jsx(Bi,{present:i||l,children:g.jsx(yu,{"data-state":l?"visible":"hidden",...s,ref:t})})}),yu=x.forwardRef((e,t)=>{const{orientation:r="vertical",...i}=e,s=Ot(fn,e.__scopeScrollArea),l=x.useRef(null),c=x.useRef(0),[u,f]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=Bp(u.viewport,u.content),m={...i,sizes:u,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:C=>l.current=C,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:C=>c.current=C};function B(C,w){return U1(C,c.current,u,w)}return r==="horizontal"?g.jsx(v1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollLeft,w=wp(C,u,s.dir);l.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollLeft=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollLeft=B(C,s.dir))}}):r==="vertical"?g.jsx(b1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollTop,w=wp(C,u);l.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollTop=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollTop=B(C))}}):null}),v1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Ot(fn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Qn(t,f,l.onScrollbarXChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(gp,{"data-orientation":"horizontal",...s,ref:h,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Il(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollLeft+m.deltaX;e.onWheelScroll(C),yp(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Nl(c.paddingLeft),paddingEnd:Nl(c.paddingRight)}})}})}),b1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Ot(fn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Qn(t,f,l.onScrollbarYChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(gp,{"data-orientation":"vertical",...s,ref:h,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Il(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollTop+m.deltaY;e.onWheelScroll(C),yp(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Nl(c.paddingTop),paddingEnd:Nl(c.paddingBottom)}})}})}),[x1,hp]=op(fn),gp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:B,...C}=e,w=Ot(fn,r),[v,b]=x.useState(null),U=Qn(t,O=>b(O)),Q=x.useRef(null),I=x.useRef(""),M=w.viewport,z=i.content-i.viewport,j=Ar(m),F=Ar(f),H=_l(B,10);function k(O){if(Q.current){const $=O.clientX-Q.current.left,ee=O.clientY-Q.current.top;h({x:$,y:ee})}}return x.useEffect(()=>{const O=$=>{const ee=$.target;v?.contains(ee)&&j($,z)};return document.addEventListener("wheel",O,{passive:!1}),()=>document.removeEventListener("wheel",O,{passive:!1})},[M,v,z,j]),x.useEffect(F,[i,F]),wi(v,H),wi(w.content,H),g.jsx(x1,{scope:r,scrollbar:v,hasThumb:s,onThumbChange:Ar(l),onThumbPointerUp:Ar(c),onThumbPositionChange:F,onThumbPointerDown:Ar(u),children:g.jsx($n.div,{...C,ref:U,style:{position:"absolute",...C.style},onPointerDown:Un(e.onPointerDown,O=>{O.button===0&&(O.target.setPointerCapture(O.pointerId),Q.current=v.getBoundingClientRect(),I.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),k(O))}),onPointerMove:Un(e.onPointerMove,k),onPointerUp:Un(e.onPointerUp,O=>{const $=O.target;$.hasPointerCapture(O.pointerId)&&$.releasePointerCapture(O.pointerId),document.body.style.webkitUserSelect=I.current,w.viewport&&(w.viewport.style.scrollBehavior=""),Q.current=null})})})}),Tl="ScrollAreaThumb",pp=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=hp(Tl,e.__scopeScrollArea);return g.jsx(Bi,{present:r||s.hasThumb,children:g.jsx(S1,{ref:t,...i})})}),S1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:i,...s}=e,l=Ot(Tl,r),c=hp(Tl,r),{onThumbPositionChange:u}=c,f=Qn(t,B=>c.onThumbChange(B)),h=x.useRef(void 0),m=_l(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const B=l.viewport;if(B){const C=()=>{if(m(),!h.current){const w=F1(B,u);h.current=w,u()}};return u(),B.addEventListener("scroll",C),()=>B.removeEventListener("scroll",C)}},[l.viewport,m,u]),g.jsx($n.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Un(e.onPointerDownCapture,B=>{const w=B.target.getBoundingClientRect(),v=B.clientX-w.left,b=B.clientY-w.top;c.onThumbPointerDown({x:v,y:b})}),onPointerUp:Un(e.onPointerUp,c.onThumbPointerUp)})});pp.displayName=Tl;var Eu="ScrollAreaCorner",mp=x.forwardRef((e,t)=>{const r=Ot(Eu,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(Q1,{...e,ref:t}):null});mp.displayName=Eu;var Q1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,...i}=e,s=Ot(Eu,r),[l,c]=x.useState(0),[u,f]=x.useState(0),h=!!(l&&u);return wi(s.scrollbarX,()=>{const m=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(m),f(m)}),wi(s.scrollbarY,()=>{const m=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(m),c(m)}),h?g.jsx($n.div,{...i,ref:t,style:{width:l,height:u,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Nl(e){return e?parseInt(e,10):0}function Bp(e,t){const r=e/t;return isNaN(r)?0:r}function Il(e){const t=Bp(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*t;return Math.max(i,18)}function U1(e,t,r,i="ltr"){const s=Il(r),l=s/2,c=t||l,u=s-c,f=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-u,m=r.content-r.viewport,B=i==="ltr"?[0,m]:[m*-1,0];return Cp([f,h],B)(e)}function wp(e,t,r="ltr"){const i=Il(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,c=t.content-t.viewport,u=l-i,f=r==="ltr"?[0,c]:[c*-1,0],h=B1(e,f);return Cp([0,c],[0,u])(h)}function Cp(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}function yp(e,t){return e>0&&e<t}var F1=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function s(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,u=r.top!==l.top;(c||u)&&t(),r=l,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function _l(e,t){const r=Ar(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function wi(e,t){const r=Ar(t);er(()=>{let i=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,r])}var Ep=cp,T1=fp,N1=mp,Kr={},_a={},vu={},Ha={},Ma={},Oa={},vp;function bu(){if(vp)return Oa;vp=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.EventEmitter=void 0;let e=class{eventListeners=new Map;on(r,i){const s=this.eventListeners.get(r)||new Set;s.add(i),this.eventListeners.set(r,s)}off(r,i){const s=this.eventListeners.get(r);s&&(s.delete(i),s.size===0&&this.eventListeners.delete(r))}emit(r,...i){const s=this.eventListeners.get(r);s&&s.forEach(l=>l(...i))}removeAllListeners(){this.eventListeners.clear()}};return Oa.EventEmitter=e,Oa}var Vr={},bp;function Ra(){return bp||(bp=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.DisconnectionReason=Vr.ConnectionStatus=void 0,Vr.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},Vr.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),Vr}var xp;function xu(){if(xp)return Ma;xp=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.BaseConnection=void 0;const e=bu(),t=Ra();let r=class{status=t.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new e.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(s){this.onOpenCallback=s}onMessage(s){if(this.onMessageCallback=s,this.queue.length>0){const l=[...this.queue];this.queue.length=0,queueMicrotask(()=>{l.forEach(c=>{this.onMessageCallback?.(c)})})}}onDisconnect(s){this.onDisconnectCallback=s;const l=this.disconnectionDetails;l&&queueMicrotask(()=>{this.onDisconnectCallback?.(l)})}onError(s){this.onErrorCallback=s}on(s,l){this.eventEmitter.on(s,l)}off(s,l){this.eventEmitter.off(s,l)}emit(s,...l){this.eventEmitter.emit(s,...l)}onStatusChange(s){this.onStatusChangeCallback=s,queueMicrotask(()=>{s(this.status)})}disconnect(s){this.disconnectionDetails||(this.disconnectionDetails=s,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(s))}handleMessage(s){this.onMessageCallback?this.onMessageCallback(s):this.queue.push(s)}updateStatus(s){this.status!==s&&(this.status=s,this.onStatusChangeCallback?.(s))}};return Ma.BaseConnection=r,Ma}var Su={},Sp;function Rt(){return Sp||(Sp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=e.ConfigurationError=e.StoreError=e.MessageError=e.SessionError=e.FileError=e.AuthenticationError=e.RecordingError=e.ConnectionError=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.SynapseErrorCode=void 0,e.normalizeError=j,e.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class t extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(H,k=e.SynapseErrorCode.UNKNOWN,O={}){super(H),this.name="SynapseError",this.code=k,this.timestamp=new Date,this.cause=O.cause,this.context=O.context,this.hint=O.hint,this.displayMessage=O.displayMessage||O?.hint||H,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.SynapseError=t;class r extends t{status;error;headers;constructor(H,k,O,$){const ee=r.makeMessage(k,O,H);super(ee,e.SynapseErrorCode.API,{cause:O,context:{status:k,hasBody:!!O},hint:k&&k>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:H||"Something went wrong"}),this.name="APIError",this.status=k,this.error=O,this.headers=$}static makeMessage(H,k,O){const $=k instanceof Error?k.message:O;return H&&$?`HTTP ${H}: ${$}`:H?`${H} status code (no body)`:$||"(no status code or body)"}static generate(H,k,O,$){if(!H)return new i({message:O});const ee=k?.error,V=ee&&typeof ee=="object"&&!Array.isArray(ee)?ee:void 0;switch(H){case 400:return new l(O||"Bad Request",H,V,$);case 401:return new c(O||"Unauthorized",H,V,$);case 403:return new u(O||"Permission Denied",H,V,$);case 404:return new f(O||"Not Found",H,V,$);case 405:return new h(O||"Method Not Allowed",H,V,$);case 429:return new m(O||"Rate Limit Exceeded",H,V,$);case 500:return new B(O||"Internal Server Error",H,V,$);default:return new r(O||"API Error",H,V,$)}}}e.APIError=r;class i extends r{constructor({message:H}={}){super(H||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}e.APIUserAbortError=i;class s extends r{constructor({message:H}={}){super(H||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}e.APIConnectionTimeoutError=s;class l extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="BadRequestError"}}e.BadRequestError=l;class c extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="UnauthorizedError"}}e.UnauthorizedError=c;class u extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="PermissionDeniedError"}}e.PermissionDeniedError=u;class f extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="NotFoundError"}}e.NotFoundError=f;class h extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="MethodNotAllowedError"}}e.MethodNotAllowedError=h;class m extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="RateLimitError"}}e.RateLimitError=m;class B extends r{constructor(H,k,O,$){super(H,k,O,$),this.name="InternalServerError"}}e.InternalServerError=B;class C extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.CONNECTION,k),this.name="ConnectionError"}}e.ConnectionError=C;class w extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.RECORDING,k),this.name="RecordingError"}}e.RecordingError=w;class v extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.AUTH,k),this.name="AuthenticationError"}}e.AuthenticationError=v;class b extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.FILE,k),this.name="FileError"}}e.FileError=b;class U extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.SESSION,k),this.name="SessionError"}}e.SessionError=U;class Q extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.MESSAGE,k),this.name="MessageError"}}e.MessageError=Q;class I extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.STORE,k),this.name="StoreError"}}e.StoreError=I;class M extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.CONFIGURATION,k),this.name="ConfigurationError"}}e.ConfigurationError=M;class z extends t{constructor(H,k={}){super(H,e.SynapseErrorCode.VALIDATION,k),this.name="ValidationError"}}e.ValidationError=z;function j(F,H,k,O={}){if(F instanceof H)return F;const $={...O,context:{...F instanceof t?F.context:void 0,...O.context},hint:O.hint??(F instanceof t?F.hint:void 0),cause:O.cause??F};if(F instanceof t)return new H(F.message,$);const ee=F instanceof Error&&F.message?F.message:k;return new H(ee,$)}})(Su)),Su}var Qp;function Up(){if(Qp)return Ha;Qp=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.WebSocketConnection=void 0;const e=xu(),t=Ra(),r=Rt();class i extends e.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(l){super(),this.config={...l,reconnect:l.reconnect||!0,reconnectAttempts:l.reconnectAttempts||3,reconnectDelay:l.reconnectDelay||1e3},this.conversationId=l.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(t.ConnectionStatus.CONNECTING);const l=this.buildConnectionUrl();this.socket=new WebSocket(l),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(l){const c=(0,r.normalizeError)(l,r.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(c),this.disconnect({code:1001,reason:t.DisconnectionReason.CONNECTION_ERROR,message:c.message,timestamp:new Date})}}buildConnectionUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,l.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(l){try{const c=JSON.parse(l.data);this.handleMessage(c)}catch(c){const u=(0,r.normalizeError)(c,r.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(u)}}handleError(l){}handleClose(l){const c=l.wasClean,u=l.code,f=l.reason;let h,m;this.authenticated=!1,!this.isConnected()&&(u===1e3?(h=t.DisconnectionReason.CLIENT_CLOSED,m="Connection closed normally"):u===1001||u===1006?(h=t.DisconnectionReason.NETWORK_ERROR,m=l.reason||"Network connection lost"):u===4001||u===1008?l.reason==="timeout"||l.reason==="Authentication timeout"?(h=t.DisconnectionReason.TIMEOUT,m="Connection timed out"):(h=t.DisconnectionReason.AUTHENTICATION_ERROR,m=l.reason||"Authentication failed"):c?(h=t.DisconnectionReason.SERVER_CLOSED,m=f||"Server closed connection"):(h=t.DisconnectionReason.CONNECTION_ERROR,m=f||"Connection closed unexpectedly"),this.disconnect({reason:h,message:m,code:u,timestamp:new Date}))}sendMessage(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new r.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(l))}catch(c){const u=(0,r.normalizeError)(c,r.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(u),u}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Ha.WebSocketConnection=i,Ha}var La={},Fp;function Tp(){if(Fp)return La;Fp=1,Object.defineProperty(La,"__esModule",{value:!0}),La.SSEConnection=void 0;const e=xu(),t=Ra(),r=Rt();class i extends e.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(l){super(),this.config=l,this.conversationId=l.auth.sessionId,this.connect()}connect(){this.updateStatus(t.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(l){this.onOpenCallback=l,this.connected&&setTimeout(()=>l(),0)}buildChatUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`${l.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,l.toString()}sendMessage(l){if(!this.connected){const u=new r.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(u);return}this.activeStreamController?.abort();const c=new AbortController;this.activeStreamController=c,this.streamChat(l,c)}async streamChat(l,c){const u=this.buildChatUrl();try{const f=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(l),signal:c.signal});if(!f.ok||!f.body)throw new r.ConnectionError(`SSE chat request failed with status ${f.status}`,{context:{stage:"streamChat",status:f.status}});const h=f.body.getReader(),m=new TextDecoder;let B="";for(;;){const{done:C,value:w}=await h.read();if(C)break;B+=m.decode(w,{stream:!0}),B=this.extractJsonObjects(B)}B.trim().length>0&&this.extractJsonObjects(B)}catch(f){if(c.signal.aborted)return;const h=(0,r.normalizeError)(f,r.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(h)}finally{this.activeStreamController===c&&(this.activeStreamController=null)}}extractJsonObjects(l){let c=0;for(;c<l.length;){const u=l.indexOf("{",c);if(u===-1)return"";const f=this.findObjectEnd(l,u);if(f===-1)return l.slice(u);const h=l.slice(u,f+1);try{const m=JSON.parse(h);this.handleMessage(m)}catch(m){const B=(0,r.normalizeError)(m,r.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:h}});this.onErrorCallback?.(B)}c=f+1}return""}findObjectEnd(l,c){let u=0,f=!1,h=!1;for(let m=c;m<l.length;m++){const B=l[m];if(f){h?h=!1:B==="\\"?h=!0:B==='"'&&(f=!1);continue}if(B==='"')f=!0;else if(B==="{")u++;else if(B==="}"&&(u--,u===0))return m}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED)}}return La.SSEConnection=i,La}var Np;function Ip(){return Np||(Np=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionFactory=e.ConnectionType=void 0;const t=Up(),r=Tp(),i=Rt();e.ConnectionType={SOCKET:"socket",SSE:"sse"};class s{static async createConnection(c,u){switch(c){case e.ConnectionType.SOCKET:return new t.WebSocketConnection(u);case e.ConnectionType.SSE:return new r.SSEConnection(u);default:throw new i.ConnectionError(`Unsupported connection type: ${c}`,{context:{type:c}})}}}e.ConnectionFactory=s})(vu)),vu}var Da={},_p;function I1(){if(_p)return Da;_p=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.getConfig=void 0;const e={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},r={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},i=(s="production")=>s==="development"?t:s==="production"?e:s==="staging"?r:e;return Da.getConfig=i,Da}var ka={},ja={},Hp;function Mp(){if(Hp)return ja;Hp=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.HttpClient=void 0;const e=Rt();let t=class{baseUrl;headers;timeout;maxRetries;constructor(i){this.baseUrl=i.baseUrl.replace(/\/$/,""),this.timeout=i.timeout||3e4,this.maxRetries=i.maxRetries||3,this.headers={"Content-Type":"application/json",...i.headers},i.authorization&&(this.headers.Authorization=i.authorization)}async request(i,s,l){const c=l?.retries??this.maxRetries;let u;for(let f=0;f<=c;f++)try{const h=this.buildUrl(s,l?.params),m=await fetch(h,{method:i,headers:{...this.headers,...l?.headers},body:l?.body?JSON.stringify(l.body):void 0,signal:AbortSignal.timeout(this.timeout)});return m.ok||await this.handleError(m),m.json()}catch(h){if(u=h,f===c||!(h instanceof TypeError&&h.message==="Failed to fetch"||h instanceof DOMException&&h.name==="AbortError"||h instanceof SyntaxError))break;const B=Math.pow(2,f)*100;await new Promise(C=>setTimeout(C,B))}throw u?u instanceof TypeError&&u.message==="Failed to fetch"?new e.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:u.message}):u instanceof DOMException&&u.name==="AbortError"?new e.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):u instanceof SyntaxError?new e.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:u.message}):u instanceof e.APIError?u:new e.APIError(`Request failed: ${u.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:u}):new e.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(i,s,l){return this.request("GET",i,{params:s,...l})}async post(i,s,l){return this.request("POST",i,{body:s,...l})}async put(i,s,l){return this.request("PUT",i,{body:s,...l})}async delete(i,s){return this.request("DELETE",i,{...s})}async patch(i,s,l){return this.request("PATCH",i,{body:s,...l})}buildUrl(i,s){let l=`${this.baseUrl}${i}`;if(s){const c=new URLSearchParams(s).toString();l+=`?${c}`}return l}async handleError(i){let s,l;try{l=await i.json();const c=l,u=c?.error;s=c?.message||c?.msg||u?.msg||u?.message||i.statusText}catch{s=i.statusText}throw e.APIError.generate(i.status,l,s,i.headers)}};return ja.HttpClient=t,ja}var Ka={},Va={},Op;function Hl(){if(Op)return Va;Op=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.BaseResource=void 0;let e=class{client;constructor(r){this.client=r}async get(r,i,s){return this.client.get(r,i,s)}async post(r,i,s){return this.client.post(r,i,s)}async put(r,i,s){return this.client.put(r,i,s)}async delete(r,i){return this.client.delete(r,i)}async patch(r,i,s){return this.client.patch(r,i,s)}buildPath(r,i){let s=r;for(const[l,c]of Object.entries(i))s=s.replace(`:${l}`,encodeURIComponent(c));return s}};return Va.BaseResource=e,Va}var Rp;function Lp(){if(Rp)return Ka;Rp=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.Session=void 0;const e=Hl();let t=class extends e.BaseResource{basePath="/med-assist/session";async create(i){return this.post(this.basePath,i)}async retrieve(i){return this.get(`${this.basePath}/${i}`)}async refresh(i,s){return this.get(`${this.basePath}/${i}/refresh`,void 0,{headers:{"x-sess-token":s}})}async feedback(i,s,l,c){return this.put(`${this.basePath}/${i}/messages/${s}/feedback`,{feedback:l,feedback_reason:c})}async callTool(i,s,l,c,u){return this.post(`${this.basePath}/${i}/messages/${l}/tools/${s}`,{tool_params:u},{headers:{"x-sess-token":c}})}};return Ka.Session=t,Ka}var Ga={},Dp;function _1(){if(Dp)return Ga;Dp=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.Config=void 0;const e=Hl();let t=class extends e.BaseResource{basePath="/med-assist/agent-config";async retrieve(i){return this.get(`${this.basePath}/${i}`)}};return Ga.Config=t,Ga}var za={},kp;function H1(){if(kp)return za;kp=1,Object.defineProperty(za,"__esModule",{value:!0}),za.VoiceResource=void 0;const e=Hl();let t=class qg extends e.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(i,s){return this.get(qg.ICE_SERVERS_PATH,{session_id:i,token:s})}async sendOffer(i){return this.post(qg.OFFER_PATH,i)}};return za.VoiceResource=t,za}var jp;function Kp(){if(jp)return ka;jp=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.ResourceManager=void 0;const e=Mp(),t=Lp(),r=Rt(),i=_1(),s=H1();class l{resourceConfig;httpClient;session;config;voiceResource;constructor(u){this.resourceConfig=u,this.httpClient=new e.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new i.Config(this.httpClient),this.session=new t.Session(this.httpClient),this.voiceResource=new s.VoiceResource(this.httpClient)}async createSession(u,f){try{const{profile:h,intent:m,user_location:B,referer:C,...w}=f||{},v={...u&&{user_id:u},...h&&{user_context:h},...(m||Object.keys(w).length>0)&&{session_context:{...m&&{intent:m},...B&&{user_location:B},...w}},...C&&{referer:C}},b=await this.session.create(v);if(!b?.session_id||!b?.session_token)throw new r.APIError("Failed to start session.",500,void 0,void 0);return b}catch(h){throw h instanceof r.APIError?h:new r.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new i.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new r.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(u){try{const f=await this.session.retrieve(u);return f.msg&&f.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(f){if(f instanceof r.APIError)switch(f.status){case 401:return{expired:!0,active:!1};default:throw f}throw f}}async refreshSession(u,f){return await this.session.refresh(u,f)}async sendFeedback(u,f,h,m){return await this.session.feedback(u,f,h,m)}async callTool(u,f,h,m,B){return await this.session.callTool(u,f,h,m,B)}async getVoiceIceServers(u,f){return await this.voiceResource.getIceServers(u,f)}async sendVoiceOffer(u){return await this.voiceResource.sendOffer(u)}}return ka.ResourceManager=l,ka}var Pa={},Qu={},Vp;function Uu(){return Vp||(Vp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MULTI_SELECT_ADDITIONAL_OPTION=e.SOCKET_EVENTS=e.SOCKET_CONTENT_TYPES=void 0,e.IsValidSocketMesssage=t,e.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},e.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},e.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function t(r){return[e.SOCKET_EVENTS.PING,e.SOCKET_EVENTS.PONG,e.SOCKET_EVENTS.ERROR,e.SOCKET_EVENTS.SYNC,e.SOCKET_EVENTS.CONNECTION_ESTABLISHED,e.SOCKET_EVENTS.CHAT,e.SOCKET_EVENTS.STREAM,e.SOCKET_EVENTS.END_OF_STREAM].includes(r.ev)}})(Qu)),Qu}var Fu={},Gp;function M1(){return Gp||(Gp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Filemanager=e.MAX_FILE_SIZE=void 0;const t=Rt();e.MAX_FILE_SIZE=3145728;class r{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(s,l){this.pendingFiles.length>0&&this.clearPendingFilesState();const c=s.filter(u=>this.validateFile(u));if(c.length===0)throw new t.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=c,l&&l.trim()&&(this.pendingMessage=l),this.pendingFormats=c.map(u=>u.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(s){let l=[];const c=s.filter(u=>u.url&&u.url.trim());try{if(c.length===0)throw new t.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new t.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let u=0;u<c.length;u++){const f=c[u].url,h=await fetch(f,{method:"PUT",body:this.pendingFiles[u],headers:{"Content-Type":this.pendingFiles[u].type,"x-ms-blob-type":"BlockBlob"}});if(!h.ok)throw new t.FileError(`Failed to upload ${this.pendingFiles[u].name} to URL ${u+1}: ${h.status} ${h.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});l.push(c[u].id)}return l}catch(u){if(l.length>0)return l;throw(0,t.normalizeError)(u,t.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(s,l){return new File([s],l,{type:s.type})}validateFile(s){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(s.type)&&s.size<e.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}e.Filemanager=r})(Fu)),Fu}var tn={},zp;function Ml(){if(zp)return tn;zp=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.SYNAPSE_REALTIME_RESERVED_EVENTS=tn.SYNAPSE_REALTIME_ERROR_CODES=tn.SYNAPSE_REALTIME_EVENTS=tn.SYNAPSE_MESSAGE_TYPES=void 0;const e=Uu();return tn.SYNAPSE_MESSAGE_TYPES=e.SOCKET_CONTENT_TYPES,tn.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},tn.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},tn.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},tn}var Ya={},Pp;function O1(){if(Pp)return Ya;Pp=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.AudioManager=void 0;const e=Rt();class t{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(i={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...i}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const i=await navigator.permissions.query({name:"microphone"});if(i.state==="denied")throw new e.RecordingError("Microphone permission denied",{context:{permissionState:i.state},hint:"Ensure the browser has microphone access enabled for this site."});return i.state}catch(i){if(i instanceof Error&&i.name==="NotSupportedError")return"prompt"}return"prompt"}async start(i,s){try{if(!navigator.mediaDevices)throw new e.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new e.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const l=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(c=>MediaRecorder.isTypeSupported(c));if(l.length===0)throw new e.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:l},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=l[0],await this.checkCurrentPermissionState(),this.onAudioData=i,this.onAudioError=s??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new e.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(l){throw l instanceof Error&&l.name==="NotAllowedError"?new e.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(l,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(i){try{const s=await this.blobToBase64(i),l=Date.now();if(!this.onAudioData)return;const c={audio:s,format:this.config.mimeType,duration:this.recordingStartTime>0?l-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:l};this.onAudioData(c)}catch(s){this.handleError(s,{stage:"process_audio_chunk"})}}toRecordingError(i,s,l){if(i instanceof e.RecordingError)return i;if(i instanceof e.SynapseError)return new e.RecordingError(i.message,{cause:i,context:{...i.context,...l},hint:i.hint});const c=i instanceof Error&&i.message?i.message:s;return new e.RecordingError(c,{cause:i,context:l})}handleError(i,s){const l=this.toRecordingError(i,"Unexpected recording error",s);if(this.onAudioError)try{this.onAudioError(l)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=i=>{this.suppressCallbacks||i.data.size<=0||this.processAudioChunk(i.data).catch(s=>this.handleError(s,{stage:"media_recorder_ondataavailable",hasData:i.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=i=>{this.handleError(i.error instanceof Error?i.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(i){return new Promise((s,l)=>{const c=new FileReader;c.onload=()=>{if(typeof c.result=="string"){const u=c.result.split(",")[1];s(u)}else l(new e.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},c.onerror=()=>l(new e.RecordingError("FileReader error while converting audio chunk to base64",{cause:c.error??void 0,context:{stage:"blob_to_base64"}})),c.readAsDataURL(i)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to destroy audio resources",{stage:"destroy"})}}}return Ya.AudioManager=t,Ya}var Yp;function Xp(){if(Yp)return Pa;Yp=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.MessageManager=void 0;const e=Uu(),t=M1(),r=Ml(),i=O1(),s=Rt();let l=class{connection=null;callbacks=null;fileManager=null;audioManager=null;constructor(u,f){this.connection=u||null,this.callbacks=f||null}handleFileUploadProcess({files:u,message:f,urls:h,tool_declined:m,tool_result:B}){this.fileManager||(this.fileManager=new t.Filemanager);let C;if(u&&u.length>0)this.fileManager.setFilesForUpload(u,f),C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...m&&{tool_declined:m},...B&&{tool_result:B}}};else if(h&&h.length>0){const w=this.fileManager.getPendingFileState().message;C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:h,...w&&{text:w},...m&&{tool_declined:m},...B&&{tool_result:B}}},this.fileManager?.clearPendingFilesState()}return C}sendSocketMessage({message:u,files:f,audio:h,urls:m,tool_declined:B,tool_id:C,tool_result:w,initial_prompts:v}){const b=this.assertConnection("sendSocketChatMessage");let U;if(f&&f.length>0||m&&m.length>0){if(f&&f.length>3){const Q=new s.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}U=this.handleFileUploadProcess({files:f,message:u,urls:m,tool_declined:B,tool_result:w})}else u?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:u,...B&&{tool_declined:B},...C&&{tool_id:C},...v&&{initial_prompts:v},...w&&{tool_result:w}}}:h&&h?.audio&&h?.format?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:h?.audio,format:h?.format,...B&&{tool_declined:B},...w&&{tool_result:w}}}:w&&(U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:w}});if(!U){const Q=new s.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}b.sendMessage(U)}handleIncomingSocketChatMessage(u){const f=this.assertConnection("handleIncomingSocketChatMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.FILE:{u?.data?.urls&&u.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(u.data.urls).then(h=>{this.sendSocketMessage({urls:h})}).catch(h=>{const m=this.toFileError(h,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:u.data?.urls?.length});this.emitError(m)});break}case e.SOCKET_CONTENT_TYPES.TEXT:if(u.data.text&&u.data.text.trim()===""&&u._id){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const h={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h)}break;case e.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(u?.data?.text){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,h)}break}}handleIncomingSocketStreamMessage(u){const f=this.assertConnection("handleIncomingSocketStreamMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.TEXT:if(u?.data?.progress_msg){const C={data:{text:u.data.progress_msg},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,C);return}if(u?.data?.text){const C={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,C)}break;case e.SOCKET_CONTENT_TYPES.TIPS:if(u?.data?.tips){const C={data:{tips:u.data.tips},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const C={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_START:const h={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_START,h);break;case e.SOCKET_CONTENT_TYPES.TOOL_END:const m={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_END,m);break;default:const B=new s.MessageError(`Unsupported content type ${u?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:u.ct}});throw this.emitError(B),B}}handleDisconnect(u){this.connection?.emit?.(r.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,u)}handleIncomingSocketEndOfStreamMessage(u){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(r.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(u){const f=this.assertConnection("handleIncomingSocketErrorMessage");switch(u?.data?.code){case r.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:f.emit(r.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const h=new s.MessageError(u?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:u?.data?.code},hint:u?.data?.msg,cause:u,displayMessage:u?.data?.msg});f.emit(r.SYNAPSE_REALTIME_EVENTS.ERROR,u)}}sendSocketAuthMessage(u){const f=this.assertConnection("sendSocketAuthMessage"),h={ev:e.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:u}};f.sendMessage(h)}sendSocketPingMessage(){const u=this.assertConnection("sendSocketPingMessage"),f={ev:e.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}async startRecording({onChunks:u,onError:f}){if(!u){const h=new s.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(h),h}this.assertConnection("startRecording"),this.audioManager||(this.audioManager=new i.AudioManager);try{await this.audioManager.start(u,h=>{const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});f?.(m),this.emitError(m)})}catch(h){const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});throw f?.(m),this.emitError(m),m}}endRecordingWithSocket(){if(!this.audioManager){const u=new s.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(u),u}try{this.audioManager.stop()}catch(u){const f=this.toRecordingError(u,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(f),f}}sendSocketPongMessage(){const u=this.assertConnection("sendSocketPongMessage"),f={ev:e.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(r.SYNAPSE_REALTIME_EVENTS.CONNECTED)}cleanupMessageServerState(){this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(u){this.callbacks?.onError?.(u)}toFileError(u,f,h,m){return(0,s.normalizeError)(u,s.FileError,f,{context:h,hint:m})}toRecordingError(u,f,h,m){return(0,s.normalizeError)(u,s.RecordingError,f,{context:h,hint:m})}assertConnection(u){if(!this.connection){const f=new s.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:u}});throw this.emitError(f),f}return this.connection}};return Pa.MessageManager=l,Pa}var Xa={},qp;function Jp(){if(qp)return Xa;qp=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.ErrorUtils=void 0;const e=Rt();class t{static isAPIError(i){return i instanceof e.APIError}static isNetworkError(i){return i instanceof e.APIError&&(i.status===0||i.status===void 0)}static isTimeoutError(i){return i instanceof e.APIConnectionTimeoutError}static isAuthError(i){return i instanceof e.UnauthorizedError||i instanceof e.PermissionDeniedError}static isClientError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=400&&i.status<500}static isServerError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=500}static getUserFriendlyMessage(i){return t.isNetworkError(i)?"Unable to connect to the server. Please check your internet connection.":t.isTimeoutError(i)?"Request timed out. Please try again.":t.isAuthError(i)?"Authentication failed. Please log in again.":t.isServerError(i)?"Server error occurred. Please try again later.":t.isAPIError(i)||i instanceof Error?i.message:"An unexpected error occurred."}static getErrorDetails(i){return t.isAPIError(i)?{type:i.name,message:i.message,code:i.code,status:i.status,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof e.SynapseError?{type:i.name,message:i.message,code:i.code,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof Error?{type:i.name,message:i.message,stack:i.stack}:{type:"Unknown",message:String(i)}}}return Xa.ErrorUtils=t,Xa}var qa={},Ja={},Zp;function R1(){if(Zp)return Ja;Zp=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.VoiceAudioAnalyser=void 0;const e=256;let t=class{audioCtx=null;animFrame=null;start(i,s,l){const c=new AudioContext;this.audioCtx=c;const u=c.createAnalyser();u.fftSize=e,c.createMediaStreamSource(i).connect(u);const f=new Uint8Array(u.frequencyBinCount),h=()=>{if(!this.audioCtx)return;u.getByteFrequencyData(f);const m=f.reduce((B,C)=>B+C,0)/f.length;l(m>s),this.animFrame=requestAnimationFrame(h)};h()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return Ja.VoiceAudioAnalyser=t,Ja}var Gr={},Wp;function $p(){return Wp||(Wp=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.VOICE_AGENT_EVENTS=Gr.VOICE_AGENT_STATE=void 0,Gr.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},Gr.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),Gr}var em;function L1(){if(em)return qa;em=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.VoiceAgent=void 0;const e=bu(),t=R1(),r=Rt(),i=$p(),s=3e3,l=8,c=3600*1e3,u=600;function f(m,B){return new Promise(C=>{if(m.iceGatheringState==="complete"){C();return}const w=setTimeout(C,B);m.onicegatheringstatechange=()=>{m.iceGatheringState==="complete"&&(clearTimeout(w),C())}})}let h=class{config;resourceManager;getCredentials;emitter=new e.EventEmitter;remoteAnalyser=new t.VoiceAudioAnalyser;localAnalyser=new t.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=i.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(B,C,w){this.config=B,this.resourceManager=C,this.getCredentials=w}get state(){return this._state}get isMuted(){return this._isMuted}on(B,C){this.emitter.on(B,C)}off(B,C){this.emitter.off(B,C)}async connect(){const B=await this.getCredentials();this.setState(i.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const C=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=C;const w=await this.fetchIceServers(B),v=new RTCPeerConnection({iceServers:w,iceTransportPolicy:"all"});this.pc=v,this.dataChannel=v.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),C.getAudioTracks().forEach(M=>v.addTrack(M,C)),v.ontrack=M=>this.handleRemoteTrack(M),v.onconnectionstatechange=()=>{v.connectionState==="connected"?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):(v.connectionState==="failed"||v.connectionState==="closed")&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))},v.oniceconnectionstatechange=()=>{(v.iceConnectionState==="connected"||v.iceConnectionState==="completed")&&this._state===i.VOICE_AGENT_STATE.CONNECTING?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):v.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))};const b=await v.createOffer();await v.setLocalDescription(b);const U=this.config.iceGatheringTimeoutMs??s;await f(v,U);const Q=M=>({sdp:v.localDescription.sdp,type:v.localDescription.type,pc_id:this.pcId,request_data:{session_id:M.sessionId,token:M.sessionToken}});let I;try{I=await this.resourceManager.sendVoiceOffer(Q(B))}catch(M){if(M instanceof r.APIError&&M.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const z=await this.getCredentials();I=await this.resourceManager.sendVoiceOffer(Q(z))}else throw M}if(!I)throw new Error("No answer received from voice offer");if(this.pcId=I.pc_id,v.signalingState==="closed")return;await v.setRemoteDescription(new RTCSessionDescription({sdp:I.sdp,type:I.type}))}catch(C){this.handleConnectionFailure(C)}}disconnect(){this.manuallyDisconnected=!0,this.setState(i.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const B=this.localStream.getAudioTracks()[0];if(!B)return;const C=B.enabled;this.localStream.getAudioTracks().forEach(w=>{w.enabled=!C}),this._isMuted=C,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(C?i.VOICE_AGENT_STATE.MUTED:i.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(i.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=i.VOICE_AGENT_STATE.IDLE}async fetchIceServers(B){if(this.config.iceServers)return this.config.iceServers;const C=Date.now();if(this._cachedIceServers&&C-this._iceServersCachedAt<c)return this._cachedIceServers;let w;try{w=await this.resourceManager.getVoiceIceServers(B.sessionId,B.sessionToken)}catch(v){if(v instanceof r.APIError&&v.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const b=await this.getCredentials();w=await this.resourceManager.getVoiceIceServers(b.sessionId,b.sessionToken)}else throw v}if(!Array.isArray(w?.ice_servers)||w.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=w.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(B){this._state=B,this.emitter.emit(i.VOICE_AGENT_EVENTS.STATE_CHANGED,B)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(B,C="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===i.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.ERROR);const w={message:C,cause:B};this.emitter.emit(i.VOICE_AGENT_EVENTS.ERROR,w)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(B=>B.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(B){const C=this.config.speakingThreshold??l;this.localAnalyser.start(B,C,w=>{this._state!==i.VOICE_AGENT_STATE.LISTENING&&this._state!==i.VOICE_AGENT_STATE.THINKING||(w?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===i.VOICE_AGENT_STATE.THINKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===i.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(i.VOICE_AGENT_STATE.THINKING))},u)))})}handleRemoteTrack(B){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const C=B.streams[0];this.remoteAudio.srcObject=C;const w=this.config.speakingThreshold??l;this.remoteAnalyser.start(C,w,v=>{v?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.SPEAKING)):this._state===i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)})}};return qa.VoiceAgent=h,qa}var Am;function D1(){if(Am)return _a;Am=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.SynapseSDK=void 0;const e=Ip(),t=Ra(),r=I1(),i=Kp(),s=Xp(),l=Ml(),c=bu(),u=Jp(),f=Rt(),h=Uu(),m=L1();class B{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new c.EventEmitter;_voice=null;constructor(w){this.config={...w,environment:w.environment||"production"},this.connectionType=w.connectionType||e.ConnectionType.SSE;const v=(0,r.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new i.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||v,...this.config.auth&&{authorization:this.config.auth}})}async startSession(w){try{const v=await this.manageSession(w);return await this.initializeConnection(v),this.setupEventHandlers(),v}catch(v){const b=u.ErrorUtils.getUserFriendlyMessage(v),U=u.ErrorUtils.getErrorDetails(v);if(v instanceof f.APIError&&(v.status===404||v.status===403))throw v;const Q=this.toSessionError(v,b||"Failed to start session",{stage:"startSession",details:U},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(Q),Q}}async sendMessage({message:w,files:v,audio:b,tool_declined:U,tool_id:Q,initial_prompts:I,tool_result:M}){if(!this.connection){const z=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendChatMessage"},hint:"Call startSession() and wait for connection before sending messages."});throw this.emitError(z),z}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:w,files:v,audio:b,...U&&{tool_declined:U},...Q&&{tool_id:Q},...I?.length&&{initial_prompts:I},...M&&Object.keys(M)?.length&&{tool_result:M}});break;default:const z=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(z),z}}async sendFeedback(w,v,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id){const U=new f.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,w,v,b);break}}on(w,v){this.sdkEventEmitter.on(w,v)}off(w,v){this.sdkEventEmitter.off(w,v)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(w,v,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const U=new f.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{const Q=await this.resourceManager.callTool(this.sessionConfig.session_id,w,v,this.sessionConfig.session_token,b);if(Q.error)throw new f.APIError(Q.error.msg,500,Q.error);let I={data:{...Q.data},messageId:Q._id,timestamp:Q.ts};this.connection.emit(l.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,I)}catch(Q){if(Q instanceof f.APIError&&Q?.status===401)return await this.handleSessionExpiry(),await this.callTool(w,v,b);throw Q}break;default:const U=new f.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(U),U}}async startRecording({onChunks:w,onError:v}){if(!this.connection){const b=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendAudio"},hint:"Call startSession() before attempting to send audio."});throw this.emitError(b),b}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{await this.messageManager.startRecording({onChunks:w,onError:v})}catch(U){throw U}break;default:const b=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(b),b}}endRecording(){if(!this.connection){const w=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"endRecording"},hint:"Call startRecording() before attempting to stop recording."});throw this.emitError(w),w}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.endRecordingWithSocket();break;default:const w=new f.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(w),w}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new m.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const w=await this.resourceManager.createSession();return{sessionId:w.session_id,sessionToken:w.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,r.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(w){return w instanceof f.APIError?{message:w.error?.msg||w.message,error:w.error,code:w.code,status:w.status,context:w.context}:w instanceof f.SynapseError?{message:w.displayMessage||w.message,code:w.code,context:w.context}:w instanceof Error?{message:w.message}:{message:"An unexpected error occurred"}}emitError(w){this.config.callbacks?.onError?.(this.toClientError(w))}toSessionError(w,v,b,U){return(0,f.normalizeError)(w,f.SessionError,v,{context:b,hint:U})}async initializeConnection(w){if(this.closeConnection(),!w.session_id||!w.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=w;const v=(0,r.getConfig)(this.config?.environment),b=this.connectionType===e.ConnectionType.SOCKET,U=b?v.WEBSOCKET_URL:v.BASE_API_URL,Q=this.config.serverUrl?b?`wss://${this.config.serverUrl.split("://")[1]}`:this.config.serverUrl:null;this.connection=await e.ConnectionFactory.createConnection(this.connectionType,{serverUrl:Q||U,auth:{sessionId:w.session_id,sessionToken:w.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager=new s.MessageManager(this.connection,this.config?.callbacks);const I=this.connection.emit.bind(this.connection);this.connection.emit=(M,...z)=>{I(M,...z),this.sdkEventEmitter.emit(M,...z)}}async manageSession(w){try{if(!w?.session_id)return this.createNewSession();const v=await this.resourceManager.validateSession(w.session_id);if(v.active)return w;if(v.expired)return this.refreshSession(w.session_id,w.session_token);throw new f.APIError("Failed to create session",500,void 0,void 0)}catch(v){if(v instanceof f.APIError){if(v.status===404||v.status===403)throw v}else if(v instanceof f.NotFoundError&&v.status===404)throw v;throw this.toSessionError(v,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(w,v){try{return await this.resourceManager.refreshSession(w,v)}catch(b){throw b instanceof f.APIError&&this.emitError(b),this.toSessionError(b,"Failed to refresh session",{stage:"refreshSession",sessionId:w})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case e.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case e.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new f.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async w=>{if(w.reason!==t.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(w)}else this.messageManager.handleDisconnect(w)})}}onSocketConnectionError(w){this.connection?.emit(l.SYNAPSE_REALTIME_EVENTS.ERROR,w);const v=this.toConnectionError(w,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(v)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const w=new f.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(w),w}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(w){switch(w.ev){case h.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(w);break;case h.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case h.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(w);break;case h.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(w);break;case h.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case h.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case h.SOCKET_EVENTS.SYNC:break;case h.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(w);break;default:const v=new f.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:w.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(v);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const v=new f.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(v),v}this.isRefreshingSession=!0;const w=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!w.session_id||!w.session_token)throw new f.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=w.session_id,this.sessionConfig.session_token=w.session_token,await this.initializeConnection(w),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(w)}catch(w){const v=this.toSessionError(w,"Session expired",{stage:"handleSessionExpiry"});this.emitError(v)}finally{this.isRefreshingSession=!1}}toConnectionError(w,v,b,U){return(0,f.normalizeError)(w,f.ConnectionError,v,{context:b,hint:U})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return _a.SynapseSDK=B,_a}var Tu={},tm;function k1(){return tm||(tm=1,Object.defineProperty(Tu,"__esModule",{value:!0})),Tu}var Za={},nm;function j1(){return nm||(nm=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.USER_FEEDBACK=void 0,Za.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),Za}var Wa={},rm;function K1(){if(rm)return Wa;rm=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.ToolCall=void 0;const e=Hl();let t=class extends e.BaseResource{basePath="/med-assist/api-call-tool";async callTool(i,s,l){return this.post(`${this.basePath}?session_id=${i}&tool_name=${s}`,{tool_params:l})}};return Wa.ToolCall=t,Wa}var nn={},im;function V1(){if(im)return nn;im=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.SYNAPSE_EICITATION_STATUS=nn.SYNAPSE_TOOL_CALLBACK_NAME=nn.SYNAPSE_COMPONENTS=nn.SYNAPSE_TOOL_NAME=void 0;var e;(function(s){s.MOBILE_VERIFICATION="mobile_verification",s.AVAILABILITY_DATES="availability_dates",s.AVAILABILITY_SLOTS="availability_slots",s.DOCTOR_AVAILABILITY="doctor_availability",s.DOCTOR_DETAILS="doctor_details",s.GET_LOCATION="get_location"})(e||(nn.SYNAPSE_TOOL_NAME=e={}));var t;(function(s){s.MOBILE="mobile_number",s.OTP="otp",s.EMAIL="email_address",s.PILL="pills",s.MULTI="multi",s.DOCTOR_CARD="doctor_card",s.CARD="card",s.MEDIA_CARD="media_card"})(t||(nn.SYNAPSE_COMPONENTS=t={}));var r;(function(s){s.DOCTOR_AVAILABILITY="get_doctor_availability",s.AVAILABILITY_DATES="get_available_dates",s.AVAILABILITY_SLOTS="get_available_slots",s.MOBILE_VERIFICATION="verify_mobile_number",s.DOCTOR_DETAILS="get_doctor_details"})(r||(nn.SYNAPSE_TOOL_CALLBACK_NAME=r={}));var i;return(function(s){s.PROGRESS="progress",s.SUCCESS="success",s.FAILURE="failure"})(i||(nn.SYNAPSE_EICITATION_STATUS=i={})),nn}var Nu={},am;function G1(){return am||(am=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var $a={},sm;function z1(){return sm||(sm=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.ErrorType=void 0,$a.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),$a}var Iu={},lm;function P1(){return lm||(lm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var es={},om;function Y1(){if(om)return es;om=1,Object.defineProperty(es,"__esModule",{value:!0}),es.SYNAPSE_CONVERSATION=void 0;var e;return(function(t){t.TEXT="text",t.FILE="file",t.AUDIO="audio",t.VOICE="voice"})(e||(es.SYNAPSE_CONVERSATION=e={})),es}var zr={},cm;function X1(){return cm||(cm=1,(function(e){var t=zr&&zr.__createBinding||(Object.create?(function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(i,c,u)}):(function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]})),r=zr&&zr.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),r($p(),e)})(zr)),zr}var um;function q1(){return um||(um=1,(function(e){var t=Kr&&Kr.__createBinding||(Object.create?(function(Q,I,M,z){z===void 0&&(z=M);var j=Object.getOwnPropertyDescriptor(I,M);(!j||("get"in j?!I.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return I[M]}}),Object.defineProperty(Q,z,j)}):(function(Q,I,M,z){z===void 0&&(z=M),Q[z]=I[M]})),r=Kr&&Kr.__exportStar||function(Q,I){for(var M in Q)M!=="default"&&!Object.prototype.hasOwnProperty.call(I,M)&&t(I,Q,M)};Object.defineProperty(e,"__esModule",{value:!0}),e.SYNAPSE_MESSAGE_TYPES=e.ErrorUtils=e.ErrorType=e.SynapseErrorCode=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.HttpClient=e.MessageManager=e.ToolCall=e.Session=e.ResourceManager=e.ConnectionType=e.ConnectionFactory=e.SSEConnection=e.WebSocketConnection=e.BaseConnection=e.SynapseSDK=void 0;var i=D1();Object.defineProperty(e,"SynapseSDK",{enumerable:!0,get:function(){return i.SynapseSDK}});var s=xu();Object.defineProperty(e,"BaseConnection",{enumerable:!0,get:function(){return s.BaseConnection}});var l=Up();Object.defineProperty(e,"WebSocketConnection",{enumerable:!0,get:function(){return l.WebSocketConnection}});var c=Tp();Object.defineProperty(e,"SSEConnection",{enumerable:!0,get:function(){return c.SSEConnection}});var u=Ip();Object.defineProperty(e,"ConnectionFactory",{enumerable:!0,get:function(){return u.ConnectionFactory}}),Object.defineProperty(e,"ConnectionType",{enumerable:!0,get:function(){return u.ConnectionType}}),r(Ra(),e);var f=Kp();Object.defineProperty(e,"ResourceManager",{enumerable:!0,get:function(){return f.ResourceManager}}),r(k1(),e);var h=Lp();Object.defineProperty(e,"Session",{enumerable:!0,get:function(){return h.Session}}),r(j1(),e);var m=K1();Object.defineProperty(e,"ToolCall",{enumerable:!0,get:function(){return m.ToolCall}}),r(V1(),e);var B=Xp();Object.defineProperty(e,"MessageManager",{enumerable:!0,get:function(){return B.MessageManager}}),r(Ml(),e),r(G1(),e);var C=Mp();Object.defineProperty(e,"HttpClient",{enumerable:!0,get:function(){return C.HttpClient}});var w=Rt();Object.defineProperty(e,"SynapseError",{enumerable:!0,get:function(){return w.SynapseError}}),Object.defineProperty(e,"APIError",{enumerable:!0,get:function(){return w.APIError}}),Object.defineProperty(e,"APIUserAbortError",{enumerable:!0,get:function(){return w.APIUserAbortError}}),Object.defineProperty(e,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return w.APIConnectionTimeoutError}}),Object.defineProperty(e,"BadRequestError",{enumerable:!0,get:function(){return w.BadRequestError}}),Object.defineProperty(e,"UnauthorizedError",{enumerable:!0,get:function(){return w.UnauthorizedError}}),Object.defineProperty(e,"PermissionDeniedError",{enumerable:!0,get:function(){return w.PermissionDeniedError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return w.NotFoundError}}),Object.defineProperty(e,"MethodNotAllowedError",{enumerable:!0,get:function(){return w.MethodNotAllowedError}}),Object.defineProperty(e,"RateLimitError",{enumerable:!0,get:function(){return w.RateLimitError}}),Object.defineProperty(e,"InternalServerError",{enumerable:!0,get:function(){return w.InternalServerError}}),Object.defineProperty(e,"SynapseErrorCode",{enumerable:!0,get:function(){return w.SynapseErrorCode}});var v=z1();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return v.ErrorType}});var b=Jp();Object.defineProperty(e,"ErrorUtils",{enumerable:!0,get:function(){return b.ErrorUtils}}),r(P1(),e);var U=Ml();Object.defineProperty(e,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return U.SYNAPSE_MESSAGE_TYPES}}),r(Y1(),e),r(X1(),e)})(Kr)),Kr}var fe=q1();function fm(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=fm(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function dm(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=fm(e))&&(i&&(i+=" "),i+=t);return i}const J1=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Z1=(e,t)=>({classGroupId:e,validator:t}),hm=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ol="-",gm=[],W1="arbitrary..",$1=e=>{const t=Ax(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return ex(c);const u=c.split(Ol),f=u[0]===""&&u.length>1?1:0;return pm(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=r[c];return f?h?J1(h,f):f:h||gm}return r[c]||gm}}},pm=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],l=r.nextPart.get(s);if(l){const h=pm(e,t+1,l);if(h)return h}const c=r.validators;if(c===null)return;const u=t===0?e.join(Ol):e.slice(t).join(Ol),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(u))return m.classGroupId}},ex=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?W1+i:void 0})(),Ax=e=>{const{theme:t,classGroups:r}=e;return tx(r,t)},tx=(e,t)=>{const r=hm();for(const i in e){const s=e[i];_u(s,r,i,t)}return r},_u=(e,t,r,i)=>{const s=e.length;for(let l=0;l<s;l++){const c=e[l];nx(c,t,r,i)}},nx=(e,t,r,i)=>{if(typeof e=="string"){rx(e,t,r);return}if(typeof e=="function"){ix(e,t,r,i);return}ax(e,t,r,i)},rx=(e,t,r)=>{const i=e===""?t:mm(t,e);i.classGroupId=r},ix=(e,t,r,i)=>{if(sx(e)){_u(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Z1(r,e))},ax=(e,t,r,i)=>{const s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];_u(f,mm(t,u),r,i)}},mm=(e,t)=>{let r=e;const i=t.split(Ol),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=r.nextPart.get(c);u||(u=hm(),r.nextPart.set(c,u)),r=u}return r},sx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const s=(l,c)=>{r[l]=c,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in r?r[l]=c:s(l,c)}}},Hu="!",Bm=":",ox=[],wm=(e,t,r,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:s}),cx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=s=>{const l=[];let c=0,u=0,f=0,h;const m=s.length;for(let b=0;b<m;b++){const U=s[b];if(c===0&&u===0){if(U===Bm){l.push(s.slice(f,b)),f=b+1;continue}if(U==="/"){h=b;continue}}U==="["?c++:U==="]"?c--:U==="("?u++:U===")"&&u--}const B=l.length===0?s:s.slice(f);let C=B,w=!1;B.endsWith(Hu)?(C=B.slice(0,-1),w=!0):B.startsWith(Hu)&&(C=B.slice(1),w=!0);const v=h&&h>f?h-f:void 0;return wm(l,w,C,v)};if(t){const s=t+Bm,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):wm(ox,!1,c,void 0,!0)}if(r){const s=i;i=l=>r({className:l,parseClassName:s})}return i},ux=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},fx=e=>({cache:lx(e.cacheSize),parseClassName:cx(e),sortModifiers:ux(e),...$1(e)}),dx=/\s+/,hx=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=e.trim().split(dx);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:B,modifiers:C,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:b}=r(m);if(B){f=m+(f.length>0?" "+f:f);continue}let U=!!b,Q=i(U?v.substring(0,b):v);if(!Q){if(!U){f=m+(f.length>0?" "+f:f);continue}if(Q=i(v),!Q){f=m+(f.length>0?" "+f:f);continue}U=!1}const I=C.length===0?"":C.length===1?C[0]:l(C).join(":"),M=w?I+Hu:I,z=M+Q;if(c.indexOf(z)>-1)continue;c.push(z);const j=s(Q,U);for(let F=0;F<j.length;++F){const H=j[F];c.push(M+H)}f=m+(f.length>0?" "+f:f)}return f},gx=(...e)=>{let t=0,r,i,s="";for(;t<e.length;)(r=e[t++])&&(i=Cm(r))&&(s&&(s+=" "),s+=i);return s},Cm=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Cm(e[i]))&&(r&&(r+=" "),r+=t);return r},px=(e,...t)=>{let r,i,s,l;const c=f=>{const h=t.reduce((m,B)=>B(m),e());return r=fx(h),i=r.cache.get,s=r.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const m=hx(f,r);return s(f,m),m};return l=c,(...f)=>l(gx(...f))},mx=[],jA=e=>{const t=r=>r[e]||mx;return t.isThemeGetter=!0,t},ym=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Em=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bx=/^\d+\/\d+$/,wx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cx=/\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$/,yx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ci=e=>Bx.test(e),Re=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>!!e&&Number.isInteger(Number(e)),Mu=e=>e.endsWith("%")&&Re(e.slice(0,-1)),Fn=e=>wx.test(e),bx=()=>!0,xx=e=>Cx.test(e)&&!yx.test(e),vm=()=>!1,Sx=e=>Ex.test(e),Qx=e=>vx.test(e),Ux=e=>!Ce(e)&&!ye(e),Fx=e=>yi(e,Um,vm),Ce=e=>ym.test(e),Pr=e=>yi(e,Fm,xx),Ou=e=>yi(e,Hx,Re),bm=e=>yi(e,Sm,vm),Tx=e=>yi(e,Qm,Qx),Rl=e=>yi(e,Tm,Sx),ye=e=>Em.test(e),As=e=>Ei(e,Fm),Nx=e=>Ei(e,Mx),xm=e=>Ei(e,Sm),Ix=e=>Ei(e,Um),_x=e=>Ei(e,Qm),Ll=e=>Ei(e,Tm,!0),yi=(e,t,r)=>{const i=ym.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},Ei=(e,t,r=!1)=>{const i=Em.exec(e);return i?i[1]?t(i[1]):r:!1},Sm=e=>e==="position"||e==="percentage",Qm=e=>e==="image"||e==="url",Um=e=>e==="length"||e==="size"||e==="bg-size",Fm=e=>e==="length",Hx=e=>e==="number",Mx=e=>e==="family-name",Tm=e=>e==="shadow",Ox=px(()=>{const e=jA("color"),t=jA("font"),r=jA("text"),i=jA("font-weight"),s=jA("tracking"),l=jA("leading"),c=jA("breakpoint"),u=jA("container"),f=jA("spacing"),h=jA("radius"),m=jA("shadow"),B=jA("inset-shadow"),C=jA("text-shadow"),w=jA("drop-shadow"),v=jA("blur"),b=jA("perspective"),U=jA("aspect"),Q=jA("ease"),I=jA("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...z(),ye,Ce],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],k=()=>[ye,Ce,f],O=()=>[Ci,"full","auto",...k()],$=()=>[tr,"none","subgrid",ye,Ce],ee=()=>["auto",{span:["full",tr,ye,Ce]},tr,ye,Ce],V=()=>[tr,"auto",ye,Ce],se=()=>["auto","min","max","fr",ye,Ce],Ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...k()],Z=()=>[Ci,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],te=()=>[e,ye,Ce],ge=()=>[...z(),xm,bm,{position:[ye,Ce]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],N=()=>["auto","cover","contain",Ix,Fx,{size:[ye,Ce]}],q=()=>[Mu,As,Pr],E=()=>["","none","full",h,ye,Ce],ne=()=>["",Re,As,Pr],oe=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[Re,Mu,xm,bm],Oe=()=>["","none",v,ye,Ce],xe=()=>["none",Re,ye,Ce],eA=()=>["none",Re,ye,Ce],Pe=()=>[Re,ye,Ce],nA=()=>[Ci,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fn],breakpoint:[Fn],color:[bx],container:[Fn],"drop-shadow":[Fn],ease:["in","out","in-out"],font:[Ux],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fn],shadow:[Fn],spacing:["px",Re],text:[Fn],"text-shadow":[Fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ci,Ce,ye,U]}],container:["container"],columns:[{columns:[Re,Ce,ye,u]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:j()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[tr,"auto",ye,Ce]}],basis:[{basis:[Ci,"full","auto",u,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Ci,"auto","initial","none",Ce]}],grow:[{grow:["",Re,ye,Ce]}],shrink:[{shrink:["",Re,ye,Ce]}],order:[{order:[tr,"first","last","none",ye,Ce]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Ae(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Ae()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ae()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[u,"screen",...Z()]}],"min-w":[{"min-w":[u,"screen","none",...Z()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",r,As,Pr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ye,Ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mu,Ce]}],"font-family":[{font:[Nx,Ce,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ye,Ce]}],"line-clamp":[{"line-clamp":[Re,"none",ye,Ou]}],leading:[{leading:[l,...k()]}],"list-image":[{"list-image":["none",ye,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ye,Pr]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[Re,"auto",ye,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,Ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:N()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tr,ye,Ce],radial:["",ye,Ce],conic:[tr,ye,Ce]},_x,Tx]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ye,Ce]}],"outline-w":[{outline:["",Re,As,Pr]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",m,Ll,Rl]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",B,Ll,Rl]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[Re,Pr]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",C,Ll,Rl]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[Re,ye,Ce]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[ye,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:N()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,Ce]}],filter:[{filter:["","none",ye,Ce]}],blur:[{blur:Oe()}],brightness:[{brightness:[Re,ye,Ce]}],contrast:[{contrast:[Re,ye,Ce]}],"drop-shadow":[{"drop-shadow":["","none",w,Ll,Rl]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",Re,ye,Ce]}],"hue-rotate":[{"hue-rotate":[Re,ye,Ce]}],invert:[{invert:["",Re,ye,Ce]}],saturate:[{saturate:[Re,ye,Ce]}],sepia:[{sepia:["",Re,ye,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,Ce]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ye,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ye,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ye,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ye,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Re,ye,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ye,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ye,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,ye,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",ye,Ce]}],ease:[{ease:["linear","initial",Q,ye,Ce]}],delay:[{delay:[Re,ye,Ce]}],animate:[{animate:["none",I,ye,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ye,Ce]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:xe()}],"rotate-x":[{"rotate-x":xe()}],"rotate-y":[{"rotate-y":xe()}],"rotate-z":[{"rotate-z":xe()}],scale:[{scale:eA()}],"scale-x":[{"scale-x":eA()}],"scale-y":[{"scale-y":eA()}],"scale-z":[{"scale-z":eA()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[ye,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nA()}],"translate-x":[{"translate-x":nA()}],"translate-y":[{"translate-y":nA()}],"translate-z":[{"translate-z":nA()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ye,Ce]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[Re,As,Pr,Ou]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function he(...e){return Ox(dm(e))}function vi(e){if(!e&&e!==0)return"";const t=e instanceof Date?e:new Date(typeof e=="number"?e:Number(e)||e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Rx=e=>{switch(e){case fe.SYNAPSE_COMPONENTS.DOCTOR_CARD:case fe.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},Lx=e=>new Promise(t=>setTimeout(t,e)),Nm=x.forwardRef(({className:e,children:t,...r},i)=>g.jsxs(Ep,{ref:i,className:he("relative overflow-hidden",e),...r,children:[g.jsx(T1,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:t}),g.jsx(Im,{}),g.jsx(N1,{})]}));Nm.displayName=Ep.displayName;const Im=x.forwardRef(({className:e,orientation:t="vertical",...r},i)=>g.jsx(Cu,{ref:i,orientation:t,className:he("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(pp,{className:"relative flex-1 rounded-full bg-border"})}));Im.displayName=Cu.displayName;var Dx=Symbol.for("react.lazy"),Dl=ep[" use ".trim().toString()];function kx(e){return typeof e=="object"&&e!==null&&"then"in e}function _m(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Dx&&"_payload"in e&&kx(e._payload)}function Hm(e){const t=Kx(e),r=x.forwardRef((i,s)=>{let{children:l,...c}=i;_m(l)&&typeof Dl=="function"&&(l=Dl(l._payload));const u=x.Children.toArray(l),f=u.find(Gx);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}var jx=Hm("Slot");function Kx(e){const t=x.forwardRef((r,i)=>{let{children:s,...l}=r;if(_m(s)&&typeof Dl=="function"&&(s=Dl(s._payload)),x.isValidElement(s)){const c=Px(s),u=zx(l,s.props);return s.type!==x.Fragment&&(u.ref=i?Bu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vx=Symbol("radix.slottable");function Gx(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vx}function zx(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function Px(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Mm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Om=dm,Yx=((e,t)=>r=>{var i;if(t?.variants==null)return Om(e,r?.class,r?.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const m=r?.[h],B=l?.[h];if(m===null)return null;const C=Mm(m)||Mm(B);return s[h][C]}),u=r&&Object.entries(r).reduce((h,m)=>{let[B,C]=m;return C===void 0||(h[B]=C),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:B,className:C,...w}=m;return Object.entries(w).every(v=>{let[b,U]=v;return Array.isArray(U)?U.includes({...l,...u}[b]):{...l,...u}[b]===U})?[...h,B,C]:h},[]);return Om(e,c,f,r?.class,r?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ie=x.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...s},l)=>{const c=i?jx:"button";return g.jsx(c,{className:he(Yx({variant:t,size:r,className:e})),ref:l,...s})});Ie.displayName="Button";const Xx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Rm=e=>{const t=qx(e);return t.charAt(0).toUpperCase()+t.slice(1)},Lm=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),Jx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Zx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Wx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>x.createElement("svg",{ref:f,...Zx,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Lm("lucide",s),...!l&&!Jx(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,m])=>x.createElement(h,m)),...Array.isArray(l)?l:[l]]));const Ve=(e,t)=>{const r=x.forwardRef(({className:i,...s},l)=>x.createElement(Wx,{ref:l,iconNode:t,className:Lm(`lucide-${Xx(Rm(e))}`,`lucide-${e}`,i),...s}));return r.displayName=Rm(e),r};const $x=Ve("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Dm=Ve("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const eS=Ve("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const AS=Ve("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Ru=Ve("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ts=Ve("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const km=Ve("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const jm=Ve("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const tS=Ve("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const nS=Ve("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const rS=Ve("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const iS=Ve("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const aS=Ve("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const sS=Ve("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const lS=Ve("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const oS=Ve("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const cS=Ve("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const uS=Ve("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const kl=Ve("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const fS=Ve("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const dS=Ve("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Km=Ve("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const hS=Ve("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const Lu=Ve("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const gS=Ve("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const pS=Ve("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const Vm=Ve("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const mS=Ve("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const Gm=Ve("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const jl=Ve("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const Kl=Ve("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const BS=Ve("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const wS=Ve("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const ns=Ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const CS=Ve("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),zm=e=>{let t;const r=new Set,i=(h,m)=>{const B=typeof h=="function"?h(t):h;if(!Object.is(B,t)){const C=t;t=m??(typeof B!="object"||B===null)?B:Object.assign({},t,B),r.forEach(w=>w(t,C))}},s=()=>t,u={setState:i,getState:s,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=e(i,s,u);return u},yS=(e=>e?zm(e):zm),ES=e=>e;function vS(e,t=ES){const r=Na.useSyncExternalStore(e.subscribe,Na.useCallback(()=>t(e.getState()),[e,t]),Na.useCallback(()=>t(e.getInitialState()),[e,t]));return Na.useDebugValue(r),r}const Pm=e=>{const t=yS(e),r=i=>vS(t,i);return Object.assign(r,t),r},bS=(e=>e?Pm(e):Pm);function Ym(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var l;const c=f=>f===null?null:JSON.parse(f,void 0),u=(l=r.getItem(s))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(s,l)=>r.setItem(s,JSON.stringify(l,void 0)),removeItem:s=>r.removeItem(s)}}const Du=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(i){return Du(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return Du(i)(r)}}}},xS=(e,t)=>(r,i,s)=>{let l={storage:Ym(()=>localStorage),partialize:b=>b,version:0,merge:(b,U)=>({...U,...b}),...t},c=!1;const u=new Set,f=new Set;let h=l.storage;if(!h)return e((...b)=>{r(...b)},i,s);const m=()=>{const b=l.partialize({...i()});return h.setItem(l.name,{state:b,version:l.version})},B=s.setState;s.setState=(b,U)=>(B(b,U),m());const C=e((...b)=>(r(...b),m()),i,s);s.getInitialState=()=>C;let w;const v=()=>{var b,U;if(!h)return;c=!1,u.forEach(I=>{var M;return I((M=i())!=null?M:C)});const Q=((U=l.onRehydrateStorage)==null?void 0:U.call(l,(b=i())!=null?b:C))||void 0;return Du(h.getItem.bind(h))(l.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==l.version){if(l.migrate){const M=l.migrate(I.state,I.version);return M instanceof Promise?M.then(z=>[!0,z]):[!0,M]}}else return[!1,I.state];return[!1,void 0]}).then(I=>{var M;const[z,j]=I;if(w=l.merge(j,(M=i())!=null?M:C),r(w,!0),z)return m()}).then(()=>{Q?.(w,void 0),w=i(),c=!0,f.forEach(I=>I(w))}).catch(I=>{Q?.(void 0,I)})};return s.persist={setOptions:b=>{l={...l,...b},b.storage&&(h=b.storage)},clearStorage:()=>{h?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>v(),hasHydrated:()=>c,onHydrate:b=>(u.add(b),()=>{u.delete(b)}),onFinishHydration:b=>(f.add(b),()=>{f.delete(b)})},l.skipHydration||v(),w||C},Lt={USER:"user",ASSISTANT:"assistant"};var BA=(e=>(e.IDLE="idle",e.LISTENING="listening",e.ERROR="error",e.PROCESSING="processing",e.TRANSCRIBING="transcribing",e))(BA||{}),PA=(e=>(e.CONNECTED="connected",e.NOT_CONNECTED="not_connected",e.CONNECTING="connecting",e))(PA||{});let nr="";const SS=e=>{nr=`med-assist-store-${e}`},Xm={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:BA.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:PA.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},ze=bS()(xS((e,t)=>({sessionId:"",setSessionId:r=>e({sessionId:r}),sessionToken:"",setSessionToken:r=>e({sessionToken:r}),initialMessage:null,setInitialMessage:r=>e({initialMessage:r}),agentId:"",setAgentId:r=>e({agentId:r}),userId:"",setUserId:r=>e({userId:r}),context:null,setContext:r=>e({context:r}),connectionStatus:PA.CONNECTING,setConnectionStatus:r=>e({connectionStatus:r}),isStreaming:!1,setIsStreaming:r=>e({isStreaming:r}),isWaitingForResponse:!1,setIsWaitingForResponse:r=>e({isWaitingForResponse:r}),progressMessage:null,setProgressMessage:r=>e({progressMessage:r}),recordingStatus:BA.IDLE,setRecordingStatus:r=>e({recordingStatus:r}),startNewConnection:!1,setStartNewConnection:r=>e({startNewConnection:r}),fileUploadPerSession:0,setFileUploadPerSession:r=>e({fileUploadPerSession:r}),elicitationState:{},setElicitationState:r=>e({elicitationState:r}),upsertElicitationState:(r,i)=>{const s=t().elicitationState;e({elicitationState:{...s,[r]:i}})},toastMessage:null,setToastMessage:r=>e({toastMessage:r}),inlineText:null,setInlineText:r=>e({inlineText:r}),isBotIconAnimating:!1,setIsBotIconAnimating:r=>e({isBotIconAnimating:r}),isMobile:!1,setIsMobile:r=>e({isMobile:r}),displayMode:"widget",setDisplayMode:r=>e({displayMode:r}),toggleDisplayMode:()=>e({displayMode:t().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:r=>e({initialDisplayMode:r}),chats:{},addMessageToSession:(r,i)=>{e(s=>({chats:{...s.chats,[r]:[...s.chats[r]||[],i]}}))},updateMessageInSession:(r,i,s)=>e(l=>({chats:{...l.chats,[r]:(l.chats[r]||[]).map(c=>c.id===i?{...c,...s}:c)}})),getMessagesForSession:r=>t().chats[r]||[],clearMessagesForSession:r=>e(i=>({chats:{...i.chats,[r]:[]}})),clearAllChats:()=>e({chats:{}}),error:null,setError:r=>e({error:r}),clearError:()=>e({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:r=>e({showRetryButton:r}),isTimeoutError:!1,setTimeoutError:r=>e({isTimeoutError:r}),clearSession:async()=>{e(Xm),await sessionStorage.removeItem(nr||`med-assist-store-${t().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:r=>e({streamingTimeoutId:r}),clearStreamingTimeout:()=>{const r=t();r.streamingTimeoutId&&(clearTimeout(r.streamingTimeoutId),e({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:r=>e({responseTimeoutId:r}),clearResponseTimeout:()=>{const r=t();r.responseTimeoutId&&(clearTimeout(r.responseTimeoutId),e({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:r=>e({lastStreamingActivity:r})}),{name:"med-assist-store",storage:Ym(()=>({getItem:()=>nr?sessionStorage.getItem(nr):null,setItem:(e,t)=>{nr&&sessionStorage.setItem(nr,t)},removeItem:()=>{nr&&sessionStorage.removeItem(nr)}})),partialize:e=>({agentId:e.agentId,userId:e.userId,context:e.context,chats:e.chats,sessionId:e.sessionId,sessionToken:e.sessionToken,initialMessage:e.initialMessage,connectionStatus:e.connectionStatus,elicitationState:e.elicitationState})})),QS=e=>{const t=`med-assist-store-${e}`;let r=null;try{const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i);s?.state&&(r=s.state)}}catch{}ze.setState(Xm),r&&ze.setState(r)},ku=x.createContext(null),US=({children:e})=>{const[t,r]=x.useState(null);return g.jsx(ku.Provider,{value:{synapse:t,setSynapse:r},children:e})},FS=()=>{const e=x.useContext(ku);if(!e)throw new Error("useSynapse must be used within a SynapseProvider");return e.synapse},TS=()=>{const e=x.useContext(ku);if(!e)throw new Error("useSynapseSetter must be used within a SynapseProvider");return e.setSynapse},NS=()=>{const[e,t]=x.useState(fe.VOICE_AGENT_STATE.IDLE),[r,i]=x.useState(!1),s=FS(),{setError:l}=ze();x.useEffect(()=>{if(!s)return;const m=s.voice,B=w=>{t(w)},C=()=>{l({title:"Voice connection failed. Please try again."})};return m.on(fe.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.on(fe.VOICE_AGENT_EVENTS.ERROR,C),()=>{m.off(fe.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.off(fe.VOICE_AGENT_EVENTS.ERROR,C)}},[s,l]);const c=x.useCallback(async()=>{if(!s){l({title:"Voice connection failed. Please try again."});return}await s.voice.connect()},[s,l]),u=x.useCallback(()=>{s?.voice.disconnect(),r&&i(!1)},[s]),f=x.useCallback(()=>{s?.voice.reset(),r&&i(!1)},[s]),h=x.useCallback(()=>{i(m=>!m),s?.voice.toggleMute()},[s]);return{state:e,isMuted:r,connect:c,disconnect:u,reset:f,toggleMute:h}},Tn=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("rounded-xl bg-elicitationBg text-card-foreground shadow",e),...t}));Tn.displayName="Card";const ju=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex flex-col space-y-1.5 p-6",e),...t}));ju.displayName="CardHeader";const qm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("font-semibold leading-none tracking-tight",e),...t}));qm.displayName="CardTitle";const IS=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("text-sm text-muted-foreground",e),...t}));IS.displayName="CardDescription";const Vl=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("p-6 pt-0",e),...t}));Vl.displayName="CardContent";const Jm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex items-center p-6 pt-0",e),...t}));Jm.displayName="CardFooter";function _S(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c);u.displayName=l+"Context";const f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...v}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>v,Object.values(v));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,v=x.useContext(w);if(v)return v;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,HS(s,...t)]}function HS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var MS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ku=MS.reduce((e,t)=>{const r=Hm(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),Vu={exports:{}},Gu={};var Zm;function OS(){if(Zm)return Gu;Zm=1;var e=Ul();function t(B,C){return B===C&&(B!==0||1/B===1/C)||B!==B&&C!==C}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function u(B,C){var w=C(),v=i({inst:{value:w,getSnapshot:C}}),b=v[0].inst,U=v[1];return l(function(){b.value=w,b.getSnapshot=C,f(b)&&U({inst:b})},[B,w,C]),s(function(){return f(b)&&U({inst:b}),B(function(){f(b)&&U({inst:b})})},[B]),c(w),w}function f(B){var C=B.getSnapshot;B=B.value;try{var w=C();return!r(B,w)}catch{return!0}}function h(B,C){return C()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Gu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Gu}var Wm;function RS(){return Wm||(Wm=1,Vu.exports=OS()),Vu.exports}var LS=RS();function DS(){return LS.useSyncExternalStore(kS,()=>!0,()=>!1)}function kS(){return()=>{}}var zu="Avatar",[jS]=_S(zu),[KS,$m]=jS(zu),e0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,...i}=e,[s,l]=x.useState("idle");return g.jsx(KS,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:g.jsx(Ku.span,{...i,ref:t})})});e0.displayName=zu;var A0="AvatarImage",t0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...l}=e,c=$m(A0,r),u=VS(i,l),f=Ar(h=>{s(h),c.onImageLoadingStatusChange(h)});return er(()=>{u!=="idle"&&f(u)},[u,f]),u==="loaded"?g.jsx(Ku.img,{...l,ref:t,src:i}):null});t0.displayName=A0;var n0="AvatarFallback",r0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:i,...s}=e,l=$m(n0,r),[c,u]=x.useState(i===void 0);return x.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(f)}},[i]),c&&l.imageLoadingStatus!=="loaded"?g.jsx(Ku.span,{...s,ref:t}):null});r0.displayName=n0;function i0(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function VS(e,{referrerPolicy:t,crossOrigin:r}){const i=DS(),s=x.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[c,u]=x.useState(()=>i0(l,e));return er(()=>{u(i0(l,e))},[l,e]),er(()=>{const f=B=>()=>{u(B)};if(!l)return;const h=f("loaded"),m=f("error");return l.addEventListener("load",h),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof r=="string"&&(l.crossOrigin=r),()=>{l.removeEventListener("load",h),l.removeEventListener("error",m)}},[l,r,t]),c}var a0=e0,s0=t0,l0=r0;const Pu=x.forwardRef(({className:e,...t},r)=>g.jsx(a0,{ref:r,className:he("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Pu.displayName=a0.displayName;const o0=x.forwardRef(({className:e,...t},r)=>g.jsx(s0,{ref:r,className:he("aspect-square h-full w-full",e),...t}));o0.displayName=s0.displayName;const Yu=x.forwardRef(({className:e,...t},r)=>g.jsx(l0,{ref:r,className:he("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Yu.displayName=l0.displayName;const c0=x.createContext(!1);function GS({enabled:e,children:t}){return g.jsx(c0.Provider,{value:e,children:t})}function zS(){return x.useContext(c0)}const u0="(max-width: 768px), (pointer: coarse)",f0=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function PS(){if(typeof window>"u")return!1;const e=window.matchMedia?.(u0)?.matches??!1,t=f0.test(navigator?.userAgent??"");return e||t}function d0(){const[e,t]=x.useState(PS);return x.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(u0),i=f0.test(navigator?.userAgent??""),s=()=>t(r.matches||i);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),e}function YS({onClose:e,showCloseButton:t=!0,title:r,titleImg:i,tagline:s,iconUrl:l,startNewConversation:c,voiceAgentState:u="idle",headerTinted:f=!1,onToggleDisplayMode:h}){const m=d0(),C=zS()&&!m,w=ze(O=>O.displayMode)==="full",v=ze(O=>O.initialDisplayMode)==="full",U=(w?!1:f)?"text-primary-foreground":"text-foreground",Q=ze(O=>O.connectionStatus),[I,M]=x.useState(!1),z=x.useRef(null),j=x.useMemo(()=>u==="connected"||u==="connecting"||u==="listening"||u==="speaking"||u==="thinking",[u]),F=x.useCallback(()=>{I||(M(!0),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{z.current=null,M(!1)},6e3),c())},[I,c]);x.useEffect(()=>{Q===fe.ConnectionStatus.CONNECTED&&(M(!1),z.current&&clearTimeout(z.current))},[Q]);const k=(()=>{switch(Q){case fe.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:s||"Online",textColor:"text-green-600"};case fe.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case fe.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return g.jsx("div",{className:"px-6 py-3",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative flex-shrink-0",children:[g.jsx(Pu,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:g.jsx(Yu,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:l?g.jsx("img",{src:l,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):g.jsx("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),g.jsx("div",{className:he("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",k.dotColor,Q===fe.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),g.jsxs("div",{className:"flex flex-col",children:[i?g.jsx("img",{src:i,alt:"",className:"h-6 object-contain"}):g.jsx("p",{className:he("text-lg font-semibold synapse-header-title",U),children:r||"Health Assist"}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:k.text})})]})]}),g.jsxs("div",{className:he("flex items-center",!C&&"gap-2"),children:[!j&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:F,disabled:I,className:he("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",U),children:g.jsx(Km,{className:"w-5 h-5"})}),C&&g.jsx(Ie,{onClick:h,type:"button",variant:"ghost",size:"icon",title:w?"Exit fullscreen":"Enter fullscreen",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:w?g.jsx(gS,{className:"w-8 h-8"}):g.jsx(dS,{className:"w-8 h-8"})}),(t||!v)&&g.jsx(Ie,{onClick:e,type:"button",variant:"ghost",size:"icon",title:"Close",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:g.jsx(ns,{className:"w-8 h-8"})})]})]})})}const Xu=5,XS=10*1024*1024,Gl={width:384,height:600},zl=20,qS=150;function JS({defaultPosition:e,enabled:t=!0,onDragStart:r,onDragEnd:i}={}){const s=x.useCallback(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-Gl.width-zl,y:window.innerHeight-Gl.height-zl},[]),[l,c]=x.useState(()=>e??s()),[u,f]=x.useState(!1),h=x.useRef({x:0,y:0}),m=x.useRef(null),B=x.useRef(!1);x.useEffect(()=>{t||(B.current=!1)},[t]),x.useLayoutEffect(()=>{!t||B.current||typeof window>"u"||(c(e||s()),B.current=!0)},[t,e,s]),x.useEffect(()=>{if(!t||typeof window>"u")return;let b=null;const U=()=>{c(I=>{const M=Math.max(0,window.innerWidth-Gl.width-zl),z=Math.max(0,window.innerHeight-Gl.height-zl),j=Math.max(0,Math.min(I.x,M)),F=Math.max(0,Math.min(I.y,z));return j===I.x&&F===I.y?I:{x:j,y:F}})},Q=()=>{b!==null&&clearTimeout(b),b=setTimeout(U,qS)};return window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q),b!==null&&clearTimeout(b)}},[t]);const C=x.useCallback(b=>{if(!t)return;if(!b.target.closest(".synapse-chat-widget-header")){f(!1);return}b.preventDefault(),f(!0);const Q=m.current;if(Q){const I=Q.getBoundingClientRect();h.current={x:b.clientX-I.left,y:b.clientY-I.top}}else h.current={x:b.clientX-l.x,y:b.clientY-l.y};r?.()},[t,l.x,l.y,r]),w=x.useCallback(b=>{if(!t||!u)return;const U=b.clientX-h.current.x,Q=b.clientY-h.current.y,I=window.innerWidth-(m.current?.offsetWidth||0),M=window.innerHeight-(m.current?.offsetHeight||0),z=Math.max(0,Math.min(U,I)),j=Math.max(0,Math.min(Q,M));c({x:z,y:j})},[u,t]),v=x.useCallback(()=>{!t||!u||(f(!1),i?.())},[u,i]);return x.useEffect(()=>{if(!t)return;const b=m.current;if(b)return b.addEventListener("mousedown",C),()=>{b.removeEventListener("mousedown",C)}},[t,C]),x.useEffect(()=>{if(u)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",v),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""}},[u,w,v]),{position:l,isDragging:u,elementRef:m,setPosition:c}}const qu="#6B5CE0",Pl={background:"#F0F0F0",backgroundImage:void 0,primary:qu,textColor:"black"},ZS="rgba(0, 0, 0, 0.4)",WS="24px";function $S(e){if(e==="dark")return"white";if(e==="light")return"black"}function eQ(e){const t=e?.primary??e?.primaryColor??Pl.primary,r=e?.textColor??$S(e?.mode);return{background:e?.background??Pl.background,backgroundImage:e?.backgroundImage??Pl.backgroundImage,primary:t,primaryColor:t,textColor:r??Pl.textColor,mode:e?.mode,headerTinted:e?.headerTinted,secondaryColor:e?.secondaryColor,tertiaryColor:e?.tertiaryColor}}function AQ(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16)/255,r=parseInt(e.substring(2,4),16)/255,i=parseInt(e.substring(4,6),16)/255,s=Math.max(t,r,i),l=Math.min(t,r,i);let c=0,u=0;const f=(s+l)/2;if(s!==l){const m=s-l;switch(u=f>.5?m/(2-s-l):m/(s+l),s){case t:c=((r-i)/m+(r<i?6:0))/6;break;case r:c=((i-t)/m+2)/6;break;case i:c=((t-r)/m+4)/6;break}}c=Math.round(c*360),u=Math.round(u*100);const h=Math.round(f*100);return`${c} ${u}% ${h}%`}function tQ(e){const t=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!t)throw new Error("Invalid RGB format");const r=parseInt(t[1],10)/255,i=parseInt(t[2],10)/255,s=parseInt(t[3],10)/255,l=Math.max(r,i,s),c=Math.min(r,i,s);let u=0,f=0;const h=(l+c)/2;if(l!==c){const B=l-c;switch(f=h>.5?B/(2-l-c):B/(l+c),l){case r:u=((i-s)/B+(i<s?6:0))/6;break;case i:u=((s-r)/B+2)/6;break;case s:u=((r-i)/B+4)/6;break}}u=Math.round(u*360),f=Math.round(f*100);const m=Math.round(h*100);return`${u} ${f}% ${m}%`}function nQ(e){const t=e.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!t)throw new Error("Invalid HSL format");return`${t[1]} ${t[2]}% ${t[3]}%`}function Ju(e){if(!e||typeof e!="string")throw new Error("Color must be a non-empty string");const t=e.trim();if(t.startsWith("#"))return AQ(t);if(t.startsWith("rgb"))return tQ(t);if(t.startsWith("hsl"))return nQ(t);if(/^\d+\s+\d+%\s+\d+%$/.test(t))return t;throw new Error(`Unsupported color format: ${e}`)}function h0(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return t?parseInt(t[3],10)/100:.5}function Zu(e){return h0(e)>.5?"0 0% 9%":"0 0% 98%"}function rQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return"0 0% 96%";const r=t[1],i=Math.max(0,parseInt(t[2],10)-5);return`${r} ${i}% 96%`}function iQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const r=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10);return{50:`${r} ${Math.max(0,i-20)}% ${Math.min(98,s+40)}%`,100:`${r} ${Math.max(0,i-15)}% ${Math.min(96,s+35)}%`,200:`${r} ${Math.max(0,i-10)}% ${Math.min(92,s+30)}%`,300:`${r} ${Math.max(0,i-5)}% ${Math.min(85,s+20)}%`,400:`${r} ${i}% ${Math.min(75,s+10)}%`,500:`${r} ${i}% ${s}%`,600:`${r} ${Math.min(100,i+5)}% ${Math.max(50,s-10)}%`,700:`${r} ${Math.min(100,i+10)}% ${Math.max(40,s-20)}%`,800:`${r} ${Math.min(100,i+15)}% ${Math.max(30,s-30)}%`,900:`${r} ${Math.min(100,i+20)}% ${Math.max(20,s-40)}%`}}function g0(e,t){const r=t.primary??qu,i=t.textColor??"black",s=!!t.backgroundImage,l=t.mode==="dark"||i==="white",c=t.headerTinted??!1,u=(w,v)=>{const b=e instanceof ShadowRoot?e.host:e;b instanceof HTMLElement&&b.style.setProperty(w,v)};let f;try{f=Ju(r)}catch{f=Ju(qu)}u("--primary",f),u("--primary-foreground",Zu(f)),u("--ring",f),u("--border-primary",f);const h=iQ(f);for(const[w,v]of Object.entries(h))u(`--primary-${w}`,v);const m=Zu(f);if(u("--color-on-primary",m),s)u("--background","0 0% 0% / 0"),u("--widget-bg-overlay","transparent");else{const w=l?"#191919":"#F0F0F0";try{u("--background",Ju(w))}catch{u("--background",l?"0 0% 10%":"0 0% 94.1%")}u("--widget-bg-overlay",`hsl(${f} / ${c?.05:.1})`)}if(l?u("--bot-message-bg","var(--black-600)"):u("--bot-message-bg","var(--white-600)"),l?u("--card","0 0% 0% / 0.6"):u("--card","0 0% 100% / 0.6"),u("--bot-message-border",rQ(l?"0 0% 100%":"0 0% 9%")),l?(u("--foreground","0 0% 100%"),u("--card-foreground","0 0% 100%"),u("--popover-foreground","0 0% 100%"),u("--muted-foreground","0 0% 70%"),u("--normal-text-color","var(--white-1000)")):(u("--foreground","0 0% 0%"),u("--card-foreground","0 0% 0%"),u("--popover-foreground","0 0% 0%"),u("--muted-foreground","0 0% 30%"),u("--normal-text-color","var(--black-1000)")),s?(u("--header-bg","transparent"),u("--header-stroke",l?"var(--white-200)":"var(--black-200)")):c?(u("--header-bg",`hsl(${f})`),u("--header-stroke",`hsl(${f} / 0.3)`)):(u("--header-bg",l?"var(--black-700)":"var(--white-700)"),u("--header-stroke",`hsl(${f} / 0.3)`)),s?(u("--footer-bg","transparent"),u("--footer-stroke",l?"var(--white-200)":"var(--black-200)")):(u("--footer-bg",l?"var(--black-700)":"var(--white-700)"),u("--footer-stroke",`hsl(${f} / 0.3)`)),c&&!s){const w=h0(m)>.5;u("--header-tagline",w?"var(--white-600)":"var(--black-600)")}else u("--header-tagline",l?"var(--white-600)":"var(--black-600)");u("--elicitation-bg",l?"var(--black-1000)":"var(--white-1000)"),u("--input-box-bg",l?"var(--white-100)":"var(--black-100)");const B=e instanceof ShadowRoot?e.host:e;B instanceof HTMLElement&&(B.setAttribute("data-text-color",i),B.setAttribute("data-header-tinted",String(c))),s?u("--popover",l?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):c?u("--popover",f):u("--popover",l?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const C=l?"white":"black";for(const w of[50,100,200,300,400,500,600,700,800,900,1e3])u(`--popover-${w}`,`var(--${C}-${w})`);u("--secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--surface-secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--secondary-foreground",l?"0 0% 98%":"0 0% 9%"),u("--muted",l?"0 0% 15%":"0 0% 96.1%"),u("--accent",f),u("--accent-foreground",Zu(f)),s?u("--surface",l?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):u("--surface",l?"0 0% 10%":"0 0% 94.1%"),u("--surface-tertiary",l?"0 0% 12%":"0 0% 98%"),u("--border-subtle",l?"0 0% 20%":"0 0% 89.8%"),u("--border-medium",l?"0 0% 30%":"0 0% 80%"),u("--text-primary",l?"0 0% 100%":"0 0% 3.9%"),u("--text-secondary",l?"0 0% 70%":"0 0% 45.1%"),u("--text-tertiary",l?"0 0% 60%":"0 0% 63.9%"),u("--text-muted",l?"0 0% 70%":"0 0% 45.1%"),u("--border",l?"0 0% 20%":"0 0% 89.8%"),u("--input",l?"0 0% 20%":"0 0% 89.8%"),s?(u("--theme-background-image",`url(${t.backgroundImage})`),u("--theme-background-blur",WS),u("--theme-background-overlay",ZS),B instanceof HTMLElement&&B.classList.add("theme-with-background")):(u("--theme-background-image","none"),u("--theme-background-blur","0px"),u("--theme-background-overlay","rgba(0, 0, 0, 0)"),B instanceof HTMLElement&&B.classList.remove("theme-with-background"))}const aQ=x.lazy(()=>Promise.resolve().then(()=>m4));function p0({isOpen:e,onClose:t,showCloseButton:r=!0,iconUrl:i,onStartNewSession:s,showStartNewChatButton:l,children:c,fullScreenEmptyState:u,title:f,titleImg:h,tagline:m,sessionId:B,chatComposer:C,environment:w,mode:v,onToggleDisplayMode:b,isAuthComponent:U,activeElicitation:Q,voiceAgentState:I,theme:M,hideWatermark:z=!1}){const[j,F]=x.useState(!1),[H,k]=x.useState(!1),O=x.useRef(null),$=v,ee=$==="full",V=x.useRef(null),[se,Ae]=x.useState("");x.useEffect(()=>{V.current!==null&&V.current!==$&&Ae($==="full"?"Switched to fullscreen mode":$==="widget"?"Switched to widget mode":"Switched to mobile layout"),V.current=$},[$]);const J=x.useMemo(()=>eQ(M),[M]),{setIsMobile:L}=ze(E=>E),Z=!!U,te=async E=>{if(!(!C?.onSend||H)){k(!0);try{await C.onSend(E)}finally{k(!1)}}};x.useEffect(()=>{if(!O.current)return;const E=$==="full"?{...J,headerTinted:!1}:J;g0(O.current,E),$==="full"&&!J.backgroundImage?(O.current.style.setProperty("--background","0 0% 100%"),O.current.style.setProperty("--widget-bg-overlay","transparent")):(O.current.style.removeProperty("--background"),O.current.style.removeProperty("--widget-bg-overlay"),g0(O.current,J))},[J,$]),x.useEffect(()=>{const E=()=>{const ne=window?.innerWidth??0,oe=navigator?.userAgent?.toLowerCase()??"",ue=ne<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(oe);F(ue),L(ue)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]),x.useLayoutEffect(()=>{if(!e||!j||!O.current)return;const E=O.current;let ne=null,oe=null,ue=null,pe=window.visualViewport?.offsetTop??0,Oe=0;const xe=2,eA=80;if(window.visualViewport){const Pe=()=>{if(E&&window.visualViewport){const rA=window.visualViewport.height,VA=window.visualViewport.offsetTop;ne=requestAnimationFrame(()=>{E.style.transition="none",E.style.top=`${VA}px`,E.style.left="0",E.style.right="0",E.style.bottom="auto",E.style.width="100vw",E.style.height=`${rA}px`,E.style.maxHeight=`${rA}px`,E.style.minHeight=`${rA}px`,oe&&clearTimeout(oe),oe=setTimeout(()=>{E.style.transition=""},100)})}},nA=()=>{Pe()},OA=()=>{if(!E||!window.visualViewport)return;const rA=window.visualViewport.offsetTop,VA=Date.now();Math.abs(rA-pe)<xe||VA-Oe<eA||(Oe=VA,pe=rA,ne=requestAnimationFrame(()=>{E.style.transition="none",E.style.top=`${rA}px`,ue&&clearTimeout(ue),ue=setTimeout(()=>{E.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",nA),window.visualViewport.addEventListener("scroll",OA),Pe(),()=>{ne&&cancelAnimationFrame(ne),oe&&clearTimeout(oe),ue&&clearTimeout(ue),window.visualViewport?.removeEventListener("resize",nA),window.visualViewport?.removeEventListener("scroll",OA),E&&(E.style.width="",E.style.height="",E.style.maxHeight="",E.style.minHeight="",E.style.transition="")}}else{const Pe=()=>{E&&(E.style.transition="none",E.style.top="0",E.style.left="0",E.style.right="0",E.style.bottom="auto",E.style.width="100vw",E.style.height="100svh",E.style.maxHeight="100svh",setTimeout(()=>{E.style.transition=""},100))};return window.addEventListener("resize",Pe),Pe(),()=>{window.removeEventListener("resize",Pe),E&&(E.style.width="",E.style.height="",E.style.maxHeight="",E.style.transition="")}}},[e,j]),x.useEffect(()=>{if(e){const E=O.current,ne=window.scrollY,oe=document.body.style.cssText,ue=document.documentElement.style.overflow,pe=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${ne}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",pe>0&&!j&&(document.body.style.paddingRight=`${pe}px`);let Oe=0;const xe=Pe=>{Oe=Pe.touches[0].clientY},eA=Pe=>{if(Pe.touches.length!==1)return;const nA=Oe-Pe.touches[0].clientY;Oe=Pe.touches[0].clientY;let OA=Pe.target;for(;OA&&OA!==E;){const{overflowY:rA}=window.getComputedStyle(OA);if((rA==="auto"||rA==="scroll")&&OA.scrollHeight>OA.clientHeight){const{scrollTop:VA,scrollHeight:ct,clientHeight:wn}=OA,Cn=VA<=0&&nA<0,Ut=VA+wn>=ct-1&&nA>0;if(!Cn&&!Ut)return;break}OA=OA.parentElement}Pe.preventDefault()};return E&&(E.addEventListener("touchstart",xe,{passive:!0}),E.addEventListener("touchmove",eA,{passive:!1})),()=>{E&&(E.removeEventListener("touchstart",xe),E.removeEventListener("touchmove",eA)),document.body.style.cssText=oe,document.documentElement.style.overflow=ue,window.scrollTo(0,ne)}}},[e,j]);const{position:ge,elementRef:T}=JS({enabled:e&&!j&&!ee});x.useEffect(()=>{O.current&&(T.current=O.current)},[T]);const N=he("synapse-chat-widget-container","fixed m-0 p-0","box-border",!j&&!ee?"transition-all duration-300":"",j?"w-screen h-[100svh]":ee?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),q=he("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",J.backgroundImage?"theme-with-background":"",j?"rounded-none border-0 flex-col":ee?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return g.jsxs("div",{ref:O,"data-mode":$,className:N,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...ee&&e&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...ee&&!e&&{display:"none"},...!j&&!ee&&{left:`${ge.x}px`,top:`${ge.y}px`,bottom:"auto",right:"auto"},...j&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:J.backgroundImage?"transparent":"hsl(var(--background))"}},children:[g.jsx("style",{children:`
|
|
8
|
+
`+o.stack}}var Ft=Object.prototype.hasOwnProperty,ct=e.unstable_scheduleCallback,ln=e.unstable_cancelCallback,ei=e.unstable_shouldYield,Br=e.unstable_requestPaint,XA=e.unstable_now,zi=e.unstable_getCurrentPriorityLevel,re=e.unstable_ImmediatePriority,K=e.unstable_UserBlockingPriority,J=e.unstable_NormalPriority,ce=e.unstable_LowPriority,pe=e.unstable_IdlePriority,Ue=e.log,Ne=e.unstable_setDisableYieldValue,We=null,ze=null;function dA(A){if(typeof Ue=="function"&&Ne(A),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(We,A)}catch{}}var De=Math.clz32?Math.clz32:tA,Bt=Math.log,be=Math.LN2;function tA(A){return A>>>=0,A===0?32:31-(Bt(A)/be|0)|0}var TA=256,lt=262144,on=4194304;function cn(A){var n=A&42;if(n!==0)return n;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function MA(A,n,a){var o=A.pendingLanes;if(o===0)return 0;var d=0,p=A.suspendedLanes,y=A.pingedLanes;A=A.warmLanes;var S=o&134217727;return S!==0?(o=S&~p,o!==0?d=cn(o):(y&=S,y!==0?d=cn(y):a||(a=S&~A,a!==0&&(d=cn(a))))):(S=o&~p,S!==0?d=cn(S):y!==0?d=cn(y):a||(a=o&~A,a!==0&&(d=cn(a)))),d===0?0:n!==0&&n!==d&&(n&p)===0&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function VA(A,n){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&n)===0}function je(A,n){switch(A){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Tt(){var A=on;return on<<=1,(on&62914560)===0&&(on=4194304),A}function Hn(A){for(var n=[],a=0;31>a;a++)n.push(A);return n}function Nt(A,n){A.pendingLanes|=n,n!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Ai(A,n,a,o,d,p){var y=A.pendingLanes;A.pendingLanes=a,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=a,A.entangledLanes&=a,A.errorRecoveryDisabledLanes&=a,A.shellSuspendCounter=0;var S=A.entanglements,_=A.expirationTimes,X=A.hiddenUpdates;for(a=y&~a;0<a;){var ne=31-De(a),ae=1<<ne;S[ne]=0,_[ne]=-1;var Z=X[ne];if(Z!==null)for(X[ne]=null,ne=0;ne<Z.length;ne++){var $=Z[ne];$!==null&&($.lane&=-536870913)}a&=~ae}o!==0&&ti(A,o,0),p!==0&&d===0&&A.tag!==0&&(A.suspendedLanes|=p&~(y&~n))}function ti(A,n,a){A.pendingLanes|=n,A.suspendedLanes&=~n;var o=31-De(n);A.entangledLanes|=n,A.entanglements[o]=A.entanglements[o]|1073741824|a&261930}function GA(A,n){var a=A.entangledLanes|=n;for(A=A.entanglements;a;){var o=31-De(a),d=1<<o;d&n|A[o]&n&&(A[o]|=n),a&=~d}}function ut(A,n){var a=n&-n;return a=(a&42)!==0?1:wr(a),(a&(A.suspendedLanes|n))!==0?0:a}function wr(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=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:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function Rs(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function Zo(){var A=q.p;return A!==0?A:(A=window.event,A===void 0?32:jb(A.type))}function Pi(A,n){var a=q.p;try{return q.p=A,n()}finally{q.p=a}}var nA=Math.random().toString(36).slice(2),Ie="__reactFiber$"+nA,OA="__reactProps$"+nA,Mn="__reactContainer$"+nA,Wo="__reactEvents$"+nA,CM="__reactListeners$"+nA,yM="__reactHandles$"+nA,ry="__reactResources$"+nA,Ls="__reactMarker$"+nA;function jd(A){delete A[Ie],delete A[OA],delete A[Wo],delete A[CM],delete A[yM]}function Yi(A){var n=A[Ie];if(n)return n;for(var a=A.parentNode;a;){if(n=a[Mn]||a[Ie]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(A=xb(A);A!==null;){if(a=A[Ie])return a;A=xb(A)}return n}A=a,a=A.parentNode}return null}function Xi(A){if(A=A[Ie]||A[Mn]){var n=A.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return A}return null}function Ds(A){var n=A.tag;if(n===5||n===26||n===27||n===6)return A.stateNode;throw Error(i(33))}function qi(A){var n=A[ry];return n||(n=A[ry]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function qA(A){A[Ls]=!0}var iy=new Set,ay={};function ni(A,n){Ji(A,n),Ji(A+"Capture",n)}function Ji(A,n){for(ay[A]=n,A=0;A<n.length;A++)iy.add(n[A])}var EM=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]*$"),sy={},ly={};function vM(A){return Ft.call(ly,A)?!0:Ft.call(sy,A)?!1:EM.test(A)?ly[A]=!0:(sy[A]=!0,!1)}function $o(A,n,a){if(vM(n))if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":A.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){A.removeAttribute(n);return}}A.setAttribute(n,""+a)}}function ec(A,n,a){if(a===null)A.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(n);return}A.setAttribute(n,""+a)}}function On(A,n,a,o){if(o===null)A.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(a);return}A.setAttributeNS(n,a,""+o)}}function Yt(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function oy(A){var n=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function bM(A,n,a){var o=Object.getOwnPropertyDescriptor(A.constructor.prototype,n);if(!A.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(A,n,{configurable:!0,get:function(){return d.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(A,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){A._valueTracker=null,delete A[n]}}}}function Kd(A){if(!A._valueTracker){var n=oy(A)?"checked":"value";A._valueTracker=bM(A,n,""+A[n])}}function cy(A){if(!A)return!1;var n=A._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return A&&(o=oy(A)?A.checked?"true":"false":A.value),A=o,A!==a?(n.setValue(A),!0):!1}function Ac(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var xM=/[\n"\\]/g;function Xt(A){return A.replace(xM,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Vd(A,n,a,o,d,p,y,S){A.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?A.type=y:A.removeAttribute("type"),n!=null?y==="number"?(n===0&&A.value===""||A.value!=n)&&(A.value=""+Yt(n)):A.value!==""+Yt(n)&&(A.value=""+Yt(n)):y!=="submit"&&y!=="reset"||A.removeAttribute("value"),n!=null?Gd(A,y,Yt(n)):a!=null?Gd(A,y,Yt(a)):o!=null&&A.removeAttribute("value"),d==null&&p!=null&&(A.defaultChecked=!!p),d!=null&&(A.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?A.name=""+Yt(S):A.removeAttribute("name")}function uy(A,n,a,o,d,p,y,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(A.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Kd(A);return}a=a!=null?""+Yt(a):"",n=n!=null?""+Yt(n):a,S||n===A.value||(A.value=n),A.defaultValue=n}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,A.checked=S?A.checked:!!o,A.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(A.name=y),Kd(A)}function Gd(A,n,a){n==="number"&&Ac(A.ownerDocument)===A||A.defaultValue===""+a||(A.defaultValue=""+a)}function Zi(A,n,a,o){if(A=A.options,n){n={};for(var d=0;d<a.length;d++)n["$"+a[d]]=!0;for(a=0;a<A.length;a++)d=n.hasOwnProperty("$"+A[a].value),A[a].selected!==d&&(A[a].selected=d),d&&o&&(A[a].defaultSelected=!0)}else{for(a=""+Yt(a),n=null,d=0;d<A.length;d++){if(A[d].value===a){A[d].selected=!0,o&&(A[d].defaultSelected=!0);return}n!==null||A[d].disabled||(n=A[d])}n!==null&&(n.selected=!0)}}function fy(A,n,a){if(n!=null&&(n=""+Yt(n),n!==A.value&&(A.value=n),a==null)){A.defaultValue!==n&&(A.defaultValue=n);return}A.defaultValue=a!=null?""+Yt(a):""}function dy(A,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(i(92));if(z(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=Yt(n),A.defaultValue=a,o=A.textContent,o===a&&o!==""&&o!==null&&(A.value=o),Kd(A)}function Wi(A,n){if(n){var a=A.firstChild;if(a&&a===A.lastChild&&a.nodeType===3){a.nodeValue=n;return}}A.textContent=n}var SM=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 hy(A,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?A.setProperty(n,""):n==="float"?A.cssFloat="":A[n]="":o?A.setProperty(n,a):typeof a!="number"||a===0||SM.has(n)?n==="float"?A.cssFloat=a:A[n]=(""+a).trim():A[n]=a+"px"}function gy(A,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(A=A.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?A.setProperty(o,""):o==="float"?A.cssFloat="":A[o]="");for(var d in n)o=n[d],n.hasOwnProperty(d)&&a[d]!==o&&hy(A,d,o)}else for(var p in n)n.hasOwnProperty(p)&&hy(A,p,n[p])}function zd(A){if(A.indexOf("-")===-1)return!1;switch(A){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 QM=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"]]),UM=/^[\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 tc(A){return UM.test(""+A)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":A}function Rn(){}var Pd=null;function Yd(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}var $i=null,ea=null;function py(A){var n=Xi(A);if(n&&(A=n.stateNode)){var a=A[OA]||null;e:switch(A=n.stateNode,n.type){case"input":if(Vd(A,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=A;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Xt(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==A&&o.form===A.form){var d=o[OA]||null;if(!d)throw Error(i(90));Vd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===A.form&&cy(o)}break e;case"textarea":fy(A,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Zi(A,!!a.multiple,n,!1)}}}var Xd=!1;function my(A,n,a){if(Xd)return A(n,a);Xd=!0;try{var o=A(n);return o}finally{if(Xd=!1,($i!==null||ea!==null)&&(Vc(),$i&&(n=$i,A=ea,ea=$i=null,py(n),A)))for(n=0;n<A.length;n++)py(A[n])}}function ks(A,n){var a=A.stateNode;if(a===null)return null;var o=a[OA]||null;if(o===null)return null;a=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(A=A.type,o=!(A==="button"||A==="input"||A==="select"||A==="textarea")),A=!o;break e;default:A=!1}if(A)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var Ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qd=!1;if(Ln)try{var js={};Object.defineProperty(js,"passive",{get:function(){qd=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{qd=!1}var Cr=null,Jd=null,nc=null;function By(){if(nc)return nc;var A,n=Jd,a=n.length,o,d="value"in Cr?Cr.value:Cr.textContent,p=d.length;for(A=0;A<a&&n[A]===d[A];A++);var y=a-A;for(o=1;o<=y&&n[a-o]===d[p-o];o++);return nc=d.slice(A,1<o?1-o:void 0)}function rc(A){var n=A.keyCode;return"charCode"in A?(A=A.charCode,A===0&&n===13&&(A=13)):A=n,A===10&&(A=13),32<=A||A===13?A:0}function ic(){return!0}function wy(){return!1}function wt(A){function n(a,o,d,p,y){this._reactName=a,this._targetInst=d,this.type=o,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var S in A)A.hasOwnProperty(S)&&(a=A[S],this[S]=a?a(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ic:wy,this.isPropagationStopped=wy,this}return B(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ic)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ic)},persist:function(){},isPersistent:ic}),n}var ri={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(A){return A.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=wt(ri),Ks=B({},ri,{view:0,detail:0}),FM=wt(Ks),Zd,Wd,Vs,sc=B({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,button:0,buttons:0,relatedTarget:function(A){return A.relatedTarget===void 0?A.fromElement===A.srcElement?A.toElement:A.fromElement:A.relatedTarget},movementX:function(A){return"movementX"in A?A.movementX:(A!==Vs&&(Vs&&A.type==="mousemove"?(Zd=A.screenX-Vs.screenX,Wd=A.screenY-Vs.screenY):Wd=Zd=0,Vs=A),Zd)},movementY:function(A){return"movementY"in A?A.movementY:Wd}}),Cy=wt(sc),TM=B({},sc,{dataTransfer:0}),NM=wt(TM),IM=B({},Ks,{relatedTarget:0}),$d=wt(IM),_M=B({},ri,{animationName:0,elapsedTime:0,pseudoElement:0}),HM=wt(_M),MM=B({},ri,{clipboardData:function(A){return"clipboardData"in A?A.clipboardData:window.clipboardData}}),OM=wt(MM),RM=B({},ri,{data:0}),yy=wt(RM),LM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DM={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"},kM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jM(A){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(A):(A=kM[A])?!!n[A]:!1}function eh(){return jM}var KM=B({},Ks,{key:function(A){if(A.key){var n=LM[A.key]||A.key;if(n!=="Unidentified")return n}return A.type==="keypress"?(A=rc(A),A===13?"Enter":String.fromCharCode(A)):A.type==="keydown"||A.type==="keyup"?DM[A.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(A){return A.type==="keypress"?rc(A):0},keyCode:function(A){return A.type==="keydown"||A.type==="keyup"?A.keyCode:0},which:function(A){return A.type==="keypress"?rc(A):A.type==="keydown"||A.type==="keyup"?A.keyCode:0}}),VM=wt(KM),GM=B({},sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ey=wt(GM),zM=B({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),PM=wt(zM),YM=B({},ri,{propertyName:0,elapsedTime:0,pseudoElement:0}),XM=wt(YM),qM=B({},sc,{deltaX:function(A){return"deltaX"in A?A.deltaX:"wheelDeltaX"in A?-A.wheelDeltaX:0},deltaY:function(A){return"deltaY"in A?A.deltaY:"wheelDeltaY"in A?-A.wheelDeltaY:"wheelDelta"in A?-A.wheelDelta:0},deltaZ:0,deltaMode:0}),JM=wt(qM),ZM=B({},ri,{newState:0,oldState:0}),WM=wt(ZM),$M=[9,13,27,32],Ah=Ln&&"CompositionEvent"in window,Gs=null;Ln&&"documentMode"in document&&(Gs=document.documentMode);var eO=Ln&&"TextEvent"in window&&!Gs,vy=Ln&&(!Ah||Gs&&8<Gs&&11>=Gs),by=" ",xy=!1;function Sy(A,n){switch(A){case"keyup":return $M.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qy(A){return A=A.detail,typeof A=="object"&&"data"in A?A.data:null}var Aa=!1;function AO(A,n){switch(A){case"compositionend":return Qy(n);case"keypress":return n.which!==32?null:(xy=!0,by);case"textInput":return A=n.data,A===by&&xy?null:A;default:return null}}function tO(A,n){if(Aa)return A==="compositionend"||!Ah&&Sy(A,n)?(A=By(),nc=Jd=Cr=null,Aa=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return vy&&n.locale!=="ko"?null:n.data;default:return null}}var nO={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 Uy(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n==="input"?!!nO[A.type]:n==="textarea"}function Fy(A,n,a,o){$i?ea?ea.push(o):ea=[o]:$i=o,n=Jc(n,"onChange"),0<n.length&&(a=new ac("onChange","change",null,a,o),A.push({event:a,listeners:n}))}var zs=null,Ps=null;function rO(A){ub(A,0)}function lc(A){var n=Ds(A);if(cy(n))return A}function Ty(A,n){if(A==="change")return n}var Ny=!1;if(Ln){var th;if(Ln){var nh="oninput"in document;if(!nh){var Iy=document.createElement("div");Iy.setAttribute("oninput","return;"),nh=typeof Iy.oninput=="function"}th=nh}else th=!1;Ny=th&&(!document.documentMode||9<document.documentMode)}function _y(){zs&&(zs.detachEvent("onpropertychange",Hy),Ps=zs=null)}function Hy(A){if(A.propertyName==="value"&&lc(Ps)){var n=[];Fy(n,Ps,A,Yd(A)),my(rO,n)}}function iO(A,n,a){A==="focusin"?(_y(),zs=n,Ps=a,zs.attachEvent("onpropertychange",Hy)):A==="focusout"&&_y()}function aO(A){if(A==="selectionchange"||A==="keyup"||A==="keydown")return lc(Ps)}function sO(A,n){if(A==="click")return lc(n)}function lO(A,n){if(A==="input"||A==="change")return lc(n)}function oO(A,n){return A===n&&(A!==0||1/A===1/n)||A!==A&&n!==n}var It=typeof Object.is=="function"?Object.is:oO;function Ys(A,n){if(It(A,n))return!0;if(typeof A!="object"||A===null||typeof n!="object"||n===null)return!1;var a=Object.keys(A),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var d=a[o];if(!Ft.call(n,d)||!It(A[d],n[d]))return!1}return!0}function My(A){for(;A&&A.firstChild;)A=A.firstChild;return A}function Oy(A,n){var a=My(A);A=0;for(var o;a;){if(a.nodeType===3){if(o=A+a.textContent.length,A<=n&&o>=n)return{node:a,offset:n-A};A=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=My(a)}}function Ry(A,n){return A&&n?A===n?!0:A&&A.nodeType===3?!1:n&&n.nodeType===3?Ry(A,n.parentNode):"contains"in A?A.contains(n):A.compareDocumentPosition?!!(A.compareDocumentPosition(n)&16):!1:!1}function Ly(A){A=A!=null&&A.ownerDocument!=null&&A.ownerDocument.defaultView!=null?A.ownerDocument.defaultView:window;for(var n=Ac(A.document);n instanceof A.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)A=n.contentWindow;else break;n=Ac(A.document)}return n}function rh(A){var n=A&&A.nodeName&&A.nodeName.toLowerCase();return n&&(n==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||n==="textarea"||A.contentEditable==="true")}var cO=Ln&&"documentMode"in document&&11>=document.documentMode,ta=null,ih=null,Xs=null,ah=!1;function Dy(A,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ah||ta==null||ta!==Ac(o)||(o=ta,"selectionStart"in o&&rh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xs&&Ys(Xs,o)||(Xs=o,o=Jc(ih,"onSelect"),0<o.length&&(n=new ac("onSelect","select",null,n,a),A.push({event:n,listeners:o}),n.target=ta)))}function ii(A,n){var a={};return a[A.toLowerCase()]=n.toLowerCase(),a["Webkit"+A]="webkit"+n,a["Moz"+A]="moz"+n,a}var na={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},sh={},ky={};Ln&&(ky=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function ai(A){if(sh[A])return sh[A];if(!na[A])return A;var n=na[A],a;for(a in n)if(n.hasOwnProperty(a)&&a in ky)return sh[A]=n[a];return A}var jy=ai("animationend"),Ky=ai("animationiteration"),Vy=ai("animationstart"),uO=ai("transitionrun"),fO=ai("transitionstart"),dO=ai("transitioncancel"),Gy=ai("transitionend"),zy=new Map,lh="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lh.push("scrollEnd");function un(A,n){zy.set(A,n),ni(n,[A])}var oc=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}},qt=[],ra=0,oh=0;function cc(){for(var A=ra,n=oh=ra=0;n<A;){var a=qt[n];qt[n++]=null;var o=qt[n];qt[n++]=null;var d=qt[n];qt[n++]=null;var p=qt[n];if(qt[n++]=null,o!==null&&d!==null){var y=o.pending;y===null?d.next=d:(d.next=y.next,y.next=d),o.pending=d}p!==0&&Py(a,d,p)}}function uc(A,n,a,o){qt[ra++]=A,qt[ra++]=n,qt[ra++]=a,qt[ra++]=o,oh|=o,A.lanes|=o,A=A.alternate,A!==null&&(A.lanes|=o)}function ch(A,n,a,o){return uc(A,n,a,o),fc(A)}function si(A,n){return uc(A,null,null,n),fc(A)}function Py(A,n,a){A.lanes|=a;var o=A.alternate;o!==null&&(o.lanes|=a);for(var d=!1,p=A.return;p!==null;)p.childLanes|=a,o=p.alternate,o!==null&&(o.childLanes|=a),p.tag===22&&(A=p.stateNode,A===null||A._visibility&1||(d=!0)),A=p,p=p.return;return A.tag===3?(p=A.stateNode,d&&n!==null&&(d=31-De(a),A=p.hiddenUpdates,o=A[d],o===null?A[d]=[n]:o.push(n),n.lane=a|536870912),p):null}function fc(A){if(50<pl)throw pl=0,wg=null,Error(i(185));for(var n=A.return;n!==null;)A=n,n=A.return;return A.tag===3?A.stateNode:null}var ia={};function hO(A,n,a,o){this.tag=A,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(A,n,a,o){return new hO(A,n,a,o)}function uh(A){return A=A.prototype,!(!A||!A.isReactComponent)}function Dn(A,n){var a=A.alternate;return a===null?(a=_t(A.tag,n,A.key,A.mode),a.elementType=A.elementType,a.type=A.type,a.stateNode=A.stateNode,a.alternate=A,A.alternate=a):(a.pendingProps=n,a.type=A.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=A.flags&65011712,a.childLanes=A.childLanes,a.lanes=A.lanes,a.child=A.child,a.memoizedProps=A.memoizedProps,a.memoizedState=A.memoizedState,a.updateQueue=A.updateQueue,n=A.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=A.sibling,a.index=A.index,a.ref=A.ref,a.refCleanup=A.refCleanup,a}function Yy(A,n){A.flags&=65011714;var a=A.alternate;return a===null?(A.childLanes=0,A.lanes=n,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=a.childLanes,A.lanes=a.lanes,A.child=a.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=a.memoizedProps,A.memoizedState=a.memoizedState,A.updateQueue=a.updateQueue,A.type=a.type,n=a.dependencies,A.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),A}function dc(A,n,a,o,d,p){var y=0;if(o=A,typeof A=="function")uh(A)&&(y=1);else if(typeof A=="string")y=wR(A,a,te.current)?26:A==="html"||A==="head"||A==="body"?27:5;else e:switch(A){case M:return A=_t(31,a,n,d),A.elementType=M,A.lanes=p,A;case b:return li(a.children,d,p,n);case U:y=8,d|=24;break;case Q:return A=_t(12,a,n,d|2),A.elementType=Q,A.lanes=p,A;case k:return A=_t(13,a,n,d),A.elementType=k,A.lanes=p,A;case F:return A=_t(19,a,n,d),A.elementType=F,A.lanes=p,A;default:if(typeof A=="object"&&A!==null)switch(A.$$typeof){case O:y=10;break e;case T:y=9;break e;case G:y=11;break e;case H:y=14;break e;case L:y=16,o=null;break e}y=29,a=Error(i(130,A===null?"null":typeof A,"")),o=null}return n=_t(y,a,n,d),n.elementType=A,n.type=o,n.lanes=p,n}function li(A,n,a,o){return A=_t(7,A,o,n),A.lanes=a,A}function fh(A,n,a){return A=_t(6,A,null,n),A.lanes=a,A}function Xy(A){var n=_t(18,null,null,0);return n.stateNode=A,n}function dh(A,n,a){return n=_t(4,A.children!==null?A.children:[],A.key,n),n.lanes=a,n.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},n}var qy=new WeakMap;function Jt(A,n){if(typeof A=="object"&&A!==null){var a=qy.get(A);return a!==void 0?a:(n={value:A,source:n,stack:yn(n)},qy.set(A,n),n)}return{value:A,source:n,stack:yn(n)}}var aa=[],sa=0,hc=null,qs=0,Zt=[],Wt=0,yr=null,En=1,vn="";function kn(A,n){aa[sa++]=qs,aa[sa++]=hc,hc=A,qs=n}function Jy(A,n,a){Zt[Wt++]=En,Zt[Wt++]=vn,Zt[Wt++]=yr,yr=A;var o=En;A=vn;var d=32-De(o)-1;o&=~(1<<d),a+=1;var p=32-De(n)+d;if(30<p){var y=d-d%5;p=(o&(1<<y)-1).toString(32),o>>=y,d-=y,En=1<<32-De(n)+d|a<<d|o,vn=p+A}else En=1<<p|a<<d|o,vn=A}function hh(A){A.return!==null&&(kn(A,1),Jy(A,1,0))}function gh(A){for(;A===hc;)hc=aa[--sa],aa[sa]=null,qs=aa[--sa],aa[sa]=null;for(;A===yr;)yr=Zt[--Wt],Zt[Wt]=null,vn=Zt[--Wt],Zt[Wt]=null,En=Zt[--Wt],Zt[Wt]=null}function Zy(A,n){Zt[Wt++]=En,Zt[Wt++]=vn,Zt[Wt++]=yr,En=n.id,vn=n.overflow,yr=A}var et=null,wA=null,qe=!1,Er=null,$t=!1,ph=Error(i(519));function vr(A){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Js(Jt(n,A)),ph}function Wy(A){var n=A.stateNode,a=A.type,o=A.memoizedProps;switch(n[Ie]=A,n[OA]=o,a){case"dialog":Ve("cancel",n),Ve("close",n);break;case"iframe":case"object":case"embed":Ve("load",n);break;case"video":case"audio":for(a=0;a<Bl.length;a++)Ve(Bl[a],n);break;case"source":Ve("error",n);break;case"img":case"image":case"link":Ve("error",n),Ve("load",n);break;case"details":Ve("toggle",n);break;case"input":Ve("invalid",n),uy(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ve("invalid",n);break;case"textarea":Ve("invalid",n),dy(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||gb(n.textContent,a)?(o.popover!=null&&(Ve("beforetoggle",n),Ve("toggle",n)),o.onScroll!=null&&Ve("scroll",n),o.onScrollEnd!=null&&Ve("scrollend",n),o.onClick!=null&&(n.onclick=Rn),n=!0):n=!1,n||vr(A,!0)}function $y(A){for(et=A.return;et;)switch(et.tag){case 5:case 31:case 13:$t=!1;return;case 27:case 3:$t=!0;return;default:et=et.return}}function la(A){if(A!==et)return!1;if(!qe)return $y(A),qe=!0,!1;var n=A.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=A.type,a=!(a!=="form"&&a!=="button")||Hg(A.type,A.memoizedProps)),a=!a),a&&wA&&vr(A),$y(A),n===13){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));wA=bb(A)}else if(n===31){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));wA=bb(A)}else n===27?(n=wA,Rr(A.type)?(A=Dg,Dg=null,wA=A):wA=n):wA=et?An(A.stateNode.nextSibling):null;return!0}function oi(){wA=et=null,qe=!1}function mh(){var A=Er;return A!==null&&(vt===null?vt=A:vt.push.apply(vt,A),Er=null),A}function Js(A){Er===null?Er=[A]:Er.push(A)}var Bh=I(null),ci=null,jn=null;function br(A,n,a){E(Bh,n._currentValue),n._currentValue=a}function Kn(A){A._currentValue=Bh.current,P(Bh)}function wh(A,n,a){for(;A!==null;){var o=A.alternate;if((A.childLanes&n)!==n?(A.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),A===a)break;A=A.return}}function Ch(A,n,a,o){var d=A.child;for(d!==null&&(d.return=A);d!==null;){var p=d.dependencies;if(p!==null){var y=d.child;p=p.firstContext;e:for(;p!==null;){var S=p;p=d;for(var _=0;_<n.length;_++)if(S.context===n[_]){p.lanes|=a,S=p.alternate,S!==null&&(S.lanes|=a),wh(p.return,a,A),o||(y=null);break e}p=S.next}}else if(d.tag===18){if(y=d.return,y===null)throw Error(i(341));y.lanes|=a,p=y.alternate,p!==null&&(p.lanes|=a),wh(y,a,A),y=null}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===A){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}}function oa(A,n,a,o){A=null;for(var d=n,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var y=d.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var S=d.type;It(d.pendingProps.value,y.value)||(A!==null?A.push(S):A=[S])}}else if(d===ge.current){if(y=d.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(A!==null?A.push(vl):A=[vl])}d=d.return}A!==null&&Ch(n,A,a,o),n.flags|=262144}function gc(A){for(A=A.firstContext;A!==null;){if(!It(A.context._currentValue,A.memoizedValue))return!0;A=A.next}return!1}function ui(A){ci=A,jn=null,A=A.dependencies,A!==null&&(A.firstContext=null)}function At(A){return eE(ci,A)}function pc(A,n){return ci===null&&ui(A),eE(A,n)}function eE(A,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},jn===null){if(A===null)throw Error(i(308));jn=n,A.dependencies={lanes:0,firstContext:n},A.flags|=524288}else jn=jn.next=n;return a}var gO=typeof AbortController<"u"?AbortController:function(){var A=[],n=this.signal={aborted:!1,addEventListener:function(a,o){A.push(o)}};this.abort=function(){n.aborted=!0,A.forEach(function(a){return a()})}},pO=e.unstable_scheduleCallback,mO=e.unstable_NormalPriority,RA={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yh(){return{controller:new gO,data:new Map,refCount:0}}function Zs(A){A.refCount--,A.refCount===0&&pO(mO,function(){A.controller.abort()})}var Ws=null,Eh=0,ca=0,ua=null;function BO(A,n){if(Ws===null){var a=Ws=[];Eh=0,ca=xg(),ua={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Eh++,n.then(AE,AE),n}function AE(){if(--Eh===0&&Ws!==null){ua!==null&&(ua.status="fulfilled");var A=Ws;Ws=null,ca=0,ua=null;for(var n=0;n<A.length;n++)(0,A[n])()}}function wO(A,n){var a=[],o={status:"pending",value:null,reason:null,then:function(d){a.push(d)}};return A.then(function(){o.status="fulfilled",o.value=n;for(var d=0;d<a.length;d++)(0,a[d])(n)},function(d){for(o.status="rejected",o.reason=d,d=0;d<a.length;d++)(0,a[d])(void 0)}),o}var tE=R.S;R.S=function(A,n){Dv=XA(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&BO(A,n),tE!==null&&tE(A,n)};var fi=I(null);function vh(){var A=fi.current;return A!==null?A:hA.pooledCache}function mc(A,n){n===null?E(fi,fi.current):E(fi,n.pool)}function nE(){var A=vh();return A===null?null:{parent:RA._currentValue,pool:A}}var fa=Error(i(460)),bh=Error(i(474)),Bc=Error(i(542)),wc={then:function(){}};function rE(A){return A=A.status,A==="fulfilled"||A==="rejected"}function iE(A,n,a){switch(a=A[a],a===void 0?A.push(n):a!==n&&(n.then(Rn,Rn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,sE(A),A;default:if(typeof n.status=="string")n.then(Rn,Rn);else{if(A=hA,A!==null&&100<A.shellSuspendCounter)throw Error(i(482));A=n,A.status="pending",A.then(function(o){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=o}},function(o){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw A=n.reason,sE(A),A}throw hi=n,fa}}function di(A){try{var n=A._init;return n(A._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(hi=a,fa):a}}var hi=null;function aE(){if(hi===null)throw Error(i(459));var A=hi;return hi=null,A}function sE(A){if(A===fa||A===Bc)throw Error(i(483))}var da=null,$s=0;function Cc(A){var n=$s;return $s+=1,da===null&&(da=[]),iE(da,A,n)}function el(A,n){n=n.props.ref,A.ref=n!==void 0?n:null}function yc(A,n){throw n.$$typeof===C?Error(i(525)):(A=Object.prototype.toString.call(n),Error(i(31,A==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":A)))}function lE(A){function n(V,D){if(A){var Y=V.deletions;Y===null?(V.deletions=[D],V.flags|=16):Y.push(D)}}function a(V,D){if(!A)return null;for(;D!==null;)n(V,D),D=D.sibling;return null}function o(V){for(var D=new Map;V!==null;)V.key!==null?D.set(V.key,V):D.set(V.index,V),V=V.sibling;return D}function d(V,D){return V=Dn(V,D),V.index=0,V.sibling=null,V}function p(V,D,Y){return V.index=Y,A?(Y=V.alternate,Y!==null?(Y=Y.index,Y<D?(V.flags|=67108866,D):Y):(V.flags|=67108866,D)):(V.flags|=1048576,D)}function y(V){return A&&V.alternate===null&&(V.flags|=67108866),V}function S(V,D,Y,ie){return D===null||D.tag!==6?(D=fh(Y,V.mode,ie),D.return=V,D):(D=d(D,Y),D.return=V,D)}function _(V,D,Y,ie){var xe=Y.type;return xe===b?ne(V,D,Y.props.children,ie,Y.key):D!==null&&(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===L&&di(xe)===D.type)?(D=d(D,Y.props),el(D,Y),D.return=V,D):(D=dc(Y.type,Y.key,Y.props,null,V.mode,ie),el(D,Y),D.return=V,D)}function X(V,D,Y,ie){return D===null||D.tag!==4||D.stateNode.containerInfo!==Y.containerInfo||D.stateNode.implementation!==Y.implementation?(D=dh(Y,V.mode,ie),D.return=V,D):(D=d(D,Y.children||[]),D.return=V,D)}function ne(V,D,Y,ie,xe){return D===null||D.tag!==7?(D=li(Y,V.mode,ie,xe),D.return=V,D):(D=d(D,Y),D.return=V,D)}function ae(V,D,Y){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=fh(""+D,V.mode,Y),D.return=V,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return Y=dc(D.type,D.key,D.props,null,V.mode,Y),el(Y,D),Y.return=V,Y;case v:return D=dh(D,V.mode,Y),D.return=V,D;case L:return D=di(D),ae(V,D,Y)}if(z(D)||j(D))return D=li(D,V.mode,Y,null),D.return=V,D;if(typeof D.then=="function")return ae(V,Cc(D),Y);if(D.$$typeof===O)return ae(V,pc(V,D),Y);yc(V,D)}return null}function Z(V,D,Y,ie){var xe=D!==null?D.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return xe!==null?null:S(V,D,""+Y,ie);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return Y.key===xe?_(V,D,Y,ie):null;case v:return Y.key===xe?X(V,D,Y,ie):null;case L:return Y=di(Y),Z(V,D,Y,ie)}if(z(Y)||j(Y))return xe!==null?null:ne(V,D,Y,ie,null);if(typeof Y.then=="function")return Z(V,D,Cc(Y),ie);if(Y.$$typeof===O)return Z(V,D,pc(V,Y),ie);yc(V,Y)}return null}function $(V,D,Y,ie,xe){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return V=V.get(Y)||null,S(D,V,""+ie,xe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case w:return V=V.get(ie.key===null?Y:ie.key)||null,_(D,V,ie,xe);case v:return V=V.get(ie.key===null?Y:ie.key)||null,X(D,V,ie,xe);case L:return ie=di(ie),$(V,D,Y,ie,xe)}if(z(ie)||j(ie))return V=V.get(Y)||null,ne(D,V,ie,xe,null);if(typeof ie.then=="function")return $(V,D,Y,Cc(ie),xe);if(ie.$$typeof===O)return $(V,D,Y,pc(D,ie),xe);yc(D,ie)}return null}function Ce(V,D,Y,ie){for(var xe=null,$e=null,ve=D,Oe=D=0,Ye=null;ve!==null&&Oe<Y.length;Oe++){ve.index>Oe?(Ye=ve,ve=null):Ye=ve.sibling;var eA=Z(V,ve,Y[Oe],ie);if(eA===null){ve===null&&(ve=Ye);break}A&&ve&&eA.alternate===null&&n(V,ve),D=p(eA,D,Oe),$e===null?xe=eA:$e.sibling=eA,$e=eA,ve=Ye}if(Oe===Y.length)return a(V,ve),qe&&kn(V,Oe),xe;if(ve===null){for(;Oe<Y.length;Oe++)ve=ae(V,Y[Oe],ie),ve!==null&&(D=p(ve,D,Oe),$e===null?xe=ve:$e.sibling=ve,$e=ve);return qe&&kn(V,Oe),xe}for(ve=o(ve);Oe<Y.length;Oe++)Ye=$(ve,V,Oe,Y[Oe],ie),Ye!==null&&(A&&Ye.alternate!==null&&ve.delete(Ye.key===null?Oe:Ye.key),D=p(Ye,D,Oe),$e===null?xe=Ye:$e.sibling=Ye,$e=Ye);return A&&ve.forEach(function(Kr){return n(V,Kr)}),qe&&kn(V,Oe),xe}function Se(V,D,Y,ie){if(Y==null)throw Error(i(151));for(var xe=null,$e=null,ve=D,Oe=D=0,Ye=null,eA=Y.next();ve!==null&&!eA.done;Oe++,eA=Y.next()){ve.index>Oe?(Ye=ve,ve=null):Ye=ve.sibling;var Kr=Z(V,ve,eA.value,ie);if(Kr===null){ve===null&&(ve=Ye);break}A&&ve&&Kr.alternate===null&&n(V,ve),D=p(Kr,D,Oe),$e===null?xe=Kr:$e.sibling=Kr,$e=Kr,ve=Ye}if(eA.done)return a(V,ve),qe&&kn(V,Oe),xe;if(ve===null){for(;!eA.done;Oe++,eA=Y.next())eA=ae(V,eA.value,ie),eA!==null&&(D=p(eA,D,Oe),$e===null?xe=eA:$e.sibling=eA,$e=eA);return qe&&kn(V,Oe),xe}for(ve=o(ve);!eA.done;Oe++,eA=Y.next())eA=$(ve,V,Oe,eA.value,ie),eA!==null&&(A&&eA.alternate!==null&&ve.delete(eA.key===null?Oe:eA.key),D=p(eA,D,Oe),$e===null?xe=eA:$e.sibling=eA,$e=eA);return A&&ve.forEach(function(TR){return n(V,TR)}),qe&&kn(V,Oe),xe}function fA(V,D,Y,ie){if(typeof Y=="object"&&Y!==null&&Y.type===b&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:e:{for(var xe=Y.key;D!==null;){if(D.key===xe){if(xe=Y.type,xe===b){if(D.tag===7){a(V,D.sibling),ie=d(D,Y.props.children),ie.return=V,V=ie;break e}}else if(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===L&&di(xe)===D.type){a(V,D.sibling),ie=d(D,Y.props),el(ie,Y),ie.return=V,V=ie;break e}a(V,D);break}else n(V,D);D=D.sibling}Y.type===b?(ie=li(Y.props.children,V.mode,ie,Y.key),ie.return=V,V=ie):(ie=dc(Y.type,Y.key,Y.props,null,V.mode,ie),el(ie,Y),ie.return=V,V=ie)}return y(V);case v:e:{for(xe=Y.key;D!==null;){if(D.key===xe)if(D.tag===4&&D.stateNode.containerInfo===Y.containerInfo&&D.stateNode.implementation===Y.implementation){a(V,D.sibling),ie=d(D,Y.children||[]),ie.return=V,V=ie;break e}else{a(V,D);break}else n(V,D);D=D.sibling}ie=dh(Y,V.mode,ie),ie.return=V,V=ie}return y(V);case L:return Y=di(Y),fA(V,D,Y,ie)}if(z(Y))return Ce(V,D,Y,ie);if(j(Y)){if(xe=j(Y),typeof xe!="function")throw Error(i(150));return Y=xe.call(Y),Se(V,D,Y,ie)}if(typeof Y.then=="function")return fA(V,D,Cc(Y),ie);if(Y.$$typeof===O)return fA(V,D,pc(V,Y),ie);yc(V,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,D!==null&&D.tag===6?(a(V,D.sibling),ie=d(D,Y),ie.return=V,V=ie):(a(V,D),ie=fh(Y,V.mode,ie),ie.return=V,V=ie),y(V)):a(V,D)}return function(V,D,Y,ie){try{$s=0;var xe=fA(V,D,Y,ie);return da=null,xe}catch(ve){if(ve===fa||ve===Bc)throw ve;var $e=_t(29,ve,null,V.mode);return $e.lanes=ie,$e.return=V,$e}finally{}}}var gi=lE(!0),oE=lE(!1),xr=!1;function xh(A){A.updateQueue={baseState:A.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sh(A,n){A=A.updateQueue,n.updateQueue===A&&(n.updateQueue={baseState:A.baseState,firstBaseUpdate:A.firstBaseUpdate,lastBaseUpdate:A.lastBaseUpdate,shared:A.shared,callbacks:null})}function Sr(A){return{lane:A,tag:0,payload:null,callback:null,next:null}}function Qr(A,n,a){var o=A.updateQueue;if(o===null)return null;if(o=o.shared,(rA&2)!==0){var d=o.pending;return d===null?n.next=n:(n.next=d.next,d.next=n),o.pending=n,n=fc(A),Py(A,null,a),n}return uc(A,o,n,a),fc(A)}function Al(A,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,GA(A,a)}}function Qh(A,n){var a=A.updateQueue,o=A.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var d=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?d=p=y:p=p.next=y,a=a.next}while(a!==null);p===null?d=p=n:p=p.next=n}else d=p=n;a={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},A.updateQueue=a;return}A=a.lastBaseUpdate,A===null?a.firstBaseUpdate=n:A.next=n,a.lastBaseUpdate=n}var Uh=!1;function tl(){if(Uh){var A=ua;if(A!==null)throw A}}function nl(A,n,a,o){Uh=!1;var d=A.updateQueue;xr=!1;var p=d.firstBaseUpdate,y=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var _=S,X=_.next;_.next=null,y===null?p=X:y.next=X,y=_;var ne=A.alternate;ne!==null&&(ne=ne.updateQueue,S=ne.lastBaseUpdate,S!==y&&(S===null?ne.firstBaseUpdate=X:S.next=X,ne.lastBaseUpdate=_))}if(p!==null){var ae=d.baseState;y=0,ne=X=_=null,S=p;do{var Z=S.lane&-536870913,$=Z!==S.lane;if($?(Pe&Z)===Z:(o&Z)===Z){Z!==0&&Z===ca&&(Uh=!0),ne!==null&&(ne=ne.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Ce=A,Se=S;Z=n;var fA=a;switch(Se.tag){case 1:if(Ce=Se.payload,typeof Ce=="function"){ae=Ce.call(fA,ae,Z);break e}ae=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Se.payload,Z=typeof Ce=="function"?Ce.call(fA,ae,Z):Ce,Z==null)break e;ae=B({},ae,Z);break e;case 2:xr=!0}}Z=S.callback,Z!==null&&(A.flags|=64,$&&(A.flags|=8192),$=d.callbacks,$===null?d.callbacks=[Z]:$.push(Z))}else $={lane:Z,tag:S.tag,payload:S.payload,callback:S.callback,next:null},ne===null?(X=ne=$,_=ae):ne=ne.next=$,y|=Z;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;$=S,S=$.next,$.next=null,d.lastBaseUpdate=$,d.shared.pending=null}}while(!0);ne===null&&(_=ae),d.baseState=_,d.firstBaseUpdate=X,d.lastBaseUpdate=ne,p===null&&(d.shared.lanes=0),Ir|=y,A.lanes=y,A.memoizedState=ae}}function cE(A,n){if(typeof A!="function")throw Error(i(191,A));A.call(n)}function uE(A,n){var a=A.callbacks;if(a!==null)for(A.callbacks=null,A=0;A<a.length;A++)cE(a[A],n)}var ha=I(null),Ec=I(0);function fE(A,n){A=Zn,E(Ec,A),E(ha,n),Zn=A|n.baseLanes}function Fh(){E(Ec,Zn),E(ha,ha.current)}function Th(){Zn=Ec.current,P(ha),P(Ec)}var Ht=I(null),en=null;function Ur(A){var n=A.alternate;E(NA,NA.current&1),E(Ht,A),en===null&&(n===null||ha.current!==null||n.memoizedState!==null)&&(en=A)}function Nh(A){E(NA,NA.current),E(Ht,A),en===null&&(en=A)}function dE(A){A.tag===22?(E(NA,NA.current),E(Ht,A),en===null&&(en=A)):Fr()}function Fr(){E(NA,NA.current),E(Ht,Ht.current)}function Mt(A){P(Ht),en===A&&(en=null),P(NA)}var NA=I(0);function vc(A){for(var n=A;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rg(a)||Lg(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Vn=0,_e=null,cA=null,LA=null,bc=!1,ga=!1,pi=!1,xc=0,rl=0,pa=null,CO=0;function xA(){throw Error(i(321))}function Ih(A,n){if(n===null)return!1;for(var a=0;a<n.length&&a<A.length;a++)if(!It(A[a],n[a]))return!1;return!0}function _h(A,n,a,o,d,p){return Vn=p,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,R.H=A===null||A.memoizedState===null?JE:Xh,pi=!1,p=a(o,d),pi=!1,ga&&(p=gE(n,a,o,d)),hE(A),p}function hE(A){R.H=sl;var n=cA!==null&&cA.next!==null;if(Vn=0,LA=cA=_e=null,bc=!1,rl=0,pa=null,n)throw Error(i(300));A===null||DA||(A=A.dependencies,A!==null&&gc(A)&&(DA=!0))}function gE(A,n,a,o){_e=A;var d=0;do{if(ga&&(pa=null),rl=0,ga=!1,25<=d)throw Error(i(301));if(d+=1,LA=cA=null,A.updateQueue!=null){var p=A.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}R.H=ZE,p=n(a,o)}while(ga);return p}function yO(){var A=R.H,n=A.useState()[0];return n=typeof n.then=="function"?il(n):n,A=A.useState()[0],(cA!==null?cA.memoizedState:null)!==A&&(_e.flags|=1024),n}function Hh(){var A=xc!==0;return xc=0,A}function Mh(A,n,a){n.updateQueue=A.updateQueue,n.flags&=-2053,A.lanes&=~a}function Oh(A){if(bc){for(A=A.memoizedState;A!==null;){var n=A.queue;n!==null&&(n.pending=null),A=A.next}bc=!1}Vn=0,LA=cA=_e=null,ga=!1,rl=xc=0,pa=null}function ft(){var A={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return LA===null?_e.memoizedState=LA=A:LA=LA.next=A,LA}function IA(){if(cA===null){var A=_e.alternate;A=A!==null?A.memoizedState:null}else A=cA.next;var n=LA===null?_e.memoizedState:LA.next;if(n!==null)LA=n,cA=A;else{if(A===null)throw _e.alternate===null?Error(i(467)):Error(i(310));cA=A,A={memoizedState:cA.memoizedState,baseState:cA.baseState,baseQueue:cA.baseQueue,queue:cA.queue,next:null},LA===null?_e.memoizedState=LA=A:LA=LA.next=A}return LA}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(A){var n=rl;return rl+=1,pa===null&&(pa=[]),A=iE(pa,A,n),n=_e,(LA===null?n.memoizedState:LA.next)===null&&(n=n.alternate,R.H=n===null||n.memoizedState===null?JE:Xh),A}function Qc(A){if(A!==null&&typeof A=="object"){if(typeof A.then=="function")return il(A);if(A.$$typeof===O)return At(A)}throw Error(i(438,String(A)))}function Rh(A){var n=null,a=_e.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(d){return d.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Sc(),_e.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(A),o=0;o<A;o++)a[o]=W;return n.index++,a}function Gn(A,n){return typeof n=="function"?n(A):n}function Uc(A){var n=IA();return Lh(n,cA,A)}function Lh(A,n,a){var o=A.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var d=A.baseQueue,p=o.pending;if(p!==null){if(d!==null){var y=d.next;d.next=p.next,p.next=y}n.baseQueue=d=p,o.pending=null}if(p=A.baseState,d===null)A.memoizedState=p;else{n=d.next;var S=y=null,_=null,X=n,ne=!1;do{var ae=X.lane&-536870913;if(ae!==X.lane?(Pe&ae)===ae:(Vn&ae)===ae){var Z=X.revertLane;if(Z===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ae===ca&&(ne=!0);else if((Vn&Z)===Z){X=X.next,Z===ca&&(ne=!0);continue}else ae={lane:0,revertLane:X.revertLane,gesture:null,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},_===null?(S=_=ae,y=p):_=_.next=ae,_e.lanes|=Z,Ir|=Z;ae=X.action,pi&&a(p,ae),p=X.hasEagerState?X.eagerState:a(p,ae)}else Z={lane:ae,revertLane:X.revertLane,gesture:X.gesture,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},_===null?(S=_=Z,y=p):_=_.next=Z,_e.lanes|=ae,Ir|=ae;X=X.next}while(X!==null&&X!==n);if(_===null?y=p:_.next=S,!It(p,A.memoizedState)&&(DA=!0,ne&&(a=ua,a!==null)))throw a;A.memoizedState=p,A.baseState=y,A.baseQueue=_,o.lastRenderedState=p}return d===null&&(o.lanes=0),[A.memoizedState,o.dispatch]}function Dh(A){var n=IA(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=A;var o=a.dispatch,d=a.pending,p=n.memoizedState;if(d!==null){a.pending=null;var y=d=d.next;do p=A(p,y.action),y=y.next;while(y!==d);It(p,n.memoizedState)||(DA=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,o]}function pE(A,n,a){var o=_e,d=IA(),p=qe;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var y=!It((cA||d).memoizedState,a);if(y&&(d.memoizedState=a,DA=!0),d=d.queue,Kh(wE.bind(null,o,d,A),[A]),d.getSnapshot!==n||y||LA!==null&&LA.memoizedState.tag&1){if(o.flags|=2048,ma(9,{destroy:void 0},BE.bind(null,o,d,a,n),null),hA===null)throw Error(i(349));p||(Vn&127)!==0||mE(o,n,a)}return a}function mE(A,n,a){A.flags|=16384,A={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Sc(),_e.updateQueue=n,n.stores=[A]):(a=n.stores,a===null?n.stores=[A]:a.push(A))}function BE(A,n,a,o){n.value=a,n.getSnapshot=o,CE(n)&&yE(A)}function wE(A,n,a){return a(function(){CE(n)&&yE(A)})}function CE(A){var n=A.getSnapshot;A=A.value;try{var a=n();return!It(A,a)}catch{return!0}}function yE(A){var n=si(A,2);n!==null&&bt(n,A,2)}function kh(A){var n=ft();if(typeof A=="function"){var a=A;if(A=a(),pi){dA(!0);try{a()}finally{dA(!1)}}}return n.memoizedState=n.baseState=A,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:A},n}function EE(A,n,a,o){return A.baseState=a,Lh(A,cA,typeof o=="function"?o:Gn)}function EO(A,n,a,o,d){if(Nc(A))throw Error(i(485));if(A=n.action,A!==null){var p={payload:d,action:A,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};R.T!==null?a(!0):p.isTransition=!1,o(p),a=n.pending,a===null?(p.next=n.pending=p,vE(n,p)):(p.next=a.next,n.pending=a.next=p)}}function vE(A,n){var a=n.action,o=n.payload,d=A.state;if(n.isTransition){var p=R.T,y={};R.T=y;try{var S=a(d,o),_=R.S;_!==null&&_(y,S),bE(A,n,S)}catch(X){jh(A,n,X)}finally{p!==null&&y.types!==null&&(p.types=y.types),R.T=p}}else try{p=a(d,o),bE(A,n,p)}catch(X){jh(A,n,X)}}function bE(A,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){xE(A,n,o)},function(o){return jh(A,n,o)}):xE(A,n,a)}function xE(A,n,a){n.status="fulfilled",n.value=a,SE(n),A.state=a,n=A.pending,n!==null&&(a=n.next,a===n?A.pending=null:(a=a.next,n.next=a,vE(A,a)))}function jh(A,n,a){var o=A.pending;if(A.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,SE(n),n=n.next;while(n!==o)}A.action=null}function SE(A){A=A.listeners;for(var n=0;n<A.length;n++)(0,A[n])()}function QE(A,n){return n}function UE(A,n){if(qe){var a=hA.formState;if(a!==null){e:{var o=_e;if(qe){if(wA){A:{for(var d=wA,p=$t;d.nodeType!==8;){if(!p){d=null;break A}if(d=An(d.nextSibling),d===null){d=null;break A}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){wA=An(d.nextSibling),o=d.data==="F!";break e}}vr(o)}o=!1}o&&(n=a[0])}}return a=ft(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QE,lastRenderedState:n},a.queue=o,a=YE.bind(null,_e,o),o.dispatch=a,o=kh(!1),p=Yh.bind(null,_e,!1,o.queue),o=ft(),d={state:n,dispatch:null,action:A,pending:null},o.queue=d,a=EO.bind(null,_e,d,p,a),d.dispatch=a,o.memoizedState=A,[n,a,!1]}function FE(A){var n=IA();return TE(n,cA,A)}function TE(A,n,a){if(n=Lh(A,n,QE)[0],A=Uc(Gn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=il(n)}catch(y){throw y===fa?Bc:y}else o=n;n=IA();var d=n.queue,p=d.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ma(9,{destroy:void 0},vO.bind(null,d,a),null)),[o,p,A]}function vO(A,n){A.action=n}function NE(A){var n=IA(),a=cA;if(a!==null)return TE(n,a,A);IA(),n=n.memoizedState,a=IA();var o=a.queue.dispatch;return a.memoizedState=A,[n,o,!1]}function ma(A,n,a,o){return A={tag:A,create:a,deps:o,inst:n,next:null},n=_e.updateQueue,n===null&&(n=Sc(),_e.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=A.next=A:(o=a.next,a.next=A,A.next=o,n.lastEffect=A),A}function IE(){return IA().memoizedState}function Fc(A,n,a,o){var d=ft();_e.flags|=A,d.memoizedState=ma(1|n,{destroy:void 0},a,o===void 0?null:o)}function Tc(A,n,a,o){var d=IA();o=o===void 0?null:o;var p=d.memoizedState.inst;cA!==null&&o!==null&&Ih(o,cA.memoizedState.deps)?d.memoizedState=ma(n,p,a,o):(_e.flags|=A,d.memoizedState=ma(1|n,p,a,o))}function _E(A,n){Fc(8390656,8,A,n)}function Kh(A,n){Tc(2048,8,A,n)}function bO(A){_e.flags|=4;var n=_e.updateQueue;if(n===null)n=Sc(),_e.updateQueue=n,n.events=[A];else{var a=n.events;a===null?n.events=[A]:a.push(A)}}function HE(A){var n=IA().memoizedState;return bO({ref:n,nextImpl:A}),function(){if((rA&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function ME(A,n){return Tc(4,2,A,n)}function OE(A,n){return Tc(4,4,A,n)}function RE(A,n){if(typeof n=="function"){A=A();var a=n(A);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return A=A(),n.current=A,function(){n.current=null}}function LE(A,n,a){a=a!=null?a.concat([A]):null,Tc(4,4,RE.bind(null,n,A),a)}function Vh(){}function DE(A,n){var a=IA();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&Ih(n,o[1])?o[0]:(a.memoizedState=[A,n],A)}function kE(A,n){var a=IA();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&Ih(n,o[1]))return o[0];if(o=A(),pi){dA(!0);try{A()}finally{dA(!1)}}return a.memoizedState=[o,n],o}function Gh(A,n,a){return a===void 0||(Vn&1073741824)!==0&&(Pe&261930)===0?A.memoizedState=n:(A.memoizedState=a,A=jv(),_e.lanes|=A,Ir|=A,a)}function jE(A,n,a,o){return It(a,n)?a:ha.current!==null?(A=Gh(A,a,o),It(A,n)||(DA=!0),A):(Vn&42)===0||(Vn&1073741824)!==0&&(Pe&261930)===0?(DA=!0,A.memoizedState=a):(A=jv(),_e.lanes|=A,Ir|=A,n)}function KE(A,n,a,o,d){var p=q.p;q.p=p!==0&&8>p?p:8;var y=R.T,S={};R.T=S,Yh(A,!1,n,a);try{var _=d(),X=R.S;if(X!==null&&X(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var ne=wO(_,o);al(A,n,ne,Lt())}else al(A,n,o,Lt())}catch(ae){al(A,n,{then:function(){},status:"rejected",reason:ae},Lt())}finally{q.p=p,y!==null&&S.types!==null&&(y.types=S.types),R.T=y}}function xO(){}function zh(A,n,a,o){if(A.tag!==5)throw Error(i(476));var d=VE(A).queue;KE(A,d,n,Ae,a===null?xO:function(){return GE(A),a(o)})}function VE(A){var n=A.memoizedState;if(n!==null)return n;n={memoizedState:Ae,baseState:Ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:Ae},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:a},next:null},A.memoizedState=n,A=A.alternate,A!==null&&(A.memoizedState=n),n}function GE(A){var n=VE(A);n.next===null&&(n=A.alternate.memoizedState),al(A,n.next.queue,{},Lt())}function Ph(){return At(vl)}function zE(){return IA().memoizedState}function PE(){return IA().memoizedState}function SO(A){for(var n=A.return;n!==null;){switch(n.tag){case 24:case 3:var a=Lt();A=Sr(a);var o=Qr(n,A,a);o!==null&&(bt(o,n,a),Al(o,n,a)),n={cache:yh()},A.payload=n;return}n=n.return}}function QO(A,n,a){var o=Lt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nc(A)?XE(n,a):(a=ch(A,n,a,o),a!==null&&(bt(a,A,o),qE(a,n,o)))}function YE(A,n,a){var o=Lt();al(A,n,a,o)}function al(A,n,a,o){var d={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nc(A))XE(n,d);else{var p=A.alternate;if(A.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var y=n.lastRenderedState,S=p(y,a);if(d.hasEagerState=!0,d.eagerState=S,It(S,y))return uc(A,n,d,0),hA===null&&cc(),!1}catch{}finally{}if(a=ch(A,n,d,o),a!==null)return bt(a,A,o),qE(a,n,o),!0}return!1}function Yh(A,n,a,o){if(o={lane:2,revertLane:xg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Nc(A)){if(n)throw Error(i(479))}else n=ch(A,a,o,2),n!==null&&bt(n,A,2)}function Nc(A){var n=A.alternate;return A===_e||n!==null&&n===_e}function XE(A,n){ga=bc=!0;var a=A.pending;a===null?n.next=n:(n.next=a.next,a.next=n),A.pending=n}function qE(A,n,a){if((a&4194048)!==0){var o=n.lanes;o&=A.pendingLanes,a|=o,n.lanes=a,GA(A,a)}}var sl={readContext:At,use:Qc,useCallback:xA,useContext:xA,useEffect:xA,useImperativeHandle:xA,useLayoutEffect:xA,useInsertionEffect:xA,useMemo:xA,useReducer:xA,useRef:xA,useState:xA,useDebugValue:xA,useDeferredValue:xA,useTransition:xA,useSyncExternalStore:xA,useId:xA,useHostTransitionStatus:xA,useFormState:xA,useActionState:xA,useOptimistic:xA,useMemoCache:xA,useCacheRefresh:xA};sl.useEffectEvent=xA;var JE={readContext:At,use:Qc,useCallback:function(A,n){return ft().memoizedState=[A,n===void 0?null:n],A},useContext:At,useEffect:_E,useImperativeHandle:function(A,n,a){a=a!=null?a.concat([A]):null,Fc(4194308,4,RE.bind(null,n,A),a)},useLayoutEffect:function(A,n){return Fc(4194308,4,A,n)},useInsertionEffect:function(A,n){Fc(4,2,A,n)},useMemo:function(A,n){var a=ft();n=n===void 0?null:n;var o=A();if(pi){dA(!0);try{A()}finally{dA(!1)}}return a.memoizedState=[o,n],o},useReducer:function(A,n,a){var o=ft();if(a!==void 0){var d=a(n);if(pi){dA(!0);try{a(n)}finally{dA(!1)}}}else d=n;return o.memoizedState=o.baseState=d,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:d},o.queue=A,A=A.dispatch=QO.bind(null,_e,A),[o.memoizedState,A]},useRef:function(A){var n=ft();return A={current:A},n.memoizedState=A},useState:function(A){A=kh(A);var n=A.queue,a=YE.bind(null,_e,n);return n.dispatch=a,[A.memoizedState,a]},useDebugValue:Vh,useDeferredValue:function(A,n){var a=ft();return Gh(a,A,n)},useTransition:function(){var A=kh(!1);return A=KE.bind(null,_e,A.queue,!0,!1),ft().memoizedState=A,[!1,A]},useSyncExternalStore:function(A,n,a){var o=_e,d=ft();if(qe){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),hA===null)throw Error(i(349));(Pe&127)!==0||mE(o,n,a)}d.memoizedState=a;var p={value:a,getSnapshot:n};return d.queue=p,_E(wE.bind(null,o,p,A),[A]),o.flags|=2048,ma(9,{destroy:void 0},BE.bind(null,o,p,a,n),null),a},useId:function(){var A=ft(),n=hA.identifierPrefix;if(qe){var a=vn,o=En;a=(o&~(1<<32-De(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=xc++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=CO++,n="_"+n+"r_"+a.toString(32)+"_";return A.memoizedState=n},useHostTransitionStatus:Ph,useFormState:UE,useActionState:UE,useOptimistic:function(A){var n=ft();n.memoizedState=n.baseState=A;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Yh.bind(null,_e,!0,a),a.dispatch=n,[A,n]},useMemoCache:Rh,useCacheRefresh:function(){return ft().memoizedState=SO.bind(null,_e)},useEffectEvent:function(A){var n=ft(),a={impl:A};return n.memoizedState=a,function(){if((rA&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Xh={readContext:At,use:Qc,useCallback:DE,useContext:At,useEffect:Kh,useImperativeHandle:LE,useInsertionEffect:ME,useLayoutEffect:OE,useMemo:kE,useReducer:Uc,useRef:IE,useState:function(){return Uc(Gn)},useDebugValue:Vh,useDeferredValue:function(A,n){var a=IA();return jE(a,cA.memoizedState,A,n)},useTransition:function(){var A=Uc(Gn)[0],n=IA().memoizedState;return[typeof A=="boolean"?A:il(A),n]},useSyncExternalStore:pE,useId:zE,useHostTransitionStatus:Ph,useFormState:FE,useActionState:FE,useOptimistic:function(A,n){var a=IA();return EE(a,cA,A,n)},useMemoCache:Rh,useCacheRefresh:PE};Xh.useEffectEvent=HE;var ZE={readContext:At,use:Qc,useCallback:DE,useContext:At,useEffect:Kh,useImperativeHandle:LE,useInsertionEffect:ME,useLayoutEffect:OE,useMemo:kE,useReducer:Dh,useRef:IE,useState:function(){return Dh(Gn)},useDebugValue:Vh,useDeferredValue:function(A,n){var a=IA();return cA===null?Gh(a,A,n):jE(a,cA.memoizedState,A,n)},useTransition:function(){var A=Dh(Gn)[0],n=IA().memoizedState;return[typeof A=="boolean"?A:il(A),n]},useSyncExternalStore:pE,useId:zE,useHostTransitionStatus:Ph,useFormState:NE,useActionState:NE,useOptimistic:function(A,n){var a=IA();return cA!==null?EE(a,cA,A,n):(a.baseState=A,[A,a.queue.dispatch])},useMemoCache:Rh,useCacheRefresh:PE};ZE.useEffectEvent=HE;function qh(A,n,a,o){n=A.memoizedState,a=a(o,n),a=a==null?n:B({},n,a),A.memoizedState=a,A.lanes===0&&(A.updateQueue.baseState=a)}var Jh={enqueueSetState:function(A,n,a){A=A._reactInternals;var o=Lt(),d=Sr(o);d.payload=n,a!=null&&(d.callback=a),n=Qr(A,d,o),n!==null&&(bt(n,A,o),Al(n,A,o))},enqueueReplaceState:function(A,n,a){A=A._reactInternals;var o=Lt(),d=Sr(o);d.tag=1,d.payload=n,a!=null&&(d.callback=a),n=Qr(A,d,o),n!==null&&(bt(n,A,o),Al(n,A,o))},enqueueForceUpdate:function(A,n){A=A._reactInternals;var a=Lt(),o=Sr(a);o.tag=2,n!=null&&(o.callback=n),n=Qr(A,o,a),n!==null&&(bt(n,A,a),Al(n,A,a))}};function WE(A,n,a,o,d,p,y){return A=A.stateNode,typeof A.shouldComponentUpdate=="function"?A.shouldComponentUpdate(o,p,y):n.prototype&&n.prototype.isPureReactComponent?!Ys(a,o)||!Ys(d,p):!0}function $E(A,n,a,o){A=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==A&&Jh.enqueueReplaceState(n,n.state,null)}function mi(A,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(A=A.defaultProps){a===n&&(a=B({},a));for(var d in A)a[d]===void 0&&(a[d]=A[d])}return a}function ev(A){oc(A)}function Av(A){}function tv(A){oc(A)}function Ic(A,n){try{var a=A.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function nv(A,n,a){try{var o=A.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Zh(A,n,a){return a=Sr(a),a.tag=3,a.payload={element:null},a.callback=function(){Ic(A,n)},a}function rv(A){return A=Sr(A),A.tag=3,A}function iv(A,n,a,o){var d=a.type.getDerivedStateFromError;if(typeof d=="function"){var p=o.value;A.payload=function(){return d(p)},A.callback=function(){nv(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(A.callback=function(){nv(n,a,o),typeof d!="function"&&(_r===null?_r=new Set([this]):_r.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function UO(A,n,a,o,d){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&oa(n,a,d,!0),a=Ht.current,a!==null){switch(a.tag){case 31:case 13:return en===null?Gc():a.alternate===null&&SA===0&&(SA=3),a.flags&=-257,a.flags|=65536,a.lanes=d,o===wc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Eg(A,o,d)),!1;case 22:return a.flags|=65536,o===wc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Eg(A,o,d)),!1}throw Error(i(435,a.tag))}return Eg(A,o,d),Gc(),!1}if(qe)return n=Ht.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=d,o!==ph&&(A=Error(i(422),{cause:o}),Js(Jt(A,a)))):(o!==ph&&(n=Error(i(423),{cause:o}),Js(Jt(n,a))),A=A.current.alternate,A.flags|=65536,d&=-d,A.lanes|=d,o=Jt(o,a),d=Zh(A.stateNode,o,d),Qh(A,d),SA!==4&&(SA=2)),!1;var p=Error(i(520),{cause:o});if(p=Jt(p,a),gl===null?gl=[p]:gl.push(p),SA!==4&&(SA=2),n===null)return!0;o=Jt(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,A=d&-d,a.lanes|=A,A=Zh(a.stateNode,o,A),Qh(a,A),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(_r===null||!_r.has(p))))return a.flags|=65536,d&=-d,a.lanes|=d,d=rv(d),iv(d,A,a,o),Qh(a,d),!1}a=a.return}while(a!==null);return!1}var Wh=Error(i(461)),DA=!1;function tt(A,n,a,o){n.child=A===null?oE(n,null,a,o):gi(n,A.child,a,o)}function av(A,n,a,o,d){a=a.render;var p=n.ref;if("ref"in o){var y={};for(var S in o)S!=="ref"&&(y[S]=o[S])}else y=o;return ui(n),o=_h(A,n,a,y,p,d),S=Hh(),A!==null&&!DA?(Mh(A,n,d),zn(A,n,d)):(qe&&S&&hh(n),n.flags|=1,tt(A,n,o,d),n.child)}function sv(A,n,a,o,d){if(A===null){var p=a.type;return typeof p=="function"&&!uh(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,lv(A,n,p,o,d)):(A=dc(a.type,null,o,n,n.mode,d),A.ref=n.ref,A.return=n,n.child=A)}if(p=A.child,!ag(A,d)){var y=p.memoizedProps;if(a=a.compare,a=a!==null?a:Ys,a(y,o)&&A.ref===n.ref)return zn(A,n,d)}return n.flags|=1,A=Dn(p,o),A.ref=n.ref,A.return=n,n.child=A}function lv(A,n,a,o,d){if(A!==null){var p=A.memoizedProps;if(Ys(p,o)&&A.ref===n.ref)if(DA=!1,n.pendingProps=o=p,ag(A,d))(A.flags&131072)!==0&&(DA=!0);else return n.lanes=A.lanes,zn(A,n,d)}return $h(A,n,a,o,d)}function ov(A,n,a,o){var d=o.children,p=A!==null?A.memoizedState:null;if(A===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,A!==null){for(o=n.child=A.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~p}else o=0,n.child=null;return cv(A,n,p,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},A!==null&&mc(n,p!==null?p.cachePool:null),p!==null?fE(n,p):Fh(),dE(n);else return o=n.lanes=536870912,cv(A,n,p!==null?p.baseLanes|a:a,a,o)}else p!==null?(mc(n,p.cachePool),fE(n,p),Fr(),n.memoizedState=null):(A!==null&&mc(n,null),Fh(),Fr());return tt(A,n,d,a),n.child}function ll(A,n){return A!==null&&A.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function cv(A,n,a,o,d){var p=vh();return p=p===null?null:{parent:RA._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},A!==null&&mc(n,null),Fh(),dE(n),A!==null&&oa(A,n,o,!0),n.childLanes=d,null}function _c(A,n){return n=Mc({mode:n.mode,children:n.children},A.mode),n.ref=A.ref,A.child=n,n.return=A,n}function uv(A,n,a){return gi(n,A.child,null,a),A=_c(n,n.pendingProps),A.flags|=2,Mt(n),n.memoizedState=null,A}function FO(A,n,a){var o=n.pendingProps,d=(n.flags&128)!==0;if(n.flags&=-129,A===null){if(qe){if(o.mode==="hidden")return A=_c(n,o),n.lanes=536870912,ll(null,A);if(Nh(n),(A=wA)?(A=vb(A,$t),A=A!==null&&A.data==="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:yr!==null?{id:En,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},a=Xy(A),a.return=n,n.child=a,et=n,wA=null)):A=null,A===null)throw vr(n);return n.lanes=536870912,null}return _c(n,o)}var p=A.memoizedState;if(p!==null){var y=p.dehydrated;if(Nh(n),d)if(n.flags&256)n.flags&=-257,n=uv(A,n,a);else if(n.memoizedState!==null)n.child=A.child,n.flags|=128,n=null;else throw Error(i(558));else if(DA||oa(A,n,a,!1),d=(a&A.childLanes)!==0,DA||d){if(o=hA,o!==null&&(y=ut(o,a),y!==0&&y!==p.retryLane))throw p.retryLane=y,si(A,y),bt(o,A,y),Wh;Gc(),n=uv(A,n,a)}else A=p.treeContext,wA=An(y.nextSibling),et=n,qe=!0,Er=null,$t=!1,A!==null&&Zy(n,A),n=_c(n,o),n.flags|=4096;return n}return A=Dn(A.child,{mode:o.mode,children:o.children}),A.ref=n.ref,n.child=A,A.return=n,A}function Hc(A,n){var a=n.ref;if(a===null)A!==null&&A.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(A===null||A.ref!==a)&&(n.flags|=4194816)}}function $h(A,n,a,o,d){return ui(n),a=_h(A,n,a,o,void 0,d),o=Hh(),A!==null&&!DA?(Mh(A,n,d),zn(A,n,d)):(qe&&o&&hh(n),n.flags|=1,tt(A,n,a,d),n.child)}function fv(A,n,a,o,d,p){return ui(n),n.updateQueue=null,a=gE(n,o,a,d),hE(A),o=Hh(),A!==null&&!DA?(Mh(A,n,p),zn(A,n,p)):(qe&&o&&hh(n),n.flags|=1,tt(A,n,a,p),n.child)}function dv(A,n,a,o,d){if(ui(n),n.stateNode===null){var p=ia,y=a.contextType;typeof y=="object"&&y!==null&&(p=At(y)),p=new a(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Jh,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},xh(n),y=a.contextType,p.context=typeof y=="object"&&y!==null?At(y):ia,p.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(qh(n,a,y,o),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&Jh.enqueueReplaceState(p,p.state,null),nl(n,o,p,d),tl(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(A===null){p=n.stateNode;var S=n.memoizedProps,_=mi(a,S);p.props=_;var X=p.context,ne=a.contextType;y=ia,typeof ne=="object"&&ne!==null&&(y=At(ne));var ae=a.getDerivedStateFromProps;ne=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,ne||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||X!==y)&&$E(n,p,o,y),xr=!1;var Z=n.memoizedState;p.state=Z,nl(n,o,p,d),tl(),X=n.memoizedState,S||Z!==X||xr?(typeof ae=="function"&&(qh(n,a,ae,o),X=n.memoizedState),(_=xr||WE(n,a,_,o,Z,X,y))?(ne||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=X),p.props=o,p.state=X,p.context=y,o=_):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,Sh(A,n),y=n.memoizedProps,ne=mi(a,y),p.props=ne,ae=n.pendingProps,Z=p.context,X=a.contextType,_=ia,typeof X=="object"&&X!==null&&(_=At(X)),S=a.getDerivedStateFromProps,(X=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==ae||Z!==_)&&$E(n,p,o,_),xr=!1,Z=n.memoizedState,p.state=Z,nl(n,o,p,d),tl();var $=n.memoizedState;y!==ae||Z!==$||xr||A!==null&&A.dependencies!==null&&gc(A.dependencies)?(typeof S=="function"&&(qh(n,a,S,o),$=n.memoizedState),(ne=xr||WE(n,a,ne,o,Z,$,_)||A!==null&&A.dependencies!==null&&gc(A.dependencies))?(X||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,$,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,$,_)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=$),p.props=o,p.state=$,p.context=_,o=ne):(typeof p.componentDidUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===A.memoizedProps&&Z===A.memoizedState||(n.flags|=1024),o=!1)}return p=o,Hc(A,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,A!==null&&o?(n.child=gi(n,A.child,null,d),n.child=gi(n,null,a,d)):tt(A,n,a,d),n.memoizedState=p.state,A=n.child):A=zn(A,n,d),A}function hv(A,n,a,o){return oi(),n.flags|=256,tt(A,n,a,o),n.child}var eg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ag(A){return{baseLanes:A,cachePool:nE()}}function tg(A,n,a){return A=A!==null?A.childLanes&~a:0,n&&(A|=Rt),A}function gv(A,n,a){var o=n.pendingProps,d=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=A!==null&&A.memoizedState===null?!1:(NA.current&2)!==0),y&&(d=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,A===null){if(qe){if(d?Ur(n):Fr(),(A=wA)?(A=vb(A,$t),A=A!==null&&A.data!=="&"?A:null,A!==null&&(n.memoizedState={dehydrated:A,treeContext:yr!==null?{id:En,overflow:vn}:null,retryLane:536870912,hydrationErrors:null},a=Xy(A),a.return=n,n.child=a,et=n,wA=null)):A=null,A===null)throw vr(n);return Lg(A)?n.lanes=32:n.lanes=536870912,null}var S=o.children;return o=o.fallback,d?(Fr(),d=n.mode,S=Mc({mode:"hidden",children:S},d),o=li(o,d,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,o=n.child,o.memoizedState=Ag(a),o.childLanes=tg(A,y,a),n.memoizedState=eg,ll(null,o)):(Ur(n),ng(n,S))}var _=A.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(p)n.flags&256?(Ur(n),n.flags&=-257,n=rg(A,n,a)):n.memoizedState!==null?(Fr(),n.child=A.child,n.flags|=128,n=null):(Fr(),S=o.fallback,d=n.mode,o=Mc({mode:"visible",children:o.children},d),S=li(S,d,a,null),S.flags|=2,o.return=n,S.return=n,o.sibling=S,n.child=o,gi(n,A.child,null,a),o=n.child,o.memoizedState=Ag(a),o.childLanes=tg(A,y,a),n.memoizedState=eg,n=ll(null,o));else if(Ur(n),Lg(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var X=y.dgst;y=X,o=Error(i(419)),o.stack="",o.digest=y,Js({value:o,source:null,stack:null}),n=rg(A,n,a)}else if(DA||oa(A,n,a,!1),y=(a&A.childLanes)!==0,DA||y){if(y=hA,y!==null&&(o=ut(y,a),o!==0&&o!==_.retryLane))throw _.retryLane=o,si(A,o),bt(y,A,o),Wh;Rg(S)||Gc(),n=rg(A,n,a)}else Rg(S)?(n.flags|=192,n.child=A.child,n=null):(A=_.treeContext,wA=An(S.nextSibling),et=n,qe=!0,Er=null,$t=!1,A!==null&&Zy(n,A),n=ng(n,o.children),n.flags|=4096);return n}return d?(Fr(),S=o.fallback,d=n.mode,_=A.child,X=_.sibling,o=Dn(_,{mode:"hidden",children:o.children}),o.subtreeFlags=_.subtreeFlags&65011712,X!==null?S=Dn(X,S):(S=li(S,d,a,null),S.flags|=2),S.return=n,o.return=n,o.sibling=S,n.child=o,ll(null,o),o=n.child,S=A.child.memoizedState,S===null?S=Ag(a):(d=S.cachePool,d!==null?(_=RA._currentValue,d=d.parent!==_?{parent:_,pool:_}:d):d=nE(),S={baseLanes:S.baseLanes|a,cachePool:d}),o.memoizedState=S,o.childLanes=tg(A,y,a),n.memoizedState=eg,ll(A.child,o)):(Ur(n),a=A.child,A=a.sibling,a=Dn(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,A!==null&&(y=n.deletions,y===null?(n.deletions=[A],n.flags|=16):y.push(A)),n.child=a,n.memoizedState=null,a)}function ng(A,n){return n=Mc({mode:"visible",children:n},A.mode),n.return=A,A.child=n}function Mc(A,n){return A=_t(22,A,null,n),A.lanes=0,A}function rg(A,n,a){return gi(n,A.child,null,a),A=ng(n,n.pendingProps.children),A.flags|=2,n.memoizedState=null,A}function pv(A,n,a){A.lanes|=n;var o=A.alternate;o!==null&&(o.lanes|=n),wh(A.return,n,a)}function ig(A,n,a,o,d,p){var y=A.memoizedState;y===null?A.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:d,treeForkCount:p}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=d,y.treeForkCount=p)}function mv(A,n,a){var o=n.pendingProps,d=o.revealOrder,p=o.tail;o=o.children;var y=NA.current,S=(y&2)!==0;if(S?(y=y&1|2,n.flags|=128):y&=1,E(NA,y),tt(A,n,o,a),o=qe?qs:0,!S&&A!==null&&(A.flags&128)!==0)e:for(A=n.child;A!==null;){if(A.tag===13)A.memoizedState!==null&&pv(A,a,n);else if(A.tag===19)pv(A,a,n);else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===n)break e;for(;A.sibling===null;){if(A.return===null||A.return===n)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}switch(d){case"forwards":for(a=n.child,d=null;a!==null;)A=a.alternate,A!==null&&vc(A)===null&&(d=a),a=a.sibling;a=d,a===null?(d=n.child,n.child=null):(d=a.sibling,a.sibling=null),ig(n,!1,d,a,p,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,d=n.child,n.child=null;d!==null;){if(A=d.alternate,A!==null&&vc(A)===null){n.child=d;break}A=d.sibling,d.sibling=a,a=d,d=A}ig(n,!0,a,null,p,o);break;case"together":ig(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function zn(A,n,a){if(A!==null&&(n.dependencies=A.dependencies),Ir|=n.lanes,(a&n.childLanes)===0)if(A!==null){if(oa(A,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(A!==null&&n.child!==A.child)throw Error(i(153));if(n.child!==null){for(A=n.child,a=Dn(A,A.pendingProps),n.child=a,a.return=n;A.sibling!==null;)A=A.sibling,a=a.sibling=Dn(A,A.pendingProps),a.return=n;a.sibling=null}return n.child}function ag(A,n){return(A.lanes&n)!==0?!0:(A=A.dependencies,!!(A!==null&&gc(A)))}function TO(A,n,a){switch(n.tag){case 3:Re(n,n.stateNode.containerInfo),br(n,RA,A.memoizedState.cache),oi();break;case 27:case 5:Ze(n);break;case 4:Re(n,n.stateNode.containerInfo);break;case 10:br(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Nh(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Ur(n),n.flags|=128,null):(a&n.child.childLanes)!==0?gv(A,n,a):(Ur(n),A=zn(A,n,a),A!==null?A.sibling:null);Ur(n);break;case 19:var d=(A.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(oa(A,n,a,!1),o=(a&n.childLanes)!==0),d){if(o)return mv(A,n,a);n.flags|=128}if(d=n.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),E(NA,NA.current),o)break;return null;case 22:return n.lanes=0,ov(A,n,a,n.pendingProps);case 24:br(n,RA,A.memoizedState.cache)}return zn(A,n,a)}function Bv(A,n,a){if(A!==null)if(A.memoizedProps!==n.pendingProps)DA=!0;else{if(!ag(A,a)&&(n.flags&128)===0)return DA=!1,TO(A,n,a);DA=(A.flags&131072)!==0}else DA=!1,qe&&(n.flags&1048576)!==0&&Jy(n,qs,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(A=di(n.elementType),n.type=A,typeof A=="function")uh(A)?(o=mi(A,o),n.tag=1,n=dv(null,n,A,o,a)):(n.tag=0,n=$h(null,n,A,o,a));else{if(A!=null){var d=A.$$typeof;if(d===G){n.tag=11,n=av(null,n,A,o,a);break e}else if(d===H){n.tag=14,n=sv(null,n,A,o,a);break e}}throw n=le(A)||A,Error(i(306,n,""))}}return n;case 0:return $h(A,n,n.type,n.pendingProps,a);case 1:return o=n.type,d=mi(o,n.pendingProps),dv(A,n,o,d,a);case 3:e:{if(Re(n,n.stateNode.containerInfo),A===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;d=p.element,Sh(A,n),nl(n,o,null,a);var y=n.memoizedState;if(o=y.cache,br(n,RA,o),o!==p.cache&&Ch(n,[RA],a,!0),tl(),o=y.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=hv(A,n,o,a);break e}else if(o!==d){d=Jt(Error(i(424)),n),Js(d),n=hv(A,n,o,a);break e}else{switch(A=n.stateNode.containerInfo,A.nodeType){case 9:A=A.body;break;default:A=A.nodeName==="HTML"?A.ownerDocument.body:A}for(wA=An(A.firstChild),et=n,qe=!0,Er=null,$t=!0,a=oE(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(oi(),o===d){n=zn(A,n,a);break e}tt(A,n,o,a)}n=n.child}return n;case 26:return Hc(A,n),A===null?(a=Fb(n.type,null,n.pendingProps,null))?n.memoizedState=a:qe||(a=n.type,A=n.pendingProps,o=Zc(fe.current).createElement(a),o[Ie]=n,o[OA]=A,nt(o,a,A),qA(o),n.stateNode=o):n.memoizedState=Fb(n.type,A.memoizedProps,n.pendingProps,A.memoizedState),null;case 27:return Ze(n),A===null&&qe&&(o=n.stateNode=Sb(n.type,n.pendingProps,fe.current),et=n,$t=!0,d=wA,Rr(n.type)?(Dg=d,wA=An(o.firstChild)):wA=d),tt(A,n,n.pendingProps.children,a),Hc(A,n),A===null&&(n.flags|=4194304),n.child;case 5:return A===null&&qe&&((d=o=wA)&&(o=aR(o,n.type,n.pendingProps,$t),o!==null?(n.stateNode=o,et=n,wA=An(o.firstChild),$t=!1,d=!0):d=!1),d||vr(n)),Ze(n),d=n.type,p=n.pendingProps,y=A!==null?A.memoizedProps:null,o=p.children,Hg(d,p)?o=null:y!==null&&Hg(d,y)&&(n.flags|=32),n.memoizedState!==null&&(d=_h(A,n,yO,null,null,a),vl._currentValue=d),Hc(A,n),tt(A,n,o,a),n.child;case 6:return A===null&&qe&&((A=a=wA)&&(a=sR(a,n.pendingProps,$t),a!==null?(n.stateNode=a,et=n,wA=null,A=!0):A=!1),A||vr(n)),null;case 13:return gv(A,n,a);case 4:return Re(n,n.stateNode.containerInfo),o=n.pendingProps,A===null?n.child=gi(n,null,o,a):tt(A,n,o,a),n.child;case 11:return av(A,n,n.type,n.pendingProps,a);case 7:return tt(A,n,n.pendingProps,a),n.child;case 8:return tt(A,n,n.pendingProps.children,a),n.child;case 12:return tt(A,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,br(n,n.type,o.value),tt(A,n,o.children,a),n.child;case 9:return d=n.type._context,o=n.pendingProps.children,ui(n),d=At(d),o=o(d),n.flags|=1,tt(A,n,o,a),n.child;case 14:return sv(A,n,n.type,n.pendingProps,a);case 15:return lv(A,n,n.type,n.pendingProps,a);case 19:return mv(A,n,a);case 31:return FO(A,n,a);case 22:return ov(A,n,a,n.pendingProps);case 24:return ui(n),o=At(RA),A===null?(d=vh(),d===null&&(d=hA,p=yh(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=a),d=p),n.memoizedState={parent:o,cache:d},xh(n),br(n,RA,d)):((A.lanes&a)!==0&&(Sh(A,n),nl(n,null,null,a),tl()),d=A.memoizedState,p=n.memoizedState,d.parent!==o?(d={parent:o,cache:o},n.memoizedState=d,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=d),br(n,RA,o)):(o=p.cache,br(n,RA,o),o!==d.cache&&Ch(n,[RA],a,!0))),tt(A,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Pn(A){A.flags|=4}function sg(A,n,a,o,d){if((n=(A.mode&32)!==0)&&(n=!1),n){if(A.flags|=16777216,(d&335544128)===d)if(A.stateNode.complete)A.flags|=8192;else if(zv())A.flags|=8192;else throw hi=wc,bh}else A.flags&=-16777217}function wv(A,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)A.flags&=-16777217;else if(A.flags|=16777216,!Hb(n))if(zv())A.flags|=8192;else throw hi=wc,bh}function Oc(A,n){n!==null&&(A.flags|=4),A.flags&16384&&(n=A.tag!==22?Tt():536870912,A.lanes|=n,ya|=n)}function ol(A,n){if(!qe)switch(A.tailMode){case"hidden":n=A.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?A.tail=null:a.sibling=null;break;case"collapsed":a=A.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||A.tail===null?A.tail=null:A.tail.sibling=null:o.sibling=null}}function CA(A){var n=A.alternate!==null&&A.alternate.child===A.child,a=0,o=0;if(n)for(var d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=A,d=d.sibling;else for(d=A.child;d!==null;)a|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=A,d=d.sibling;return A.subtreeFlags|=o,A.childLanes=a,n}function NO(A,n,a){var o=n.pendingProps;switch(gh(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return CA(n),null;case 1:return CA(n),null;case 3:return a=n.stateNode,o=null,A!==null&&(o=A.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Kn(RA),Fe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(A===null||A.child===null)&&(la(n)?Pn(n):A===null||A.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,mh())),CA(n),null;case 26:var d=n.type,p=n.memoizedState;return A===null?(Pn(n),p!==null?(CA(n),wv(n,p)):(CA(n),sg(n,d,null,o,a))):p?p!==A.memoizedState?(Pn(n),CA(n),wv(n,p)):(CA(n),n.flags&=-16777217):(A=A.memoizedProps,A!==o&&Pn(n),CA(n),sg(n,d,A,o,a)),null;case 27:if(ke(n),a=fe.current,d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&Pn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return CA(n),null}A=te.current,la(n)?Wy(n):(A=Sb(d,o,a),n.stateNode=A,Pn(n))}return CA(n),null;case 5:if(ke(n),d=n.type,A!==null&&n.stateNode!=null)A.memoizedProps!==o&&Pn(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return CA(n),null}if(p=te.current,la(n))Wy(n);else{var y=Zc(fe.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?y.createElement(d,{is:o.is}):y.createElement(d)}}p[Ie]=n,p[OA]=o;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=p;e:switch(nt(p,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Pn(n)}}return CA(n),sg(n,n.type,A===null?null:A.memoizedProps,n.pendingProps,a),null;case 6:if(A&&n.stateNode!=null)A.memoizedProps!==o&&Pn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(A=fe.current,la(n)){if(A=n.stateNode,a=n.memoizedProps,o=null,d=et,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}A[Ie]=n,A=!!(A.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||gb(A.nodeValue,a)),A||vr(n,!0)}else A=Zc(A).createTextNode(o),A[Ie]=n,n.stateNode=A}return CA(n),null;case 31:if(a=n.memoizedState,A===null||A.memoizedState!==null){if(o=la(n),a!==null){if(A===null){if(!o)throw Error(i(318));if(A=n.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(557));A[Ie]=n}else oi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;CA(n),A=!1}else a=mh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=a),A=!0;if(!A)return n.flags&256?(Mt(n),n):(Mt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return CA(n),null;case 13:if(o=n.memoizedState,A===null||A.memoizedState!==null&&A.memoizedState.dehydrated!==null){if(d=la(n),o!==null&&o.dehydrated!==null){if(A===null){if(!d)throw Error(i(318));if(d=n.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Ie]=n}else oi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;CA(n),d=!1}else d=mh(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=d),d=!0;if(!d)return n.flags&256?(Mt(n),n):(Mt(n),null)}return Mt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,A=A!==null&&A.memoizedState!==null,a&&(o=n.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==d&&(o.flags|=2048)),a!==A&&a&&(n.child.flags|=8192),Oc(n,n.updateQueue),CA(n),null);case 4:return Fe(),A===null&&Fg(n.stateNode.containerInfo),CA(n),null;case 10:return Kn(n.type),CA(n),null;case 19:if(P(NA),o=n.memoizedState,o===null)return CA(n),null;if(d=(n.flags&128)!==0,p=o.rendering,p===null)if(d)ol(o,!1);else{if(SA!==0||A!==null&&(A.flags&128)!==0)for(A=n.child;A!==null;){if(p=vc(A),p!==null){for(n.flags|=128,ol(o,!1),A=p.updateQueue,n.updateQueue=A,Oc(n,A),n.subtreeFlags=0,A=a,a=n.child;a!==null;)Yy(a,A),a=a.sibling;return E(NA,NA.current&1|2),qe&&kn(n,o.treeForkCount),n.child}A=A.sibling}o.tail!==null&&XA()>jc&&(n.flags|=128,d=!0,ol(o,!1),n.lanes=4194304)}else{if(!d)if(A=vc(p),A!==null){if(n.flags|=128,d=!0,A=A.updateQueue,n.updateQueue=A,Oc(n,A),ol(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!qe)return CA(n),null}else 2*XA()-o.renderingStartTime>jc&&a!==536870912&&(n.flags|=128,d=!0,ol(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(A=o.last,A!==null?A.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(A=o.tail,o.rendering=A,o.tail=A.sibling,o.renderingStartTime=XA(),A.sibling=null,a=NA.current,E(NA,d?a&1|2:a&1),qe&&kn(n,o.treeForkCount),A):(CA(n),null);case 22:case 23:return Mt(n),Th(),o=n.memoizedState!==null,A!==null?A.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(CA(n),n.subtreeFlags&6&&(n.flags|=8192)):CA(n),a=n.updateQueue,a!==null&&Oc(n,a.retryQueue),a=null,A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),A!==null&&P(fi),null;case 24:return a=null,A!==null&&(a=A.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Kn(RA),CA(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function IO(A,n){switch(gh(n),n.tag){case 1:return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 3:return Kn(RA),Fe(),A=n.flags,(A&65536)!==0&&(A&128)===0?(n.flags=A&-65537|128,n):null;case 26:case 27:case 5:return ke(n),null;case 31:if(n.memoizedState!==null){if(Mt(n),n.alternate===null)throw Error(i(340));oi()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 13:if(Mt(n),A=n.memoizedState,A!==null&&A.dehydrated!==null){if(n.alternate===null)throw Error(i(340));oi()}return A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 19:return P(NA),null;case 4:return Fe(),null;case 10:return Kn(n.type),null;case 22:case 23:return Mt(n),Th(),A!==null&&P(fi),A=n.flags,A&65536?(n.flags=A&-65537|128,n):null;case 24:return Kn(RA),null;case 25:return null;default:return null}}function Cv(A,n){switch(gh(n),n.tag){case 3:Kn(RA),Fe();break;case 26:case 27:case 5:ke(n);break;case 4:Fe();break;case 31:n.memoizedState!==null&&Mt(n);break;case 13:Mt(n);break;case 19:P(NA);break;case 10:Kn(n.type);break;case 22:case 23:Mt(n),Th(),A!==null&&P(fi);break;case 24:Kn(RA)}}function cl(A,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var d=o.next;a=d;do{if((a.tag&A)===A){o=void 0;var p=a.create,y=a.inst;o=p(),y.destroy=o}a=a.next}while(a!==d)}}catch(S){lA(n,n.return,S)}}function Tr(A,n,a){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&A)===A){var y=o.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,d=n;var _=a,X=S;try{X()}catch(ne){lA(d,_,ne)}}}o=o.next}while(o!==p)}}catch(ne){lA(n,n.return,ne)}}function yv(A){var n=A.updateQueue;if(n!==null){var a=A.stateNode;try{uE(n,a)}catch(o){lA(A,A.return,o)}}}function Ev(A,n,a){a.props=mi(A.type,A.memoizedProps),a.state=A.memoizedState;try{a.componentWillUnmount()}catch(o){lA(A,n,o)}}function ul(A,n){try{var a=A.ref;if(a!==null){switch(A.tag){case 26:case 27:case 5:var o=A.stateNode;break;case 30:o=A.stateNode;break;default:o=A.stateNode}typeof a=="function"?A.refCleanup=a(o):a.current=o}}catch(d){lA(A,n,d)}}function bn(A,n){var a=A.ref,o=A.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(d){lA(A,n,d)}finally{A.refCleanup=null,A=A.alternate,A!=null&&(A.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(d){lA(A,n,d)}else a.current=null}function vv(A){var n=A.type,a=A.memoizedProps,o=A.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(d){lA(A,A.return,d)}}function lg(A,n,a){try{var o=A.stateNode;eR(o,A.type,a,n),o[OA]=n}catch(d){lA(A,A.return,d)}}function bv(A){return A.tag===5||A.tag===3||A.tag===26||A.tag===27&&Rr(A.type)||A.tag===4}function og(A){e:for(;;){for(;A.sibling===null;){if(A.return===null||bv(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.tag===27&&Rr(A.type)||A.flags&2||A.child===null||A.tag===4)continue e;A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function cg(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(A,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(A),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Rn));else if(o!==4&&(o===27&&Rr(A.type)&&(a=A.stateNode,n=null),A=A.child,A!==null))for(cg(A,n,a),A=A.sibling;A!==null;)cg(A,n,a),A=A.sibling}function Rc(A,n,a){var o=A.tag;if(o===5||o===6)A=A.stateNode,n?a.insertBefore(A,n):a.appendChild(A);else if(o!==4&&(o===27&&Rr(A.type)&&(a=A.stateNode),A=A.child,A!==null))for(Rc(A,n,a),A=A.sibling;A!==null;)Rc(A,n,a),A=A.sibling}function xv(A){var n=A.stateNode,a=A.memoizedProps;try{for(var o=A.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);nt(n,o,a),n[Ie]=A,n[OA]=a}catch(p){lA(A,A.return,p)}}var Yn=!1,kA=!1,ug=!1,Sv=typeof WeakSet=="function"?WeakSet:Set,JA=null;function _O(A,n){if(A=A.containerInfo,Ig=ru,A=Ly(A),rh(A)){if("selectionStart"in A)var a={start:A.selectionStart,end:A.selectionEnd};else{a=(a=A.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var d=o.anchorOffset,p=o.focusNode;o=o.focusOffset;var y=0,S=-1,_=-1,X=0,ne=0,ae=A,Z=null;e:for(;;){for(var $;ae!==a||d!==0&&ae.nodeType!==3||(S=y+d),ae!==p||o!==0&&ae.nodeType!==3||(_=y+o),ae.nodeType===3&&(y+=ae.nodeValue.length),($=ae.firstChild)!==null;)Z=ae,ae=$;for(;;){if(ae===A)break e;if(Z===a&&++X===d&&(S=y),Z===p&&++ne===o&&(_=y),($=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=$}a=S===-1||_===-1?null:{start:S,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(_g={focusedElem:A,selectionRange:a},ru=!1,JA=n;JA!==null;)if(n=JA,A=n.child,(n.subtreeFlags&1028)!==0&&A!==null)A.return=n,JA=A;else for(;JA!==null;){switch(n=JA,p=n.alternate,A=n.flags,n.tag){case 0:if((A&4)!==0&&(A=n.updateQueue,A=A!==null?A.events:null,A!==null))for(a=0;a<A.length;a++)d=A[a],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((A&1024)!==0&&p!==null){A=void 0,a=n,d=p.memoizedProps,p=p.memoizedState,o=a.stateNode;try{var Ce=mi(a.type,d);A=o.getSnapshotBeforeUpdate(Ce,p),o.__reactInternalSnapshotBeforeUpdate=A}catch(Se){lA(a,a.return,Se)}}break;case 3:if((A&1024)!==0){if(A=n.stateNode.containerInfo,a=A.nodeType,a===9)Og(A);else if(a===1)switch(A.nodeName){case"HEAD":case"HTML":case"BODY":Og(A);break;default:A.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error(i(163))}if(A=n.sibling,A!==null){A.return=n.return,JA=A;break}JA=n.return}}function Qv(A,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:qn(A,a),o&4&&cl(5,a);break;case 1:if(qn(A,a),o&4)if(A=a.stateNode,n===null)try{A.componentDidMount()}catch(y){lA(a,a.return,y)}else{var d=mi(a.type,n.memoizedProps);n=n.memoizedState;try{A.componentDidUpdate(d,n,A.__reactInternalSnapshotBeforeUpdate)}catch(y){lA(a,a.return,y)}}o&64&&yv(a),o&512&&ul(a,a.return);break;case 3:if(qn(A,a),o&64&&(A=a.updateQueue,A!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{uE(A,n)}catch(y){lA(a,a.return,y)}}break;case 27:n===null&&o&4&&xv(a);case 26:case 5:qn(A,a),n===null&&o&4&&vv(a),o&512&&ul(a,a.return);break;case 12:qn(A,a);break;case 31:qn(A,a),o&4&&Tv(A,a);break;case 13:qn(A,a),o&4&&Nv(A,a),o&64&&(A=a.memoizedState,A!==null&&(A=A.dehydrated,A!==null&&(a=KO.bind(null,a),lR(A,a))));break;case 22:if(o=a.memoizedState!==null||Yn,!o){n=n!==null&&n.memoizedState!==null||kA,d=Yn;var p=kA;Yn=o,(kA=n)&&!p?Jn(A,a,(a.subtreeFlags&8772)!==0):qn(A,a),Yn=d,kA=p}break;case 30:break;default:qn(A,a)}}function Uv(A){var n=A.alternate;n!==null&&(A.alternate=null,Uv(n)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(n=A.stateNode,n!==null&&jd(n)),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}var vA=null,Ct=!1;function Xn(A,n,a){for(a=a.child;a!==null;)Fv(A,n,a),a=a.sibling}function Fv(A,n,a){if(ze&&typeof ze.onCommitFiberUnmount=="function")try{ze.onCommitFiberUnmount(We,a)}catch{}switch(a.tag){case 26:kA||bn(a,n),Xn(A,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:kA||bn(a,n);var o=vA,d=Ct;Rr(a.type)&&(vA=a.stateNode,Ct=!1),Xn(A,n,a),Cl(a.stateNode),vA=o,Ct=d;break;case 5:kA||bn(a,n);case 6:if(o=vA,d=Ct,vA=null,Xn(A,n,a),vA=o,Ct=d,vA!==null)if(Ct)try{(vA.nodeType===9?vA.body:vA.nodeName==="HTML"?vA.ownerDocument.body:vA).removeChild(a.stateNode)}catch(p){lA(a,n,p)}else try{vA.removeChild(a.stateNode)}catch(p){lA(a,n,p)}break;case 18:vA!==null&&(Ct?(A=vA,yb(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,a.stateNode),Fa(A)):yb(vA,a.stateNode));break;case 4:o=vA,d=Ct,vA=a.stateNode.containerInfo,Ct=!0,Xn(A,n,a),vA=o,Ct=d;break;case 0:case 11:case 14:case 15:Tr(2,a,n),kA||Tr(4,a,n),Xn(A,n,a);break;case 1:kA||(bn(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Ev(a,n,o)),Xn(A,n,a);break;case 21:Xn(A,n,a);break;case 22:kA=(o=kA)||a.memoizedState!==null,Xn(A,n,a),kA=o;break;default:Xn(A,n,a)}}function Tv(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null))){A=A.dehydrated;try{Fa(A)}catch(a){lA(n,n.return,a)}}}function Nv(A,n){if(n.memoizedState===null&&(A=n.alternate,A!==null&&(A=A.memoizedState,A!==null&&(A=A.dehydrated,A!==null))))try{Fa(A)}catch(a){lA(n,n.return,a)}}function HO(A){switch(A.tag){case 31:case 13:case 19:var n=A.stateNode;return n===null&&(n=A.stateNode=new Sv),n;case 22:return A=A.stateNode,n=A._retryCache,n===null&&(n=A._retryCache=new Sv),n;default:throw Error(i(435,A.tag))}}function Lc(A,n){var a=HO(A);n.forEach(function(o){if(!a.has(o)){a.add(o);var d=VO.bind(null,A,o);o.then(d,d)}})}function yt(A,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var d=a[o],p=A,y=n,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(Rr(S.type)){vA=S.stateNode,Ct=!1;break e}break;case 5:vA=S.stateNode,Ct=!1;break e;case 3:case 4:vA=S.stateNode.containerInfo,Ct=!0;break e}S=S.return}if(vA===null)throw Error(i(160));Fv(p,y,d),vA=null,Ct=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Iv(n,A),n=n.sibling}var fn=null;function Iv(A,n){var a=A.alternate,o=A.flags;switch(A.tag){case 0:case 11:case 14:case 15:yt(n,A),Et(A),o&4&&(Tr(3,A,A.return),cl(3,A),Tr(5,A,A.return));break;case 1:yt(n,A),Et(A),o&512&&(kA||a===null||bn(a,a.return)),o&64&&Yn&&(A=A.updateQueue,A!==null&&(o=A.callbacks,o!==null&&(a=A.shared.hiddenCallbacks,A.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var d=fn;if(yt(n,A),Et(A),o&512&&(kA||a===null||bn(a,a.return)),o&4){var p=a!==null?a.memoizedState:null;if(o=A.memoizedState,a===null)if(o===null)if(A.stateNode===null){e:{o=A.type,a=A.memoizedProps,d=d.ownerDocument||d;A:switch(o){case"title":p=d.getElementsByTagName("title")[0],(!p||p[Ls]||p[Ie]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(o),d.head.insertBefore(p,d.querySelector("head > title"))),nt(p,o,a),p[Ie]=A,qA(p),o=p;break e;case"link":var y=Ib("link","href",d).get(o+(a.href||""));if(y){for(var S=0;S<y.length;S++)if(p=y[S],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(S,1);break A}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;case"meta":if(y=Ib("meta","content",d).get(o+(a.content||""))){for(S=0;S<y.length;S++)if(p=y[S],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(S,1);break A}}p=d.createElement(o),nt(p,o,a),d.head.appendChild(p);break;default:throw Error(i(468,o))}p[Ie]=A,qA(p),o=p}A.stateNode=o}else _b(d,A.type,A.stateNode);else A.stateNode=Nb(d,o,A.memoizedProps);else p!==o?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,o===null?_b(d,A.type,A.stateNode):Nb(d,o,A.memoizedProps)):o===null&&A.stateNode!==null&&lg(A,A.memoizedProps,a.memoizedProps)}break;case 27:yt(n,A),Et(A),o&512&&(kA||a===null||bn(a,a.return)),a!==null&&o&4&&lg(A,A.memoizedProps,a.memoizedProps);break;case 5:if(yt(n,A),Et(A),o&512&&(kA||a===null||bn(a,a.return)),A.flags&32){d=A.stateNode;try{Wi(d,"")}catch(Ce){lA(A,A.return,Ce)}}o&4&&A.stateNode!=null&&(d=A.memoizedProps,lg(A,d,a!==null?a.memoizedProps:d)),o&1024&&(ug=!0);break;case 6:if(yt(n,A),Et(A),o&4){if(A.stateNode===null)throw Error(i(162));o=A.memoizedProps,a=A.stateNode;try{a.nodeValue=o}catch(Ce){lA(A,A.return,Ce)}}break;case 3:if(eu=null,d=fn,fn=Wc(n.containerInfo),yt(n,A),fn=d,Et(A),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Fa(n.containerInfo)}catch(Ce){lA(A,A.return,Ce)}ug&&(ug=!1,_v(A));break;case 4:o=fn,fn=Wc(A.stateNode.containerInfo),yt(n,A),Et(A),fn=o;break;case 12:yt(n,A),Et(A);break;case 31:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Lc(A,o)));break;case 13:yt(n,A),Et(A),A.child.flags&8192&&A.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(kc=XA()),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Lc(A,o)));break;case 22:d=A.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,X=Yn,ne=kA;if(Yn=X||d,kA=ne||_,yt(n,A),kA=ne,Yn=X,Et(A),o&8192)e:for(n=A.stateNode,n._visibility=d?n._visibility&-2:n._visibility|1,d&&(a===null||_||Yn||kA||Bi(A)),a=null,n=A;;){if(n.tag===5||n.tag===26){if(a===null){_=a=n;try{if(p=_.stateNode,d)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=_.stateNode;var ae=_.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;S.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ce){lA(_,_.return,Ce)}}}else if(n.tag===6){if(a===null){_=n;try{_.stateNode.nodeValue=d?"":_.memoizedProps}catch(Ce){lA(_,_.return,Ce)}}}else if(n.tag===18){if(a===null){_=n;try{var $=_.stateNode;d?Eb($,!0):Eb(_.stateNode,!1)}catch(Ce){lA(_,_.return,Ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===A)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===A)break e;for(;n.sibling===null;){if(n.return===null||n.return===A)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=A.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Lc(A,a))));break;case 19:yt(n,A),Et(A),o&4&&(o=A.updateQueue,o!==null&&(A.updateQueue=null,Lc(A,o)));break;case 30:break;case 21:break;default:yt(n,A),Et(A)}}function Et(A){var n=A.flags;if(n&2){try{for(var a,o=A.return;o!==null;){if(bv(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var d=a.stateNode,p=og(A);Rc(A,p,d);break;case 5:var y=a.stateNode;a.flags&32&&(Wi(y,""),a.flags&=-33);var S=og(A);Rc(A,S,y);break;case 3:case 4:var _=a.stateNode.containerInfo,X=og(A);cg(A,X,_);break;default:throw Error(i(161))}}catch(ne){lA(A,A.return,ne)}A.flags&=-3}n&4096&&(A.flags&=-4097)}function _v(A){if(A.subtreeFlags&1024)for(A=A.child;A!==null;){var n=A;_v(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),A=A.sibling}}function qn(A,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Qv(A,n.alternate,n),n=n.sibling}function Bi(A){for(A=A.child;A!==null;){var n=A;switch(n.tag){case 0:case 11:case 14:case 15:Tr(4,n,n.return),Bi(n);break;case 1:bn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Ev(n,n.return,a),Bi(n);break;case 27:Cl(n.stateNode);case 26:case 5:bn(n,n.return),Bi(n);break;case 22:n.memoizedState===null&&Bi(n);break;case 30:Bi(n);break;default:Bi(n)}A=A.sibling}}function Jn(A,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,d=A,p=n,y=p.flags;switch(p.tag){case 0:case 11:case 15:Jn(d,p,a),cl(4,p);break;case 1:if(Jn(d,p,a),o=p,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(X){lA(o,o.return,X)}if(o=p,d=o.updateQueue,d!==null){var S=o.stateNode;try{var _=d.shared.hiddenCallbacks;if(_!==null)for(d.shared.hiddenCallbacks=null,d=0;d<_.length;d++)cE(_[d],S)}catch(X){lA(o,o.return,X)}}a&&y&64&&yv(p),ul(p,p.return);break;case 27:xv(p);case 26:case 5:Jn(d,p,a),a&&o===null&&y&4&&vv(p),ul(p,p.return);break;case 12:Jn(d,p,a);break;case 31:Jn(d,p,a),a&&y&4&&Tv(d,p);break;case 13:Jn(d,p,a),a&&y&4&&Nv(d,p);break;case 22:p.memoizedState===null&&Jn(d,p,a),ul(p,p.return);break;case 30:break;default:Jn(d,p,a)}n=n.sibling}}function fg(A,n){var a=null;A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(a=A.memoizedState.cachePool.pool),A=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(A=n.memoizedState.cachePool.pool),A!==a&&(A!=null&&A.refCount++,a!=null&&Zs(a))}function dg(A,n){A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Zs(A))}function dn(A,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hv(A,n,a,o),n=n.sibling}function Hv(A,n,a,o){var d=n.flags;switch(n.tag){case 0:case 11:case 15:dn(A,n,a,o),d&2048&&cl(9,n);break;case 1:dn(A,n,a,o);break;case 3:dn(A,n,a,o),d&2048&&(A=null,n.alternate!==null&&(A=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==A&&(n.refCount++,A!=null&&Zs(A)));break;case 12:if(d&2048){dn(A,n,a,o),A=n.stateNode;try{var p=n.memoizedProps,y=p.id,S=p.onPostCommit;typeof S=="function"&&S(y,n.alternate===null?"mount":"update",A.passiveEffectDuration,-0)}catch(_){lA(n,n.return,_)}}else dn(A,n,a,o);break;case 31:dn(A,n,a,o);break;case 13:dn(A,n,a,o);break;case 23:break;case 22:p=n.stateNode,y=n.alternate,n.memoizedState!==null?p._visibility&2?dn(A,n,a,o):fl(A,n):p._visibility&2?dn(A,n,a,o):(p._visibility|=2,Ba(A,n,a,o,(n.subtreeFlags&10256)!==0||!1)),d&2048&&fg(y,n);break;case 24:dn(A,n,a,o),d&2048&&dg(n.alternate,n);break;default:dn(A,n,a,o)}}function Ba(A,n,a,o,d){for(d=d&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=A,y=n,S=a,_=o,X=y.flags;switch(y.tag){case 0:case 11:case 15:Ba(p,y,S,_,d),cl(8,y);break;case 23:break;case 22:var ne=y.stateNode;y.memoizedState!==null?ne._visibility&2?Ba(p,y,S,_,d):fl(p,y):(ne._visibility|=2,Ba(p,y,S,_,d)),d&&X&2048&&fg(y.alternate,y);break;case 24:Ba(p,y,S,_,d),d&&X&2048&&dg(y.alternate,y);break;default:Ba(p,y,S,_,d)}n=n.sibling}}function fl(A,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=A,o=n,d=o.flags;switch(o.tag){case 22:fl(a,o),d&2048&&fg(o.alternate,o);break;case 24:fl(a,o),d&2048&&dg(o.alternate,o);break;default:fl(a,o)}n=n.sibling}}var dl=8192;function wa(A,n,a){if(A.subtreeFlags&dl)for(A=A.child;A!==null;)Mv(A,n,a),A=A.sibling}function Mv(A,n,a){switch(A.tag){case 26:wa(A,n,a),A.flags&dl&&A.memoizedState!==null&&CR(a,fn,A.memoizedState,A.memoizedProps);break;case 5:wa(A,n,a);break;case 3:case 4:var o=fn;fn=Wc(A.stateNode.containerInfo),wa(A,n,a),fn=o;break;case 22:A.memoizedState===null&&(o=A.alternate,o!==null&&o.memoizedState!==null?(o=dl,dl=16777216,wa(A,n,a),dl=o):wa(A,n,a));break;default:wa(A,n,a)}}function Ov(A){var n=A.alternate;if(n!==null&&(A=n.child,A!==null)){n.child=null;do n=A.sibling,A.sibling=null,A=n;while(A!==null)}}function hl(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];JA=o,Lv(o,A)}Ov(A)}if(A.subtreeFlags&10256)for(A=A.child;A!==null;)Rv(A),A=A.sibling}function Rv(A){switch(A.tag){case 0:case 11:case 15:hl(A),A.flags&2048&&Tr(9,A,A.return);break;case 3:hl(A);break;case 12:hl(A);break;case 22:var n=A.stateNode;A.memoizedState!==null&&n._visibility&2&&(A.return===null||A.return.tag!==13)?(n._visibility&=-3,Dc(A)):hl(A);break;default:hl(A)}}function Dc(A){var n=A.deletions;if((A.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];JA=o,Lv(o,A)}Ov(A)}for(A=A.child;A!==null;){switch(n=A,n.tag){case 0:case 11:case 15:Tr(8,n,n.return),Dc(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Dc(n));break;default:Dc(n)}A=A.sibling}}function Lv(A,n){for(;JA!==null;){var a=JA;switch(a.tag){case 0:case 11:case 15:Tr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Zs(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,JA=o;else e:for(a=A;JA!==null;){o=JA;var d=o.sibling,p=o.return;if(Uv(o),o===a){JA=null;break e}if(d!==null){d.return=p,JA=d;break e}JA=p}}}var MO={getCacheForType:function(A){var n=At(RA),a=n.data.get(A);return a===void 0&&(a=A(),n.data.set(A,a)),a},cacheSignal:function(){return At(RA).controller.signal}},OO=typeof WeakMap=="function"?WeakMap:Map,rA=0,hA=null,Ke=null,Pe=0,sA=0,Ot=null,Nr=!1,Ca=!1,hg=!1,Zn=0,SA=0,Ir=0,wi=0,gg=0,Rt=0,ya=0,gl=null,vt=null,pg=!1,kc=0,Dv=0,jc=1/0,Kc=null,_r=null,zA=0,Hr=null,Ea=null,Wn=0,mg=0,Bg=null,kv=null,pl=0,wg=null;function Lt(){return(rA&2)!==0&&Pe!==0?Pe&-Pe:R.T!==null?xg():Zo()}function jv(){if(Rt===0)if((Pe&536870912)===0||qe){var A=lt;lt<<=1,(lt&3932160)===0&&(lt=262144),Rt=A}else Rt=536870912;return A=Ht.current,A!==null&&(A.flags|=32),Rt}function bt(A,n,a){(A===hA&&(sA===2||sA===9)||A.cancelPendingCommit!==null)&&(va(A,0),Mr(A,Pe,Rt,!1)),Nt(A,a),((rA&2)===0||A!==hA)&&(A===hA&&((rA&2)===0&&(wi|=a),SA===4&&Mr(A,Pe,Rt,!1)),xn(A))}function Kv(A,n,a){if((rA&6)!==0)throw Error(i(327));var o=!a&&(n&127)===0&&(n&A.expiredLanes)===0||VA(A,n),d=o?DO(A,n):yg(A,n,!0),p=o;do{if(d===0){Ca&&!o&&Mr(A,n,0,!1);break}else{if(a=A.current.alternate,p&&!RO(a)){d=yg(A,n,!1),p=!1;continue}if(d===2){if(p=n,A.errorRecoveryDisabledLanes&p)var y=0;else y=A.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var S=A;d=gl;var _=S.current.memoizedState.isDehydrated;if(_&&(va(S,y).flags|=256),y=yg(S,y,!1),y!==2){if(hg&&!_){S.errorRecoveryDisabledLanes|=p,wi|=p,d=4;break e}p=vt,vt=d,p!==null&&(vt===null?vt=p:vt.push.apply(vt,p))}d=y}if(p=!1,d!==2)continue}}if(d===1){va(A,0),Mr(A,n,0,!0);break}e:{switch(o=A,p=d,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Mr(o,n,Rt,!Nr);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(d=kc+300-XA(),10<d)){if(Mr(o,n,Rt,!Nr),MA(o,0,!0)!==0)break e;Wn=n,o.timeoutHandle=wb(Vv.bind(null,o,a,vt,Kc,pg,n,Rt,wi,ya,Nr,p,"Throttled",-0,0),d);break e}Vv(o,a,vt,Kc,pg,n,Rt,wi,ya,Nr,p,null,-0,0)}}break}while(!0);xn(A)}function Vv(A,n,a,o,d,p,y,S,_,X,ne,ae,Z,$){if(A.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},Mv(n,p,ae);var Ce=(p&62914560)===p?kc-XA():(p&4194048)===p?Dv-XA():0;if(Ce=yR(ae,Ce),Ce!==null){Wn=p,A.cancelPendingCommit=Ce(Zv.bind(null,A,n,p,a,o,d,y,S,_,ne,ae,null,Z,$)),Mr(A,p,y,!X);return}}Zv(A,n,p,a,o,d,y,S,_)}function RO(A){for(var n=A;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var d=a[o],p=d.getSnapshot;d=d.value;try{if(!It(p(),d))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===A)break;for(;n.sibling===null;){if(n.return===null||n.return===A)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Mr(A,n,a,o){n&=~gg,n&=~wi,A.suspendedLanes|=n,A.pingedLanes&=~n,o&&(A.warmLanes|=n),o=A.expirationTimes;for(var d=n;0<d;){var p=31-De(d),y=1<<p;o[p]=-1,d&=~y}a!==0&&ti(A,a,n)}function Vc(){return(rA&6)===0?(ml(0),!1):!0}function Cg(){if(Ke!==null){if(sA===0)var A=Ke.return;else A=Ke,jn=ci=null,Oh(A),da=null,$s=0,A=Ke;for(;A!==null;)Cv(A.alternate,A),A=A.return;Ke=null}}function va(A,n){var a=A.timeoutHandle;a!==-1&&(A.timeoutHandle=-1,nR(a)),a=A.cancelPendingCommit,a!==null&&(A.cancelPendingCommit=null,a()),Wn=0,Cg(),hA=A,Ke=a=Dn(A.current,null),Pe=n,sA=0,Ot=null,Nr=!1,Ca=VA(A,n),hg=!1,ya=Rt=gg=wi=Ir=SA=0,vt=gl=null,pg=!1,(n&8)!==0&&(n|=n&32);var o=A.entangledLanes;if(o!==0)for(A=A.entanglements,o&=n;0<o;){var d=31-De(o),p=1<<d;n|=A[d],o&=~p}return Zn=n,cc(),a}function Gv(A,n){_e=null,R.H=sl,n===fa||n===Bc?(n=aE(),sA=3):n===bh?(n=aE(),sA=4):sA=n===Wh?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Ot=n,Ke===null&&(SA=1,Ic(A,Jt(n,A.current)))}function zv(){var A=Ht.current;return A===null?!0:(Pe&4194048)===Pe?en===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?A===en:!1}function Pv(){var A=R.H;return R.H=sl,A===null?sl:A}function Yv(){var A=R.A;return R.A=MO,A}function Gc(){SA=4,Nr||(Pe&4194048)!==Pe&&Ht.current!==null||(Ca=!0),(Ir&134217727)===0&&(wi&134217727)===0||hA===null||Mr(hA,Pe,Rt,!1)}function yg(A,n,a){var o=rA;rA|=2;var d=Pv(),p=Yv();(hA!==A||Pe!==n)&&(Kc=null,va(A,n)),n=!1;var y=SA;e:do try{if(sA!==0&&Ke!==null){var S=Ke,_=Ot;switch(sA){case 8:Cg(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(n=!0);var X=sA;if(sA=0,Ot=null,ba(A,S,_,X),a&&Ca){y=0;break e}break;default:X=sA,sA=0,Ot=null,ba(A,S,_,X)}}LO(),y=SA;break}catch(ne){Gv(A,ne)}while(!0);return n&&A.shellSuspendCounter++,jn=ci=null,rA=o,R.H=d,R.A=p,Ke===null&&(hA=null,Pe=0,cc()),y}function LO(){for(;Ke!==null;)Xv(Ke)}function DO(A,n){var a=rA;rA|=2;var o=Pv(),d=Yv();hA!==A||Pe!==n?(Kc=null,jc=XA()+500,va(A,n)):Ca=VA(A,n);e:do try{if(sA!==0&&Ke!==null){n=Ke;var p=Ot;A:switch(sA){case 1:sA=0,Ot=null,ba(A,n,p,1);break;case 2:case 9:if(rE(p)){sA=0,Ot=null,qv(n);break}n=function(){sA!==2&&sA!==9||hA!==A||(sA=7),xn(A)},p.then(n,n);break e;case 3:sA=7;break e;case 4:sA=5;break e;case 7:rE(p)?(sA=0,Ot=null,qv(n)):(sA=0,Ot=null,ba(A,n,p,7));break;case 5:var y=null;switch(Ke.tag){case 26:y=Ke.memoizedState;case 5:case 27:var S=Ke;if(y?Hb(y):S.stateNode.complete){sA=0,Ot=null;var _=S.sibling;if(_!==null)Ke=_;else{var X=S.return;X!==null?(Ke=X,zc(X)):Ke=null}break A}}sA=0,Ot=null,ba(A,n,p,5);break;case 6:sA=0,Ot=null,ba(A,n,p,6);break;case 8:Cg(),SA=6;break e;default:throw Error(i(462))}}kO();break}catch(ne){Gv(A,ne)}while(!0);return jn=ci=null,R.H=o,R.A=d,rA=a,Ke!==null?0:(hA=null,Pe=0,cc(),SA)}function kO(){for(;Ke!==null&&!ei();)Xv(Ke)}function Xv(A){var n=Bv(A.alternate,A,Zn);A.memoizedProps=A.pendingProps,n===null?zc(A):Ke=n}function qv(A){var n=A,a=n.alternate;switch(n.tag){case 15:case 0:n=fv(a,n,n.pendingProps,n.type,void 0,Pe);break;case 11:n=fv(a,n,n.pendingProps,n.type.render,n.ref,Pe);break;case 5:Oh(n);default:Cv(a,n),n=Ke=Yy(n,Zn),n=Bv(a,n,Zn)}A.memoizedProps=A.pendingProps,n===null?zc(A):Ke=n}function ba(A,n,a,o){jn=ci=null,Oh(n),da=null,$s=0;var d=n.return;try{if(UO(A,d,n,a,Pe)){SA=1,Ic(A,Jt(a,A.current)),Ke=null;return}}catch(p){if(d!==null)throw Ke=d,p;SA=1,Ic(A,Jt(a,A.current)),Ke=null;return}n.flags&32768?(qe||o===1?A=!0:Ca||(Pe&536870912)!==0?A=!1:(Nr=A=!0,(o===2||o===9||o===3||o===6)&&(o=Ht.current,o!==null&&o.tag===13&&(o.flags|=16384))),Jv(n,A)):zc(n)}function zc(A){var n=A;do{if((n.flags&32768)!==0){Jv(n,Nr);return}A=n.return;var a=NO(n.alternate,n,Zn);if(a!==null){Ke=a;return}if(n=n.sibling,n!==null){Ke=n;return}Ke=n=A}while(n!==null);SA===0&&(SA=5)}function Jv(A,n){do{var a=IO(A.alternate,A);if(a!==null){a.flags&=32767,Ke=a;return}if(a=A.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(A=A.sibling,A!==null)){Ke=A;return}Ke=A=a}while(A!==null);SA=6,Ke=null}function Zv(A,n,a,o,d,p,y,S,_){A.cancelPendingCommit=null;do Pc();while(zA!==0);if((rA&6)!==0)throw Error(i(327));if(n!==null){if(n===A.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=oh,Ai(A,a,p,y,S,_),A===hA&&(Ke=hA=null,Pe=0),Ea=n,Hr=A,Wn=a,mg=p,Bg=d,kv=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(A.callbackNode=null,A.callbackPriority=0,GO(J,function(){return tb(),null})):(A.callbackNode=null,A.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=R.T,R.T=null,d=q.p,q.p=2,y=rA,rA|=4;try{_O(A,n)}finally{rA=y,q.p=d,R.T=o}}zA=1,Wv(),$v(),eb()}}function Wv(){if(zA===1){zA=0;var A=Hr,n=Ea,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var o=q.p;q.p=2;var d=rA;rA|=4;try{Iv(n,A);var p=_g,y=Ly(A.containerInfo),S=p.focusedElem,_=p.selectionRange;if(y!==S&&S&&S.ownerDocument&&Ry(S.ownerDocument.documentElement,S)){if(_!==null&&rh(S)){var X=_.start,ne=_.end;if(ne===void 0&&(ne=X),"selectionStart"in S)S.selectionStart=X,S.selectionEnd=Math.min(ne,S.value.length);else{var ae=S.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var $=Z.getSelection(),Ce=S.textContent.length,Se=Math.min(_.start,Ce),fA=_.end===void 0?Se:Math.min(_.end,Ce);!$.extend&&Se>fA&&(y=fA,fA=Se,Se=y);var V=Oy(S,Se),D=Oy(S,fA);if(V&&D&&($.rangeCount!==1||$.anchorNode!==V.node||$.anchorOffset!==V.offset||$.focusNode!==D.node||$.focusOffset!==D.offset)){var Y=ae.createRange();Y.setStart(V.node,V.offset),$.removeAllRanges(),Se>fA?($.addRange(Y),$.extend(D.node,D.offset)):(Y.setEnd(D.node,D.offset),$.addRange(Y))}}}}for(ae=[],$=S;$=$.parentNode;)$.nodeType===1&&ae.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ae.length;S++){var ie=ae[S];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}ru=!!Ig,_g=Ig=null}finally{rA=d,q.p=o,R.T=a}}A.current=n,zA=2}}function $v(){if(zA===2){zA=0;var A=Hr,n=Ea,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var o=q.p;q.p=2;var d=rA;rA|=4;try{Qv(A,n.alternate,n)}finally{rA=d,q.p=o,R.T=a}}zA=3}}function eb(){if(zA===4||zA===3){zA=0,Br();var A=Hr,n=Ea,a=Wn,o=kv;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?zA=5:(zA=0,Ea=Hr=null,Ab(A,A.pendingLanes));var d=A.pendingLanes;if(d===0&&(_r=null),Rs(a),n=n.stateNode,ze&&typeof ze.onCommitFiberRoot=="function")try{ze.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=R.T,d=q.p,q.p=2,R.T=null;try{for(var p=A.onRecoverableError,y=0;y<o.length;y++){var S=o[y];p(S.value,{componentStack:S.stack})}}finally{R.T=n,q.p=d}}(Wn&3)!==0&&Pc(),xn(A),d=A.pendingLanes,(a&261930)!==0&&(d&42)!==0?A===wg?pl++:(pl=0,wg=A):pl=0,ml(0)}}function Ab(A,n){(A.pooledCacheLanes&=n)===0&&(n=A.pooledCache,n!=null&&(A.pooledCache=null,Zs(n)))}function Pc(){return Wv(),$v(),eb(),tb()}function tb(){if(zA!==5)return!1;var A=Hr,n=mg;mg=0;var a=Rs(Wn),o=R.T,d=q.p;try{q.p=32>a?32:a,R.T=null,a=Bg,Bg=null;var p=Hr,y=Wn;if(zA=0,Ea=Hr=null,Wn=0,(rA&6)!==0)throw Error(i(331));var S=rA;if(rA|=4,Rv(p.current),Hv(p,p.current,y,a),rA=S,ml(0),ze&&typeof ze.onPostCommitFiberRoot=="function")try{ze.onPostCommitFiberRoot(We,p)}catch{}return!0}finally{q.p=d,R.T=o,Ab(A,n)}}function nb(A,n,a){n=Jt(a,n),n=Zh(A.stateNode,n,2),A=Qr(A,n,2),A!==null&&(Nt(A,2),xn(A))}function lA(A,n,a){if(A.tag===3)nb(A,A,a);else for(;n!==null;){if(n.tag===3){nb(n,A,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(_r===null||!_r.has(o))){A=Jt(a,A),a=rv(2),o=Qr(n,a,2),o!==null&&(iv(a,o,n,A),Nt(o,2),xn(o));break}}n=n.return}}function Eg(A,n,a){var o=A.pingCache;if(o===null){o=A.pingCache=new OO;var d=new Set;o.set(n,d)}else d=o.get(n),d===void 0&&(d=new Set,o.set(n,d));d.has(a)||(hg=!0,d.add(a),A=jO.bind(null,A,n,a),n.then(A,A))}function jO(A,n,a){var o=A.pingCache;o!==null&&o.delete(n),A.pingedLanes|=A.suspendedLanes&a,A.warmLanes&=~a,hA===A&&(Pe&a)===a&&(SA===4||SA===3&&(Pe&62914560)===Pe&&300>XA()-kc?(rA&2)===0&&va(A,0):gg|=a,ya===Pe&&(ya=0)),xn(A)}function rb(A,n){n===0&&(n=Tt()),A=si(A,n),A!==null&&(Nt(A,n),xn(A))}function KO(A){var n=A.memoizedState,a=0;n!==null&&(a=n.retryLane),rb(A,a)}function VO(A,n){var a=0;switch(A.tag){case 31:case 13:var o=A.stateNode,d=A.memoizedState;d!==null&&(a=d.retryLane);break;case 19:o=A.stateNode;break;case 22:o=A.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),rb(A,a)}function GO(A,n){return ct(A,n)}var Yc=null,xa=null,vg=!1,Xc=!1,bg=!1,Or=0;function xn(A){A!==xa&&A.next===null&&(xa===null?Yc=xa=A:xa=xa.next=A),Xc=!0,vg||(vg=!0,PO())}function ml(A,n){if(!bg&&Xc){bg=!0;do for(var a=!1,o=Yc;o!==null;){if(A!==0){var d=o.pendingLanes;if(d===0)var p=0;else{var y=o.suspendedLanes,S=o.pingedLanes;p=(1<<31-De(42|A)+1)-1,p&=d&~(y&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,lb(o,p))}else p=Pe,p=MA(o,o===hA?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||VA(o,p)||(a=!0,lb(o,p));o=o.next}while(a);bg=!1}}function zO(){ib()}function ib(){Xc=vg=!1;var A=0;Or!==0&&tR()&&(A=Or);for(var n=XA(),a=null,o=Yc;o!==null;){var d=o.next,p=ab(o,n);p===0?(o.next=null,a===null?Yc=d:a.next=d,d===null&&(xa=a)):(a=o,(A!==0||(p&3)!==0)&&(Xc=!0)),o=d}zA!==0&&zA!==5||ml(A),Or!==0&&(Or=0)}function ab(A,n){for(var a=A.suspendedLanes,o=A.pingedLanes,d=A.expirationTimes,p=A.pendingLanes&-62914561;0<p;){var y=31-De(p),S=1<<y,_=d[y];_===-1?((S&a)===0||(S&o)!==0)&&(d[y]=je(S,n)):_<=n&&(A.expiredLanes|=S),p&=~S}if(n=hA,a=Pe,a=MA(A,A===n?a:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o=A.callbackNode,a===0||A===n&&(sA===2||sA===9)||A.cancelPendingCommit!==null)return o!==null&&o!==null&&ln(o),A.callbackNode=null,A.callbackPriority=0;if((a&3)===0||VA(A,a)){if(n=a&-a,n===A.callbackPriority)return n;switch(o!==null&&ln(o),Rs(a)){case 2:case 8:a=K;break;case 32:a=J;break;case 268435456:a=pe;break;default:a=J}return o=sb.bind(null,A),a=ct(a,o),A.callbackPriority=n,A.callbackNode=a,n}return o!==null&&o!==null&&ln(o),A.callbackPriority=2,A.callbackNode=null,2}function sb(A,n){if(zA!==0&&zA!==5)return A.callbackNode=null,A.callbackPriority=0,null;var a=A.callbackNode;if(Pc()&&A.callbackNode!==a)return null;var o=Pe;return o=MA(A,A===hA?o:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),o===0?null:(Kv(A,o,n),ab(A,XA()),A.callbackNode!=null&&A.callbackNode===a?sb.bind(null,A):null)}function lb(A,n){if(Pc())return null;Kv(A,n,!0)}function PO(){rR(function(){(rA&6)!==0?ct(re,zO):ib()})}function xg(){if(Or===0){var A=ca;A===0&&(A=TA,TA<<=1,(TA&261888)===0&&(TA=256)),Or=A}return Or}function ob(A){return A==null||typeof A=="symbol"||typeof A=="boolean"?null:typeof A=="function"?A:tc(""+A)}function cb(A,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,A.id&&a.setAttribute("form",A.id),n.parentNode.insertBefore(a,n),A=new FormData(A),a.parentNode.removeChild(a),A}function YO(A,n,a,o,d){if(n==="submit"&&a&&a.stateNode===d){var p=ob((d[OA]||null).action),y=o.submitter;y&&(n=(n=y[OA]||null)?ob(n.formAction):y.getAttribute("formAction"),n!==null&&(p=n,y=null));var S=new ac("action","action",null,o,d);A.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Or!==0){var _=y?cb(d,y):new FormData(d);zh(a,{pending:!0,data:_,method:d.method,action:p},null,_)}}else typeof p=="function"&&(S.preventDefault(),_=y?cb(d,y):new FormData(d),zh(a,{pending:!0,data:_,method:d.method,action:p},p,_))},currentTarget:d}]})}}for(var Sg=0;Sg<lh.length;Sg++){var Qg=lh[Sg],XO=Qg.toLowerCase(),qO=Qg[0].toUpperCase()+Qg.slice(1);un(XO,"on"+qO)}un(jy,"onAnimationEnd"),un(Ky,"onAnimationIteration"),un(Vy,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(uO,"onTransitionRun"),un(fO,"onTransitionStart"),un(dO,"onTransitionCancel"),un(Gy,"onTransitionEnd"),Ji("onMouseEnter",["mouseout","mouseover"]),Ji("onMouseLeave",["mouseout","mouseover"]),Ji("onPointerEnter",["pointerout","pointerover"]),Ji("onPointerLeave",["pointerout","pointerover"]),ni("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ni("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ni("onBeforeInput",["compositionend","keypress","textInput","paste"]),ni("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ni("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ni("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bl="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(" "),JO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bl));function ub(A,n){n=(n&4)!==0;for(var a=0;a<A.length;a++){var o=A[a],d=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var y=o.length-1;0<=y;y--){var S=o[y],_=S.instance,X=S.currentTarget;if(S=S.listener,_!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=X;try{p(d)}catch(ne){oc(ne)}d.currentTarget=null,p=_}else for(y=0;y<o.length;y++){if(S=o[y],_=S.instance,X=S.currentTarget,S=S.listener,_!==p&&d.isPropagationStopped())break e;p=S,d.currentTarget=X;try{p(d)}catch(ne){oc(ne)}d.currentTarget=null,p=_}}}}function Ve(A,n){var a=n[Wo];a===void 0&&(a=n[Wo]=new Set);var o=A+"__bubble";a.has(o)||(fb(n,A,2,!1),a.add(o))}function Ug(A,n,a){var o=0;n&&(o|=4),fb(a,A,o,n)}var qc="_reactListening"+Math.random().toString(36).slice(2);function Fg(A){if(!A[qc]){A[qc]=!0,iy.forEach(function(a){a!=="selectionchange"&&(JO.has(a)||Ug(a,!1,A),Ug(a,!0,A))});var n=A.nodeType===9?A:A.ownerDocument;n===null||n[qc]||(n[qc]=!0,Ug("selectionchange",!1,n))}}function fb(A,n,a,o){switch(jb(n)){case 2:var d=bR;break;case 8:d=xR;break;default:d=Gg}a=d.bind(null,n,a,A),d=void 0,!qd||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(d=!0),o?d!==void 0?A.addEventListener(n,a,{capture:!0,passive:d}):A.addEventListener(n,a,!0):d!==void 0?A.addEventListener(n,a,{passive:d}):A.addEventListener(n,a,!1)}function Tg(A,n,a,o,d){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var S=o.stateNode.containerInfo;if(S===d)break;if(y===4)for(y=o.return;y!==null;){var _=y.tag;if((_===3||_===4)&&y.stateNode.containerInfo===d)return;y=y.return}for(;S!==null;){if(y=Yi(S),y===null)return;if(_=y.tag,_===5||_===6||_===26||_===27){o=p=y;continue e}S=S.parentNode}}o=o.return}my(function(){var X=p,ne=Yd(a),ae=[];e:{var Z=zy.get(A);if(Z!==void 0){var $=ac,Ce=A;switch(A){case"keypress":if(rc(a)===0)break e;case"keydown":case"keyup":$=VM;break;case"focusin":Ce="focus",$=$d;break;case"focusout":Ce="blur",$=$d;break;case"beforeblur":case"afterblur":$=$d;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=NM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=PM;break;case jy:case Ky:case Vy:$=HM;break;case Gy:$=XM;break;case"scroll":case"scrollend":$=FM;break;case"wheel":$=JM;break;case"copy":case"cut":case"paste":$=OM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=Ey;break;case"toggle":case"beforetoggle":$=WM}var Se=(n&4)!==0,fA=!Se&&(A==="scroll"||A==="scrollend"),V=Se?Z!==null?Z+"Capture":null:Z;Se=[];for(var D=X,Y;D!==null;){var ie=D;if(Y=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||Y===null||V===null||(ie=ks(D,V),ie!=null&&Se.push(wl(D,ie,Y))),fA)break;D=D.return}0<Se.length&&(Z=new $(Z,Ce,null,a,ne),ae.push({event:Z,listeners:Se}))}}if((n&7)===0){e:{if(Z=A==="mouseover"||A==="pointerover",$=A==="mouseout"||A==="pointerout",Z&&a!==Pd&&(Ce=a.relatedTarget||a.fromElement)&&(Yi(Ce)||Ce[Mn]))break e;if(($||Z)&&(Z=ne.window===ne?ne:(Z=ne.ownerDocument)?Z.defaultView||Z.parentWindow:window,$?(Ce=a.relatedTarget||a.toElement,$=X,Ce=Ce?Yi(Ce):null,Ce!==null&&(fA=l(Ce),Se=Ce.tag,Ce!==fA||Se!==5&&Se!==27&&Se!==6)&&(Ce=null)):($=null,Ce=X),$!==Ce)){if(Se=Cy,ie="onMouseLeave",V="onMouseEnter",D="mouse",(A==="pointerout"||A==="pointerover")&&(Se=Ey,ie="onPointerLeave",V="onPointerEnter",D="pointer"),fA=$==null?Z:Ds($),Y=Ce==null?Z:Ds(Ce),Z=new Se(ie,D+"leave",$,a,ne),Z.target=fA,Z.relatedTarget=Y,ie=null,Yi(ne)===X&&(Se=new Se(V,D+"enter",Ce,a,ne),Se.target=Y,Se.relatedTarget=fA,ie=Se),fA=ie,$&&Ce)A:{for(Se=ZO,V=$,D=Ce,Y=0,ie=V;ie;ie=Se(ie))Y++;ie=0;for(var xe=D;xe;xe=Se(xe))ie++;for(;0<Y-ie;)V=Se(V),Y--;for(;0<ie-Y;)D=Se(D),ie--;for(;Y--;){if(V===D||D!==null&&V===D.alternate){Se=V;break A}V=Se(V),D=Se(D)}Se=null}else Se=null;$!==null&&db(ae,Z,$,Se,!1),Ce!==null&&fA!==null&&db(ae,fA,Ce,Se,!0)}}e:{if(Z=X?Ds(X):window,$=Z.nodeName&&Z.nodeName.toLowerCase(),$==="select"||$==="input"&&Z.type==="file")var $e=Ty;else if(Uy(Z))if(Ny)$e=lO;else{$e=aO;var ve=iO}else $=Z.nodeName,!$||$.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?X&&zd(X.elementType)&&($e=Ty):$e=sO;if($e&&($e=$e(A,X))){Fy(ae,$e,a,ne);break e}ve&&ve(A,Z,X),A==="focusout"&&X&&Z.type==="number"&&X.memoizedProps.value!=null&&Gd(Z,"number",Z.value)}switch(ve=X?Ds(X):window,A){case"focusin":(Uy(ve)||ve.contentEditable==="true")&&(ta=ve,ih=X,Xs=null);break;case"focusout":Xs=ih=ta=null;break;case"mousedown":ah=!0;break;case"contextmenu":case"mouseup":case"dragend":ah=!1,Dy(ae,a,ne);break;case"selectionchange":if(cO)break;case"keydown":case"keyup":Dy(ae,a,ne)}var Oe;if(Ah)e:{switch(A){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else Aa?Sy(A,a)&&(Ye="onCompositionEnd"):A==="keydown"&&a.keyCode===229&&(Ye="onCompositionStart");Ye&&(vy&&a.locale!=="ko"&&(Aa||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&Aa&&(Oe=By()):(Cr=ne,Jd="value"in Cr?Cr.value:Cr.textContent,Aa=!0)),ve=Jc(X,Ye),0<ve.length&&(Ye=new yy(Ye,A,null,a,ne),ae.push({event:Ye,listeners:ve}),Oe?Ye.data=Oe:(Oe=Qy(a),Oe!==null&&(Ye.data=Oe)))),(Oe=eO?AO(A,a):tO(A,a))&&(Ye=Jc(X,"onBeforeInput"),0<Ye.length&&(ve=new yy("onBeforeInput","beforeinput",null,a,ne),ae.push({event:ve,listeners:Ye}),ve.data=Oe)),YO(ae,A,X,a,ne)}ub(ae,n)})}function wl(A,n,a){return{instance:A,listener:n,currentTarget:a}}function Jc(A,n){for(var a=n+"Capture",o=[];A!==null;){var d=A,p=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=ks(A,a),d!=null&&o.unshift(wl(A,d,p)),d=ks(A,n),d!=null&&o.push(wl(A,d,p))),A.tag===3)return o;A=A.return}return[]}function ZO(A){if(A===null)return null;do A=A.return;while(A&&A.tag!==5&&A.tag!==27);return A||null}function db(A,n,a,o,d){for(var p=n._reactName,y=[];a!==null&&a!==o;){var S=a,_=S.alternate,X=S.stateNode;if(S=S.tag,_!==null&&_===o)break;S!==5&&S!==26&&S!==27||X===null||(_=X,d?(X=ks(a,p),X!=null&&y.unshift(wl(a,X,_))):d||(X=ks(a,p),X!=null&&y.push(wl(a,X,_)))),a=a.return}y.length!==0&&A.push({event:n,listeners:y})}var WO=/\r\n?/g,$O=/\u0000|\uFFFD/g;function hb(A){return(typeof A=="string"?A:""+A).replace(WO,`
|
|
9
|
+
`).replace($O,"")}function gb(A,n){return n=hb(n),hb(A)===n}function uA(A,n,a,o,d,p){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Wi(A,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Wi(A,""+o);break;case"className":ec(A,"class",o);break;case"tabIndex":ec(A,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ec(A,a,o);break;case"style":gy(A,o,p);break;case"data":if(n!=="object"){ec(A,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){A.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=tc(""+o),A.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){A.setAttribute(a,"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 p=="function"&&(a==="formAction"?(n!=="input"&&uA(A,n,"name",d.name,d,null),uA(A,n,"formEncType",d.formEncType,d,null),uA(A,n,"formMethod",d.formMethod,d,null),uA(A,n,"formTarget",d.formTarget,d,null)):(uA(A,n,"encType",d.encType,d,null),uA(A,n,"method",d.method,d,null),uA(A,n,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){A.removeAttribute(a);break}o=tc(""+o),A.setAttribute(a,o);break;case"onClick":o!=null&&(A.onclick=Rn);break;case"onScroll":o!=null&&Ve("scroll",A);break;case"onScrollEnd":o!=null&&Ve("scrollend",A);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"multiple":A.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":A.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){A.removeAttribute("xlink:href");break}a=tc(""+o),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""+o):A.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,""):A.removeAttribute(a);break;case"capture":case"download":o===!0?A.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?A.setAttribute(a,o):A.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?A.setAttribute(a,o):A.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?A.removeAttribute(a):A.setAttribute(a,o);break;case"popover":Ve("beforetoggle",A),Ve("toggle",A),$o(A,"popover",o);break;case"xlinkActuate":On(A,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":On(A,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":On(A,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":On(A,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":On(A,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":On(A,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":On(A,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":On(A,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":On(A,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":$o(A,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=QM.get(a)||a,$o(A,a,o))}}function Ng(A,n,a,o,d,p){switch(a){case"style":gy(A,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(d.children!=null)throw Error(i(60));A.innerHTML=a}}break;case"children":typeof o=="string"?Wi(A,o):(typeof o=="number"||typeof o=="bigint")&&Wi(A,""+o);break;case"onScroll":o!=null&&Ve("scroll",A);break;case"onScrollEnd":o!=null&&Ve("scrollend",A);break;case"onClick":o!=null&&(A.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ay.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(d=a.endsWith("Capture"),n=a.slice(2,d?a.length-7:void 0),p=A[OA]||null,p=p!=null?p[a]:null,typeof p=="function"&&A.removeEventListener(n,p,d),typeof o=="function")){typeof p!="function"&&p!==null&&(a in A?A[a]=null:A.hasAttribute(a)&&A.removeAttribute(a)),A.addEventListener(n,o,d);break e}a in A?A[a]=o:o===!0?A.setAttribute(a,""):$o(A,a,o)}}}function nt(A,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",A),Ve("load",A);var o=!1,d=!1,p;for(p in a)if(a.hasOwnProperty(p)){var y=a[p];if(y!=null)switch(p){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:uA(A,n,p,y,a,null)}}d&&uA(A,n,"srcSet",a.srcSet,a,null),o&&uA(A,n,"src",a.src,a,null);return;case"input":Ve("invalid",A);var S=p=y=d=null,_=null,X=null;for(o in a)if(a.hasOwnProperty(o)){var ne=a[o];if(ne!=null)switch(o){case"name":d=ne;break;case"type":y=ne;break;case"checked":_=ne;break;case"defaultChecked":X=ne;break;case"value":p=ne;break;case"defaultValue":S=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,n));break;default:uA(A,n,o,ne,a,null)}}uy(A,p,S,_,X,y,d,!1);return;case"select":Ve("invalid",A),o=y=p=null;for(d in a)if(a.hasOwnProperty(d)&&(S=a[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":y=S;break;case"multiple":o=S;default:uA(A,n,d,S,a,null)}n=p,a=y,A.multiple=!!o,n!=null?Zi(A,!!o,n,!1):a!=null&&Zi(A,!!o,a,!0);return;case"textarea":Ve("invalid",A),p=d=o=null;for(y in a)if(a.hasOwnProperty(y)&&(S=a[y],S!=null))switch(y){case"value":o=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:uA(A,n,y,S,a,null)}dy(A,o,d,p);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(o=a[_],o!=null))switch(_){case"selected":A.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:uA(A,n,_,o,a,null)}return;case"dialog":Ve("beforetoggle",A),Ve("toggle",A),Ve("cancel",A),Ve("close",A);break;case"iframe":case"object":Ve("load",A);break;case"video":case"audio":for(o=0;o<Bl.length;o++)Ve(Bl[o],A);break;case"image":Ve("error",A),Ve("load",A);break;case"details":Ve("toggle",A);break;case"embed":case"source":case"link":Ve("error",A),Ve("load",A);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in a)if(a.hasOwnProperty(X)&&(o=a[X],o!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:uA(A,n,X,o,a,null)}return;default:if(zd(n)){for(ne in a)a.hasOwnProperty(ne)&&(o=a[ne],o!==void 0&&Ng(A,n,ne,o,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(o=a[S],o!=null&&uA(A,n,S,o,a,null))}function eR(A,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,y=null,S=null,_=null,X=null,ne=null;for($ in a){var ae=a[$];if(a.hasOwnProperty($)&&ae!=null)switch($){case"checked":break;case"value":break;case"defaultValue":_=ae;default:o.hasOwnProperty($)||uA(A,n,$,null,o,ae)}}for(var Z in o){var $=o[Z];if(ae=a[Z],o.hasOwnProperty(Z)&&($!=null||ae!=null))switch(Z){case"type":p=$;break;case"name":d=$;break;case"checked":X=$;break;case"defaultChecked":ne=$;break;case"value":y=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,n));break;default:$!==ae&&uA(A,n,Z,$,o,ae)}}Vd(A,y,S,_,X,ne,p,d);return;case"select":$=y=S=Z=null;for(p in a)if(_=a[p],a.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":$=_;default:o.hasOwnProperty(p)||uA(A,n,p,null,o,_)}for(d in o)if(p=o[d],_=a[d],o.hasOwnProperty(d)&&(p!=null||_!=null))switch(d){case"value":Z=p;break;case"defaultValue":S=p;break;case"multiple":y=p;default:p!==_&&uA(A,n,d,p,o,_)}n=S,a=y,o=$,Z!=null?Zi(A,!!a,Z,!1):!!o!=!!a&&(n!=null?Zi(A,!!a,n,!0):Zi(A,!!a,a?[]:"",!1));return;case"textarea":$=Z=null;for(S in a)if(d=a[S],a.hasOwnProperty(S)&&d!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:uA(A,n,S,null,o,d)}for(y in o)if(d=o[y],p=a[y],o.hasOwnProperty(y)&&(d!=null||p!=null))switch(y){case"value":Z=d;break;case"defaultValue":$=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==p&&uA(A,n,y,d,o,p)}fy(A,Z,$);return;case"option":for(var Ce in a)if(Z=a[Ce],a.hasOwnProperty(Ce)&&Z!=null&&!o.hasOwnProperty(Ce))switch(Ce){case"selected":A.selected=!1;break;default:uA(A,n,Ce,null,o,Z)}for(_ in o)if(Z=o[_],$=a[_],o.hasOwnProperty(_)&&Z!==$&&(Z!=null||$!=null))switch(_){case"selected":A.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:uA(A,n,_,Z,o,$)}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 Se in a)Z=a[Se],a.hasOwnProperty(Se)&&Z!=null&&!o.hasOwnProperty(Se)&&uA(A,n,Se,null,o,Z);for(X in o)if(Z=o[X],$=a[X],o.hasOwnProperty(X)&&Z!==$&&(Z!=null||$!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,n));break;default:uA(A,n,X,Z,o,$)}return;default:if(zd(n)){for(var fA in a)Z=a[fA],a.hasOwnProperty(fA)&&Z!==void 0&&!o.hasOwnProperty(fA)&&Ng(A,n,fA,void 0,o,Z);for(ne in o)Z=o[ne],$=a[ne],!o.hasOwnProperty(ne)||Z===$||Z===void 0&&$===void 0||Ng(A,n,ne,Z,o,$);return}}for(var V in a)Z=a[V],a.hasOwnProperty(V)&&Z!=null&&!o.hasOwnProperty(V)&&uA(A,n,V,null,o,Z);for(ae in o)Z=o[ae],$=a[ae],!o.hasOwnProperty(ae)||Z===$||Z==null&&$==null||uA(A,n,ae,Z,o,$)}function pb(A){switch(A){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AR(){if(typeof performance.getEntriesByType=="function"){for(var A=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var d=a[o],p=d.transferSize,y=d.initiatorType,S=d.duration;if(p&&S&&pb(y)){for(y=0,S=d.responseEnd,o+=1;o<a.length;o++){var _=a[o],X=_.startTime;if(X>S)break;var ne=_.transferSize,ae=_.initiatorType;ne&&pb(ae)&&(_=_.responseEnd,y+=ne*(_<S?1:(S-X)/(_-X)))}if(--o,n+=8*(p+y)/(d.duration/1e3),A++,10<A)break}}if(0<A)return n/A/1e6}return navigator.connection&&(A=navigator.connection.downlink,typeof A=="number")?A:5}var Ig=null,_g=null;function Zc(A){return A.nodeType===9?A:A.ownerDocument}function mb(A){switch(A){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bb(A,n){if(A===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return A===1&&n==="foreignObject"?0:A}function Hg(A,n){return A==="textarea"||A==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Mg=null;function tR(){var A=window.event;return A&&A.type==="popstate"?A===Mg?!1:(Mg=A,!0):(Mg=null,!1)}var wb=typeof setTimeout=="function"?setTimeout:void 0,nR=typeof clearTimeout=="function"?clearTimeout:void 0,Cb=typeof Promise=="function"?Promise:void 0,rR=typeof queueMicrotask=="function"?queueMicrotask:typeof Cb<"u"?function(A){return Cb.resolve(null).then(A).catch(iR)}:wb;function iR(A){setTimeout(function(){throw A})}function Rr(A){return A==="head"}function yb(A,n){var a=n,o=0;do{var d=a.nextSibling;if(A.removeChild(a),d&&d.nodeType===8)if(a=d.data,a==="/$"||a==="/&"){if(o===0){A.removeChild(d),Fa(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Cl(A.ownerDocument.documentElement);else if(a==="head"){a=A.ownerDocument.head,Cl(a);for(var p=a.firstChild;p;){var y=p.nextSibling,S=p.nodeName;p[Ls]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=y}}else a==="body"&&Cl(A.ownerDocument.body);a=d}while(a);Fa(n)}function Eb(A,n){var a=A;A=0;do{var o=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(A===0)break;A--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||A++;a=o}while(a)}function Og(A){var n=A.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Og(a),jd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}A.removeChild(a)}}function aR(A,n,a,o){for(;A.nodeType===1;){var d=a;if(A.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(A.nodeName!=="INPUT"||A.type!=="hidden"))break}else if(o){if(!A[Ls])switch(n){case"meta":if(!A.hasAttribute("itemprop"))break;return A;case"link":if(p=A.getAttribute("rel"),p==="stylesheet"&&A.hasAttribute("data-precedence"))break;if(p!==d.rel||A.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||A.getAttribute("title")!==(d.title==null?null:d.title))break;return A;case"style":if(A.hasAttribute("data-precedence"))break;return A;case"script":if(p=A.getAttribute("src"),(p!==(d.src==null?null:d.src)||A.getAttribute("type")!==(d.type==null?null:d.type)||A.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&A.hasAttribute("async")&&!A.hasAttribute("itemprop"))break;return A;default:return A}}else if(n==="input"&&A.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&A.getAttribute("name")===p)return A}else return A;if(A=An(A.nextSibling),A===null)break}return null}function sR(A,n,a){if(n==="")return null;for(;A.nodeType!==3;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!a||(A=An(A.nextSibling),A===null))return null;return A}function vb(A,n){for(;A.nodeType!==8;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!n||(A=An(A.nextSibling),A===null))return null;return A}function Rg(A){return A.data==="$?"||A.data==="$~"}function Lg(A){return A.data==="$!"||A.data==="$?"&&A.ownerDocument.readyState!=="loading"}function lR(A,n){var a=A.ownerDocument;if(A.data==="$~")A._reactRetry=n;else if(A.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),A._reactRetry=o}}function An(A){for(;A!=null;A=A.nextSibling){var n=A.nodeType;if(n===1||n===3)break;if(n===8){if(n=A.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return A}var Dg=null;function bb(A){A=A.nextSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="/$"||a==="/&"){if(n===0)return An(A.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}A=A.nextSibling}return null}function xb(A){A=A.previousSibling;for(var n=0;A;){if(A.nodeType===8){var a=A.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return A;n--}else a!=="/$"&&a!=="/&"||n++}A=A.previousSibling}return null}function Sb(A,n,a){switch(n=Zc(a),A){case"html":if(A=n.documentElement,!A)throw Error(i(452));return A;case"head":if(A=n.head,!A)throw Error(i(453));return A;case"body":if(A=n.body,!A)throw Error(i(454));return A;default:throw Error(i(451))}}function Cl(A){for(var n=A.attributes;n.length;)A.removeAttributeNode(n[0]);jd(A)}var tn=new Map,Qb=new Set;function Wc(A){return typeof A.getRootNode=="function"?A.getRootNode():A.nodeType===9?A:A.ownerDocument}var $n=q.d;q.d={f:oR,r:cR,D:uR,C:fR,L:dR,m:hR,X:pR,S:gR,M:mR};function oR(){var A=$n.f(),n=Vc();return A||n}function cR(A){var n=Xi(A);n!==null&&n.tag===5&&n.type==="form"?GE(n):$n.r(A)}var Sa=typeof document>"u"?null:document;function Ub(A,n,a){var o=Sa;if(o&&typeof n=="string"&&n){var d=Xt(n);d='link[rel="'+A+'"][href="'+d+'"]',typeof a=="string"&&(d+='[crossorigin="'+a+'"]'),Qb.has(d)||(Qb.add(d),A={rel:A,crossOrigin:a,href:n},o.querySelector(d)===null&&(n=o.createElement("link"),nt(n,"link",A),qA(n),o.head.appendChild(n)))}}function uR(A){$n.D(A),Ub("dns-prefetch",A,null)}function fR(A,n){$n.C(A,n),Ub("preconnect",A,n)}function dR(A,n,a){$n.L(A,n,a);var o=Sa;if(o&&A&&n){var d='link[rel="preload"][as="'+Xt(n)+'"]';n==="image"&&a&&a.imageSrcSet?(d+='[imagesrcset="'+Xt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(d+='[imagesizes="'+Xt(a.imageSizes)+'"]')):d+='[href="'+Xt(A)+'"]';var p=d;switch(n){case"style":p=Qa(A);break;case"script":p=Ua(A)}tn.has(p)||(A=B({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:A,as:n},a),tn.set(p,A),o.querySelector(d)!==null||n==="style"&&o.querySelector(yl(p))||n==="script"&&o.querySelector(El(p))||(n=o.createElement("link"),nt(n,"link",A),qA(n),o.head.appendChild(n)))}}function hR(A,n){$n.m(A,n);var a=Sa;if(a&&A){var o=n&&typeof n.as=="string"?n.as:"script",d='link[rel="modulepreload"][as="'+Xt(o)+'"][href="'+Xt(A)+'"]',p=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ua(A)}if(!tn.has(p)&&(A=B({rel:"modulepreload",href:A},n),tn.set(p,A),a.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(El(p)))return}o=a.createElement("link"),nt(o,"link",A),qA(o),a.head.appendChild(o)}}}function gR(A,n,a){$n.S(A,n,a);var o=Sa;if(o&&A){var d=qi(o).hoistableStyles,p=Qa(A);n=n||"default";var y=d.get(p);if(!y){var S={loading:0,preload:null};if(y=o.querySelector(yl(p)))S.loading=5;else{A=B({rel:"stylesheet",href:A,"data-precedence":n},a),(a=tn.get(p))&&kg(A,a);var _=y=o.createElement("link");qA(_),nt(_,"link",A),_._p=new Promise(function(X,ne){_.onload=X,_.onerror=ne}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,$c(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:S},d.set(p,y)}}}function pR(A,n){$n.X(A,n);var a=Sa;if(a&&A){var o=qi(a).hoistableScripts,d=Ua(A),p=o.get(d);p||(p=a.querySelector(El(d)),p||(A=B({src:A,async:!0},n),(n=tn.get(d))&&jg(A,n),p=a.createElement("script"),qA(p),nt(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function mR(A,n){$n.M(A,n);var a=Sa;if(a&&A){var o=qi(a).hoistableScripts,d=Ua(A),p=o.get(d);p||(p=a.querySelector(El(d)),p||(A=B({src:A,async:!0,type:"module"},n),(n=tn.get(d))&&jg(A,n),p=a.createElement("script"),qA(p),nt(p,"link",A),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(d,p))}}function Fb(A,n,a,o){var d=(d=fe.current)?Wc(d):null;if(!d)throw Error(i(446));switch(A){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Qa(a.href),a=qi(d).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){A=Qa(a.href);var p=qi(d).hoistableStyles,y=p.get(A);if(y||(d=d.ownerDocument||d,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(A,y),(p=d.querySelector(yl(A)))&&!p._p&&(y.instance=p,y.state.loading=5),tn.has(A)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},tn.set(A,a),p||BR(d,A,a,y.state))),n&&o===null)throw Error(i(528,""));return y}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ua(a),a=qi(d).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,A))}}function Qa(A){return'href="'+Xt(A)+'"'}function yl(A){return'link[rel="stylesheet"]['+A+"]"}function Tb(A){return B({},A,{"data-precedence":A.precedence,precedence:null})}function BR(A,n,a,o){A.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=A.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),nt(n,"link",a),qA(n),A.head.appendChild(n))}function Ua(A){return'[src="'+Xt(A)+'"]'}function El(A){return"script[async]"+A}function Nb(A,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=A.querySelector('style[data-href~="'+Xt(a.href)+'"]');if(o)return n.instance=o,qA(o),o;var d=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(A.ownerDocument||A).createElement("style"),qA(o),nt(o,"style",d),$c(o,a.precedence,A),n.instance=o;case"stylesheet":d=Qa(a.href);var p=A.querySelector(yl(d));if(p)return n.state.loading|=4,n.instance=p,qA(p),p;o=Tb(a),(d=tn.get(d))&&kg(o,d),p=(A.ownerDocument||A).createElement("link"),qA(p);var y=p;return y._p=new Promise(function(S,_){y.onload=S,y.onerror=_}),nt(p,"link",o),n.state.loading|=4,$c(p,a.precedence,A),n.instance=p;case"script":return p=Ua(a.src),(d=A.querySelector(El(p)))?(n.instance=d,qA(d),d):(o=a,(d=tn.get(p))&&(o=B({},a),jg(o,d)),A=A.ownerDocument||A,d=A.createElement("script"),qA(d),nt(d,"link",o),A.head.appendChild(d),n.instance=d);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,$c(o,a.precedence,A));return n.instance}function $c(A,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,p=d,y=0;y<o.length;y++){var S=o[y];if(S.dataset.precedence===n)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(A,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(A,n.firstChild))}function kg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.title==null&&(A.title=n.title)}function jg(A,n){A.crossOrigin==null&&(A.crossOrigin=n.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=n.referrerPolicy),A.integrity==null&&(A.integrity=n.integrity)}var eu=null;function Ib(A,n,a){if(eu===null){var o=new Map,d=eu=new Map;d.set(a,o)}else d=eu,o=d.get(a),o||(o=new Map,d.set(a,o));if(o.has(A))return o;for(o.set(A,null),a=a.getElementsByTagName(A),d=0;d<a.length;d++){var p=a[d];if(!(p[Ls]||p[Ie]||A==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(n)||"";y=A+y;var S=o.get(y);S?S.push(p):o.set(y,[p])}}return o}function _b(A,n,a){A=A.ownerDocument||A,A.head.insertBefore(a,n==="title"?A.querySelector("head > title"):null)}function wR(A,n,a){if(a===1||n.itemProp!=null)return!1;switch(A){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return A=n.disabled,typeof n.precedence=="string"&&A==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Hb(A){return!(A.type==="stylesheet"&&(A.state.loading&3)===0)}function CR(A,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=Qa(o.href),p=n.querySelector(yl(d));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(A.count++,A=Au.bind(A),n.then(A,A)),a.state.loading|=4,a.instance=p,qA(p);return}p=n.ownerDocument||n,o=Tb(o),(d=tn.get(d))&&kg(o,d),p=p.createElement("link"),qA(p);var y=p;y._p=new Promise(function(S,_){y.onload=S,y.onerror=_}),nt(p,"link",o),a.instance=p}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(A.count++,a=Au.bind(A),n.addEventListener("load",a),n.addEventListener("error",a))}}var Kg=0;function yR(A,n){return A.stylesheets&&A.count===0&&nu(A,A.stylesheets),0<A.count||0<A.imgCount?function(a){var o=setTimeout(function(){if(A.stylesheets&&nu(A,A.stylesheets),A.unsuspend){var p=A.unsuspend;A.unsuspend=null,p()}},6e4+n);0<A.imgBytes&&Kg===0&&(Kg=62500*AR());var d=setTimeout(function(){if(A.waitingForImages=!1,A.count===0&&(A.stylesheets&&nu(A,A.stylesheets),A.unsuspend)){var p=A.unsuspend;A.unsuspend=null,p()}},(A.imgBytes>Kg?50:800)+n);return A.unsuspend=a,function(){A.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function Au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var A=this.unsuspend;this.unsuspend=null,A()}}}var tu=null;function nu(A,n){A.stylesheets=null,A.unsuspend!==null&&(A.count++,tu=new Map,n.forEach(ER,A),tu=null,Au.call(A))}function ER(A,n){if(!(n.state.loading&4)){var a=tu.get(A);if(a)var o=a.get(null);else{a=new Map,tu.set(A,a);for(var d=A.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var y=d[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}d=n.instance,y=d.getAttribute("data-precedence"),p=a.get(y)||o,p===o&&a.set(null,d),a.set(y,d),this.count++,o=Au.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),p?p.parentNode.insertBefore(d,p.nextSibling):(A=A.nodeType===9?A.head:A,A.insertBefore(d,A.firstChild)),n.state.loading|=4}}var vl={$$typeof:O,Provider:null,Consumer:null,_currentValue:Ae,_currentValue2:Ae,_threadCount:0};function vR(A,n,a,o,d,p,y,S,_){this.tag=1,this.containerInfo=A,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=Hn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hn(0),this.hiddenUpdates=Hn(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Mb(A,n,a,o,d,p,y,S,_,X,ne,ae){return A=new vR(A,n,a,y,_,X,ne,ae,S),n=1,p===!0&&(n|=24),p=_t(3,null,null,n),A.current=p,p.stateNode=A,n=yh(),n.refCount++,A.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:a,cache:n},xh(p),A}function Ob(A){return A?(A=ia,A):ia}function Rb(A,n,a,o,d,p){d=Ob(d),o.context===null?o.context=d:o.pendingContext=d,o=Sr(n),o.payload={element:a},p=p===void 0?null:p,p!==null&&(o.callback=p),a=Qr(A,o,n),a!==null&&(bt(a,A,n),Al(a,A,n))}function Lb(A,n){if(A=A.memoizedState,A!==null&&A.dehydrated!==null){var a=A.retryLane;A.retryLane=a!==0&&a<n?a:n}}function Vg(A,n){Lb(A,n),(A=A.alternate)&&Lb(A,n)}function Db(A){if(A.tag===13||A.tag===31){var n=si(A,67108864);n!==null&&bt(n,A,67108864),Vg(A,67108864)}}function kb(A){if(A.tag===13||A.tag===31){var n=Lt();n=wr(n);var a=si(A,n);a!==null&&bt(a,A,n),Vg(A,n)}}var ru=!0;function bR(A,n,a,o){var d=R.T;R.T=null;var p=q.p;try{q.p=2,Gg(A,n,a,o)}finally{q.p=p,R.T=d}}function xR(A,n,a,o){var d=R.T;R.T=null;var p=q.p;try{q.p=8,Gg(A,n,a,o)}finally{q.p=p,R.T=d}}function Gg(A,n,a,o){if(ru){var d=zg(o);if(d===null)Tg(A,n,o,iu,a),Kb(A,o);else if(QR(d,A,n,a,o))o.stopPropagation();else if(Kb(A,o),n&4&&-1<SR.indexOf(A)){for(;d!==null;){var p=Xi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=cn(p.pendingLanes);if(y!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var _=1<<31-De(y);S.entanglements[1]|=_,y&=~_}xn(p),(rA&6)===0&&(jc=XA()+500,ml(0))}}break;case 31:case 13:S=si(p,2),S!==null&&bt(S,p,2),Vc(),Vg(p,2)}if(p=zg(o),p===null&&Tg(A,n,o,iu,a),p===d)break;d=p}d!==null&&o.stopPropagation()}else Tg(A,n,o,null,a)}}function zg(A){return A=Yd(A),Pg(A)}var iu=null;function Pg(A){if(iu=null,A=Yi(A),A!==null){var n=l(A);if(n===null)A=null;else{var a=n.tag;if(a===13){if(A=c(n),A!==null)return A;A=null}else if(a===31){if(A=u(n),A!==null)return A;A=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;A=null}else n!==A&&(A=null)}}return iu=A,null}function jb(A){switch(A){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(zi()){case re:return 2;case K:return 8;case J:case ce:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Yg=!1,Lr=null,Dr=null,kr=null,bl=new Map,xl=new Map,jr=[],SR="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 Kb(A,n){switch(A){case"focusin":case"focusout":Lr=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":kr=null;break;case"pointerover":case"pointerout":bl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(n.pointerId)}}function Sl(A,n,a,o,d,p){return A===null||A.nativeEvent!==p?(A={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:p,targetContainers:[d]},n!==null&&(n=Xi(n),n!==null&&Db(n)),A):(A.eventSystemFlags|=o,n=A.targetContainers,d!==null&&n.indexOf(d)===-1&&n.push(d),A)}function QR(A,n,a,o,d){switch(n){case"focusin":return Lr=Sl(Lr,A,n,a,o,d),!0;case"dragenter":return Dr=Sl(Dr,A,n,a,o,d),!0;case"mouseover":return kr=Sl(kr,A,n,a,o,d),!0;case"pointerover":var p=d.pointerId;return bl.set(p,Sl(bl.get(p)||null,A,n,a,o,d)),!0;case"gotpointercapture":return p=d.pointerId,xl.set(p,Sl(xl.get(p)||null,A,n,a,o,d)),!0}return!1}function Vb(A){var n=Yi(A.target);if(n!==null){var a=l(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){A.blockedOn=n,Pi(A.priority,function(){kb(a)});return}}else if(n===31){if(n=u(a),n!==null){A.blockedOn=n,Pi(A.priority,function(){kb(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){A.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}A.blockedOn=null}function au(A){if(A.blockedOn!==null)return!1;for(var n=A.targetContainers;0<n.length;){var a=zg(A.nativeEvent);if(a===null){a=A.nativeEvent;var o=new a.constructor(a.type,a);Pd=o,a.target.dispatchEvent(o),Pd=null}else return n=Xi(a),n!==null&&Db(n),A.blockedOn=a,!1;n.shift()}return!0}function Gb(A,n,a){au(A)&&a.delete(n)}function UR(){Yg=!1,Lr!==null&&au(Lr)&&(Lr=null),Dr!==null&&au(Dr)&&(Dr=null),kr!==null&&au(kr)&&(kr=null),bl.forEach(Gb),xl.forEach(Gb)}function su(A,n){A.blockedOn===n&&(A.blockedOn=null,Yg||(Yg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UR)))}var lu=null;function zb(A){lu!==A&&(lu=A,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lu===A&&(lu=null);for(var n=0;n<A.length;n+=3){var a=A[n],o=A[n+1],d=A[n+2];if(typeof o!="function"){if(Pg(o||a)===null)continue;break}var p=Xi(a);p!==null&&(A.splice(n,3),n-=3,zh(p,{pending:!0,data:d,method:a.method,action:o},o,d))}}))}function Fa(A){function n(_){return su(_,A)}Lr!==null&&su(Lr,A),Dr!==null&&su(Dr,A),kr!==null&&su(kr,A),bl.forEach(n),xl.forEach(n);for(var a=0;a<jr.length;a++){var o=jr[a];o.blockedOn===A&&(o.blockedOn=null)}for(;0<jr.length&&(a=jr[0],a.blockedOn===null);)Vb(a),a.blockedOn===null&&jr.shift();if(a=(A.ownerDocument||A).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var d=a[o],p=a[o+1],y=d[OA]||null;if(typeof p=="function")y||zb(a);else if(y){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,y=p[OA]||null)S=y.formAction;else if(Pg(d)!==null)continue}else S=y.action;typeof S=="function"?a[o+1]=S:(a.splice(o,3),o-=3),zb(a)}}}function Pb(){function A(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return d=y})},focusReset:"manual",scroll:"manual"})}function n(){d!==null&&(d(),d=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",A),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",A),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),d!==null&&(d(),d=null)}}}function Xg(A){this._internalRoot=A}ou.prototype.render=Xg.prototype.render=function(A){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,o=Lt();Rb(a,o,A,n,null,null)},ou.prototype.unmount=Xg.prototype.unmount=function(){var A=this._internalRoot;if(A!==null){this._internalRoot=null;var n=A.containerInfo;Rb(A.current,2,null,A,null,null),Vc(),n[Mn]=null}};function ou(A){this._internalRoot=A}ou.prototype.unstable_scheduleHydration=function(A){if(A){var n=Zo();A={blockedOn:null,target:A,priority:n};for(var a=0;a<jr.length&&n!==0&&n<jr[a].priority;a++);jr.splice(a,0,A),a===0&&Vb(A)}};var Yb=t.version;if(Yb!=="19.2.0")throw Error(i(527,Yb,"19.2.0"));q.findDOMNode=function(A){var n=A._reactInternals;if(n===void 0)throw typeof A.render=="function"?Error(i(188)):(A=Object.keys(A).join(","),Error(i(268,A)));return A=h(n),A=A!==null?m(A):null,A=A===null?null:A.stateNode,A};var FR={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{We=cu.inject(FR),ze=cu}catch{}}return Ia.createRoot=function(A,n){if(!s(A))throw Error(i(299));var a=!1,o="",d=ev,p=Av,y=tv;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=Mb(A,1,!1,null,null,a,o,null,d,p,y,Pb),A[Mn]=n.current,Fg(A),new Xg(n)},Ia.hydrateRoot=function(A,n,a){if(!s(A))throw Error(i(299));var o=!1,d="",p=ev,y=Av,S=tv,_=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),n=Mb(A,1,!0,n,a??null,o,d,_,p,y,S,Pb),n.context=Ob(null),a=n.current,o=Lt(),o=wr(o),d=Sr(o),d.callback=null,Qr(a,d,o),a=o,n.current.lanes=a,Nt(n,a),xn(n),A[Mn]=n.current,Fg(A),new ou(n)},Ia.version="19.2.0",Ia}var ap;function n1(){if(ap)return gu.exports;ap=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch{}}return e(),gu.exports=t1(),gu.exports}var r1=n1();function sp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wu(...e){return t=>{let r=!1;const i=e.map(s=>{const l=sp(s,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():sp(e[s],null)}}}}function Sn(...e){return x.useCallback(wu(...e),e)}function i1(e){const t=a1(e),r=x.forwardRef((i,s)=>{const{children:l,...c}=i,u=x.Children.toArray(l),f=u.find(l1);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}function a1(e){const t=x.forwardRef((r,i)=>{const{children:s,...l}=r;if(x.isValidElement(s)){const c=c1(s),u=o1(l,s.props);return s.type!==x.Fragment&&(u.ref=i?wu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s1=Symbol("radix.slottable");function l1(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s1}function o1(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function c1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var u1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],er=u1.reduce((e,t)=>{const r=i1(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),Ar=globalThis?.document?x.useLayoutEffect:()=>{};function f1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var Ci=e=>{const{present:t,children:r}=e,i=d1(t),s=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),l=Sn(i.ref,h1(s));return typeof r=="function"||i.isPresent?x.cloneElement(s,{ref:l}):null};Ci.displayName="Presence";function d1(e){const[t,r]=x.useState(),i=x.useRef(null),s=x.useRef(e),l=x.useRef("none"),c=e?"mounted":"unmounted",[u,f]=f1(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Ul(i.current);l.current=u==="mounted"?h:"none"},[u]),Ar(()=>{const h=i.current,m=s.current;if(m!==e){const C=l.current,w=Ul(h);e?f("MOUNT"):w==="none"||h?.display==="none"?f("UNMOUNT"):f(m&&C!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,f]),Ar(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,B=w=>{const b=Ul(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&b&&(f("ANIMATION_END"),!s.current)){const U=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=U)})}},C=w=>{w.target===t&&(l.current=Ul(i.current))};return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",B),t.addEventListener("animationend",B),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",B),t.removeEventListener("animationend",B)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Ul(e){return e?.animationName||"none"}function h1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lp(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c),f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...v}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>v,Object.values(v));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,v=x.useContext(w);if(v)return v;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,g1(s,...t)]}function g1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}function tr(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>t.current?.(...r),[])}var p1=x.createContext(void 0);function m1(e){const t=x.useContext(p1);return e||t||"ltr"}function B1(e,[t,r]){return Math.min(r,Math.max(t,e))}function Qn(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),r===!1||!s.defaultPrevented)return t?.(s)}}function w1(e,t){return x.useReducer((r,i)=>t[r][i]??r,e)}var Cu="ScrollArea",[op]=lp(Cu),[C1,Dt]=op(Cu),cp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:l=600,...c}=e,[u,f]=x.useState(null),[h,m]=x.useState(null),[B,C]=x.useState(null),[w,v]=x.useState(null),[b,U]=x.useState(null),[Q,T]=x.useState(0),[O,G]=x.useState(0),[k,F]=x.useState(!1),[H,L]=x.useState(!1),M=Sn(t,ee=>f(ee)),W=m1(s);return g.jsx(C1,{scope:r,type:i,dir:W,scrollHideDelay:l,scrollArea:u,viewport:h,onViewportChange:m,content:B,onContentChange:C,scrollbarX:w,onScrollbarXChange:v,scrollbarXEnabled:k,onScrollbarXEnabledChange:F,scrollbarY:b,onScrollbarYChange:U,scrollbarYEnabled:H,onScrollbarYEnabledChange:L,onCornerWidthChange:T,onCornerHeightChange:G,children:g.jsx(er.div,{dir:W,...c,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":Q+"px","--radix-scroll-area-corner-height":O+"px",...e.style}})})});cp.displayName=Cu;var up="ScrollAreaViewport",fp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:i,nonce:s,...l}=e,c=Dt(up,r),u=x.useRef(null),f=Sn(t,u,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(er.div,{"data-radix-scroll-area-viewport":"",...l,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});fp.displayName=up;var hn="ScrollAreaScrollbar",yu=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(hn,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=s,u=e.orientation==="horizontal";return x.useEffect(()=>(u?l(!0):c(!0),()=>{u?l(!1):c(!1)}),[u,l,c]),s.type==="hover"?g.jsx(y1,{...i,ref:t,forceMount:r}):s.type==="scroll"?g.jsx(E1,{...i,ref:t,forceMount:r}):s.type==="auto"?g.jsx(dp,{...i,ref:t,forceMount:r}):s.type==="always"?g.jsx(Eu,{...i,ref:t}):null});yu.displayName=hn;var y1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(hn,e.__scopeScrollArea),[l,c]=x.useState(!1);return x.useEffect(()=>{const u=s.scrollArea;let f=0;if(u){const h=()=>{window.clearTimeout(f),c(!0)},m=()=>{f=window.setTimeout(()=>c(!1),s.scrollHideDelay)};return u.addEventListener("pointerenter",h),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),u.removeEventListener("pointerenter",h),u.removeEventListener("pointerleave",m)}}},[s.scrollArea,s.scrollHideDelay]),g.jsx(Ci,{present:r||l,children:g.jsx(dp,{"data-state":l?"visible":"hidden",...i,ref:t})})}),E1=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=Dt(hn,e.__scopeScrollArea),l=e.orientation==="horizontal",c=Il(()=>f("SCROLL_END"),100),[u,f]=w1("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(u==="idle"){const h=window.setTimeout(()=>f("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(h)}},[u,s.scrollHideDelay,f]),x.useEffect(()=>{const h=s.viewport,m=l?"scrollLeft":"scrollTop";if(h){let B=h[m];const C=()=>{const w=h[m];B!==w&&(f("SCROLL"),c()),B=w};return h.addEventListener("scroll",C),()=>h.removeEventListener("scroll",C)}},[s.viewport,l,f,c]),g.jsx(Ci,{present:r||u!=="hidden",children:g.jsx(Eu,{"data-state":u==="hidden"?"hidden":"visible",...i,ref:t,onPointerEnter:Qn(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:Qn(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),dp=x.forwardRef((e,t)=>{const r=Dt(hn,e.__scopeScrollArea),{forceMount:i,...s}=e,[l,c]=x.useState(!1),u=e.orientation==="horizontal",f=Il(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(u?h:m)}},10);return yi(r.viewport,f),yi(r.content,f),g.jsx(Ci,{present:i||l,children:g.jsx(Eu,{"data-state":l?"visible":"hidden",...s,ref:t})})}),Eu=x.forwardRef((e,t)=>{const{orientation:r="vertical",...i}=e,s=Dt(hn,e.__scopeScrollArea),l=x.useRef(null),c=x.useRef(0),[u,f]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=Bp(u.viewport,u.content),m={...i,sizes:u,onSizesChange:f,hasThumb:h>0&&h<1,onThumbChange:C=>l.current=C,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:C=>c.current=C};function B(C,w){return U1(C,c.current,u,w)}return r==="horizontal"?g.jsx(v1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollLeft,w=wp(C,u,s.dir);l.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollLeft=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollLeft=B(C,s.dir))}}):r==="vertical"?g.jsx(b1,{...m,ref:t,onThumbPositionChange:()=>{if(s.viewport&&l.current){const C=s.viewport.scrollTop,w=wp(C,u);l.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:C=>{s.viewport&&(s.viewport.scrollTop=C)},onDragScroll:C=>{s.viewport&&(s.viewport.scrollTop=B(C))}}):null}),v1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Dt(hn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Sn(t,f,l.onScrollbarXChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(gp,{"data-orientation":"horizontal",...s,ref:h,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Nl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollLeft+m.deltaX;e.onWheelScroll(C),yp(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Tl(c.paddingLeft),paddingEnd:Tl(c.paddingRight)}})}})}),b1=x.forwardRef((e,t)=>{const{sizes:r,onSizesChange:i,...s}=e,l=Dt(hn,e.__scopeScrollArea),[c,u]=x.useState(),f=x.useRef(null),h=Sn(t,f,l.onScrollbarYChange);return x.useEffect(()=>{f.current&&u(getComputedStyle(f.current))},[f]),g.jsx(gp,{"data-orientation":"vertical",...s,ref:h,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Nl(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,B)=>{if(l.viewport){const C=l.viewport.scrollTop+m.deltaY;e.onWheelScroll(C),yp(C,B)&&m.preventDefault()}},onResize:()=>{f.current&&l.viewport&&c&&i({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Tl(c.paddingTop),paddingEnd:Tl(c.paddingBottom)}})}})}),[x1,hp]=op(hn),gp=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:u,onThumbPositionChange:f,onDragScroll:h,onWheelScroll:m,onResize:B,...C}=e,w=Dt(hn,r),[v,b]=x.useState(null),U=Sn(t,M=>b(M)),Q=x.useRef(null),T=x.useRef(""),O=w.viewport,G=i.content-i.viewport,k=tr(m),F=tr(f),H=Il(B,10);function L(M){if(Q.current){const W=M.clientX-Q.current.left,ee=M.clientY-Q.current.top;h({x:W,y:ee})}}return x.useEffect(()=>{const M=W=>{const ee=W.target;v?.contains(ee)&&k(W,G)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[O,v,G,k]),x.useEffect(F,[i,F]),yi(v,H),yi(w.content,H),g.jsx(x1,{scope:r,scrollbar:v,hasThumb:s,onThumbChange:tr(l),onThumbPointerUp:tr(c),onThumbPositionChange:F,onThumbPointerDown:tr(u),children:g.jsx(er.div,{...C,ref:U,style:{position:"absolute",...C.style},onPointerDown:Qn(e.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),Q.current=v.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),L(M))}),onPointerMove:Qn(e.onPointerMove,L),onPointerUp:Qn(e.onPointerUp,M=>{const W=M.target;W.hasPointerCapture(M.pointerId)&&W.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=T.current,w.viewport&&(w.viewport.style.scrollBehavior=""),Q.current=null})})})}),Fl="ScrollAreaThumb",pp=x.forwardRef((e,t)=>{const{forceMount:r,...i}=e,s=hp(Fl,e.__scopeScrollArea);return g.jsx(Ci,{present:r||s.hasThumb,children:g.jsx(S1,{ref:t,...i})})}),S1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:i,...s}=e,l=Dt(Fl,r),c=hp(Fl,r),{onThumbPositionChange:u}=c,f=Sn(t,B=>c.onThumbChange(B)),h=x.useRef(void 0),m=Il(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const B=l.viewport;if(B){const C=()=>{if(m(),!h.current){const w=F1(B,u);h.current=w,u()}};return u(),B.addEventListener("scroll",C),()=>B.removeEventListener("scroll",C)}},[l.viewport,m,u]),g.jsx(er.div,{"data-state":c.hasThumb?"visible":"hidden",...s,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Qn(e.onPointerDownCapture,B=>{const w=B.target.getBoundingClientRect(),v=B.clientX-w.left,b=B.clientY-w.top;c.onThumbPointerDown({x:v,y:b})}),onPointerUp:Qn(e.onPointerUp,c.onThumbPointerUp)})});pp.displayName=Fl;var vu="ScrollAreaCorner",mp=x.forwardRef((e,t)=>{const r=Dt(vu,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(Q1,{...e,ref:t}):null});mp.displayName=vu;var Q1=x.forwardRef((e,t)=>{const{__scopeScrollArea:r,...i}=e,s=Dt(vu,r),[l,c]=x.useState(0),[u,f]=x.useState(0),h=!!(l&&u);return yi(s.scrollbarX,()=>{const m=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(m),f(m)}),yi(s.scrollbarY,()=>{const m=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(m),c(m)}),h?g.jsx(er.div,{...i,ref:t,style:{width:l,height:u,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Tl(e){return e?parseInt(e,10):0}function Bp(e,t){const r=e/t;return isNaN(r)?0:r}function Nl(e){const t=Bp(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*t;return Math.max(i,18)}function U1(e,t,r,i="ltr"){const s=Nl(r),l=s/2,c=t||l,u=s-c,f=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-u,m=r.content-r.viewport,B=i==="ltr"?[0,m]:[m*-1,0];return Cp([f,h],B)(e)}function wp(e,t,r="ltr"){const i=Nl(t),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-s,c=t.content-t.viewport,u=l-i,f=r==="ltr"?[0,c]:[c*-1,0],h=B1(e,f);return Cp([0,c],[0,u])(h)}function Cp(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}function yp(e,t){return e>0&&e<t}var F1=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function s(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,u=r.top!==l.top;(c||u)&&t(),r=l,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Il(e,t){const r=tr(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,t)},[r,t])}function yi(e,t){const r=tr(t);Ar(()=>{let i=0;if(e){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(e),()=>{window.cancelAnimationFrame(i),s.unobserve(e)}}},[e,r])}var Ep=cp,T1=fp,N1=mp,Vr={},_a={},bu={},Ha={},Ma={},Oa={},vp;function xu(){if(vp)return Oa;vp=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.EventEmitter=void 0;let e=class{eventListeners=new Map;on(r,i){const s=this.eventListeners.get(r)||new Set;s.add(i),this.eventListeners.set(r,s)}off(r,i){const s=this.eventListeners.get(r);s&&(s.delete(i),s.size===0&&this.eventListeners.delete(r))}emit(r,...i){const s=this.eventListeners.get(r);s&&s.forEach(l=>l(...i))}removeAllListeners(){this.eventListeners.clear()}};return Oa.EventEmitter=e,Oa}var Gr={},bp;function Ra(){return bp||(bp=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.DisconnectionReason=Gr.ConnectionStatus=void 0,Gr.ConnectionStatus={CONNECTING:"connecting",CONNECTED:"connected",NOT_CONNECTED:"not_connected"},Gr.DisconnectionReason={CLIENT_CLOSED:"client_closed",SERVER_CLOSED:"server_closed",CONNECTION_ERROR:"connection_error",AUTHENTICATION_ERROR:"authentication_error",MAX_RECONNECT_ATTEMPTS:"max_reconnect_attempts",TIMEOUT:"timeout",NETWORK_ERROR:"network_error"}),Gr}var xp;function Su(){if(xp)return Ma;xp=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.BaseConnection=void 0;const e=xu(),t=Ra();let r=class{status=t.ConnectionStatus.CONNECTING;queue=[];eventEmitter=new e.EventEmitter;disconnectionDetails=null;onErrorCallback=null;onDisconnectCallback=null;onMessageCallback=null;onOpenCallback=null;onStatusChangeCallback=null;getStatus(){return this.status}onOpen(s){this.onOpenCallback=s}onMessage(s){if(this.onMessageCallback=s,this.queue.length>0){const l=[...this.queue];this.queue.length=0,queueMicrotask(()=>{l.forEach(c=>{this.onMessageCallback?.(c)})})}}onDisconnect(s){this.onDisconnectCallback=s;const l=this.disconnectionDetails;l&&queueMicrotask(()=>{this.onDisconnectCallback?.(l)})}onError(s){this.onErrorCallback=s}on(s,l){this.eventEmitter.on(s,l)}off(s,l){this.eventEmitter.off(s,l)}emit(s,...l){this.eventEmitter.emit(s,...l)}onStatusChange(s){this.onStatusChangeCallback=s,queueMicrotask(()=>{s(this.status)})}disconnect(s){this.disconnectionDetails||(this.disconnectionDetails=s,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.onDisconnectCallback?.(s))}handleMessage(s){this.onMessageCallback?this.onMessageCallback(s):this.queue.push(s)}updateStatus(s){this.status!==s&&(this.status=s,this.onStatusChangeCallback?.(s))}};return Ma.BaseConnection=r,Ma}var Qu={},Sp;function kt(){return Sp||(Sp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=e.ConfigurationError=e.StoreError=e.MessageError=e.SessionError=e.FileError=e.AuthenticationError=e.RecordingError=e.ConnectionError=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.SynapseErrorCode=void 0,e.normalizeError=k,e.SynapseErrorCode={API:"API_ERROR",CONNECTION:"CONNECTION_ERROR",RECORDING:"RECORDING_ERROR",FILE:"FILE_ERROR",SESSION:"SESSION_ERROR",MESSAGE:"MESSAGE_ERROR",STORE:"STORE_ERROR",CONFIGURATION:"CONFIGURATION_ERROR",VALIDATION:"VALIDATION_ERROR",AUTH:"AUTH_ERROR",UNKNOWN:"UNKNOWN_ERROR"};class t extends Error{code;timestamp;cause;context;hint;displayMessage;constructor(H,L=e.SynapseErrorCode.UNKNOWN,M={}){super(H),this.name="SynapseError",this.code=L,this.timestamp=new Date,this.cause=M.cause,this.context=M.context,this.hint=M.hint,this.displayMessage=M.displayMessage||M?.hint||H,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}e.SynapseError=t;class r extends t{status;error;headers;constructor(H,L,M,W){const ee=r.makeMessage(L,M,H);super(ee,e.SynapseErrorCode.API,{cause:M,context:{status:L,hasBody:!!M},hint:L&&L>=500?"Retry the request or contact support if the issue persists.":void 0,displayMessage:H||"Something went wrong"}),this.name="APIError",this.status=L,this.error=M,this.headers=W}static makeMessage(H,L,M){const W=L instanceof Error?L.message:M;return H&&W?`HTTP ${H}: ${W}`:H?`${H} status code (no body)`:W||"(no status code or body)"}static generate(H,L,M,W){if(!H)return new i({message:M});const ee=L?.error,j=ee&&typeof ee=="object"&&!Array.isArray(ee)?ee:void 0;switch(H){case 400:return new l(M||"Bad Request",H,j,W);case 401:return new c(M||"Unauthorized",H,j,W);case 403:return new u(M||"Permission Denied",H,j,W);case 404:return new f(M||"Not Found",H,j,W);case 405:return new h(M||"Method Not Allowed",H,j,W);case 429:return new m(M||"Rate Limit Exceeded",H,j,W);case 500:return new B(M||"Internal Server Error",H,j,W);default:return new r(M||"API Error",H,j,W)}}}e.APIError=r;class i extends r{constructor({message:H}={}){super(H||"Request was aborted.",void 0,void 0,void 0),this.name="APIUserAbortError"}}e.APIUserAbortError=i;class s extends r{constructor({message:H}={}){super(H||"Request timed out.",void 0,void 0,void 0),this.name="APIConnectionTimeoutError"}}e.APIConnectionTimeoutError=s;class l extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="BadRequestError"}}e.BadRequestError=l;class c extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="UnauthorizedError"}}e.UnauthorizedError=c;class u extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="PermissionDeniedError"}}e.PermissionDeniedError=u;class f extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="NotFoundError"}}e.NotFoundError=f;class h extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="MethodNotAllowedError"}}e.MethodNotAllowedError=h;class m extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="RateLimitError"}}e.RateLimitError=m;class B extends r{constructor(H,L,M,W){super(H,L,M,W),this.name="InternalServerError"}}e.InternalServerError=B;class C extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.CONNECTION,L),this.name="ConnectionError"}}e.ConnectionError=C;class w extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.RECORDING,L),this.name="RecordingError"}}e.RecordingError=w;class v extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.AUTH,L),this.name="AuthenticationError"}}e.AuthenticationError=v;class b extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.FILE,L),this.name="FileError"}}e.FileError=b;class U extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.SESSION,L),this.name="SessionError"}}e.SessionError=U;class Q extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.MESSAGE,L),this.name="MessageError"}}e.MessageError=Q;class T extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.STORE,L),this.name="StoreError"}}e.StoreError=T;class O extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.CONFIGURATION,L),this.name="ConfigurationError"}}e.ConfigurationError=O;class G extends t{constructor(H,L={}){super(H,e.SynapseErrorCode.VALIDATION,L),this.name="ValidationError"}}e.ValidationError=G;function k(F,H,L,M={}){if(F instanceof H)return F;const W={...M,context:{...F instanceof t?F.context:void 0,...M.context},hint:M.hint??(F instanceof t?F.hint:void 0),cause:M.cause??F};if(F instanceof t)return new H(F.message,W);const ee=F instanceof Error&&F.message?F.message:L;return new H(ee,W)}})(Qu)),Qu}var Qp;function Up(){if(Qp)return Ha;Qp=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.WebSocketConnection=void 0;const e=Su(),t=Ra(),r=kt();class i extends e.BaseConnection{conversationId;socket=null;config;authenticated=!1;constructor(l){super(),this.config={...l,reconnect:l.reconnect||!0,reconnectAttempts:l.reconnectAttempts||3,reconnectDelay:l.reconnectDelay||1e3},this.conversationId=l.auth.sessionId,this.connect()}connect(){try{if(this.socket&&this.socket.readyState===WebSocket.OPEN||this.authenticated)return;this.updateStatus(t.ConnectionStatus.CONNECTING);const l=this.buildConnectionUrl();this.socket=new WebSocket(l),this.socket.onopen=this.handleOpen.bind(this),this.socket.onmessage=this.handleSocketMessage.bind(this),this.socket.onerror=this.handleError.bind(this),this.socket.onclose=this.handleClose.bind(this)}catch(l){const c=(0,r.normalizeError)(l,r.ConnectionError,"Failed to establish WebSocket connection",{context:{stage:"connect"}});this.onErrorCallback?.(c),this.disconnect({code:1001,reason:t.DisconnectionReason.CONNECTION_ERROR,message:c.message,timestamp:new Date})}}buildConnectionUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`/reloaded/ws/med-assist/session/${this.config.auth.sessionId}/`,l.toString()}handleOpen(){this.authenticated||this.socket?.readyState!==WebSocket.OPEN||this.onOpenCallback?.()}handleSocketMessage(l){try{const c=JSON.parse(l.data);this.handleMessage(c)}catch(c){const u=(0,r.normalizeError)(c,r.MessageError,"Failed to parse incoming WebSocket message",{context:{stage:"handleSocketMessage"}});this.onErrorCallback?.(u)}}handleError(l){}handleClose(l){const c=l.wasClean,u=l.code,f=l.reason;let h,m;this.authenticated=!1,!this.isConnected()&&(u===1e3?(h=t.DisconnectionReason.CLIENT_CLOSED,m="Connection closed normally"):u===1001||u===1006?(h=t.DisconnectionReason.NETWORK_ERROR,m=l.reason||"Network connection lost"):u===4001||u===1008?l.reason==="timeout"||l.reason==="Authentication timeout"?(h=t.DisconnectionReason.TIMEOUT,m="Connection timed out"):(h=t.DisconnectionReason.AUTHENTICATION_ERROR,m=l.reason||"Authentication failed"):c?(h=t.DisconnectionReason.SERVER_CLOSED,m=f||"Server closed connection"):(h=t.DisconnectionReason.CONNECTION_ERROR,m=f||"Connection closed unexpectedly"),this.disconnect({reason:h,message:m,code:u,timestamp:new Date}))}sendMessage(l){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)throw new r.ConnectionError("Cannot send message: connection not open",{context:{stage:"sendMessage",readyState:this.socket?.readyState},hint:"Ensure the WebSocket is open before sending messages."});try{this.socket.send(JSON.stringify(l))}catch(c){const u=(0,r.normalizeError)(c,r.ConnectionError,"Failed to send WebSocket message",{context:{stage:"sendMessage"}});throw this.onErrorCallback?.(u),u}}close(){this.authenticated=!1,this.socket&&(this.updateStatus(t.ConnectionStatus.NOT_CONNECTED),this.socket.close(1e3,"Client closed connection"),this.socket=null)}isConnected(){return this.socket?.readyState===WebSocket.OPEN}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED),this.authenticated=!0}}return Ha.WebSocketConnection=i,Ha}var La={},Fp;function Tp(){if(Fp)return La;Fp=1,Object.defineProperty(La,"__esModule",{value:!0}),La.SSEConnection=void 0;const e=Su(),t=Ra(),r=kt();class i extends e.BaseConnection{conversationId;config;connected=!1;activeStreamController=null;constructor(l){super(),this.config=l,this.conversationId=l.auth.sessionId,this.connect()}connect(){this.updateStatus(t.ConnectionStatus.CONNECTING),this.connected=!0,setTimeout(()=>{this.onOpenCallback?.()},0)}onOpen(l){this.onOpenCallback=l,this.connected&&setTimeout(()=>l(),0)}buildChatUrl(){const l=new URL(this.config.serverUrl);return l.pathname=`${l.pathname.replace(/\/$/,"")}/med-assist/session/${this.config.auth.sessionId}/chat`,l.toString()}sendMessage(l){if(!this.connected){const u=new r.ConnectionError("SSE connection is not open",{context:{stage:"sendMessage"}});this.onErrorCallback?.(u);return}this.activeStreamController?.abort();const c=new AbortController;this.activeStreamController=c,this.streamChat(l,c)}async streamChat(l,c){const u=this.buildChatUrl();try{const f=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","sess-token":this.config.auth.sessionToken,"x-agent-id":this.config.agentId},body:JSON.stringify(l),signal:c.signal});if(!f.ok||!f.body)throw new r.ConnectionError(`SSE chat request failed with status ${f.status}`,{context:{stage:"streamChat",status:f.status}});const h=f.body.getReader(),m=new TextDecoder;let B="";for(;;){const{done:C,value:w}=await h.read();if(C)break;B+=m.decode(w,{stream:!0}),B=this.extractJsonObjects(B)}B.trim().length>0&&this.extractJsonObjects(B)}catch(f){if(c.signal.aborted)return;const h=(0,r.normalizeError)(f,r.ConnectionError,"SSE chat stream failed",{context:{stage:"streamChat"}});this.onErrorCallback?.(h)}finally{this.activeStreamController===c&&(this.activeStreamController=null)}}extractJsonObjects(l){let c=0;for(;c<l.length;){const u=l.indexOf("{",c);if(u===-1)return"";const f=this.findObjectEnd(l,u);if(f===-1)return l.slice(u);const h=l.slice(u,f+1);try{const m=JSON.parse(h);this.handleMessage(m)}catch(m){const B=(0,r.normalizeError)(m,r.MessageError,"Failed to parse incoming SSE object",{context:{stage:"extractJsonObjects",objStr:h}});this.onErrorCallback?.(B)}c=f+1}return""}findObjectEnd(l,c){let u=0,f=!1,h=!1;for(let m=c;m<l.length;m++){const B=l[m];if(f){h?h=!1:B==="\\"?h=!0:B==='"'&&(f=!1);continue}if(B==='"')f=!0;else if(B==="{")u++;else if(B==="}"&&(u--,u===0))return m}return-1}close(){this.connected=!1,this.activeStreamController?.abort(),this.activeStreamController=null,this.updateStatus(t.ConnectionStatus.NOT_CONNECTED)}isConnected(){return this.connected}handleConnected(){this.updateStatus(t.ConnectionStatus.CONNECTED)}}return La.SSEConnection=i,La}var Np;function Ip(){return Np||(Np=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionFactory=e.ConnectionType=void 0;const t=Up(),r=Tp(),i=kt();e.ConnectionType={SOCKET:"socket",SSE:"sse"};class s{static async createConnection(c,u){switch(c){case e.ConnectionType.SOCKET:return new t.WebSocketConnection(u);case e.ConnectionType.SSE:return new r.SSEConnection(u);default:throw new i.ConnectionError(`Unsupported connection type: ${c}`,{context:{type:c}})}}}e.ConnectionFactory=s})(bu)),bu}var Da={},_p;function I1(){if(_p)return Da;_p=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.getConfig=void 0;const e={WEBSOCKET_URL:"wss://matrix-ws.eka.care/reloaded",BASE_API_URL:"https://matrix.eka.care/reloaded"},t={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care/reloaded",BASE_API_URL:"https://matrix.dev.eka.care/reloaded"},r={WEBSOCKET_URL:"wss://matrix-ws.dev.eka.care",BASE_API_URL:"https://matrix.dev.eka.care"},i=(s="production")=>s==="development"?t:s==="production"?e:s==="staging"?r:e;return Da.getConfig=i,Da}var ka={},ja={},Hp;function Mp(){if(Hp)return ja;Hp=1,Object.defineProperty(ja,"__esModule",{value:!0}),ja.HttpClient=void 0;const e=kt();let t=class{baseUrl;headers;timeout;maxRetries;constructor(i){this.baseUrl=i.baseUrl.replace(/\/$/,""),this.timeout=i.timeout||3e4,this.maxRetries=i.maxRetries||3,this.headers={"Content-Type":"application/json",...i.headers},i.authorization&&(this.headers.Authorization=i.authorization)}async request(i,s,l){const c=l?.retries??this.maxRetries;let u;for(let f=0;f<=c;f++)try{const h=this.buildUrl(s,l?.params),m=await fetch(h,{method:i,headers:{...this.headers,...l?.headers},body:l?.body?JSON.stringify(l.body):void 0,signal:AbortSignal.timeout(this.timeout)});return m.ok||await this.handleError(m),m.json()}catch(h){if(u=h,f===c||!(h instanceof TypeError&&h.message==="Failed to fetch"||h instanceof DOMException&&h.name==="AbortError"||h instanceof SyntaxError))break;const B=Math.pow(2,f)*100;await new Promise(C=>setTimeout(C,B))}throw u?u instanceof TypeError&&u.message==="Failed to fetch"?new e.APIError("Network error: Unable to connect to the server. Please check your internet connection.",0,{type:"NETWORK_ERROR",originalError:u.message}):u instanceof DOMException&&u.name==="AbortError"?new e.APIConnectionTimeoutError({message:`Request timed out after ${this.timeout}ms`}):u instanceof SyntaxError?new e.APIError("Invalid response format from server",502,{type:"PARSE_ERROR",originalError:u.message}):u instanceof e.APIError?u:new e.APIError(`Request failed: ${u.message||"Unknown error"}`,500,{type:"UNKNOWN_ERROR",originalError:u}):new e.APIError("Unknown error occurred",500,{type:"UNKNOWN_ERROR"})}async get(i,s,l){return this.request("GET",i,{params:s,...l})}async post(i,s,l){return this.request("POST",i,{body:s,...l})}async put(i,s,l){return this.request("PUT",i,{body:s,...l})}async delete(i,s){return this.request("DELETE",i,{...s})}async patch(i,s,l){return this.request("PATCH",i,{body:s,...l})}buildUrl(i,s){let l=`${this.baseUrl}${i}`;if(s){const c=new URLSearchParams(s).toString();l+=`?${c}`}return l}async handleError(i){let s,l;try{l=await i.json();const c=l,u=c?.error;s=c?.message||c?.msg||u?.msg||u?.message||i.statusText}catch{s=i.statusText}throw e.APIError.generate(i.status,l,s,i.headers)}};return ja.HttpClient=t,ja}var Ka={},Va={},Op;function _l(){if(Op)return Va;Op=1,Object.defineProperty(Va,"__esModule",{value:!0}),Va.BaseResource=void 0;let e=class{client;constructor(r){this.client=r}async get(r,i,s){return this.client.get(r,i,s)}async post(r,i,s){return this.client.post(r,i,s)}async put(r,i,s){return this.client.put(r,i,s)}async delete(r,i){return this.client.delete(r,i)}async patch(r,i,s){return this.client.patch(r,i,s)}buildPath(r,i){let s=r;for(const[l,c]of Object.entries(i))s=s.replace(`:${l}`,encodeURIComponent(c));return s}};return Va.BaseResource=e,Va}var Rp;function Lp(){if(Rp)return Ka;Rp=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.Session=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/session";async create(i,s){return this.post(this.basePath,i,s?{headers:{"x-auth-token":s}}:void 0)}async retrieve(i){return this.get(`${this.basePath}/${i}`)}async refresh(i,s){return this.get(`${this.basePath}/${i}/refresh`,void 0,{headers:{"x-sess-token":s}})}async feedback(i,s,l,c){return this.put(`${this.basePath}/${i}/messages/${s}/feedback`,{feedback:l,feedback_reason:c})}async callTool(i,s,l,c,u){return this.post(`${this.basePath}/${i}/messages/${l}/tools/${s}`,{tool_params:u},{headers:{"x-sess-token":c}})}};return Ka.Session=t,Ka}var Ga={},Dp;function _1(){if(Dp)return Ga;Dp=1,Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.Config=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/agent-config";async retrieve(i){return this.get(`${this.basePath}/${i}`)}};return Ga.Config=t,Ga}var za={},kp;function H1(){if(kp)return za;kp=1,Object.defineProperty(za,"__esModule",{value:!0}),za.VoiceResource=void 0;const e=_l();let t=class qg extends e.BaseResource{static ICE_SERVERS_PATH="/med-assist/voice/ice-servers";static OFFER_PATH="/med-assist/voice/offer";async getIceServers(i,s){return this.get(qg.ICE_SERVERS_PATH,{session_id:i,token:s})}async sendOffer(i){return this.post(qg.OFFER_PATH,i)}};return za.VoiceResource=t,za}var jp;function Kp(){if(jp)return ka;jp=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.ResourceManager=void 0;const e=Mp(),t=Lp(),r=kt(),i=_1(),s=H1();class l{resourceConfig;httpClient;session;config;voiceResource;constructor(u){this.resourceConfig=u,this.httpClient=new e.HttpClient({baseUrl:this.resourceConfig.serverUrl,headers:{"X-agent-id":this.resourceConfig.agentId,"ngrok-skip-browser-warning":"69420",...this.resourceConfig.authorization&&{Authorization:this.resourceConfig.authorization}}}),this.config=new i.Config(this.httpClient),this.session=new t.Session(this.httpClient),this.voiceResource=new s.VoiceResource(this.httpClient)}async createSession(u,f){try{const{profile:h,intent:m,user_location:B,referer:C,...w}=f||{},v={...u&&{user_id:u},...h&&{user_context:h},...(m||Object.keys(w).length>0)&&{session_context:{...m&&{intent:m},...B&&{user_location:B},...w}},...C&&{referer:C}},b=await this.session.create(v,this.resourceConfig.authToken);if(!b?.session_id||!b?.session_token)throw new r.APIError("Failed to start session.",500,void 0,void 0);return b}catch(h){throw h instanceof r.APIError?h:new r.APIError("Failed to start session.",500,void 0,void 0)}}async getAgentConfig(){this.config||(this.config=new i.Config(this.httpClient));try{return await this.config.retrieve(this.resourceConfig.agentId)}catch{throw new r.APIError("Failed to get agent config.",500,void 0,void 0)}}async validateSession(u){try{const f=await this.session.retrieve(u);return f.msg&&f.msg==="Session Active"?{expired:!1,active:!0}:{expired:!0,active:!1}}catch(f){if(f instanceof r.APIError)switch(f.status){case 401:return{expired:!0,active:!1};default:throw f}throw f}}async refreshSession(u,f){return await this.session.refresh(u,f)}async sendFeedback(u,f,h,m){return await this.session.feedback(u,f,h,m)}async callTool(u,f,h,m,B){return await this.session.callTool(u,f,h,m,B)}async getVoiceIceServers(u,f){return await this.voiceResource.getIceServers(u,f)}async sendVoiceOffer(u){return await this.voiceResource.sendOffer(u)}}return ka.ResourceManager=l,ka}var Pa={},Uu={},Vp;function Fu(){return Vp||(Vp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MULTI_SELECT_ADDITIONAL_OPTION=e.SOCKET_EVENTS=e.SOCKET_CONTENT_TYPES=void 0,e.IsValidSocketMesssage=t,e.SOCKET_CONTENT_TYPES={TEXT:"text",AUDIO:"audio",FILE:"file",TOOL_CALL:"tool",TIPS:"tips",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},e.SOCKET_EVENTS={PING:"ping",PONG:"pong",CHAT:"chat",STREAM:"stream",AUTH:"auth",END_OF_STREAM:"eos",SYNC:"sync",ERROR:"err",CONNECTION_ESTABLISHED:"conn"},e.MULTI_SELECT_ADDITIONAL_OPTION={NOTA:"none_of_the_above",AOTA:"all_of_the_above"};function t(r){return[e.SOCKET_EVENTS.PING,e.SOCKET_EVENTS.PONG,e.SOCKET_EVENTS.ERROR,e.SOCKET_EVENTS.SYNC,e.SOCKET_EVENTS.CONNECTION_ESTABLISHED,e.SOCKET_EVENTS.CHAT,e.SOCKET_EVENTS.STREAM,e.SOCKET_EVENTS.END_OF_STREAM].includes(r.ev)}})(Uu)),Uu}var Tu={},Gp;function M1(){return Gp||(Gp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Filemanager=e.MAX_FILE_SIZE=void 0;const t=kt();e.MAX_FILE_SIZE=3145728;class r{pendingFiles=[];pendingMessage="";pendingFormats=[];setFilesForUpload(s,l){this.pendingFiles.length>0&&this.clearPendingFilesState();const c=s.filter(u=>this.validateFile(u));if(c.length===0)throw new t.FileError("File not supported",{context:{stage:"setFilesForUpload"}});this.pendingFiles=c,l&&l.trim()&&(this.pendingMessage=l),this.pendingFormats=c.map(u=>u.type)}getPendingFileState(){return{files:this.pendingFiles,message:this.pendingMessage||"",formats:this.pendingFormats||[]}}async uploadFilesToPresignedUrl(s){let l=[];const c=s.filter(u=>u.url&&u.url.trim());try{if(c.length===0)throw new t.FileError("No valid presigned URLs provided",{context:{stage:"uploadFilesToPresignedUrl"}});if(!this.pendingFiles.length)throw new t.FileError("No files to upload",{context:{stage:"uploadFilesToPresignedUrl"}});for(let u=0;u<c.length;u++){const f=c[u].url,h=await fetch(f,{method:"PUT",body:this.pendingFiles[u],headers:{"Content-Type":this.pendingFiles[u].type,"x-ms-blob-type":"BlockBlob"}});if(!h.ok)throw new t.FileError(`Failed to upload ${this.pendingFiles[u].name} to URL ${u+1}: ${h.status} ${h.statusText}`,{context:{stage:"uploadFilesToPresignedUrl"}});l.push(c[u].id)}return l}catch(u){if(l.length>0)return l;throw(0,t.normalizeError)(u,t.FileError,"Failed to upload files to presigned URL",{context:{stage:"uploadFilesToPresignedUrl"}})}}blobToFile(s,l){return new File([s],l,{type:s.type})}validateFile(s){return["application/pdf","image/jpeg","image/png","image/jpg"].includes(s.type)&&s.size<e.MAX_FILE_SIZE}clearPendingFilesState(){this.pendingFiles=[],this.pendingMessage="",this.pendingFormats=[]}}e.Filemanager=r})(Tu)),Tu}var nn={},zp;function Hl(){if(zp)return nn;zp=1,Object.defineProperty(nn,"__esModule",{value:!0}),nn.SYNAPSE_REALTIME_RESERVED_EVENTS=nn.SYNAPSE_REALTIME_ERROR_CODES=nn.SYNAPSE_REALTIME_EVENTS=nn.SYNAPSE_MESSAGE_TYPES=void 0;const e=Fu();return nn.SYNAPSE_MESSAGE_TYPES=e.SOCKET_CONTENT_TYPES,nn.SYNAPSE_REALTIME_EVENTS={CONNECTED:"connected",DISCONNECTED:"disconnected",PROGRESS_MESSAGE:"progress_message",MESSAGE_CHUNK:"message_chunk",TIPS_MESSAGE:"tips_message",END_OF_STREAM:"end_of_stream",ERROR:"error",TOOL_CALL:"tool_call",AUDIO_TRANSCRIPT:"audio_transcript",TOOL_START:"tool_start",TOOL_END:"tool_end"},nn.SYNAPSE_REALTIME_ERROR_CODES={SESSION_INACTIVE:"session_not_found",SESSION_EXPIRED:"session_expired",INVALID_EVENT:"invalid_event",INVALID_CONTENT_TYPE:"invalid_content",PARSING_ERROR:"parsing",FILE_UPLOAD_INPROGRESS:"file_upload_inprogress",TIMEOUT:"timeout",SERVER_ERROR:"server_error",SESSION_TOKEN_MISMATCH:"session_token_mismatch",PROMPT_FETCH_ERROR:"prompt_fetch_error",INVALID_FILE_REQUEST:"invalid_file_request"},nn.SYNAPSE_REALTIME_RESERVED_EVENTS={SESSION_EXPIRED:"session_expired"},nn}var Ya={},Pp;function O1(){if(Pp)return Ya;Pp=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.AudioManager=void 0;const e=kt();class t{mediaRecorder=null;mediaStream=null;recordingStartTime=0;autoPauseTimer=null;config;onAudioData=null;onAudioError=null;suppressCallbacks=!1;constructor(i={}){this.config={mimeType:"audio/webm;codecs=opus",audioBitsPerSecond:128e3,maxRecordingDuration:9e5,autoPauseEnabled:!0,...i}}async checkCurrentPermissionState(){if(!navigator.permissions||!navigator.permissions.query)return"prompt";try{const i=await navigator.permissions.query({name:"microphone"});if(i.state==="denied")throw new e.RecordingError("Microphone permission denied",{context:{permissionState:i.state},hint:"Ensure the browser has microphone access enabled for this site."});return i.state}catch(i){if(i instanceof Error&&i.name==="NotSupportedError")return"prompt"}return"prompt"}async start(i,s){try{if(!navigator.mediaDevices)throw new e.RecordingError("Media devices API is not available. This usually means the page is not served over HTTPS or there are browser restrictions.",{context:{feature:"mediaDevices"},hint:"Serve the app over HTTPS and verify browser/device microphone support.",displayMessage:"Microphone access is unavailable."});if(!window.MediaRecorder)throw new e.RecordingError("MediaRecorder is not supported in this browser",{context:{feature:"MediaRecorder"},hint:"Use a browser that supports the MediaRecorder API.",displayMessage:"Microphone access is unavailable."});const l=["audio/mp3","audio/ogg;codecs=opus","audio/mp4","audio/ogg","audio/wav"].filter(c=>MediaRecorder.isTypeSupported(c));if(l.length===0)throw new e.RecordingError("No supported audio formats found in this browser",{context:{requestedTypes:l},hint:"Verify codec support or adjust the requested MIME types.",displayMessage:"Microphone access is unavailable."});if(this.config.mimeType=l[0],await this.checkCurrentPermissionState(),this.onAudioData=i,this.onAudioError=s??null,this.suppressCallbacks=!1,this.mediaStream=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!1,noiseSuppression:!1,autoGainControl:!1,sampleRate:44100,channelCount:1}}),this.mediaRecorder=new MediaRecorder(this.mediaStream,{mimeType:this.config.mimeType,audioBitsPerSecond:this.config.audioBitsPerSecond}),this.mediaRecorder.state!=="inactive")throw new e.RecordingError("MediaRecorder is in an invalid state for start()",{context:{recorderState:this.mediaRecorder.state},displayMessage:"Failed to start recording"});this.setupMediaRecorderEvents(),this.mediaRecorder.start(),this.recordingStartTime=Date.now(),this.config.autoPauseEnabled&&this.setupAutoPauseTimer()}catch(l){throw l instanceof Error&&l.name==="NotAllowedError"?new e.RecordingError("Microphone permission denied",{context:{permissionState:"denied"},hint:"Ensure the browser or device has microphone access enabled for this site/app."}):this.toRecordingError(l,"Failed to start audio recording",{stage:"start"})}}async processAudioChunk(i){try{const s=await this.blobToBase64(i),l=Date.now();if(!this.onAudioData)return;const c={audio:s,format:this.config.mimeType,duration:this.recordingStartTime>0?l-this.recordingStartTime:0,timestamp:this.recordingStartTime>0?this.recordingStartTime:l};this.onAudioData(c)}catch(s){this.handleError(s,{stage:"process_audio_chunk"})}}toRecordingError(i,s,l){if(i instanceof e.RecordingError)return i;if(i instanceof e.SynapseError)return new e.RecordingError(i.message,{cause:i,context:{...i.context,...l},hint:i.hint});const c=i instanceof Error&&i.message?i.message:s;return new e.RecordingError(c,{cause:i,context:l})}handleError(i,s){const l=this.toRecordingError(i,"Unexpected recording error",s);if(this.onAudioError)try{this.onAudioError(l)}catch{}}setupAutoPauseTimer(){this.autoPauseTimer&&clearTimeout(this.autoPauseTimer),this.autoPauseTimer=setTimeout(()=>{this.stop()},this.config.maxRecordingDuration)}setupMediaRecorderEvents(){this.mediaRecorder&&(this.mediaRecorder.ondataavailable=i=>{this.suppressCallbacks||i.data.size<=0||this.processAudioChunk(i.data).catch(s=>this.handleError(s,{stage:"media_recorder_ondataavailable",hasData:i.data.size>0}))},this.mediaRecorder.onstop=async()=>{this.recordingStartTime=0},this.mediaRecorder.onerror=i=>{this.handleError(i.error instanceof Error?i.error:new Error("MediaRecorder encountered an unknown error"),{stage:"media_recorder_onerror"})},this.mediaRecorder.onstart=()=>{})}blobToBase64(i){return new Promise((s,l)=>{const c=new FileReader;c.onload=()=>{if(typeof c.result=="string"){const u=c.result.split(",")[1];s(u)}else l(new e.RecordingError("Failed to convert blob to base64",{context:{stage:"blob_to_base64"}}))},c.onerror=()=>l(new e.RecordingError("FileReader error while converting audio chunk to base64",{cause:c.error??void 0,context:{stage:"blob_to_base64"}})),c.readAsDataURL(i)})}stop(){if(this.mediaRecorder)try{this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to stop audio recording",{stage:"stop"})}}cancel(){if(this.mediaRecorder)try{this.suppressCallbacks=!0,this.autoPauseTimer&&(clearTimeout(this.autoPauseTimer),this.autoPauseTimer=null),this.mediaRecorder.ondataavailable=null,this.mediaRecorder.state==="recording"&&this.mediaRecorder.stop(),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to cancel audio recording",{stage:"cancel"})}}destroy(){try{this.cancel(),this.mediaRecorder&&(this.mediaRecorder=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(i=>i.stop()),this.mediaStream=null)}catch(i){throw this.toRecordingError(i,"Failed to destroy audio resources",{stage:"destroy"})}}}return Ya.AudioManager=t,Ya}var Yp;function Xp(){if(Yp)return Pa;Yp=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.MessageManager=void 0;const e=Fu(),t=M1(),r=Hl(),i=O1(),s=kt();let l=class{connection=null;callbacks=null;fileManager=null;audioManager=null;constructor(u,f){this.connection=u||null,this.callbacks=f||null}handleFileUploadProcess({files:u,message:f,urls:h,tool_declined:m,tool_result:B}){this.fileManager||(this.fileManager=new t.Filemanager);let C;if(u&&u.length>0)this.fileManager.setFilesForUpload(u,f),C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{extensions:this.fileManager.getPendingFileState().formats,...m&&{tool_declined:m},...B&&{tool_result:B}}};else if(h&&h.length>0){const w=this.fileManager.getPendingFileState().message;C={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.FILE,_id:Date.now().toString(),ts:Date.now(),data:{urls:h,...w&&{text:w},...m&&{tool_declined:m},...B&&{tool_result:B}}},this.fileManager?.clearPendingFilesState()}return C}sendSocketMessage({message:u,files:f,audio:h,urls:m,tool_declined:B,tool_id:C,tool_result:w,initial_prompts:v}){const b=this.assertConnection("sendSocketChatMessage");let U;if(f&&f.length>0||m&&m.length>0){if(f&&f.length>3){const Q=new s.MessageError("Maximum 3 files are allowed to be sent at a time",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}U=this.handleFileUploadProcess({files:f,message:u,urls:m,tool_declined:B,tool_result:w})}else u?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:u,...B&&{tool_declined:B},...C&&{tool_id:C},...v&&{initial_prompts:v},...w&&{tool_result:w}}}:h&&h?.audio&&h?.format?U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.AUDIO,_id:Date.now().toString(),ts:Date.now(),data:{audio:h?.audio,format:h?.format,...B&&{tool_declined:B},...w&&{tool_result:w}}}:w&&(U={ev:e.SOCKET_EVENTS.CHAT,ct:e.SOCKET_CONTENT_TYPES.TEXT,_id:Date.now().toString(),ts:Date.now(),data:{text:"",tool_result:w}});if(!U){const Q=new s.MessageError("No message to send",{context:{stage:"sendSocketChatMessage"}});throw this.emitError(Q),Q}b.sendMessage(U)}handleIncomingSocketChatMessage(u){const f=this.assertConnection("handleIncomingSocketChatMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.FILE:{u?.data?.urls&&u.data.urls?.length>0&&this.fileManager?.uploadFilesToPresignedUrl(u.data.urls).then(h=>{this.sendSocketMessage({urls:h})}).catch(h=>{const m=this.toFileError(h,"Failed to upload files to presigned URL",{stage:"handleIncomingSocketChatMessage",urls:u.data?.urls?.length});this.emitError(m)});break}case e.SOCKET_CONTENT_TYPES.TEXT:if(u.data.text&&u.data.text.trim()===""&&u._id){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,h)}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const h={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,h)}break;case e.SOCKET_CONTENT_TYPES.AUDIO_TRANSCRIPT:if(u?.data?.text){const h={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,h)}break}}handleIncomingSocketStreamMessage(u){const f=this.assertConnection("handleIncomingSocketStreamMessage");switch(u.ct){case e.SOCKET_CONTENT_TYPES.TEXT:if(u?.data?.progress_msg){const C={data:{text:u.data.progress_msg},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,C);return}if(u?.data?.text){const C={data:{text:u.data.text},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,C)}break;case e.SOCKET_CONTENT_TYPES.TIPS:if(u?.data?.tips){const C={data:{tips:u.data.tips},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TIPS_MESSAGE,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_CALL:if(u?.data?.tool_id&&u._id){const C={data:{...u.data},messageId:u._id,timestamp:u.ts};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,C);return}break;case e.SOCKET_CONTENT_TYPES.TOOL_START:const h={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_START,h);break;case e.SOCKET_CONTENT_TYPES.TOOL_END:const m={data:u?.data,messageId:u._id||Date.now().toString()};f.emit(r.SYNAPSE_REALTIME_EVENTS.TOOL_END,m);break;default:const B=new s.MessageError(`Unsupported content type ${u?.ct}`,{context:{stage:"handleIncomingSocketStreamMessage",contentType:u.ct}});throw this.emitError(B),B}}handleDisconnect(u){this.connection?.emit?.(r.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,u)}handleIncomingSocketEndOfStreamMessage(u){this.assertConnection("handleIncomingSocketEndOfStreamMessage").emit(r.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM)}handleIncomingSocketErrorMessage(u){const f=this.assertConnection("handleIncomingSocketErrorMessage");switch(u?.data?.code){case r.SYNAPSE_REALTIME_ERROR_CODES.SESSION_EXPIRED:f.emit(r.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED);break;default:const h=new s.MessageError(u?.data?.msg||"Socket error received",{context:{stage:"handleIncomingSocketErrorMessage",errorCode:u?.data?.code},hint:u?.data?.msg,cause:u,displayMessage:u?.data?.msg});f.emit(r.SYNAPSE_REALTIME_EVENTS.ERROR,u)}}sendSocketAuthMessage(u){const f=this.assertConnection("sendSocketAuthMessage"),h={ev:e.SOCKET_EVENTS.AUTH,_id:Date.now().toString(),ts:Date.now(),data:{token:u}};f.sendMessage(h)}sendSocketPingMessage(){const u=this.assertConnection("sendSocketPingMessage"),f={ev:e.SOCKET_EVENTS.PING,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}async startRecording({onChunks:u,onError:f}){if(!u){const h=new s.RecordingError("onChunks is required",{context:{stage:"startRecording"},hint:"onChunks is required"});throw this.emitError(h),h}this.assertConnection("startRecording"),this.audioManager||(this.audioManager=new i.AudioManager);try{await this.audioManager.start(u,h=>{const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});f?.(m),this.emitError(m)})}catch(h){const m=this.toRecordingError(h,"Failed to start audio recording",{stage:"startRecording"});throw f?.(m),this.emitError(m),m}}endRecordingWithSocket(){if(!this.audioManager){const u=new s.RecordingError("Audio manager not set. Call startRecording() first.",{context:{stage:"stopRecording"}});throw this.emitError(u),u}try{this.audioManager.stop()}catch(u){const f=this.toRecordingError(u,"Failed to stop audio recording",{stage:"stopRecording"});throw this.emitError(f),f}}sendSocketPongMessage(){const u=this.assertConnection("sendSocketPongMessage"),f={ev:e.SOCKET_EVENTS.PONG,_id:Date.now().toString(),ts:Date.now()};u.sendMessage(f)}handleConnectionEstablished(){this.connection?.handleConnected(),this.connection?.emit(r.SYNAPSE_REALTIME_EVENTS.CONNECTED)}cleanupMessageServerState(){this.fileManager&&(this.fileManager.clearPendingFilesState(),this.fileManager=null),this.audioManager&&(this.audioManager.destroy(),this.audioManager=null)}emitError(u){this.callbacks?.onError?.(u)}toFileError(u,f,h,m){return(0,s.normalizeError)(u,s.FileError,f,{context:h,hint:m})}toRecordingError(u,f,h,m){return(0,s.normalizeError)(u,s.RecordingError,f,{context:h,hint:m})}assertConnection(u){if(!this.connection){const f=new s.ConnectionError("Connection not set. Please ensure the connection is established before calling this method.",{context:{stage:u}});throw this.emitError(f),f}return this.connection}};return Pa.MessageManager=l,Pa}var Xa={},qp;function Jp(){if(qp)return Xa;qp=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.ErrorUtils=void 0;const e=kt();class t{static isAPIError(i){return i instanceof e.APIError}static isNetworkError(i){return i instanceof e.APIError&&(i.status===0||i.status===void 0)}static isTimeoutError(i){return i instanceof e.APIConnectionTimeoutError}static isAuthError(i){return i instanceof e.UnauthorizedError||i instanceof e.PermissionDeniedError}static isClientError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=400&&i.status<500}static isServerError(i){return i instanceof e.APIError&&i.status!==void 0&&i.status>=500}static getUserFriendlyMessage(i){return t.isNetworkError(i)?"Unable to connect to the server. Please check your internet connection.":t.isTimeoutError(i)?"Request timed out. Please try again.":t.isAuthError(i)?"Authentication failed. Please log in again.":t.isServerError(i)?"Server error occurred. Please try again later.":t.isAPIError(i)||i instanceof Error?i.message:"An unexpected error occurred."}static getErrorDetails(i){return t.isAPIError(i)?{type:i.name,message:i.message,code:i.code,status:i.status,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof e.SynapseError?{type:i.name,message:i.message,code:i.code,timestamp:i.timestamp,stack:i.stack,context:i.context,hint:i.hint}:i instanceof Error?{type:i.name,message:i.message,stack:i.stack}:{type:"Unknown",message:String(i)}}}return Xa.ErrorUtils=t,Xa}var qa={},Ja={},Zp;function R1(){if(Zp)return Ja;Zp=1,Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.VoiceAudioAnalyser=void 0;const e=256;let t=class{audioCtx=null;animFrame=null;start(i,s,l){const c=new AudioContext;this.audioCtx=c;const u=c.createAnalyser();u.fftSize=e,c.createMediaStreamSource(i).connect(u);const f=new Uint8Array(u.frequencyBinCount),h=()=>{if(!this.audioCtx)return;u.getByteFrequencyData(f);const m=f.reduce((B,C)=>B+C,0)/f.length;l(m>s),this.animFrame=requestAnimationFrame(h)};h()}stop(){this.animFrame!==null&&(cancelAnimationFrame(this.animFrame),this.animFrame=null),this.audioCtx&&(this.audioCtx.close().catch(()=>{}),this.audioCtx=null)}};return Ja.VoiceAudioAnalyser=t,Ja}var zr={},Wp;function $p(){return Wp||(Wp=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.VOICE_AGENT_EVENTS=zr.VOICE_AGENT_STATE=void 0,zr.VOICE_AGENT_STATE={IDLE:"idle",CONNECTING:"connecting",CONNECTED:"connected",LISTENING:"listening",THINKING:"thinking",SPEAKING:"speaking",MUTED:"muted",DISCONNECTING:"disconnecting",ERROR:"error"},zr.VOICE_AGENT_EVENTS={STATE_CHANGED:"voice:state_changed",ERROR:"voice:error"}),zr}var em;function L1(){if(em)return qa;em=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.VoiceAgent=void 0;const e=xu(),t=R1(),r=kt(),i=$p(),s=3e3,l=8,c=3600*1e3,u=600;function f(m,B){return new Promise(C=>{if(m.iceGatheringState==="complete"){C();return}const w=setTimeout(C,B);m.onicegatheringstatechange=()=>{m.iceGatheringState==="complete"&&(clearTimeout(w),C())}})}let h=class{config;resourceManager;getCredentials;emitter=new e.EventEmitter;remoteAnalyser=new t.VoiceAudioAnalyser;localAnalyser=new t.VoiceAudioAnalyser;pc=null;pcId=null;dataChannel=null;localStream=null;remoteAudio=null;_state=i.VOICE_AGENT_STATE.IDLE;_isMuted=!1;manuallyDisconnected=!1;_hasConnectionFailureNotified=!1;_userSpeaking=!1;_silenceTimer=null;_cachedIceServers=null;_iceServersCachedAt=0;constructor(B,C,w){this.config=B,this.resourceManager=C,this.getCredentials=w}get state(){return this._state}get isMuted(){return this._isMuted}on(B,C){this.emitter.on(B,C)}off(B,C){this.emitter.off(B,C)}async connect(){const B=await this.getCredentials();this.setState(i.VOICE_AGENT_STATE.CONNECTING),this._hasConnectionFailureNotified=!1;try{if(!navigator.mediaDevices?.getUserMedia)throw new Error("Microphone access is not available. Please ensure you are using a secure (HTTPS) connection.");const C=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3},video:!1});this.localStream=C;const w=await this.fetchIceServers(B),v=new RTCPeerConnection({iceServers:w,iceTransportPolicy:"all"});this.pc=v,this.dataChannel=v.createDataChannel("pipecat-events",{ordered:!0}),this.dataChannel.onopen=()=>{},this.dataChannel.onclose=()=>this.handleConnectionFailure(new Error("Data channel closed"),"Voice connection failed"),this.dataChannel.onerror=()=>this.handleConnectionFailure(new Error("Data channel error"),"Voice connection failed"),C.getAudioTracks().forEach(O=>v.addTrack(O,C)),v.ontrack=O=>this.handleRemoteTrack(O),v.onconnectionstatechange=()=>{v.connectionState==="connected"?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):(v.connectionState==="failed"||v.connectionState==="closed")&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))},v.oniceconnectionstatechange=()=>{(v.iceConnectionState==="connected"||v.iceConnectionState==="completed")&&this._state===i.VOICE_AGENT_STATE.CONNECTING?(this.setState(i.VOICE_AGENT_STATE.LISTENING),this.startLocalAudioAnalysis(C)):v.iceConnectionState==="failed"&&(this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE))};const b=await v.createOffer();await v.setLocalDescription(b);const U=this.config.iceGatheringTimeoutMs??s;await f(v,U);const Q=O=>({sdp:v.localDescription.sdp,type:v.localDescription.type,pc_id:this.pcId,request_data:{session_id:O.sessionId,token:O.sessionToken}});let T;try{T=await this.resourceManager.sendVoiceOffer(Q(B))}catch(O){if(O instanceof r.APIError&&O.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const G=await this.getCredentials();T=await this.resourceManager.sendVoiceOffer(Q(G))}else throw O}if(!T)throw new Error("No answer received from voice offer");if(this.pcId=T.pc_id,v.signalingState==="closed")return;await v.setRemoteDescription(new RTCSessionDescription({sdp:T.sdp,type:T.type}))}catch(C){this.handleConnectionFailure(C)}}disconnect(){this.manuallyDisconnected=!0,this.setState(i.VOICE_AGENT_STATE.DISCONNECTING),this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.IDLE)}toggleMute(){if(!this.localStream)return;const B=this.localStream.getAudioTracks()[0];if(!B)return;const C=B.enabled;this.localStream.getAudioTracks().forEach(w=>{w.enabled=!C}),this._isMuted=C,this.clearSilenceTimer(),this._userSpeaking=!1,this.setState(C?i.VOICE_AGENT_STATE.MUTED:i.VOICE_AGENT_STATE.LISTENING)}reset(){this.setState(i.VOICE_AGENT_STATE.IDLE)}destroy(){this.releaseResources(),this.emitter.removeAllListeners(),this._state=i.VOICE_AGENT_STATE.IDLE}async fetchIceServers(B){if(this.config.iceServers)return this.config.iceServers;const C=Date.now();if(this._cachedIceServers&&C-this._iceServersCachedAt<c)return this._cachedIceServers;let w;try{w=await this.resourceManager.getVoiceIceServers(B.sessionId,B.sessionToken)}catch(v){if(v instanceof r.APIError&&v.status===401&&this.config.handleRefresh){await this.config.handleRefresh();const b=await this.getCredentials();w=await this.resourceManager.getVoiceIceServers(b.sessionId,b.sessionToken)}else throw v}if(!Array.isArray(w?.ice_servers)||w.ice_servers.length===0)throw new Error("ICE servers response is empty");return this._cachedIceServers=w.ice_servers,this._iceServersCachedAt=Date.now(),this._cachedIceServers}setState(B){this._state=B,this.emitter.emit(i.VOICE_AGENT_EVENTS.STATE_CHANGED,B)}clearSilenceTimer(){this._silenceTimer!==null&&(clearTimeout(this._silenceTimer),this._silenceTimer=null)}handleConnectionFailure(B,C="Voice connection failed"){if(this._hasConnectionFailureNotified||this._state===i.VOICE_AGENT_STATE.DISCONNECTING||this.manuallyDisconnected)return;this._hasConnectionFailureNotified=!0,this.releaseResources(),this.setState(i.VOICE_AGENT_STATE.ERROR);const w={message:C,cause:B};this.emitter.emit(i.VOICE_AGENT_EVENTS.ERROR,w)}releaseResources(){this.remoteAnalyser.stop(),this.localAnalyser.stop(),this.clearSilenceTimer(),this._userSpeaking=!1,this.localStream&&(this.localStream.getTracks().forEach(B=>B.stop()),this.localStream=null),this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.pc&&(this.pc.onconnectionstatechange=null,this.pc.oniceconnectionstatechange=null,this.pc.ontrack=null,this.pc.onicecandidate=null,this.pc.ondatachannel=null,this.pc.close(),this.pc=null),this.pcId=null,this._isMuted=!1,this.remoteAudio&&(this.remoteAudio.srcObject=null)}startLocalAudioAnalysis(B){const C=this.config.speakingThreshold??l;this.localAnalyser.start(B,C,w=>{this._state!==i.VOICE_AGENT_STATE.LISTENING&&this._state!==i.VOICE_AGENT_STATE.THINKING||(w?(this._userSpeaking=!0,this.clearSilenceTimer(),this._state===i.VOICE_AGENT_STATE.THINKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)):this._userSpeaking&&this._silenceTimer===null&&(this._silenceTimer=setTimeout(()=>{this._silenceTimer=null,this._userSpeaking&&this._state===i.VOICE_AGENT_STATE.LISTENING&&(this._userSpeaking=!1,this.setState(i.VOICE_AGENT_STATE.THINKING))},u)))})}handleRemoteTrack(B){this.remoteAudio||(this.remoteAudio=new Audio,this.remoteAudio.autoplay=!0);const C=B.streams[0];this.remoteAudio.srcObject=C;const w=this.config.speakingThreshold??l;this.remoteAnalyser.start(C,w,v=>{v?(this.clearSilenceTimer(),this._userSpeaking=!1,this._state!==i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.SPEAKING)):this._state===i.VOICE_AGENT_STATE.SPEAKING&&this.setState(i.VOICE_AGENT_STATE.LISTENING)})}};return qa.VoiceAgent=h,qa}var Am;function D1(){if(Am)return _a;Am=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.SynapseSDK=void 0;const e=Ip(),t=Ra(),r=I1(),i=Kp(),s=Xp(),l=Hl(),c=xu(),u=Jp(),f=kt(),h=Fu(),m=L1();class B{connection=null;messageManager;resourceManager;sessionConfig=null;config;connectionType;isRefreshingSession=!1;connectionAttempts=0;sdkEventEmitter=new c.EventEmitter;_voice=null;constructor(w){this.config={...w,environment:w.environment||"production"},this.connectionType=w.connectionType||e.ConnectionType.SSE;const v=(0,r.getConfig)(this.config?.environment).BASE_API_URL;this.resourceManager=new i.ResourceManager({agentId:this.config.agentId,serverUrl:this.config.serverUrl||v,...this.config.auth&&{authorization:this.config.auth},...this.config.authToken&&{authToken:this.config.authToken}})}async startSession(w){try{const v=await this.manageSession(w);return await this.initializeConnection(v),this.setupEventHandlers(),v}catch(v){const b=u.ErrorUtils.getUserFriendlyMessage(v),U=u.ErrorUtils.getErrorDetails(v);if(v instanceof f.APIError&&(v.status===404||v.status===403))throw v;const Q=this.toSessionError(v,b||"Failed to start session",{stage:"startSession",details:U},"Check network connectivity or recheck credentials before retrying.");throw this.emitError(Q),Q}}async sendMessage({message:w,files:v,audio:b,tool_declined:U,tool_id:Q,initial_prompts:T,tool_result:O}){if(!this.connection){const G=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendChatMessage"},hint:"Call startSession() and wait for connection before sending messages."});throw this.emitError(G),G}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.sendSocketMessage({message:w,files:v,audio:b,...U&&{tool_declined:U},...Q&&{tool_id:Q},...T?.length&&{initial_prompts:T},...O&&Object.keys(O)?.length&&{tool_result:O}});break;default:const G=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendChatMessage",connectionType:this.connectionType}});throw this.emitError(G),G}}async sendFeedback(w,v,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id){const U=new f.SessionError("Session ID not found",{context:{stage:"sendFeedback"},hint:"Call startSession() before attempting to send feedback."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:await this.resourceManager.sendFeedback(this.sessionConfig.session_id,w,v,b);break}}on(w,v){this.sdkEventEmitter.on(w,v)}off(w,v){this.sdkEventEmitter.off(w,v)}getSessionConfig(){if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"getSessionConfig"},hint:"Ensure the session API returns both identifiers."});return this.sessionConfig}async callTool(w,v,b){if(!this.connection){const U=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}if(!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const U=new f.SessionError("Session ID not found",{context:{stage:"callTool"},hint:"Call startSession() before attempting to call tool."});throw this.emitError(U),U}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{const Q=await this.resourceManager.callTool(this.sessionConfig.session_id,w,v,this.sessionConfig.session_token,b);if(Q.error)throw new f.APIError(Q.error.msg,500,Q.error);let T={data:{...Q.data},messageId:Q._id,timestamp:Q.ts};this.connection.emit(l.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,T)}catch(Q){if(Q instanceof f.APIError&&Q?.status===401)return await this.handleSessionExpiry(),await this.callTool(w,v,b);throw Q}break;default:const U=new f.ConnectionError("Unsupported connection type",{context:{stage:"callTool",connectionType:this.connectionType}});throw this.emitError(U),U}}async startRecording({onChunks:w,onError:v}){if(!this.connection){const b=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"sendAudio"},hint:"Call startSession() before attempting to send audio."});throw this.emitError(b),b}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:try{await this.messageManager.startRecording({onChunks:w,onError:v})}catch(U){throw U}break;default:const b=new f.ConnectionError("Unsupported connection type",{context:{stage:"sendAudio",connectionType:this.connectionType}});throw this.emitError(b),b}}endRecording(){if(!this.connection){const w=new f.ConnectionError("Connection not established. Session may not be initialized.",{context:{stage:"endRecording"},hint:"Call startRecording() before attempting to stop recording."});throw this.emitError(w),w}switch(this.connectionType){case e.ConnectionType.SOCKET:case e.ConnectionType.SSE:this.messageManager.endRecordingWithSocket();break;default:const w=new f.ConnectionError("Unsupported connection type",{context:{stage:"endRecording",connectionType:this.connectionType}});throw this.emitError(w),w}}async getAgentConfig(){return this.resourceManager.getAgentConfig()}isConnected(){return this.connection?.isConnected()??!1}get voice(){return this._voice||(this._voice=new m.VoiceAgent(this.buildVoiceConfig(),this.resourceManager,async()=>{const w=await this.resourceManager.createSession();return{sessionId:w.session_id,sessionToken:w.session_token}})),this._voice}endSession(){this._voice?.destroy(),this._voice=null,this.closeConnection(),this.cleanup()}buildVoiceConfig(){return{offerUrl:`${this.config.serverUrl||(0,r.getConfig)(this.config.environment).BASE_API_URL}/med-assist/voice/offer`,handleRefresh:async()=>{await this.handleSessionExpiry()}}}toClientError(w){return w instanceof f.APIError?{message:w.error?.msg||w.message,error:w.error,code:w.code,status:w.status,context:w.context}:w instanceof f.SynapseError?{message:w.displayMessage||w.message,code:w.code,context:w.context}:w instanceof Error?{message:w.message}:{message:"An unexpected error occurred"}}emitError(w){this.config.callbacks?.onError?.(this.toClientError(w))}toSessionError(w,v,b,U){return(0,f.normalizeError)(w,f.SessionError,v,{context:b,hint:U})}async initializeConnection(w){if(this.closeConnection(),!w.session_id||!w.session_token)throw new f.SessionError("Session ID or token not found",{context:{stage:"initializeConnection"},hint:"Ensure the session API returns both identifiers."});this.sessionConfig=w;const v=(0,r.getConfig)(this.config?.environment),b=this.connectionType===e.ConnectionType.SOCKET,U=b?v.WEBSOCKET_URL:v.BASE_API_URL,Q=this.config.serverUrl?b?`wss://${this.config.serverUrl.split("://")[1]}`:this.config.serverUrl:null;this.connection=await e.ConnectionFactory.createConnection(this.connectionType,{serverUrl:Q||U,auth:{sessionId:w.session_id,sessionToken:w.session_token},agentId:this.config.agentId,userId:this.config.userId,overrides:this.config.overrides}),this.connectionAttempts++,this.messageManager=new s.MessageManager(this.connection,this.config?.callbacks);const T=this.connection.emit.bind(this.connection);this.connection.emit=(O,...G)=>{T(O,...G),this.sdkEventEmitter.emit(O,...G)}}async manageSession(w){try{if(!w?.session_id)return this.createNewSession();const v=await this.resourceManager.validateSession(w.session_id);if(v.active)return w;if(v.expired)return this.refreshSession(w.session_id,w.session_token);throw new f.APIError("Failed to create session",500,void 0,void 0)}catch(v){if(v instanceof f.APIError){if(v.status===404||v.status===403)throw v}else if(v instanceof f.NotFoundError&&v.status===404)throw v;throw this.toSessionError(v,"Failed to resolve session",{stage:"resolveSession"})}}async refreshSession(w,v){try{return await this.resourceManager.refreshSession(w,v)}catch(b){throw b instanceof f.APIError&&this.emitError(b),this.toSessionError(b,"Failed to refresh session",{stage:"refreshSession",sessionId:w})}}async createNewSession(){return await this.resourceManager.createSession(this.config.userId,this.config.context)}setupEventHandlers(){if(this.connection){switch(this.connectionType){case e.ConnectionType.SOCKET:this.connection.onOpen(()=>{this.onSocketConnectionOpen()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;case e.ConnectionType.SSE:this.connection.onOpen(()=>{this.messageManager.handleConnectionEstablished()}),this.connection.onMessage(w=>{this.onIncomingSocketMessage(w)}),this.connection.onError(w=>{this.onSocketConnectionError(w)}),this.connection.on(l.SYNAPSE_REALTIME_RESERVED_EVENTS.SESSION_EXPIRED,()=>{this.handleSessionExpiry()});break;default:throw new f.ConnectionError("Unsupported connection type",{context:{stage:"setupEventHandlers",connectionType:this.connectionType},hint:"Use ConnectionType.SOCKET or provide a custom handler."})}this.connection.onDisconnect(async w=>{if(w.reason!==t.DisconnectionReason.CLIENT_CLOSED)if(this.connectionAttempts<3&&this.sessionConfig?.session_id&&this.sessionConfig.session_token)try{await this.startSession({session_id:this.sessionConfig.session_id,session_token:this.sessionConfig.session_token})}catch{this.messageManager.handleDisconnect(w)}else this.messageManager.handleDisconnect(w)})}}onSocketConnectionError(w){this.connection?.emit(l.SYNAPSE_REALTIME_EVENTS.ERROR,w);const v=this.toConnectionError(w,"WebSocket connection error",{stage:"onSocketConnectionError"},"Verify network connectivity or attempt to reconnect.");this.emitError(v)}onSocketConnectionOpen(){if(!this.sessionConfig?.session_token){const w=new f.SessionError("Session token not set. Call startSession() first.",{context:{stage:"onSocketConnectionOpen"},hint:"Ensure startSession() completes successfully before socket opens."});throw this.emitError(w),w}this.messageManager.sendSocketAuthMessage(this.sessionConfig.session_token)}onIncomingSocketMessage(w){switch(w.ev){case h.SOCKET_EVENTS.CHAT:this.messageManager.handleIncomingSocketChatMessage(w);break;case h.SOCKET_EVENTS.CONNECTION_ESTABLISHED:this.messageManager.handleConnectionEstablished();break;case h.SOCKET_EVENTS.STREAM:this.messageManager.handleIncomingSocketStreamMessage(w);break;case h.SOCKET_EVENTS.END_OF_STREAM:this.messageManager.handleIncomingSocketEndOfStreamMessage(w);break;case h.SOCKET_EVENTS.PING:this.messageManager.sendSocketPongMessage();break;case h.SOCKET_EVENTS.PONG:this.messageManager.sendSocketPingMessage();break;case h.SOCKET_EVENTS.SYNC:break;case h.SOCKET_EVENTS.ERROR:this.messageManager.handleIncomingSocketErrorMessage(w);break;default:const v=new f.MessageError("Unsupported message type",{context:{stage:"onIncomingSocketMessage",event:w.ev??"unknown"},hint:"Ensure the server is sending supported socket events."});this.emitError(v);return}}async handleSessionExpiry(){if(!this.isRefreshingSession)try{if(this.closeConnection(),!this.sessionConfig?.session_id||!this.sessionConfig?.session_token){const v=new f.SessionError("Session ID or token not found",{context:{stage:"handleSessionExpiry"}});throw this.emitError(v),v}this.isRefreshingSession=!0;const w=await this.refreshSession(this.sessionConfig.session_id,this.sessionConfig.session_token);if(!w.session_id||!w.session_token)throw new f.SessionError("Session refresh failed",{context:{stage:"handleSessionExpiry"}});this.sessionConfig.session_id=w.session_id,this.sessionConfig.session_token=w.session_token,await this.initializeConnection(w),this.setupEventHandlers(),this.config.callbacks?.onSessionRefreshed?.(w)}catch(w){const v=this.toSessionError(w,"Session expired",{stage:"handleSessionExpiry"});this.emitError(v)}finally{this.isRefreshingSession=!1}}toConnectionError(w,v,b,U){return(0,f.normalizeError)(w,f.ConnectionError,v,{context:b,hint:U})}closeConnection(){this.connection&&(this.connection.close(),this.connection=null)}cleanup(){this.connectionAttempts=0,this.sdkEventEmitter?.removeAllListeners?.(),this.messageManager?.cleanupMessageServerState?.()}}return _a.SynapseSDK=B,_a}var Nu={},tm;function k1(){return tm||(tm=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var Za={},nm;function j1(){return nm||(nm=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.USER_FEEDBACK=void 0,Za.USER_FEEDBACK={LIKE:"LIKE",DISLIKE:"DISLIKE",NONE:"NONE"}),Za}var Wa={},rm;function K1(){if(rm)return Wa;rm=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.ToolCall=void 0;const e=_l();let t=class extends e.BaseResource{basePath="/med-assist/api-call-tool";async callTool(i,s,l){return this.post(`${this.basePath}?session_id=${i}&tool_name=${s}`,{tool_params:l})}};return Wa.ToolCall=t,Wa}var rn={},im;function V1(){if(im)return rn;im=1,Object.defineProperty(rn,"__esModule",{value:!0}),rn.SYNAPSE_EICITATION_STATUS=rn.SYNAPSE_TOOL_CALLBACK_NAME=rn.SYNAPSE_COMPONENTS=rn.SYNAPSE_TOOL_NAME=void 0;var e;(function(s){s.MOBILE_VERIFICATION="mobile_verification",s.AVAILABILITY_DATES="availability_dates",s.AVAILABILITY_SLOTS="availability_slots",s.DOCTOR_AVAILABILITY="doctor_availability",s.DOCTOR_DETAILS="doctor_details",s.GET_LOCATION="get_location"})(e||(rn.SYNAPSE_TOOL_NAME=e={}));var t;(function(s){s.MOBILE="mobile_number",s.OTP="otp",s.EMAIL="email_address",s.PILL="pills",s.MULTI="multi",s.DOCTOR_CARD="doctor_card",s.CARD="card",s.MEDIA_CARD="media_card"})(t||(rn.SYNAPSE_COMPONENTS=t={}));var r;(function(s){s.DOCTOR_AVAILABILITY="get_doctor_availability",s.AVAILABILITY_DATES="get_available_dates",s.AVAILABILITY_SLOTS="get_available_slots",s.MOBILE_VERIFICATION="verify_mobile_number",s.DOCTOR_DETAILS="get_doctor_details"})(r||(rn.SYNAPSE_TOOL_CALLBACK_NAME=r={}));var i;return(function(s){s.PROGRESS="progress",s.SUCCESS="success",s.FAILURE="failure"})(i||(rn.SYNAPSE_EICITATION_STATUS=i={})),rn}var Iu={},am;function G1(){return am||(am=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var $a={},sm;function z1(){return sm||(sm=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.ErrorType=void 0,$a.ErrorType={NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",API_ERROR:"API_ERROR",RATE_LIMIT_ERROR:"RATE_LIMIT_ERROR",SERVER_ERROR:"SERVER_ERROR",PARSE_ERROR:"PARSE_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),$a}var _u={},lm;function P1(){return lm||(lm=1,Object.defineProperty(_u,"__esModule",{value:!0})),_u}var es={},om;function Y1(){if(om)return es;om=1,Object.defineProperty(es,"__esModule",{value:!0}),es.SYNAPSE_CONVERSATION=void 0;var e;return(function(t){t.TEXT="text",t.FILE="file",t.AUDIO="audio",t.VOICE="voice"})(e||(es.SYNAPSE_CONVERSATION=e={})),es}var Pr={},cm;function X1(){return cm||(cm=1,(function(e){var t=Pr&&Pr.__createBinding||(Object.create?(function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(i,c,u)}):(function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]})),r=Pr&&Pr.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),r($p(),e)})(Pr)),Pr}var um;function q1(){return um||(um=1,(function(e){var t=Vr&&Vr.__createBinding||(Object.create?(function(Q,T,O,G){G===void 0&&(G=O);var k=Object.getOwnPropertyDescriptor(T,O);(!k||("get"in k?!T.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return T[O]}}),Object.defineProperty(Q,G,k)}):(function(Q,T,O,G){G===void 0&&(G=O),Q[G]=T[O]})),r=Vr&&Vr.__exportStar||function(Q,T){for(var O in Q)O!=="default"&&!Object.prototype.hasOwnProperty.call(T,O)&&t(T,Q,O)};Object.defineProperty(e,"__esModule",{value:!0}),e.SYNAPSE_MESSAGE_TYPES=e.ErrorUtils=e.ErrorType=e.SynapseErrorCode=e.InternalServerError=e.RateLimitError=e.MethodNotAllowedError=e.NotFoundError=e.PermissionDeniedError=e.UnauthorizedError=e.BadRequestError=e.APIConnectionTimeoutError=e.APIUserAbortError=e.APIError=e.SynapseError=e.HttpClient=e.MessageManager=e.ToolCall=e.Session=e.ResourceManager=e.ConnectionType=e.ConnectionFactory=e.SSEConnection=e.WebSocketConnection=e.BaseConnection=e.SynapseSDK=void 0;var i=D1();Object.defineProperty(e,"SynapseSDK",{enumerable:!0,get:function(){return i.SynapseSDK}});var s=Su();Object.defineProperty(e,"BaseConnection",{enumerable:!0,get:function(){return s.BaseConnection}});var l=Up();Object.defineProperty(e,"WebSocketConnection",{enumerable:!0,get:function(){return l.WebSocketConnection}});var c=Tp();Object.defineProperty(e,"SSEConnection",{enumerable:!0,get:function(){return c.SSEConnection}});var u=Ip();Object.defineProperty(e,"ConnectionFactory",{enumerable:!0,get:function(){return u.ConnectionFactory}}),Object.defineProperty(e,"ConnectionType",{enumerable:!0,get:function(){return u.ConnectionType}}),r(Ra(),e);var f=Kp();Object.defineProperty(e,"ResourceManager",{enumerable:!0,get:function(){return f.ResourceManager}}),r(k1(),e);var h=Lp();Object.defineProperty(e,"Session",{enumerable:!0,get:function(){return h.Session}}),r(j1(),e);var m=K1();Object.defineProperty(e,"ToolCall",{enumerable:!0,get:function(){return m.ToolCall}}),r(V1(),e);var B=Xp();Object.defineProperty(e,"MessageManager",{enumerable:!0,get:function(){return B.MessageManager}}),r(Hl(),e),r(G1(),e);var C=Mp();Object.defineProperty(e,"HttpClient",{enumerable:!0,get:function(){return C.HttpClient}});var w=kt();Object.defineProperty(e,"SynapseError",{enumerable:!0,get:function(){return w.SynapseError}}),Object.defineProperty(e,"APIError",{enumerable:!0,get:function(){return w.APIError}}),Object.defineProperty(e,"APIUserAbortError",{enumerable:!0,get:function(){return w.APIUserAbortError}}),Object.defineProperty(e,"APIConnectionTimeoutError",{enumerable:!0,get:function(){return w.APIConnectionTimeoutError}}),Object.defineProperty(e,"BadRequestError",{enumerable:!0,get:function(){return w.BadRequestError}}),Object.defineProperty(e,"UnauthorizedError",{enumerable:!0,get:function(){return w.UnauthorizedError}}),Object.defineProperty(e,"PermissionDeniedError",{enumerable:!0,get:function(){return w.PermissionDeniedError}}),Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return w.NotFoundError}}),Object.defineProperty(e,"MethodNotAllowedError",{enumerable:!0,get:function(){return w.MethodNotAllowedError}}),Object.defineProperty(e,"RateLimitError",{enumerable:!0,get:function(){return w.RateLimitError}}),Object.defineProperty(e,"InternalServerError",{enumerable:!0,get:function(){return w.InternalServerError}}),Object.defineProperty(e,"SynapseErrorCode",{enumerable:!0,get:function(){return w.SynapseErrorCode}});var v=z1();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return v.ErrorType}});var b=Jp();Object.defineProperty(e,"ErrorUtils",{enumerable:!0,get:function(){return b.ErrorUtils}}),r(P1(),e);var U=Hl();Object.defineProperty(e,"SYNAPSE_MESSAGE_TYPES",{enumerable:!0,get:function(){return U.SYNAPSE_MESSAGE_TYPES}}),r(Y1(),e),r(X1(),e)})(Vr)),Vr}var de=q1();function fm(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=fm(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function dm(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=fm(e))&&(i&&(i+=" "),i+=t);return i}const J1=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Z1=(e,t)=>({classGroupId:e,validator:t}),hm=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ml="-",gm=[],W1="arbitrary..",$1=e=>{const t=Ax(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return ex(c);const u=c.split(Ml),f=u[0]===""&&u.length>1?1:0;return pm(u,f,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const f=i[c],h=r[c];return f?h?J1(h,f):f:h||gm}return r[c]||gm}}},pm=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const s=e[t],l=r.nextPart.get(s);if(l){const h=pm(e,t+1,l);if(h)return h}const c=r.validators;if(c===null)return;const u=t===0?e.join(Ml):e.slice(t).join(Ml),f=c.length;for(let h=0;h<f;h++){const m=c[h];if(m.validator(u))return m.classGroupId}},ex=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?W1+i:void 0})(),Ax=e=>{const{theme:t,classGroups:r}=e;return tx(r,t)},tx=(e,t)=>{const r=hm();for(const i in e){const s=e[i];Hu(s,r,i,t)}return r},Hu=(e,t,r,i)=>{const s=e.length;for(let l=0;l<s;l++){const c=e[l];nx(c,t,r,i)}},nx=(e,t,r,i)=>{if(typeof e=="string"){rx(e,t,r);return}if(typeof e=="function"){ix(e,t,r,i);return}ax(e,t,r,i)},rx=(e,t,r)=>{const i=e===""?t:mm(t,e);i.classGroupId=r},ix=(e,t,r,i)=>{if(sx(e)){Hu(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Z1(r,e))},ax=(e,t,r,i)=>{const s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){const[u,f]=s[c];Hu(f,mm(t,u),r,i)}},mm=(e,t)=>{let r=e;const i=t.split(Ml),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=r.nextPart.get(c);u||(u=hm(),r.nextPart.set(c,u)),r=u}return r},sx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const s=(l,c)=>{r[l]=c,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(l){let c=r[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in r?r[l]=c:s(l,c)}}},Mu="!",Bm=":",ox=[],wm=(e,t,r,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:s}),cx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=s=>{const l=[];let c=0,u=0,f=0,h;const m=s.length;for(let b=0;b<m;b++){const U=s[b];if(c===0&&u===0){if(U===Bm){l.push(s.slice(f,b)),f=b+1;continue}if(U==="/"){h=b;continue}}U==="["?c++:U==="]"?c--:U==="("?u++:U===")"&&u--}const B=l.length===0?s:s.slice(f);let C=B,w=!1;B.endsWith(Mu)?(C=B.slice(0,-1),w=!0):B.startsWith(Mu)&&(C=B.slice(1),w=!0);const v=h&&h>f?h-f:void 0;return wm(l,w,C,v)};if(t){const s=t+Bm,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):wm(ox,!1,c,void 0,!0)}if(r){const s=i;i=l=>r({className:l,parseClassName:s})}return i},ux=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let s=[];for(let l=0;l<r.length;l++){const c=r[l],u=c[0]==="[",f=t.has(c);u||f?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},fx=e=>({cache:lx(e.cacheSize),parseClassName:cx(e),sortModifiers:ux(e),...$1(e)}),dx=/\s+/,hx=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=e.trim().split(dx);let f="";for(let h=u.length-1;h>=0;h-=1){const m=u[h],{isExternal:B,modifiers:C,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:b}=r(m);if(B){f=m+(f.length>0?" "+f:f);continue}let U=!!b,Q=i(U?v.substring(0,b):v);if(!Q){if(!U){f=m+(f.length>0?" "+f:f);continue}if(Q=i(v),!Q){f=m+(f.length>0?" "+f:f);continue}U=!1}const T=C.length===0?"":C.length===1?C[0]:l(C).join(":"),O=w?T+Mu:T,G=O+Q;if(c.indexOf(G)>-1)continue;c.push(G);const k=s(Q,U);for(let F=0;F<k.length;++F){const H=k[F];c.push(O+H)}f=m+(f.length>0?" "+f:f)}return f},gx=(...e)=>{let t=0,r,i,s="";for(;t<e.length;)(r=e[t++])&&(i=Cm(r))&&(s&&(s+=" "),s+=i);return s},Cm=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Cm(e[i]))&&(r&&(r+=" "),r+=t);return r},px=(e,...t)=>{let r,i,s,l;const c=f=>{const h=t.reduce((m,B)=>B(m),e());return r=fx(h),i=r.cache.get,s=r.cache.set,l=u,u(f)},u=f=>{const h=i(f);if(h)return h;const m=hx(f,r);return s(f,m),m};return l=c,(...f)=>l(gx(...f))},mx=[],jA=e=>{const t=r=>r[e]||mx;return t.isThemeGetter=!0,t},ym=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Em=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bx=/^\d+\/\d+$/,wx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cx=/\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$/,yx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ei=e=>Bx.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),nr=e=>!!e&&Number.isInteger(Number(e)),Ou=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Un=e=>wx.test(e),bx=()=>!0,xx=e=>Cx.test(e)&&!yx.test(e),vm=()=>!1,Sx=e=>Ex.test(e),Qx=e=>vx.test(e),Ux=e=>!ye(e)&&!Ee(e),Fx=e=>vi(e,Um,vm),ye=e=>ym.test(e),Yr=e=>vi(e,Fm,xx),Ru=e=>vi(e,Hx,Le),bm=e=>vi(e,Sm,vm),Tx=e=>vi(e,Qm,Qx),Ol=e=>vi(e,Tm,Sx),Ee=e=>Em.test(e),As=e=>bi(e,Fm),Nx=e=>bi(e,Mx),xm=e=>bi(e,Sm),Ix=e=>bi(e,Um),_x=e=>bi(e,Qm),Rl=e=>bi(e,Tm,!0),vi=(e,t,r)=>{const i=ym.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},bi=(e,t,r=!1)=>{const i=Em.exec(e);return i?i[1]?t(i[1]):r:!1},Sm=e=>e==="position"||e==="percentage",Qm=e=>e==="image"||e==="url",Um=e=>e==="length"||e==="size"||e==="bg-size",Fm=e=>e==="length",Hx=e=>e==="number",Mx=e=>e==="family-name",Tm=e=>e==="shadow",Ox=px(()=>{const e=jA("color"),t=jA("font"),r=jA("text"),i=jA("font-weight"),s=jA("tracking"),l=jA("leading"),c=jA("breakpoint"),u=jA("container"),f=jA("spacing"),h=jA("radius"),m=jA("shadow"),B=jA("inset-shadow"),C=jA("text-shadow"),w=jA("drop-shadow"),v=jA("blur"),b=jA("perspective"),U=jA("aspect"),Q=jA("ease"),T=jA("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...G(),Ee,ye],F=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],L=()=>[Ee,ye,f],M=()=>[Ei,"full","auto",...L()],W=()=>[nr,"none","subgrid",Ee,ye],ee=()=>["auto",{span:["full",nr,Ee,ye]},nr,Ee,ye],j=()=>[nr,"auto",Ee,ye],se=()=>["auto","min","max","fr",Ee,ye],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...L()],q=()=>[Ei,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Ae=()=>[e,Ee,ye],me=()=>[...G(),xm,bm,{position:[Ee,ye]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Ix,Fx,{size:[Ee,ye]}],P=()=>[Ou,As,Yr],E=()=>["","none","full",h,Ee,ye],te=()=>["",Le,As,Yr],oe=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[Le,Ou,xm,bm],Re=()=>["","none",v,Ee,ye],Fe=()=>["none",Le,Ee,ye],Ze=()=>["none",Le,Ee,ye],ke=()=>[Le,Ee,ye],FA=()=>[Ei,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Un],breakpoint:[Un],color:[bx],container:[Un],"drop-shadow":[Un],ease:["in","out","in-out"],font:[Ux],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Un],shadow:[Un],spacing:["px",Le],text:[Un],"text-shadow":[Un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ei,ye,Ee,U]}],container:["container"],columns:[{columns:[Le,ye,Ee,u]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[nr,"auto",Ee,ye]}],basis:[{basis:[Ei,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Ei,"auto","initial","none",ye]}],grow:[{grow:["",Le,Ee,ye]}],shrink:[{shrink:["",Le,Ee,ye]}],order:[{order:[nr,"first","last","none",Ee,ye]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",r,As,Yr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ee,Ru]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ou,ye]}],"font-family":[{font:[Nx,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,Ee,ye]}],"line-clamp":[{"line-clamp":[Le,"none",Ee,Ru]}],leading:[{leading:[l,...L()]}],"list-image":[{"list-image":["none",Ee,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Ae()}],"text-color":[{text:Ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",Ee,Yr]}],"text-decoration-color":[{decoration:Ae()}],"underline-offset":[{"underline-offset":[Le,"auto",Ee,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nr,Ee,ye],radial:["",Ee,ye],conic:[nr,Ee,ye]},_x,Tx]}],"bg-color":[{bg:Ae()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:Ae()}],"gradient-via":[{via:Ae()}],"gradient-to":[{to:Ae()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:Ae()}],"border-color-x":[{"border-x":Ae()}],"border-color-y":[{"border-y":Ae()}],"border-color-s":[{"border-s":Ae()}],"border-color-e":[{"border-e":Ae()}],"border-color-t":[{"border-t":Ae()}],"border-color-r":[{"border-r":Ae()}],"border-color-b":[{"border-b":Ae()}],"border-color-l":[{"border-l":Ae()}],"divide-color":[{divide:Ae()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,Ee,ye]}],"outline-w":[{outline:["",Le,As,Yr]}],"outline-color":[{outline:Ae()}],shadow:[{shadow:["","none",m,Rl,Ol]}],"shadow-color":[{shadow:Ae()}],"inset-shadow":[{"inset-shadow":["none",B,Rl,Ol]}],"inset-shadow-color":[{"inset-shadow":Ae()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Ae()}],"ring-offset-w":[{"ring-offset":[Le,Yr]}],"ring-offset-color":[{"ring-offset":Ae()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":Ae()}],"text-shadow":[{"text-shadow":["none",C,Rl,Ol]}],"text-shadow-color":[{"text-shadow":Ae()}],opacity:[{opacity:[Le,Ee,ye]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":Ae()}],"mask-image-linear-to-color":[{"mask-linear-to":Ae()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":Ae()}],"mask-image-t-to-color":[{"mask-t-to":Ae()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":Ae()}],"mask-image-r-to-color":[{"mask-r-to":Ae()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":Ae()}],"mask-image-b-to-color":[{"mask-b-to":Ae()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":Ae()}],"mask-image-l-to-color":[{"mask-l-to":Ae()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":Ae()}],"mask-image-x-to-color":[{"mask-x-to":Ae()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":Ae()}],"mask-image-y-to-color":[{"mask-y-to":Ae()}],"mask-image-radial":[{"mask-radial":[Ee,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":Ae()}],"mask-image-radial-to-color":[{"mask-radial-to":Ae()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":Ae()}],"mask-image-conic-to-color":[{"mask-conic-to":Ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,ye]}],filter:[{filter:["","none",Ee,ye]}],blur:[{blur:Re()}],brightness:[{brightness:[Le,Ee,ye]}],contrast:[{contrast:[Le,Ee,ye]}],"drop-shadow":[{"drop-shadow":["","none",w,Rl,Ol]}],"drop-shadow-color":[{"drop-shadow":Ae()}],grayscale:[{grayscale:["",Le,Ee,ye]}],"hue-rotate":[{"hue-rotate":[Le,Ee,ye]}],invert:[{invert:["",Le,Ee,ye]}],saturate:[{saturate:[Le,Ee,ye]}],sepia:[{sepia:["",Le,Ee,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,ye]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[Le,Ee,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Le,Ee,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,Ee,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,Ee,ye]}],"backdrop-invert":[{"backdrop-invert":["",Le,Ee,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Le,Ee,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Le,Ee,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,Ee,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",Ee,ye]}],ease:[{ease:["linear","initial",Q,Ee,ye]}],delay:[{delay:[Le,Ee,ye]}],animate:[{animate:["none",T,Ee,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,Ee,ye]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:ke()}],"skew-x":[{"skew-x":ke()}],"skew-y":[{"skew-y":ke()}],transform:[{transform:[Ee,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:FA()}],"translate-x":[{"translate-x":FA()}],"translate-y":[{"translate-y":FA()}],"translate-z":[{"translate-z":FA()}],"translate-none":["translate-none"],accent:[{accent:Ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Ae()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,ye]}],fill:[{fill:["none",...Ae()]}],"stroke-w":[{stroke:[Le,As,Yr,Ru]}],stroke:[{stroke:["none",...Ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function he(...e){return Ox(dm(e))}function xi(e){if(!e&&e!==0)return"";const t=e instanceof Date?e:new Date(typeof e=="number"?e:Number(e)||e);return Number.isNaN(t.getTime())?"":t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Rx=e=>{switch(e){case de.SYNAPSE_COMPONENTS.DOCTOR_CARD:case de.SYNAPSE_COMPONENTS.CARD:return!0;default:return!1}},Lx=e=>new Promise(t=>setTimeout(t,e)),Nm=x.forwardRef(({className:e,children:t,...r},i)=>g.jsxs(Ep,{ref:i,className:he("relative overflow-hidden",e),...r,children:[g.jsx(T1,{className:"h-full w-full rounded-[inherit] overscroll-contain",children:t}),g.jsx(Im,{}),g.jsx(N1,{})]}));Nm.displayName=Ep.displayName;const Im=x.forwardRef(({className:e,orientation:t="vertical",...r},i)=>g.jsx(yu,{ref:i,orientation:t,className:he("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(pp,{className:"relative flex-1 rounded-full bg-border"})}));Im.displayName=yu.displayName;var Dx=Symbol.for("react.lazy"),Ll=ep[" use ".trim().toString()];function kx(e){return typeof e=="object"&&e!==null&&"then"in e}function _m(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Dx&&"_payload"in e&&kx(e._payload)}function Hm(e){const t=Kx(e),r=x.forwardRef((i,s)=>{let{children:l,...c}=i;_m(l)&&typeof Ll=="function"&&(l=Ll(l._payload));const u=x.Children.toArray(l),f=u.find(Gx);if(f){const h=f.props.children,m=u.map(B=>B===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:B);return g.jsx(t,{...c,ref:s,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(t,{...c,ref:s,children:l})});return r.displayName=`${e}.Slot`,r}var jx=Hm("Slot");function Kx(e){const t=x.forwardRef((r,i)=>{let{children:s,...l}=r;if(_m(s)&&typeof Ll=="function"&&(s=Ll(s._payload)),x.isValidElement(s)){const c=Px(s),u=zx(l,s.props);return s.type!==x.Fragment&&(u.ref=i?wu(i,c):c),x.cloneElement(s,u)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vx=Symbol("radix.slottable");function Gx(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vx}function zx(e,t){const r={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?r[i]=(...u)=>{const f=l(...u);return s(...u),f}:s&&(r[i]=s):i==="style"?r[i]={...s,...l}:i==="className"&&(r[i]=[s,l].filter(Boolean).join(" "))}return{...e,...r}}function Px(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Mm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Om=dm,Yx=((e,t)=>r=>{var i;if(t?.variants==null)return Om(e,r?.class,r?.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(h=>{const m=r?.[h],B=l?.[h];if(m===null)return null;const C=Mm(m)||Mm(B);return s[h][C]}),u=r&&Object.entries(r).reduce((h,m)=>{let[B,C]=m;return C===void 0||(h[B]=C),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:B,className:C,...w}=m;return Object.entries(w).every(v=>{let[b,U]=v;return Array.isArray(U)?U.includes({...l,...u}[b]):{...l,...u}[b]===U})?[...h,B,C]:h},[]);return Om(e,c,f,r?.class,r?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),He=x.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...s},l)=>{const c=i?jx:"button";return g.jsx(c,{className:he(Yx({variant:t,size:r,className:e})),ref:l,...s})});He.displayName="Button";const Xx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),Rm=e=>{const t=qx(e);return t.charAt(0).toUpperCase()+t.slice(1)},Lm=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),Jx=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Zx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Wx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},f)=>x.createElement("svg",{ref:f,...Zx,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:Lm("lucide",s),...!l&&!Jx(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,m])=>x.createElement(h,m)),...Array.isArray(l)?l:[l]]));const Xe=(e,t)=>{const r=x.forwardRef(({className:i,...s},l)=>x.createElement(Wx,{ref:l,iconNode:t,className:Lm(`lucide-${Xx(Rm(e))}`,`lucide-${e}`,i),...s}));return r.displayName=Rm(e),r};const $x=Xe("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const Dm=Xe("building-2",[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]]);const eS=Xe("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const AS=Xe("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);const Lu=Xe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ts=Xe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const km=Xe("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const jm=Xe("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const tS=Xe("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const nS=Xe("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);const rS=Xe("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);const iS=Xe("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);const aS=Xe("euro",[["path",{d:"M4 10h12",key:"1y6xl8"}],["path",{d:"M4 14h9",key:"1loblj"}],["path",{d:"M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",key:"1j6lzo"}]]);const sS=Xe("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const lS=Xe("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const oS=Xe("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]]);const cS=Xe("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const uS=Xe("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);const Dl=Xe("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);const fS=Xe("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);const dS=Xe("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);const Km=Xe("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const hS=Xe("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);const Du=Xe("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);const gS=Xe("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);const pS=Xe("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]]);const Vm=Xe("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const mS=Xe("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);const Gm=Xe("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);const kl=Xe("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);const jl=Xe("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const BS=Xe("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);const wS=Xe("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const ns=Xe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const CS=Xe("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),zm=e=>{let t;const r=new Set,i=(h,m)=>{const B=typeof h=="function"?h(t):h;if(!Object.is(B,t)){const C=t;t=m??(typeof B!="object"||B===null)?B:Object.assign({},t,B),r.forEach(w=>w(t,C))}},s=()=>t,u={setState:i,getState:s,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=e(i,s,u);return u},yS=(e=>e?zm(e):zm),ES=e=>e;function vS(e,t=ES){const r=Na.useSyncExternalStore(e.subscribe,Na.useCallback(()=>t(e.getState()),[e,t]),Na.useCallback(()=>t(e.getInitialState()),[e,t]));return Na.useDebugValue(r),r}const Pm=e=>{const t=yS(e),r=i=>vS(t,i);return Object.assign(r,t),r},bS=(e=>e?Pm(e):Pm);function Ym(e,t){let r;try{r=e()}catch{return}return{getItem:s=>{var l;const c=f=>f===null?null:JSON.parse(f,void 0),u=(l=r.getItem(s))!=null?l:null;return u instanceof Promise?u.then(c):c(u)},setItem:(s,l)=>r.setItem(s,JSON.stringify(l,void 0)),removeItem:s=>r.removeItem(s)}}const ku=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(i){return ku(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return ku(i)(r)}}}},xS=(e,t)=>(r,i,s)=>{let l={storage:Ym(()=>localStorage),partialize:b=>b,version:0,merge:(b,U)=>({...U,...b}),...t},c=!1;const u=new Set,f=new Set;let h=l.storage;if(!h)return e((...b)=>{r(...b)},i,s);const m=()=>{const b=l.partialize({...i()});return h.setItem(l.name,{state:b,version:l.version})},B=s.setState;s.setState=(b,U)=>(B(b,U),m());const C=e((...b)=>(r(...b),m()),i,s);s.getInitialState=()=>C;let w;const v=()=>{var b,U;if(!h)return;c=!1,u.forEach(T=>{var O;return T((O=i())!=null?O:C)});const Q=((U=l.onRehydrateStorage)==null?void 0:U.call(l,(b=i())!=null?b:C))||void 0;return ku(h.getItem.bind(h))(l.name).then(T=>{if(T)if(typeof T.version=="number"&&T.version!==l.version){if(l.migrate){const O=l.migrate(T.state,T.version);return O instanceof Promise?O.then(G=>[!0,G]):[!0,O]}}else return[!1,T.state];return[!1,void 0]}).then(T=>{var O;const[G,k]=T;if(w=l.merge(k,(O=i())!=null?O:C),r(w,!0),G)return m()}).then(()=>{Q?.(w,void 0),w=i(),c=!0,f.forEach(T=>T(w))}).catch(T=>{Q?.(void 0,T)})};return s.persist={setOptions:b=>{l={...l,...b},b.storage&&(h=b.storage)},clearStorage:()=>{h?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>v(),hasHydrated:()=>c,onHydrate:b=>(u.add(b),()=>{u.delete(b)}),onFinishHydration:b=>(f.add(b),()=>{f.delete(b)})},l.skipHydration||v(),w||C},jt={USER:"user",ASSISTANT:"assistant"};var BA=(e=>(e.IDLE="idle",e.LISTENING="listening",e.ERROR="error",e.PROCESSING="processing",e.TRANSCRIBING="transcribing",e))(BA||{}),PA=(e=>(e.CONNECTED="connected",e.NOT_CONNECTED="not_connected",e.CONNECTING="connecting",e))(PA||{});let rr="";const SS=e=>{rr=`med-assist-store-${e}`},Xm={sessionId:"",sessionToken:"",isStreaming:!1,recordingStatus:BA.IDLE,isWaitingForResponse:!1,error:null,isTimeoutError:!1,startNewConnection:!1,showRetryButton:!1,chats:{},inlineText:null,isRefreshingSession:!1,ConnectionStatus:PA.CONNECTING,streamingTimeoutId:null,responseTimeoutId:null,lastStreamingActivity:null,progressMessage:null,fileUploadPerSession:0,elicitationState:{},toastMessage:null},Je=bS()(xS((e,t)=>({sessionId:"",setSessionId:r=>e({sessionId:r}),sessionToken:"",setSessionToken:r=>e({sessionToken:r}),initialMessage:null,setInitialMessage:r=>e({initialMessage:r}),agentId:"",setAgentId:r=>e({agentId:r}),userId:"",setUserId:r=>e({userId:r}),context:null,setContext:r=>e({context:r}),connectionStatus:PA.CONNECTING,setConnectionStatus:r=>e({connectionStatus:r}),isStreaming:!1,setIsStreaming:r=>e({isStreaming:r}),isWaitingForResponse:!1,setIsWaitingForResponse:r=>e({isWaitingForResponse:r}),progressMessage:null,setProgressMessage:r=>e({progressMessage:r}),recordingStatus:BA.IDLE,setRecordingStatus:r=>e({recordingStatus:r}),startNewConnection:!1,setStartNewConnection:r=>e({startNewConnection:r}),fileUploadPerSession:0,setFileUploadPerSession:r=>e({fileUploadPerSession:r}),elicitationState:{},setElicitationState:r=>e({elicitationState:r}),upsertElicitationState:(r,i)=>{const s=t().elicitationState;e({elicitationState:{...s,[r]:i}})},toastMessage:null,setToastMessage:r=>e({toastMessage:r}),inlineText:null,setInlineText:r=>e({inlineText:r}),isBotIconAnimating:!1,setIsBotIconAnimating:r=>e({isBotIconAnimating:r}),isMobile:!1,setIsMobile:r=>e({isMobile:r}),displayMode:"widget",setDisplayMode:r=>e({displayMode:r}),toggleDisplayMode:()=>e({displayMode:t().displayMode==="full"?"widget":"full"}),initialDisplayMode:"widget",setInitialDisplayMode:r=>e({initialDisplayMode:r}),chats:{},addMessageToSession:(r,i)=>{e(s=>({chats:{...s.chats,[r]:[...s.chats[r]||[],i]}}))},updateMessageInSession:(r,i,s)=>e(l=>({chats:{...l.chats,[r]:(l.chats[r]||[]).map(c=>c.id===i?{...c,...s}:c)}})),getMessagesForSession:r=>t().chats[r]||[],clearMessagesForSession:r=>e(i=>({chats:{...i.chats,[r]:[]}})),clearAllChats:()=>e({chats:{}}),error:null,setError:r=>e({error:r}),clearError:()=>e({error:null,isTimeoutError:!1,showRetryButton:!1,startNewConnection:!1}),showRetryButton:!1,setShowRetryButton:r=>e({showRetryButton:r}),isTimeoutError:!1,setTimeoutError:r=>e({isTimeoutError:r}),clearSession:async()=>{e(Xm),await sessionStorage.removeItem(rr||`med-assist-store-${t().agentId}`)},streamingTimeoutId:null,setStreamingTimeoutId:r=>e({streamingTimeoutId:r}),clearStreamingTimeout:()=>{const r=t();r.streamingTimeoutId&&(clearTimeout(r.streamingTimeoutId),e({streamingTimeoutId:null}))},responseTimeoutId:null,setResponseTimeoutId:r=>e({responseTimeoutId:r}),clearResponseTimeout:()=>{const r=t();r.responseTimeoutId&&(clearTimeout(r.responseTimeoutId),e({responseTimeoutId:null}))},lastStreamingActivity:null,setLastStreamingActivity:r=>e({lastStreamingActivity:r})}),{name:"med-assist-store",storage:Ym(()=>({getItem:()=>rr?sessionStorage.getItem(rr):null,setItem:(e,t)=>{rr&&sessionStorage.setItem(rr,t)},removeItem:()=>{rr&&sessionStorage.removeItem(rr)}})),partialize:e=>({agentId:e.agentId,userId:e.userId,context:e.context,chats:e.chats,sessionId:e.sessionId,sessionToken:e.sessionToken,initialMessage:e.initialMessage,connectionStatus:e.connectionStatus,elicitationState:e.elicitationState})})),QS=e=>{const t=`med-assist-store-${e}`;let r=null;try{const i=sessionStorage.getItem(t);if(i){const s=JSON.parse(i);s?.state&&(r=s.state)}}catch{}Je.setState(Xm),r&&Je.setState(r)},ju=x.createContext(null),US=({children:e})=>{const[t,r]=x.useState(null);return g.jsx(ju.Provider,{value:{synapse:t,setSynapse:r},children:e})},FS=()=>{const e=x.useContext(ju);if(!e)throw new Error("useSynapse must be used within a SynapseProvider");return e.synapse},TS=()=>{const e=x.useContext(ju);if(!e)throw new Error("useSynapseSetter must be used within a SynapseProvider");return e.setSynapse},NS=()=>{const[e,t]=x.useState(de.VOICE_AGENT_STATE.IDLE),[r,i]=x.useState(!1),s=FS(),{setError:l}=Je();x.useEffect(()=>{if(!s)return;const m=s.voice,B=w=>{t(w)},C=()=>{l({title:"Voice connection failed. Please try again."})};return m.on(de.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.on(de.VOICE_AGENT_EVENTS.ERROR,C),()=>{m.off(de.VOICE_AGENT_EVENTS.STATE_CHANGED,B),m.off(de.VOICE_AGENT_EVENTS.ERROR,C)}},[s,l]);const c=x.useCallback(async()=>{if(!s){l({title:"Voice connection failed. Please try again."});return}await s.voice.connect()},[s,l]),u=x.useCallback(()=>{s?.voice.disconnect(),r&&i(!1)},[s]),f=x.useCallback(()=>{s?.voice.reset(),r&&i(!1)},[s]),h=x.useCallback(()=>{i(m=>!m),s?.voice.toggleMute()},[s]);return{state:e,isMuted:r,connect:c,disconnect:u,reset:f,toggleMute:h}},Fn=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("rounded-xl bg-elicitationBg text-card-foreground shadow",e),...t}));Fn.displayName="Card";const Ku=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex flex-col space-y-1.5 p-6",e),...t}));Ku.displayName="CardHeader";const qm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("font-semibold leading-none tracking-tight",e),...t}));qm.displayName="CardTitle";const IS=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("text-sm text-muted-foreground",e),...t}));IS.displayName="CardDescription";const Kl=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("p-6 pt-0",e),...t}));Kl.displayName="CardContent";const Jm=x.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:he("flex items-center p-6 pt-0",e),...t}));Jm.displayName="CardFooter";function _S(e,t=[]){let r=[];function i(l,c){const u=x.createContext(c);u.displayName=l+"Context";const f=r.length;r=[...r,c];const h=B=>{const{scope:C,children:w,...v}=B,b=C?.[e]?.[f]||u,U=x.useMemo(()=>v,Object.values(v));return g.jsx(b.Provider,{value:U,children:w})};h.displayName=l+"Provider";function m(B,C){const w=C?.[e]?.[f]||u,v=x.useContext(w);if(v)return v;if(c!==void 0)return c;throw new Error(`\`${B}\` must be used within \`${l}\``)}return[h,m]}const s=()=>{const l=r.map(c=>x.createContext(c));return function(u){const f=u?.[e]||l;return x.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return s.scopeName=e,[i,HS(s,...t)]}function HS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const B=f(l)[`__scope${h}`];return{...u,...B}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var MS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vu=MS.reduce((e,t)=>{const r=Hm(`Primitive.${t}`),i=x.forwardRef((s,l)=>{const{asChild:c,...u}=s,f=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(f,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),Gu={exports:{}},zu={};var Zm;function OS(){if(Zm)return zu;Zm=1;var e=Ql();function t(B,C){return B===C&&(B!==0||1/B===1/C)||B!==B&&C!==C}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue;function u(B,C){var w=C(),v=i({inst:{value:w,getSnapshot:C}}),b=v[0].inst,U=v[1];return l(function(){b.value=w,b.getSnapshot=C,f(b)&&U({inst:b})},[B,w,C]),s(function(){return f(b)&&U({inst:b}),B(function(){f(b)&&U({inst:b})})},[B]),c(w),w}function f(B){var C=B.getSnapshot;B=B.value;try{var w=C();return!r(B,w)}catch{return!0}}function h(B,C){return C()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return zu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,zu}var Wm;function RS(){return Wm||(Wm=1,Gu.exports=OS()),Gu.exports}var LS=RS();function DS(){return LS.useSyncExternalStore(kS,()=>!0,()=>!1)}function kS(){return()=>{}}var Pu="Avatar",[jS]=_S(Pu),[KS,$m]=jS(Pu),e0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,...i}=e,[s,l]=x.useState("idle");return g.jsx(KS,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:g.jsx(Vu.span,{...i,ref:t})})});e0.displayName=Pu;var A0="AvatarImage",t0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...l}=e,c=$m(A0,r),u=VS(i,l),f=tr(h=>{s(h),c.onImageLoadingStatusChange(h)});return Ar(()=>{u!=="idle"&&f(u)},[u,f]),u==="loaded"?g.jsx(Vu.img,{...l,ref:t,src:i}):null});t0.displayName=A0;var n0="AvatarFallback",r0=x.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:i,...s}=e,l=$m(n0,r),[c,u]=x.useState(i===void 0);return x.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>u(!0),i);return()=>window.clearTimeout(f)}},[i]),c&&l.imageLoadingStatus!=="loaded"?g.jsx(Vu.span,{...s,ref:t}):null});r0.displayName=n0;function i0(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function VS(e,{referrerPolicy:t,crossOrigin:r}){const i=DS(),s=x.useRef(null),l=i?(s.current||(s.current=new window.Image),s.current):null,[c,u]=x.useState(()=>i0(l,e));return Ar(()=>{u(i0(l,e))},[l,e]),Ar(()=>{const f=B=>()=>{u(B)};if(!l)return;const h=f("loaded"),m=f("error");return l.addEventListener("load",h),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof r=="string"&&(l.crossOrigin=r),()=>{l.removeEventListener("load",h),l.removeEventListener("error",m)}},[l,r,t]),c}var a0=e0,s0=t0,l0=r0;const Yu=x.forwardRef(({className:e,...t},r)=>g.jsx(a0,{ref:r,className:he("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Yu.displayName=a0.displayName;const o0=x.forwardRef(({className:e,...t},r)=>g.jsx(s0,{ref:r,className:he("aspect-square h-full w-full",e),...t}));o0.displayName=s0.displayName;const Xu=x.forwardRef(({className:e,...t},r)=>g.jsx(l0,{ref:r,className:he("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xu.displayName=l0.displayName;const c0=x.createContext(!1);function GS({enabled:e,children:t}){return g.jsx(c0.Provider,{value:e,children:t})}function zS(){return x.useContext(c0)}const u0="(max-width: 768px), (pointer: coarse)",f0=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i;function PS(){if(typeof window>"u")return!1;const e=window.matchMedia?.(u0)?.matches??!1,t=f0.test(navigator?.userAgent??"");return e||t}function d0(){const[e,t]=x.useState(PS);return x.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(u0),i=f0.test(navigator?.userAgent??""),s=()=>t(r.matches||i);return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),e}function YS({onClose:e,showCloseButton:t=!0,title:r,titleImg:i,tagline:s,iconUrl:l,startNewConversation:c,voiceAgentState:u="idle",headerTinted:f=!1,onToggleDisplayMode:h}){const m=d0(),C=zS()&&!m,w=Je(M=>M.displayMode)==="full",v=Je(M=>M.initialDisplayMode)==="full",U=(w?!1:f)?"text-primary-foreground":"text-foreground",Q=Je(M=>M.connectionStatus),[T,O]=x.useState(!1),G=x.useRef(null),k=x.useMemo(()=>u==="connected"||u==="connecting"||u==="listening"||u==="speaking"||u==="thinking",[u]),F=x.useCallback(()=>{T||(O(!0),G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{G.current=null,O(!1)},6e3),c())},[T,c]);x.useEffect(()=>{Q===de.ConnectionStatus.CONNECTED&&(O(!1),G.current&&clearTimeout(G.current))},[Q]);const L=(()=>{switch(Q){case de.ConnectionStatus.CONNECTED:return{dotColor:"bg-green-500",text:s||"Online",textColor:"text-green-600"};case de.ConnectionStatus.CONNECTING:return{dotColor:"bg-amber-500",text:"Connecting",textColor:"text-amber-600"};case de.ConnectionStatus.NOT_CONNECTED:return{dotColor:"bg-red-500",text:"Not Connected",textColor:"text-red-600"};default:return{dotColor:"bg-text-tertiary",text:"Not Connected",textColor:"text-text-secondary"}}})();return g.jsx("div",{className:"px-6 py-3",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative flex-shrink-0",children:[g.jsx(Yu,{className:"w-12 h-12 bg-gradient-to-br from-primary to-primary flex-shrink-0 shadow-md ring-0",children:g.jsx(Xu,{className:"text-primary-foreground font-bold text-lg bg-transparent",children:l?g.jsx("img",{src:l,alt:"Bot Icon",className:"w-12 h-12 rounded-full object-cover"}):g.jsx("span",{className:"text-primary-foreground font-bold text-lg bg-transparent",children:"MC"})})}),g.jsx("div",{className:he("absolute bottom-0 right-0 w-3.5 h-3.5 rounded-full border-2 border-white shadow-sm",L.dotColor,Q===de.ConnectionStatus.CONNECTING&&"animate-pulse")})]}),g.jsxs("div",{className:"flex flex-col",children:[i?g.jsx("img",{src:i,alt:"",className:"h-6 object-contain"}):g.jsx("p",{className:he("text-lg font-semibold synapse-header-title",U),children:r||"Health Assist"}),g.jsx("div",{className:"flex items-center gap-1.5",children:g.jsx("span",{className:"text-xs font-medium",style:{color:"var(--header-tagline)"},children:L.text})})]})]}),g.jsxs("div",{className:he("flex items-center",!C&&"gap-2"),children:[!k&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",title:"Start New Chat",onClick:F,disabled:T,className:he("h-8 w-8 p-1.5 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200 disabled:opacity-60 disabled:pointer-events-none",U),children:g.jsx(Km,{className:"w-5 h-5"})}),C&&g.jsx(He,{onClick:h,type:"button",variant:"ghost",size:"icon",title:w?"Exit fullscreen":"Enter fullscreen",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:w?g.jsx(gS,{className:"w-8 h-8"}):g.jsx(dS,{className:"w-8 h-8"})}),(t||!v)&&g.jsx(He,{onClick:e,type:"button",variant:"ghost",size:"icon",title:"Close",className:he("h-8 w-8 hover:bg-primary hover:text-primary-foreground rounded-full transition-all duration-200",U),children:g.jsx(ns,{className:"w-8 h-8"})})]})]})})}const qu=5,XS=10*1024*1024,Vl={width:384,height:600},Gl=20,qS=150;function JS({defaultPosition:e,enabled:t=!0,onDragStart:r,onDragEnd:i}={}){const s=x.useCallback(()=>typeof window>"u"?{x:0,y:0}:{x:window.innerWidth-Vl.width-Gl,y:window.innerHeight-Vl.height-Gl},[]),[l,c]=x.useState(()=>e??s()),[u,f]=x.useState(!1),h=x.useRef({x:0,y:0}),m=x.useRef(null),B=x.useRef(!1);x.useEffect(()=>{t||(B.current=!1)},[t]),x.useLayoutEffect(()=>{!t||B.current||typeof window>"u"||(c(e||s()),B.current=!0)},[t,e,s]),x.useEffect(()=>{if(!t||typeof window>"u")return;let b=null;const U=()=>{c(T=>{const O=Math.max(0,window.innerWidth-Vl.width-Gl),G=Math.max(0,window.innerHeight-Vl.height-Gl),k=Math.max(0,Math.min(T.x,O)),F=Math.max(0,Math.min(T.y,G));return k===T.x&&F===T.y?T:{x:k,y:F}})},Q=()=>{b!==null&&clearTimeout(b),b=setTimeout(U,qS)};return window.addEventListener("resize",Q),()=>{window.removeEventListener("resize",Q),b!==null&&clearTimeout(b)}},[t]);const C=x.useCallback(b=>{if(!t)return;if(!b.target.closest(".synapse-chat-widget-header")){f(!1);return}b.preventDefault(),f(!0);const Q=m.current;if(Q){const T=Q.getBoundingClientRect();h.current={x:b.clientX-T.left,y:b.clientY-T.top}}else h.current={x:b.clientX-l.x,y:b.clientY-l.y};r?.()},[t,l.x,l.y,r]),w=x.useCallback(b=>{if(!t||!u)return;const U=b.clientX-h.current.x,Q=b.clientY-h.current.y,T=window.innerWidth-(m.current?.offsetWidth||0),O=window.innerHeight-(m.current?.offsetHeight||0),G=Math.max(0,Math.min(U,T)),k=Math.max(0,Math.min(Q,O));c({x:G,y:k})},[u,t]),v=x.useCallback(()=>{!t||!u||(f(!1),i?.())},[u,i]);return x.useEffect(()=>{if(!t)return;const b=m.current;if(b)return b.addEventListener("mousedown",C),()=>{b.removeEventListener("mousedown",C)}},[t,C]),x.useEffect(()=>{if(u)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",v),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),document.body.style.cursor="",document.body.style.userSelect=""}},[u,w,v]),{position:l,isDragging:u,elementRef:m,setPosition:c}}const Ju="#6B5CE0",zl={background:"#F0F0F0",backgroundImage:void 0,primary:Ju,textColor:"black"},ZS="rgba(0, 0, 0, 0.4)",WS="24px";function $S(e){if(e==="dark")return"white";if(e==="light")return"black"}function eQ(e){const t=e?.primary??e?.primaryColor??zl.primary,r=e?.textColor??$S(e?.mode);return{background:e?.background??zl.background,backgroundImage:e?.backgroundImage??zl.backgroundImage,primary:t,primaryColor:t,textColor:r??zl.textColor,mode:e?.mode,headerTinted:e?.headerTinted,secondaryColor:e?.secondaryColor,tertiaryColor:e?.tertiaryColor}}function AQ(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16)/255,r=parseInt(e.substring(2,4),16)/255,i=parseInt(e.substring(4,6),16)/255,s=Math.max(t,r,i),l=Math.min(t,r,i);let c=0,u=0;const f=(s+l)/2;if(s!==l){const m=s-l;switch(u=f>.5?m/(2-s-l):m/(s+l),s){case t:c=((r-i)/m+(r<i?6:0))/6;break;case r:c=((i-t)/m+2)/6;break;case i:c=((t-r)/m+4)/6;break}}c=Math.round(c*360),u=Math.round(u*100);const h=Math.round(f*100);return`${c} ${u}% ${h}%`}function tQ(e){const t=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);if(!t)throw new Error("Invalid RGB format");const r=parseInt(t[1],10)/255,i=parseInt(t[2],10)/255,s=parseInt(t[3],10)/255,l=Math.max(r,i,s),c=Math.min(r,i,s);let u=0,f=0;const h=(l+c)/2;if(l!==c){const B=l-c;switch(f=h>.5?B/(2-l-c):B/(l+c),l){case r:u=((i-s)/B+(i<s?6:0))/6;break;case i:u=((s-r)/B+2)/6;break;case s:u=((r-i)/B+4)/6;break}}u=Math.round(u*360),f=Math.round(f*100);const m=Math.round(h*100);return`${u} ${f}% ${m}%`}function nQ(e){const t=e.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);if(!t)throw new Error("Invalid HSL format");return`${t[1]} ${t[2]}% ${t[3]}%`}function Zu(e){if(!e||typeof e!="string")throw new Error("Color must be a non-empty string");const t=e.trim();if(t.startsWith("#"))return AQ(t);if(t.startsWith("rgb"))return tQ(t);if(t.startsWith("hsl"))return nQ(t);if(/^\d+\s+\d+%\s+\d+%$/.test(t))return t;throw new Error(`Unsupported color format: ${e}`)}function h0(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);return t?parseInt(t[3],10)/100:.5}function Wu(e){return h0(e)>.5?"0 0% 9%":"0 0% 98%"}function rQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return"0 0% 96%";const r=t[1],i=Math.max(0,parseInt(t[2],10)-5);return`${r} ${i}% 96%`}function iQ(e){const t=e.match(/(\d+)\s+(\d+)%\s+(\d+)%/);if(!t)return{50:"262 83% 98%",100:"262 83% 96%",200:"262 83% 92%",300:"262 83% 85%",400:"262 83% 75%",500:"262 83% 58%",600:"262 83% 50%",700:"262 83% 40%",800:"262 83% 30%",900:"262 83% 20%"};const r=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10);return{50:`${r} ${Math.max(0,i-20)}% ${Math.min(98,s+40)}%`,100:`${r} ${Math.max(0,i-15)}% ${Math.min(96,s+35)}%`,200:`${r} ${Math.max(0,i-10)}% ${Math.min(92,s+30)}%`,300:`${r} ${Math.max(0,i-5)}% ${Math.min(85,s+20)}%`,400:`${r} ${i}% ${Math.min(75,s+10)}%`,500:`${r} ${i}% ${s}%`,600:`${r} ${Math.min(100,i+5)}% ${Math.max(50,s-10)}%`,700:`${r} ${Math.min(100,i+10)}% ${Math.max(40,s-20)}%`,800:`${r} ${Math.min(100,i+15)}% ${Math.max(30,s-30)}%`,900:`${r} ${Math.min(100,i+20)}% ${Math.max(20,s-40)}%`}}function g0(e,t){const r=t.primary??Ju,i=t.textColor??"black",s=!!t.backgroundImage,l=t.mode==="dark"||i==="white",c=t.headerTinted??!1,u=(w,v)=>{const b=e instanceof ShadowRoot?e.host:e;b instanceof HTMLElement&&b.style.setProperty(w,v)};let f;try{f=Zu(r)}catch{f=Zu(Ju)}u("--primary",f),u("--primary-foreground",Wu(f)),u("--ring",f),u("--border-primary",f);const h=iQ(f);for(const[w,v]of Object.entries(h))u(`--primary-${w}`,v);const m=Wu(f);if(u("--color-on-primary",m),s)u("--background","0 0% 0% / 0"),u("--widget-bg-overlay","transparent");else{const w=l?"#191919":"#F0F0F0";try{u("--background",Zu(w))}catch{u("--background",l?"0 0% 10%":"0 0% 94.1%")}u("--widget-bg-overlay",`hsl(${f} / ${c?.05:.1})`)}if(l?u("--bot-message-bg","var(--black-600)"):u("--bot-message-bg","var(--white-600)"),l?u("--card","0 0% 0% / 0.6"):u("--card","0 0% 100% / 0.6"),u("--bot-message-border",rQ(l?"0 0% 100%":"0 0% 9%")),l?(u("--foreground","0 0% 100%"),u("--card-foreground","0 0% 100%"),u("--popover-foreground","0 0% 100%"),u("--muted-foreground","0 0% 70%"),u("--normal-text-color","var(--white-1000)")):(u("--foreground","0 0% 0%"),u("--card-foreground","0 0% 0%"),u("--popover-foreground","0 0% 0%"),u("--muted-foreground","0 0% 30%"),u("--normal-text-color","var(--black-1000)")),s?(u("--header-bg","transparent"),u("--header-stroke",l?"var(--white-200)":"var(--black-200)")):c?(u("--header-bg",`hsl(${f})`),u("--header-stroke",`hsl(${f} / 0.3)`)):(u("--header-bg",l?"var(--black-700)":"var(--white-700)"),u("--header-stroke",`hsl(${f} / 0.3)`)),s?(u("--footer-bg","transparent"),u("--footer-stroke",l?"var(--white-200)":"var(--black-200)")):(u("--footer-bg",l?"var(--black-700)":"var(--white-700)"),u("--footer-stroke",`hsl(${f} / 0.3)`)),c&&!s){const w=h0(m)>.5;u("--header-tagline",w?"var(--white-600)":"var(--black-600)")}else u("--header-tagline",l?"var(--white-600)":"var(--black-600)");u("--elicitation-bg",l?"var(--black-1000)":"var(--white-1000)"),u("--input-box-bg",l?"var(--white-100)":"var(--black-100)");const B=e instanceof ShadowRoot?e.host:e;B instanceof HTMLElement&&(B.setAttribute("data-text-color",i),B.setAttribute("data-header-tinted",String(c))),s?u("--popover",l?"0 0% 0% / 0.5":"0 0% 100% / 0.5"):c?u("--popover",f):u("--popover",l?"0 0% 0% / 0.7":"0 0% 100% / 0.7");const C=l?"white":"black";for(const w of[50,100,200,300,400,500,600,700,800,900,1e3])u(`--popover-${w}`,`var(--${C}-${w})`);u("--secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--surface-secondary",l?"0 0% 15%":"0 0% 96.1%"),u("--secondary-foreground",l?"0 0% 98%":"0 0% 9%"),u("--muted",l?"0 0% 15%":"0 0% 96.1%"),u("--accent",f),u("--accent-foreground",Wu(f)),s?u("--surface",l?"0 0% 0% / 0.6":"0 0% 100% / 0.6"):u("--surface",l?"0 0% 10%":"0 0% 94.1%"),u("--surface-tertiary",l?"0 0% 12%":"0 0% 98%"),u("--border-subtle",l?"0 0% 20%":"0 0% 89.8%"),u("--border-medium",l?"0 0% 30%":"0 0% 80%"),u("--text-primary",l?"0 0% 100%":"0 0% 3.9%"),u("--text-secondary",l?"0 0% 70%":"0 0% 45.1%"),u("--text-tertiary",l?"0 0% 60%":"0 0% 63.9%"),u("--text-muted",l?"0 0% 70%":"0 0% 45.1%"),u("--border",l?"0 0% 20%":"0 0% 89.8%"),u("--input",l?"0 0% 20%":"0 0% 89.8%"),s?(u("--theme-background-image",`url(${t.backgroundImage})`),u("--theme-background-blur",WS),u("--theme-background-overlay",ZS),B instanceof HTMLElement&&B.classList.add("theme-with-background")):(u("--theme-background-image","none"),u("--theme-background-blur","0px"),u("--theme-background-overlay","rgba(0, 0, 0, 0)"),B instanceof HTMLElement&&B.classList.remove("theme-with-background"))}const aQ=x.lazy(()=>Promise.resolve().then(()=>m4));function p0({isOpen:e,onClose:t,showCloseButton:r=!0,iconUrl:i,onStartNewSession:s,showStartNewChatButton:l,children:c,fullScreenEmptyState:u,title:f,titleImg:h,tagline:m,sessionId:B,chatComposer:C,environment:w,mode:v,onToggleDisplayMode:b,isAuthComponent:U,activeElicitation:Q,voiceAgentState:T,theme:O,hideWatermark:G=!1}){const[k,F]=x.useState(!1),[H,L]=x.useState(!1),M=x.useRef(null),W=v,ee=W==="full",j=x.useRef(null),[se,le]=x.useState("");x.useEffect(()=>{j.current!==null&&j.current!==W&&le(W==="full"?"Switched to fullscreen mode":W==="widget"?"Switched to widget mode":"Switched to mobile layout"),j.current=W},[W]);const z=x.useMemo(()=>eQ(O),[O]),{setIsMobile:R}=Je(E=>E),q=!!U,Ae=async E=>{if(!(!C?.onSend||H)){L(!0);try{await C.onSend(E)}finally{L(!1)}}};x.useEffect(()=>{if(!M.current)return;const E=W==="full"?{...z,headerTinted:!1}:z;g0(M.current,E),W==="full"&&!z.backgroundImage?(M.current.style.setProperty("--background","0 0% 100%"),M.current.style.setProperty("--widget-bg-overlay","transparent")):(M.current.style.removeProperty("--background"),M.current.style.removeProperty("--widget-bg-overlay"),g0(M.current,z))},[z,W]),x.useEffect(()=>{const E=()=>{const te=window?.innerWidth??0,oe=navigator?.userAgent?.toLowerCase()??"",fe=te<768||/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(oe);F(fe),R(fe)};return E(),window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]),x.useLayoutEffect(()=>{if(!e||!k||!M.current)return;const E=M.current;let te=null,oe=null,fe=null,ge=window.visualViewport?.offsetTop??0,Re=0;const Fe=2,Ze=80;if(window.visualViewport){const ke=()=>{if(E&&window.visualViewport){const EA=window.visualViewport.height,bA=window.visualViewport.offsetTop;te=requestAnimationFrame(()=>{E.style.transition="none",E.style.top=`${bA}px`,E.style.left="0",E.style.right="0",E.style.bottom="auto",E.style.width="100vw",E.style.height=`${EA}px`,E.style.maxHeight=`${EA}px`,E.style.minHeight=`${EA}px`,oe&&clearTimeout(oe),oe=setTimeout(()=>{E.style.transition=""},100)})}},FA=()=>{ke()},aA=()=>{if(!E||!window.visualViewport)return;const EA=window.visualViewport.offsetTop,bA=Date.now();Math.abs(EA-ge)<Fe||bA-Re<Ze||(Re=bA,ge=EA,te=requestAnimationFrame(()=>{E.style.transition="none",E.style.top=`${EA}px`,fe&&clearTimeout(fe),fe=setTimeout(()=>{E.style.transition=""},150)}))};return window.visualViewport.addEventListener("resize",FA),window.visualViewport.addEventListener("scroll",aA),ke(),()=>{te&&cancelAnimationFrame(te),oe&&clearTimeout(oe),fe&&clearTimeout(fe),window.visualViewport?.removeEventListener("resize",FA),window.visualViewport?.removeEventListener("scroll",aA),E&&(E.style.width="",E.style.height="",E.style.maxHeight="",E.style.minHeight="",E.style.transition="")}}else{const ke=()=>{E&&(E.style.transition="none",E.style.top="0",E.style.left="0",E.style.right="0",E.style.bottom="auto",E.style.width="100vw",E.style.height="100svh",E.style.maxHeight="100svh",setTimeout(()=>{E.style.transition=""},100))};return window.addEventListener("resize",ke),ke(),()=>{window.removeEventListener("resize",ke),E&&(E.style.width="",E.style.height="",E.style.maxHeight="",E.style.transition="")}}},[e,k]),x.useEffect(()=>{if(e){const E=M.current,te=window.scrollY,oe=document.body.style.cssText,fe=document.documentElement.style.overflow,ge=window.innerWidth-document.documentElement.clientWidth;document.body.style.position="fixed",document.body.style.top=`-${te}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",ge>0&&!k&&(document.body.style.paddingRight=`${ge}px`);let Re=0;const Fe=ke=>{Re=ke.touches[0].clientY},Ze=ke=>{if(ke.touches.length!==1)return;const FA=Re-ke.touches[0].clientY;Re=ke.touches[0].clientY;let aA=ke.target;for(;aA&&aA!==E;){const{overflowY:EA}=window.getComputedStyle(aA);if((EA==="auto"||EA==="scroll")&&aA.scrollHeight>aA.clientHeight){const{scrollTop:bA,scrollHeight:Ut,clientHeight:mt}=aA,yn=bA<=0&&FA<0,Ft=bA+mt>=Ut-1&&FA>0;if(!yn&&!Ft)return;break}aA=aA.parentElement}ke.preventDefault()};return E&&(E.addEventListener("touchstart",Fe,{passive:!0}),E.addEventListener("touchmove",Ze,{passive:!1})),()=>{E&&(E.removeEventListener("touchstart",Fe),E.removeEventListener("touchmove",Ze)),document.body.style.cssText=oe,document.documentElement.style.overflow=fe,window.scrollTo(0,te)}}},[e,k]);const{position:me,elementRef:N}=JS({enabled:e&&!k&&!ee});x.useEffect(()=>{M.current&&(N.current=M.current)},[N]);const I=he("synapse-chat-widget-container","fixed m-0 p-0","box-border",!k&&!ee?"transition-all duration-300":"",k?"w-screen h-[100svh]":ee?"w-screen h-screen":"w-96 h-[600px]","z-[2147483647]",e?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none scale-95"),P=he("w-full h-full relative","bg-background","shadow-2xl","flex","overflow-hidden",z.backgroundImage?"theme-with-background":"",k?"rounded-none border-0 flex-col":ee?"rounded-none border-0 flex-row":"rounded-3xl flex-col");return g.jsxs("div",{ref:M,"data-mode":W,className:I,style:{margin:0,padding:0,border:"none",outline:"none",position:"fixed",zIndex:2147483647,fontSize:"16px",lineHeight:"2.5",userSelect:"auto",...ee&&e&&{top:0,left:0,right:0,bottom:0,width:"100vw",height:"100vh"},...ee&&!e&&{display:"none"},...!k&&!ee&&{left:`${me.x}px`,top:`${me.y}px`,bottom:"auto",right:"auto"},...k&&{top:0,left:0,right:0,bottom:0,width:"100vw",maxHeight:"100svh",height:"100svh",backgroundColor:z.backgroundImage?"transparent":"hsl(var(--background))"}},children:[g.jsx("style",{children:`
|
|
10
10
|
/* Isolate widget from host website styles */
|
|
11
11
|
.synapse-chat-widget-container,
|
|
12
12
|
.synapse-chat-widget-container *,
|
|
@@ -43,8 +43,8 @@ Error generating stack: `+o.message+`
|
|
|
43
43
|
.synapse-chat-widget-container [data-radix-scroll-area-viewport] {
|
|
44
44
|
overscroll-behavior: contain;
|
|
45
45
|
}
|
|
46
|
-
`}),g.jsxs(Tn,{className:q,"data-text-color":J.textColor,style:j?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[g.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:se}),!J.backgroundImage&&g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),J.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${J.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),J.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:J.textColor==="white"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)"}}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[g.jsx("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...ee?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!j&&!ee&&{cursor:e?"grab":"default"}},children:g.jsx(YS,{onClose:t,showCloseButton:r,title:f,titleImg:h,tagline:m,iconUrl:i,startNewConversation:s,voiceAgentState:I,headerTinted:ee?!1:J.headerTinted,onToggleDisplayMode:b})}),(()=>{const E=ee&&!!u,ne=C&&I===fe.VOICE_AGENT_STATE.IDLE?g.jsx(x.Suspense,{fallback:null,children:g.jsx(aQ,{value:C.value,onChange:C.onChange,onSend:Z?te:C.onSend,onFileChange:C.onFileChange,onRemoveFile:C.onRemoveFile,onRecording:C.onRecording,isRecording:C.isRecording,hasAttachment:C.hasAttachment,attachmentFiles:C.attachmentFiles,isDisabled:C.isDisabled||Z&&H,isMobile:j,placeholder:C.placeholder,recordingStatus:C.recordingStatus,theme:J,onStartNewChat:s,showStartNewChatButton:l,isVoiceAgentActive:C.isVoiceAgentActive,handleVoiceMode:C.handleVoiceMode,allowed:C.allowed,isAuthComponent:U,activeElicitationState:Q,isFullScreen:ee&&!E})}):null,oe=g.jsxs(g.Fragment,{children:[B&&w==="development"&&g.jsx("div",{className:"px-6 flex justify-center items-center",children:g.jsxs("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",B]})}),!z&&g.jsxs("div",{className:"px-6 py-1 flex justify-center items-center gap-1 text-foreground opacity-50",children:[g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Eka Care"})]})]}),ue=u&&ee?u({composer:E?ne:null,composerFooter:E?oe:null}):null;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:ue??c}),C&&!E&&g.jsxs("div",{className:he("flex-shrink-0 sticky bottom-0 z-50"),style:{},children:[g.jsx("div",{className:he(ee&&"max-w-2xl mx-auto w-full"),children:ne}),oe]})]})})()]})]})]})}function sQ({state:e}){switch(e){case"speaking":return g.jsx(uQ,{});case"thinking":return g.jsx(cQ,{});case"listening":return g.jsx(oQ,{});default:return g.jsx(lQ,{})}}function lQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voi-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),g.jsxs("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsxs("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsx("filter",{id:"voi-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"14"})})]}),g.jsxs("g",{clipPath:"url(#voi-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),g.jsxs("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[g.jsx("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),g.jsx("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:g.jsx("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),g.jsx("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[g.jsx("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function oQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vol-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),g.jsxs("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsxs("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsx("filter",{id:"vol-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"5"})})]}),g.jsxs("g",{clipPath:"url(#vol-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[g.jsx("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[g.jsx("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[g.jsx("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[g.jsx("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function cQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voth-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),g.jsxs("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),g.jsxs("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),g.jsx("filter",{id:"voth-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"10"})})]}),g.jsxs("g",{clipPath:"url(#voth-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsxs("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[g.jsxs("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[g.jsx("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),g.jsxs("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[g.jsx("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function uQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vot-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),g.jsxs("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsxs("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsx("filter",{id:"vot-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"7"})})]}),g.jsxs("g",{clipPath:"url(#vot-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[g.jsx("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function fQ({state:e,isMuted:t,onEndCall:r,onClose:i,onToggleMute:s,agentName:l="Health Assist",textColor:c="white"}){const[u,f]=x.useState(!1);if(e===fe.VOICE_AGENT_STATE.ERROR)return g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:g.jsx(pS,{className:"w-7 h-7 text-destructive"})}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),g.jsx(Ie,{onClick:i,variant:"outline",className:"mt-2",children:"Close"})]});const h=()=>{if(t)return"You are muted";switch(e){case fe.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
|
|
47
|
-
connecting to an AI agent...`;case
|
|
46
|
+
`}),g.jsxs(Fn,{className:P,"data-text-color":z.textColor,style:k?void 0:{border:"1.5px solid hsl(var(--primary) / 0.5)"},children:[g.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0},children:se}),!z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundColor:"var(--widget-bg-overlay)"}}),z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundImage:`url(${z.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",transform:"scale(1.1)"}}),z.backgroundImage&&g.jsx("div",{className:"absolute inset-0 -z-10",style:{backgroundColor:z.textColor==="white"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)"}}),g.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 h-full",children:[g.jsx("div",{className:"flex-shrink-0 sticky top-0 z-50 synapse-chat-widget-header",style:{...ee?{background:"transparent"}:{backgroundColor:"hsl(var(--background))",backgroundImage:"linear-gradient(var(--header-bg), var(--header-bg))"},borderBottom:"0.5px solid var(--header-stroke)",...!k&&!ee&&{cursor:e?"grab":"default"}},children:g.jsx(YS,{onClose:t,showCloseButton:r,title:f,titleImg:h,tagline:m,iconUrl:i,startNewConversation:s,voiceAgentState:T,headerTinted:ee?!1:z.headerTinted,onToggleDisplayMode:b})}),(()=>{const E=ee&&!!u,te=C&&T===de.VOICE_AGENT_STATE.IDLE?g.jsx(x.Suspense,{fallback:null,children:g.jsx(aQ,{value:C.value,onChange:C.onChange,onSend:q?Ae:C.onSend,onFileChange:C.onFileChange,onRemoveFile:C.onRemoveFile,onRecording:C.onRecording,isRecording:C.isRecording,hasAttachment:C.hasAttachment,attachmentFiles:C.attachmentFiles,isDisabled:C.isDisabled||q&&H,isMobile:k,placeholder:C.placeholder,recordingStatus:C.recordingStatus,theme:z,onStartNewChat:s,showStartNewChatButton:l,isVoiceAgentActive:C.isVoiceAgentActive,handleVoiceMode:C.handleVoiceMode,allowed:C.allowed,isAuthComponent:U,activeElicitationState:Q,isFullScreen:ee&&!E})}):null,oe=g.jsxs(g.Fragment,{children:[B&&w==="development"&&g.jsx("div",{className:"px-6 flex justify-center items-center",children:g.jsxs("p",{className:"text-[8px] text-text-secondary font-mono opacity-50",children:["Session ID: ",B]})}),!G&&g.jsxs("div",{className:"px-6 py-1 flex justify-center items-center gap-1 text-foreground opacity-50",children:[g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Powered by"}),g.jsx("span",{className:"text-[10px] leading-[14px]",style:{fontFamily:"Inter, system-ui, -apple-system, sans-serif",fontWeight:400,fontStyle:"normal",letterSpacing:"0%"},children:"Eka Care"})]})]}),fe=u&&ee?u({composer:E?te:null,composerFooter:E?oe:null}):null;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col relative",children:fe??c}),C&&!E&&g.jsxs("div",{className:he("flex-shrink-0 sticky bottom-0 z-50"),style:{},children:[g.jsx("div",{className:he(ee&&"max-w-2xl mx-auto w-full"),children:te}),oe]})]})})()]})]})]})}function sQ({state:e}){switch(e){case"speaking":return g.jsx(uQ,{});case"thinking":return g.jsx(cQ,{});case"listening":return g.jsx(oQ,{});default:return g.jsx(lQ,{})}}function lQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voi-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voi-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.009",numOctaves:"3",seed:"3",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.009;0.011 0.005;0.005 0.012;0.007 0.009",dur:"30s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"18"})]}),g.jsxs("filter",{id:"voi-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.006",numOctaves:"3",seed:"9",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.006;0.005 0.01;0.012 0.004;0.009 0.006",dur:"25s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsxs("filter",{id:"voi-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.006 0.011",numOctaves:"3",seed:"15",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.006 0.011;0.009 0.007;0.004 0.014;0.006 0.011",dur:"35s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"14",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"16"})]}),g.jsx("filter",{id:"voi-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"14"})})]}),g.jsxs("g",{clipPath:"url(#voi-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.06"}),g.jsxs("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:[g.jsx("ellipse",{cx:"130",cy:"125",rx:"95",ry:"95",fill:"currentColor",opacity:"0.12",children:g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"12s",repeatCount:"indefinite"})}),g.jsx("ellipse",{cx:"108",cy:"112",rx:"85",ry:"85",fill:"currentColor",opacity:"0.1",children:g.jsx("animate",{attributeName:"opacity",values:"0.07;0.13;0.07",dur:"10s",repeatCount:"indefinite"})})]}),g.jsx("g",{filter:"url(#voi-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"40s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;78;85",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;72;65",dur:"12s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"140",rx:"60",ry:"80",fill:"currentColor",opacity:"0.18",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"35s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;68;60",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;72;80",dur:"10s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"105",cy:"130",rx:"50",ry:"40",fill:"currentColor",opacity:"0.2",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"30s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"50;44;50",dur:"9s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"40;48;40",dur:"9s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voi-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.1",children:[g.jsx("animate",{attributeName:"r",values:"28;34;28",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.08;0.14;0.08",dur:"8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.06",strokeWidth:"0.6"})]})}function oQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vol-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vol-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"4",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.012 0.006;0.005 0.013;0.008 0.01",dur:"15s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"22",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"6"})]}),g.jsxs("filter",{id:"vol-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"10",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.006 0.011;0.013 0.004;0.01 0.007",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"18",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsxs("filter",{id:"vol-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"16",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.01 0.008;0.004 0.015;0.007 0.012",dur:"18s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"16",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"5"})]}),g.jsx("filter",{id:"vol-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"5"})})]}),g.jsxs("g",{clipPath:"url(#vol-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.07"}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"95",ry:"70",fill:"currentColor",opacity:"0.3",children:[g.jsx("animate",{attributeName:"rx",values:"95;60;100;55;95",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"70;100;58;95;70",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"55",ry:"85",fill:"currentColor",opacity:"0.26",children:[g.jsx("animate",{attributeName:"rx",values:"55;88;48;82;55",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"85;50;90;55;85",dur:"4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"65",ry:"42",fill:"currentColor",opacity:"0.28",children:[g.jsx("animate",{attributeName:"rx",values:"65;38;70;35;65",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"42;72;38;68;42",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"40",ry:"72",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"40;70;35;65;40",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"72;40;78;42;72",dur:"3.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"78",ry:"55",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"rx",values:"78;48;82;45;78",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"55;80;50;78;55",dur:"4.5s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vol-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"120",r:"30",fill:"currentColor",opacity:"0.14",children:[g.jsx("animate",{attributeName:"r",values:"30;45;22;42;30",dur:"3.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.14;0.24;0.1;0.22;0.14",dur:"3.5s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.07",strokeWidth:"0.6"})]})}function cQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"voth-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"voth-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.01",numOctaves:"3",seed:"6",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.01;0.013 0.005;0.004 0.014;0.008 0.01",dur:"10s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"15"})]}),g.jsxs("filter",{id:"voth-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.01 0.007",numOctaves:"3",seed:"12",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.01 0.007;0.005 0.012;0.014 0.003;0.01 0.007",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"24",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"14"})]}),g.jsxs("filter",{id:"voth-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.007 0.012",numOctaves:"3",seed:"18",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.007 0.012;0.011 0.007;0.003 0.016;0.007 0.012",dur:"12s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"20",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"13"})]}),g.jsx("filter",{id:"voth-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"10"})})]}),g.jsxs("g",{clipPath:"url(#voth-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsxs("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:[g.jsxs("circle",{cx:"120",cy:"120",r:"60",fill:"currentColor",opacity:"0.15",children:[g.jsx("animate",{attributeName:"r",values:"60;90;60",dur:"1.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.18;0.08;0.18",dur:"1.8s",repeatCount:"indefinite"})]}),g.jsxs("circle",{cx:"120",cy:"120",r:"45",fill:"currentColor",opacity:"0.12",children:[g.jsx("animate",{attributeName:"r",values:"45;75;45",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.06;0.15",dur:"1.8s",repeatCount:"indefinite",begin:"0.3s"})]})]}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"110",cy:"100",rx:"85",ry:"65",fill:"currentColor",opacity:"0.35",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"14s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;70;90;75;85",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"65;80;60;78;65",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"132",cy:"138",rx:"60",ry:"82",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"12s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"60;78;55;72;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"82;65;85;68;82",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"132",rx:"52",ry:"38",fill:"currentColor",opacity:"0.32",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"10s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"52;40;55;42;52",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"38;52;35;50;38",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"95",rx:"90",ry:"22",fill:"currentColor",opacity:"0.24",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"11s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"22;38;22",dur:"1.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"140",cy:"98",rx:"38",ry:"28",fill:"currentColor",opacity:"0.25",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"7s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"38;28;42;30;38",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"28;40;25;38;28",dur:"2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#voth-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"30",fill:"currentColor",opacity:"0.2",children:[g.jsx("animate",{attributeName:"r",values:"28;42;30;38;28",dur:"2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.28;0.18;0.25;0.15",dur:"2s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function uQ(){return g.jsxs("svg",{viewBox:"0 0 240 240",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",children:[g.jsxs("defs",{children:[g.jsx("clipPath",{id:"vot-c",children:g.jsx("circle",{cx:"120",cy:"120",r:"112"})}),g.jsxs("filter",{id:"vot-f1",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.009 0.012",numOctaves:"4",seed:"5",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.009 0.012;0.015 0.006;0.005 0.017;0.009 0.012",dur:"7s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"35",xChannelSelector:"R",yChannelSelector:"G",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"8"})]}),g.jsxs("filter",{id:"vot-f2",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.011 0.008",numOctaves:"4",seed:"11",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.011 0.008;0.006 0.013;0.016 0.004;0.011 0.008",dur:"6s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"30",xChannelSelector:"G",yChannelSelector:"R",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsxs("filter",{id:"vot-f3",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[g.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.008 0.014",numOctaves:"4",seed:"17",result:"n",children:g.jsx("animate",{attributeName:"baseFrequency",values:"0.008 0.014;0.012 0.009;0.004 0.018;0.008 0.014",dur:"8s",repeatCount:"indefinite"})}),g.jsx("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"28",xChannelSelector:"R",yChannelSelector:"B",result:"d"}),g.jsx("feGaussianBlur",{in:"d",stdDeviation:"7"})]}),g.jsx("filter",{id:"vot-gl",children:g.jsx("feGaussianBlur",{stdDeviation:"7"})})]}),g.jsxs("g",{clipPath:"url(#vot-c)",children:[g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"currentColor",opacity:"0.08"}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"108",cy:"98",rx:"100",ry:"80",fill:"currentColor",opacity:"0.38",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;72;105;78;92;100",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"80;100;72;95;82;80",dur:"3.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.38;0.24;0.4;0.26;0.36;0.38",dur:"3.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"135",cy:"138",rx:"85",ry:"100",fill:"currentColor",opacity:"0.34",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"85;105;70;98;80;85",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;72;95;68;92;100",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.34;0.22;0.36;0.24;0.32;0.34",dur:"2.8s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"102",cy:"132",rx:"75",ry:"60",fill:"currentColor",opacity:"0.36",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"75;52;78;55;70;75",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"60;80;55;76;62;60",dur:"2.4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.36;0.24;0.38;0.26;0.34;0.36",dur:"2.4s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f1)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"100",rx:"100",ry:"32",fill:"currentColor",opacity:"0.28",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"32;52;28;48;35;32",dur:"2.6s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"100;80;105;85;95;100",dur:"2.6s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f2)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"120",cy:"120",rx:"32",ry:"100",fill:"currentColor",opacity:"0.22",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 120 120;0 120 120",dur:"5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"32;55;28;50;35;32",dur:"3s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"100;75;105;80;95;100",dur:"3s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-f3)",style:{mixBlendMode:"multiply"},children:g.jsxs("ellipse",{cx:"138",cy:"96",rx:"55",ry:"45",fill:"currentColor",opacity:"0.3",children:[g.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 120 120;360 120 120",dur:"4.5s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"rx",values:"55;38;58;40;50;55",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"ry",values:"45;62;42;58;48;45",dur:"2.2s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.3;0.2;0.32;0.22;0.28;0.3",dur:"2.2s",repeatCount:"indefinite"})]})}),g.jsx("g",{filter:"url(#vot-gl)",style:{mixBlendMode:"multiply"},children:g.jsxs("circle",{cx:"120",cy:"118",r:"40",fill:"currentColor",opacity:"0.18",children:[g.jsx("animate",{attributeName:"r",values:"38;55;35;50;40;38",dur:"2.8s",repeatCount:"indefinite"}),g.jsx("animate",{attributeName:"opacity",values:"0.15;0.3;0.18;0.26;0.16;0.15",dur:"2.8s",repeatCount:"indefinite"})]})})]}),g.jsx("circle",{cx:"120",cy:"120",r:"112",fill:"none",stroke:"currentColor",strokeOpacity:"0.08",strokeWidth:"0.6"})]})}function fQ({state:e,isMuted:t,onEndCall:r,onClose:i,onToggleMute:s,agentName:l="Health Assist",textColor:c="white"}){const[u,f]=x.useState(!1);if(e===de.VOICE_AGENT_STATE.ERROR)return g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center bg-surface gap-4 p-8",children:[g.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center",children:g.jsx(pS,{className:"w-7 h-7 text-destructive"})}),g.jsxs("div",{className:"text-center",children:[g.jsx("p",{className:"text-base font-semibold text-foreground",children:"Call Disconnected"}),g.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Something went wrong. Please try again."})]}),g.jsx(He,{onClick:i,variant:"outline",className:"mt-2",children:"Close"})]});const h=()=>{if(t)return"You are muted";switch(e){case de.VOICE_AGENT_STATE.CONNECTING:return`Please wait while we are
|
|
47
|
+
connecting to an AI agent...`;case de.VOICE_AGENT_STATE.SPEAKING:return`${l} is speaking...`;case de.VOICE_AGENT_STATE.LISTENING:return"You are speaking...";case de.VOICE_AGENT_STATE.THINKING:return"One moment please...";case de.VOICE_AGENT_STATE.MUTED:return"You are muted";case de.VOICE_AGENT_STATE.DISCONNECTING:return"Ending session...";default:return"Go ahead, I'm listening..."}},m=e===de.VOICE_AGENT_STATE.SPEAKING||e===de.VOICE_AGENT_STATE.CONNECTING||e===de.VOICE_AGENT_STATE.DISCONNECTING;return g.jsxs("div",{className:"flex-1 flex flex-col bg-surface relative",children:[g.jsx("style",{children:dQ}),g.jsx("div",{className:"py-2.5 text-center bg-primary/15",children:g.jsx("span",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-primary",children:"Voice Mode Active"})}),g.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-5",children:[g.jsx("div",{className:"w-[200px] h-[200px] text-primary",children:g.jsx(sQ,{state:e})}),g.jsx("p",{className:"text-base text-center px-8 whitespace-pre-line leading-6 text-muted-foreground",children:h()})]}),g.jsxs("div",{children:[g.jsx("div",{className:"border-t border-primary/15"}),g.jsxs("div",{className:"py-5 bg-surface flex justify-center items-center gap-6",children:[g.jsx("button",{type:"button",onClick:s,disabled:m,className:"voice-mic-btn","aria-label":t?"Unmute":"Mute",style:{opacity:m?.5:1,cursor:m?"not-allowed":"pointer",background:m?"hsl(var(--primary) / 0.4)":t?c==="black"?"hsl(var(--black-700))":"hsl(var(--white-700))":"hsl(var(--primary))"},children:t?g.jsx(hS,{className:`w-6 h-6 ${c==="black"?"text-white":"text-black"}`}):g.jsx(Du,{className:"w-6 h-6 text-white"})}),g.jsx("button",{type:"button",onClick:()=>f(!0),disabled:e===de.VOICE_AGENT_STATE.DISCONNECTING,className:"voice-end-btn","aria-label":"Exit voice mode",children:g.jsx(ns,{className:"w-5 h-5 text-white"})})]})]}),u&&g.jsx("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black/40",children:g.jsxs("div",{className:"bg-background rounded-2xl shadow-xl mx-6 p-6 w-full max-w-[280px] flex flex-col items-center gap-3",children:[g.jsx("p",{className:"text-base font-semibold text-foreground text-center",children:"Exit voice mode?"}),g.jsx("p",{className:"text-sm text-muted-foreground text-center leading-5",children:"This will close your voice session. You can continue your chat."}),g.jsxs("div",{className:"flex flex-col w-full gap-2 mt-2",children:[g.jsx(He,{onClick:()=>{f(!1),r?.()},className:"w-full bg-red-500 hover:bg-red-600 text-white",children:"Exit and Go Back to Chat"}),g.jsx(He,{variant:"outline",onClick:()=>f(!1),className:"w-full",children:"Keep talking"})]})]})})]})}const dQ=`
|
|
48
48
|
.voice-mic-btn {
|
|
49
49
|
width: 56px;
|
|
50
50
|
height: 56px;
|
|
@@ -84,23 +84,23 @@ connecting to an AI agent...`;case fe.VOICE_AGENT_STATE.SPEAKING:return`${l} is
|
|
|
84
84
|
}
|
|
85
85
|
.voice-end-btn:active { transform: scale(0.95); }
|
|
86
86
|
.voice-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
87
|
-
`;function hQ({title:e,description:t,suggestions:r,onSendMessage:i,disabled:s,composer:l,composerFooter:c,connectionBanner:u}){const f=h=>{const m=h.label||h.value||"";m&&i({message:h.value||m,messageId:Date.now().toString()})};return g.jsxs("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[g.jsxs("div",{className:"flex flex-col px-3 gap-2 items-start",children:[g.jsxs("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",e,"!"]}),t&&g.jsx("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:t})]}),r&&r.length>0&&g.jsx("div",{className:"content-center px-3 flex flex-wrap gap-4 items-center",children:r.map((h,m)=>{const B=h.label||h.value||"";return B?g.jsx("button",{type:"button",onClick:()=>f(h),disabled:s,className:he("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",s?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:B},`${B}-${m}`):null})}),u,l&&g.jsxs("div",{children:[l,c]})]})}function gQ(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BQ={};function m0(e,t){return(BQ.jsx?mQ:pQ).test(e)}const wQ=/[ \t\n\f\r]/g;function CQ(e){return typeof e=="object"?e.type==="text"?B0(e.value):!1:B0(e)}function B0(e){return e.replace(wQ,"")===""}class rs{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}rs.prototype.normal={},rs.prototype.property={},rs.prototype.space=void 0;function w0(e,t){const r={},i={};for(const s of e)Object.assign(r,s.property),Object.assign(i,s.normal);return new rs(r,i,t)}function Wu(e){return e.toLowerCase()}class gt{constructor(t,r){this.attribute=r,this.property=t}}gt.prototype.attribute="",gt.prototype.booleanish=!1,gt.prototype.boolean=!1,gt.prototype.commaOrSpaceSeparated=!1,gt.prototype.commaSeparated=!1,gt.prototype.defined=!1,gt.prototype.mustUseProperty=!1,gt.prototype.number=!1,gt.prototype.overloadedBoolean=!1,gt.prototype.property="",gt.prototype.spaceSeparated=!1,gt.prototype.space=void 0;let yQ=0;const _e=Yr(),HA=Yr(),$u=Yr(),ce=Yr(),hA=Yr(),bi=Yr(),xt=Yr();function Yr(){return 2**++yQ}const ef=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:HA,commaOrSpaceSeparated:xt,commaSeparated:bi,number:ce,overloadedBoolean:$u,spaceSeparated:hA},Symbol.toStringTag,{value:"Module"})),Af=Object.keys(ef);class tf extends gt{constructor(t,r,i,s){let l=-1;if(super(t,r),C0(this,"space",s),typeof i=="number")for(;++l<Af.length;){const c=Af[l];C0(this,Af[l],(i&ef[c])===ef[c])}}}tf.prototype.defined=!0;function C0(e,t,r){r&&(e[t]=r)}function xi(e){const t={},r={};for(const[i,s]of Object.entries(e.properties)){const l=new tf(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,r[Wu(i)]=i,r[Wu(l.attribute)]=i}return new rs(t,r,e.space)}const y0=xi({properties:{ariaActiveDescendant:null,ariaAtomic:HA,ariaAutoComplete:null,ariaBusy:HA,ariaChecked:HA,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:hA,ariaCurrent:null,ariaDescribedBy:hA,ariaDetails:null,ariaDisabled:HA,ariaDropEffect:hA,ariaErrorMessage:null,ariaExpanded:HA,ariaFlowTo:hA,ariaGrabbed:HA,ariaHasPopup:null,ariaHidden:HA,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hA,ariaLevel:ce,ariaLive:null,ariaModal:HA,ariaMultiLine:HA,ariaMultiSelectable:HA,ariaOrientation:null,ariaOwns:hA,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:HA,ariaReadOnly:HA,ariaRelevant:null,ariaRequired:HA,ariaRoleDescription:hA,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:HA,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function E0(e,t){return t in e?e[t]:t}function v0(e,t){return E0(e,t.toLowerCase())}const EQ=xi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bi,acceptCharset:hA,accessKey:hA,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:hA,autoFocus:_e,autoPlay:_e,blocking:hA,capture:null,charSet:null,checked:_e,cite:null,className:hA,cols:ce,colSpan:null,content:null,contentEditable:HA,controls:_e,controlsList:hA,coords:ce|bi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:$u,draggable:HA,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:hA,height:ce,hidden:$u,high:ce,href:null,hrefLang:null,htmlFor:hA,httpEquiv:hA,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:hA,itemRef:hA,itemScope:_e,itemType:hA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:ce,pattern:null,ping:hA,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:hA,required:_e,reversed:_e,rows:ce,rowSpan:ce,sandbox:hA,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:HA,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:HA,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hA,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:HA,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:v0}),vQ=xi({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:xt,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:hA,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:bi,g2:bi,glyphName:bi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,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:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:hA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xt,rev:xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xt,requiredFeatures:xt,requiredFonts:xt,requiredFormats:xt,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xt,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:E0}),b0=xi({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()}}),x0=xi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:v0}),S0=xi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bQ={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"},xQ=/[A-Z]/g,Q0=/-[a-z]/g,SQ=/^data[-\w.:]+$/i;function QQ(e,t){const r=Wu(t);let i=t,s=gt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&SQ.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Q0,FQ);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Q0.test(l)){let c=l.replace(xQ,UQ);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=tf}return new s(i,t)}function UQ(e){return"-"+e.toLowerCase()}function FQ(e){return e.charAt(1).toUpperCase()}const TQ=w0([y0,EQ,b0,x0,S0],"html"),nf=w0([y0,vQ,b0,x0,S0],"svg");function NQ(e){return e.join(" ").trim()}var Si={},rf,U0;function IQ(){if(U0)return rf;U0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
|
|
88
|
-
`,h="/",m="*",B="",C="comment",w="declaration";function v(U,Q){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];Q=Q||{};var I=1,M=1;function z(Ae){var J=Ae.match(t);J&&(I+=J.length);var L=Ae.lastIndexOf(f);M=~L?Ae.length-L:M+Ae.length}function j(){var Ae={line:I,column:M};return function(J){return J.position=new F(Ae),O(),J}}function F(Ae){this.start=Ae,this.end={line:I,column:M},this.source=Q.source}F.prototype.content=U;function H(Ae){var J=new Error(Q.source+":"+I+":"+M+": "+Ae);if(J.reason=Ae,J.filename=Q.source,J.line=I,J.column=M,J.source=U,!Q.silent)throw J}function k(Ae){var J=Ae.exec(U);if(J){var L=J[0];return z(L),U=U.slice(L.length),J}}function O(){k(r)}function $(Ae){var J;for(Ae=Ae||[];J=ee();)J!==!1&&Ae.push(J);return Ae}function ee(){var Ae=j();if(!(h!=U.charAt(0)||m!=U.charAt(1))){for(var J=2;B!=U.charAt(J)&&(m!=U.charAt(J)||h!=U.charAt(J+1));)++J;if(J+=2,B===U.charAt(J-1))return H("End of comment missing");var L=U.slice(2,J-2);return M+=2,z(L),U=U.slice(J),M+=2,Ae({type:C,comment:L})}}function V(){var Ae=j(),J=k(i);if(J){if(ee(),!k(s))return H("property missing ':'");var L=k(l),Z=Ae({type:w,property:b(J[0].replace(e,B)),value:L?b(L[0].replace(e,B)):B});return k(c),Z}}function se(){var Ae=[];$(Ae);for(var J;J=V();)J!==!1&&(Ae.push(J),$(Ae));return Ae}return O(),se()}function b(U){return U?U.replace(u,B):B}return rf=v,rf}var F0;function _Q(){if(F0)return Si;F0=1;var e=Si&&Si.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=r;const t=e(IQ());function r(i,s){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;u?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Si}var is={},T0;function HQ(){if(T0)return is;T0=1,Object.defineProperty(is,"__esModule",{value:!0}),is.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return is.camelCase=f,is}var as,N0;function MQ(){if(N0)return as;N0=1;var e=as&&as.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(_Q()),r=HQ();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,r.camelCase)(u,l)]=f)}),c}return i.default=i,as=i,as}var OQ=MQ();const RQ=uu(OQ),I0=_0("end"),af=_0("start");function _0(e){return t;function t(r){const i=r&&r.position&&r.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 LQ(e){const t=af(e),r=I0(e);if(t&&r)return{start:t,end:r}}function ss(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?H0(e.position):"start"in e||"end"in e?H0(e):"line"in e||"column"in e?sf(e):""}function sf(e){return M0(e&&e.line)+":"+M0(e&&e.column)}function H0(e){return sf(e&&e.start)+"-"+sf(e&&e.end)}function M0(e){return e&&typeof e=="number"?e:1}class st extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",l={},c=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ss(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}st.prototype.file="",st.prototype.name="",st.prototype.reason="",st.prototype.message="",st.prototype.stack="",st.prototype.column=void 0,st.prototype.line=void 0,st.prototype.ancestors=void 0,st.prototype.cause=void 0,st.prototype.fatal=void 0,st.prototype.place=void 0,st.prototype.ruleId=void 0,st.prototype.source=void 0;const lf={}.hasOwnProperty,DQ=new Map,kQ=/[A-Z]/g,jQ=new Set(["table","tbody","thead","tfoot","tr"]),KQ=new Set(["td","th"]),O0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VQ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=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=ZQ(r,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=JQ(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?nf:TQ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=R0(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function R0(e,t,r){if(t.type==="element")return GQ(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zQ(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return YQ(e,t,r);if(t.type==="mdxjsEsm")return PQ(e,t);if(t.type==="root")return XQ(e,t,r);if(t.type==="text")return qQ(e,t)}function GQ(e,t,r){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=nf,e.schema=s),e.ancestors.push(t);const l=D0(e,t.tagName,!1),c=WQ(e,t);let u=cf(e,t);return jQ.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!CQ(f):!0})),L0(e,c,l,t),of(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function zQ(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return e.evaluater.evaluateExpression(i.expression)}ls(e,t.position)}function PQ(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ls(e,t.position)}function YQ(e,t,r){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=nf,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:D0(e,t.name,!0),c=$Q(e,t),u=cf(e,t);return L0(e,c,l,t),of(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function XQ(e,t,r){const i={};return of(i,cf(e,t)),e.create(t,e.Fragment,i,r)}function qQ(e,t){return t.value}function L0(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function of(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function JQ(e,t,r){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?r:t;return u?h(l,c,u):h(l,c)}}function ZQ(e,t){return r;function r(i,s,l,c){const u=Array.isArray(l.children),f=af(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function WQ(e,t){const r={};let i,s;for(s in t.properties)if(s!=="children"&&lf.call(t.properties,s)){const l=eU(e,s,t.properties[s]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&KQ.has(t.tagName)?i=u:r[c]=u}}if(i){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function $Q(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0].expression.properties[0];Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else ls(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];l=e.evaluater.evaluateExpression(u.expression)}else ls(e,t.position);else l=i.value===null?!0:i.value;r[s]=l}return r}function cf(e,t){const r=[];let i=-1;const s=e.passKeys?new Map:DQ;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=R0(e,l,c);u!==void 0&&r.push(u)}return r}function eU(e,t,r){const i=QQ(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?gQ(r):NQ(r)),i.property==="style"){let s=typeof r=="object"?r:AU(e,String(r));return e.stylePropertyNameCase==="css"&&(s=tU(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?bQ[i.property]||i.property:i.attribute,r]}}function AU(e,t){try{return RQ(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,s=new st("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=O0+"#cannot-parse-style-attribute",s}}function D0(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=m0(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=m0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return lf.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);ls(e)}function ls(e,t){const r=new st("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=O0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function tU(e){const t={};let r;for(r in e)lf.call(e,r)&&(t[nU(r)]=e[r]);return t}function nU(e){let t=e.replace(kQ,rU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function rU(e){return"-"+e.toLowerCase()}const uf={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"]},iU={};function aU(e,t){const r=iU,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return k0(e,i,s)}function k0(e,t,r){if(sU(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return j0(e.children,t,r)}return Array.isArray(e)?j0(e,t,r):""}function j0(e,t,r){const i=[];let s=-1;for(;++s<e.length;)i[s]=k0(e[s],t,r);return i.join("")}function sU(e){return!!(e&&typeof e=="object")}const K0=document.createElement("i");function ff(e){const t="&"+e+";";K0.innerHTML=t;const r=K0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function dn(e,t,r,i){const s=e.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function Dt(e,t){return e.length>0?(dn(e,e.length,0,t),e):t}const V0={}.hasOwnProperty;function lU(e){const t={};let r=-1;for(;++r<e.length;)oU(t,e[r]);return t}function oU(e,t){let r;for(r in t){const s=(V0.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let c;if(l)for(c in l){V0.call(s,c)||(s[c]=[]);const u=l[c];cU(s[c],Array.isArray(u)?u:u?[u]:[])}}}function cU(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);dn(e,0,0,i)}function G0(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const hn=rr(/[A-Za-z]/),St=rr(/[\dA-Za-z]/),uU=rr(/[#-'*+\--9=?A-Z^-~]/);function df(e){return e!==null&&(e<32||e===127)}const hf=rr(/\d/),fU=rr(/[\dA-Fa-f]/),dU=rr(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function pt(e){return e!==null&&(e<0||e===32)}function $e(e){return e===-2||e===-1||e===32}const hU=rr(new RegExp("\\p{P}|\\p{S}","u")),gU=rr(/\s/);function rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ui(e){const t=[];let r=-1,i=0,s=0;for(;++r<e.length;){const l=e.charCodeAt(r);let c="";if(l===37&&St(e.charCodeAt(r+1))&&St(e.charCodeAt(r+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(r+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+e.slice(i)}function gA(e,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return $e(f)?(e.enter(r),u(f)):t(f)}function u(f){return $e(f)&&l++<s?(e.consume(f),u):(e.exit(r),t(f))}}const pU={tokenize:mU};function mU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let r;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),gA(e,t,"linePrefix")}function s(u){return e.enter("paragraph"),l(u)}function l(u){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ue(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const BU={tokenize:wU},z0={tokenize:CU};function wU(e){const t=this,r=[];let i=0,s,l,c;return u;function u(M){if(i<r.length){const z=r[i];return t.containerState=z[1],e.attempt(z[0].continuation,f,h)(M)}return h(M)}function f(M){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&I();const z=t.events.length;let j=z,F;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){F=t.events[j][1].end;break}Q(i);let H=z;for(;H<t.events.length;)t.events[H][1].end={...F},H++;return dn(t.events,j+1,0,t.events.slice(z)),t.events.length=H,h(M)}return u(M)}function h(M){if(i===r.length){if(!s)return C(M);if(s.currentConstruct&&s.currentConstruct.concrete)return v(M);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z0,m,B)(M)}function m(M){return s&&I(),Q(i),C(M)}function B(M){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,v(M)}function C(M){return t.containerState={},e.attempt(z0,w,v)(M)}function w(M){return i++,r.push([t.currentConstruct,t.containerState]),C(M)}function v(M){if(M===null){s&&I(),Q(0),e.consume(M);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),b(M)}function b(M){if(M===null){U(e.exit("chunkFlow"),!0),Q(0),e.consume(M);return}return Ue(M)?(e.consume(M),U(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(M),b)}function U(M,z){const j=t.sliceStream(M);if(z&&j.push(null),M.previous=l,l&&(l.next=M),l=M,s.defineSkip(M.start),s.write(j),t.parser.lazy[M.start.line]){let F=s.events.length;for(;F--;)if(s.events[F][1].start.offset<c&&(!s.events[F][1].end||s.events[F][1].end.offset>c))return;const H=t.events.length;let k=H,O,$;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(O){$=t.events[k][1].end;break}O=!0}for(Q(i),F=H;F<t.events.length;)t.events[F][1].end={...$},F++;dn(t.events,k+1,0,t.events.slice(H)),t.events.length=F}}function Q(M){let z=r.length;for(;z-- >M;){const j=r[z];t.containerState=j[1],j[0].exit.call(t,e)}r.length=M}function I(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function CU(e,t,r){return gA(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function P0(e){if(e===null||pt(e)||gU(e))return 1;if(hU(e))return 2}function gf(e,t,r){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,r),i.push(l))}return t}const pf={name:"attention",resolveAll:yU,tokenize:EU};function yU(e,t){let r=-1,i,s,l,c,u,f,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;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[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const B={...e[i][1].end},C={...e[r][1].start};Y0(B,-f),Y0(C,f),c={type:f>1?"strongSequence":"emphasisSequence",start:B,end:{...e[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:C},l={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[r][1].start={...u.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Dt(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Dt(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Dt(h,gf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),h=Dt(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Dt(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,dn(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function EU(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=P0(i);let l;return c;function c(f){return l=f,e.enter("attentionSequence"),u(f)}function u(f){if(f===l)return e.consume(f),u;const h=e.exit("attentionSequence"),m=P0(f),B=!m||m===2&&s||r.includes(f),C=!s||s===2&&m||r.includes(i);return h._open=!!(l===42?B:B&&(s||!C)),h._close=!!(l===42?C:C&&(m||!B)),t(f)}}function Y0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vU={name:"autolink",tokenize:bU};function bU(e,t,r){let i=0;return s;function s(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(w){return hn(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||St(w)?(i=1,u(w)):h(w)}function u(w){return w===58?(e.consume(w),i=0,f):(w===43||w===45||w===46||St(w))&&i++<32?(e.consume(w),u):(i=0,h(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||df(w)?r(w):(e.consume(w),f)}function h(w){return w===64?(e.consume(w),m):uU(w)?(e.consume(w),h):r(w)}function m(w){return St(w)?B(w):r(w)}function B(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):C(w)}function C(w){if((w===45||St(w))&&i++<63){const v=w===45?C:B;return e.consume(w),v}return r(w)}}const Yl={partial:!0,tokenize:xU};function xU(e,t,r){return i;function i(l){return $e(l)?gA(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Ue(l)?t(l):r(l)}}const X0={continuation:{tokenize:QU},exit:UU,name:"blockQuote",tokenize:SU};function SU(e,t,r){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return r(c)}function l(c){return $e(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function QU(e,t,r){const i=this;return s;function s(c){return $e(c)?gA(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(X0,t,r)(c)}}function UU(e){e.exit("blockQuote")}const q0={name:"characterEscape",tokenize:FU};function FU(e,t,r){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return dU(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const J0={name:"characterReference",tokenize:TU};function TU(e,t,r){const i=this;let s=0,l,c;return u;function u(B){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),f}function f(B){return B===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(B),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,c=St,m(B))}function h(B){return B===88||B===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(B),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=fU,m):(e.enter("characterReferenceValue"),l=7,c=hf,m(B))}function m(B){if(B===59&&s){const C=e.exit("characterReferenceValue");return c===St&&!ff(i.sliceSerialize(C))?r(B):(e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(B)&&s++<l?(e.consume(B),m):r(B)}}const Z0={partial:!0,tokenize:IU},W0={concrete:!0,name:"codeFenced",tokenize:NU};function NU(e,t,r){const i=this,s={partial:!0,tokenize:j};let l=0,c=0,u;return f;function f(F){return h(F)}function h(F){const H=i.events[i.events.length-1];return l=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,u=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===u?(c++,e.consume(F),m):c<3?r(F):(e.exit("codeFencedFenceSequence"),$e(F)?gA(e,B,"whitespace")(F):B(F))}function B(F){return F===null||Ue(F)?(e.exit("codeFencedFence"),i.interrupt?t(F):e.check(Z0,b,z)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(F)):$e(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gA(e,w,"whitespace")(F)):F===96&&F===u?r(F):(e.consume(F),C)}function w(F){return F===null||Ue(F)?B(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(F))}function v(F){return F===null||Ue(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),B(F)):F===96&&F===u?r(F):(e.consume(F),v)}function b(F){return e.attempt(s,z,U)(F)}function U(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Q}function Q(F){return l>0&&$e(F)?gA(e,I,"linePrefix",l+1)(F):I(F)}function I(F){return F===null||Ue(F)?e.check(Z0,b,z)(F):(e.enter("codeFlowValue"),M(F))}function M(F){return F===null||Ue(F)?(e.exit("codeFlowValue"),I(F)):(e.consume(F),M)}function z(F){return e.exit("codeFenced"),t(F)}function j(F,H,k){let O=0;return $;function $(J){return F.enter("lineEnding"),F.consume(J),F.exit("lineEnding"),ee}function ee(J){return F.enter("codeFencedFence"),$e(J)?gA(F,V,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):V(J)}function V(J){return J===u?(F.enter("codeFencedFenceSequence"),se(J)):k(J)}function se(J){return J===u?(O++,F.consume(J),se):O>=c?(F.exit("codeFencedFenceSequence"),$e(J)?gA(F,Ae,"whitespace")(J):Ae(J)):k(J)}function Ae(J){return J===null||Ue(J)?(F.exit("codeFencedFence"),H(J)):k(J)}}}function IU(e,t,r){const i=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const mf={name:"codeIndented",tokenize:HU},_U={partial:!0,tokenize:MU};function HU(e,t,r){const i=this;return s;function s(h){return e.enter("codeIndented"),gA(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):Ue(h)?e.attempt(_U,c,f)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||Ue(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),u)}function f(h){return e.exit("codeIndented"),t(h)}}function MU(e,t,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):Ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):gA(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):Ue(c)?s(c):r(c)}}const OU={name:"codeText",previous:LU,resolve:RU,tokenize:DU};function RU(e){let t=e.length-4,r=3,i,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function LU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DU(e,t,r){let i=0,s,l;return c;function c(B){return e.enter("codeText"),e.enter("codeTextSequence"),u(B)}function u(B){return B===96?(e.consume(B),i++,u):(e.exit("codeTextSequence"),f(B))}function f(B){return B===null?r(B):B===32?(e.enter("space"),e.consume(B),e.exit("space"),f):B===96?(l=e.enter("codeTextSequence"),s=0,m(B)):Ue(B)?(e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(B))}function h(B){return B===null||B===32||B===96||Ue(B)?(e.exit("codeTextData"),f(B)):(e.consume(B),h)}function m(B){return B===96?(e.consume(B),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(B)):(l.type="codeTextData",h(B))}}class kU{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,r){const i=r??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,r,i){const s=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&os(this.left,i),l.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),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}}function os(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function $0(e){const t={};let r=-1,i,s,l,c,u,f,h;const m=new kU(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,jU(m,r)),r=t[r],h=!0);else if(i[1]._container){for(l=r,s=void 0;l--;)if(c=m.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},u=m.slice(s,r),u.unshift(i),m.splice(s,r-s+1,u))}}return dn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function jU(e,t){const r=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let m,B,C=-1,w=r,v=0,b=0;const U=[b];for(;w;){for(;e.get(++s)[1]!==w;);l.push(s),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),B&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),B=w,w=w.next}for(w=r;++C<u.length;)u[C][0]==="exit"&&u[C-1][0]==="enter"&&u[C][1].type===u[C-1][1].type&&u[C][1].start.line!==u[C][1].end.line&&(b=C+1,U.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):U.pop(),C=U.length;C--;){const Q=u.slice(U[C],U[C+1]),I=l.pop();f.push([I,I+Q.length-1]),e.splice(I,2,Q)}for(f.reverse(),C=-1;++C<f.length;)h[v+f[C][0]]=v+f[C][1],v+=f[C][1]-f[C][0]-1;return h}const KU={resolve:GU,tokenize:zU},VU={partial:!0,tokenize:PU};function GU(e){return $0(e),e}function zU(e,t){let r;return i;function i(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):Ue(u)?e.check(VU,c,l)(u):(e.consume(u),s)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function PU(e,t,r){const i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),gA(e,l,"linePrefix")}function l(c){if(c===null||Ue(c))return r(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function eB(e,t,r,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return B;function B(Q){return Q===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(Q),e.exit(l),C):Q===null||Q===32||Q===41||df(Q)?r(Q):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(Q))}function C(Q){return Q===62?(e.enter(l),e.consume(Q),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),w(Q))}function w(Q){return Q===62?(e.exit("chunkString"),e.exit(u),C(Q)):Q===null||Q===60||Ue(Q)?r(Q):(e.consume(Q),Q===92?v:w)}function v(Q){return Q===60||Q===62||Q===92?(e.consume(Q),w):w(Q)}function b(Q){return!m&&(Q===null||Q===41||pt(Q))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(Q)):m<h&&Q===40?(e.consume(Q),m++,b):Q===41?(e.consume(Q),m--,b):Q===null||Q===32||Q===40||df(Q)?r(Q):(e.consume(Q),Q===92?U:b)}function U(Q){return Q===40||Q===41||Q===92?(e.consume(Q),b):b(Q)}}function AB(e,t,r,i,s,l){const c=this;let u=0,f;return h;function h(w){return e.enter(i),e.enter(s),e.consume(w),e.exit(s),e.enter(l),m}function m(w){return u>999||w===null||w===91||w===93&&!f||w===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(l),e.enter(s),e.consume(w),e.exit(s),e.exit(i),t):Ue(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),B(w))}function B(w){return w===null||w===91||w===93||Ue(w)||u++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!$e(w)),w===92?C:B)}function C(w){return w===91||w===92||w===93?(e.consume(w),u++,B):B(w)}}function tB(e,t,r,i,s,l){let c;return u;function u(C){return C===34||C===39||C===40?(e.enter(i),e.enter(s),e.consume(C),e.exit(s),c=C===40?41:C,f):r(C)}function f(C){return C===c?(e.enter(s),e.consume(C),e.exit(s),e.exit(i),t):(e.enter(l),h(C))}function h(C){return C===c?(e.exit(l),f(c)):C===null?r(C):Ue(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),gA(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===c||C===null||Ue(C)?(e.exit("chunkString"),h(C)):(e.consume(C),C===92?B:m)}function B(C){return C===c||C===92?(e.consume(C),m):m(C)}}function cs(e,t){let r;return i;function i(s){return Ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,i):$e(s)?gA(e,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const YU={name:"definition",tokenize:qU},XU={partial:!0,tokenize:JU};function qU(e,t,r){const i=this;let s;return l;function l(w){return e.enter("definition"),c(w)}function c(w){return AB.call(i,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function u(w){return s=Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return pt(w)?cs(e,h)(w):h(w)}function h(w){return eB(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(XU,B,B)(w)}function B(w){return $e(w)?gA(e,C,"whitespace")(w):C(w)}function C(w){return w===null||Ue(w)?(e.exit("definition"),i.parser.defined.push(s),t(w)):r(w)}}function JU(e,t,r){return i;function i(u){return pt(u)?cs(e,s)(u):r(u)}function s(u){return tB(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return $e(u)?gA(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Ue(u)?t(u):r(u)}}const ZU={name:"hardBreakEscape",tokenize:WU};function WU(e,t,r){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Ue(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const $U={name:"headingAtx",resolve:eF,tokenize:AF};function eF(e,t){let r=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},l={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},dn(e,i,r-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function AF(e,t,r){let i=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||pt(m)?(e.exit("atxHeadingSequence"),u(m)):r(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Ue(m)?(e.exit("atxHeading"),t(m)):$e(m)?gA(e,u,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||pt(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),h)}}const tF=["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"],nB=["pre","script","style","textarea"],nF={concrete:!0,name:"htmlFlow",resolveTo:aF,tokenize:sF},rF={partial:!0,tokenize:oF},iF={partial:!0,tokenize:lF};function aF(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 sF(e,t,r){const i=this;let s,l,c,u,f;return h;function h(E){return m(E)}function m(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),B}function B(E){return E===33?(e.consume(E),C):E===47?(e.consume(E),l=!0,b):E===63?(e.consume(E),s=3,i.interrupt?t:T):hn(E)?(e.consume(E),c=String.fromCharCode(E),U):r(E)}function C(E){return E===45?(e.consume(E),s=2,w):E===91?(e.consume(E),s=5,u=0,v):hn(E)?(e.consume(E),s=4,i.interrupt?t:T):r(E)}function w(E){return E===45?(e.consume(E),i.interrupt?t:T):r(E)}function v(E){const ne="CDATA[";return E===ne.charCodeAt(u++)?(e.consume(E),u===ne.length?i.interrupt?t:V:v):r(E)}function b(E){return hn(E)?(e.consume(E),c=String.fromCharCode(E),U):r(E)}function U(E){if(E===null||E===47||E===62||pt(E)){const ne=E===47,oe=c.toLowerCase();return!ne&&!l&&nB.includes(oe)?(s=1,i.interrupt?t(E):V(E)):tF.includes(c.toLowerCase())?(s=6,ne?(e.consume(E),Q):i.interrupt?t(E):V(E)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):l?I(E):M(E))}return E===45||St(E)?(e.consume(E),c+=String.fromCharCode(E),U):r(E)}function Q(E){return E===62?(e.consume(E),i.interrupt?t:V):r(E)}function I(E){return $e(E)?(e.consume(E),I):$(E)}function M(E){return E===47?(e.consume(E),$):E===58||E===95||hn(E)?(e.consume(E),z):$e(E)?(e.consume(E),M):$(E)}function z(E){return E===45||E===46||E===58||E===95||St(E)?(e.consume(E),z):j(E)}function j(E){return E===61?(e.consume(E),F):$e(E)?(e.consume(E),j):M(E)}function F(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),f=E,H):$e(E)?(e.consume(E),F):k(E)}function H(E){return E===f?(e.consume(E),f=null,O):E===null||Ue(E)?r(E):(e.consume(E),H)}function k(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||pt(E)?j(E):(e.consume(E),k)}function O(E){return E===47||E===62||$e(E)?M(E):r(E)}function $(E){return E===62?(e.consume(E),ee):r(E)}function ee(E){return E===null||Ue(E)?V(E):$e(E)?(e.consume(E),ee):r(E)}function V(E){return E===45&&s===2?(e.consume(E),L):E===60&&s===1?(e.consume(E),Z):E===62&&s===4?(e.consume(E),N):E===63&&s===3?(e.consume(E),T):E===93&&s===5?(e.consume(E),ge):Ue(E)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(rF,q,se)(E)):E===null||Ue(E)?(e.exit("htmlFlowData"),se(E)):(e.consume(E),V)}function se(E){return e.check(iF,Ae,q)(E)}function Ae(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),J}function J(E){return E===null||Ue(E)?se(E):(e.enter("htmlFlowData"),V(E))}function L(E){return E===45?(e.consume(E),T):V(E)}function Z(E){return E===47?(e.consume(E),c="",te):V(E)}function te(E){if(E===62){const ne=c.toLowerCase();return nB.includes(ne)?(e.consume(E),N):V(E)}return hn(E)&&c.length<8?(e.consume(E),c+=String.fromCharCode(E),te):V(E)}function ge(E){return E===93?(e.consume(E),T):V(E)}function T(E){return E===62?(e.consume(E),N):E===45&&s===2?(e.consume(E),T):V(E)}function N(E){return E===null||Ue(E)?(e.exit("htmlFlowData"),q(E)):(e.consume(E),N)}function q(E){return e.exit("htmlFlow"),t(E)}}function lF(e,t,r){const i=this;return s;function s(c){return Ue(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):r(c)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function oF(e,t,r){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Yl,t,r)}}const cF={name:"htmlText",tokenize:uF};function uF(e,t,r){const i=this;let s,l,c;return u;function u(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),h):T===47?(e.consume(T),j):T===63?(e.consume(T),M):hn(T)?(e.consume(T),k):r(T)}function h(T){return T===45?(e.consume(T),m):T===91?(e.consume(T),l=0,v):hn(T)?(e.consume(T),I):r(T)}function m(T){return T===45?(e.consume(T),w):r(T)}function B(T){return T===null?r(T):T===45?(e.consume(T),C):Ue(T)?(c=B,Z(T)):(e.consume(T),B)}function C(T){return T===45?(e.consume(T),w):B(T)}function w(T){return T===62?L(T):T===45?C(T):B(T)}function v(T){const N="CDATA[";return T===N.charCodeAt(l++)?(e.consume(T),l===N.length?b:v):r(T)}function b(T){return T===null?r(T):T===93?(e.consume(T),U):Ue(T)?(c=b,Z(T)):(e.consume(T),b)}function U(T){return T===93?(e.consume(T),Q):b(T)}function Q(T){return T===62?L(T):T===93?(e.consume(T),Q):b(T)}function I(T){return T===null||T===62?L(T):Ue(T)?(c=I,Z(T)):(e.consume(T),I)}function M(T){return T===null?r(T):T===63?(e.consume(T),z):Ue(T)?(c=M,Z(T)):(e.consume(T),M)}function z(T){return T===62?L(T):M(T)}function j(T){return hn(T)?(e.consume(T),F):r(T)}function F(T){return T===45||St(T)?(e.consume(T),F):H(T)}function H(T){return Ue(T)?(c=H,Z(T)):$e(T)?(e.consume(T),H):L(T)}function k(T){return T===45||St(T)?(e.consume(T),k):T===47||T===62||pt(T)?O(T):r(T)}function O(T){return T===47?(e.consume(T),L):T===58||T===95||hn(T)?(e.consume(T),$):Ue(T)?(c=O,Z(T)):$e(T)?(e.consume(T),O):L(T)}function $(T){return T===45||T===46||T===58||T===95||St(T)?(e.consume(T),$):ee(T)}function ee(T){return T===61?(e.consume(T),V):Ue(T)?(c=ee,Z(T)):$e(T)?(e.consume(T),ee):O(T)}function V(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),s=T,se):Ue(T)?(c=V,Z(T)):$e(T)?(e.consume(T),V):(e.consume(T),Ae)}function se(T){return T===s?(e.consume(T),s=void 0,J):T===null?r(T):Ue(T)?(c=se,Z(T)):(e.consume(T),se)}function Ae(T){return T===null||T===34||T===39||T===60||T===61||T===96?r(T):T===47||T===62||pt(T)?O(T):(e.consume(T),Ae)}function J(T){return T===47||T===62||pt(T)?O(T):r(T)}function L(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):r(T)}function Z(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),te}function te(T){return $e(T)?gA(e,ge,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ge(T)}function ge(T){return e.enter("htmlTextData"),c(T)}}const Bf={name:"labelEnd",resolveAll:gF,resolveTo:pF,tokenize:mF},fF={tokenize:BF},dF={tokenize:wF},hF={tokenize:CF};function gF(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==r.length&&dn(e,0,e.length,r),e}function pF(e,t){let r=e.length,i=0,s,l,c,u;for(;r--;)if(s=e[r][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=Dt(u,e.slice(l+1,l+i+3)),u=Dt(u,[["enter",m,t]]),u=Dt(u,gf(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=Dt(u,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),u=Dt(u,e.slice(c+1)),u=Dt(u,[["exit",f,t]]),dn(e,l,e.length,u),e}function mF(e,t,r){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(C){return l?l._inactive?B(C):(c=i.parser.defined.includes(Qi(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),f):r(C)}function f(C){return C===40?e.attempt(fF,m,c?m:B)(C):C===91?e.attempt(dF,m,c?h:B)(C):c?m(C):B(C)}function h(C){return e.attempt(hF,m,B)(C)}function m(C){return t(C)}function B(C){return l._balanced=!0,r(C)}}function BF(e,t,r){return i;function i(B){return e.enter("resource"),e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),s}function s(B){return pt(B)?cs(e,l)(B):l(B)}function l(B){return B===41?m(B):eB(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function c(B){return pt(B)?cs(e,f)(B):m(B)}function u(B){return r(B)}function f(B){return B===34||B===39||B===40?tB(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):m(B)}function h(B){return pt(B)?cs(e,m)(B):m(B)}function m(B){return B===41?(e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),e.exit("resource"),t):r(B)}}function wF(e,t,r){const i=this;return s;function s(u){return AB.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Qi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function c(u){return r(u)}}function CF(e,t,r){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const yF={name:"labelStartImage",resolveAll:Bf.resolveAll,tokenize:EF};function EF(e,t,r){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):r(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const vF={name:"labelStartLink",resolveAll:Bf.resolveAll,tokenize:bF};function bF(e,t,r){const i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const wf={name:"lineEnding",tokenize:xF};function xF(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),gA(e,t,"linePrefix")}}const Xl={name:"thematicBreak",tokenize:SF};function SF(e,t,r){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Ue(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),$e(h)?gA(e,u,"whitespace")(h):u(h))}}const mt={continuation:{tokenize:TF},exit:IF,name:"list",tokenize:FF},QF={partial:!0,tokenize:_F},UF={partial:!0,tokenize:NF};function FF(e,t,r){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(w){const v=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:hf(w)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Xl,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return hf(w)&&++c<10?(e.consume(w),f):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(Yl,i.interrupt?r:m,e.attempt(QF,C,B))}function m(w){return i.containerState.initialBlankLine=!0,l++,C(w)}function B(w){return $e(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),C):r(w)}function C(w){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function TF(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,gA(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!$e(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(UF,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,gA(e,e.attempt(mt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function NF(e,t,r){const i=this;return gA(e,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):r(l)}}function IF(e){e.exit(this.containerState.type)}function _F(e,t,r){const i=this;return gA(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!$e(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const rB={name:"setextUnderline",resolveTo:HF,tokenize:MF};function HF(e,t){let r=e.length,i,s,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function MF(e,t,r){const i=this;let s;return l;function l(h){let m=i.events.length,B;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){B=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||B)?(e.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),$e(h)?gA(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ue(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const OF={tokenize:RF};function RF(e){const t=this,r=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,s,gA(e,e.attempt(this.parser.constructs.flow,s,e.attempt(KU,s)),"linePrefix")));return r;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const LF={resolveAll:aB()},DF=iB("string"),kF=iB("text");function iB(e){return{resolveAll:aB(e==="text"?jF:void 0),tokenize:t};function t(r){const i=this,s=this.parser.constructs[e],l=r.attempt(s,c,u);return c;function c(m){return h(m)?l(m):u(m)}function u(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),l(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const B=s[m];let C=-1;if(B)for(;++C<B.length;){const w=B[C];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function aB(e){return t;function t(r,i){let s=-1,l;for(;++s<=r.length;)l===void 0?r[s]&&r[s][1].type==="data"&&(l=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==l+2&&(r[l][1].end=r[s-1][1].end,r.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(r,i):r}}function jF(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const h={type:r===e.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const KF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:YU},disable:{null:[]},document:{42:mt,43:mt,45:mt,48:mt,49:mt,50:mt,51:mt,52:mt,53:mt,54:mt,55:mt,56:mt,57:mt,62:X0},flow:{35:$U,42:Xl,45:[rB,Xl],60:nF,61:rB,95:Xl,96:W0,126:W0},flowInitial:{[-2]:mf,[-1]:mf,32:mf},insideSpan:{null:[pf,LF]},string:{38:J0,92:q0},text:{[-5]:wf,[-4]:wf,[-3]:wf,33:yF,38:J0,42:pf,60:[vU,cF],91:vF,92:[ZU,q0],93:Bf,95:pf,96:OU}},Symbol.toStringTag,{value:"Module"}));function VF(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:H(j),check:H(F),consume:I,enter:M,exit:z,interrupt:H(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:b,events:[],now:v,parser:e,previous:null,sliceSerialize:C,sliceStream:w,write:B};let m=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function B(ee){return c=Dt(c,ee),U(),c[c.length-1]!==null?[]:(k(t,0),h.events=gf(l,h.events,h),h.events)}function C(ee,V){return zF(w(ee),V)}function w(ee){return GF(c,ee)}function v(){const{_bufferIndex:ee,_index:V,line:se,column:Ae,offset:J}=i;return{_bufferIndex:ee,_index:V,line:se,column:Ae,offset:J}}function b(ee){s[ee.line]=ee.column,$()}function U(){let ee;for(;i._index<c.length;){const V=c[i._index];if(typeof V=="string")for(ee=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ee&&i._bufferIndex<V.length;)Q(V.charCodeAt(i._bufferIndex));else Q(V)}}function Q(ee){m=m(ee)}function I(ee){Ue(ee)?(i.line++,i.column=1,i.offset+=ee===-3?2:1,$()):ee!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=ee}function M(ee,V){const se=V||{};return se.type=ee,se.start=v(),h.events.push(["enter",se,h]),u.push(se),se}function z(ee){const V=u.pop();return V.end=v(),h.events.push(["exit",V,h]),V}function j(ee,V){k(ee,V.from)}function F(ee,V){V.restore()}function H(ee,V){return se;function se(Ae,J,L){let Z,te,ge,T;return Array.isArray(Ae)?q(Ae):"tokenize"in Ae?q([Ae]):N(Ae);function N(ue){return pe;function pe(Oe){const xe=Oe!==null&&ue[Oe],eA=Oe!==null&&ue.null,Pe=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(eA)?eA:eA?[eA]:[]];return q(Pe)(Oe)}}function q(ue){return Z=ue,te=0,ue.length===0?L:E(ue[te])}function E(ue){return pe;function pe(Oe){return T=O(),ge=ue,ue.partial||(h.currentConstruct=ue),ue.name&&h.parser.constructs.disable.null.includes(ue.name)?oe():ue.tokenize.call(V?Object.assign(Object.create(h),V):h,f,ne,oe)(Oe)}}function ne(ue){return ee(ge,T),J}function oe(ue){return T.restore(),++te<Z.length?E(Z[te]):L}}}function k(ee,V){ee.resolveAll&&!l.includes(ee)&&l.push(ee),ee.resolve&&dn(h.events,V,h.events.length-V,ee.resolve(h.events.slice(V),h)),ee.resolveTo&&(h.events=ee.resolveTo(h.events,h))}function O(){const ee=v(),V=h.previous,se=h.currentConstruct,Ae=h.events.length,J=Array.from(u);return{from:Ae,restore:L};function L(){i=ee,h.previous=V,h.currentConstruct=se,h.events.length=Ae,u=J,$()}}function $(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function GF(e,t){const r=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(r===s)c=[e[r].slice(i,l)];else{if(c=e.slice(r,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function zF(e,t){let r=-1;const i=[];let s;for(;++r<e.length;){const l=e[r];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
|
|
87
|
+
`;function hQ({title:e,description:t,suggestions:r,onSendMessage:i,disabled:s,composer:l,composerFooter:c,connectionBanner:u}){const f=h=>{const m=h.label||h.value||"";m&&i({message:h.value||m,messageId:Date.now().toString()})};return g.jsxs("div",{className:"flex-1 flex flex-col items-stretch justify-center px-4 py-6 gap-6 w-full max-w-2xl mx-auto overflow-y-auto",children:[g.jsxs("div",{className:"flex flex-col px-3 gap-2 items-start",children:[g.jsxs("h2",{className:"text-text-primary",style:{fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:36,lineHeight:"40px",fontWeight:500,letterSpacing:"-0.025em",margin:0},children:["Hi, this is ",e,"!"]}),t&&g.jsx("p",{className:"text-text-primary",style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:400,margin:0,maxWidth:420},children:t})]}),r&&r.length>0&&g.jsx("div",{className:"content-center px-3 flex flex-wrap gap-4 items-center",children:r.map((h,m)=>{const B=h.label||h.value||"";return B?g.jsx("button",{type:"button",onClick:()=>f(h),disabled:s,className:he("inline-flex items-center bg-white border border-primary text-primary","rounded-lg overflow-clip whitespace-nowrap transition-colors shrink-0","supports-[hover:hover]:hover:bg-primary supports-[hover:hover]:hover:text-primary-foreground",s?"opacity-50 cursor-not-allowed":"cursor-pointer"),style:{fontFamily:"Inter, sans-serif",fontSize:16,lineHeight:"24px",fontWeight:500,padding:"8px 12px",WebkitTapHighlightColor:"transparent",outline:"none"},children:B},`${B}-${m}`):null})}),u,l&&g.jsxs("div",{children:[l,c]})]})}function gQ(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pQ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mQ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BQ={};function m0(e,t){return(BQ.jsx?mQ:pQ).test(e)}const wQ=/[ \t\n\f\r]/g;function CQ(e){return typeof e=="object"?e.type==="text"?B0(e.value):!1:B0(e)}function B0(e){return e.replace(wQ,"")===""}class rs{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}rs.prototype.normal={},rs.prototype.property={},rs.prototype.space=void 0;function w0(e,t){const r={},i={};for(const s of e)Object.assign(r,s.property),Object.assign(i,s.normal);return new rs(r,i,t)}function $u(e){return e.toLowerCase()}class dt{constructor(t,r){this.attribute=r,this.property=t}}dt.prototype.attribute="",dt.prototype.booleanish=!1,dt.prototype.boolean=!1,dt.prototype.commaOrSpaceSeparated=!1,dt.prototype.commaSeparated=!1,dt.prototype.defined=!1,dt.prototype.mustUseProperty=!1,dt.prototype.number=!1,dt.prototype.overloadedBoolean=!1,dt.prototype.property="",dt.prototype.spaceSeparated=!1,dt.prototype.space=void 0;let yQ=0;const Me=Xr(),_A=Xr(),ef=Xr(),ue=Xr(),gA=Xr(),Si=Xr(),xt=Xr();function Xr(){return 2**++yQ}const Af=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:_A,commaOrSpaceSeparated:xt,commaSeparated:Si,number:ue,overloadedBoolean:ef,spaceSeparated:gA},Symbol.toStringTag,{value:"Module"})),tf=Object.keys(Af);class nf extends dt{constructor(t,r,i,s){let l=-1;if(super(t,r),C0(this,"space",s),typeof i=="number")for(;++l<tf.length;){const c=tf[l];C0(this,tf[l],(i&Af[c])===Af[c])}}}nf.prototype.defined=!0;function C0(e,t,r){r&&(e[t]=r)}function Qi(e){const t={},r={};for(const[i,s]of Object.entries(e.properties)){const l=new nf(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,r[$u(i)]=i,r[$u(l.attribute)]=i}return new rs(t,r,e.space)}const y0=Qi({properties:{ariaActiveDescendant:null,ariaAtomic:_A,ariaAutoComplete:null,ariaBusy:_A,ariaChecked:_A,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:gA,ariaCurrent:null,ariaDescribedBy:gA,ariaDetails:null,ariaDisabled:_A,ariaDropEffect:gA,ariaErrorMessage:null,ariaExpanded:_A,ariaFlowTo:gA,ariaGrabbed:_A,ariaHasPopup:null,ariaHidden:_A,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gA,ariaLevel:ue,ariaLive:null,ariaModal:_A,ariaMultiLine:_A,ariaMultiSelectable:_A,ariaOrientation:null,ariaOwns:gA,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:_A,ariaReadOnly:_A,ariaRelevant:null,ariaRequired:_A,ariaRoleDescription:gA,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:_A,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function E0(e,t){return t in e?e[t]:t}function v0(e,t){return E0(e,t.toLowerCase())}const EQ=Qi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Si,acceptCharset:gA,accessKey:gA,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:gA,autoFocus:Me,autoPlay:Me,blocking:gA,capture:null,charSet:null,checked:Me,cite:null,className:gA,cols:ue,colSpan:null,content:null,contentEditable:_A,controls:Me,controlsList:gA,coords:ue|Si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:ef,draggable:_A,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:gA,height:ue,hidden:ef,high:ue,href:null,hrefLang:null,htmlFor:gA,httpEquiv:gA,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:gA,itemRef:gA,itemScope:Me,itemType:gA,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:ue,pattern:null,ping:gA,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:gA,required:Me,reversed:Me,rows:ue,rowSpan:ue,sandbox:gA,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:_A,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:_A,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gA,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:_A,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:v0}),vQ=Qi({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:xt,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:gA,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:Si,g2:Si,glyphName:Si,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:xt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gA,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xt,rev:xt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xt,requiredFeatures:xt,requiredFonts:xt,requiredFormats:xt,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:xt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xt,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:E0}),b0=Qi({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()}}),x0=Qi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:v0}),S0=Qi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bQ={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"},xQ=/[A-Z]/g,Q0=/-[a-z]/g,SQ=/^data[-\w.:]+$/i;function QQ(e,t){const r=$u(t);let i=t,s=dt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&SQ.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(Q0,FQ);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!Q0.test(l)){let c=l.replace(xQ,UQ);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=nf}return new s(i,t)}function UQ(e){return"-"+e.toLowerCase()}function FQ(e){return e.charAt(1).toUpperCase()}const TQ=w0([y0,EQ,b0,x0,S0],"html"),rf=w0([y0,vQ,b0,x0,S0],"svg");function NQ(e){return e.join(" ").trim()}var Ui={},af,U0;function IQ(){if(U0)return af;U0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
|
|
88
|
+
`,h="/",m="*",B="",C="comment",w="declaration";function v(U,Q){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];Q=Q||{};var T=1,O=1;function G(le){var z=le.match(t);z&&(T+=z.length);var R=le.lastIndexOf(f);O=~R?le.length-R:O+le.length}function k(){var le={line:T,column:O};return function(z){return z.position=new F(le),M(),z}}function F(le){this.start=le,this.end={line:T,column:O},this.source=Q.source}F.prototype.content=U;function H(le){var z=new Error(Q.source+":"+T+":"+O+": "+le);if(z.reason=le,z.filename=Q.source,z.line=T,z.column=O,z.source=U,!Q.silent)throw z}function L(le){var z=le.exec(U);if(z){var R=z[0];return G(R),U=U.slice(R.length),z}}function M(){L(r)}function W(le){var z;for(le=le||[];z=ee();)z!==!1&&le.push(z);return le}function ee(){var le=k();if(!(h!=U.charAt(0)||m!=U.charAt(1))){for(var z=2;B!=U.charAt(z)&&(m!=U.charAt(z)||h!=U.charAt(z+1));)++z;if(z+=2,B===U.charAt(z-1))return H("End of comment missing");var R=U.slice(2,z-2);return O+=2,G(R),U=U.slice(z),O+=2,le({type:C,comment:R})}}function j(){var le=k(),z=L(i);if(z){if(ee(),!L(s))return H("property missing ':'");var R=L(l),q=le({type:w,property:b(z[0].replace(e,B)),value:R?b(R[0].replace(e,B)):B});return L(c),q}}function se(){var le=[];W(le);for(var z;z=j();)z!==!1&&(le.push(z),W(le));return le}return M(),se()}function b(U){return U?U.replace(u,B):B}return af=v,af}var F0;function _Q(){if(F0)return Ui;F0=1;var e=Ui&&Ui.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=r;const t=e(IQ());function r(i,s){let l=null;if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;u?s(h,m,f):m&&(l=l||{},l[h]=m)}),l}return Ui}var is={},T0;function HQ(){if(T0)return is;T0=1,Object.defineProperty(is,"__esModule",{value:!0}),is.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},u=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return is.camelCase=f,is}var as,N0;function MQ(){if(N0)return as;N0=1;var e=as&&as.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(_Q()),r=HQ();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,f){u&&f&&(c[(0,r.camelCase)(u,l)]=f)}),c}return i.default=i,as=i,as}var OQ=MQ();const RQ=fu(OQ),I0=_0("end"),sf=_0("start");function _0(e){return t;function t(r){const i=r&&r.position&&r.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 LQ(e){const t=sf(e),r=I0(e);if(t&&r)return{start:t,end:r}}function ss(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?H0(e.position):"start"in e||"end"in e?H0(e):"line"in e||"column"in e?lf(e):""}function lf(e){return M0(e&&e.line)+":"+M0(e&&e.column)}function H0(e){return lf(e&&e.start)+"-"+lf(e&&e.end)}function M0(e){return e&&typeof e=="number"?e:1}class it extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",l={},c=!1;if(r&&("line"in r&&"column"in r?l={place:r}:"start"in r&&"end"in r?l={place:r}:"type"in r?l={ancestors:[r],place:r.position}:l={...r}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?l.ruleId=i:(l.source=i.slice(0,f),l.ruleId=i.slice(f+1))}if(!l.place&&l.ancestors&&l.ancestors){const f=l.ancestors[l.ancestors.length-1];f&&(l.place=f.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=ss(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}it.prototype.file="",it.prototype.name="",it.prototype.reason="",it.prototype.message="",it.prototype.stack="",it.prototype.column=void 0,it.prototype.line=void 0,it.prototype.ancestors=void 0,it.prototype.cause=void 0,it.prototype.fatal=void 0,it.prototype.place=void 0,it.prototype.ruleId=void 0,it.prototype.source=void 0;const of={}.hasOwnProperty,DQ=new Map,kQ=/[A-Z]/g,jQ=new Set(["table","tbody","thead","tfoot","tr"]),KQ=new Set(["td","th"]),O0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VQ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=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=ZQ(r,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=JQ(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rf:TQ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=R0(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function R0(e,t,r){if(t.type==="element")return GQ(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zQ(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return YQ(e,t,r);if(t.type==="mdxjsEsm")return PQ(e,t);if(t.type==="root")return XQ(e,t,r);if(t.type==="text")return qQ(e,t)}function GQ(e,t,r){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=rf,e.schema=s),e.ancestors.push(t);const l=D0(e,t.tagName,!1),c=WQ(e,t);let u=uf(e,t);return jQ.has(t.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!CQ(f):!0})),L0(e,c,l,t),cf(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function zQ(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return e.evaluater.evaluateExpression(i.expression)}ls(e,t.position)}function PQ(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ls(e,t.position)}function YQ(e,t,r){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=rf,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:D0(e,t.name,!0),c=$Q(e,t),u=uf(e,t);return L0(e,c,l,t),cf(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,r)}function XQ(e,t,r){const i={};return cf(i,uf(e,t)),e.create(t,e.Fragment,i,r)}function qQ(e,t){return t.value}function L0(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function cf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function JQ(e,t,r){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?r:t;return u?h(l,c,u):h(l,c)}}function ZQ(e,t){return r;function r(i,s,l,c){const u=Array.isArray(l.children),f=sf(i);return t(s,l,c,u,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function WQ(e,t){const r={};let i,s;for(s in t.properties)if(s!=="children"&&of.call(t.properties,s)){const l=eU(e,s,t.properties[s]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&KQ.has(t.tagName)?i=u:r[c]=u}}if(i){const l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function $Q(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0].expression.properties[0];Object.assign(r,e.evaluater.evaluateExpression(u.argument))}else ls(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];l=e.evaluater.evaluateExpression(u.expression)}else ls(e,t.position);else l=i.value===null?!0:i.value;r[s]=l}return r}function uf(e,t){const r=[];let i=-1;const s=e.passKeys?new Map:DQ;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const f=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(f){const h=s.get(f)||0;c=f+"-"+h,s.set(f,h+1)}}const u=R0(e,l,c);u!==void 0&&r.push(u)}return r}function eU(e,t,r){const i=QQ(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?gQ(r):NQ(r)),i.property==="style"){let s=typeof r=="object"?r:AU(e,String(r));return e.stylePropertyNameCase==="css"&&(s=tU(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?bQ[i.property]||i.property:i.attribute,r]}}function AU(e,t){try{return RQ(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,s=new it("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=O0+"#cannot-parse-style-attribute",s}}function D0(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=m0(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=m0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return of.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);ls(e)}function ls(e,t){const r=new it("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=O0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function tU(e){const t={};let r;for(r in e)of.call(e,r)&&(t[nU(r)]=e[r]);return t}function nU(e){let t=e.replace(kQ,rU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function rU(e){return"-"+e.toLowerCase()}const ff={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"]},iU={};function aU(e,t){const r=iU,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return k0(e,i,s)}function k0(e,t,r){if(sU(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return j0(e.children,t,r)}return Array.isArray(e)?j0(e,t,r):""}function j0(e,t,r){const i=[];let s=-1;for(;++s<e.length;)i[s]=k0(e[s],t,r);return i.join("")}function sU(e){return!!(e&&typeof e=="object")}const K0=document.createElement("i");function df(e){const t="&"+e+";";K0.innerHTML=t;const r=K0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function gn(e,t,r,i){const s=e.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function Kt(e,t){return e.length>0?(gn(e,e.length,0,t),e):t}const V0={}.hasOwnProperty;function lU(e){const t={};let r=-1;for(;++r<e.length;)oU(t,e[r]);return t}function oU(e,t){let r;for(r in t){const s=(V0.call(e,r)?e[r]:void 0)||(e[r]={}),l=t[r];let c;if(l)for(c in l){V0.call(s,c)||(s[c]=[]);const u=l[c];cU(s[c],Array.isArray(u)?u:u?[u]:[])}}}function cU(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);gn(e,0,0,i)}function G0(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Fi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pn=ir(/[A-Za-z]/),St=ir(/[\dA-Za-z]/),uU=ir(/[#-'*+\--9=?A-Z^-~]/);function hf(e){return e!==null&&(e<32||e===127)}const gf=ir(/\d/),fU=ir(/[\dA-Fa-f]/),dU=ir(/[!-/:-@[-`{-~]/);function Qe(e){return e!==null&&e<-2}function ht(e){return e!==null&&(e<0||e===32)}function AA(e){return e===-2||e===-1||e===32}const hU=ir(new RegExp("\\p{P}|\\p{S}","u")),gU=ir(/\s/);function ir(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ti(e){const t=[];let r=-1,i=0,s=0;for(;++r<e.length;){const l=e.charCodeAt(r);let c="";if(l===37&&St(e.charCodeAt(r+1))&&St(e.charCodeAt(r+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(r+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+s+1,c=""),s&&(r+=s,s=0)}return t.join("")+e.slice(i)}function pA(e,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(f){return AA(f)?(e.enter(r),u(f)):t(f)}function u(f){return AA(f)&&l++<s?(e.consume(f),u):(e.exit(r),t(f))}}const pU={tokenize:mU};function mU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let r;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),pA(e,t,"linePrefix")}function s(u){return e.enter("paragraph"),l(u)}function l(u){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Qe(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const BU={tokenize:wU},z0={tokenize:CU};function wU(e){const t=this,r=[];let i=0,s,l,c;return u;function u(O){if(i<r.length){const G=r[i];return t.containerState=G[1],e.attempt(G[0].continuation,f,h)(O)}return h(O)}function f(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&T();const G=t.events.length;let k=G,F;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){F=t.events[k][1].end;break}Q(i);let H=G;for(;H<t.events.length;)t.events[H][1].end={...F},H++;return gn(t.events,k+1,0,t.events.slice(G)),t.events.length=H,h(O)}return u(O)}function h(O){if(i===r.length){if(!s)return C(O);if(s.currentConstruct&&s.currentConstruct.concrete)return v(O);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(z0,m,B)(O)}function m(O){return s&&T(),Q(i),C(O)}function B(O){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,v(O)}function C(O){return t.containerState={},e.attempt(z0,w,v)(O)}function w(O){return i++,r.push([t.currentConstruct,t.containerState]),C(O)}function v(O){if(O===null){s&&T(),Q(0),e.consume(O);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),b(O)}function b(O){if(O===null){U(e.exit("chunkFlow"),!0),Q(0),e.consume(O);return}return Qe(O)?(e.consume(O),U(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(O),b)}function U(O,G){const k=t.sliceStream(O);if(G&&k.push(null),O.previous=l,l&&(l.next=O),l=O,s.defineSkip(O.start),s.write(k),t.parser.lazy[O.start.line]){let F=s.events.length;for(;F--;)if(s.events[F][1].start.offset<c&&(!s.events[F][1].end||s.events[F][1].end.offset>c))return;const H=t.events.length;let L=H,M,W;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(M){W=t.events[L][1].end;break}M=!0}for(Q(i),F=H;F<t.events.length;)t.events[F][1].end={...W},F++;gn(t.events,L+1,0,t.events.slice(H)),t.events.length=F}}function Q(O){let G=r.length;for(;G-- >O;){const k=r[G];t.containerState=k[1],k[0].exit.call(t,e)}r.length=O}function T(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function CU(e,t,r){return pA(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function P0(e){if(e===null||ht(e)||gU(e))return 1;if(hU(e))return 2}function pf(e,t,r){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,r),i.push(l))}return t}const mf={name:"attention",resolveAll:yU,tokenize:EU};function yU(e,t){let r=-1,i,s,l,c,u,f,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;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[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const B={...e[i][1].end},C={...e[r][1].start};Y0(B,-f),Y0(C,f),c={type:f>1?"strongSequence":"emphasisSequence",start:B,end:{...e[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:C},l={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},s={type:f>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[r][1].start={...u.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Kt(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Kt(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Kt(h,pf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),h=Kt(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Kt(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,gn(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function EU(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=P0(i);let l;return c;function c(f){return l=f,e.enter("attentionSequence"),u(f)}function u(f){if(f===l)return e.consume(f),u;const h=e.exit("attentionSequence"),m=P0(f),B=!m||m===2&&s||r.includes(f),C=!s||s===2&&m||r.includes(i);return h._open=!!(l===42?B:B&&(s||!C)),h._close=!!(l===42?C:C&&(m||!B)),t(f)}}function Y0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vU={name:"autolink",tokenize:bU};function bU(e,t,r){let i=0;return s;function s(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(w){return pn(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||St(w)?(i=1,u(w)):h(w)}function u(w){return w===58?(e.consume(w),i=0,f):(w===43||w===45||w===46||St(w))&&i++<32?(e.consume(w),u):(i=0,h(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||hf(w)?r(w):(e.consume(w),f)}function h(w){return w===64?(e.consume(w),m):uU(w)?(e.consume(w),h):r(w)}function m(w){return St(w)?B(w):r(w)}function B(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):C(w)}function C(w){if((w===45||St(w))&&i++<63){const v=w===45?C:B;return e.consume(w),v}return r(w)}}const Pl={partial:!0,tokenize:xU};function xU(e,t,r){return i;function i(l){return AA(l)?pA(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Qe(l)?t(l):r(l)}}const X0={continuation:{tokenize:QU},exit:UU,name:"blockQuote",tokenize:SU};function SU(e,t,r){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return r(c)}function l(c){return AA(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function QU(e,t,r){const i=this;return s;function s(c){return AA(c)?pA(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(X0,t,r)(c)}}function UU(e){e.exit("blockQuote")}const q0={name:"characterEscape",tokenize:FU};function FU(e,t,r){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return dU(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(l)}}const J0={name:"characterReference",tokenize:TU};function TU(e,t,r){const i=this;let s=0,l,c;return u;function u(B){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),f}function f(B){return B===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(B),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,c=St,m(B))}function h(B){return B===88||B===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(B),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=fU,m):(e.enter("characterReferenceValue"),l=7,c=gf,m(B))}function m(B){if(B===59&&s){const C=e.exit("characterReferenceValue");return c===St&&!df(i.sliceSerialize(C))?r(B):(e.enter("characterReferenceMarker"),e.consume(B),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(B)&&s++<l?(e.consume(B),m):r(B)}}const Z0={partial:!0,tokenize:IU},W0={concrete:!0,name:"codeFenced",tokenize:NU};function NU(e,t,r){const i=this,s={partial:!0,tokenize:k};let l=0,c=0,u;return f;function f(F){return h(F)}function h(F){const H=i.events[i.events.length-1];return l=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,u=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===u?(c++,e.consume(F),m):c<3?r(F):(e.exit("codeFencedFenceSequence"),AA(F)?pA(e,B,"whitespace")(F):B(F))}function B(F){return F===null||Qe(F)?(e.exit("codeFencedFence"),i.interrupt?t(F):e.check(Z0,b,G)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===null||Qe(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(F)):AA(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pA(e,w,"whitespace")(F)):F===96&&F===u?r(F):(e.consume(F),C)}function w(F){return F===null||Qe(F)?B(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(F))}function v(F){return F===null||Qe(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),B(F)):F===96&&F===u?r(F):(e.consume(F),v)}function b(F){return e.attempt(s,G,U)(F)}function U(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Q}function Q(F){return l>0&&AA(F)?pA(e,T,"linePrefix",l+1)(F):T(F)}function T(F){return F===null||Qe(F)?e.check(Z0,b,G)(F):(e.enter("codeFlowValue"),O(F))}function O(F){return F===null||Qe(F)?(e.exit("codeFlowValue"),T(F)):(e.consume(F),O)}function G(F){return e.exit("codeFenced"),t(F)}function k(F,H,L){let M=0;return W;function W(z){return F.enter("lineEnding"),F.consume(z),F.exit("lineEnding"),ee}function ee(z){return F.enter("codeFencedFence"),AA(z)?pA(F,j,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return z===u?(F.enter("codeFencedFenceSequence"),se(z)):L(z)}function se(z){return z===u?(M++,F.consume(z),se):M>=c?(F.exit("codeFencedFenceSequence"),AA(z)?pA(F,le,"whitespace")(z):le(z)):L(z)}function le(z){return z===null||Qe(z)?(F.exit("codeFencedFence"),H(z)):L(z)}}}function IU(e,t,r){const i=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Bf={name:"codeIndented",tokenize:HU},_U={partial:!0,tokenize:MU};function HU(e,t,r){const i=this;return s;function s(h){return e.enter("codeIndented"),pA(e,l,"linePrefix",5)(h)}function l(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):Qe(h)?e.attempt(_U,c,f)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||Qe(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),u)}function f(h){return e.exit("codeIndented"),t(h)}}function MU(e,t,r){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?r(c):Qe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):pA(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):Qe(c)?s(c):r(c)}}const OU={name:"codeText",previous:LU,resolve:RU,tokenize:DU};function RU(e){let t=e.length-4,r=3,i,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function LU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DU(e,t,r){let i=0,s,l;return c;function c(B){return e.enter("codeText"),e.enter("codeTextSequence"),u(B)}function u(B){return B===96?(e.consume(B),i++,u):(e.exit("codeTextSequence"),f(B))}function f(B){return B===null?r(B):B===32?(e.enter("space"),e.consume(B),e.exit("space"),f):B===96?(l=e.enter("codeTextSequence"),s=0,m(B)):Qe(B)?(e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(B))}function h(B){return B===null||B===32||B===96||Qe(B)?(e.exit("codeTextData"),f(B)):(e.consume(B),h)}function m(B){return B===96?(e.consume(B),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(B)):(l.type="codeTextData",h(B))}}class kU{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,r){const i=r??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,r,i){const s=r||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&os(this.left,i),l.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),os(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),os(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);os(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);os(this.left,r.reverse())}}}function os(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function $0(e){const t={};let r=-1,i,s,l,c,u,f,h;const m=new kU(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,l=0,l<f.length&&f[l][1].type==="lineEndingBlank"&&(l+=2),l<f.length&&f[l][1].type==="content"))for(;++l<f.length&&f[l][1].type!=="content";)f[l][1].type==="chunkText"&&(f[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,jU(m,r)),r=t[r],h=!0);else if(i[1]._container){for(l=r,s=void 0;l--;)if(c=m.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(m.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...m.get(s)[1].start},u=m.slice(s,r),u.unshift(i),m.splice(s,r-s+1,u))}}return gn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function jU(e,t){const r=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,f=[],h={};let m,B,C=-1,w=r,v=0,b=0;const U=[b];for(;w;){for(;e.get(++s)[1]!==w;);l.push(s),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),B&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),B=w,w=w.next}for(w=r;++C<u.length;)u[C][0]==="exit"&&u[C-1][0]==="enter"&&u[C][1].type===u[C-1][1].type&&u[C][1].start.line!==u[C][1].end.line&&(b=C+1,U.push(b),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):U.pop(),C=U.length;C--;){const Q=u.slice(U[C],U[C+1]),T=l.pop();f.push([T,T+Q.length-1]),e.splice(T,2,Q)}for(f.reverse(),C=-1;++C<f.length;)h[v+f[C][0]]=v+f[C][1],v+=f[C][1]-f[C][0]-1;return h}const KU={resolve:GU,tokenize:zU},VU={partial:!0,tokenize:PU};function GU(e){return $0(e),e}function zU(e,t){let r;return i;function i(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):Qe(u)?e.check(VU,c,l)(u):(e.consume(u),s)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function PU(e,t,r){const i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),pA(e,l,"linePrefix")}function l(c){if(c===null||Qe(c))return r(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function eB(e,t,r,i,s,l,c,u,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return B;function B(Q){return Q===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(Q),e.exit(l),C):Q===null||Q===32||Q===41||hf(Q)?r(Q):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),b(Q))}function C(Q){return Q===62?(e.enter(l),e.consume(Q),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),w(Q))}function w(Q){return Q===62?(e.exit("chunkString"),e.exit(u),C(Q)):Q===null||Q===60||Qe(Q)?r(Q):(e.consume(Q),Q===92?v:w)}function v(Q){return Q===60||Q===62||Q===92?(e.consume(Q),w):w(Q)}function b(Q){return!m&&(Q===null||Q===41||ht(Q))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(Q)):m<h&&Q===40?(e.consume(Q),m++,b):Q===41?(e.consume(Q),m--,b):Q===null||Q===32||Q===40||hf(Q)?r(Q):(e.consume(Q),Q===92?U:b)}function U(Q){return Q===40||Q===41||Q===92?(e.consume(Q),b):b(Q)}}function AB(e,t,r,i,s,l){const c=this;let u=0,f;return h;function h(w){return e.enter(i),e.enter(s),e.consume(w),e.exit(s),e.enter(l),m}function m(w){return u>999||w===null||w===91||w===93&&!f||w===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(l),e.enter(s),e.consume(w),e.exit(s),e.exit(i),t):Qe(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),B(w))}function B(w){return w===null||w===91||w===93||Qe(w)||u++>999?(e.exit("chunkString"),m(w)):(e.consume(w),f||(f=!AA(w)),w===92?C:B)}function C(w){return w===91||w===92||w===93?(e.consume(w),u++,B):B(w)}}function tB(e,t,r,i,s,l){let c;return u;function u(C){return C===34||C===39||C===40?(e.enter(i),e.enter(s),e.consume(C),e.exit(s),c=C===40?41:C,f):r(C)}function f(C){return C===c?(e.enter(s),e.consume(C),e.exit(s),e.exit(i),t):(e.enter(l),h(C))}function h(C){return C===c?(e.exit(l),f(c)):C===null?r(C):Qe(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),pA(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===c||C===null||Qe(C)?(e.exit("chunkString"),h(C)):(e.consume(C),C===92?B:m)}function B(C){return C===c||C===92?(e.consume(C),m):m(C)}}function cs(e,t){let r;return i;function i(s){return Qe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,i):AA(s)?pA(e,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const YU={name:"definition",tokenize:qU},XU={partial:!0,tokenize:JU};function qU(e,t,r){const i=this;let s;return l;function l(w){return e.enter("definition"),c(w)}function c(w){return AB.call(i,e,u,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function u(w){return s=Fi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return ht(w)?cs(e,h)(w):h(w)}function h(w){return eB(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(XU,B,B)(w)}function B(w){return AA(w)?pA(e,C,"whitespace")(w):C(w)}function C(w){return w===null||Qe(w)?(e.exit("definition"),i.parser.defined.push(s),t(w)):r(w)}}function JU(e,t,r){return i;function i(u){return ht(u)?cs(e,s)(u):r(u)}function s(u){return tB(e,l,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return AA(u)?pA(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Qe(u)?t(u):r(u)}}const ZU={name:"hardBreakEscape",tokenize:WU};function WU(e,t,r){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Qe(l)?(e.exit("hardBreakEscape"),t(l)):r(l)}}const $U={name:"headingAtx",resolve:eF,tokenize:AF};function eF(e,t){let r=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},l={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},gn(e,i,r-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function AF(e,t,r){let i=0;return s;function s(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ht(m)?(e.exit("atxHeadingSequence"),u(m)):r(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Qe(m)?(e.exit("atxHeading"),t(m)):AA(m)?pA(e,u,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||ht(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),h)}}const tF=["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"],nB=["pre","script","style","textarea"],nF={concrete:!0,name:"htmlFlow",resolveTo:aF,tokenize:sF},rF={partial:!0,tokenize:oF},iF={partial:!0,tokenize:lF};function aF(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 sF(e,t,r){const i=this;let s,l,c,u,f;return h;function h(E){return m(E)}function m(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),B}function B(E){return E===33?(e.consume(E),C):E===47?(e.consume(E),l=!0,b):E===63?(e.consume(E),s=3,i.interrupt?t:N):pn(E)?(e.consume(E),c=String.fromCharCode(E),U):r(E)}function C(E){return E===45?(e.consume(E),s=2,w):E===91?(e.consume(E),s=5,u=0,v):pn(E)?(e.consume(E),s=4,i.interrupt?t:N):r(E)}function w(E){return E===45?(e.consume(E),i.interrupt?t:N):r(E)}function v(E){const te="CDATA[";return E===te.charCodeAt(u++)?(e.consume(E),u===te.length?i.interrupt?t:j:v):r(E)}function b(E){return pn(E)?(e.consume(E),c=String.fromCharCode(E),U):r(E)}function U(E){if(E===null||E===47||E===62||ht(E)){const te=E===47,oe=c.toLowerCase();return!te&&!l&&nB.includes(oe)?(s=1,i.interrupt?t(E):j(E)):tF.includes(c.toLowerCase())?(s=6,te?(e.consume(E),Q):i.interrupt?t(E):j(E)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):l?T(E):O(E))}return E===45||St(E)?(e.consume(E),c+=String.fromCharCode(E),U):r(E)}function Q(E){return E===62?(e.consume(E),i.interrupt?t:j):r(E)}function T(E){return AA(E)?(e.consume(E),T):W(E)}function O(E){return E===47?(e.consume(E),W):E===58||E===95||pn(E)?(e.consume(E),G):AA(E)?(e.consume(E),O):W(E)}function G(E){return E===45||E===46||E===58||E===95||St(E)?(e.consume(E),G):k(E)}function k(E){return E===61?(e.consume(E),F):AA(E)?(e.consume(E),k):O(E)}function F(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),f=E,H):AA(E)?(e.consume(E),F):L(E)}function H(E){return E===f?(e.consume(E),f=null,M):E===null||Qe(E)?r(E):(e.consume(E),H)}function L(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||ht(E)?k(E):(e.consume(E),L)}function M(E){return E===47||E===62||AA(E)?O(E):r(E)}function W(E){return E===62?(e.consume(E),ee):r(E)}function ee(E){return E===null||Qe(E)?j(E):AA(E)?(e.consume(E),ee):r(E)}function j(E){return E===45&&s===2?(e.consume(E),R):E===60&&s===1?(e.consume(E),q):E===62&&s===4?(e.consume(E),I):E===63&&s===3?(e.consume(E),N):E===93&&s===5?(e.consume(E),me):Qe(E)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(rF,P,se)(E)):E===null||Qe(E)?(e.exit("htmlFlowData"),se(E)):(e.consume(E),j)}function se(E){return e.check(iF,le,P)(E)}function le(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),z}function z(E){return E===null||Qe(E)?se(E):(e.enter("htmlFlowData"),j(E))}function R(E){return E===45?(e.consume(E),N):j(E)}function q(E){return E===47?(e.consume(E),c="",Ae):j(E)}function Ae(E){if(E===62){const te=c.toLowerCase();return nB.includes(te)?(e.consume(E),I):j(E)}return pn(E)&&c.length<8?(e.consume(E),c+=String.fromCharCode(E),Ae):j(E)}function me(E){return E===93?(e.consume(E),N):j(E)}function N(E){return E===62?(e.consume(E),I):E===45&&s===2?(e.consume(E),N):j(E)}function I(E){return E===null||Qe(E)?(e.exit("htmlFlowData"),P(E)):(e.consume(E),I)}function P(E){return e.exit("htmlFlow"),t(E)}}function lF(e,t,r){const i=this;return s;function s(c){return Qe(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):r(c)}function l(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function oF(e,t,r){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Pl,t,r)}}const cF={name:"htmlText",tokenize:uF};function uF(e,t,r){const i=this;let s,l,c;return u;function u(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),k):N===63?(e.consume(N),O):pn(N)?(e.consume(N),L):r(N)}function h(N){return N===45?(e.consume(N),m):N===91?(e.consume(N),l=0,v):pn(N)?(e.consume(N),T):r(N)}function m(N){return N===45?(e.consume(N),w):r(N)}function B(N){return N===null?r(N):N===45?(e.consume(N),C):Qe(N)?(c=B,q(N)):(e.consume(N),B)}function C(N){return N===45?(e.consume(N),w):B(N)}function w(N){return N===62?R(N):N===45?C(N):B(N)}function v(N){const I="CDATA[";return N===I.charCodeAt(l++)?(e.consume(N),l===I.length?b:v):r(N)}function b(N){return N===null?r(N):N===93?(e.consume(N),U):Qe(N)?(c=b,q(N)):(e.consume(N),b)}function U(N){return N===93?(e.consume(N),Q):b(N)}function Q(N){return N===62?R(N):N===93?(e.consume(N),Q):b(N)}function T(N){return N===null||N===62?R(N):Qe(N)?(c=T,q(N)):(e.consume(N),T)}function O(N){return N===null?r(N):N===63?(e.consume(N),G):Qe(N)?(c=O,q(N)):(e.consume(N),O)}function G(N){return N===62?R(N):O(N)}function k(N){return pn(N)?(e.consume(N),F):r(N)}function F(N){return N===45||St(N)?(e.consume(N),F):H(N)}function H(N){return Qe(N)?(c=H,q(N)):AA(N)?(e.consume(N),H):R(N)}function L(N){return N===45||St(N)?(e.consume(N),L):N===47||N===62||ht(N)?M(N):r(N)}function M(N){return N===47?(e.consume(N),R):N===58||N===95||pn(N)?(e.consume(N),W):Qe(N)?(c=M,q(N)):AA(N)?(e.consume(N),M):R(N)}function W(N){return N===45||N===46||N===58||N===95||St(N)?(e.consume(N),W):ee(N)}function ee(N){return N===61?(e.consume(N),j):Qe(N)?(c=ee,q(N)):AA(N)?(e.consume(N),ee):M(N)}function j(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),s=N,se):Qe(N)?(c=j,q(N)):AA(N)?(e.consume(N),j):(e.consume(N),le)}function se(N){return N===s?(e.consume(N),s=void 0,z):N===null?r(N):Qe(N)?(c=se,q(N)):(e.consume(N),se)}function le(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||ht(N)?M(N):(e.consume(N),le)}function z(N){return N===47||N===62||ht(N)?M(N):r(N)}function R(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function q(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Ae}function Ae(N){return AA(N)?pA(e,me,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):me(N)}function me(N){return e.enter("htmlTextData"),c(N)}}const wf={name:"labelEnd",resolveAll:gF,resolveTo:pF,tokenize:mF},fF={tokenize:BF},dF={tokenize:wF},hF={tokenize:CF};function gF(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==r.length&&gn(e,0,e.length,r),e}function pF(e,t){let r=e.length,i=0,s,l,c,u;for(;r--;)if(s=e[r][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=r,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=r);const f={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",f,t],["enter",h,t]],u=Kt(u,e.slice(l+1,l+i+3)),u=Kt(u,[["enter",m,t]]),u=Kt(u,pf(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=Kt(u,[["exit",m,t],e[c-2],e[c-1],["exit",h,t]]),u=Kt(u,e.slice(c+1)),u=Kt(u,[["exit",f,t]]),gn(e,l,e.length,u),e}function mF(e,t,r){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(C){return l?l._inactive?B(C):(c=i.parser.defined.includes(Fi(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),f):r(C)}function f(C){return C===40?e.attempt(fF,m,c?m:B)(C):C===91?e.attempt(dF,m,c?h:B)(C):c?m(C):B(C)}function h(C){return e.attempt(hF,m,B)(C)}function m(C){return t(C)}function B(C){return l._balanced=!0,r(C)}}function BF(e,t,r){return i;function i(B){return e.enter("resource"),e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),s}function s(B){return ht(B)?cs(e,l)(B):l(B)}function l(B){return B===41?m(B):eB(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(B)}function c(B){return ht(B)?cs(e,f)(B):m(B)}function u(B){return r(B)}function f(B){return B===34||B===39||B===40?tB(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(B):m(B)}function h(B){return ht(B)?cs(e,m)(B):m(B)}function m(B){return B===41?(e.enter("resourceMarker"),e.consume(B),e.exit("resourceMarker"),e.exit("resource"),t):r(B)}}function wF(e,t,r){const i=this;return s;function s(u){return AB.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(Fi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):r(u)}function c(u){return r(u)}}function CF(e,t,r){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):r(l)}}const yF={name:"labelStartImage",resolveAll:wf.resolveAll,tokenize:EF};function EF(e,t,r){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):r(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const vF={name:"labelStartLink",resolveAll:wf.resolveAll,tokenize:bF};function bF(e,t,r){const i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Cf={name:"lineEnding",tokenize:xF};function xF(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),pA(e,t,"linePrefix")}}const Yl={name:"thematicBreak",tokenize:SF};function SF(e,t,r){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Qe(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===s?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),AA(h)?pA(e,u,"whitespace")(h):u(h))}}const gt={continuation:{tokenize:TF},exit:IF,name:"list",tokenize:FF},QF={partial:!0,tokenize:_F},UF={partial:!0,tokenize:NF};function FF(e,t,r){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(w){const v=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:gf(w)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Yl,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return gf(w)&&++c<10?(e.consume(w),f):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(Pl,i.interrupt?r:m,e.attempt(QF,C,B))}function m(w){return i.containerState.initialBlankLine=!0,l++,C(w)}function B(w){return AA(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),C):r(w)}function C(w){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function TF(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Pl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,pA(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!AA(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(UF,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,pA(e,e.attempt(gt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function NF(e,t,r){const i=this;return pA(e,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):r(l)}}function IF(e){e.exit(this.containerState.type)}function _F(e,t,r){const i=this;return pA(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!AA(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):r(l)}}const rB={name:"setextUnderline",resolveTo:HF,tokenize:MF};function HF(e,t){let r=e.length,i,s,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!l&&e[r][1].type==="definition"&&(l=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function MF(e,t,r){const i=this;let s;return l;function l(h){let m=i.events.length,B;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){B=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||B)?(e.enter("setextHeadingLine"),s=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),AA(h)?pA(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Qe(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const OF={tokenize:RF};function RF(e){const t=this,r=e.attempt(Pl,i,e.attempt(this.parser.constructs.flowInitial,s,pA(e,e.attempt(this.parser.constructs.flow,s,e.attempt(KU,s)),"linePrefix")));return r;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const LF={resolveAll:aB()},DF=iB("string"),kF=iB("text");function iB(e){return{resolveAll:aB(e==="text"?jF:void 0),tokenize:t};function t(r){const i=this,s=this.parser.constructs[e],l=r.attempt(s,c,u);return c;function c(m){return h(m)?l(m):u(m)}function u(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),l(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const B=s[m];let C=-1;if(B)for(;++C<B.length;){const w=B[C];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function aB(e){return t;function t(r,i){let s=-1,l;for(;++s<=r.length;)l===void 0?r[s]&&r[s][1].type==="data"&&(l=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==l+2&&(r[l][1].end=r[s-1][1].end,r.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(r,i):r}}function jF(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,f;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)f=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const h={type:r===e.length||f||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const KF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:YU},disable:{null:[]},document:{42:gt,43:gt,45:gt,48:gt,49:gt,50:gt,51:gt,52:gt,53:gt,54:gt,55:gt,56:gt,57:gt,62:X0},flow:{35:$U,42:Yl,45:[rB,Yl],60:nF,61:rB,95:Yl,96:W0,126:W0},flowInitial:{[-2]:Bf,[-1]:Bf,32:Bf},insideSpan:{null:[mf,LF]},string:{38:J0,92:q0},text:{[-5]:Cf,[-4]:Cf,[-3]:Cf,33:yF,38:J0,42:mf,60:[vU,cF],91:vF,92:[ZU,q0],93:wf,95:mf,96:OU}},Symbol.toStringTag,{value:"Module"}));function VF(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},l=[];let c=[],u=[];const f={attempt:H(k),check:H(F),consume:T,enter:O,exit:G,interrupt:H(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:b,events:[],now:v,parser:e,previous:null,sliceSerialize:C,sliceStream:w,write:B};let m=t.tokenize.call(h,f);return t.resolveAll&&l.push(t),h;function B(ee){return c=Kt(c,ee),U(),c[c.length-1]!==null?[]:(L(t,0),h.events=pf(l,h.events,h),h.events)}function C(ee,j){return zF(w(ee),j)}function w(ee){return GF(c,ee)}function v(){const{_bufferIndex:ee,_index:j,line:se,column:le,offset:z}=i;return{_bufferIndex:ee,_index:j,line:se,column:le,offset:z}}function b(ee){s[ee.line]=ee.column,W()}function U(){let ee;for(;i._index<c.length;){const j=c[i._index];if(typeof j=="string")for(ee=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ee&&i._bufferIndex<j.length;)Q(j.charCodeAt(i._bufferIndex));else Q(j)}}function Q(ee){m=m(ee)}function T(ee){Qe(ee)?(i.line++,i.column=1,i.offset+=ee===-3?2:1,W()):ee!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=ee}function O(ee,j){const se=j||{};return se.type=ee,se.start=v(),h.events.push(["enter",se,h]),u.push(se),se}function G(ee){const j=u.pop();return j.end=v(),h.events.push(["exit",j,h]),j}function k(ee,j){L(ee,j.from)}function F(ee,j){j.restore()}function H(ee,j){return se;function se(le,z,R){let q,Ae,me,N;return Array.isArray(le)?P(le):"tokenize"in le?P([le]):I(le);function I(fe){return ge;function ge(Re){const Fe=Re!==null&&fe[Re],Ze=Re!==null&&fe.null,ke=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(Ze)?Ze:Ze?[Ze]:[]];return P(ke)(Re)}}function P(fe){return q=fe,Ae=0,fe.length===0?R:E(fe[Ae])}function E(fe){return ge;function ge(Re){return N=M(),me=fe,fe.partial||(h.currentConstruct=fe),fe.name&&h.parser.constructs.disable.null.includes(fe.name)?oe():fe.tokenize.call(j?Object.assign(Object.create(h),j):h,f,te,oe)(Re)}}function te(fe){return ee(me,N),z}function oe(fe){return N.restore(),++Ae<q.length?E(q[Ae]):R}}}function L(ee,j){ee.resolveAll&&!l.includes(ee)&&l.push(ee),ee.resolve&&gn(h.events,j,h.events.length-j,ee.resolve(h.events.slice(j),h)),ee.resolveTo&&(h.events=ee.resolveTo(h.events,h))}function M(){const ee=v(),j=h.previous,se=h.currentConstruct,le=h.events.length,z=Array.from(u);return{from:le,restore:R};function R(){i=ee,h.previous=j,h.currentConstruct=se,h.events.length=le,u=z,W()}}function W(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function GF(e,t){const r=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(r===s)c=[e[r].slice(i,l)];else{if(c=e.slice(r,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function zF(e,t){let r=-1;const i=[];let s;for(;++r<e.length;){const l=e[r];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
|
|
89
89
|
`;break}case-3:{c=`\r
|
|
90
|
-
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function PF(e){const i={constructs:lU([KF,...(e||{}).extensions||[]]),content:s(pU),defined:[],document:s(BU),flow:s(OF),lazy:{},string:s(DF),text:s(kF)};return i;function s(l){return c;function c(u){return VF(i,l,u)}}}function YF(e){for(;!$0(e););return e}const sB=/[\0\t\n\r]/g;function XF(){let e=1,t="",r=!0,i;return s;function s(l,c,u){const f=[];let h,m,B,C,w;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),B=0,t="",r&&(l.charCodeAt(0)===65279&&B++,r=void 0);B<l.length;){if(sB.lastIndex=B,h=sB.exec(l),C=h&&h.index!==void 0?h.index:l.length,w=l.charCodeAt(C),!h){t=l.slice(B);break}if(w===10&&B===C&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),B<C&&(f.push(l.slice(B,C)),e+=C-B),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}B=C+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const qF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JF(e){return e.replace(qF,ZF)}function ZF(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),l=s===120||s===88;return G0(r.slice(l?2:1),l?16:10)}return ff(r)||e}const lB={}.hasOwnProperty;function WF(e,t,r){return typeof t!="string"&&(r=t,t=void 0),$F(r)(YF(PF(r).document().write(XF()(e,t,!0))))}function $F(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ut),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(VA),blockQuote:l(eA),characterEscape:O,characterReference:O,codeFenced:l(Pe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(Pe,c),codeText:l(nA,c),codeTextData:O,data:O,codeFlowValue:O,definition:l(OA),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(rA),hardBreakEscape:l(ct),hardBreakTrailing:l(ct),htmlFlow:l(wn,c),htmlFlowData:O,htmlText:l(wn,c),htmlTextData:O,image:l(Cn),label:c,link:l(Ut),listItem:l(yn),listItemValue:C,listOrdered:l(ut,B),listUnordered:l(ut),paragraph:l(mr),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(VA),strong:l(Vi),thematicBreak:l(Gi)},exit:{atxHeading:f(),atxHeadingSequence:j,autolink:f(),autolinkEmail:xe,autolinkProtocol:Oe,blockQuote:f(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:ue,characterReference:pe,codeFenced:f(U),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:v,codeFlowValue:$,codeIndented:f(Q),codeText:f(J),codeTextData:$,data:$,definition:f(),definitionDestinationString:z,definitionLabelString:I,definitionTitleString:M,emphasis:f(),hardBreakEscape:f(V),hardBreakTrailing:f(V),htmlFlow:f(se),htmlFlowData:$,htmlText:f(Ae),htmlTextData:$,image:f(Z),label:ge,labelText:te,lineEnding:ee,link:f(L),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ne,resourceDestinationString:T,resourceTitleString:N,resource:q,setextHeading:f(k),setextHeadingLineSequence:H,setextHeadingText:F,strong:f(),thematicBreak:f()}};oB(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(R){let K={type:"root",children:[]};const le={stack:[K],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,data:r},de=[];let Ee=-1;for(;++Ee<R.length;)if(R[Ee][1].type==="listOrdered"||R[Ee][1].type==="listUnordered")if(R[Ee][0]==="enter")de.push(Ee);else{const Fe=de.pop();Ee=s(R,Fe,Ee)}for(Ee=-1;++Ee<R.length;){const Fe=t[R[Ee][0]];lB.call(Fe,R[Ee][1].type)&&Fe[R[Ee][1].type].call(Object.assign({sliceSerialize:R[Ee][2].sliceSerialize},le),R[Ee][1])}if(le.tokenStack.length>0){const Fe=le.tokenStack[le.tokenStack.length-1];(Fe[1]||cB).call(le,void 0,Fe[0])}for(K.position={start:ir(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:ir(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<t.transforms.length;)K=t.transforms[Ee](K)||K;return K}function s(R,K,le){let de=K-1,Ee=-1,Fe=!1,wA,qe,Je,mA;for(;++de<=le;){const Ye=R[de];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?Ee++:Ee--,mA=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(wA&&!mA&&!Ee&&!Je&&(Je=de),mA=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mA=void 0}if(!Ee&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||Ee===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(wA){let fA=de;for(qe=void 0;fA--;){const Qe=R[fA];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;qe&&(R[qe][1].type="lineEndingBlank",Fe=!0),Qe[1].type="lineEnding",qe=fA}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}Je&&(!qe||Je<qe)&&(wA._spread=!0),wA.end=Object.assign({},qe?R[qe][1].start:Ye[1].end),R.splice(qe||de,0,["exit",wA,Ye[2]]),de++,le++}if(Ye[1].type==="listItemPrefix"){const fA={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};wA=fA,R.splice(de,0,["enter",fA,Ye[2]]),de++,le++,Je=void 0,mA=!0}}}return R[K][1]._spread=Fe,le}function l(R,K){return le;function le(de){u.call(this,R(de),de),K&&K.call(this,de)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(R,K,le){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([K,le||void 0]),R.position={start:ir(K.start),end:void 0}}function f(R){return K;function K(le){R&&R.call(this,le),h.call(this,le)}}function h(R,K){const le=this.stack.pop(),de=this.tokenStack.pop();if(de)de[0].type!==R.type&&(K?K.call(this,R,de[0]):(de[1]||cB).call(this,R,de[0]));else throw new Error("Cannot close `"+R.type+"` ("+ss({start:R.start,end:R.end})+"): it’s not open");le.position.end=ir(R.end)}function m(){return aU(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function C(R){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function w(){const R=this.resume(),K=this.stack[this.stack.length-1];K.lang=R}function v(){const R=this.resume(),K=this.stack[this.stack.length-1];K.meta=R}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const R=this.resume(),K=this.stack[this.stack.length-1];K.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Q(){const R=this.resume(),K=this.stack[this.stack.length-1];K.value=R.replace(/(\r?\n|\r)$/g,"")}function I(R){const K=this.resume(),le=this.stack[this.stack.length-1];le.label=K,le.identifier=Qi(this.sliceSerialize(R)).toLowerCase()}function M(){const R=this.resume(),K=this.stack[this.stack.length-1];K.title=R}function z(){const R=this.resume(),K=this.stack[this.stack.length-1];K.url=R}function j(R){const K=this.stack[this.stack.length-1];if(!K.depth){const le=this.sliceSerialize(R).length;K.depth=le}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function H(R){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function O(R){const le=this.stack[this.stack.length-1].children;let de=le[le.length-1];(!de||de.type!=="text")&&(de=XA(),de.position={start:ir(R.start),end:void 0},le.push(de)),this.stack.push(de)}function $(R){const K=this.stack.pop();K.value+=this.sliceSerialize(R),K.position.end=ir(R.end)}function ee(R){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=K.children[K.children.length-1];le.position.end=ir(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(K.type)&&(O.call(this,R),$.call(this,R))}function V(){this.data.atHardBreak=!0}function se(){const R=this.resume(),K=this.stack[this.stack.length-1];K.value=R}function Ae(){const R=this.resume(),K=this.stack[this.stack.length-1];K.value=R}function J(){const R=this.resume(),K=this.stack[this.stack.length-1];K.value=R}function L(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=K,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function Z(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=K,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function te(R){const K=this.sliceSerialize(R),le=this.stack[this.stack.length-2];le.label=JF(K),le.identifier=Qi(K).toLowerCase()}function ge(){const R=this.stack[this.stack.length-1],K=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const de=R.children;le.children=de}else le.alt=K}function T(){const R=this.resume(),K=this.stack[this.stack.length-1];K.url=R}function N(){const R=this.resume(),K=this.stack[this.stack.length-1];K.title=R}function q(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function ne(R){const K=this.resume(),le=this.stack[this.stack.length-1];le.label=K,le.identifier=Qi(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function oe(R){this.data.characterReferenceType=R.type}function ue(R){const K=this.sliceSerialize(R),le=this.data.characterReferenceType;let de;le?(de=G0(K,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):de=ff(K);const Ee=this.stack[this.stack.length-1];Ee.value+=de}function pe(R){const K=this.stack.pop();K.position.end=ir(R.end)}function Oe(R){$.call(this,R);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(R)}function xe(R){$.call(this,R);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(R)}function eA(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function nA(){return{type:"inlineCode",value:""}}function OA(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function rA(){return{type:"emphasis",children:[]}}function VA(){return{type:"heading",depth:0,children:[]}}function ct(){return{type:"break"}}function wn(){return{type:"html",value:""}}function Cn(){return{type:"image",title:null,url:"",alt:null}}function Ut(){return{type:"link",title:null,url:"",children:[]}}function ut(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function yn(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function mr(){return{type:"paragraph",children:[]}}function Vi(){return{type:"strong",children:[]}}function XA(){return{type:"text",value:""}}function Gi(){return{type:"thematicBreak"}}}function ir(e){return{line:e.line,column:e.column,offset:e.offset}}function oB(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?oB(e,i):e2(e,i)}}function e2(e,t){let r;for(r in t)if(lB.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function cB(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ss({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is still open")}function A2(e){const t=this;t.parser=r;function r(i){return WF(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function t2(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function n2(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
90
|
+
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function PF(e){const i={constructs:lU([KF,...(e||{}).extensions||[]]),content:s(pU),defined:[],document:s(BU),flow:s(OF),lazy:{},string:s(DF),text:s(kF)};return i;function s(l){return c;function c(u){return VF(i,l,u)}}}function YF(e){for(;!$0(e););return e}const sB=/[\0\t\n\r]/g;function XF(){let e=1,t="",r=!0,i;return s;function s(l,c,u){const f=[];let h,m,B,C,w;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),B=0,t="",r&&(l.charCodeAt(0)===65279&&B++,r=void 0);B<l.length;){if(sB.lastIndex=B,h=sB.exec(l),C=h&&h.index!==void 0?h.index:l.length,w=l.charCodeAt(C),!h){t=l.slice(B);break}if(w===10&&B===C&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),B<C&&(f.push(l.slice(B,C)),e+=C-B),w){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}B=C+1}return u&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const qF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JF(e){return e.replace(qF,ZF)}function ZF(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),l=s===120||s===88;return G0(r.slice(l?2:1),l?16:10)}return df(r)||e}const lB={}.hasOwnProperty;function WF(e,t,r){return typeof t!="string"&&(r=t,t=void 0),$F(r)(YF(PF(r).document().write(XF()(e,t,!0))))}function $F(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Ft),autolinkProtocol:M,autolinkEmail:M,atxHeading:l(bA),blockQuote:l(Ze),characterEscape:M,characterReference:M,codeFenced:l(ke),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(ke,c),codeText:l(FA,c),codeTextData:M,data:M,codeFlowValue:M,definition:l(aA),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(EA),hardBreakEscape:l(Ut),hardBreakTrailing:l(Ut),htmlFlow:l(mt,c),htmlFlowData:M,htmlText:l(mt,c),htmlTextData:M,image:l(yn),label:c,link:l(Ft),listItem:l(ln),listItemValue:C,listOrdered:l(ct,B),listUnordered:l(ct),paragraph:l(ei),reference:E,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(bA),strong:l(Br),thematicBreak:l(zi)},exit:{atxHeading:f(),atxHeadingSequence:k,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Re,blockQuote:f(),characterEscapeValue:W,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:fe,characterReference:ge,codeFenced:f(U),codeFencedFence:b,codeFencedFenceInfo:w,codeFencedFenceMeta:v,codeFlowValue:W,codeIndented:f(Q),codeText:f(z),codeTextData:W,data:W,definition:f(),definitionDestinationString:G,definitionLabelString:T,definitionTitleString:O,emphasis:f(),hardBreakEscape:f(j),hardBreakTrailing:f(j),htmlFlow:f(se),htmlFlowData:W,htmlText:f(le),htmlTextData:W,image:f(q),label:me,labelText:Ae,lineEnding:ee,link:f(R),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:te,resourceDestinationString:N,resourceTitleString:I,resource:P,setextHeading:f(L),setextHeadingLineSequence:H,setextHeadingText:F,strong:f(),thematicBreak:f()}};oB(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(re){let K={type:"root",children:[]};const J={stack:[K],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:m,data:r},ce=[];let pe=-1;for(;++pe<re.length;)if(re[pe][1].type==="listOrdered"||re[pe][1].type==="listUnordered")if(re[pe][0]==="enter")ce.push(pe);else{const Ue=ce.pop();pe=s(re,Ue,pe)}for(pe=-1;++pe<re.length;){const Ue=t[re[pe][0]];lB.call(Ue,re[pe][1].type)&&Ue[re[pe][1].type].call(Object.assign({sliceSerialize:re[pe][2].sliceSerialize},J),re[pe][1])}if(J.tokenStack.length>0){const Ue=J.tokenStack[J.tokenStack.length-1];(Ue[1]||cB).call(J,void 0,Ue[0])}for(K.position={start:ar(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:ar(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)K=t.transforms[pe](K)||K;return K}function s(re,K,J){let ce=K-1,pe=-1,Ue=!1,Ne,We,ze,dA;for(;++ce<=J;){const De=re[ce];switch(De[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{De[0]==="enter"?pe++:pe--,dA=void 0;break}case"lineEndingBlank":{De[0]==="enter"&&(Ne&&!dA&&!pe&&!ze&&(ze=ce),dA=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dA=void 0}if(!pe&&De[0]==="enter"&&De[1].type==="listItemPrefix"||pe===-1&&De[0]==="exit"&&(De[1].type==="listUnordered"||De[1].type==="listOrdered")){if(Ne){let Bt=ce;for(We=void 0;Bt--;){const be=re[Bt];if(be[1].type==="lineEnding"||be[1].type==="lineEndingBlank"){if(be[0]==="exit")continue;We&&(re[We][1].type="lineEndingBlank",Ue=!0),be[1].type="lineEnding",We=Bt}else if(!(be[1].type==="linePrefix"||be[1].type==="blockQuotePrefix"||be[1].type==="blockQuotePrefixWhitespace"||be[1].type==="blockQuoteMarker"||be[1].type==="listItemIndent"))break}ze&&(!We||ze<We)&&(Ne._spread=!0),Ne.end=Object.assign({},We?re[We][1].start:De[1].end),re.splice(We||ce,0,["exit",Ne,De[2]]),ce++,J++}if(De[1].type==="listItemPrefix"){const Bt={type:"listItem",_spread:!1,start:Object.assign({},De[1].start),end:void 0};Ne=Bt,re.splice(ce,0,["enter",Bt,De[2]]),ce++,J++,ze=void 0,dA=!0}}}return re[K][1]._spread=Ue,J}function l(re,K){return J;function J(ce){u.call(this,re(ce),ce),K&&K.call(this,ce)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(re,K,J){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([K,J||void 0]),re.position={start:ar(K.start),end:void 0}}function f(re){return K;function K(J){re&&re.call(this,J),h.call(this,J)}}function h(re,K){const J=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==re.type&&(K?K.call(this,re,ce[0]):(ce[1]||cB).call(this,re,ce[0]));else throw new Error("Cannot close `"+re.type+"` ("+ss({start:re.start,end:re.end})+"): it’s not open");J.position.end=ar(re.end)}function m(){return aU(this.stack.pop())}function B(){this.data.expectingFirstListItemValue=!0}function C(re){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function w(){const re=this.resume(),K=this.stack[this.stack.length-1];K.lang=re}function v(){const re=this.resume(),K=this.stack[this.stack.length-1];K.meta=re}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const re=this.resume(),K=this.stack[this.stack.length-1];K.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Q(){const re=this.resume(),K=this.stack[this.stack.length-1];K.value=re.replace(/(\r?\n|\r)$/g,"")}function T(re){const K=this.resume(),J=this.stack[this.stack.length-1];J.label=K,J.identifier=Fi(this.sliceSerialize(re)).toLowerCase()}function O(){const re=this.resume(),K=this.stack[this.stack.length-1];K.title=re}function G(){const re=this.resume(),K=this.stack[this.stack.length-1];K.url=re}function k(re){const K=this.stack[this.stack.length-1];if(!K.depth){const J=this.sliceSerialize(re).length;K.depth=J}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function H(re){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function M(re){const J=this.stack[this.stack.length-1].children;let ce=J[J.length-1];(!ce||ce.type!=="text")&&(ce=XA(),ce.position={start:ar(re.start),end:void 0},J.push(ce)),this.stack.push(ce)}function W(re){const K=this.stack.pop();K.value+=this.sliceSerialize(re),K.position.end=ar(re.end)}function ee(re){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const J=K.children[K.children.length-1];J.position.end=ar(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(K.type)&&(M.call(this,re),W.call(this,re))}function j(){this.data.atHardBreak=!0}function se(){const re=this.resume(),K=this.stack[this.stack.length-1];K.value=re}function le(){const re=this.resume(),K=this.stack[this.stack.length-1];K.value=re}function z(){const re=this.resume(),K=this.stack[this.stack.length-1];K.value=re}function R(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=K,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function q(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=K,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function Ae(re){const K=this.sliceSerialize(re),J=this.stack[this.stack.length-2];J.label=JF(K),J.identifier=Fi(K).toLowerCase()}function me(){const re=this.stack[this.stack.length-1],K=this.resume(),J=this.stack[this.stack.length-1];if(this.data.inReference=!0,J.type==="link"){const ce=re.children;J.children=ce}else J.alt=K}function N(){const re=this.resume(),K=this.stack[this.stack.length-1];K.url=re}function I(){const re=this.resume(),K=this.stack[this.stack.length-1];K.title=re}function P(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function te(re){const K=this.resume(),J=this.stack[this.stack.length-1];J.label=K,J.identifier=Fi(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function oe(re){this.data.characterReferenceType=re.type}function fe(re){const K=this.sliceSerialize(re),J=this.data.characterReferenceType;let ce;J?(ce=G0(K,J==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=df(K);const pe=this.stack[this.stack.length-1];pe.value+=ce}function ge(re){const K=this.stack.pop();K.position.end=ar(re.end)}function Re(re){W.call(this,re);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(re)}function Fe(re){W.call(this,re);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(re)}function Ze(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function FA(){return{type:"inlineCode",value:""}}function aA(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function EA(){return{type:"emphasis",children:[]}}function bA(){return{type:"heading",depth:0,children:[]}}function Ut(){return{type:"break"}}function mt(){return{type:"html",value:""}}function yn(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function ct(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function ln(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function ei(){return{type:"paragraph",children:[]}}function Br(){return{type:"strong",children:[]}}function XA(){return{type:"text",value:""}}function zi(){return{type:"thematicBreak"}}}function ar(e){return{line:e.line,column:e.column,offset:e.offset}}function oB(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?oB(e,i):e2(e,i)}}function e2(e,t){let r;for(r in t)if(lB.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function cB(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ss({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ss({start:t.start,end:t.end})+") is still open")}function A2(e){const t=this;t.parser=r;function r(i){return WF(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function t2(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function n2(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
91
91
|
`}]}function r2(e,t){const r=t.value?t.value+`
|
|
92
|
-
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function i2(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a2(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function s2(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=
|
|
92
|
+
`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function i2(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a2(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function s2(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Ti(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,u+=1,e.footnoteCounts.set(i,u);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function l2(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function o2(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function uB(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function c2(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return uB(e,t);const s={src:Ti(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function u2(e,t){const r={src:Ti(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function f2(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function d2(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return uB(e,t);const s={href:Ti(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function h2(e,t){const r={href:Ti(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function g2(e,t,r){const i=e.all(t),s=r?p2(r):fB(t),l={},c=[];if(typeof t.checked=="boolean"){const m=i[0];let B;m&&m.type==="element"&&m.tagName==="p"?B=m:(B={type:"element",tagName:"p",properties:{},children:[]},i.unshift(B)),B.children.length>0&&B.children.unshift({type:"text",value:" "}),B.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const m=i[u];(s||u!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
93
93
|
`}),m.type==="element"&&m.tagName==="p"&&!s?c.push(...m.children):c.push(m)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
|
|
94
|
-
`});const h={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,h),e.applyData(t,h)}function p2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=fB(r[i])}return t}function fB(e){const t=e.spread;return t??e.children.length>1}function m2(e,t){const r={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function B2(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function w2(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function C2(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function y2(e,t){const r=e.all(t),i=r.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=
|
|
94
|
+
`});const h={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,h),e.applyData(t,h)}function p2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=fB(r[i])}return t}function fB(e){const t=e.spread;return t??e.children.length>1}function m2(e,t){const r={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function B2(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function w2(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function C2(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function y2(e,t){const r=e.all(t),i=r.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},u=sf(t.children[1]),f=I0(t.children[t.children.length-1]);u&&f&&(c.position={start:u,end:f}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function E2(e,t,r){const i=r?r.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,u=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<u;){const B=t.children[f],C={},w=c?c[f]:void 0;w&&(C.align=w);let v={type:"element",tagName:l,properties:C,children:[]};B&&(v.children=e.all(B),e.patch(B,v),v=e.applyData(B,v)),h.push(v)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function v2(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const dB=9,hB=32;function b2(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),s=0;const l=[];for(;i;)l.push(gB(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=r.exec(t);return l.push(gB(t.slice(s),s>0,!1)),l.join("")}function gB(e,t,r){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===dB||l===hB;)i++,l=e.codePointAt(i)}if(r){let l=e.codePointAt(s-1);for(;l===dB||l===hB;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function x2(e,t){const r={type:"text",value:b2(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function S2(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Q2={blockquote:t2,break:n2,code:r2,delete:i2,emphasis:a2,footnoteReference:s2,heading:l2,html:o2,imageReference:c2,image:u2,inlineCode:f2,linkReference:d2,link:h2,listItem:g2,list:m2,paragraph:B2,root:w2,strong:C2,table:y2,tableCell:v2,tableRow:E2,text:x2,thematicBreak:S2,toml:Xl,yaml:Xl,definition:Xl,footnoteDefinition:Xl};function Xl(){}const pB=-1,ql=0,us=1,Jl=2,yf=3,Ef=4,vf=5,bf=6,mB=7,BB=8,wB=typeof self=="object"?self:globalThis,U2=(e,t)=>{const r=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case ql:case pB:return r(c,s);case us:{const u=r([],s);for(const f of c)u.push(i(f));return u}case Jl:{const u=r({},s);for(const[f,h]of c)u[i(f)]=i(h);return u}case yf:return r(new Date(c),s);case Ef:{const{source:u,flags:f}=c;return r(new RegExp(u,f),s)}case vf:{const u=r(new Map,s);for(const[f,h]of c)u.set(i(f),i(h));return u}case bf:{const u=r(new Set,s);for(const f of c)u.add(i(f));return u}case mB:{const{name:u,message:f}=c;return r(new wB[u](f),s)}case BB:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return r(new DataView(u),c)}}return r(new wB[l](c),s)};return i},CB=e=>U2(new Map,e)(0),Ni="",{toString:F2}={},{keys:T2}=Object,fs=e=>{const t=typeof e;if(t!=="object"||!e)return[ql,t];const r=F2.call(e).slice(8,-1);switch(r){case"Array":return[us,Ni];case"Object":return[Jl,Ni];case"Date":return[yf,Ni];case"RegExp":return[Ef,Ni];case"Map":return[vf,Ni];case"Set":return[bf,Ni];case"DataView":return[us,r]}return r.includes("Array")?[us,r]:r.includes("Error")?[mB,r]:[Jl,r]},Zl=([e,t])=>e===ql&&(t==="function"||t==="symbol"),N2=(e,t,r,i)=>{const s=(c,u)=>{const f=i.push(c)-1;return r.set(u,f),f},l=c=>{if(r.has(c))return r.get(c);let[u,f]=fs(c);switch(u){case ql:{let m=c;switch(f){case"bigint":u=BB,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([pB],c)}return s([u,m],c)}case us:{if(f){let C=c;return f==="DataView"?C=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(C=new Uint8Array(c)),s([f,[...C]],c)}const m=[],B=s([u,m],c);for(const C of c)m.push(l(C));return B}case Jl:{if(f)switch(f){case"BigInt":return s([f,c.toString()],c);case"Boolean":case"Number":case"String":return s([f,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const m=[],B=s([u,m],c);for(const C of T2(c))(e||!Zl(fs(c[C])))&&m.push([l(C),l(c[C])]);return B}case yf:return s([u,c.toISOString()],c);case Ef:{const{source:m,flags:B}=c;return s([u,{source:m,flags:B}],c)}case vf:{const m=[],B=s([u,m],c);for(const[C,w]of c)(e||!(Zl(fs(C))||Zl(fs(w))))&&m.push([l(C),l(w)]);return B}case bf:{const m=[],B=s([u,m],c);for(const C of c)(e||!Zl(fs(C)))&&m.push(l(C));return B}}const{message:h}=c;return s([u,{name:f,message:h}],c)};return l},yB=(e,{json:t,lossy:r}={})=>{const i=[];return N2(!(t||r),!!t,new Map,i)(e),i},Wl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?CB(yB(e,t)):structuredClone(e):(e,t)=>CB(yB(e,t));function I2(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function _2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function H2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||I2,i=e.options.footnoteBackLabel||_2,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),B=String(h.identifier).toUpperCase(),C=Ti(B.toLowerCase());let w=0;const v=[],b=e.footnoteCounts.get(B);for(;b!==void 0&&++w<=b;){v.length>0&&v.push({type:"text",value:" "});let T=typeof r=="string"?r:r(f,w);typeof T=="string"&&(T={type:"text",value:T}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+C+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,w),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const U=m[m.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const T=U.children[U.children.length-1];T&&T.type==="text"?T.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...v)}else m.push(...v);const Q={type:"element",tagName:"li",properties:{id:t+"fn-"+C},children:e.wrap(m,!0)};e.patch(h,Q),u.push(Q)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Wl(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
95
95
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
96
|
-
`}]}}const EB=(function(e){if(e==null)return L2;if(typeof e=="function")return
|
|
96
|
+
`}]}}const EB=(function(e){if(e==null)return L2;if(typeof e=="function")return $l(e);if(typeof e=="object")return Array.isArray(e)?M2(e):O2(e);if(typeof e=="string")return R2(e);throw new Error("Expected function, string, or object as test")});function M2(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=EB(e[r]);return $l(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function O2(e){const t=e;return $l(r);function r(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function R2(e){return $l(t);function t(r){return r&&r.type===e}}function $l(e){return t;function t(r,i,s){return!!(D2(r)&&e.call(this,r,typeof i=="number"?i:void 0,s||void 0))}}function L2(){return!0}function D2(e){return e!==null&&typeof e=="object"&&"type"in e}function x6(e){return e}const vB=[],k2=!0,bB=!1,j2="skip";function K2(e,t,r,i){let s;typeof t=="function"&&typeof r!="function"?(i=r,r=t):s=t;const l=EB(s),c=i?-1:1;u(e,void 0,[])();function u(f,h,m){const B=f&&typeof f=="object"?f:{};if(typeof B.type=="string"){const w=typeof B.tagName=="string"?B.tagName:typeof B.name=="string"?B.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return C;function C(){let w=vB,v,b,U;if((!t||l(f,h,m[m.length-1]||void 0))&&(w=V2(r(f,m)),w[0]===bB))return w;if("children"in f&&f.children){const Q=f;if(Q.children&&w[0]!==j2)for(b=(i?Q.children.length:-1)+c,U=m.concat(Q);b>-1&&b<Q.children.length;){const T=Q.children[b];if(v=u(T,b,U)(),v[0]===bB)return v;b=typeof v[1]=="number"?v[1]:b+c}}return w}}}function V2(e){return Array.isArray(e)?e:typeof e=="number"?[k2,e]:e==null?vB:[e]}function xB(e,t,r,i){let s,l,c;typeof t=="function"&&typeof r!="function"?(l=void 0,c=t,s=r):(l=t,c=r,s=i),K2(e,l,u,s);function u(f,h){const m=h[h.length-1],B=m?m.children.indexOf(f):void 0;return c(f,B,m)}}const xf={}.hasOwnProperty,G2={};function z2(e,t){const r=t||G2,i=new Map,s=new Map,l=new Map,c={...Q2,...r.handlers},u={all:h,applyData:Y2,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:f,options:r,patch:P2,wrap:q2};return xB(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const B=m.type==="definition"?i:s,C=String(m.identifier).toUpperCase();B.has(C)||B.set(C,m)}}),u;function f(m,B){const C=m.type,w=u.handlers[C];if(xf.call(u.handlers,C)&&w)return w(u,m,B);if(u.options.passThrough&&u.options.passThrough.includes(C)){if("children"in m){const{children:b,...U}=m,Q=Wl(U);return Q.children=u.all(m),Q}return Wl(m)}return(u.options.unknownHandler||X2)(u,m,B)}function h(m){const B=[];if("children"in m){const C=m.children;let w=-1;for(;++w<C.length;){const v=u.one(C[w],m);if(v){if(w&&C[w-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=SB(v.value)),!Array.isArray(v)&&v.type==="element")){const b=v.children[0];b&&b.type==="text"&&(b.value=SB(b.value))}Array.isArray(v)?B.push(...v):B.push(v)}}}return B}}function P2(e,t){e.position&&(t.position=LQ(e))}function Y2(e,t){let r=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&l&&Object.assign(r.properties,Wl(l)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function X2(e,t){const r=t.data||{},i="value"in t&&!(xf.call(r,"hProperties")||xf.call(r,"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 q2(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
97
97
|
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
98
98
|
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
99
99
|
`}),r}function SB(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function QB(e,t){const r=z2(e,t),i=r.one(e,void 0),s=H2(r),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
|
|
100
|
-
`},s),l}function J2(e,t){return e&&"run"in e?async function(r,i){const s=QB(r,{file:i,...t});await e.run(s,i)}:function(r,i){return QB(r,{file:i,...e||t})}}function UB(e){if(e)throw e}var xf,FB;function Z2(){if(FB)return xf;FB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),B=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!B)return!1;var C;for(C in h);return typeof C>"u"||e.call(h,C)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return xf=function f(){var h,m,B,C,w,v,b=arguments[0],U=1,Q=arguments.length,I=!1;for(typeof b=="boolean"&&(I=b,b=arguments[1]||{},U=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});U<Q;++U)if(h=arguments[U],h!=null)for(m in h)B=u(b,m),C=u(h,m),b!==C&&(I&&C&&(l(C)||(w=s(C)))?(w?(w=!1,v=B&&s(B)?B:[]):v=B&&l(B)?B:{},c(b,{name:m,newValue:f(I,v,C)})):typeof C<"u"&&c(b,{name:m,newValue:C}));return b},xf}var W2=Z2();const Sf=uu(W2);function Qf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $2(){const e=[],t={run:r,use:i};return t;function r(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const m=e[++l];let B=-1;if(f){c(f);return}for(;++B<s.length;)(h[B]===null||h[B]===void 0)&&(h[B]=s[B]);s=h,m?eT(m,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function eT(e,t){let r;return i;function i(...c){const u=e.length>c.length;let f;u&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(u&&r)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){r||(r=!0,t(c,...u))}function l(c){s(null,c)}}const gn={basename:AT,dirname:tT,extname:nT,join:rT,sep:"/"};function AT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ds(e);let r=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(e.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function tT(e){if(ds(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nT(e){ds(e);let t=e.length,r=-1,i=0,s=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||r<0||l===0||l===1&&s===r-1&&s===i+1?"":e.slice(s,r)}function rT(...e){let t=-1,r;for(;++t<e.length;)ds(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":iT(r)}function iT(e){ds(e);const t=e.codePointAt(0)===47;let r=aT(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function aT(e,t){let r="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),s=c,l=0;continue}}else if(r.length>0){r="",i=0,s=c,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return r}function ds(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sT={cwd:lT};function lT(){return"/"}function Uf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oT(e){if(typeof e=="string")e=new URL(e);else if(!Uf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return cT(e)}function cT(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Ff=["history","path","basename","stem","extname","dirname"];class TB{constructor(t){let r;t?Uf(t)?r={path:t}:typeof t=="string"||uT(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":sT.cwd(),this.data={},this.history=[],this.messages=[];let i=-1;for(;++i<Ff.length;){const l=Ff[i];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let s;for(s in r)Ff.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?gn.basename(this.path):void 0}set basename(t){Nf(t,"basename"),Tf(t,"basename"),this.path=gn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?gn.dirname(this.path):void 0}set dirname(t){NB(this.basename,"dirname"),this.path=gn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?gn.extname(this.path):void 0}set extname(t){if(Tf(t,"extname"),NB(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Uf(t)&&(t=oT(t)),Nf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?gn.basename(this.path,this.extname):void 0}set stem(t){Nf(t,"stem"),Tf(t,"stem"),this.path=gn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const s=this.message(t,r,i);throw s.fatal=!0,s}info(t,r,i){const s=this.message(t,r,i);return s.fatal=void 0,s}message(t,r,i){const s=new st(t,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Tf(e,t){if(e&&e.includes(gn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+gn.sep+"`")}function Nf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function NB(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fT=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),dT={}.hasOwnProperty;class If extends fT{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$2()}copy(){const t=new If;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Sf(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Mf("data",this.frozen),this.namespace[t]=r,this):dT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Mf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ao(t),i=this.parser||this.Parser;return _f("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),_f("process",this.parser||this.Parser),Hf("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(l,c){const u=Ao(t),f=i.parse(u);i.run(f,u,function(m,B,C){if(m||!B||!C)return h(m);const w=B,v=i.stringify(w,C);pT(v)?C.value=v:C.result=v,h(m,C)});function h(m,B){m||!B?c(m):l?l(B):r(void 0,B)}}}processSync(t){let r=!1,i;return this.freeze(),_f("processSync",this.parser||this.Parser),Hf("processSync",this.compiler||this.Compiler),this.process(t,s),_B("processSync","process",r),i;function s(l,c){r=!0,UB(l),i=c}}run(t,r,i){IB(t),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=Ao(r);s.run(t,f,h);function h(m,B,C){const w=B||t;m?u(m):c?c(w):i(void 0,w,C)}}}runSync(t,r){let i=!1,s;return this.run(t,r,l),_B("runSync","run",i),s;function l(c,u){UB(c),s=u,i=!0}}stringify(t,r){this.freeze();const i=Ao(r),s=this.compiler||this.Compiler;return Hf("stringify",s),IB(t),s(t,i)}use(t,...r){const i=this.attachers,s=this.namespace;if(Mf("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...B]=h;f(m,B)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=Sf(!0,s.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const B=h[m];l(B)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let B=-1,C=-1;for(;++B<i.length;)if(i[B][0]===h){C=B;break}if(C===-1)i.push([h,...m]);else if(m.length>0){let[w,...v]=m;const b=i[C][1];Qf(b)&&Qf(w)&&(w=Sf(!0,b,w)),i[C]=[h,w,...v]}}}}const hT=new If().freeze();function _f(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Mf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function IB(e){if(!Qf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _B(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ao(e){return gT(e)?e:new TB(e)}function gT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pT(e){return typeof e=="string"||mT(e)}function mT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HB=[],MB={allowDangerousHtml:!0},BT=/^(https?|ircs?|mailto|xmpp)$/i,wT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function hs(e){const t=CT(e),r=yT(e);return ET(t.runSync(t.parse(r),r),e)}function CT(e){const t=e.rehypePlugins||HB,r=e.remarkPlugins||HB,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...MB}:MB;return hT().use(A2).use(r).use(J2,i).use(t)}function yT(e){const t=e.children||"",r=new TB;return typeof t=="string"&&(r.value=t),r}function ET(e,t){const r=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||vT;for(const m of wT);return xB(e,h),VQ(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,B,C){if(m.type==="raw"&&C&&typeof B=="number")return c?C.children.splice(B,1):C.children[B]={type:"text",value:m.value},B;if(m.type==="element"){let w;for(w in uf)if(Object.hasOwn(uf,w)&&Object.hasOwn(m.properties,w)){const v=m.properties[w],b=uf[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(v||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):l?l.includes(m.tagName):!1;if(!w&&i&&typeof B=="number"&&(w=!i(m,B,C)),w&&C&&typeof B=="number")return u&&m.children?C.children.splice(B,1,...m.children):C.children.splice(B,1),B}}}function vT(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||i!==-1&&t>i||BT.test(e.slice(0,t))?e:""}function OB({file:e,onRemove:t,isPreview:r=!0,className:i=""}){const[s,l]=x.useState(!1),[c,u]=x.useState(""),f=e?.type?.startsWith("image/")??!1,h=e?.type==="application/pdf";x.useEffect(()=>{if(f){const C=URL.createObjectURL(e);return u(C),()=>URL.revokeObjectURL(C)}},[e,f]),x.useEffect(()=>{l(!1)},[e]);const m=()=>f?"text-green-600":"text-text-secondary",B=C=>{if(C===0)return"0 B";const w=1024,v=["B","KB","MB","GB"],b=Math.floor(Math.log(C)/Math.log(w));return`${(C/Math.pow(w,b)).toFixed(1)} ${v[b]}`.toLowerCase()};return!f||s?g.jsxs("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${r?"hover:bg-neutral-50":""} ${i}`,children:[g.jsx("div",{className:`flex-shrink-0 ${m()}`,children:g.jsx(lS,{className:"h-5 w-5"})}),g.jsxs("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[e?.name&&g.jsx("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:e.name}),e?.size&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:B(e.size)})]}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:g.jsx(ns,{className:"h-4 w-4"})})]}):g.jsxs("div",{className:`relative group flex-shrink-0 ${i}`,children:[g.jsx("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${r?"hover:bg-neutral-100 cursor-pointer":""}`,children:c&&g.jsx("img",{src:c,alt:e.name,className:"w-full h-full object-cover",onError:()=>l(!0)})}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:g.jsx(ns,{className:"h-3 w-3 text-black"})})]})}function Of({files:e,onRemoveFile:t,isPreview:r=!0,className:i=""}){if(e.length===0)return null;const s=e.filter(c=>c.type?.startsWith("image/")),l=e.filter(c=>!c.type?.startsWith("image/"));return g.jsxs("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${i}`,children:[l.map(c=>{const u=e.indexOf(c);return g.jsx(OB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)}),s.length>0&&g.jsx("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:s.map(c=>{const u=e.indexOf(c);return g.jsx(OB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)})})]})}const bT=x.lazy(()=>Promise.resolve().then(()=>IT).then(e=>({default:e.Pills}))),xT=x.lazy(()=>Promise.resolve().then(()=>F4).then(e=>({default:e.MultiSelectGroup}))),ST=x.lazy(()=>Promise.resolve().then(()=>I4).then(e=>({default:e.FocusCarousel}))),QT=x.lazy(()=>Promise.resolve().then(()=>M4).then(e=>({default:e.DoctorCard}))),UT=x.lazy(()=>Promise.resolve().then(()=>L4).then(e=>({default:e.CardList}))),FT=x.lazy(()=>Promise.resolve().then(()=>V4).then(e=>({default:e.MediaCard})));function WA({className:e}){return g.jsx("div",{className:he("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",e)})}function Ti({variant:e}){return e==="pill"?g.jsxs("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[g.jsx(to,{}),g.jsx(WA,{className:"h-8 w-20 rounded-full"}),g.jsx(WA,{className:"h-8 w-24 rounded-full"}),g.jsx(WA,{className:"h-8 w-16 rounded-full"})]}):e==="media"?g.jsxs("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[g.jsx(to,{}),g.jsx(WA,{className:"h-24 w-full rounded-lg"}),g.jsxs("div",{className:"mt-3 space-y-2",children:[g.jsx(WA,{className:"h-3 w-3/4 rounded"}),g.jsx(WA,{className:"h-3 w-1/2 rounded"})]})]}):e==="input"?g.jsxs("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[g.jsx(to,{}),g.jsx(WA,{className:"h-3 w-32 rounded mb-3"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(WA,{className:"h-9 w-full rounded-lg"}),g.jsx(WA,{className:"h-9 w-full rounded-lg"}),g.jsx(WA,{className:"h-9 w-full rounded-lg"})]}),g.jsx(WA,{className:"mt-4 h-9 w-full rounded-lg"})]}):g.jsxs("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[g.jsx(to,{}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(WA,{className:"h-10 w-10 rounded-full"}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(WA,{className:"h-3 w-3/4 rounded"}),g.jsx(WA,{className:"h-3 w-1/2 rounded"})]})]}),g.jsxs("div",{className:"mt-4 space-y-2",children:[g.jsx(WA,{className:"h-3 w-full rounded"}),g.jsx(WA,{className:"h-3 w-5/6 rounded"})]}),g.jsx(WA,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function to(){return g.jsx("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function TT({messageId:e,tool_key:t,entry:r,onSendMessage:i,disabled:s}){const[l,c]=x.useState([]),[u,f]=x.useState({}),h=r.component,m=r.disabled,B=x.useMemo(()=>r.ui_input,[r.ui_input]);x.useEffect(()=>{h===fe.SYNAPSE_COMPONENTS.DOCTOR_CARD&&B?.doctor_details&&f(B.doctor_details)},[h,B?.doctor_details]);const C=async j=>{await i({message:j.value,messageId:e,toolCalled:!0,selectedComponent:j,tool_key:t})},w=async(j,F,H)=>{await i({toolCalled:!0,selectedComponent:j,selected_id:j.doctor_id,message:F,tool_key:t,messageId:e,...H&&{tool_result:H}})},v=async()=>{await i({message:"show more"})},b=async()=>{l.length!==0&&await i({message:l.join(", "),messageId:e,toolCalled:!0,tool_key:t})},U=()=>{const j=h===fe.SYNAPSE_COMPONENTS.MULTI&&B?.options;return j?Array.isArray(j)?j.map((F,H)=>({id:`option-${H}`,label:F.label,value:F.value})):Object.keys(j).map((F,H)=>({id:`option-${H}`,label:F,value:F})):[]},Q=x.useMemo(()=>{if(h===fe.SYNAPSE_COMPONENTS.DOCTOR_CARD)return B?.doctors?.filter(F=>!!F&&!!F.doctor_id)},[h,B?.doctors]);if(!h)return null;const I=h===fe.SYNAPSE_COMPONENTS.PILL?B?.options:void 0,M=h===fe.SYNAPSE_COMPONENTS.CARD?B?.cards:void 0,z=h===fe.SYNAPSE_COMPONENTS.MEDIA_CARD?B?.media_card:void 0;return g.jsxs("div",{className:"flex justify-end",children:[I&&g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"pill"}),children:g.jsx("div",{className:`flex ${I.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:I.map((j,F)=>g.jsx(bT,{disabled:m||s,text:j?.label||"",onClick:()=>C(j),className:"cursor-pointer"},F))})}),h===fe.SYNAPSE_COMPONENTS.MULTI&&B?.options&&g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"input"}),children:g.jsxs("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[g.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),g.jsx(xT,{options:U(),selectedValues:l,onSelectionChange:c,disabled:m||s}),g.jsx(Ie,{onClick:b,disabled:l.length===0||m||s,className:he("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),Q&&Q.length>0?g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(ST,{count:Q.length+1,renderItem:(j,F)=>{if(j===Q.length)return g.jsxs("button",{type:"button",onClick:v,disabled:s||m,className:he("max-w-md w-full h-full flex flex-col items-center justify-center gap-2 px-4","rounded-xl border-2 border-dashed border-black-200 dark:border-white-200 bg-primary/[10%]","transition-colors disabled:opacity-60 disabled:cursor-not-allowed"),children:[g.jsx("span",{className:he("flex items-center justify-center","w-10 h-10 rounded-full bg-elicitationBg shadow-sm"),children:g.jsx(CS,{className:"w-4 h-4 text-primary"})}),g.jsx("span",{className:"text-primary font-semibold text-sm",children:"Show more"})]});const H=Q[j];return g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(QT,{doctor:H,doctorDetails:u?.[H.doctor_id],disabled:s,onSelect:w,isActive:F})},H.doctor_id)}})}):null,M&&g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"card"}),children:g.jsx(UT,{cards:M,onSelect:async j=>{await i({...j,toolCalled:!0,tool_key:t,messageId:e})},orientation:r.orientation,disabled:m||s})}),z&&g.jsx(x.Suspense,{fallback:g.jsx(Ti,{variant:"media"}),children:g.jsx("div",{className:"mt-3",children:g.jsx(FT,{card:z})})})]})}function NT({id:e,role:t,content:r,files:i,isLastMessage:s,progressMessage:l,toolKeys:c,postText:u,elicitationState:f,toolCallStatus:h,onSendMessage:m,onToggleFeedback:B,disabled:C,onClearElicitationState:w,isAuthComponent:v,isFullScreen:b}){const U=t==="user",[Q,I]=x.useState(fe.USER_FEEDBACK.NONE),M=ze(F=>F.isStreaming),z=F=>{I(F),B(F)},j=!!(r?.trim()||i&&i.length>0||h||l);return g.jsxs(g.Fragment,{children:[j&&g.jsx("div",{className:he("flex",U?"justify-end":"justify-start"),children:g.jsx("div",{className:he("flex gap-3",U?"flex-row-reverse":"flex-row",U?"max-w-[60%]":b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(Tn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",U?"bg-primary text-primary-foreground shadow-sm":he("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),b&&!U&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:[h&&!U&&g.jsx("div",{className:"text-xs text-muted-foreground mb-2 pb-2 border-b border-border-subtle",children:h}),!h&&l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground pb-2",children:l}),r&&g.jsx("div",{className:he("markdown-content",b&&!U?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:`${r} ${!U&&M&&s?"...":""}`})}),i&&i.length>0&&g.jsx("div",{className:"mt-2",children:g.jsx(Of,{files:i,isPreview:!1,className:""})}),l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l})]}),!u&&!U&&!M&&s&&r&&Q===fe.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>z(fe.USER_FEEDBACK.LIKE),children:g.jsx(jl,{className:"h-3 w-3"})}),g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>z(fe.USER_FEEDBACK.DISLIKE),children:g.jsx(Kl,{className:"h-3 w-3"})})]})}),!u&&!U&&!M&&s&&Q===fe.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})}),!u&&!U&&!M&&s&&Q===fe.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(Kl,{className:"h-3 w-3"})})}),v&&s&&c?.length?g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(Ie,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const F=c[c.length-1];F&&f[F].active&&w(F,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),c?.map(F=>{const H=f[F];return H?g.jsx(TT,{messageId:e,tool_key:F,entry:H,onSendMessage:m,disabled:C||H.disabled},F):null}),u&&!U&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsx(Tn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",b&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:g.jsx("div",{className:he("markdown-content",b?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:u})})}),!M&&s&&Q===fe.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>z(fe.USER_FEEDBACK.LIKE),children:g.jsx(jl,{className:"h-3 w-3"})}),g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>z(fe.USER_FEEDBACK.DISLIKE),children:g.jsx(Kl,{className:"h-3 w-3"})})]})}),!M&&s&&Q===fe.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})}),!M&&s&&Q===fe.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(Ie,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(Kl,{className:"h-3 w-3"})})})]})})})]})}function RB({text:e,maxWidth:t="200px",className:r="",icon:i,onClick:s,disabled:l=!1}){const[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(null);return x.useEffect(()=>{const m=()=>{if(f.current&&h.current){const B=f.current.offsetWidth,C=h.current.scrollWidth;u(C>B)}};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[e,t]),e?g.jsxs("div",{ref:f,onClick:l?void 0:s,className:he("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",r,l?"opacity-50 cursor-not-allowed":""),style:{maxWidth:t,WebkitTapHighlightColor:"transparent",outline:"none"},title:e,children:[i&&g.jsx("span",{className:"text-primary",children:i}),g.jsx("div",{className:"pill-marquee-wrapper",children:g.jsx("span",{ref:h,className:he("block whitespace-normal",c?"pill-marquee":""),children:e})})]}):null}const IT=Object.freeze(Object.defineProperty({__proto__:null,Pills:RB},Symbol.toStringTag,{value:"Module"}));function _T({text:e,suggestions:t,onSendMessage:r,disabled:i,isFullScreen:s}){if(!e&&!t?.length)return null;const l=c=>{const u=c.value||c.label||"";u&&r({message:u})};return g.jsxs(g.Fragment,{children:[e&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",s?"w-full":"max-w-xs"),children:g.jsx(Tn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",s&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:g.jsx("div",{className:he("markdown-content",s?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:e})})})})}),t&&t.length>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx("div",{className:he("flex gap-2 mt-3",t.length>3?"flex-col":"flex-wrap"),children:t.map((c,u)=>g.jsx(RB,{text:c.label||"",onClick:()=>l(c),disabled:i,className:"cursor-pointer"},u))})})]})}function HT({messages:e,onSendMessage:t,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l,initialMessage:c,disabled:u}){const f=ze(w=>w.isWaitingForResponse),h=ze(w=>w.connectionStatus),m=ze(w=>w.elicitationState),B=h===PA.CONNECTED,C=ze(w=>w.progressMessage);return e.length===0&&!C?g.jsx(_T,{text:c?.text,suggestions:c?.suggestions,onSendMessage:t,disabled:u,isFullScreen:l}):g.jsxs(g.Fragment,{children:[(e&&e.length>0||C)&&g.jsx(g.Fragment,{children:e.map((w,v)=>g.jsx("div",{className:"animate-slideUp scroll-mt-[16px] min-w-0 overflow-hidden","data-role":w.role,"data-message-id":w.id,id:v===e.length-1?"last-message":void 0,children:g.jsx(NT,{id:w.id,role:w.role,content:w.content,files:w.files||[],toolKeys:w.tool_keys,postText:w.postText,elicitationState:m,timestamp:w.timestamp,onSendMessage:t,isLastMessage:v===e.length-1,progressMessage:C,toolCallStatus:w.toolCallStatus,disabled:!B,onToggleFeedback:b=>r(b,w.id),onClearElicitationState:i,isAuthComponent:s,isFullScreen:l})},w.id))}),f&&g.jsx(MT,{})]})}function MT(){return g.jsx("div",{className:"animate-slideUp",children:g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:"flex gap-3",children:g.jsx(Tn,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:g.jsx("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(e=>g.jsx("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${e*150}ms`}},e))})})})})})}function LB(){const[e,t]=x.useState(typeof navigator<"u"?navigator.onLine:!0);return x.useEffect(()=>{const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),{isOnline:e}}const OT=e=>e?e.split(" ").map(t=>t[0]).slice(0,2).join("").toUpperCase():"DR",RT=e=>{const t=new Date(e),r=t.toLocaleDateString(void 0,{weekday:"short"}),i=t.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:r,dayNum:i}},LT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.date?r.findIndex(l=>l.date===i.date):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,slots:i.slots??l.slots}}}return r},DT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.doctor_id?r.findIndex(l=>l.doctor_id===i.doctor_id):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,availability:LT(l.availability,i.availability)}}}return r},DB=e=>!!e&&Array.isArray(e.doctors),kT=(e,t,r)=>e?t?r!==fe.SYNAPSE_COMPONENTS.DOCTOR_CARD?t:!DB(e)||!DB(t)?e:{...t,doctors:DT(e.doctors,t.doctors),doctor_details:{...e.doctor_details||{},...t.doctor_details||{}}}:e:t,ar=e=>{const t=e;return t?.message?t.error?.msg||t.message:e instanceof Error?e.message:"An unexpected error occurred"},jT=({environment:e,connectionType:t,baseUrl:r,context:i,auth:s})=>{const[l,c]=x.useState([]),u=x.useRef([]),[f,h]=x.useState(!1),m=x.useRef(0),[B,C]=x.useState(!1),[w,v]=x.useState([]),b=x.useRef(null),U=TS(),Q=x.useRef(null),{isOnline:I}=LB(),M=x.useRef(!1),z=ze(R=>R.agentId),j=ze(R=>R.sessionId),F=ze(R=>R.sessionToken),H=ze(R=>R.isStreaming),k=ze(R=>R.isWaitingForResponse),O=ze(R=>R.initialMessage),$=ze(R=>R.userId),ee=ze(R=>R.fileUploadPerSession),{setSessionId:V,setSessionToken:se,setError:Ae,setConnectionStatus:J,setShowRetryButton:L,setStartNewConnection:Z,setIsStreaming:te,setIsWaitingForResponse:ge,setProgressMessage:T,setRecordingStatus:N,clearSession:q,addMessageToSession:E,getMessagesForSession:ne,updateMessageInSession:oe,setUserId:ue,setFileUploadPerSession:pe,setToastMessage:Oe,upsertElicitationState:xe}=ze.getState();x.useEffect(()=>{I?B?nA()&&(J(PA.CONNECTED),rA()):J(PA.CONNECTING):J(PA.NOT_CONNECTED)},[I,B]),x.useEffect(()=>{j&&(c(ne(j)||[]),v([]))},[j]),x.useEffect(()=>{if(C(!1),!z)return;const R=new fe.SynapseSDK({agentId:z,environment:e,...t&&{connectionType:t},userId:$,callbacks:{onError:K=>{switch(K.code){case fe.SynapseErrorCode.SESSION:{const le=K.context;le?.stage==="handleSessionExpiry"||le?.stage==="refreshSession"?I?(Ae({title:"Internet connection Failed!",description:ar(K)}),L(!0)):(Ae({title:"Your session has ended.",description:"Please start a new Chat."}),L(!0)):(J(PA.NOT_CONNECTED),Ae({title:"Something went wrong!",description:ar(K)}),L(!0));break}case fe.SynapseErrorCode.RECORDING:Ae({title:"Recording failed",description:ar(K)});break;case fe.SynapseErrorCode.CONNECTION:nA()||(J(PA.NOT_CONNECTED),m.current<2?(m.current=m.current+1,eA(j,F)):(L(!0),Ae({title:"Trying to connect...",description:ar(K)})));break;default:Ae({title:"Something went wrong",description:ar(K)}),L(!0);break}},onSessionRefreshed:K=>{K?.session_id&&K?.session_token&&(V(K.session_id),se(K.session_token))}},...r&&{serverUrl:r},...i&&{context:i},...s&&{auth:s}});return b.current=R,U(R),C(!0),()=>{C(!1),b.current?.endSession(),b.current=null,U(null),Q.current&&(clearTimeout(Q.current),Q.current=null)}},[z,e,s]),x.useEffect(()=>{u.current=l},[l]),x.useEffect(()=>{const R=u.current[u.current.length-1];!R?.role||!j||(R?.role===Lt.USER&&!R.isStored?E(j,{...R,isStored:!0}):!H&&!R.isStored&&(c(K=>{const le=[...K];return le[le.length-1]={...R,isStored:!0},le}),E(j,{...R,isStored:!0})))},[l,H]),x.useEffect(()=>{const R=l[l.length-1];return()=>{R&&!R?.isStored&&j&&E(j,{...R,isStored:!0})}},[]),x.useEffect(()=>(Q.current&&(clearTimeout(Q.current),Q.current=null),k&&!H?Q.current=setTimeout(()=>{ge(!1),Q.current=null},3e4):H&&Q.current&&(clearTimeout(Q.current),Q.current=null),()=>{Q.current&&(clearTimeout(Q.current),Q.current=null)}),[k,H,ge]);const eA=async(R,K,le=!1)=>{try{const de=await b.current?.startSession({session_id:R||"",session_token:K||""});de?.session_id&&de?.session_token&&(V(de.session_id),se(de.session_token)),de?.user_id&&ue(de.user_id)}catch(de){const Ee=de,Fe=Ee.context?.stage==="handleSessionExpiry"||Ee.context?.stage==="refreshSession"||Ee.status===404,wA=Ee.status===403;Fe?(Ae(null),J(PA.NOT_CONNECTED),Z(!0)):wA&&!le?(q(),rA(),await eA(void 0,void 0,!0)):(Ae({title:"Connection Lost!",description:ar(de)}),L(!0))}},Pe=async(R=!1)=>{try{if(!b.current){Ae({title:"SDK not initialized",description:"Please ensure agentId is configured"}),h(!1);return}if(h(!0),R){J(PA.CONNECTING),c([]),await q(),await b?.current?.endSession(),rA(),await eA(),VA();return}const{sessionId:K,sessionToken:le}=ze.getState();await eA(K,le),VA()}catch{}finally{h(!1)}},nA=()=>b.current?.isConnected()??!1,OA=()=>{b.current?.endSession()},rA=()=>{m.current=0,L(!1),Z(!1),Ae(null)},VA=()=>{b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,R=>{const K=R;if(K.data?.text&&K.messageId){H||(ge(!1),te(!0)),nA()&&J(PA.CONNECTED),rA();const le=K.data.text,de=K.messageId,Ee=M.current;M.current=!1,c(Fe=>{const wA=Fe[Fe.length-1];if(wA&&wA.id===de&&wA.role===Lt.ASSISTANT){const qe=[...Fe],Je=Ee&&wA.content.length>0&&!/\s$/.test(wA.content)&&!/^\s/.test(le)?`
|
|
100
|
+
`},s),l}function J2(e,t){return e&&"run"in e?async function(r,i){const s=QB(r,{file:i,...t});await e.run(s,i)}:function(r,i){return QB(r,{file:i,...e||t})}}function UB(e){if(e)throw e}var Sf,FB;function Z2(){if(FB)return Sf;FB=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),B=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!B)return!1;var C;for(C in h);return typeof C>"u"||e.call(h,C)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},u=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Sf=function f(){var h,m,B,C,w,v,b=arguments[0],U=1,Q=arguments.length,T=!1;for(typeof b=="boolean"&&(T=b,b=arguments[1]||{},U=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});U<Q;++U)if(h=arguments[U],h!=null)for(m in h)B=u(b,m),C=u(h,m),b!==C&&(T&&C&&(l(C)||(w=s(C)))?(w?(w=!1,v=B&&s(B)?B:[]):v=B&&l(B)?B:{},c(b,{name:m,newValue:f(T,v,C)})):typeof C<"u"&&c(b,{name:m,newValue:C}));return b},Sf}var W2=Z2();const Qf=fu(W2);function Uf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $2(){const e=[],t={run:r,use:i};return t;function r(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(f,...h){const m=e[++l];let B=-1;if(f){c(f);return}for(;++B<s.length;)(h[B]===null||h[B]===void 0)&&(h[B]=s[B]);s=h,m?eT(m,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function eT(e,t){let r;return i;function i(...c){const u=e.length>c.length;let f;u&&c.push(s);try{f=e.apply(this,c)}catch(h){const m=h;if(u&&r)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(l,s):f instanceof Error?s(f):l(f))}function s(c,...u){r||(r=!0,t(c,...u))}function l(c){s(null,c)}}const mn={basename:AT,dirname:tT,extname:nT,join:rT,sep:"/"};function AT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ds(e);let r=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){r=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(e.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function tT(e){if(ds(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nT(e){ds(e);let t=e.length,r=-1,i=0,s=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||r<0||l===0||l===1&&s===r-1&&s===i+1?"":e.slice(s,r)}function rT(...e){let t=-1,r;for(;++t<e.length;)ds(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":iT(r)}function iT(e){ds(e);const t=e.codePointAt(0)===47;let r=aT(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function aT(e,t){let r="",i=0,s=-1,l=0,c=-1,u,f;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),s=c,l=0;continue}}else if(r.length>0){r="",i=0,s=c,l=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return r}function ds(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const sT={cwd:lT};function lT(){return"/"}function Ff(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function oT(e){if(typeof e=="string")e=new URL(e);else if(!Ff(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return cT(e)}function cT(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Tf=["history","path","basename","stem","extname","dirname"];class TB{constructor(t){let r;t?Ff(t)?r={path:t}:typeof t=="string"||uT(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":sT.cwd(),this.data={},this.history=[],this.messages=[];let i=-1;for(;++i<Tf.length;){const l=Tf[i];l in r&&r[l]!==void 0&&r[l]!==null&&(this[l]=l==="history"?[...r[l]]:r[l])}let s;for(s in r)Tf.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?mn.basename(this.path):void 0}set basename(t){If(t,"basename"),Nf(t,"basename"),this.path=mn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?mn.dirname(this.path):void 0}set dirname(t){NB(this.basename,"dirname"),this.path=mn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?mn.extname(this.path):void 0}set extname(t){if(Nf(t,"extname"),NB(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=mn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ff(t)&&(t=oT(t)),If(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?mn.basename(this.path,this.extname):void 0}set stem(t){If(t,"stem"),Nf(t,"stem"),this.path=mn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const s=this.message(t,r,i);throw s.fatal=!0,s}info(t,r,i){const s=this.message(t,r,i);return s.fatal=void 0,s}message(t,r,i){const s=new it(t,r,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Nf(e,t){if(e&&e.includes(mn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+mn.sep+"`")}function If(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function NB(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fT=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),dT={}.hasOwnProperty;class _f extends fT{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$2()}copy(){const t=new _f;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Qf(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Of("data",this.frozen),this.namespace[t]=r,this):dT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Of("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=r.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=eo(t),i=this.parser||this.Parser;return Hf("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Hf("process",this.parser||this.Parser),Mf("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(l,c){const u=eo(t),f=i.parse(u);i.run(f,u,function(m,B,C){if(m||!B||!C)return h(m);const w=B,v=i.stringify(w,C);pT(v)?C.value=v:C.result=v,h(m,C)});function h(m,B){m||!B?c(m):l?l(B):r(void 0,B)}}}processSync(t){let r=!1,i;return this.freeze(),Hf("processSync",this.parser||this.Parser),Mf("processSync",this.compiler||this.Compiler),this.process(t,s),_B("processSync","process",r),i;function s(l,c){r=!0,UB(l),i=c}}run(t,r,i){IB(t),this.freeze();const s=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const f=eo(r);s.run(t,f,h);function h(m,B,C){const w=B||t;m?u(m):c?c(w):i(void 0,w,C)}}}runSync(t,r){let i=!1,s;return this.run(t,r,l),_B("runSync","run",i),s;function l(c,u){UB(c),s=u,i=!0}}stringify(t,r){this.freeze();const i=eo(r),s=this.compiler||this.Compiler;return Mf("stringify",s),IB(t),s(t,i)}use(t,...r){const i=this.attachers,s=this.namespace;if(Of("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...B]=h;f(m,B)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=Qf(!0,s.settings,h.settings))}function u(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const B=h[m];l(B)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let B=-1,C=-1;for(;++B<i.length;)if(i[B][0]===h){C=B;break}if(C===-1)i.push([h,...m]);else if(m.length>0){let[w,...v]=m;const b=i[C][1];Uf(b)&&Uf(w)&&(w=Qf(!0,b,w)),i[C]=[h,w,...v]}}}}const hT=new _f().freeze();function Hf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Of(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function IB(e){if(!Uf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _B(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function eo(e){return gT(e)?e:new TB(e)}function gT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pT(e){return typeof e=="string"||mT(e)}function mT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HB=[],MB={allowDangerousHtml:!0},BT=/^(https?|ircs?|mailto|xmpp)$/i,wT=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function hs(e){const t=CT(e),r=yT(e);return ET(t.runSync(t.parse(r),r),e)}function CT(e){const t=e.rehypePlugins||HB,r=e.remarkPlugins||HB,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...MB}:MB;return hT().use(A2).use(r).use(J2,i).use(t)}function yT(e){const t=e.children||"",r=new TB;return typeof t=="string"&&(r.value=t),r}function ET(e,t){const r=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,f=t.urlTransform||vT;for(const m of wT);return xB(e,h),VQ(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,B,C){if(m.type==="raw"&&C&&typeof B=="number")return c?C.children.splice(B,1):C.children[B]={type:"text",value:m.value},B;if(m.type==="element"){let w;for(w in ff)if(Object.hasOwn(ff,w)&&Object.hasOwn(m.properties,w)){const v=m.properties[w],b=ff[w];(b===null||b.includes(m.tagName))&&(m.properties[w]=f(String(v||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):l?l.includes(m.tagName):!1;if(!w&&i&&typeof B=="number"&&(w=!i(m,B,C)),w&&C&&typeof B=="number")return u&&m.children?C.children.splice(B,1,...m.children):C.children.splice(B,1),B}}}function vT(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||r!==-1&&t>r||i!==-1&&t>i||BT.test(e.slice(0,t))?e:""}function OB({file:e,onRemove:t,isPreview:r=!0,className:i=""}){const[s,l]=x.useState(!1),[c,u]=x.useState(""),f=e?.type?.startsWith("image/")??!1,h=e?.type==="application/pdf";x.useEffect(()=>{if(f){const C=URL.createObjectURL(e);return u(C),()=>URL.revokeObjectURL(C)}},[e,f]),x.useEffect(()=>{l(!1)},[e]);const m=()=>f?"text-green-600":"text-text-secondary",B=C=>{if(C===0)return"0 B";const w=1024,v=["B","KB","MB","GB"],b=Math.floor(Math.log(C)/Math.log(w));return`${(C/Math.pow(w,b)).toFixed(1)} ${v[b]}`.toLowerCase()};return!f||s?g.jsxs("div",{className:`relative group inline-flex flex-shrink-0 bg-white border border-neutral-300 rounded-lg flex items-center gap-3 px-3 py-2.5 max-w-full ${r?"hover:bg-neutral-50":""} ${i}`,children:[g.jsx("div",{className:`flex-shrink-0 ${m()}`,children:g.jsx(lS,{className:"h-5 w-5"})}),g.jsxs("div",{className:"flex-1 min-w-0 max-w-[200px]",children:[e?.name&&g.jsx("div",{className:"text-sm font-medium text-[var(--color-foreground)] truncate",children:e.name}),e?.size&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)]",children:B(e.size)})]}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"flex-shrink-0 flex items-center justify-center w-5 h-5 text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)] transition-colors",children:g.jsx(ns,{className:"h-4 w-4"})})]}):g.jsxs("div",{className:`relative group flex-shrink-0 ${i}`,children:[g.jsx("div",{className:`w-20 h-20 bg-white border border-neutral-300 rounded-lg flex items-center justify-center overflow-hidden ${r?"hover:bg-neutral-100 cursor-pointer":""}`,children:c&&g.jsx("img",{src:c,alt:e.name,className:"w-full h-full object-cover",onError:()=>l(!0)})}),r&&t&&g.jsx("button",{onClick:t,"aria-label":`Remove ${e.name}`,className:"absolute top-0 right-0 bg-[var(--color-muted)] text-black rounded-full w-5 h-5 flex items-center justify-center hover:bg-[var(--color-muted-foreground)] transition-colors z-10 transform translate-x-1 -translate-y-1",children:g.jsx(ns,{className:"h-3 w-3 text-black"})})]})}function Rf({files:e,onRemoveFile:t,isPreview:r=!0,className:i=""}){if(e.length===0)return null;const s=e.filter(c=>c.type?.startsWith("image/")),l=e.filter(c=>!c.type?.startsWith("image/"));return g.jsxs("div",{className:`flex flex-wrap justify-end gap-2 max-w-full ${i}`,children:[l.map(c=>{const u=e.indexOf(c);return g.jsx(OB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)}),s.length>0&&g.jsx("div",{className:"flex gap-2 overflow-x-auto max-w-full p-1 scrollbar-hide",children:s.map(c=>{const u=e.indexOf(c);return g.jsx(OB,{file:c,onRemove:t?()=>t(u):void 0,isPreview:r},`${c.name}-${c.size}-${u}`)})})]})}const bT=x.lazy(()=>Promise.resolve().then(()=>IT).then(e=>({default:e.Pills}))),xT=x.lazy(()=>Promise.resolve().then(()=>F4).then(e=>({default:e.MultiSelectGroup}))),ST=x.lazy(()=>Promise.resolve().then(()=>I4).then(e=>({default:e.FocusCarousel}))),QT=x.lazy(()=>Promise.resolve().then(()=>M4).then(e=>({default:e.DoctorCard}))),UT=x.lazy(()=>Promise.resolve().then(()=>L4).then(e=>({default:e.CardList}))),FT=x.lazy(()=>Promise.resolve().then(()=>V4).then(e=>({default:e.MediaCard})));function ZA({className:e}){return g.jsx("div",{className:he("relative overflow-hidden bg-surface-secondary","before:absolute before:inset-0","before:-translate-x-full before:animate-[shimmer_1.4s_infinite]","before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",e)})}function Ii({variant:e}){return e==="pill"?g.jsxs("div",{className:"flex flex-wrap gap-2 mt-3","aria-busy":!0,"aria-label":"Loading options",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-8 w-20 rounded-full"}),g.jsx(ZA,{className:"h-8 w-24 rounded-full"}),g.jsx(ZA,{className:"h-8 w-16 rounded-full"})]}):e==="media"?g.jsxs("div",{className:"mt-3 w-56 rounded-xl border border-border-subtle bg-surface p-3","aria-busy":!0,"aria-label":"Loading media",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-24 w-full rounded-lg"}),g.jsxs("div",{className:"mt-3 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-3/4 rounded"}),g.jsx(ZA,{className:"h-3 w-1/2 rounded"})]})]}):e==="input"?g.jsxs("div",{className:"mt-3 w-full rounded-xl border border-primary/30 bg-elicitationBg p-4","aria-busy":!0,"aria-label":"Loading input",children:[g.jsx(Ao,{}),g.jsx(ZA,{className:"h-3 w-32 rounded mb-3"}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(ZA,{className:"h-9 w-full rounded-lg"}),g.jsx(ZA,{className:"h-9 w-full rounded-lg"}),g.jsx(ZA,{className:"h-9 w-full rounded-lg"})]}),g.jsx(ZA,{className:"mt-4 h-9 w-full rounded-lg"})]}):g.jsxs("div",{className:"mt-3 w-72 rounded-xl border border-border-subtle bg-surface p-4","aria-busy":!0,"aria-label":"Loading card",children:[g.jsx(Ao,{}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(ZA,{className:"h-10 w-10 rounded-full"}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-3/4 rounded"}),g.jsx(ZA,{className:"h-3 w-1/2 rounded"})]})]}),g.jsxs("div",{className:"mt-4 space-y-2",children:[g.jsx(ZA,{className:"h-3 w-full rounded"}),g.jsx(ZA,{className:"h-3 w-5/6 rounded"})]}),g.jsx(ZA,{className:"mt-4 h-9 w-28 rounded-lg"})]})}function Ao(){return g.jsx("style",{children:"@keyframes shimmer { 100% { transform: translateX(100%); } }"})}function TT({messageId:e,tool_key:t,entry:r,onSendMessage:i,disabled:s}){const[l,c]=x.useState([]),[u,f]=x.useState({}),h=r.component,m=r.disabled,B=x.useMemo(()=>r.ui_input,[r.ui_input]);x.useEffect(()=>{h===de.SYNAPSE_COMPONENTS.DOCTOR_CARD&&B?.doctor_details&&f(B.doctor_details)},[h,B?.doctor_details]);const C=async k=>{await i({message:k.value,messageId:e,toolCalled:!0,selectedComponent:k,tool_key:t})},w=async(k,F,H)=>{await i({toolCalled:!0,selectedComponent:k,selected_id:k.doctor_id,message:F,tool_key:t,messageId:e,...H&&{tool_result:H}})},v=async()=>{await i({message:"show more"})},b=async()=>{l.length!==0&&await i({message:l.join(", "),messageId:e,toolCalled:!0,tool_key:t})},U=()=>{const k=h===de.SYNAPSE_COMPONENTS.MULTI&&B?.options;return k?Array.isArray(k)?k.map((F,H)=>({id:`option-${H}`,label:F.label,value:F.value})):Object.keys(k).map((F,H)=>({id:`option-${H}`,label:F,value:F})):[]},Q=x.useMemo(()=>{if(h===de.SYNAPSE_COMPONENTS.DOCTOR_CARD)return B?.doctors?.filter(F=>!!F&&!!F.doctor_id)},[h,B?.doctors]);if(!h)return null;const T=h===de.SYNAPSE_COMPONENTS.PILL?B?.options:void 0,O=h===de.SYNAPSE_COMPONENTS.CARD?B?.cards:void 0,G=h===de.SYNAPSE_COMPONENTS.MEDIA_CARD?B?.media_card:void 0;return g.jsxs("div",{className:"flex justify-end",children:[T&&g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"pill"}),children:g.jsx("div",{className:`flex ${T.length>3?"flex-col":"flex-wrap"} gap-2 mt-3`,children:T.map((k,F)=>g.jsx(bT,{disabled:m||s,text:k?.label||"",onClick:()=>C(k),className:"cursor-pointer"},F))})}),h===de.SYNAPSE_COMPONENTS.MULTI&&B?.options&&g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"input"}),children:g.jsxs("div",{className:"mt-3 space-y-3 break-words overflow-wrap-anywhere whitespace-pre-wrap bg-elicitationBg border border-primary/40 rounded-xl p-4",children:[g.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Select multiple options:"}),g.jsx(xT,{options:U(),selectedValues:l,onSelectionChange:c,disabled:m||s}),g.jsx(He,{onClick:b,disabled:l.length===0||m||s,className:he("w-full rounded-lg px-4 py-2 text-sm font-medium transition-all","bg-primary hover:bg-primary/90 text-primary-foreground","disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-primary/50 disabled:text-primary-foreground","shadow-sm hover:shadow-md active:scale-[0.98] "),children:"Confirm"})]})}),Q&&Q.length>0?g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"card"}),children:g.jsx(ST,{count:Q.length+1,renderItem:(k,F)=>{if(k===Q.length)return g.jsxs("button",{type:"button",onClick:v,disabled:s||m,className:he("max-w-md w-full h-full flex flex-col items-center justify-center gap-2 px-4","rounded-xl border-2 border-dashed border-black-200 dark:border-white-200 bg-primary/[10%]","transition-colors disabled:opacity-60 disabled:cursor-not-allowed"),children:[g.jsx("span",{className:he("flex items-center justify-center","w-10 h-10 rounded-full bg-elicitationBg shadow-sm"),children:g.jsx(CS,{className:"w-4 h-4 text-primary"})}),g.jsx("span",{className:"text-primary font-semibold text-sm",children:"Show more"})]});const H=Q[k];return g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"card"}),children:g.jsx(QT,{doctor:H,doctorDetails:u?.[H.doctor_id],disabled:s,onSelect:w,isActive:F})},H.doctor_id)}})}):null,O&&g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"card"}),children:g.jsx(UT,{cards:O,onSelect:async k=>{await i({...k,toolCalled:!0,tool_key:t,messageId:e})},orientation:r.orientation,disabled:m||s})}),G&&g.jsx(x.Suspense,{fallback:g.jsx(Ii,{variant:"media"}),children:g.jsx("div",{className:"mt-3",children:g.jsx(FT,{card:G})})})]})}function NT({id:e,role:t,content:r,files:i,isLastMessage:s,progressMessage:l,toolKeys:c,postText:u,elicitationState:f,toolCallStatus:h,onSendMessage:m,onToggleFeedback:B,disabled:C,onClearElicitationState:w,isAuthComponent:v,isFullScreen:b}){const U=t==="user",[Q,T]=x.useState(de.USER_FEEDBACK.NONE),O=Je(F=>F.isStreaming),G=F=>{T(F),B(F)},k=!!(r?.trim()||i&&i.length>0||h||l);return g.jsxs(g.Fragment,{children:[k&&g.jsx("div",{className:he("flex",U?"justify-end":"justify-start"),children:g.jsx("div",{className:he("flex gap-3",U?"flex-row-reverse":"flex-row",U?"max-w-[60%]":b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsxs(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap",U?"bg-primary text-primary-foreground shadow-sm":he("text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200"),b&&!U&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:[h&&!U&&g.jsx("div",{className:"text-xs text-muted-foreground mb-2 pb-2 border-b border-border-subtle",children:h}),!h&&l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground pb-2",children:l}),r&&g.jsx("div",{className:he("markdown-content",b&&!U?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:`${r} ${!U&&O&&s?"...":""}`})}),i&&i.length>0&&g.jsx("div",{className:"mt-2",children:g.jsx(Rf,{files:i,isPreview:!1,className:""})}),l&&!U&&s&&g.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l})]}),!u&&!U&&!O&&s&&r&&Q===de.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.LIKE),children:g.jsx(kl,{className:"h-3 w-3"})}),g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.DISLIKE),children:g.jsx(jl,{className:"h-3 w-3"})})]})}),!u&&!U&&!O&&s&&Q===de.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(kl,{className:"h-3 w-3"})})}),!u&&!U&&!O&&s&&Q===de.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})}),v&&s&&c?.length?g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(He,{variant:"link",size:"sm",className:"h-6 px-0 text-[12px] font-medium text-primary border-b border-dashed border-primary rounded-none bg-transparent no-underline hover:no-underline hover:bg-transparent active:bg-transparent focus-visible:bg-transparent rounded-none",onClick:()=>{const F=c[c.length-1];F&&f[F].active&&w(F,"Cancel OTP Verification")},children:"Cancel OTP Verification"})}):null]})})}),c?.map(F=>{const H=f[F];return H?g.jsx(TT,{messageId:e,tool_key:F,entry:H,onSendMessage:m,disabled:C||H.disabled},F):null}),u&&!U&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",b?"w-full":"max-w-xs"),children:g.jsxs("div",{className:"flex flex-col",children:[g.jsx(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",b&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none"),children:g.jsx("div",{className:he("markdown-content",b?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:u})})}),!O&&s&&Q===de.USER_FEEDBACK.NONE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.LIKE),children:g.jsx(kl,{className:"h-3 w-3"})}),g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-black-500 dark:text-white-500 hover:text-foreground",onClick:()=>G(de.USER_FEEDBACK.DISLIKE),children:g.jsx(jl,{className:"h-3 w-3"})})]})}),!O&&s&&Q===de.USER_FEEDBACK.LIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(kl,{className:"h-3 w-3"})})}),!O&&s&&Q===de.USER_FEEDBACK.DISLIKE&&g.jsx("div",{className:"flex items-center gap-2 self-start mt-1",children:g.jsx(He,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 hover:bg-muted text-primary",disabled:!0,children:g.jsx(jl,{className:"h-3 w-3"})})})]})})})]})}function RB({text:e,maxWidth:t="200px",className:r="",icon:i,onClick:s,disabled:l=!1}){const[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(null);return x.useEffect(()=>{const m=()=>{if(f.current&&h.current){const B=f.current.offsetWidth,C=h.current.scrollWidth;u(C>B)}};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[e,t]),e?g.jsxs("div",{ref:f,onClick:l?void 0:s,className:he("inline-flex items-center gap-2 rounded-lg border border-primary bg-elicitationBg px-3 py-2 shadow-sm text-xs text-primary cursor-pointer",r,l?"opacity-50 cursor-not-allowed":""),style:{maxWidth:t,WebkitTapHighlightColor:"transparent",outline:"none"},title:e,children:[i&&g.jsx("span",{className:"text-primary",children:i}),g.jsx("div",{className:"pill-marquee-wrapper",children:g.jsx("span",{ref:h,className:he("block whitespace-normal",c?"pill-marquee":""),children:e})})]}):null}const IT=Object.freeze(Object.defineProperty({__proto__:null,Pills:RB},Symbol.toStringTag,{value:"Module"}));function _T({text:e,suggestions:t,onSendMessage:r,disabled:i,isFullScreen:s}){if(!e&&!t?.length)return null;const l=c=>{const u=c.value||c.label||"";u&&r({message:u})};return g.jsxs(g.Fragment,{children:[e&&g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:he("flex gap-3 flex-row",s?"w-full":"max-w-xs"),children:g.jsx(Fn,{className:he("px-4 py-2 rounded-lg shadow-none break-words overflow-wrap-anywhere whitespace-pre-wrap text-foreground shadow-sm bg-botMessage blur-xs border border-black-200 dark:border-white-200",s&&"!bg-transparent !shadow-none !border-0 !rounded-none !px-0 !py-0 !backdrop-blur-none !blur-none text-black-900"),children:g.jsx("div",{className:he("markdown-content",s?"text-base leading-6":"text-sm"),children:g.jsx(hs,{children:e})})})})}),t&&t.length>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx("div",{className:he("flex gap-2 mt-3",t.length>3?"flex-col":"flex-wrap"),children:t.map((c,u)=>g.jsx(RB,{text:c.label||"",onClick:()=>l(c),disabled:i,className:"cursor-pointer"},u))})})]})}function HT({messages:e,onSendMessage:t,onToggleFeedback:r,onClearElicitationState:i,isAuthComponent:s,isFullScreen:l,initialMessage:c,disabled:u}){const f=Je(w=>w.isWaitingForResponse),h=Je(w=>w.connectionStatus),m=Je(w=>w.elicitationState),B=h===PA.CONNECTED,C=Je(w=>w.progressMessage);return e.length===0&&!C?g.jsx(_T,{text:c?.text,suggestions:c?.suggestions,onSendMessage:t,disabled:u,isFullScreen:l}):g.jsxs(g.Fragment,{children:[(e&&e.length>0||C)&&g.jsx(g.Fragment,{children:e.map((w,v)=>g.jsx("div",{className:"animate-slideUp scroll-mt-[16px] min-w-0 overflow-hidden","data-role":w.role,"data-message-id":w.id,id:v===e.length-1?"last-message":void 0,children:g.jsx(NT,{id:w.id,role:w.role,content:w.content,files:w.files||[],toolKeys:w.tool_keys,postText:w.postText,elicitationState:m,timestamp:w.timestamp,onSendMessage:t,isLastMessage:v===e.length-1,progressMessage:C,toolCallStatus:w.toolCallStatus,disabled:!B,onToggleFeedback:b=>r(b,w.id),onClearElicitationState:i,isAuthComponent:s,isFullScreen:l})},w.id))}),f&&g.jsx(MT,{})]})}function MT(){return g.jsx("div",{className:"animate-slideUp",children:g.jsx("div",{className:"flex justify-start",children:g.jsx("div",{className:"flex gap-3",children:g.jsx(Fn,{className:"px-4 py-2 rounded-lg shadow-none bg-botMessage backdrop-blur-sm text-text-primary shadow-sm",children:g.jsx("div",{className:"flex items-center gap-1.5","aria-label":"Bot is typing",children:[0,1,2].map(e=>g.jsx("span",{className:"w-2 h-2 rounded-full bg-foreground animate-pulse",style:{animationDelay:`${e*150}ms`}},e))})})})})})}function LB(){const[e,t]=x.useState(typeof navigator<"u"?navigator.onLine:!0);return x.useEffect(()=>{const r=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),{isOnline:e}}const OT=e=>e?e.split(" ").map(t=>t[0]).slice(0,2).join("").toUpperCase():"DR",RT=e=>{const t=new Date(e),r=t.toLocaleDateString(void 0,{weekday:"short"}),i=t.toLocaleDateString(void 0,{day:"2-digit"});return{weekday:r,dayNum:i}},LT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.date?r.findIndex(l=>l.date===i.date):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,slots:i.slots??l.slots}}}return r},DT=(e=[],t=[])=>{if(!e.length)return t;if(!t.length)return e;const r=e.map(i=>({...i}));for(const i of t){const s=i.doctor_id?r.findIndex(l=>l.doctor_id===i.doctor_id):-1;if(s===-1)r.push({...i});else{const l=r[s];r[s]={...l,...i,availability:LT(l.availability,i.availability)}}}return r},DB=e=>!!e&&Array.isArray(e.doctors),kT=(e,t,r)=>e?t?r!==de.SYNAPSE_COMPONENTS.DOCTOR_CARD?t:!DB(e)||!DB(t)?e:{...t,doctors:DT(e.doctors,t.doctors),doctor_details:{...e.doctor_details||{},...t.doctor_details||{}}}:e:t,sr=e=>{const t=e;return t?.message?t.error?.msg||t.message:e instanceof Error?e.message:"An unexpected error occurred"},jT=({environment:e,connectionType:t,baseUrl:r,context:i,auth:s,authToken:l})=>{const[c,u]=x.useState([]),f=x.useRef([]),[h,m]=x.useState(!1),B=x.useRef(0),[C,w]=x.useState(!1),[v,b]=x.useState([]),U=x.useRef(null),Q=TS(),T=x.useRef(null),{isOnline:O}=LB(),G=x.useRef(!1),k=Je(K=>K.agentId),F=Je(K=>K.sessionId),H=Je(K=>K.sessionToken),L=Je(K=>K.isStreaming),M=Je(K=>K.isWaitingForResponse),W=Je(K=>K.initialMessage),ee=Je(K=>K.userId),j=Je(K=>K.fileUploadPerSession),{setSessionId:se,setSessionToken:le,setError:z,setConnectionStatus:R,setShowRetryButton:q,setStartNewConnection:Ae,setIsStreaming:me,setIsWaitingForResponse:N,setProgressMessage:I,setRecordingStatus:P,clearSession:E,addMessageToSession:te,getMessagesForSession:oe,updateMessageInSession:fe,setUserId:ge,setFileUploadPerSession:Re,setToastMessage:Fe,upsertElicitationState:Ze}=Je.getState();x.useEffect(()=>{O?C?aA()&&(R(PA.CONNECTED),bA()):R(PA.CONNECTING):R(PA.NOT_CONNECTED)},[O,C]),x.useEffect(()=>{F&&(u(oe(F)||[]),b([]))},[F]),x.useEffect(()=>{if(w(!1),!k)return;const K=new de.SynapseSDK({agentId:k,environment:e,...t&&{connectionType:t},userId:ee,callbacks:{onError:J=>{switch(J.code){case de.SynapseErrorCode.SESSION:{const ce=J.context;ce?.stage==="handleSessionExpiry"||ce?.stage==="refreshSession"?O?(z({title:"Internet connection Failed!",description:sr(J)}),q(!0)):(z({title:"Your session has ended.",description:"Please start a new Chat."}),q(!0)):(R(PA.NOT_CONNECTED),z({title:"Something went wrong!",description:sr(J)}),q(!0));break}case de.SynapseErrorCode.RECORDING:z({title:"Recording failed",description:sr(J)});break;case de.SynapseErrorCode.CONNECTION:aA()||(R(PA.NOT_CONNECTED),B.current<2?(B.current=B.current+1,ke(F,H)):(q(!0),z({title:"Trying to connect...",description:sr(J)})));break;default:z({title:"Something went wrong",description:sr(J)}),q(!0);break}},onSessionRefreshed:J=>{J?.session_id&&J?.session_token&&(se(J.session_id),le(J.session_token))}},...r&&{serverUrl:r},...i&&{context:i},...s&&{auth:s},...l&&{authToken:l}});return U.current=K,Q(K),w(!0),()=>{w(!1),U.current?.endSession(),U.current=null,Q(null),T.current&&(clearTimeout(T.current),T.current=null)}},[k,e,s,l]),x.useEffect(()=>{f.current=c},[c]),x.useEffect(()=>{const K=f.current[f.current.length-1];!K?.role||!F||(K?.role===jt.USER&&!K.isStored?te(F,{...K,isStored:!0}):!L&&!K.isStored&&(u(J=>{const ce=[...J];return ce[ce.length-1]={...K,isStored:!0},ce}),te(F,{...K,isStored:!0})))},[c,L]),x.useEffect(()=>{const K=c[c.length-1];return()=>{K&&!K?.isStored&&F&&te(F,{...K,isStored:!0})}},[]),x.useEffect(()=>(T.current&&(clearTimeout(T.current),T.current=null),M&&!L?T.current=setTimeout(()=>{N(!1),T.current=null},3e4):L&&T.current&&(clearTimeout(T.current),T.current=null),()=>{T.current&&(clearTimeout(T.current),T.current=null)}),[M,L,N]);const ke=async(K,J,ce=!1)=>{try{const pe=await U.current?.startSession({session_id:K||"",session_token:J||""});pe?.session_id&&pe?.session_token&&(se(pe.session_id),le(pe.session_token)),pe?.user_id&&ge(pe.user_id)}catch(pe){const Ue=pe,Ne=Ue.context?.stage==="handleSessionExpiry"||Ue.context?.stage==="refreshSession"||Ue.status===404,We=Ue.status===403;Ne?(z(null),R(PA.NOT_CONNECTED),Ae(!0)):We&&!ce?(E(),bA(),await ke(void 0,void 0,!0)):(z({title:"Connection Lost!",description:sr(pe)}),q(!0))}},FA=async(K=!1)=>{try{if(!U.current){z({title:"SDK not initialized",description:"Please ensure agentId is configured"}),m(!1);return}if(m(!0),K){R(PA.CONNECTING),u([]),await E(),await U?.current?.endSession(),bA(),await ke(),Ut();return}const{sessionId:J,sessionToken:ce}=Je.getState();await ke(J,ce),Ut()}catch{}finally{m(!1)}},aA=()=>U.current?.isConnected()??!1,EA=()=>{U.current?.endSession()},bA=()=>{B.current=0,q(!1),Ae(!1),z(null)},Ut=()=>{U.current?.on(de.SYNAPSE_REALTIME_EVENTS.MESSAGE_CHUNK,K=>{const J=K;if(J.data?.text&&J.messageId){L||(N(!1),me(!0)),aA()&&R(PA.CONNECTED),bA();const ce=J.data.text,pe=J.messageId,Ue=G.current;G.current=!1,u(Ne=>{const We=Ne[Ne.length-1];if(We&&We.id===pe&&We.role===jt.ASSISTANT){const ze=[...Ne],dA=Ue&&We.content.length>0&&!/\s$/.test(We.content)&&!/^\s/.test(ce)?`
|
|
101
101
|
|
|
102
|
-
`:"";return qe[qe.length-1]={...wA,content:wA.content+Je+le},qe}else return[...Fe,{id:de,content:le,role:Lt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]})}}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{M.current=!1,te(!1),T(null),ge(!1)}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{rA(),J(PA.CONNECTED)}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,R=>{M.current=!0;const K=R;if(!K?.messageId||!K?.data||!K?.data?.details?.component||!K?.data?.tool_id)return;k&&ge(!1);const{messageId:le,data:de}=K,Ee=de.tool_id,Fe=`${le}::${Ee}`,qe=ze.getState().elicitationState[Fe],Je=de.details?.component,mA=K?.data?.details?._meta?.tool_result,Ye=de.details?.input,fA=kT(qe?.ui_input,Ye,Je);let Qe=K.data.details?._meta?.disp_toast_msg;const lA=de?.details?._meta?.schema?.required||[];switch(de?.details?.status){case fe.SYNAPSE_EICITATION_STATUS.PROGRESS:{const SA=K?.data?.details?.input||{},qA=lA.reduce((sn,ln)=>(SA[ln]!==void 0&&(sn[ln]=SA[ln]),sn),{}),He={...qe?.server_input||{},...qA},zt=lA.filter(sn=>!He[sn]),Br=K.data.details?._meta?.mcp_meta_fields||[];xe(Fe,{tool_id:Ee,active:!0,disabled:!1,ui_input:fA,server_input:He,messageId:le,required:lA,component:Je,pattern:K.data.details?._meta?.schema?.properties?.[K.data.details?.component]?.pattern,minLength:K.data.details?._meta?.schema?.properties?.[K.data.details?.component]?.minLength,maxLength:K.data.details?._meta?.schema?.properties?.[K.data.details?.component]?.maxLength,type:K.data.details?._meta?.schema?.properties?.[K.data.details?.component]?.type,disp_toast_msg:K.data.details?._meta?.disp_toast_msg,description:K.data.details?._meta?.schema?.properties?.[K.data.details?.component]?.description,tool_result:mA,orientation:K.data.details?._meta?.orientation,...Br.length&&{mcp_meta_fields:Br},...zt?{toolSelectionNames:zt}:{}});break}case fe.SYNAPSE_EICITATION_STATUS.SUCCESS:{xe(Fe,{...qe||{},tool_id:Ee,disabled:!0,active:Rx(Je),messageId:le,component:Je,ui_input:fA,tool_result:mA,send_to_llm:!0});break}case fe.SYNAPSE_EICITATION_STATUS.FAILURE:{xe(Fe,{...qe||{},tool_id:Ee,active:!1,messageId:le,response_value:{label:de?.details?._meta?.disp_message||"Tool call failed"},tool_result:mA,disabled:!0});break}default:xe(Fe,{tool_id:Ee,disabled:!1,active:!1,messageId:le,tool_result:mA,ui_input:fA,component:Je})}Qe&&Oe(Qe);const xA=K?.data?.meta?.post_text;c(SA=>{let He=SA[SA.length-1]?.id===le?SA.length-1:SA.findIndex?.(zt=>zt.id===le);if(He==-1){const zt={id:le,content:K.data?.details?.input?.text||"",role:Lt.ASSISTANT,tool_keys:[Fe],isResponseFromTool:!0,isStored:!1,...xA?{postText:xA}:{}};return[...SA,zt]}else{const zt={...SA[He],isResponseFromTool:!0,tool_keys:[...new Set([...SA[He].tool_keys||[],Fe])],...xA?{postText:xA}:{}};SA[He]=zt,oe(j,le,zt)}return[...SA]});const Gt=K?.data?.details?._meta?.disp_message,En=ze.getState().elicitationState;if((!En[Fe]?.active||En[Fe]?.send_to_llm)&&(Gt||Object.keys(mA||{}).length))try{ct({message:Gt||"",tool_result:mA,toolCalled:!0,tool_key:Fe})}catch{}}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,R=>{R?.reason!==fe.DisconnectionReason.CLIENT_CLOSED&&(m.current<2?(J(PA.NOT_CONNECTED),m.current=m.current+1,L(!0),Ae({title:"Something went wrong!",description:"Please try again."})):(J(PA.NOT_CONNECTED),Ae({title:"Something went wrong!",description:"Please start a new Chat."}),Z(!0)))}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.ERROR,R=>{switch(R?.data?.code){case fe.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:Ae({title:"Session not found",description:"Please start a new session"}),Z(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:Ae({title:"Session not found",description:"Please start a new chat from onError callback"}),Z(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case fe.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case fe.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(m.current<1){m.current++,mr();return}Ae({title:"Error parsing request",description:"please try again"}),L(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:Ae({title:"Request timed out",description:"please try again"}),L(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:Ae({title:"Something went wrong",description:"please try again"}),L(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:Ae({title:"Something went wrong",description:"please try again"}),L(!0),N(BA.IDLE);return;case fe.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:Ae({title:"Something went wrong",description:"please try again"}),L(!0),N(BA.IDLE);return;default:Ae({title:"Something went wrong",description:"please try again"}),L(!0),N(BA.IDLE);return}}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async R=>{const K=R;K?.data?.text&&(c(le=>[...le,{id:Date.now().toString(),content:K.data.text||"",role:Lt.USER,timestamp:vi(Date.now()),isStored:!0}]),N(BA.IDLE)),te(!1),ge(!1),T(null)}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,R=>{M.current=!0;const K=R;K.data?.text&&(ge(!1),T(K.data.text))}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.TOOL_START,R=>{M.current=!0;const K=R;if(K.data?.name&&K.messageId){const le=K.messageId;c(de=>{const Ee=de[de.length-1];if(Ee&&Ee.id===le&&Ee.role===Lt.ASSISTANT){const Fe=[...de];return Fe[Fe.length-1]={...Ee,toolCallStatus:`Calling tool: ${K.data.name}...`},j&&oe(j,le,{toolCallStatus:`Calling tool: ${K.data.name}...`}),Fe}return de})}}),b.current?.on(fe.SYNAPSE_REALTIME_EVENTS.TOOL_END,R=>{M.current=!0;const K=R;if(K.data?.name&&K.messageId){const le=K.messageId;c(de=>{const Ee=de[de.length-1];if(Ee&&Ee.id===le&&Ee.role===Lt.ASSISTANT){const Fe=[...de];return Fe[Fe.length-1]={...Ee,toolCallStatus:"Tool call completed."},j&&oe(j,le,{toolCallStatus:"Tool call completed."}),Fe}return de})}})},ct=async({message:R,files:K,audio:le,toolCalled:de,selectedComponent:Ee,resend:Fe,tool_declined:wA,tool_result:qe,tool_key:Je})=>{if(!nA()){L(!0),Ae({title:"Please try again."});return}const mA=ze.getState().elicitationState,Ye=Object.values(mA).some(fA=>fA.active);if(!(!de&&K&&K.length===0&&R?.trim()===""&&!le?.audio&&!Ee&&!Ye&&!qe&&!Object.keys(qe||{}).length)){if(K&&K.length>3){Ae({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(K&&K.length>0&&K.reduce((fA,Qe)=>fA+Qe.size,0)>10*1024*1024){Ae({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(K&&K.length>0&&K.length+ee>Xu){const fA=Xu-ee;Ae({title:`You can only upload up to ${Xu} files per session`,description:`${fA<=0?"Maximum file upload limit reached":`You have ${fA} file${fA===1?"":"s"} upload${fA===1?"":"s"} left`}`});return}else K&&K.length&&pe(ee+K.length);Ae(null),L(!1),nA()&&J(PA.CONNECTED);try{const fA=l.length==2&&w.length==2?w:null;let Qe=null;const lA=l.length-1,xA=lA>=0?l[lA]:null,Gt=xA?xA?.isResponseFromTool:null,SA=ze.getState().elicitationState,qA=Je||null,He=qA?SA[qA]:void 0,Br=He?.component===fe.SYNAPSE_COMPONENTS.DOCTOR_CARD||He?.component===fe.SYNAPSE_COMPONENTS.CARD?!!He&&!qe&&!!He.active:!!He?.active,sn=!!(K||[]).length||!!le?.audio||!!wA||!Br||!de;if(!sn&&Br&&qA&&He?.messageId){const GA=He.toolSelectionNames?.length?He.toolSelectionNames:He.required?.filter(CA=>!He.server_input?.[CA])??[],dt=GA.reduce((CA,Xe)=>{if(Ee){const QA=Ee[Xe];QA!==void 0&&(CA[Xe]=QA)}else GA.length===1&&(CA[Xe]=R);return CA},{}),$r=He.mcp_meta_fields?.reduce((CA,Xe)=>(GA.includes(Xe)?CA[Xe]=dt[Xe]:He.server_input?.[Xe]&&(CA[Xe]=He.server_input[Xe]),Fe&&!CA.is_resend&&(CA.is_resend=Fe),CA),{}),Rs=Object.keys(He.server_input||{})?.reduce((CA,Xe)=>{const QA=!Object.keys($r||{})?.includes(Xe),At=!!He.server_input?.[Xe];return(Fe?QA&&At:QA&&He.required?.includes(Xe)&&At)&&(CA[Xe]=He.server_input?.[Xe]),CA},{}),Ls=Fe?{}:(He.required||GA).reduce((CA,Xe)=>(Object.keys($r||{}).includes(Xe)||(dt[Xe]!==void 0?CA[Xe]=dt[Xe]:Ee&&Ee[Xe]!==void 0&&(CA[Xe]=Ee[Xe])),CA),{}),Pi={...Rs||{},...Ls,...Object.keys($r||{}).length&&{mcp_meta_fields:$r}};if(!Object.keys(Pi).length)return;await xe(qA,{...He,server_input:{...He.server_input||{},...Pi}});try{await ut(He.tool_id,He.messageId,Pi),Qe=!0}catch(CA){await b.current?.sendMessage({tool_result:{...He.tool_result,error:`Tool call failed: ${ar(CA)}`}}),xe(qA,{...He,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${ar(CA)}`}})}}else{const GA=He?.active,dt=qe??He?.tool_result;await b.current?.sendMessage({message:R,files:K,audio:le,...fA&&{initial_prompts:fA},...wA||Gt&&!de||GA?{tool_id:He?.tool_id||""}:{},...dt&&{tool_result:dt}})}(R||K&&K.length>0||le?.audio)&&(c(GA=>{if(Qe)return GA;const dt=GA.length===0&&O?.text?[{id:"initial-bot-message",content:O.text,role:Lt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]:[];return[...GA,...dt,{id:Date.now().toString(),content:R||"",files:K||[],audio:le,role:Lt.USER,timestamp:vi(Date.now()),isStored:!1}]}),Qe||ge(!0),Qe=null);const ln=ze.getState().elicitationState,zi=new Set;qA&&zi.add(qA),qA&&zi.add(qA),xA?.tool_keys?.forEach(GA=>zi.add(GA)),zi.forEach(GA=>{const dt=ln[GA];dt&&xe(GA,{...dt,...sn&&{active:!1,disabled:!0},...GA===qA?{response_value:{...dt?.response_value||{},label:R||""}}:{}})})}catch{}}},wn=R=>R.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(R.type)?(Ae({title:`File type not supported: ${R.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):R.size>3*1024*1024?(Ae({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,Cn=async()=>{if(!nA())throw new Error("Not connected to the server");try{await b.current?.startRecording({onChunks:async R=>{N(BA.PROCESSING),await ct({audio:R}),N(BA.TRANSCRIBING)},onError(R){N(BA.IDLE)}}),N(BA.LISTENING)}catch(R){throw N(BA.IDLE),R}},Ut=()=>{nA()&&b.current?.endRecording()},ut=async(R,K,le)=>{try{if(!nA())throw new Error("Not connected to the server");await b.current?.callTool(R,K,le)}catch(de){throw de}},yn=async()=>{rA(),await q(),await Pe(!0)},mr=async()=>{if(nA()){J(PA.CONNECTED);const R=u.current[u.current.length-1];if(R&&R.role===Lt.USER)try{b.current?.sendMessage({message:R.content,files:R.files||[],messageId:R.id,audio:R.audio})}catch{}}else if(J(PA.NOT_CONNECTED),m.current<2){m.current++;const{sessionId:R,sessionToken:K}=ze.getState();await eA(R,K)}else m.current===2?(m.current++,L(!0),Ae({title:"Trying to connect..."})):(Ae({title:"Something went wrong!",description:"Please start a new chat."}),Z(!0))};return{sendMessage:ct,startSession:Pe,incomingMessages:l,loading:f,endSession:OA,isReady:B,startRecording:Cn,stopRecording:Ut,handleRetry:mr,isValidFile:wn,handleStartNewConnection:yn,callTool:ut,handleInitialTaskClick:async R=>{if(!O?.suggestions?.length||!R)return;const K=O.suggestions.find(le=>le.value===R);if(!K||!K.response){await ct({message:R});return}c(le=>[...le,{id:Date.now().toString(),content:R,role:Lt.USER,timestamp:vi(Date.now()),isStored:!1}]),ge(!0),await Lx(1e3),ge(!1),c(le=>[...le,{id:Date.now().toString(),content:K.response||"Please try again",role:Lt.ASSISTANT,timestamp:vi(Date.now()),isStored:!1}]),v([{role:"user",text:R},{role:"assistant",text:K.response}])},handleToggleFeedback:async(R,K,le)=>{if(nA())try{await b.current?.sendFeedback(K,R,le)}catch{}},clearElicitationState:async(R,K)=>{const le=ze.getState().elicitationState,de=R?le[R]:void 0;try{await ct({message:K||"User aborted elicitation",tool_declined:!0,tool_result:de?.tool_result,tool_key:R})}catch{}finally{R&&de&&xe(R,{...de,active:!1,disabled:!0})}}}},KT=32,VT=100,GT=320;function zT(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function PT({messageCount:e,isStreaming:t,isFirstMessage:r,resolvedMode:i}){const s=x.useRef(null),l=x.useRef(null),[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(!1),m=x.useRef("auto"),B=x.useRef(!0),C=x.useCallback(()=>s.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),w=x.useCallback(U=>zT()?"auto":U,[]),v=x.useCallback(U=>{const Q=C();Q&&(Q.scrollTo({top:Q.scrollHeight,behavior:w(U)}),u(!1))},[C,w]),b=x.useCallback(U=>{h.current=!0,m.current=U,f.current===null&&(f.current=requestAnimationFrame(()=>{f.current=null,h.current&&(h.current=!1,v(m.current))}))},[v]);return x.useEffect(()=>()=>{f.current!==null&&(cancelAnimationFrame(f.current),f.current=null),h.current=!1},[]),x.useEffect(()=>{if(!e)return;b(t||r?"auto":"smooth")},[e,t,r,b]),x.useEffect(()=>{if(!e||!B.current)return;const U=setTimeout(()=>b("auto"),GT);return()=>clearTimeout(U)},[i,e,b]),x.useEffect(()=>{let U=!1,Q=null,I=null,M=0;const z=()=>{if(U)return;const j=C(),H=l.current?.parentElement;if(!j||!H){requestAnimationFrame(z);return}const k=()=>{const{scrollTop:ee,scrollHeight:V,clientHeight:se}=j;return V-ee-se<=KT};B.current=!0;let O=0;const $=()=>{if(O>0){O--;return}B.current=k()};j.addEventListener("scroll",$,{passive:!0}),I=()=>j.removeEventListener("scroll",$),Q=new ResizeObserver(()=>{if(!B.current)return;const ee=Date.now();ee-M<VT||(M=ee,O++,b("auto"))}),Q.observe(H)};return z(),()=>{U=!0,Q?.disconnect(),I?.()}},[C,b]),{scrollAreaRef:s,messagesEndRef:l,showScrollButton:c,scrollToBottom:v,scheduleScrollToBottom:b}}function YT({isOpen:e,agentId:t,config:r}){const{state:i,isMuted:s,connect:l,disconnect:c,reset:u,toggleMute:f}=NS(),h=()=>{i===fe.VOICE_AGENT_STATE.IDLE&&l()},m=i!==fe.VOICE_AGENT_STATE.IDLE,[B,C]=x.useState(""),[w,v]=x.useState(!1),b=ze(Qe=>Qe.setDisplayMode),[U,Q]=x.useState(r.displayMode==="full"?"full":"widget"),I=()=>Q(Qe=>Qe==="full"?"widget":"full"),z=d0()?"mobile":U,[j,F]=x.useState([]),H=x.useRef(!1),[k,O]=x.useState(!1),$=x.useRef(null),{setAgentId:ee,startNewConnection:V,showRetryButton:se,clearError:Ae,error:J,connectionStatus:L,recordingStatus:Z,isWaitingForResponse:te,isStreaming:ge,setError:T,sessionId:N,setContext:q,initialMessage:E,setInitialMessage:ne,setInitialDisplayMode:oe}=ze(),ue=ze(Qe=>Qe.elicitationState),{incomingMessages:pe,loading:Oe,sendMessage:xe,startSession:eA,isReady:Pe,startRecording:nA,stopRecording:OA,handleRetry:rA,isValidFile:VA,handleToggleFeedback:ct,clearElicitationState:wn}=jT({environment:r.environment,connectionType:r.connectionType,baseUrl:r.environment==="development"&&r.baseUrl?r.baseUrl:void 0,context:r?.context,...r?.auth&&{auth:r.auth}});x.useEffect(()=>{t&&($.current!==t&&(SS(t),QS(t),ee(t),(r.displayMode==="full"||r.displayMode==="widget")&&(b(r.displayMode),oe(r.displayMode)),r?.context&&Object.keys(r?.context||{}).length&&q(r.context),(r?.initialMessage?.text||r?.initialMessage?.suggestions?.length)&&ne(r.initialMessage),$.current=t),e&&Pe&&!H.current&&(H.current=!0,eA(!1)))},[e,Pe,t]),x.useEffect(()=>()=>{c()},[]);const Cn=pe.length>0,Ut=pe.length===1,ut=x.useMemo(()=>{const Qe=pe[pe.length-1],lA=Qe?.tool_keys?.[Qe.tool_keys.length-1];if(!lA)return null;const xA=ue[lA];return xA?.active?{...xA,tool_key:lA}:null},[pe,ue]),yn=x.useMemo(()=>{const Qe=r?.initialMessage;return!!Qe?.text||!!Qe?.suggestions?.length},[r?.initialMessage]),mr=x.useMemo(()=>yn&&pe?.length===0,[pe,yn]),Vi=x.useMemo(()=>ut?ut.component===fe.SYNAPSE_COMPONENTS.MOBILE||ut.component===fe.SYNAPSE_COMPONENTS.OTP||ut.component===fe.SYNAPSE_COMPONENTS.EMAIL:!1,[ut]),{scrollAreaRef:XA,messagesEndRef:Gi,showScrollButton:R,scrollToBottom:K}=PT({messageCount:pe.length,isStreaming:ge,isFirstMessage:Ut,resolvedMode:z}),le=L===fe.ConnectionStatus.CONNECTED,de=Oe||!le||te||ge,Ee=Oe||!le,Fe=x.useMemo(()=>Z===BA.IDLE?null:Z===BA.LISTENING?"Listening...":Z===BA.PROCESSING?"Processing...":Z===BA.TRANSCRIBING?"Transcribing...":null,[Z]),wA=Ee?"Connecting...":Fe&&Z!==BA.IDLE?Fe:te||ge?"Please wait for the response...":"Type a reply…",qe=async Qe=>{if(de)return;const lA=Qe?.message??B;(lA.trim()||w||k||Qe?.resend)&&(j.length>0?(await xe({files:j,message:lA.trim()}),F([]),O(!1)):lA.trim()?await xe({...Qe,message:lA.trim()}):Qe?.resend&&await xe(Qe),C(""),v(!1),O(!1))},Je=Qe=>{if(Qe&&Qe.length>0){const lA=Qe.filter(xA=>!!VA(xA));if(lA?.length+j.length>3){T({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(lA?.length>0&&lA.reduce((xA,Gt)=>xA+Gt.size,0)>10*1024*1024){T({title:`Total file size limit of ${XS} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(lA?.length>0)Qe=lA;else return}F(lA=>(O((lA?.length??0)+(Qe?.length??0)>0),[...lA,...Qe]))},mA=Qe=>{F(lA=>{const xA=lA.filter((Gt,En)=>En!==Qe);return O(xA.length>0),xA})},Ye=async()=>{if(w)await OA(),v(!1);else{if(de)return;try{await nA(),v(!0)}catch{}}},fA={value:B,onChange:C,onSend:qe,onFileChange:Je,onRemoveFile:mA,onRecording:Ye,isRecording:w,hasAttachment:k,attachmentFiles:j,isDisabled:de,placeholder:wA,recordingStatus:Z,allowed:r.allowed,isVoiceAgentActive:m,handleVoiceMode:h};return{inputValue:B,setInputValue:C,isRecording:w,hasAttachment:k,attachmentFiles:j,showScrollButton:R,displayMode:U,setDisplayMode:Q,toggleDisplayMode:I,resolvedMode:z,currentDisplayMode:U,setCurrentDisplayMode:Q,scrollAreaRef:XA,messagesEndRef:Gi,startNewConnection:V,showRetryButton:se,clearError:Ae,error:J,connectionStatus:L,isStreaming:ge,sessionId:N,activeElicitation:ut,inConversation:Cn,isFirstMessage:Ut,isEmptyChat:mr,isAuthComponent:Vi,isConnected:le,isComposerDisabled:de,loading:Oe,initialMessage:E,incomingMessages:pe,sendMessage:xe,startSession:eA,handleToggleFeedback:ct,clearElicitationState:wn,handleRetry:rA,handleSendMessage:qe,handleFileChange:Je,handleRemoveFile:mA,handleRecording:Ye,scrollToBottom:K,chatComposerProps:fA,voiceAgentState:i,isMuted:s,isVoiceAgentActive:m,connectVoiceAgent:l,disconnectVoiceAgent:c,resetVoiceAgent:u,toggleMute:f,handleVoiceAgentClick:h}}const XT=x.lazy(()=>Promise.resolve().then(()=>P4)),kB=x.lazy(()=>Promise.resolve().then(()=>X4).then(e=>({default:e.ConnectionStatus})));function qT({isOpen:e,agentId:t,config:r}){const{toggleDisplayMode:i,resolvedMode:s,scrollAreaRef:l,messagesEndRef:c,showScrollButton:u,startNewConnection:f,showRetryButton:h,clearError:m,error:B,sessionId:C,activeElicitation:w,isAuthComponent:v,isConnected:b,loading:U,inConversation:Q,isFirstMessage:I,isEmptyChat:M,incomingMessages:z,sendMessage:j,startSession:F,handleToggleFeedback:H,clearElicitationState:k,handleRetry:O,scrollToBottom:$,chatComposerProps:ee,isComposerDisabled:V,voiceAgentState:se,isMuted:Ae,isVoiceAgentActive:J,disconnectVoiceAgent:L,resetVoiceAgent:Z,toggleMute:te}=YT({isOpen:e,agentId:t,config:r});return x.useEffect(()=>{z.length||$("auto")},[z.length,$]),g.jsx(GS,{enabled:!!r.resize,children:g.jsx(p0,{isOpen:e,onClose:r.onClose,showCloseButton:r.showCloseButton,title:r.title,showStartNewChatButton:f,titleImg:r.theme?.titleImg,tagline:r.theme?.tagline,iconUrl:r.iconUrl,onStartNewSession:()=>F(!0),sessionId:C,environment:r.environment,mode:s,onToggleDisplayMode:r.resize?i:void 0,theme:r.theme,hideWatermark:r.hideWatermark,isAuthComponent:v,activeElicitation:w,voiceAgentState:se,chatComposer:ee,fullScreenEmptyState:M?ge=>g.jsx(hQ,{title:r.title,description:r?.initialMessage?.text,suggestions:r?.initialMessage?.suggestions,onSendMessage:j,disabled:V,composer:ge.composer,composerFooter:ge.composerFooter,connectionBanner:g.jsx(kB,{onRetry:O,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})}):void 0,children:J?g.jsx(fQ,{state:se,isMuted:Ae,onEndCall:L,onClose:Z,onToggleMute:te,agentName:r.title,iconUrl:r.iconUrl,textColor:r.theme?.textColor}):g.jsx(x.Suspense,{fallback:g.jsx(JT,{}),children:g.jsxs("div",{className:he("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[g.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[g.jsxs(Nm,{ref:l,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("div",{className:he("transition-all duration-300 min-w-0 overflow-x-hidden",Q?"pt-4 px-4 space-y-3":"pt-4 px-4 space-y-4",s==="full"&&"max-w-2xl mx-auto w-full"),children:[I&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!I&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),g.jsx(HT,{messages:z,onSendMessage:j,iconUrl:r.iconUrl,onToggleFeedback:H,onClearElicitationState:k,isAuthComponent:v,isFullScreen:s==="full",initialMessage:r.initialMessage,disabled:!b||U}),g.jsx("div",{ref:c})]})]}),g.jsx(x.Suspense,{fallback:null,children:g.jsx(XT,{})})]}),u&&g.jsx("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:g.jsx(Ie,{onClick:()=>$("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:g.jsx(ts,{className:"w-5 h-5 text-text-primary"})})}),g.jsx(kB,{className:"mt-2",onRetry:O,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})]})})})})}function JT(){return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[g.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),g.jsx("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function Rf(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);try{return new Error(JSON.stringify(e))}catch{return new Error("Unknown error")}}class ZT extends x.Component{state={error:null};static getDerivedStateFromError(t){return{error:Rf(t)}}componentDidCatch(t,r){this.setState({componentStack:r?.componentStack})}render(){return this.state.error?g.jsx(e4,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function WT({error:e}){throw e}function $T(e){const[t,r]=x.useState(null);return x.useEffect(()=>{if(typeof window>"u")return;const i=l=>{!l?.error&&!l?.filename&&l?.message==="Script error."||(l?.error?r(Rf(l.error)):l?.message&&r(new Error(l.message)))},s=l=>{r(Rf(l.reason))};return window.addEventListener("error",i),window.addEventListener("unhandledrejection",s),()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s)}},[]),g.jsx(ZT,{...e,children:t?g.jsx(WT,{error:t}):e.children})}function e4({error:e,title:t,titleImg:r,iconUrl:i,onClose:s,showCloseButton:l,environment:c,displayMode:u,theme:f}){const h=()=>{typeof window<"u"&&window.location.reload()},m=t??"Medi Clinic",B=c??"production",C=x.useMemo(()=>f?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[f?.textColor]);return g.jsx(p0,{isOpen:!0,onClose:s??(()=>{}),showCloseButton:l??!1,onStartNewSession:h,title:m,titleImg:r,iconUrl:i,environment:B,mode:u??"widget",theme:f,children:g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:g.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:g.jsxs("div",{className:"w-full max-w-[320px] text-center",children:[g.jsx("div",{className:"mx-auto mb-4 grid place-items-center",children:g.jsx("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:g.jsx(wS,{className:"h-8 w-8",style:{color:f?.primary??"hsl(var(--primary))"}})})}),g.jsx("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),g.jsx("div",{className:["mt-2 text-sm",C].join(" "),children:"Something went wrong. Please try again."}),g.jsx("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",C].join(" "),children:e?.message||String(e)}),g.jsx("div",{className:"mt-5 flex items-center justify-center gap-3",children:g.jsxs(Ie,{type:"button",onClick:h,className:"rounded-2xl",style:{backgroundColor:f?.primary??void 0},children:[g.jsx(mS,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function A4({agentId:e,config:t}){const[r,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const s=()=>{i(!1),t?.onClose?.()};return g.jsx($T,{title:t.title??"Medi Clinic",titleImg:t.theme?.titleImg,iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:s,showCloseButton:t.showCloseButton,environment:t.environment??"production",displayMode:t.displayMode,theme:t.theme,children:g.jsx(US,{children:g.jsx(qT,{isOpen:r,agentId:e,config:{...t,environment:t.environment??"production",onClose:s,title:t.title??"Medi Clinic",iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:t.theme}})})})}const jB=(e,t,r)=>{const i=r||{},s=r1.createRoot(e);return s.render(g.jsx(x.StrictMode,{children:g.jsx(A4,{agentId:t,config:i})})),s};typeof window<"u"&&(window.renderMedAssist=jB);const Lf=x.forwardRef(({className:e,...t},r)=>g.jsx("textarea",{className:he("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));Lf.displayName="Textarea";const gs=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),Df=x.forwardRef(({className:e,type:t,...r},i)=>{const s=e&&typeof e=="string"&&e.includes("placeholder:");return g.jsx("input",{type:t,className:he("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!s&&"placeholder:text-muted-foreground",e),ref:i,...r})});Df.displayName="Input";const t4=()=>g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[g.jsx("g",{clipPath:"url(#circleClip)",children:g.jsxs("g",{children:[g.jsx("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),g.jsx("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),g.jsx("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),g.jsx("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),g.jsx("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),g.jsx("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),g.jsx("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),g.jsx("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),g.jsx("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),g.jsx("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),g.jsx("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),g.jsx("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),g.jsx("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),g.jsx("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),g.jsx("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),g.jsx("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),g.jsx("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),g.jsx("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),g.jsx("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),g.jsx("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),g.jsx("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),g.jsx("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),g.jsx("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),g.jsx("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),g.jsx("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),g.jsx("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),g.jsx("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),g.jsx("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),g.jsx("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),g.jsx("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),g.jsx("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),g.jsx("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),g.jsx("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),g.jsx("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),g.jsx("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),g.jsx("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),g.jsx("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),g.jsx("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),g.jsx("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),g.jsx("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),g.jsx("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),g.jsx("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),g.jsx("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),g.jsx("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),g.jsx("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),g.jsx("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),g.jsx("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),g.jsx("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),g.jsx("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),g.jsx("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),g.jsx("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),g.jsx("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),g.jsx("defs",{children:g.jsx("clipPath",{id:"circleClip",children:g.jsx("circle",{cx:"8",cy:"8",r:"8"})})})]}),n4="+91";function r4(e){const t=e.replace(/\D/g,""),r=t.slice(0,5),i=t.slice(5,10);return i?`${r} ${i}`:r}function i4({value:e,onChange:t,onKeyDown:r,disabled:i,theme:s,isMobile:l,maxLength:c,isMobileValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[g.jsxs("div",{className:he("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:l?"16px":"14px"},children:[g.jsx(t4,{}),g.jsx("span",{className:"text-sm font-medium text-foreground",children:n4}),g.jsx(ts,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(Df,{type:"tel",autoComplete:"tel-national",value:r4(e),onChange:t,onKeyDown:r,placeholder:"88888 88888",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:l?"16px":"14px"},maxLength:c?c+1:void 0,inputMode:"numeric",autoFocus:!i,disabled:i}),g.jsx(Ie,{type:"button",size:"icon",onClick:f,disabled:i||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit mobile number":"Enter a valid mobile number","aria-label":u?"Submit mobile number":"Enter a valid mobile number",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})]})}const a4=6,s4=30,l4=(e,t)=>e.disabled===t.disabled&&e.isMobile===t.isMobile&&e.validation?.pattern===t.validation?.pattern&&e.validation?.minLength===t.validation?.minLength&&e.validation?.maxLength===t.validation?.maxLength&&e.serverMessage===t.serverMessage&&e.theme?.textColor===t.theme?.textColor;function o4({disabled:e,isMobile:t,validation:r,onSubmit:i,onResendOtp:s,serverMessage:l}){const c=x.useRef([]),[u,f]=x.useState(0),[h,m]=x.useState(!1),B=x.useRef(!1),C=x.useRef(i),w=x.useRef(s),v=r?.maxLength??a4,b=x.useMemo(()=>new RegExp(r?.pattern??`^\\d{${v}}$`),[r?.pattern,v]);x.useEffect(()=>{C.current=i},[i]),x.useEffect(()=>{w.current=s},[s]),x.useEffect(()=>{if(!l)return;const V=l.toLowerCase();V.includes("otp")&&(V.includes("invalid")||V.includes("incorrect")||V.includes("wrong"))&&(B.current=!1,m(!1))},[l]);const U=x.useCallback(()=>c.current.map(V=>V?.value.replace(/\D/g,"").slice(-1)??""),[]),Q=x.useCallback(()=>{const V=U().join(""),se=V.length===v&&b.test(V);B.current!==se&&(B.current=se,m(se))},[v,b,U]),I=x.useCallback(V=>{V<v-1&&c.current[V+1]?.focus()},[v]),M=x.useCallback(V=>{V>0&&c.current[V-1]?.focus()},[]),z=x.useMemo(()=>Array.from({length:v},(V,se)=>se),[v]),j=x.useCallback(V=>{for(let Ae=0;Ae<v;Ae++){const J=c.current[Ae];J&&(J.value=V[Ae]??"")}Q();const se=Math.min(V.length,v-1);c.current[se]?.focus()},[Q,v]),F=x.useCallback((V,se)=>{const Ae=se.target.value.replace(/\D/g,"");if(Ae.length>1){j(Ae.slice(0,v));return}const J=Ae.slice(-1);se.target.value=J,Q(),J&&I(V)},[Q,j,I,v]),H=x.useCallback((V,se)=>{if(se.key==="Backspace"&&!c.current[V]?.value){M(V);return}if(se.key==="Enter"&&!se.shiftKey&&!e){se.preventDefault();const Ae=U().join("");if(Ae.length===v&&b.test(Ae))C.current(Ae);else{const L=U().findIndex(Z=>!Z);c.current[L===-1?0:L]?.focus()}}},[e,M,v,b,U]),k=x.useCallback(V=>{V.preventDefault();const se=V.clipboardData.getData("text").replace(/\D/g,"").slice(0,v);se&&j(se)},[j,v]),O=x.useCallback(()=>{if(e)return;const V=U().join("");V.length===v&&b.test(V)&&C.current(V)},[e,v,b,U]),$=x.useCallback(()=>{if(!(u>0||e)){for(const V of c.current)V&&(V.value="");B.current=!1,m(!1),c.current[0]?.focus(),w.current?.(),f(s4)}},[e,u]);x.useEffect(()=>{e||c.current[0]?.focus()},[e]),x.useEffect(()=>{if(h){u>0&&f(0);return}if(u<=0)return;const V=setTimeout(()=>f(se=>se-1),1e3);return()=>clearTimeout(V)},[h,u]);const ee=x.useMemo(()=>z.map(V=>g.jsx("input",{ref:se=>{c.current[V]=se},type:"text",inputMode:"numeric",maxLength:t&&V===0?v:1,onChange:se=>F(V,se),onKeyDown:se=>H(V,se),onPaste:k,disabled:e,tabIndex:0,style:{fontSize:t?"16px":"14px",backgroundColor:"var(--input-box-bg)"},className:he("h-10 w-10 rounded-full border text-center text-lg font-semibold text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:V===0?"one-time-code":"off","aria-label":`Digit ${V+1}`},V)),[e,z,F,H,k,t,v]);return g.jsx("div",{className:"px-4 pt-3 pb-2 space-y-3",children:g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!h&&g.jsxs("button",{type:"button",onClick:$,disabled:e||u>0,className:he("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",u>0?` (00:${String(u).padStart(2,"0")}s)`:""]})]}),g.jsxs("div",{className:"flex items-center w-full gap-2 justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:ee}),g.jsx(Ie,{type:"button",size:"icon",onClick:O,disabled:e,variant:"ghost",className:`h-10 w-10 ${h?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:h?"Submit OTP":"Enter the full OTP to submit","aria-label":h?"Submit OTP":"Enter the full OTP to submit",children:g.jsx(gs,{className:`w-4 h-4 ${h?"text-primary-foreground":"text-primary"}`})})]})]})})}const c4=x.memo(o4,l4);function u4({value:e,onChange:t,onKeyDown:r,placeholder:i,disabled:s,theme:l,isMobile:c,isEmailValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 w-full",s&&"opacity-60",l?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(Df,{type:"email",autoComplete:"email",value:e,onChange:t,onKeyDown:r,placeholder:i??"username@example.com",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:c?"16px":"14px"},autoFocus:!s,disabled:s}),g.jsx(Ie,{type:"button",size:"icon",onClick:f,disabled:s||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit email address":"Enter a valid email address","aria-label":u?"Submit email address":"Enter a valid email address",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})}const KB=10,f4=10,d4=/^[6-9][0-9]{9}$/,h4=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function g4({elicitationEntry:e,value:t,onChange:r,isDisabled:i,theme:s,isMobile:l,onSend:c}){const{component:u,pattern:f,minLength:h,maxLength:m,description:B,disp_toast_msg:C,tool_key:w}=e??{},v=x.useMemo(()=>u===fe.SYNAPSE_COMPONENTS.MOBILE,[u]),b=x.useMemo(()=>u===fe.SYNAPSE_COMPONENTS.OTP,[u]),U=x.useMemo(()=>u===fe.SYNAPSE_COMPONENTS.EMAIL,[u]);if(!v&&!b&&!U)return null;const Q=C?.trim()??"",I=O=>{const $=O.target.value.replace(/\D/g,""),ee=m??KB;r($.slice(0,ee))},M=t.length===(h??f4)&&(f?new RegExp(f).test(t):d4.test(t)),z=f?new RegExp(f).test(t):h4.test(t),j=()=>{!z||i||c({toolCalled:!0,tool_key:w})},F=O=>{O.key==="Enter"&&(O.preventDefault(),j())},H=()=>{!M||i||c({toolCalled:!0,tool_key:w})},k=O=>{O.key==="Enter"&&(O.preventDefault(),H())};return g.jsxs(g.Fragment,{children:[v&&g.jsx(i4,{value:t,onChange:I,onSend:H,onKeyDown:k,placeholder:B??"Enter your mobile number",disabled:i,isMobileValid:M,theme:s,isMobile:l,maxLength:m??KB}),b&&g.jsx(c4,{disabled:i,isMobile:l,validation:{pattern:f,minLength:h,maxLength:m},onSubmit:O=>{c({message:O,toolCalled:!0,tool_key:w})},onResendOtp:()=>{c({toolCalled:!0,resend:!0,tool_key:w})},serverMessage:Q,theme:s}),U&&g.jsx(u4,{value:t,onChange:O=>r(O.target.value),onKeyDown:F,disabled:i,isEmailValid:z,theme:s,isMobile:l,placeholder:B,onSend:j})]})}const VB=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function p4({value:e,onChange:t,onSend:r,onFileChange:i,onRemoveFile:s,onRecording:l,isRecording:c,hasAttachment:u,attachmentFiles:f,isDisabled:h,placeholder:m,isMobile:B,recordingStatus:C,theme:w,allowed:v,showStartNewChatButton:b,onStartNewChat:U,isVoiceAgentActive:Q,handleVoiceMode:I,isAuthComponent:M,activeElicitationState:z,isFullScreen:j}){const F=x.useRef(null),H=x.useRef(null),k=e.trim().length>0||u,O=v===void 0||v.includes(fe.SYNAPSE_CONVERSATION.AUDIO),$=v===void 0||v.includes(fe.SYNAPSE_CONVERSATION.VOICE),ee=k||!O,V=k,se=v===void 0||v.includes(fe.SYNAPSE_CONVERSATION.FILE),Ae=(h||C!==BA.IDLE)&&!c,J=he("rounded-full transition-all duration-200 ",c?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":Ae?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),L=N=>{const q=Array.from(N.target.files||[]);q.length>0&&i(q)},Z=()=>{h||(F.current&&(F.current.value=""),F.current?.click())},te=N=>{N.key==="Enter"&&!N.shiftKey&&V&&!h&&(N.preventDefault(),r())},ge=N=>{N.style.height="auto",N.style.overflow="hidden";const q=N.scrollHeight,E=j?20:28,ne=120,oe=Math.max(E,Math.min(q,ne));N.style.height=oe+"px",q>ne?N.style.overflow="auto":N.style.overflow="hidden"},T=N=>{ge(N.currentTarget)};return x.useEffect(()=>{H.current&&ge(H.current)},[e]),x.useEffect(()=>{!h&&!B&&H.current?.focus()},[h]),b&&U?g.jsx("div",{className:"px-4 py-2 flex justify-unset",children:g.jsxs("button",{type:"button",onClick:U,className:he("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!B&&"hover:bg-primary/90"),children:[g.jsx("span",{children:"Start new chat"}),g.jsx(Km,{className:"w-5 h-5","aria-hidden":!0})]})}):g.jsx(g.Fragment,{children:M?g.jsx(g4,{elicitationEntry:z,value:e,onChange:t,isDisabled:h,theme:w,isMobile:B,onSend:r}):j?g.jsx("div",{className:"mx-3 mb-3","data-name":"reply-box",children:g.jsxs("div",{className:"flex flex-col items-stretch w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Of,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:L,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsx("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:g.jsx(Lf,{ref:H,onInput:T,placeholder:m,value:e,onChange:N=>t(N.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:te,title:"Enter your message","aria-label":"Enter your message",className:he("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-muted-foreground")})}),g.jsxs("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[g.jsx("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:se&&C===BA.IDLE&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:Z,disabled:h,className:he("rounded-full transition-all shrink-0 p-2 h-10 w-10",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Vm,{className:"w-6 h-6",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[c?g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Gm,{className:"w-4 h-4"})}):O&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Ae,className:he("h-10 w-10 shrink-0 p-2",J),title:"Start recording","aria-label":"Start recording",children:g.jsx(Lu,{className:"w-6 h-6",strokeWidth:1.5})}),ee&&!c?g.jsx(Ie,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!V,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",V?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:V?"Send message":"Type a message to send","aria-label":V?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):O&&$&&!c&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:I,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(VB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):g.jsxs("div",{className:"px-3 pb-2 pt-1",children:[g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:L,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsxs("div",{className:"flex flex-col w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.3)",borderRadius:20,padding:"4px 8px"},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Of,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("div",{className:"px-2 pt-1 pb-0",children:g.jsx(Lf,{ref:H,onInput:T,placeholder:m,value:e,onChange:N=>t(N.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"28px",maxHeight:"120px",fontSize:"16px",lineHeight:"1.4"},onKeyPress:te,title:"Enter your message","aria-label":"Enter your message",className:he("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-base placeholder:text-muted-foreground bg-transparent","disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap text-foreground resize-none")})}),g.jsxs("div",{className:"flex items-center justify-between px-1",children:[g.jsx("div",{className:"flex items-center shrink-0",children:se&&C===BA.IDLE&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:Z,disabled:h,className:he("h-10 w-10 rounded-full transition-all shrink-0",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Vm,{className:"w-5 h-5",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c?g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Gm,{className:"w-4 h-4"})}):ee?g.jsx(Ie,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!V,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0",V?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:V?"Send message":"Type a message to send","aria-label":V?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):O&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:Ae,className:he("h-10 w-10 shrink-0",J),title:"Start recording","aria-label":"Start recording",children:g.jsx(Lu,{className:"w-5 h-5",strokeWidth:1.5})}),O&&$&&!c&&g.jsx(Ie,{type:"button",variant:"ghost",size:"icon",onClick:I,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(VB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})]})})}const m4=Object.freeze(Object.defineProperty({__proto__:null,default:p4},Symbol.toStringTag,{value:"Module"}));var B4=ep[" useInsertionEffect ".trim().toString()]||er;function w4({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[s,l,c]=C4({defaultProp:t,onChange:r}),u=e!==void 0,f=u?e:s;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const B=m.current;if(B!==u){const C=B?"controlled":"uncontrolled",w=u?"controlled":"uncontrolled"}m.current=u},[u,i])}const h=x.useCallback(m=>{if(u){const B=y4(m)?m(e):m;B!==e&&c.current?.(B)}else l(m)},[u,e,l,c]);return[f,h]}function C4({defaultProp:e,onChange:t}){const[r,i]=x.useState(e),s=x.useRef(r),l=x.useRef(t);return B4(()=>{l.current=t},[t]),x.useEffect(()=>{s.current!==r&&(l.current?.(r),s.current=r)},[r,s]),[r,i,l]}function y4(e){return typeof e=="function"}function E4(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function v4(e){const[t,r]=x.useState(void 0);return er(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;r({width:c,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var no="Checkbox",[b4]=lp(no),[x4,kf]=b4(no);function S4(e){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:B}=e,[C,w]=w4({prop:r,defaultProp:s??!1,onChange:f,caller:no}),[v,b]=x.useState(null),[U,Q]=x.useState(null),I=x.useRef(!1),M=v?!!c||!!v.closest("form"):!0,z={checked:C,disabled:l,setChecked:w,control:v,setControl:b,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:I,required:h,defaultChecked:sr(s)?!1:s,isFormControl:M,bubbleInput:U,setBubbleInput:Q};return g.jsx(x4,{scope:t,...z,children:Q4(B)?B(z):i})}var GB="CheckboxTrigger",zB=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...i},s)=>{const{control:l,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:B,hasConsumerStoppedPropagationRef:C,isFormControl:w,bubbleInput:v}=kf(GB,e),b=Qn(s,m),U=x.useRef(f);return x.useEffect(()=>{const Q=l?.form;if(Q){const I=()=>B(U.current);return Q.addEventListener("reset",I),()=>Q.removeEventListener("reset",I)}},[l,B]),g.jsx($n.button,{type:"button",role:"checkbox","aria-checked":sr(f)?"mixed":f,"aria-required":h,"data-state":JB(f),"data-disabled":u?"":void 0,disabled:u,value:c,...i,ref:b,onKeyDown:Un(t,Q=>{Q.key==="Enter"&&Q.preventDefault()}),onClick:Un(r,Q=>{B(I=>sr(I)?!0:!I),v&&w&&(C.current=Q.isPropagationStopped(),C.current||Q.stopPropagation())})})});zB.displayName=GB;var jf=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:f,onCheckedChange:h,form:m,...B}=e;return g.jsx(S4,{__scopeCheckbox:r,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:C})=>g.jsxs(g.Fragment,{children:[g.jsx(zB,{...B,ref:t,__scopeCheckbox:r}),C&&g.jsx(qB,{__scopeCheckbox:r})]})})});jf.displayName=no;var PB="CheckboxIndicator",YB=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:i,...s}=e,l=kf(PB,r);return g.jsx(Bi,{present:i||sr(l.checked)||l.checked===!0,children:g.jsx($n.span,{"data-state":JB(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});YB.displayName=PB;var XB="CheckboxBubbleInput",qB=x.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:c,required:u,disabled:f,name:h,value:m,form:B,bubbleInput:C,setBubbleInput:w}=kf(XB,e),v=Qn(r,w),b=E4(l),U=v4(i);x.useEffect(()=>{const I=C;if(!I)return;const M=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(M,"checked").set,F=!s.current;if(b!==l&&j){const H=new Event("click",{bubbles:F});I.indeterminate=sr(l),j.call(I,sr(l)?!1:l),I.dispatchEvent(H)}},[C,b,l,s]);const Q=x.useRef(sr(l)?!1:l);return g.jsx($n.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??Q.current,required:u,disabled:f,name:h,value:m,form:B,...t,tabIndex:-1,ref:v,style:{...t.style,...U,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});qB.displayName=XB;function Q4(e){return typeof e=="function"}function sr(e){return e==="indeterminate"}function JB(e){return sr(e)?"indeterminate":e?"checked":"unchecked"}const Kf=x.forwardRef(({className:e,...t},r)=>g.jsx(jf,{ref:r,className:he("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:g.jsx(YB,{className:he("grid place-content-center text-current"),children:g.jsx(Ru,{className:"h-4 w-4"})})}));Kf.displayName=jf.displayName;function U4({options:e,selectedValues:t,onSelectionChange:r,additionalOption:i,className:s,required:l=!0,maxSelections:c,disabled:u}){const f=i?{id:`extra-${i}`,label:i==="all_of_the_above"?"All of the above":"None of the above",value:i==="all_of_the_above"?"All of the above":"None of the above"}:null,h=b=>f?b.filter(U=>U!==f.value):b,m=b=>f?i==="none_of_the_above"?b?[f.value]:[]:i==="all_of_the_above"?b?[...e.map(U=>U.value),f.value]:h(t):b?[...t,f.value]:h(t):t,B=(b,U)=>{const Q=f?h(t):t;return U?c&&Q.length>=c?null:[...Q,b]:Q.filter(I=>I!==b)},C=b=>!(l&&b.length===0&&t.length===1),w=(b,U)=>{const I=f&&b===f.value?m(U):B(b,U);I!==null&&C(I)&&r(I)},v=f?t.filter(b=>b!==f.value).length:t.length;return e.length?g.jsxs("div",{className:he(s),children:[g.jsxs("div",{className:"space-y-3",children:[e.map(b=>{const U=u||c&&v>=c&&!t.includes(b.value);let Q=t.includes(b.value);return g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Kf,{id:b.id,checked:Q,disabled:!!U,onCheckedChange:I=>w(b.value,!!I),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),g.jsx("label",{htmlFor:b.id,className:he("text-sm font-normal leading-4 cursor-pointer",U?"text-muted-foreground cursor-not-allowed":Q?"text-primary":"text-secondary-foreground"),children:b.label})]},b.id)}),f&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border-medium my-3"}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Kf,{id:f.id,checked:t.includes(f.value),onCheckedChange:b=>w(f.value,b),className:"mt-0.5 border border-muted-foreground"}),g.jsx("label",{htmlFor:f.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:f.label})]})]})]}),c&&v>=c&&g.jsx("p",{className:"text-sm text-blue-600 mt-3",children:c===1?"You can select only 1 option":`Maximum ${c} selections allowed`})]}):null}const F4=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:U4},Symbol.toStringTag,{value:"Module"})),ZB=12,T4=.76,N4=3;function WB({count:e,renderItem:t,className:r}){const[i,s]=x.useState(0),[l,c]=x.useState(0),[u,f]=x.useState(()=>Math.min(N4,e)),h=x.useRef(null),m=x.useRef(0),B=x.useRef(0);if(x.useEffect(()=>{f(U=>Math.max(U,Math.min(i+2,e)))},[i,e]),x.useLayoutEffect(()=>{const U=h.current;if(!U)return;c(U.clientWidth);const Q=new ResizeObserver(([I])=>c(I.contentRect.width));return Q.observe(U),()=>Q.disconnect()},[]),e===0)return null;const C=U=>s(Math.max(0,Math.min(e-1,U)));if(e===1)return g.jsx("div",{className:r??"mt-3",children:t(0,!0)});const w=l*T4,v=(l-w)/2,b=l>0?v-i*(w+ZB):0;return g.jsx("div",{ref:h,className:he("mt-3 w-full",r),children:l>0&&g.jsxs("div",{className:"relative w-full",children:[g.jsx("div",{className:"w-full overflow-hidden py-3",onTouchStart:U=>{m.current=U.touches[0].clientX,B.current=U.touches[0].clientY},onTouchEnd:U=>{const Q=U.changedTouches[0].clientX-m.current,I=U.changedTouches[0].clientY-B.current;Math.abs(Q)>Math.abs(I)&&Math.abs(Q)>50&&C(i+(Q<0?1:-1))},children:g.jsx("div",{className:"flex items-stretch",style:{transform:`translateX(${b}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${ZB}px`},"aria-live":"polite",children:Array.from({length:u},(U,Q)=>{const I=Q===i;return g.jsx("div",{"aria-hidden":!I,style:{flex:`0 0 ${w}px`,position:"relative",opacity:I?1:.6,transform:I?"scale(1.05)":"scale(0.9)",zIndex:I?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:t(Q,I)},Q)})})}),i>0&&g.jsx("button",{type:"button","aria-label":"Previous",onClick:()=>C(i-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(km,{size:18})}),i<e-1&&g.jsx("button",{type:"button","aria-label":"Next",onClick:()=>C(i+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(jm,{size:18})})]})})}const I4=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:WB},Symbol.toStringTag,{value:"Module"}));function _4({value:e,onValueChange:t,placeholder:r="Select an option",className:i,triggerClassName:s,contentClassName:l,disabled:c=!1,options:u=[],size:f="default",icon:h}){const[m,B]=x.useState(!1),C=x.useRef(null),w=x.useRef(null),v=u.find(Q=>Q.value===e);x.useEffect(()=>{const Q=I=>{m&&I.key==="Escape"&&(B(!1),w.current?.focus())};return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[m]);const b=Q=>{t?.(Q),B(!1),w.current?.focus()},U=()=>{c||B(!m)};return g.jsxs("div",{className:he("relative w-full",i),children:[g.jsxs("button",{ref:w,type:"button",onClick:U,disabled:c,className:he('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',f==="default"?"min-h-9":"min-h-8",s),"aria-expanded":m,"aria-haspopup":"listbox",children:[h,g.jsx("span",{className:he("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!v&&"text-muted-foreground"),children:v?v.label:r}),g.jsx(ts,{className:he("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",m&&"rotate-180")})]}),m&&g.jsx("div",{ref:C,className:he("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",l),role:"listbox",children:g.jsx("div",{className:"p-1",children:u.length===0?g.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):u.map(Q=>{const I=Q.value===e;return g.jsxs("div",{onClick:()=>b(Q.value),className:he("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",I&&"bg-accent/50 text-foreground",c&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":I,tabIndex:c?-1:0,onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),c||b(Q.value))},children:[g.jsx("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:Q.label}),I&&g.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:g.jsx(Ru,{className:"size-4 text-foreground"})})]},Q.value)})})})]})}function H4({doctor:e,doctorDetails:t,onSelect:r,disabled:i,isActive:s=!0}){const l=x.useMemo(()=>{if(t?.hospitals?.[0]?.hospital_id)return t?.hospitals?.[0]?.hospital_id},[t?.hospitals]),[c,u]=x.useState(l),[f,h]=x.useState(!1),[m,B]=x.useState(null),[C,w]=x.useState(null),[v,b]=x.useState(0),[U,Q]=x.useState(!1),[I,M]=x.useState(!1),[z,j]=x.useState(!1),[F,H]=x.useState(!1),[k,O]=x.useState(!1),$=x.useRef(!1),ee=x.useRef(null);x.useEffect(()=>{u(l)},[l]);const V=e.availability??[],se=x.useCallback(async()=>{if(!z&&(M(!0),!V.length&&r&&t)){j(!0);try{await r({...e,hospital_id:c})}finally{j(!1)}}},[I,z,r,t,V.length,c]),Ae=x.useCallback(E=>{t&&(u(E),B(null),w(null),b(0),$.current=!1,r?.({...e,hospital_id:E}))},[e,r,t]);x.useEffect(()=>{s||M(!1)},[s]),x.useEffect(()=>{if(!I||!V.length||$.current)return;$.current=!0;const E=e.preferred_date||V[0]?.date;E&&(B(oe=>oe??E),V.find(oe=>oe.date===E)?.slots?.length||r?.({...e,hospital_id:c,preferred_date:E}))},[V,I]);const J=x.useMemo(()=>V.find(E=>E.date===m)?.slots??[],[V,m]);x.useLayoutEffect(()=>{const E=ee.current;E&&(E.scrollTop=0,H(E.scrollHeight>E.clientHeight+2))},[m,J.length]);const L=x.useCallback(()=>{const E=ee.current;E&&H(E.scrollTop+E.clientHeight<E.scrollHeight-4)},[]),Z=()=>{ee.current?.scrollBy({top:120,behavior:"smooth"})},te=x.useMemo(()=>{if(!V.length)return[];const E=Math.min(v+3,V.length);return V.slice(v,E).map(ne=>{if(ne.date)return{...ne,...RT(ne.date)}})},[V,v]),ge=v>0,T=v<Math.max(0,(V||[]).length-3),N=x.useCallback(async E=>{B(E),w(null);const ne=V.find(oe=>oe.date===E);if(!(ne?.slots?.length||Array.isArray(ne?.slots)&&ne?.slots.length===0)){h(!0);try{await r?.({...e,hospital_id:c,preferred_date:E})}catch{}finally{h(!1)}}},[e,c,r,V]),q=()=>{if(!C||!m||U)return;Q(!0);const E=e.cta?.text;r?.({...e,hospital_id:c,preferred_date:m,preferred_slot_time:C},`${E||`I want to book an appointment with Dr. ${t?.name}`} on ${m} at ${C}.`,e.cta?.tool_result)};return t?g.jsxs(Tn,{className:"max-w-md h-full rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[g.jsxs(ju,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[g.jsxs(Pu,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[t.profile_pic&&g.jsx(o0,{src:t.profile_pic,alt:`${t.name} profile photo`,crossOrigin:"anonymous"}),g.jsx(Yu,{className:"bg-secondary text-primary",children:OT(t.name)})]}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("h3",{className:"font-bold text-slate-900 leading-tight",style:{fontSize:"0.95rem"},children:[g.jsx("span",{children:t.name}),t.profile_link&&g.jsx("a",{href:t.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"inline-block align-middle ml-2 text-primary hover:text-primary/70 transition-colors",children:g.jsx(sS,{className:"h-3.5 w-3.5 inline","aria-hidden":!0})})]}),g.jsxs("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1 hover:line-clamp-none hover:whitespace-normal cursor-help",title:`${t.specialty}${t.experience?` • ${t.experience}`:""}`,children:[t.specialty,t.experience&&g.jsxs(g.Fragment,{children:[" • ",t.experience]})]})]})]}),g.jsxs(Vl,{className:"px-3 py-2",children:[g.jsxs("div",{className:"grid gap-1 pb-2 border-b border-border-subtle",children:[t.timings&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(tS,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.timings})]}),t.languages&&g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx(uS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.languages})]}),t.hospitals?.length>1&&c?g.jsx(_4,{options:t.hospitals.map(E=>({value:E.hospital_id,label:E.name||""})),placeholder:"Select Hospital",disabled:i,onValueChange:Ae,value:c,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:g.jsx(kl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(kl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.hospitals?.[0]?.name||""})]}),t.info&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(cS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:he("text-text-secondary text-xs leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words overflow-hidden",!k&&"line-clamp-1"),children:g.jsx(hs,{children:t.info})}),g.jsxs("button",{type:"button",onClick:()=>O(E=>!E),"aria-expanded":k,className:"mt-0.5 flex items-center gap-1 text-[11px] font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(iS,{className:"h-3.5 w-3.5","aria-hidden":!0}),k?"View less":"View more"]})]})]})]}),I?z?g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):V.length>0?g.jsxs("div",{className:"pt-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ie,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(E=>Math.max(0,E-3)),w(null)},disabled:i||!ge,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(km,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:te.map((E,ne)=>{if(!E||!E.date)return null;const oe=m===E.date,ue=(E?.slots||[]).length>0;return g.jsxs(Ie,{type:"button",variant:"outline",onClick:()=>E.date&&N(E.date),disabled:i,"aria-current":oe?"date":void 0,className:he("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",oe?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":ue?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[g.jsx("span",{className:he("text-[10px] tracking-wide w-full text-center font-medium"),children:E.weekday}),g.jsx("span",{className:he("text-xs font-bold w-full text-center"),children:E.dayNum})]},`${E.date}-${ne}`)})}),g.jsx(Ie,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(E=>Math.min(Math.max(0,V.length-3),E+3)),w(null)},disabled:i||!T,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(jm,{className:"h-4 w-4"})})]}),m&&g.jsx("div",{className:"mt-2",children:J.length>0?g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:ee,onScroll:L,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:J.map((E,ne)=>{if(!E)return null;const oe=C===E;return g.jsx(Ie,{type:"button",variant:"outline",onClick:()=>w(E),"aria-pressed":oe,disabled:i,className:he("h-9 rounded-lg px-2 text-xs font-medium transition-all",oe?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:g.jsx("span",{children:E})},E||`slot-${ne}`)})}),F&&g.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:g.jsxs("button",{type:"button",onClick:Z,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(ts,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):f?g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),g.jsxs(Ie,{type:"button",onClick:q,disabled:!C||i||U,"aria-disabled":!C||U,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${F?"":" mt-2"}`,children:[e.cta?.title||"Book appointment",g.jsx($x,{className:"h-4 w-4","aria-hidden":!0})]})]}):g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):g.jsx("div",{className:"pt-3",children:g.jsxs(Ie,{type:"button",variant:"outline",onClick:se,disabled:i||z,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[z?"Loading...":"Show available slots",g.jsx(ts,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const M4=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:H4},Symbol.toStringTag,{value:"Module"})),O4={voucher:BS,pharmacy:Dm,hospital:Dm,map:fS,location_pin:kl,"location pin":kl,check:Ru,calendar:eS,rupee:oS,dollar:nS,euro:aS};function ro({name:e,className:t,size:r=16}){const i=e?.trim().toLowerCase().replace(/\s+/g,"_");if(!i)return null;const s=O4[i];if(s)return g.jsx(s,{className:t,size:r,"aria-hidden":!0})}function $B({card:e,onSelect:t,disabled:r=!1}){const{title:i,tags:s,icon:l,img:c,description:u,banner_text:f,items:h,primary_cta:m,secondary_cta:B}=e,C=v=>{if(!r&&(v.link&&window.open(v.link,"_blank","noopener,noreferrer"),v.text||v.title)){let b=!1;e?.primary_cta?.tool_result&&(b=!0),t?.({message:v.text||v.title,selectedCard:e?.title,selectedComponent:e,selected_id:e.card_id,...b?{tool_result:e.primary_cta?.tool_result}:{}})}},w=!!c;return g.jsxs(Tn,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[g.jsxs(ju,{className:`flex flex-row items-center justify-between gap-3 p-3 ${w?"bg-primary/[20%]":""}`,children:[g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i?g.jsx(qm,{className:"text-base font-bold leading-tight tracking-tight truncate",children:i}):null,s?g.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:s}):null]}),w?g.jsx("div",{className:"shrink-0",children:g.jsx("img",{src:c,alt:i??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):l?g.jsx("div",{className:"shrink-0 text-muted-foreground",children:g.jsx(ro,{name:l,size:24,className:"text-primary"})}):null]}),g.jsxs(Vl,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[u?g.jsx("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:g.jsx(hs,{children:u})}):null,f?g.jsx("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:f}):null,h?.length?g.jsx("div",{className:"flex flex-col gap-y-1",children:h.map((v,b)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[v.icon?g.jsx(ro,{name:v.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,g.jsx("span",{className:"truncate",children:v.text})]},b))}):null]}),m?.title||B?.title?g.jsxs(Jm,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[m&&g.jsxs(Ie,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${B?"":"w-full"}`,disabled:r,onClick:()=>C(m),children:[m.icon?g.jsx(ro,{name:m.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:m.title})]}),B&&g.jsxs(Ie,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:r,onClick:()=>C(B),children:[B.icon?g.jsx(ro,{name:B.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:B.title})]})]}):null]})}function R4({cards:e,onSelect:t,disabled:r=!1,className:i,orientation:s="vertical"}){const[l,c]=x.useState(!1),u=x.useRef(!1);if(!e?.length)return g.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const f=async h=>{u.current||(u.current=!0,c(!0),await t?.(h))};return s!=="horizontal"?g.jsx("div",{className:i??"flex flex-col gap-3 mt-3",children:e.map((h,m)=>g.jsx($B,{card:h,onSelect:f,disabled:r||l},h.card_id||m))}):g.jsx(WB,{count:e.length,renderItem:h=>g.jsx($B,{card:e[h],onSelect:f,disabled:r||l})})}const L4=Object.freeze(Object.defineProperty({__proto__:null,CardList:R4},Symbol.toStringTag,{value:"Module"}));function ew(e){return e.toLowerCase().endsWith(".pdf")}function D4(e){const t=document?.createElement("a");t.href=e,t.download=e.split("/").pop()??"download.pdf",t.target="_blank",t.click(),document?.body?.removeChild(t)}async function k4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ny)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download="card.png",i.click()}async function j4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ny)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download=`screenshot-${Date.now()}.png`,i.click()}function K4({card:e}){const{title:t,description:r,tags_text:i,banner_text:s,action:l,link:c}=e,u=x.useRef(null),f=c&&!ew(c),h=()=>{l==="screenshot"?j4(u):l==="download"&&(c&&ew(c)?D4(c):k4(u))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(Tn,{ref:u,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:g.jsxs(Vl,{className:"p-3 space-y-2",children:[g.jsxs("div",{className:`flex items-start gap-3 ${f?"justify-between":"justify-center"}`,children:[g.jsxs("div",{className:`space-y-2 ${f?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[t&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:t}),r&&g.jsx("p",{className:`text-sm text-foreground leading-snug ${f?"":"text-center"}`,children:r}),s&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:s})]}),f&&g.jsx("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:g.jsx("img",{src:c,alt:t??"media",className:"h-full w-full object-cover"})})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})}),l&&g.jsx("div",{className:"flex justify-end",children:g.jsxs(Ie,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:h,children:[l==="screenshot"?g.jsx(AS,{className:"h-4 w-4"}):g.jsx(rS,{className:"h-4 w-4"}),l==="screenshot"?"Screenshot":"Download"]})})]})}const V4=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:K4},Symbol.toStringTag,{value:"Module"}));function G4({message:e,onDismiss:t}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),g.jsx("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:g.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:r=>r.stopPropagation(),children:[g.jsx("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:e}),g.jsx("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:g.jsx(ns,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function z4(){const e=ze(i=>i.toastMessage),t=ze(i=>i.setToastMessage),r=x.useCallback(()=>{t(null)},[t]);return x.useEffect(()=>{if(!e)return;const i=window.setTimeout(r,3e3);return()=>window.clearTimeout(i)},[e,r]),e?g.jsx(G4,{message:e,onDismiss:r}):null}const P4=Object.freeze(Object.defineProperty({__proto__:null,default:z4},Symbol.toStringTag,{value:"Module"}));function Y4({className:e="",onRetry:t,showRetryButton:r,startNewConnection:i,clearError:s,error:l,isConnected:c}){const{isOnline:u}=LB(),[f,h]=x.useState(!0);return x.useEffect(()=>{if(!i&&!r&&!!l){h(!0);const C=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(C)}h(!0)},[l,i,r]),i?g.jsx("div",{className:he("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",e),children:g.jsx("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):r&&l?.title?g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:l?.title}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:l?.description??"Please check your connection and try again"})]}),g.jsxs("button",{onClick:()=>{s(),t?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Retry"]})]})}):c&&u&&!l?.title||!i&&!r&&!f||!c&&!l?.title?null:g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:u?l?.title:"No internet connection"}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:u?l?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!u&&g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const X4=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:Y4},Symbol.toStringTag,{value:"Module"}));var Vf=function(e,t){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Vf(e,t)};function rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Gf=function(){return Gf=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},Gf.apply(this,arguments)};function ft(e,t,r,i){function s(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function u(m){try{h(i.next(m))}catch(B){c(B)}}function f(m){try{h(i.throw(m))}catch(B){c(B)}}function h(m){m.done?l(m.value):s(m.value).then(u,f)}h((i=i.apply(e,[])).next())})}function lt(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){r.label=h[1];break}if(h[0]===6&&r.label<l[1]){r.label=l[1],l=h;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(h);break}l[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],s=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function S6(e,t,r){if(arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||t)}for(var Nn=(function(){function e(t,r,i,s){this.left=t,this.top=r,this.width=i,this.height=s}return e.prototype.add=function(t,r,i,s){return new e(this.left+t,this.top+r,this.width+i,this.height+s)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var i=Array.from(r).find(function(s){return s.width!==0});return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),io=function(e,t){return Nn.fromClientRect(e,t.getBoundingClientRect())},q4=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Nn(0,0,i,s)},ao=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},TA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},Aw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",J4=typeof Uint8Array>"u"?[]:new Uint8Array(256),so=0;so<Aw.length;so++)J4[Aw.charCodeAt(so)]=so;for(var tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256),lo=0;lo<tw.length;lo++)ps[tw.charCodeAt(lo)]=lo;for(var Z4=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=ps[e.charCodeAt(i)],c=ps[e.charCodeAt(i+1)],u=ps[e.charCodeAt(i+2)],f=ps[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},W4=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},$4=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},Xr=5,zf=11,Pf=2,eN=zf-Xr,nw=65536>>Xr,AN=1<<Xr,Yf=AN-1,tN=1024>>Xr,nN=nw+tN,rN=nN,iN=32,aN=rN+iN,sN=65536>>zf,lN=1<<eN,oN=lN-1,rw=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},cN=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},uN=function(e,t){var r=Z4(e),i=Array.isArray(r)?$4(r):new Uint32Array(r),s=Array.isArray(r)?W4(r):new Uint16Array(r),l=24,c=rw(s,l/2,i[4]/2),u=i[5]===2?rw(s,(l+i[4])/2):cN(i,Math.ceil((l+i[4])/4));return new fN(i[0],i[1],i[2],i[3],c,u)},fN=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Xr],r=(r<<Pf)+(t&Yf),this.data[r];if(t<=65535)return r=this.index[nw+(t-55296>>Xr)],r=(r<<Pf)+(t&Yf),this.data[r];if(t<this.highStart)return r=aN-sN+(t>>zf),r=this.index[r],r+=t>>Xr&oN,r=this.index[r],r=(r<<Pf)+(t&Yf),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),iw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dN=typeof Uint8Array>"u"?[]:new Uint8Array(256),oo=0;oo<iw.length;oo++)dN[iw.charCodeAt(oo)]=oo;var hN="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",aw=50,gN=1,sw=2,lw=3,pN=4,mN=5,ow=7,cw=8,uw=9,lr=10,Xf=11,fw=12,qf=13,BN=14,ms=15,Jf=16,co=17,Bs=18,wN=19,dw=20,Zf=21,ws=22,Wf=23,Ni=24,Qt=25,Cs=26,ys=27,Ii=28,CN=29,qr=30,yN=31,uo=32,fo=33,$f=34,ed=35,Ad=36,Es=37,td=38,ho=39,go=40,nd=41,hw=42,EN=43,vN=[9001,65288],gw="!",ke="×",po="÷",rd=uN(hN),In=[qr,Ad],id=[gN,sw,lw,mN],pw=[lr,cw],mw=[ys,Cs],bN=id.concat(pw),Bw=[td,ho,go,$f,ed],xN=[ms,qf],SN=function(e,t){t===void 0&&(t="strict");var r=[],i=[],s=[];return e.forEach(function(l,c){var u=rd.get(l);if(u>aw?(s.push(!0),u-=aw):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return i.push(c),r.push(Jf);if(u===pN||u===Xf){if(c===0)return i.push(c),r.push(qr);var f=r[c-1];return bN.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(qr))}if(i.push(c),u===yN)return r.push(t==="strict"?Zf:Es);if(u===hw||u===CN)return r.push(qr);if(u===EN)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(Es):r.push(qr);r.push(u)}),[i,r,s]},ad=function(e,t,r,i){var s=i[r];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=i.length;){l++;var c=i[l];if(c===t)return!0;if(c!==lr)break}if(s===lr)for(var l=r;l>0;){l--;var u=i[l];if(Array.isArray(e)?e.indexOf(u)!==-1:e===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===t)return!0;if(c!==lr)break}if(u!==lr)break}return!1},ww=function(e,t){for(var r=e;r>=0;){var i=t[r];if(i===lr)r--;else return i}return 0},QN=function(e,t,r,i,s){if(r[i]===0)return ke;var l=i-1;if(Array.isArray(s)&&s[l]===!0)return ke;var c=l-1,u=l+1,f=t[l],h=c>=0?t[c]:0,m=t[u];if(f===sw&&m===lw)return ke;if(id.indexOf(f)!==-1)return gw;if(id.indexOf(m)!==-1||pw.indexOf(m)!==-1)return ke;if(ww(l,t)===cw)return po;if(rd.get(e[l])===Xf||(f===uo||f===fo)&&rd.get(e[u])===Xf||f===ow||m===ow||f===uw||[lr,qf,ms].indexOf(f)===-1&&m===uw||[co,Bs,wN,Ni,Ii].indexOf(m)!==-1||ww(l,t)===ws||ad(Wf,ws,l,t)||ad([co,Bs],Zf,l,t)||ad(fw,fw,l,t))return ke;if(f===lr)return po;if(f===Wf||m===Wf)return ke;if(m===Jf||f===Jf)return po;if([qf,ms,Zf].indexOf(m)!==-1||f===BN||h===Ad&&xN.indexOf(f)!==-1||f===Ii&&m===Ad||m===dw||In.indexOf(m)!==-1&&f===Qt||In.indexOf(f)!==-1&&m===Qt||f===ys&&[Es,uo,fo].indexOf(m)!==-1||[Es,uo,fo].indexOf(f)!==-1&&m===Cs||In.indexOf(f)!==-1&&mw.indexOf(m)!==-1||mw.indexOf(f)!==-1&&In.indexOf(m)!==-1||[ys,Cs].indexOf(f)!==-1&&(m===Qt||[ws,ms].indexOf(m)!==-1&&t[u+1]===Qt)||[ws,ms].indexOf(f)!==-1&&m===Qt||f===Qt&&[Qt,Ii,Ni].indexOf(m)!==-1)return ke;if([Qt,Ii,Ni,co,Bs].indexOf(m)!==-1)for(var B=l;B>=0;){var C=t[B];if(C===Qt)return ke;if([Ii,Ni].indexOf(C)!==-1)B--;else break}if([ys,Cs].indexOf(m)!==-1)for(var B=[co,Bs].indexOf(f)!==-1?c:l;B>=0;){var C=t[B];if(C===Qt)return ke;if([Ii,Ni].indexOf(C)!==-1)B--;else break}if(td===f&&[td,ho,$f,ed].indexOf(m)!==-1||[ho,$f].indexOf(f)!==-1&&[ho,go].indexOf(m)!==-1||[go,ed].indexOf(f)!==-1&&m===go||Bw.indexOf(f)!==-1&&[dw,Cs].indexOf(m)!==-1||Bw.indexOf(m)!==-1&&f===ys||In.indexOf(f)!==-1&&In.indexOf(m)!==-1||f===Ni&&In.indexOf(m)!==-1||In.concat(Qt).indexOf(f)!==-1&&m===ws&&vN.indexOf(e[u])===-1||In.concat(Qt).indexOf(m)!==-1&&f===Bs)return ke;if(f===nd&&m===nd){for(var w=r[l],v=1;w>0&&(w--,t[w]===nd);)v++;if(v%2!==0)return ke}return f===uo&&m===fo?ke:po},UN=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=SN(e,t.lineBreak),i=r[0],s=r[1],l=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(u){return[Qt,qr,hw].indexOf(u)!==-1?Es:u}));var c=t.wordBreak==="keep-all"?l.map(function(u,f){return u&&e[f]>=19968&&e[f]<=40959}):void 0;return[i,s,c]},FN=(function(){function e(t,r,i,s){this.codePoints=t,this.required=r===gw,this.start=i,this.end=s}return e.prototype.slice=function(){return TA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),TN=function(e,t){var r=ao(e),i=UN(r,t),s=i[0],l=i[1],c=i[2],u=r.length,f=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var m=ke;h<u&&(m=QN(r,l,s,++h,c))===ke;);if(m!==ke||h===u){var B=new FN(r,m,f,h);return f=h,{value:B,done:!1}}return{done:!0,value:null}}}},NN=1,IN=2,vs=4,Cw=8,mo=10,yw=47,bs=92,_N=9,HN=32,Bo=34,xs=61,MN=35,ON=36,RN=37,wo=39,Co=40,Ss=41,LN=95,Bt=45,DN=33,kN=60,jN=62,KN=64,VN=91,GN=93,zN=61,PN=123,yo=63,YN=125,Ew=124,XN=126,qN=128,vw=65533,sd=42,Jr=43,JN=44,ZN=58,WN=59,Qs=46,$N=0,eI=8,AI=11,tI=14,nI=31,rI=127,pn=-1,bw=48,xw=97,Sw=101,iI=102,aI=117,sI=122,Qw=65,Uw=69,Fw=70,lI=85,oI=90,ot=function(e){return e>=bw&&e<=57},cI=function(e){return e>=55296&&e<=57343},_i=function(e){return ot(e)||e>=Qw&&e<=Fw||e>=xw&&e<=iI},uI=function(e){return e>=xw&&e<=sI},fI=function(e){return e>=Qw&&e<=oI},dI=function(e){return uI(e)||fI(e)},hI=function(e){return e>=qN},Eo=function(e){return e===mo||e===_N||e===HN},vo=function(e){return dI(e)||hI(e)||e===LN},Tw=function(e){return vo(e)||ot(e)||e===Bt},gI=function(e){return e>=$N&&e<=eI||e===AI||e>=tI&&e<=nI||e===rI},or=function(e,t){return e!==bs?!1:t!==mo},bo=function(e,t,r){return e===Bt?vo(t)||or(t,r):vo(e)?!0:!!(e===bs&&or(e,t))},ld=function(e,t,r){return e===Jr||e===Bt?ot(t)?!0:t===Qs&&ot(r):ot(e===Qs?t:e)},pI=function(e){var t=0,r=1;(e[t]===Jr||e[t]===Bt)&&(e[t]===Bt&&(r=-1),t++);for(var i=[];ot(e[t]);)i.push(e[t++]);var s=i.length?parseInt(TA.apply(void 0,i),10):0;e[t]===Qs&&t++;for(var l=[];ot(e[t]);)l.push(e[t++]);var c=l.length,u=c?parseInt(TA.apply(void 0,l),10):0;(e[t]===Uw||e[t]===Sw)&&t++;var f=1;(e[t]===Jr||e[t]===Bt)&&(e[t]===Bt&&(f=-1),t++);for(var h=[];ot(e[t]);)h.push(e[t++]);var m=h.length?parseInt(TA.apply(void 0,h),10):0;return r*(s+u*Math.pow(10,-c))*Math.pow(10,f*m)},mI={type:2},BI={type:3},wI={type:4},CI={type:13},yI={type:8},EI={type:21},vI={type:9},bI={type:10},xI={type:11},SI={type:12},QI={type:14},xo={type:23},UI={type:1},FI={type:25},TI={type:24},NI={type:26},II={type:27},_I={type:28},HI={type:29},MI={type:31},od={type:32},Nw=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(ao(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==od;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Bo:return this.consumeStringToken(Bo);case MN:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Tw(r)||or(i,s)){var l=bo(r,i,s)?IN:NN,c=this.consumeName();return{type:5,value:c,flags:l}}break;case ON:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),CI;break;case wo:return this.consumeStringToken(wo);case Co:return mI;case Ss:return BI;case sd:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),QI;break;case Jr:if(ld(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case JN:return wI;case Bt:var u=t,f=this.peekCodePoint(0),h=this.peekCodePoint(1);if(ld(u,f,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(bo(u,f,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(f===Bt&&h===jN)return this.consumeCodePoint(),this.consumeCodePoint(),TI;break;case Qs:if(ld(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case yw:if(this.peekCodePoint(0)===sd)for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(m===sd&&(m=this.consumeCodePoint(),m===yw))return this.consumeToken();if(m===pn)return this.consumeToken()}break;case ZN:return NI;case WN:return II;case kN:if(this.peekCodePoint(0)===DN&&this.peekCodePoint(1)===Bt&&this.peekCodePoint(2)===Bt)return this.consumeCodePoint(),this.consumeCodePoint(),FI;break;case KN:var B=this.peekCodePoint(0),C=this.peekCodePoint(1),w=this.peekCodePoint(2);if(bo(B,C,w)){var c=this.consumeName();return{type:7,value:c}}break;case VN:return _I;case bs:if(or(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case GN:return HI;case zN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),yI;break;case PN:return xI;case YN:return SI;case aI:case lI:var v=this.peekCodePoint(0),b=this.peekCodePoint(1);return v===Jr&&(_i(b)||b===yo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Ew:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),vI;if(this.peekCodePoint(0)===Ew)return this.consumeCodePoint(),EI;break;case XN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),bI;break;case pn:return od}return Eo(t)?(this.consumeWhiteSpace(),MI):ot(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):vo(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:TA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();_i(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var i=!1;r===yo&&t.length<6;)t.push(r),r=this.consumeCodePoint(),i=!0;if(i){var s=parseInt(TA.apply(void 0,t.map(function(f){return f===yo?bw:f})),16),l=parseInt(TA.apply(void 0,t.map(function(f){return f===yo?Fw:f})),16);return{type:30,start:s,end:l}}var c=parseInt(TA.apply(void 0,t),16);if(this.peekCodePoint(0)===Bt&&_i(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];_i(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var l=parseInt(TA.apply(void 0,u),16);return{type:30,start:c,end:l}}else return{type:30,start:c,end:c}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Co?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Co?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===wo||r===Bo){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===Ss)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),xo)}for(;;){var s=this.consumeCodePoint();if(s===pn||s===Ss)return{type:22,value:TA.apply(void 0,t)};if(Eo(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===pn||this.peekCodePoint(0)===Ss?(this.consumeCodePoint(),{type:22,value:TA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),xo);if(s===Bo||s===wo||s===Co||gI(s))return this.consumeBadUrlRemnants(),xo;if(s===bs)if(or(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),xo;else t.push(s)}},e.prototype.consumeWhiteSpace=function(){for(;Eo(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ss||t===pn)return;or(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,i="";t>0;){var s=Math.min(r,t);i+=TA.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),i},e.prototype.consumeStringToken=function(t){var r="",i=0;do{var s=this._value[i];if(s===pn||s===void 0||s===t)return r+=this.consumeStringSlice(i),{type:0,value:r};if(s===mo)return this._value.splice(0,i),UI;if(s===bs){var l=this._value[i+1];l!==pn&&l!==void 0&&(l===mo?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):or(s,l)&&(r+=this.consumeStringSlice(i),r+=TA(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=vs,i=this.peekCodePoint(0);for((i===Jr||i===Bt)&&t.push(this.consumeCodePoint());ot(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(i===Qs&&ot(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Cw;ot(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((i===Uw||i===Sw)&&((s===Jr||s===Bt)&&ot(l)||ot(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Cw;ot(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[pI(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],i=t[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(bo(s,l,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return s===RN?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(_i(t)){for(var r=TA(t);_i(this.peekCodePoint(0))&&r.length<6;)r+=TA(this.consumeCodePoint());Eo(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||cI(i)||i>1114111?vw:i}return t===pn?vw:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(Tw(r))t+=TA(r);else if(or(r,this.peekCodePoint(0)))t+=TA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e})(),Iw=(function(){function e(t){this._tokens=t}return e.create=function(t){var r=new Nw;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},i=this.consumeToken();;){if(i.type===32||RI(i,t))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?od:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),Us=function(e){return e.type===15},Hi=function(e){return e.type===17},sA=function(e){return e.type===20},OI=function(e){return e.type===0},cd=function(e,t){return sA(e)&&e.value===t},_w=function(e){return e.type!==31},Mi=function(e){return e.type!==31&&e.type!==4},mn=function(e){var t=[],r=[];return e.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&t.push(r),t},RI=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},cr=function(e){return e.type===17||e.type===15},MA=function(e){return e.type===16||cr(e)},Hw=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},$A={type:17,number:0,flags:vs},ud={type:16,number:50,flags:vs},ur={type:16,number:100,flags:vs},Fs=function(e,t,r){var i=e[0],s=e[1];return[pA(i,t),pA(typeof s<"u"?s:i,r)]},pA=function(e,t){if(e.type===16)return e.number/100*t;if(Us(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Mw="deg",Ow="grad",Rw="rad",Lw="turn",So={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case Mw:return Math.PI*t.number/180;case Ow:return Math.PI/200*t.number;case Rw:return t.number;case Lw:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},Dw=function(e){return e.type===15&&(e.unit===Mw||e.unit===Ow||e.unit===Rw||e.unit===Lw)},kw=function(e){var t=e.filter(sA).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[$A,$A];case"to top":case"bottom":return kt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[$A,ur];case"to right":case"left":return kt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ur,ur];case"to bottom":case"top":return kt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ur,$A];case"to left":case"right":return kt(270)}return 0},kt=function(e){return Math.PI*e/180},fr={name:"color",parse:function(e,t){if(t.type===18){var r=LI[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3);return hr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(t.value.length===4){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3),c=t.value.substring(3,4);return hr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(c+c,16)/255)}if(t.value.length===6){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6);return hr(parseInt(i,16),parseInt(s,16),parseInt(l,16),1)}if(t.value.length===8){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6),c=t.value.substring(6,8);return hr(parseInt(i,16),parseInt(s,16),parseInt(l,16),parseInt(c,16)/255)}}if(t.type===20){var u=_n[t.value.toUpperCase()];if(typeof u<"u")return u}return _n.TRANSPARENT}},dr=function(e){return(255&e)===0},YA=function(e){var t=255&e,r=255&e>>8,i=255&e>>16,s=255&e>>24;return t<255?"rgba("+s+","+i+","+r+","+t/255+")":"rgb("+s+","+i+","+r+")"},hr=function(e,t,r,i){return(e<<24|t<<16|r<<8|Math.round(i*255)<<0)>>>0},jw=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},Kw=function(e,t){var r=t.filter(Mi);if(r.length===3){var i=r.map(jw),s=i[0],l=i[1],c=i[2];return hr(s,l,c,1)}if(r.length===4){var u=r.map(jw),s=u[0],l=u[1],c=u[2],f=u[3];return hr(s,l,c,f)}return 0};function fd(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<.16666666666666666?(t-e)*r*6+e:r<.5?t:r<.6666666666666666?(t-e)*6*(.6666666666666666-r)+e:e}var Vw=function(e,t){var r=t.filter(Mi),i=r[0],s=r[1],l=r[2],c=r[3],u=(i.type===17?kt(i.number):So.parse(e,i))/(Math.PI*2),f=MA(s)?s.number/100:0,h=MA(l)?l.number/100:0,m=typeof c<"u"&&MA(c)?pA(c,1):1;if(f===0)return hr(h*255,h*255,h*255,1);var B=h<=.5?h*(f+1):h+f-h*f,C=h*2-B,w=fd(C,B,u+1/3),v=fd(C,B,u),b=fd(C,B,u-1/3);return hr(w*255,v*255,b*255,m)},LI={hsl:Vw,hsla:Vw,rgb:Kw,rgba:Kw},Ts=function(e,t){return fr.parse(e,Iw.create(t).parseComponentValue())},_n={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},DI={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(sA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kI={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qo=function(e,t){var r=fr.parse(e,t[0]),i=t[1];return i&&MA(i)?{color:r,stop:i}:{color:r,stop:null}},Gw=function(e,t){var r=e[0],i=e[e.length-1];r.stop===null&&(r.stop=$A),i.stop===null&&(i.stop=ur);for(var s=[],l=0,c=0;c<e.length;c++){var u=e[c].stop;if(u!==null){var f=pA(u,t);f>l?s.push(f):s.push(l),l=f}else s.push(null)}for(var h=null,c=0;c<s.length;c++){var m=s[c];if(m===null)h===null&&(h=c);else if(h!==null){for(var B=c-h,C=s[h-1],w=(m-C)/(B+1),v=1;v<=B;v++)s[h+v-1]=w*v;h=null}}return e.map(function(b,U){var Q=b.color;return{color:Q,stop:Math.max(Math.min(1,s[U]/t),0)}})},jI=function(e,t,r){var i=t/2,s=r/2,l=pA(e[0],t)-i,c=s-pA(e[1],r);return(Math.atan2(c,l)+Math.PI*2)%(Math.PI*2)},KI=function(e,t,r){var i=typeof e=="number"?e:jI(e,t,r),s=Math.abs(t*Math.sin(i))+Math.abs(r*Math.cos(i)),l=t/2,c=r/2,u=s/2,f=Math.sin(i-Math.PI/2)*u,h=Math.cos(i-Math.PI/2)*u;return[s,l-h,l+h,c-f,c+f]},an=function(e,t){return Math.sqrt(e*e+t*t)},zw=function(e,t,r,i,s){var l=[[0,0],[0,t],[e,0],[e,t]];return l.reduce(function(c,u){var f=u[0],h=u[1],m=an(r-f,i-h);return(s?m<c.optimumDistance:m>c.optimumDistance)?{optimumCorner:u,optimumDistance:m}:c},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},VI=function(e,t,r,i,s){var l=0,c=0;switch(e.size){case 0:e.shape===0?l=c=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.min(Math.abs(t),Math.abs(t-i)),c=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(e.shape===0)l=c=Math.min(an(t,r),an(t,r-s),an(t-i,r),an(t-i,r-s));else if(e.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-i)),f=zw(i,s,t,r,!0),h=f[0],m=f[1];l=an(h-t,(m-r)/u),c=u*l}break;case 1:e.shape===0?l=c=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.max(Math.abs(t),Math.abs(t-i)),c=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(e.shape===0)l=c=Math.max(an(t,r),an(t,r-s),an(t-i,r),an(t-i,r-s));else if(e.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-i)),B=zw(i,s,t,r,!1),h=B[0],m=B[1];l=an(h-t,(m-r)/u),c=u*l}break}return Array.isArray(e.size)&&(l=pA(e.size[0],i),c=e.size.length===2?pA(e.size[1],s):l),[l,c]},GI=function(e,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&c.value==="to"){r=kw(s);return}else if(Dw(c)){r=So.parse(e,c);return}}var u=Qo(e,s);i.push(u)}),{angle:r,stops:i,type:1}},Uo=function(e,t){var r=kt(180),i=[];return mn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=kw(s);return}else if(Dw(c)){r=(So.parse(e,c)+kt(270))%kt(360);return}}var u=Qo(e,s);i.push(u)}),{angle:r,stops:i,type:1}},zI=function(e,t){var r=kt(180),i=[],s=1,l=0,c=3,u=[];return mn(t).forEach(function(f,h){var m=f[0];if(h===0){if(sA(m)&&m.value==="linear"){s=1;return}else if(sA(m)&&m.value==="radial"){s=2;return}}if(m.type===18){if(m.name==="from"){var B=fr.parse(e,m.values[0]);i.push({stop:$A,color:B})}else if(m.name==="to"){var B=fr.parse(e,m.values[0]);i.push({stop:ur,color:B})}else if(m.name==="color-stop"){var C=m.values.filter(Mi);if(C.length===2){var B=fr.parse(e,C[1]),w=C[0];Hi(w)&&i.push({stop:{type:16,number:w.number*100,flags:w.flags},color:B})}}}}),s===1?{angle:(r+kt(180))%kt(360),stops:i,type:s}:{size:c,shape:l,stops:i,position:u,type:s}},Pw="closest-side",Yw="farthest-side",Xw="closest-corner",qw="farthest-corner",Jw="circle",Zw="ellipse",Ww="cover",$w="contain",PI=function(e,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0){var h=!1;f=c.reduce(function(B,C){if(h)if(sA(C))switch(C.value){case"center":return l.push(ud),B;case"top":case"left":return l.push($A),B;case"right":case"bottom":return l.push(ur),B}else(MA(C)||cr(C))&&l.push(C);else if(sA(C))switch(C.value){case Jw:return r=0,!1;case Zw:return r=1,!1;case"at":return h=!0,!1;case Pw:return i=0,!1;case Ww:case Yw:return i=1,!1;case $w:case Xw:return i=2,!1;case qw:return i=3,!1}else if(cr(C)||MA(C))return Array.isArray(i)||(i=[]),i.push(C),!1;return B},f)}if(f){var m=Qo(e,c);s.push(m)}}),{size:i,shape:r,stops:s,position:l,type:2}},Fo=function(e,t){var r=0,i=3,s=[],l=[];return mn(t).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(m,B){if(sA(B))switch(B.value){case"center":return l.push(ud),!1;case"top":case"left":return l.push($A),!1;case"right":case"bottom":return l.push(ur),!1}else if(MA(B)||cr(B))return l.push(B),!1;return m},f):u===1&&(f=c.reduce(function(m,B){if(sA(B))switch(B.value){case Jw:return r=0,!1;case Zw:return r=1,!1;case $w:case Pw:return i=0,!1;case Yw:return i=1,!1;case Xw:return i=2,!1;case Ww:case qw:return i=3,!1}else if(cr(B)||MA(B))return Array.isArray(i)||(i=[]),i.push(B),!1;return m},f)),f){var h=Qo(e,c);s.push(h)}}),{size:i,shape:r,stops:s,position:l,type:2}},YI=function(e){return e.type===1},XI=function(e){return e.type===2},dd={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var i=eC[t.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function qI(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!eC[e.name])}var eC={"linear-gradient":GI,"-moz-linear-gradient":Uo,"-ms-linear-gradient":Uo,"-o-linear-gradient":Uo,"-webkit-linear-gradient":Uo,"radial-gradient":PI,"-moz-radial-gradient":Fo,"-ms-radial-gradient":Fo,"-o-radial-gradient":Fo,"-webkit-radial-gradient":Fo,"-webkit-gradient":zI},JI={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(i){return Mi(i)&&qI(i)}).map(function(i){return dd.parse(e,i)})}},ZI={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(sA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WI={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return mn(t).map(function(r){return r.filter(MA)}).map(Hw)}},$I={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return mn(t).map(function(r){return r.filter(sA).map(function(i){return i.value}).join(" ")}).map(e_)}},e_=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Oi;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Oi||(Oi={}));var A_={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return mn(t).map(function(r){return r.filter(t_)})}},t_=function(e){return sA(e)||MA(e)},To=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},n_=To("top"),r_=To("right"),i_=To("bottom"),a_=To("left"),No=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return Hw(r.filter(MA))}}},s_=No("top-left"),l_=No("top-right"),o_=No("bottom-right"),c_=No("bottom-left"),Io=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u_=Io("top"),f_=Io("right"),d_=Io("bottom"),h_=Io("left"),_o=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Us(r)?r.number:0}}},g_=_o("top"),p_=_o("right"),m_=_o("bottom"),B_=_o("left"),w_={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},C_={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},y_={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(sA).reduce(function(r,i){return r|E_(i.value)},0)}},E_=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},v_={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},b_={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},Ho;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Ho||(Ho={}));var x_={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Ho.STRICT;case"normal":default:return Ho.NORMAL}}},S_={name:"line-height",initialValue:"normal",prefix:!1,type:4},AC=function(e,t){return sA(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:MA(e)?pA(e,t):t},Q_={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:dd.parse(e,t)}},U_={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},hd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Mo=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},F_=Mo("top"),T_=Mo("right"),N_=Mo("bottom"),I_=Mo("left"),__={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(sA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},H_={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Oo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},M_=Oo("top"),O_=Oo("right"),R_=Oo("bottom"),L_=Oo("left"),D_={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},k_={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},j_={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&cd(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:_n.TRANSPARENT,offsetX:$A,offsetY:$A,blur:$A},s=0,l=0;l<r.length;l++){var c=r[l];cr(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:i.blur=c,s++):i.color=fr.parse(e,c)}return i})}},K_={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},V_={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=P_[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},G_=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},z_=function(e){var t=e.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=t[0],i=t[1],s=t[4],l=t[5],c=t[12],u=t[13];return t.length===16?[r,i,s,l,c,u]:null},P_={matrix:G_,matrix3d:z_},tC={type:16,number:50,flags:vs},Y_=[tC,tC],X_={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(MA);return r.length!==2?Y_:[r[0],r[1]]}},q_={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ns;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Ns||(Ns={}));for(var J_={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Ns.BREAK_ALL;case"keep-all":return Ns.KEEP_ALL;case"normal":default:return Ns.NORMAL}}},Z_={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Hi(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},nC={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},W_={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Hi(t)?t.number:1}},$_={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(sA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AH={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],i=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},tH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Hi(t))return t.number;if(sA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},rH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(sA).map(function(r){return r.value})}},iH={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},KA=function(e,t){return(e&t)!==0},aH={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},sH={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var i=[],s=t.filter(_w),l=0;l<s.length;l++){var c=s[l],u=s[l+1];if(c.type===20){var f=u&&Hi(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},lH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],i=t.filter(_w),s=0;s<i.length;s++){var l=i[s],c=i[s+1];if(sA(l)&&l.value!=="none"){var u=c&&Hi(c)?c.number:0;r.push({counter:l.value,reset:u})}}return r}},oH={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Us).map(function(r){return nC.parse(e,r)})}},cH={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var i=[],s=t.filter(OI);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var c=s[l].value,u=s[l+1].value;i.push({open:c,close:u})}return i}},rC=function(e,t,r){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?r?i.open:i.close:""},uH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&cd(t[0],"none")?[]:mn(t).map(function(r){for(var i={color:255,offsetX:$A,offsetY:$A,blur:$A,spread:$A,inset:!1},s=0,l=0;l<r.length;l++){var c=r[l];cd(c,"inset")?i.inset=!0:cr(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:s===2?i.blur=c:i.spread=c,s++):i.color=fr.parse(e,c)}return i})}},fH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],i=[];return t.filter(sA).forEach(function(s){switch(s.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(s){i.indexOf(s)===-1&&i.push(s)}),i}},dH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},hH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Us(t)?t.number:0}},gH=(function(){function e(t,r){var i,s;this.animationDuration=Be(t,oH,r.animationDuration),this.backgroundClip=Be(t,DI,r.backgroundClip),this.backgroundColor=Be(t,kI,r.backgroundColor),this.backgroundImage=Be(t,JI,r.backgroundImage),this.backgroundOrigin=Be(t,ZI,r.backgroundOrigin),this.backgroundPosition=Be(t,WI,r.backgroundPosition),this.backgroundRepeat=Be(t,$I,r.backgroundRepeat),this.backgroundSize=Be(t,A_,r.backgroundSize),this.borderTopColor=Be(t,n_,r.borderTopColor),this.borderRightColor=Be(t,r_,r.borderRightColor),this.borderBottomColor=Be(t,i_,r.borderBottomColor),this.borderLeftColor=Be(t,a_,r.borderLeftColor),this.borderTopLeftRadius=Be(t,s_,r.borderTopLeftRadius),this.borderTopRightRadius=Be(t,l_,r.borderTopRightRadius),this.borderBottomRightRadius=Be(t,o_,r.borderBottomRightRadius),this.borderBottomLeftRadius=Be(t,c_,r.borderBottomLeftRadius),this.borderTopStyle=Be(t,u_,r.borderTopStyle),this.borderRightStyle=Be(t,f_,r.borderRightStyle),this.borderBottomStyle=Be(t,d_,r.borderBottomStyle),this.borderLeftStyle=Be(t,h_,r.borderLeftStyle),this.borderTopWidth=Be(t,g_,r.borderTopWidth),this.borderRightWidth=Be(t,p_,r.borderRightWidth),this.borderBottomWidth=Be(t,m_,r.borderBottomWidth),this.borderLeftWidth=Be(t,B_,r.borderLeftWidth),this.boxShadow=Be(t,uH,r.boxShadow),this.color=Be(t,w_,r.color),this.direction=Be(t,C_,r.direction),this.display=Be(t,y_,r.display),this.float=Be(t,v_,r.cssFloat),this.fontFamily=Be(t,AH,r.fontFamily),this.fontSize=Be(t,tH,r.fontSize),this.fontStyle=Be(t,iH,r.fontStyle),this.fontVariant=Be(t,rH,r.fontVariant),this.fontWeight=Be(t,nH,r.fontWeight),this.letterSpacing=Be(t,b_,r.letterSpacing),this.lineBreak=Be(t,x_,r.lineBreak),this.lineHeight=Be(t,S_,r.lineHeight),this.listStyleImage=Be(t,Q_,r.listStyleImage),this.listStylePosition=Be(t,U_,r.listStylePosition),this.listStyleType=Be(t,hd,r.listStyleType),this.marginTop=Be(t,F_,r.marginTop),this.marginRight=Be(t,T_,r.marginRight),this.marginBottom=Be(t,N_,r.marginBottom),this.marginLeft=Be(t,I_,r.marginLeft),this.opacity=Be(t,W_,r.opacity);var l=Be(t,__,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=Be(t,H_,r.overflowWrap),this.paddingTop=Be(t,M_,r.paddingTop),this.paddingRight=Be(t,O_,r.paddingRight),this.paddingBottom=Be(t,R_,r.paddingBottom),this.paddingLeft=Be(t,L_,r.paddingLeft),this.paintOrder=Be(t,fH,r.paintOrder),this.position=Be(t,k_,r.position),this.textAlign=Be(t,D_,r.textAlign),this.textDecorationColor=Be(t,$_,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=Be(t,eH,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=Be(t,j_,r.textShadow),this.textTransform=Be(t,K_,r.textTransform),this.transform=Be(t,V_,r.transform),this.transformOrigin=Be(t,X_,r.transformOrigin),this.visibility=Be(t,q_,r.visibility),this.webkitTextStrokeColor=Be(t,dH,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Be(t,hH,r.webkitTextStrokeWidth),this.wordBreak=Be(t,J_,r.wordBreak),this.zIndex=Be(t,Z_,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return dr(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return KA(this.display,4)||KA(this.display,33554432)||KA(this.display,268435456)||KA(this.display,536870912)||KA(this.display,67108864)||KA(this.display,134217728)},e})(),pH=(function(){function e(t,r){this.content=Be(t,aH,r.content),this.quotes=Be(t,cH,r.quotes)}return e})(),iC=(function(){function e(t,r){this.counterIncrement=Be(t,sH,r.counterIncrement),this.counterReset=Be(t,lH,r.counterReset)}return e})(),Be=function(e,t,r){var i=new Nw,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;i.write(s);var l=new Iw(i.read());switch(t.type){case 2:var c=l.parseComponentValue();return t.parse(e,sA(c)?c.value:t.initialValue);case 0:return t.parse(e,l.parseComponentValue());case 1:return t.parse(e,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(t.format){case"angle":return So.parse(e,l.parseComponentValue());case"color":return fr.parse(e,l.parseComponentValue());case"image":return dd.parse(e,l.parseComponentValue());case"length":var u=l.parseComponentValue();return cr(u)?u:$A;case"length-percentage":var f=l.parseComponentValue();return MA(f)?f:$A;case"time":return nC.parse(e,l.parseComponentValue())}break}},mH="data-html2canvas-debug",BH=function(e){var t=e.getAttribute(mH);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},gd=function(e,t){var r=BH(e);return r===1||t===r},Bn=(function(){function e(t,r){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,gd(r,3),this.styles=new gH(t,window.getComputedStyle(r,null)),Fd(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=io(this.context,r),gd(r,4)&&(this.flags|=16)}return e})(),wH="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",aC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Is=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ro=0;Ro<aC.length;Ro++)Is[aC.charCodeAt(Ro)]=Ro;for(var CH=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=Is[e.charCodeAt(i)],c=Is[e.charCodeAt(i+1)],u=Is[e.charCodeAt(i+2)],f=Is[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},yH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},EH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},Zr=5,pd=11,md=2,vH=pd-Zr,sC=65536>>Zr,bH=1<<Zr,Bd=bH-1,xH=1024>>Zr,SH=sC+xH,QH=SH,UH=32,FH=QH+UH,TH=65536>>pd,NH=1<<vH,IH=NH-1,lC=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},_H=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},HH=function(e,t){var r=CH(e),i=Array.isArray(r)?EH(r):new Uint32Array(r),s=Array.isArray(r)?yH(r):new Uint16Array(r),l=24,c=lC(s,l/2,i[4]/2),u=i[5]===2?lC(s,(l+i[4])/2):_H(i,Math.ceil((l+i[4])/4));return new MH(i[0],i[1],i[2],i[3],c,u)},MH=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Zr],r=(r<<md)+(t&Bd),this.data[r];if(t<=65535)return r=this.index[sC+(t-55296>>Zr)],r=(r<<md)+(t&Bd),this.data[r];if(t<this.highStart)return r=FH-TH+(t>>pd),r=this.index[r],r+=t>>Zr&IH,r=this.index[r],r=(r<<md)+(t&Bd),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),oC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OH=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lo=0;Lo<oC.length;Lo++)OH[oC.charCodeAt(Lo)]=Lo;var RH=1,wd=2,Cd=3,cC=4,uC=5,LH=7,fC=8,yd=9,Ed=10,dC=11,hC=12,gC=13,pC=14,vd=15,DH=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},kH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},jH=HH(wH),jt="×",bd="÷",KH=function(e){return jH.get(e)},VH=function(e,t,r){var i=r-2,s=t[i],l=t[r-1],c=t[r];if(l===wd&&c===Cd)return jt;if(l===wd||l===Cd||l===cC||c===wd||c===Cd||c===cC)return bd;if(l===fC&&[fC,yd,dC,hC].indexOf(c)!==-1||(l===dC||l===yd)&&(c===yd||c===Ed)||(l===hC||l===Ed)&&c===Ed||c===gC||c===uC||c===LH||l===RH)return jt;if(l===gC&&c===pC){for(;s===uC;)s=t[--i];if(s===pC)return jt}if(l===vd&&c===vd){for(var u=0;s===vd;)u++,s=t[--i];if(u%2===0)return jt}return bd},GH=function(e){var t=DH(e),r=t.length,i=0,s=0,l=t.map(KH);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=jt;i<r&&(c=VH(t,l,++i))===jt;);if(c!==jt||i===r){var u=kH.apply(null,t.slice(s,i));return s=i,{value:u,done:!1}}return{done:!0,value:null}}}},zH=function(e){for(var t=GH(e),r=[],i;!(i=t.next()).done;)i.value&&r.push(i.value.slice());return r},PH=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),r.selectNode(i);var s=r.getBoundingClientRect(),l=Math.round(s.height);if(e.body.removeChild(i),l===t)return!0}}return!1},YH=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var i=t.firstChild,s=ao(i.data).map(function(f){return TA(f)}),l=0,c={},u=s.every(function(f,h){r.setStart(i,l),r.setEnd(i,l+f.length);var m=r.getBoundingClientRect();l+=f.length;var B=m.x>c.x||m.y>c.y;return c=m,h===0?!0:B});return e.body.removeChild(t),u},XH=function(){return typeof new Image().crossOrigin<"u"},qH=function(){return typeof new XMLHttpRequest().responseType=="string"},JH=function(e){var t=new Image,r=e.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},mC=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZH=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var s=new Image,l=t.toDataURL();s.src=l;var c=xd(r,r,0,0,s);return i.fillStyle="red",i.fillRect(0,0,r,r),BC(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var h=e.createElement("div");return h.style.backgroundImage="url("+l+")",h.style.height=r+"px",mC(f)?BC(xd(r,r,0,0,h)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),mC(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},xd=function(e,t,r,i,s){var l="http://www.w3.org/2000/svg",c=document.createElementNS(l,"svg"),u=document.createElementNS(l,"foreignObject");return c.setAttributeNS(null,"width",e.toString()),c.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(s),c},BC=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){return t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},et={get SUPPORT_RANGE_BOUNDS(){var e=PH(document);return Object.defineProperty(et,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=et.SUPPORT_RANGE_BOUNDS&&YH(document);return Object.defineProperty(et,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=JH(document);return Object.defineProperty(et,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZH(document):Promise.resolve(!1);return Object.defineProperty(et,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=XH();return Object.defineProperty(et,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=qH();return Object.defineProperty(et,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(et,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(et,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},_s=(function(){function e(t,r){this.text=t,this.bounds=r}return e})(),WH=function(e,t,r,i){var s=A3(t,r),l=[],c=0;return s.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if(et.SUPPORT_RANGE_BOUNDS){var f=wC(i,c,u.length).getClientRects();if(f.length>1){var h=Sd(u),m=0;h.forEach(function(C){l.push(new _s(C,Nn.fromDOMRectList(e,wC(i,m+c,C.length).getClientRects()))),m+=C.length})}else l.push(new _s(u,Nn.fromDOMRectList(e,f)))}else{var B=i.splitText(u.length);l.push(new _s(u,$H(e,i))),i=B}else et.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),l},$H=function(e,t){var r=t.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(i,t);var l=io(e,i);return i.firstChild&&s.replaceChild(i.firstChild,i),l}}return Nn.EMPTY},wC=function(e,t,r){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var s=i.createRange();return s.setStart(e,t),s.setEnd(e,t+r),s},Sd=function(e){if(et.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return zH(e)},e3=function(e,t){if(et.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(i){return i.segment})}return n3(e,t)},A3=function(e,t){return t.letterSpacing!==0?Sd(e):e3(e,t)},t3=[32,160,4961,65792,65793,4153,4241],n3=function(e,t){for(var r=TN(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),i=[],s,l=function(){if(s.value){var c=s.value.slice(),u=ao(c),f="";u.forEach(function(h){t3.indexOf(h)===-1?f+=TA(h):(f.length&&i.push(f),i.push(TA(h)),f="")}),f.length&&i.push(f)}};!(s=r.next()).done;)l();return i},r3=(function(){function e(t,r,i){this.text=i3(r.data,i.textTransform),this.textBounds=WH(t,this.text,i,r)}return e})(),i3=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(a3,s3);case 2:return e.toUpperCase();default:return e}},a3=/(^|\s|:|-|\(|\))([a-z])/g,s3=function(e,t,r){return e.length>0?t+r.toUpperCase():e},CC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.src=i.currentSrc||i.src,s.intrinsicWidth=i.naturalWidth,s.intrinsicHeight=i.naturalHeight,s.context.cache.addImage(s.src),s}return t})(Bn),yC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i,s.intrinsicWidth=i.width,s.intrinsicHeight=i.height,s}return t})(Bn),EC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=new XMLSerializer,c=io(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(i)),s.intrinsicWidth=i.width.baseVal.value,s.intrinsicHeight=i.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t})(Bn),vC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),Qd=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.start=i.start,s.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,s}return t})(Bn),l3=[{type:15,flags:0,unit:"px",number:3}],o3=[{type:16,flags:0,number:50}],c3=function(e){return e.width>e.height?new Nn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new Nn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},u3=function(e){var t=e.type===f3?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},Do="checkbox",ko="radio",f3="password",bC=707406591,Ud=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=u3(i),(s.type===Do||s.type===ko)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=c3(s.bounds)),s.type){case Do:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=l3;break;case ko:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=o3;break}return s}return t})(Bn),xC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=i.options[i.selectedIndex||0];return s.value=l&&l.text||"",s}return t})(Bn),SC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(Bn),QC=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;s.src=i.src,s.width=parseInt(i.width,10)||0,s.height=parseInt(i.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){s.tree=FC(r,i.contentWindow.document.documentElement);var l=i.contentWindow.document.documentElement?Ts(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):_n.TRANSPARENT,c=i.contentWindow.document.body?Ts(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):_n.TRANSPARENT;s.backgroundColor=dr(l)?dr(c)?s.styles.backgroundColor:c:l}}catch{}return s}return t})(Bn),d3=["OL","UL","MENU"],jo=function(e,t,r,i){for(var s=t.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,TC(s)&&s.data.trim().length>0)r.textNodes.push(new r3(e,s,r.styles));else if(Ri(s))if(OC(s)&&s.assignedNodes)s.assignedNodes().forEach(function(u){return jo(e,u,r,i)});else{var c=UC(e,s);c.styles.isVisible()&&(h3(s,c,i)?c.flags|=4:g3(c.styles)&&(c.flags|=2),d3.indexOf(s.tagName)!==-1&&(c.flags|=8),r.elements.push(c),s.shadowRoot?jo(e,s.shadowRoot,c,i):!Vo(s)&&!NC(s)&&!Go(s)&&jo(e,s,c,i))}},UC=function(e,t){return Nd(t)?new CC(e,t):IC(t)?new yC(e,t):NC(t)?new EC(e,t):p3(t)?new vC(e,t):m3(t)?new Qd(e,t):B3(t)?new Ud(e,t):Go(t)?new xC(e,t):Vo(t)?new SC(e,t):HC(t)?new QC(e,t):new Bn(e,t)},FC=function(e,t){var r=UC(e,t);return r.flags|=4,jo(e,t,r,r),r},h3=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Td(e)&&r.styles.isTransparent()},g3=function(e){return e.isPositioned()||e.isFloating()},TC=function(e){return e.nodeType===Node.TEXT_NODE},Ri=function(e){return e.nodeType===Node.ELEMENT_NODE},Fd=function(e){return Ri(e)&&typeof e.style<"u"&&!Ko(e)},Ko=function(e){return typeof e.className=="object"},p3=function(e){return e.tagName==="LI"},m3=function(e){return e.tagName==="OL"},B3=function(e){return e.tagName==="INPUT"},w3=function(e){return e.tagName==="HTML"},NC=function(e){return e.tagName==="svg"},Td=function(e){return e.tagName==="BODY"},IC=function(e){return e.tagName==="CANVAS"},_C=function(e){return e.tagName==="VIDEO"},Nd=function(e){return e.tagName==="IMG"},HC=function(e){return e.tagName==="IFRAME"},MC=function(e){return e.tagName==="STYLE"},C3=function(e){return e.tagName==="SCRIPT"},Vo=function(e){return e.tagName==="TEXTAREA"},Go=function(e){return e.tagName==="SELECT"},OC=function(e){return e.tagName==="SLOT"},RC=function(e){return e.tagName.indexOf("-")>0},y3=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(i){return r.counters[i].pop()})},e.prototype.parse=function(t){var r=this,i=t.counterIncrement,s=t.counterReset,l=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(l=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return l&&s.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},e})(),LC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},DC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},v3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Li=function(e,t,r,i,s,l){return e<t||e>r?Ms(e,s,l.length>0):i.integers.reduce(function(c,u,f){for(;e>=u;)e-=u,c+=i.values[f];return c},"")+l},kC=function(e,t,r,i){var s="";do r||e--,s=i(e)+s,e/=t;while(e*t>=t);return s},NA=function(e,t,r,i,s){var l=r-t+1;return(e<0?"-":"")+(kC(Math.abs(e),l,i,function(c){return TA(Math.floor(c%l)+t)})+s)},Wr=function(e,t,r){r===void 0&&(r=". ");var i=t.length;return kC(Math.abs(e),i,!1,function(s){return t[Math.floor(s%i)]})+r},Di=1,gr=2,pr=4,Hs=8,Hn=function(e,t,r,i,s,l){if(e<-9999||e>9999)return Ms(e,4,s.length>0);var c=Math.abs(e),u=s;if(c===0)return t[0]+u;for(var f=0;c>0&&f<=4;f++){var h=c%10;h===0&&KA(l,Di)&&u!==""?u=t[h]+u:h>1||h===1&&f===0||h===1&&f===1&&KA(l,gr)||h===1&&f===1&&KA(l,pr)&&e>100||h===1&&f>1&&KA(l,Hs)?u=t[h]+(f>0?r[f-1]:"")+u:h===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(e<0?i:"")+u},jC="十百千萬",KC="拾佰仟萬",VC="マイナス",Id="마이너스",Ms=function(e,t,r){var i=r?". ":"",s=r?"、":"",l=r?", ":"",c=r?" ":"";switch(t){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=NA(e,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return Wr(e,"〇一二三四五六七八九",s);case 6:return Li(e,1,3999,LC,3,i).toLowerCase();case 7:return Li(e,1,3999,LC,3,i);case 8:return NA(e,945,969,!1,i);case 9:return NA(e,97,122,!1,i);case 10:return NA(e,65,90,!1,i);case 11:return NA(e,1632,1641,!0,i);case 12:case 49:return Li(e,1,9999,DC,3,i);case 35:return Li(e,1,9999,DC,3,i).toLowerCase();case 13:return NA(e,2534,2543,!0,i);case 14:case 30:return NA(e,6112,6121,!0,i);case 15:return Wr(e,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return Wr(e,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return Hn(e,"零一二三四五六七八九",jC,"負",s,gr|pr|Hs);case 47:return Hn(e,"零壹貳參肆伍陸柒捌玖",KC,"負",s,Di|gr|pr|Hs);case 42:return Hn(e,"零一二三四五六七八九",jC,"负",s,gr|pr|Hs);case 41:return Hn(e,"零壹贰叁肆伍陆柒捌玖",KC,"负",s,Di|gr|pr|Hs);case 26:return Hn(e,"〇一二三四五六七八九","十百千万",VC,s,0);case 25:return Hn(e,"零壱弐参四伍六七八九","拾百千万",VC,s,Di|gr|pr);case 31:return Hn(e,"영일이삼사오육칠팔구","십백천만",Id,l,Di|gr|pr);case 33:return Hn(e,"零一二三四五六七八九","十百千萬",Id,l,0);case 32:return Hn(e,"零壹貳參四五六七八九","拾百千",Id,l,Di|gr|pr);case 18:return NA(e,2406,2415,!0,i);case 20:return Li(e,1,19999,v3,3,i);case 21:return NA(e,2790,2799,!0,i);case 22:return NA(e,2662,2671,!0,i);case 22:return Li(e,1,10999,E3,3,i);case 23:return Wr(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Wr(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return NA(e,3302,3311,!0,i);case 28:return Wr(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return Wr(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return NA(e,3792,3801,!0,i);case 37:return NA(e,6160,6169,!0,i);case 38:return NA(e,4160,4169,!0,i);case 39:return NA(e,2918,2927,!0,i);case 40:return NA(e,1776,1785,!0,i);case 43:return NA(e,3046,3055,!0,i);case 44:return NA(e,3174,3183,!0,i);case 45:return NA(e,3664,3673,!0,i);case 46:return NA(e,3872,3881,!0,i);case 3:default:return NA(e,48,57,!0,i)}},GC="data-html2canvas-ignore",zC=(function(){function e(t,r,i){if(this.context=t,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new y3,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var i=this,s=b3(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset,u=s.contentWindow,f=u.document,h=Q3(s).then(function(){return ft(i,void 0,void 0,function(){var m,B;return lt(this,function(C){switch(C.label){case 0:return this.scrolledElements.forEach(N3),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),m=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:C.sent(),C.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,S3(f)]:[3,4];case 3:C.sent(),C.label=4;case 4:return typeof m=="function"?[2,Promise.resolve().then(function(){return m(f,B)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(F3(document.doctype)+"<html></html>"),T3(this.referenceElement.ownerDocument,l,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),h},e.prototype.createElementClone=function(t){if(gd(t,2),IC(t))return this.createCanvasClone(t);if(_C(t))return this.createVideoClone(t);if(MC(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return Nd(r)&&(Nd(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),RC(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return _d(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(l,c){return c&&typeof c.cssText=="string"?l+c.cssText:l},""),s=t.cloneNode(!1);return s.textContent=i,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var i=t.ownerDocument.createElement("img");try{return i.src=t.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var l=t.getContext("2d"),c=s.getContext("2d");if(c)if(!this.options.allowTaint&&l)c.putImageData(l.getImageData(0,0,t.width,t.height),0,0);else{var u=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(u){var f=u.getContextAttributes();f?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}c.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},e.prototype.appendChildNode=function(t,r,i){(!Ri(r)||!C3(r)&&!r.hasAttribute(GC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Ri(r)||!MC(r))&&t.appendChild(this.cloneNode(r,i))},e.prototype.cloneChildNodes=function(t,r,i){for(var s=this,l=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;l;l=l.nextSibling)if(Ri(l)&&OC(l)&&typeof l.assignedNodes=="function"){var c=l.assignedNodes();c.length&&c.forEach(function(u){return s.appendChildNode(r,u,i)})}else this.appendChildNode(r,l,i)},e.prototype.cloneNode=function(t,r){if(TC(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var i=t.ownerDocument.defaultView;if(i&&Ri(t)&&(Fd(t)||Ko(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var l=i.getComputedStyle(t),c=i.getComputedStyle(t,":before"),u=i.getComputedStyle(t,":after");this.referenceElement===t&&Fd(s)&&(this.clonedReferenceElement=s),Td(s)&&H3(s);var f=this.counters.parse(new iC(this.context,l)),h=this.resolvePseudoContent(t,s,c,Os.BEFORE);RC(t)&&(r=!0),_C(t)||this.cloneChildNodes(t,s,r),h&&s.insertBefore(h,s.firstChild);var m=this.resolvePseudoContent(t,s,u,Os.AFTER);return m&&s.appendChild(m),this.counters.pop(f),(l&&(this.options.copyStyles||Ko(t))&&!HC(t)||r)&&_d(l,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(Vo(t)||Go(t))&&(Vo(s)||Go(s))&&(s.value=t.value),s}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,i,s){var l=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new iC(this.context,i));var f=new pH(this.context,i),h=u.createElement("html2canvaspseudoelement");_d(i,h),f.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var C=u.createElement("img");C.src=B.value,C.style.opacity="1",h.appendChild(C)}else if(B.type===18){if(B.name==="attr"){var w=B.values.filter(sA);w.length&&h.appendChild(u.createTextNode(t.getAttribute(w[0].value)||""))}else if(B.name==="counter"){var v=B.values.filter(Mi),b=v[0],U=v[1];if(b&&sA(b)){var Q=l.counters.getCounterValue(b.value),I=U&&sA(U)?hd.parse(l.context,U.value):3;h.appendChild(u.createTextNode(Ms(Q,I,!1)))}}else if(B.name==="counters"){var M=B.values.filter(Mi),b=M[0],z=M[1],U=M[2];if(b&&sA(b)){var j=l.counters.getCounterValues(b.value),F=U&&sA(U)?hd.parse(l.context,U.value):3,H=z&&z.type===0?z.value:"",k=j.map(function(ee){return Ms(ee,F,!1)}).join(H);h.appendChild(u.createTextNode(k))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(rC(f.quotes,l.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(rC(f.quotes,--l.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Hd+" "+Md;var m=s===Os.BEFORE?" "+Hd:" "+Md;return Ko(r)?r.className.baseValue+=m:r.className+=m,h}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),Os;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Os||(Os={}));var b3=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(GC,"true"),e.body.appendChild(r),r},x3=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},S3=function(e){return Promise.all([].slice.call(e.images,0).map(x3))},Q3=function(e){return new Promise(function(t,r){var i=e.contentWindow;if(!i)return r("No window assigned for iframe");var s=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),t(e))},50)}})},U3=["all","d","content"],_d=function(e,t){for(var r=e.length-1;r>=0;r--){var i=e.item(r);U3.indexOf(i)===-1&&t.style.setProperty(i,e.getPropertyValue(i))}return t},F3=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},T3=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},N3=function(e){var t=e[0],r=e[1],i=e[2];t.scrollLeft=r,t.scrollTop=i},I3=":before",_3=":after",Hd="___html2canvas___pseudoelement_before",Md="___html2canvas___pseudoelement_after",PC=`{
|
|
102
|
+
`:"";return ze[ze.length-1]={...We,content:We.content+dA+ce},ze}else return[...Ne,{id:pe,content:ce,role:jt.ASSISTANT,timestamp:xi(Date.now()),isStored:!1}]})}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.END_OF_STREAM,()=>{G.current=!1,me(!1),I(null),N(!1)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.CONNECTED,()=>{bA(),R(PA.CONNECTED)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_CALL,K=>{G.current=!0;const J=K;if(!J?.messageId||!J?.data||!J?.data?.details?.component||!J?.data?.tool_id)return;M&&N(!1);const{messageId:ce,data:pe}=J,Ue=pe.tool_id,Ne=`${ce}::${Ue}`,ze=Je.getState().elicitationState[Ne],dA=pe.details?.component,De=J?.data?.details?._meta?.tool_result,Bt=pe.details?.input,be=kT(ze?.ui_input,Bt,dA);let tA=J.data.details?._meta?.disp_toast_msg;const TA=pe?.details?._meta?.schema?.required||[];switch(pe?.details?.status){case de.SYNAPSE_EICITATION_STATUS.PROGRESS:{const MA=J?.data?.details?.input||{},VA=TA.reduce((Nt,Ai)=>(MA[Ai]!==void 0&&(Nt[Ai]=MA[Ai]),Nt),{}),je={...ze?.server_input||{},...VA},Tt=TA.filter(Nt=>!je[Nt]),Hn=J.data.details?._meta?.mcp_meta_fields||[];Ze(Ne,{tool_id:Ue,active:!0,disabled:!1,ui_input:be,server_input:je,messageId:ce,required:TA,component:dA,pattern:J.data.details?._meta?.schema?.properties?.[J.data.details?.component]?.pattern,minLength:J.data.details?._meta?.schema?.properties?.[J.data.details?.component]?.minLength,maxLength:J.data.details?._meta?.schema?.properties?.[J.data.details?.component]?.maxLength,type:J.data.details?._meta?.schema?.properties?.[J.data.details?.component]?.type,disp_toast_msg:J.data.details?._meta?.disp_toast_msg,description:J.data.details?._meta?.schema?.properties?.[J.data.details?.component]?.description,tool_result:De,orientation:J.data.details?._meta?.orientation,...Hn.length&&{mcp_meta_fields:Hn},...Tt?{toolSelectionNames:Tt}:{}});break}case de.SYNAPSE_EICITATION_STATUS.SUCCESS:{Ze(Ne,{...ze||{},tool_id:Ue,disabled:!0,active:Rx(dA),messageId:ce,component:dA,ui_input:be,tool_result:De,send_to_llm:!0});break}case de.SYNAPSE_EICITATION_STATUS.FAILURE:{Ze(Ne,{...ze||{},tool_id:Ue,active:!1,messageId:ce,response_value:{label:pe?.details?._meta?.disp_message||"Tool call failed"},tool_result:De,disabled:!0});break}default:Ze(Ne,{tool_id:Ue,disabled:!1,active:!1,messageId:ce,tool_result:De,ui_input:be,component:dA})}tA&&Fe(tA);const lt=J?.data?.meta?.post_text;u(MA=>{let je=MA[MA.length-1]?.id===ce?MA.length-1:MA.findIndex?.(Tt=>Tt.id===ce);if(je==-1){const Tt={id:ce,content:J.data?.details?.input?.text||"",role:jt.ASSISTANT,tool_keys:[Ne],isResponseFromTool:!0,isStored:!1,...lt?{postText:lt}:{}};return[...MA,Tt]}else{const Tt={...MA[je],isResponseFromTool:!0,tool_keys:[...new Set([...MA[je].tool_keys||[],Ne])],...lt?{postText:lt}:{}};MA[je]=Tt,fe(F,ce,Tt)}return[...MA]});const on=J?.data?.details?._meta?.disp_message,cn=Je.getState().elicitationState;if((!cn[Ne]?.active||cn[Ne]?.send_to_llm)&&(on||Object.keys(De||{}).length))try{mt({message:on||"",tool_result:De,toolCalled:!0,tool_key:Ne})}catch{}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.DISCONNECTED,K=>{K?.reason!==de.DisconnectionReason.CLIENT_CLOSED&&(B.current<2?(R(PA.NOT_CONNECTED),B.current=B.current+1,q(!0),z({title:"Something went wrong!",description:"Please try again."})):(R(PA.NOT_CONNECTED),z({title:"Something went wrong!",description:"Please start a new Chat."}),Ae(!0)))}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.ERROR,K=>{switch(K?.data?.code){case de.SYNAPSE_REALTIME_ERROR_CODES.SESSION_INACTIVE:z({title:"Session not found",description:"Please start a new session"}),Ae(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.SESSION_TOKEN_MISMATCH:z({title:"Session not found",description:"Please start a new chat from onError callback"}),Ae(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_EVENT:return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_CONTENT_TYPE:return;case de.SYNAPSE_REALTIME_ERROR_CODES.PARSING_ERROR:if(B.current<1){B.current++,Br();return}z({title:"Error parsing request",description:"please try again"}),q(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.TIMEOUT:z({title:"Request timed out",description:"please try again"}),q(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.PROMPT_FETCH_ERROR:z({title:"Something went wrong",description:"please try again"}),q(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.INVALID_FILE_REQUEST:z({title:"Something went wrong",description:"please try again"}),q(!0),P(BA.IDLE);return;case de.SYNAPSE_REALTIME_ERROR_CODES.SERVER_ERROR:z({title:"Something went wrong",description:"please try again"}),q(!0),P(BA.IDLE);return;default:z({title:"Something went wrong",description:"please try again"}),q(!0),P(BA.IDLE);return}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.AUDIO_TRANSCRIPT,async K=>{const J=K;J?.data?.text&&(u(ce=>[...ce,{id:Date.now().toString(),content:J.data.text||"",role:jt.USER,timestamp:xi(Date.now()),isStored:!0}]),P(BA.IDLE)),me(!1),N(!1),I(null)}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.PROGRESS_MESSAGE,K=>{G.current=!0;const J=K;J.data?.text&&(N(!1),I(J.data.text))}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_START,K=>{G.current=!0;const J=K;if(J.data?.name&&J.messageId){const ce=J.messageId;u(pe=>{const Ue=pe[pe.length-1];if(Ue&&Ue.id===ce&&Ue.role===jt.ASSISTANT){const Ne=[...pe];return Ne[Ne.length-1]={...Ue,toolCallStatus:`Calling tool: ${J.data.name}...`},F&&fe(F,ce,{toolCallStatus:`Calling tool: ${J.data.name}...`}),Ne}return pe})}}),U.current?.on(de.SYNAPSE_REALTIME_EVENTS.TOOL_END,K=>{G.current=!0;const J=K;if(J.data?.name&&J.messageId){const ce=J.messageId;u(pe=>{const Ue=pe[pe.length-1];if(Ue&&Ue.id===ce&&Ue.role===jt.ASSISTANT){const Ne=[...pe];return Ne[Ne.length-1]={...Ue,toolCallStatus:"Tool call completed."},F&&fe(F,ce,{toolCallStatus:"Tool call completed."}),Ne}return pe})}})},mt=async({message:K,files:J,audio:ce,toolCalled:pe,selectedComponent:Ue,resend:Ne,tool_declined:We,tool_result:ze,tool_key:dA})=>{if(!aA()){q(!0),z({title:"Please try again."});return}const De=Je.getState().elicitationState,Bt=Object.values(De).some(be=>be.active);if(!(!pe&&J&&J.length===0&&K?.trim()===""&&!ce?.audio&&!Ue&&!Bt&&!ze&&!Object.keys(ze||{}).length)){if(J&&J.length>3){z({title:"Maximum 3 files are allowed to be sent at a time",description:"Please try again"});return}if(J&&J.length>0&&J.reduce((be,tA)=>be+tA.size,0)>10*1024*1024){z({title:"Total file size limit of 10MB exceeded",description:"Please reduce the size of the files or try again with less files"});return}if(J&&J.length>0&&J.length+j>qu){const be=qu-j;z({title:`You can only upload up to ${qu} files per session`,description:`${be<=0?"Maximum file upload limit reached":`You have ${be} file${be===1?"":"s"} upload${be===1?"":"s"} left`}`});return}else J&&J.length&&Re(j+J.length);z(null),q(!1),aA()&&R(PA.CONNECTED);try{const be=c.length==2&&v.length==2?v:null;let tA=null;const TA=c.length-1,lt=TA>=0?c[TA]:null,on=lt?lt?.isResponseFromTool:null,MA=Je.getState().elicitationState,VA=dA||null,je=VA?MA[VA]:void 0,Hn=je?.component===de.SYNAPSE_COMPONENTS.DOCTOR_CARD||je?.component===de.SYNAPSE_COMPONENTS.CARD?!!je&&!ze&&!!je.active:!!je?.active,Nt=!!(J||[]).length||!!ce?.audio||!!We||!Hn||!pe;if(!Nt&&Hn&&VA&&je?.messageId){const GA=je.toolSelectionNames?.length?je.toolSelectionNames:je.required?.filter(nA=>!je.server_input?.[nA])??[],ut=GA.reduce((nA,Ie)=>{if(Ue){const OA=Ue[Ie];OA!==void 0&&(nA[Ie]=OA)}else GA.length===1&&(nA[Ie]=K);return nA},{}),wr=je.mcp_meta_fields?.reduce((nA,Ie)=>(GA.includes(Ie)?nA[Ie]=ut[Ie]:je.server_input?.[Ie]&&(nA[Ie]=je.server_input[Ie]),Ne&&!nA.is_resend&&(nA.is_resend=Ne),nA),{}),Rs=Object.keys(je.server_input||{})?.reduce((nA,Ie)=>{const OA=!Object.keys(wr||{})?.includes(Ie),Mn=!!je.server_input?.[Ie];return(Ne?OA&&Mn:OA&&je.required?.includes(Ie)&&Mn)&&(nA[Ie]=je.server_input?.[Ie]),nA},{}),Zo=Ne?{}:(je.required||GA).reduce((nA,Ie)=>(Object.keys(wr||{}).includes(Ie)||(ut[Ie]!==void 0?nA[Ie]=ut[Ie]:Ue&&Ue[Ie]!==void 0&&(nA[Ie]=Ue[Ie])),nA),{}),Pi={...Rs||{},...Zo,...Object.keys(wr||{}).length&&{mcp_meta_fields:wr}};if(!Object.keys(Pi).length)return;await Ze(VA,{...je,server_input:{...je.server_input||{},...Pi}});try{await ln(je.tool_id,je.messageId,Pi),tA=!0}catch(nA){await U.current?.sendMessage({tool_result:{...je.tool_result,error:`Tool call failed: ${sr(nA)}`}}),Ze(VA,{...je,active:!1,disabled:!0,response_value:{label:`Tool call failed: ${sr(nA)}`}})}}else{const GA=je?.active,ut=ze??je?.tool_result;await U.current?.sendMessage({message:K,files:J,audio:ce,...be&&{initial_prompts:be},...We||on&&!pe||GA?{tool_id:je?.tool_id||""}:{},...ut&&{tool_result:ut}})}(K||J&&J.length>0||ce?.audio)&&(u(GA=>{if(tA)return GA;const ut=GA.length===0&&W?.text?[{id:"initial-bot-message",content:W.text,role:jt.ASSISTANT,timestamp:xi(Date.now()),isStored:!1}]:[];return[...GA,...ut,{id:Date.now().toString(),content:K||"",files:J||[],audio:ce,role:jt.USER,timestamp:xi(Date.now()),isStored:!1}]}),tA||N(!0),tA=null);const Ai=Je.getState().elicitationState,ti=new Set;VA&&ti.add(VA),VA&&ti.add(VA),lt?.tool_keys?.forEach(GA=>ti.add(GA)),ti.forEach(GA=>{const ut=Ai[GA];ut&&Ze(GA,{...ut,...Nt&&{active:!1,disabled:!0},...GA===VA?{response_value:{...ut?.response_value||{},label:K||""}}:{}})})}catch{}}},yn=K=>K.type.toLowerCase()&&!["application/pdf","image/jpeg","image/jpg","image/png"].includes(K.type)?(z({title:`File type not supported: ${K.name}`,description:"Only PDF, images (JPG, JPEG, PNG) are allowed."}),!1):K.size>3*1024*1024?(z({title:"File size limit of 3MB exceeded",description:"Please reduce the size of the file or try again with a smaller file"}),!1):!0,Ft=async()=>{if(!aA())throw new Error("Not connected to the server");try{await U.current?.startRecording({onChunks:async K=>{P(BA.PROCESSING),await mt({audio:K}),P(BA.TRANSCRIBING)},onError(K){P(BA.IDLE)}}),P(BA.LISTENING)}catch(K){throw P(BA.IDLE),K}},ct=()=>{aA()&&U.current?.endRecording()},ln=async(K,J,ce)=>{try{if(!aA())throw new Error("Not connected to the server");await U.current?.callTool(K,J,ce)}catch(pe){throw pe}},ei=async()=>{bA(),await E(),await FA(!0)},Br=async()=>{if(aA()){R(PA.CONNECTED);const K=f.current[f.current.length-1];if(K&&K.role===jt.USER)try{U.current?.sendMessage({message:K.content,files:K.files||[],messageId:K.id,audio:K.audio})}catch{}}else if(R(PA.NOT_CONNECTED),B.current<2){B.current++;const{sessionId:K,sessionToken:J}=Je.getState();await ke(K,J)}else B.current===2?(B.current++,q(!0),z({title:"Trying to connect..."})):(z({title:"Something went wrong!",description:"Please start a new chat."}),Ae(!0))};return{sendMessage:mt,startSession:FA,incomingMessages:c,loading:h,endSession:EA,isReady:C,startRecording:Ft,stopRecording:ct,handleRetry:Br,isValidFile:yn,handleStartNewConnection:ei,callTool:ln,handleInitialTaskClick:async K=>{if(!W?.suggestions?.length||!K)return;const J=W.suggestions.find(ce=>ce.value===K);if(!J||!J.response){await mt({message:K});return}u(ce=>[...ce,{id:Date.now().toString(),content:K,role:jt.USER,timestamp:xi(Date.now()),isStored:!1}]),N(!0),await Lx(1e3),N(!1),u(ce=>[...ce,{id:Date.now().toString(),content:J.response||"Please try again",role:jt.ASSISTANT,timestamp:xi(Date.now()),isStored:!1}]),b([{role:"user",text:K},{role:"assistant",text:J.response}])},handleToggleFeedback:async(K,J,ce)=>{if(aA())try{await U.current?.sendFeedback(J,K,ce)}catch{}},clearElicitationState:async(K,J)=>{const ce=Je.getState().elicitationState,pe=K?ce[K]:void 0;try{await mt({message:J||"User aborted elicitation",tool_declined:!0,tool_result:pe?.tool_result,tool_key:K})}catch{}finally{K&&pe&&Ze(K,{...pe,active:!1,disabled:!0})}}}},KT=32,VT=100,GT=320;function zT(){return typeof window>"u"||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function PT({messageCount:e,isStreaming:t,isFirstMessage:r,resolvedMode:i}){const s=x.useRef(null),l=x.useRef(null),[c,u]=x.useState(!1),f=x.useRef(null),h=x.useRef(!1),m=x.useRef("auto"),B=x.useRef(!0),C=x.useCallback(()=>s.current?.querySelector("[data-radix-scroll-area-viewport]")||null,[]),w=x.useCallback(U=>zT()?"auto":U,[]),v=x.useCallback(U=>{const Q=C();Q&&(Q.scrollTo({top:Q.scrollHeight,behavior:w(U)}),u(!1))},[C,w]),b=x.useCallback(U=>{h.current=!0,m.current=U,f.current===null&&(f.current=requestAnimationFrame(()=>{f.current=null,h.current&&(h.current=!1,v(m.current))}))},[v]);return x.useEffect(()=>()=>{f.current!==null&&(cancelAnimationFrame(f.current),f.current=null),h.current=!1},[]),x.useEffect(()=>{if(!e)return;b(t||r?"auto":"smooth")},[e,t,r,b]),x.useEffect(()=>{if(!e||!B.current)return;const U=setTimeout(()=>b("auto"),GT);return()=>clearTimeout(U)},[i,e,b]),x.useEffect(()=>{let U=!1,Q=null,T=null,O=0;const G=()=>{if(U)return;const k=C(),H=l.current?.parentElement;if(!k||!H){requestAnimationFrame(G);return}const L=()=>{const{scrollTop:ee,scrollHeight:j,clientHeight:se}=k;return j-ee-se<=KT};B.current=!0;let M=0;const W=()=>{if(M>0){M--;return}B.current=L()};k.addEventListener("scroll",W,{passive:!0}),T=()=>k.removeEventListener("scroll",W),Q=new ResizeObserver(()=>{if(!B.current)return;const ee=Date.now();ee-O<VT||(O=ee,M++,b("auto"))}),Q.observe(H)};return G(),()=>{U=!0,Q?.disconnect(),T?.()}},[C,b]),{scrollAreaRef:s,messagesEndRef:l,showScrollButton:c,scrollToBottom:v,scheduleScrollToBottom:b}}function YT({isOpen:e,agentId:t,config:r}){const{state:i,isMuted:s,connect:l,disconnect:c,reset:u,toggleMute:f}=NS(),h=()=>{i===de.VOICE_AGENT_STATE.IDLE&&l()},m=i!==de.VOICE_AGENT_STATE.IDLE,[B,C]=x.useState(""),[w,v]=x.useState(!1),b=Je(be=>be.setDisplayMode),[U,Q]=x.useState(r.displayMode==="full"?"full":"widget"),T=()=>Q(be=>be==="full"?"widget":"full"),G=d0()?"mobile":U,[k,F]=x.useState([]),H=x.useRef(!1),[L,M]=x.useState(!1),W=x.useRef(null),{setAgentId:ee,startNewConnection:j,showRetryButton:se,clearError:le,error:z,connectionStatus:R,recordingStatus:q,isWaitingForResponse:Ae,isStreaming:me,setError:N,sessionId:I,setContext:P,initialMessage:E,setInitialMessage:te,setInitialDisplayMode:oe}=Je(),fe=Je(be=>be.elicitationState),{incomingMessages:ge,loading:Re,sendMessage:Fe,startSession:Ze,isReady:ke,startRecording:FA,stopRecording:aA,handleRetry:EA,isValidFile:bA,handleToggleFeedback:Ut,clearElicitationState:mt}=jT({environment:r.environment,connectionType:r.connectionType,baseUrl:r.environment==="development"&&r.baseUrl?r.baseUrl:void 0,context:r?.context,...r?.auth&&{auth:r.auth},...r?.authToken&&{authToken:r.authToken}});x.useEffect(()=>{t&&(W.current!==t&&(SS(t),QS(t),ee(t),(r.displayMode==="full"||r.displayMode==="widget")&&(b(r.displayMode),oe(r.displayMode)),r?.context&&Object.keys(r?.context||{}).length&&P(r.context),(r?.initialMessage?.text||r?.initialMessage?.suggestions?.length)&&te(r.initialMessage),W.current=t),e&&ke&&!H.current&&(H.current=!0,Ze(!1)))},[e,ke,t]),x.useEffect(()=>()=>{c()},[]);const yn=ge.length>0,Ft=ge.length===1,ct=x.useMemo(()=>{const be=ge[ge.length-1],tA=be?.tool_keys?.[be.tool_keys.length-1];if(!tA)return null;const TA=fe[tA];return TA?.active?{...TA,tool_key:tA}:null},[ge,fe]),ln=x.useMemo(()=>{const be=r?.initialMessage;return!!be?.text||!!be?.suggestions?.length},[r?.initialMessage]),ei=x.useMemo(()=>ln&&ge?.length===0,[ge,ln]),Br=x.useMemo(()=>ct?ct.component===de.SYNAPSE_COMPONENTS.MOBILE||ct.component===de.SYNAPSE_COMPONENTS.OTP||ct.component===de.SYNAPSE_COMPONENTS.EMAIL:!1,[ct]),{scrollAreaRef:XA,messagesEndRef:zi,showScrollButton:re,scrollToBottom:K}=PT({messageCount:ge.length,isStreaming:me,isFirstMessage:Ft,resolvedMode:G}),J=R===de.ConnectionStatus.CONNECTED,ce=Re||!J||Ae||me,pe=Re||!J,Ue=x.useMemo(()=>q===BA.IDLE?null:q===BA.LISTENING?"Listening...":q===BA.PROCESSING?"Processing...":q===BA.TRANSCRIBING?"Transcribing...":null,[q]),Ne=pe?"Connecting...":Ue&&q!==BA.IDLE?Ue:Ae||me?"Please wait for the response...":"Type a reply…",We=async be=>{if(ce)return;const tA=be?.message??B;(tA.trim()||w||L||be?.resend)&&(k.length>0?(await Fe({files:k,message:tA.trim()}),F([]),M(!1)):tA.trim()?await Fe({...be,message:tA.trim()}):be?.resend&&await Fe(be),C(""),v(!1),M(!1))},ze=be=>{if(be&&be.length>0){const tA=be.filter(TA=>!!bA(TA));if(tA?.length+k.length>3){N({title:"You can only upload up to 3 files at a time",description:"Please remove some files and try again."});return}if(tA?.length>0&&tA.reduce((TA,lt)=>TA+lt.size,0)>10*1024*1024){N({title:`Total file size limit of ${XS} MB exceeded`,description:"Please reduce the size of the files or try again with less files"});return}if(tA?.length>0)be=tA;else return}F(tA=>(M((tA?.length??0)+(be?.length??0)>0),[...tA,...be]))},dA=be=>{F(tA=>{const TA=tA.filter((lt,on)=>on!==be);return M(TA.length>0),TA})},De=async()=>{if(w)await aA(),v(!1);else{if(ce)return;try{await FA(),v(!0)}catch{}}},Bt={value:B,onChange:C,onSend:We,onFileChange:ze,onRemoveFile:dA,onRecording:De,isRecording:w,hasAttachment:L,attachmentFiles:k,isDisabled:ce,placeholder:Ne,recordingStatus:q,allowed:r.allowed,isVoiceAgentActive:m,handleVoiceMode:h};return{inputValue:B,setInputValue:C,isRecording:w,hasAttachment:L,attachmentFiles:k,showScrollButton:re,displayMode:U,setDisplayMode:Q,toggleDisplayMode:T,resolvedMode:G,currentDisplayMode:U,setCurrentDisplayMode:Q,scrollAreaRef:XA,messagesEndRef:zi,startNewConnection:j,showRetryButton:se,clearError:le,error:z,connectionStatus:R,isStreaming:me,sessionId:I,activeElicitation:ct,inConversation:yn,isFirstMessage:Ft,isEmptyChat:ei,isAuthComponent:Br,isConnected:J,isComposerDisabled:ce,loading:Re,initialMessage:E,incomingMessages:ge,sendMessage:Fe,startSession:Ze,handleToggleFeedback:Ut,clearElicitationState:mt,handleRetry:EA,handleSendMessage:We,handleFileChange:ze,handleRemoveFile:dA,handleRecording:De,scrollToBottom:K,chatComposerProps:Bt,voiceAgentState:i,isMuted:s,isVoiceAgentActive:m,connectVoiceAgent:l,disconnectVoiceAgent:c,resetVoiceAgent:u,toggleMute:f,handleVoiceAgentClick:h}}const XT=x.lazy(()=>Promise.resolve().then(()=>P4)),kB=x.lazy(()=>Promise.resolve().then(()=>X4).then(e=>({default:e.ConnectionStatus})));function qT({isOpen:e,agentId:t,config:r}){const{toggleDisplayMode:i,resolvedMode:s,scrollAreaRef:l,messagesEndRef:c,showScrollButton:u,startNewConnection:f,showRetryButton:h,clearError:m,error:B,sessionId:C,activeElicitation:w,isAuthComponent:v,isConnected:b,loading:U,inConversation:Q,isFirstMessage:T,isEmptyChat:O,incomingMessages:G,sendMessage:k,startSession:F,handleToggleFeedback:H,clearElicitationState:L,handleRetry:M,scrollToBottom:W,chatComposerProps:ee,isComposerDisabled:j,voiceAgentState:se,isMuted:le,isVoiceAgentActive:z,disconnectVoiceAgent:R,resetVoiceAgent:q,toggleMute:Ae}=YT({isOpen:e,agentId:t,config:r});return x.useEffect(()=>{G.length||W("auto")},[G.length,W]),g.jsx(GS,{enabled:!!r.resize,children:g.jsx(p0,{isOpen:e,onClose:r.onClose,showCloseButton:r.showCloseButton,title:r.title,showStartNewChatButton:f,titleImg:r.theme?.titleImg,tagline:r.theme?.tagline,iconUrl:r.iconUrl,onStartNewSession:()=>F(!0),sessionId:C,environment:r.environment,mode:s,onToggleDisplayMode:r.resize?i:void 0,theme:r.theme,hideWatermark:r.hideWatermark,isAuthComponent:v,activeElicitation:w,voiceAgentState:se,chatComposer:ee,fullScreenEmptyState:O?me=>g.jsx(hQ,{title:r.title,description:r?.initialMessage?.text,suggestions:r?.initialMessage?.suggestions,onSendMessage:k,disabled:j,composer:me.composer,composerFooter:me.composerFooter,connectionBanner:g.jsx(kB,{onRetry:M,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})}):void 0,children:z?g.jsx(fQ,{state:se,isMuted:le,onEndCall:R,onClose:q,onToggleMute:Ae,agentName:r.title,iconUrl:r.iconUrl,textColor:r.theme?.textColor}):g.jsx(x.Suspense,{fallback:g.jsx(JT,{}),children:g.jsxs("div",{className:he("flex-1 flex flex-col min-h-0 overflow-hidden relative synapse-chat-window"),children:[g.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden",children:[g.jsxs(Nm,{ref:l,className:"flex-1 min-h-0 [&>[data-radix-scroll-area-viewport]>div]:!flex [&>[data-radix-scroll-area-viewport]>div]:flex-col [&>[data-radix-scroll-area-viewport]>div]:min-h-full",children:[g.jsx("div",{className:"flex-1"}),g.jsxs("div",{className:he("transition-all duration-300 min-w-0 overflow-x-hidden",Q?"pt-4 px-4 space-y-3":"pt-4 px-4 space-y-4",s==="full"&&"max-w-2xl mx-auto w-full"),children:[T&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center mb-2",children:"Just now"}),!T&&g.jsx("div",{className:"text-xs text-[var(--color-muted-foreground)] text-center",children:new Date().toLocaleString("en-US",{weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!0})}),g.jsx(HT,{messages:G,onSendMessage:k,iconUrl:r.iconUrl,onToggleFeedback:H,onClearElicitationState:L,isAuthComponent:v,isFullScreen:s==="full",initialMessage:r.initialMessage,disabled:!b||U}),g.jsx("div",{ref:c})]})]}),g.jsx(x.Suspense,{fallback:null,children:g.jsx(XT,{})})]}),u&&g.jsx("div",{className:"absolute bottom-[10px] left-1/2 transform -translate-x-1/2 z-10",children:g.jsx(He,{onClick:()=>W("smooth"),size:"icon",className:"h-10 w-10 rounded-full bg-surface/90 backdrop-blur-sm shadow-lg border border-border-subtle hover:bg-surface hover:shadow-xl transition-all duration-200",children:g.jsx(ts,{className:"w-5 h-5 text-text-primary"})})}),g.jsx(kB,{className:"mt-2",onRetry:M,showRetryButton:h,startNewConnection:f,clearError:m,error:B,isConnected:b})]})})})})}function JT(){return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden bg-surface backdrop-blur-2xl animate-pulse",children:[g.jsxs("div",{className:"flex-1 p-6 space-y-4",children:[g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"}),g.jsx("div",{className:"h-16 bg-surface/80 rounded-2xl border border-border-subtle/50"})]}),g.jsx("div",{className:"h-24 border-t border-border-subtle bg-surface/80"})]})}function Lf(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);try{return new Error(JSON.stringify(e))}catch{return new Error("Unknown error")}}class ZT extends x.Component{state={error:null};static getDerivedStateFromError(t){return{error:Lf(t)}}componentDidCatch(t,r){this.setState({componentStack:r?.componentStack})}render(){return this.state.error?g.jsx(e4,{error:this.state.error,componentStack:this.state.componentStack,title:this.props.title,titleImg:this.props.titleImg,iconUrl:this.props.iconUrl,onClose:this.props.onClose,showCloseButton:this.props.showCloseButton,environment:this.props.environment,displayMode:this.props.displayMode,theme:this.props.theme}):this.props.children}}function WT({error:e}){throw e}function $T(e){const[t,r]=x.useState(null);return x.useEffect(()=>{if(typeof window>"u")return;const i=l=>{!l?.error&&!l?.filename&&l?.message==="Script error."||(l?.error?r(Lf(l.error)):l?.message&&r(new Error(l.message)))},s=l=>{r(Lf(l.reason))};return window.addEventListener("error",i),window.addEventListener("unhandledrejection",s),()=>{window.removeEventListener("error",i),window.removeEventListener("unhandledrejection",s)}},[]),g.jsx(ZT,{...e,children:t?g.jsx(WT,{error:t}):e.children})}function e4({error:e,title:t,titleImg:r,iconUrl:i,onClose:s,showCloseButton:l,environment:c,displayMode:u,theme:f}){const h=()=>{typeof window<"u"&&window.location.reload()},m=t??"Medi Clinic",B=c??"production",C=x.useMemo(()=>f?.textColor==="white"?"text-white/60":"text-[var(--color-muted-foreground)]",[f?.textColor]);return g.jsx(p0,{isOpen:!0,onClose:s??(()=>{}),showCloseButton:l??!1,onStartNewSession:h,title:m,titleImg:r,iconUrl:i,environment:B,mode:u??"widget",theme:f,children:g.jsx("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:g.jsx("div",{className:"flex-1 min-h-0 flex items-center justify-center p-6",children:g.jsxs("div",{className:"w-full max-w-[320px] text-center",children:[g.jsx("div",{className:"mx-auto mb-4 grid place-items-center",children:g.jsx("div",{className:"h-16 w-16 rounded-3xl bg-surface backdrop-blur border border-border-subtle grid place-items-center",children:g.jsx(wS,{className:"h-8 w-8",style:{color:f?.primary??"hsl(var(--primary))"}})})}),g.jsx("div",{className:"text-2xl font-semibold text-text-primary",children:"Uh-oh!"}),g.jsx("div",{className:["mt-2 text-sm",C].join(" "),children:"Something went wrong. Please try again."}),g.jsx("div",{className:["mt-4 rounded-2xl border border-border-subtle/60 bg-surface/60 backdrop-blur px-4 py-3","text-left text-[11px] leading-relaxed font-mono whitespace-pre-wrap break-words",C].join(" "),children:e?.message||String(e)}),g.jsx("div",{className:"mt-5 flex items-center justify-center gap-3",children:g.jsxs(He,{type:"button",onClick:h,className:"rounded-2xl",style:{backgroundColor:f?.primary??void 0},children:[g.jsx(mS,{className:"h-4 w-4 mr-2"}),"Retry"]})})]})})})})}function A4({agentId:e,config:t}){const[r,i]=x.useState(!1);x.useEffect(()=>{i(!0)},[]);const s=()=>{i(!1),t?.onClose?.()};return g.jsx($T,{title:t.title??"Medi Clinic",titleImg:t.theme?.titleImg,iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",onClose:s,showCloseButton:t.showCloseButton,environment:t.environment??"production",displayMode:t.displayMode,theme:t.theme,children:g.jsx(US,{children:g.jsx(qT,{isOpen:r,agentId:e,config:{...t,environment:t.environment??"production",onClose:s,title:t.title??"Medi Clinic",iconUrl:t.iconUrl??"https://cdn.eka.care/bot-icon.svg",theme:t.theme}})})})}const jB=(e,t,r)=>{const i=r||{},s=r1.createRoot(e);return s.render(g.jsx(x.StrictMode,{children:g.jsx(A4,{agentId:t,config:i})})),s};typeof window<"u"&&(window.renderMedAssist=jB);const Df=x.forwardRef(({className:e,...t},r)=>g.jsx("textarea",{className:he("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...t}));Df.displayName="Textarea";const gs=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M1.46875 0.09375L16.3125 6.9375C16.75 7.125 17 7.53125 17 8C17 8.46875 16.75 8.875 16.3125 9.0625L1.46875 15.9062C1.3125 15.9688 1.1875 16 1.03125 16C0.46875 16 0 15.5312 0 14.9688C0 14.8125 0.03125 14.6875 0.09375 14.5625L2.34375 9.5C2.5 9.15625 2.8125 8.9375 3.15625 8.90625L8.0625 8.46875C8.3125 8.46875 8.5 8.25 8.5 8C8.5 7.75 8.3125 7.5625 8.0625 7.53125L3.15625 7.09375C2.8125 7.0625 2.5 6.84375 2.34375 6.5L0.09375 1.4375C0.03125 1.3125 0 1.1875 0 1.03125C0 0.46875 0.46875 0 1.03125 0C1.1875 0 1.3125 0.03125 1.46875 0.09375Z",fill:"currentColor"})}),kf=x.forwardRef(({className:e,type:t,...r},i)=>{const s=e&&typeof e=="string"&&e.includes("placeholder:");return g.jsx("input",{type:t,className:he("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!s&&"placeholder:text-muted-foreground",e),ref:i,...r})});kf.displayName="Input";const t4=()=>g.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block"},"aria-hidden":"true",children:[g.jsx("g",{clipPath:"url(#circleClip)",children:g.jsxs("g",{children:[g.jsx("path",{d:"M15.9766 0.0234375V5.31055H0.0234375V0.0234375H15.9766Z",fill:"#FF9933",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M15.9766 5.35779V10.642H0.0234375V5.35779H15.9766Z",fill:"white",stroke:"#1A1A1A","stroke-width":"0.046875"}),g.jsx("path",{d:"M0 10.6656H16V16H0V10.6656Z",fill:"#128807"}),g.jsx("path",{d:"M8.00101 10.1334C9.17921 10.1334 10.1343 9.17824 10.1343 8.00003C10.1343 6.82182 9.17921 5.8667 8.00101 5.8667C6.8228 5.8667 5.86768 6.82182 5.86768 8.00003C5.86768 9.17824 6.8228 10.1334 8.00101 10.1334Z",fill:"#000088"}),g.jsx("path",{d:"M8.00143 9.86663C9.03236 9.86663 9.8681 9.0309 9.8681 7.99997C9.8681 6.96904 9.03236 6.1333 8.00143 6.1333C6.9705 6.1333 6.13477 6.96904 6.13477 7.99997C6.13477 9.0309 6.9705 9.86663 8.00143 9.86663Z",fill:"white"}),g.jsx("path",{d:"M8.00126 8.37325C8.20745 8.37325 8.3746 8.20611 8.3746 7.99992C8.3746 7.79373 8.20745 7.62659 8.00126 7.62659C7.79508 7.62659 7.62793 7.79373 7.62793 7.99992C7.62793 8.20611 7.79508 8.37325 8.00126 8.37325Z",fill:"#000088"}),g.jsx("path",{d:"M9.84014 8.33936C9.8927 8.34628 9.94093 8.30928 9.94785 8.25671C9.95477 8.20415 9.91776 8.15593 9.8652 8.14901C9.81263 8.14208 9.76441 8.17909 9.75749 8.23165C9.75057 8.28422 9.78757 8.33244 9.84014 8.33936Z",fill:"#000088"}),g.jsx("path",{d:"M8.00199 9.86647L8.06599 8.74647L8.00199 8.21313L7.93799 8.74647L8.00199 9.86647Z",fill:"#000088"}),g.jsx("path",{d:"M9.69246 8.8036C9.74145 8.82389 9.7976 8.80063 9.81789 8.75165C9.83818 8.70266 9.81492 8.6465 9.76594 8.62622C9.71696 8.60593 9.6608 8.62919 9.64051 8.67817C9.62022 8.72715 9.64348 8.78331 9.69246 8.8036Z",fill:"#000088"}),g.jsx("path",{d:"M7.52209 9.80289L7.87379 8.73762L7.95 8.2059L7.75015 8.70449L7.52209 9.80289Z",fill:"#000088"}),g.jsx("path",{d:"M9.4251 9.21296C9.46716 9.24524 9.52743 9.2373 9.5597 9.19524C9.59198 9.15318 9.58405 9.09291 9.54198 9.06064C9.49992 9.02836 9.43966 9.0363 9.40738 9.07836C9.3751 9.12042 9.38304 9.18069 9.4251 9.21296Z",fill:"#000088"}),g.jsx("path",{d:"M7.06958 9.61654L7.68501 8.67859L7.89625 8.18471L7.57415 8.61459L7.06958 9.61654Z",fill:"#000088"}),g.jsx("path",{d:"M9.06041 9.53972C9.09269 9.58179 9.15295 9.58972 9.19502 9.55744C9.23708 9.52517 9.24501 9.4649 9.21274 9.42284C9.18046 9.38078 9.1202 9.37284 9.07814 9.40512C9.03607 9.4374 9.02814 9.49766 9.06041 9.53972Z",fill:"#000088"}),g.jsx("path",{d:"M6.68086 9.31981L7.51807 8.5731L7.84994 8.15072L7.42756 8.48259L6.68086 9.31981Z",fill:"#000088"}),g.jsx("path",{d:"M8.6284 9.76153C8.64869 9.81052 8.70484 9.83378 8.75383 9.81349C8.80281 9.7932 8.82607 9.73704 8.80578 9.68806C8.78549 9.63907 8.72933 9.61581 8.68035 9.6361C8.63137 9.65639 8.60811 9.71255 8.6284 9.76153Z",fill:"#000088"}),g.jsx("path",{d:"M6.38679 8.93324L7.38874 8.42867L7.81862 8.10657L7.32474 8.31781L6.38679 8.93324Z",fill:"#000088"}),g.jsx("path",{d:"M8.14737 9.86316C8.15429 9.91573 8.20251 9.95273 8.25508 9.94581C8.30764 9.93889 8.34465 9.89066 8.33773 9.8381C8.33081 9.78553 8.28258 9.74853 8.23002 9.75545C8.17745 9.76237 8.14045 9.81059 8.14737 9.86316Z",fill:"#000088"}),g.jsx("path",{d:"M6.19642 8.4829L7.29482 8.25484L7.79342 8.05498L7.2617 8.1312L6.19642 8.4829Z",fill:"#000088"}),g.jsx("path",{d:"M7.66381 9.83806C7.65689 9.89063 7.69389 9.93885 7.74646 9.94577C7.79903 9.95269 7.84725 9.91569 7.85417 9.86312C7.86109 9.81056 7.82409 9.76233 7.77152 9.75541C7.71895 9.74849 7.67073 9.7855 7.66381 9.83806Z",fill:"#000088"}),g.jsx("path",{d:"M6.13671 7.99991L7.25671 8.06391L7.79004 7.99991L7.25671 7.93591L6.13671 7.99991Z",fill:"#000088"}),g.jsx("path",{d:"M7.20092 9.68758C7.18063 9.73656 7.20389 9.79272 7.25287 9.81301C7.30185 9.8333 7.35801 9.81004 7.3783 9.76106C7.39859 9.71207 7.37533 9.65592 7.32635 9.63563C7.27736 9.61534 7.22121 9.6386 7.20092 9.68758Z",fill:"#000088"}),g.jsx("path",{d:"M6.20138 7.51684L7.26665 7.86854L7.79838 7.94475L7.29978 7.7449L6.20138 7.51684Z",fill:"#000088"}),g.jsx("path",{d:"M6.79363 9.42217C6.76135 9.46423 6.76929 9.5245 6.81135 9.55677C6.85341 9.58905 6.91368 9.58112 6.94595 9.53905C6.97823 9.49699 6.9703 9.43673 6.92823 9.40445C6.88617 9.37217 6.82591 9.38011 6.79363 9.42217Z",fill:"#000088"}),g.jsx("path",{d:"M6.39018 7.06677L7.32812 7.6822L7.822 7.89344L7.39212 7.57135L6.39018 7.06677Z",fill:"#000088"}),g.jsx("path",{d:"M6.46467 9.05968C6.42261 9.09196 6.41467 9.15222 6.44695 9.19428C6.47923 9.23635 6.53949 9.24428 6.58155 9.21201C6.62362 9.17973 6.63155 9.11947 6.59927 9.0774C6.567 9.03534 6.50673 9.02741 6.46467 9.05968Z",fill:"#000088"}),g.jsx("path",{d:"M6.68459 6.68013L7.43129 7.51734L7.85367 7.84921L7.5218 7.42683L6.68459 6.68013Z",fill:"#000088"}),g.jsx("path",{d:"M6.24115 8.6251C6.19217 8.64539 6.16891 8.70155 6.1892 8.75053C6.20949 8.79951 6.26564 8.82277 6.31463 8.80248C6.36361 8.7822 6.38687 8.72604 6.36658 8.67705C6.34629 8.62807 6.29014 8.60481 6.24115 8.6251Z",fill:"#000088"}),g.jsx("path",{d:"M7.06908 6.38338L7.57365 7.38532L7.89575 7.8152L7.68451 7.32132L7.06908 6.38338Z",fill:"#000088"}),g.jsx("path",{d:"M6.14294 8.14786C6.09038 8.15478 6.05338 8.203 6.0603 8.25557C6.06722 8.30813 6.11544 8.34513 6.168 8.33821C6.22057 8.33129 6.25757 8.28307 6.25065 8.2305C6.24373 8.17794 6.19551 8.14094 6.14294 8.14786Z",fill:"#000088"}),g.jsx("path",{d:"M7.52345 6.19703L7.75151 7.29543L7.95136 7.79403L7.87515 7.26231L7.52345 6.19703Z",fill:"#000088"}),g.jsx("path",{d:"M6.17061 7.66052C6.11804 7.6536 6.06982 7.6906 6.0629 7.74316C6.05598 7.79573 6.09298 7.84395 6.14554 7.85087C6.19811 7.85779 6.24633 7.82079 6.25325 7.76822C6.26017 7.71566 6.22317 7.66744 6.17061 7.66052Z",fill:"#000088"}),g.jsx("path",{d:"M8.00875 6.13341L7.94475 7.25341L8.00875 7.78674L8.07275 7.25341L8.00875 6.13341Z",fill:"#000088"}),g.jsx("path",{d:"M6.32316 7.19628C6.27418 7.17599 6.21802 7.19925 6.19773 7.24823C6.17744 7.29722 6.2007 7.35337 6.24969 7.37366C6.29867 7.39395 6.35483 7.37069 6.37512 7.32171C6.39541 7.27272 6.37215 7.21657 6.32316 7.19628Z",fill:"#000088"}),g.jsx("path",{d:"M8.49354 6.19699L8.14184 7.26226L8.06562 7.79398L8.26548 7.29539L8.49354 6.19699Z",fill:"#000088"}),g.jsx("path",{d:"M6.58174 6.78692C6.53967 6.75464 6.47941 6.76257 6.44713 6.80464C6.41486 6.8467 6.42279 6.90696 6.46485 6.93924C6.50692 6.97152 6.56718 6.96358 6.59946 6.92152C6.63173 6.87946 6.6238 6.81919 6.58174 6.78692Z",fill:"#000088"}),g.jsx("path",{d:"M8.93726 6.38334L8.32183 7.32129L8.11059 7.81517L8.43268 7.38529L8.93726 6.38334Z",fill:"#000088"}),g.jsx("path",{d:"M6.94642 6.46015C6.91415 6.41809 6.85388 6.41016 6.81182 6.44243C6.76976 6.47471 6.76182 6.53497 6.7941 6.57704C6.82637 6.6191 6.88664 6.62703 6.9287 6.59476C6.97076 6.56248 6.9787 6.50222 6.94642 6.46015Z",fill:"#000088"}),g.jsx("path",{d:"M9.32598 6.68007L8.48876 7.42678L8.15689 7.84915L8.57927 7.51729L9.32598 6.68007Z",fill:"#000088"}),g.jsx("path",{d:"M7.37649 6.23847C7.3562 6.18948 7.30004 6.16622 7.25106 6.18651C7.20207 6.2068 7.17881 6.26296 7.1991 6.31194C7.21939 6.36093 7.27555 6.38419 7.32453 6.3639C7.37352 6.34361 7.39678 6.28745 7.37649 6.23847Z",fill:"#000088"}),g.jsx("path",{d:"M9.61809 7.06676L8.61614 7.57133L8.18626 7.89343L8.68014 7.68219L9.61809 7.06676Z",fill:"#000088"}),g.jsx("path",{d:"M7.85751 6.13684C7.85059 6.08427 7.80237 6.04727 7.74981 6.05419C7.69724 6.06111 7.66024 6.10934 7.66716 6.1619C7.67408 6.21447 7.7223 6.25147 7.77487 6.24455C7.82743 6.23763 7.86443 6.18941 7.85751 6.13684Z",fill:"#000088"}),g.jsx("path",{d:"M9.80846 7.5171L8.71006 7.74516L8.21146 7.94502L8.74319 7.8688L9.80846 7.5171Z",fill:"#000088"}),g.jsx("path",{d:"M8.34302 6.16194C8.34994 6.10937 8.31294 6.06115 8.26038 6.05423C8.20781 6.04731 8.15959 6.08431 8.15267 6.13688C8.14575 6.18944 8.18275 6.23767 8.23532 6.24459C8.28788 6.25151 8.3361 6.2145 8.34302 6.16194Z",fill:"#000088"}),g.jsx("path",{d:"M9.87013 8.00009L8.75013 7.93609L8.2168 8.00009L8.75013 8.06409L9.87013 8.00009Z",fill:"#000088"}),g.jsx("path",{d:"M8.80592 6.31242C8.82621 6.26344 8.80295 6.20728 8.75396 6.18699C8.70498 6.1667 8.64882 6.18996 8.62853 6.23894C8.60824 6.28793 8.63151 6.34408 8.68049 6.36437C8.72947 6.38466 8.78563 6.3614 8.80592 6.31242Z",fill:"#000088"}),g.jsx("path",{d:"M9.80545 8.48316L8.74018 8.13146L8.20846 8.05525L8.70705 8.2551L9.80545 8.48316Z",fill:"#000088"}),g.jsx("path",{d:"M9.21614 6.57795C9.24841 6.53589 9.24048 6.47562 9.19842 6.44335C9.15635 6.41107 9.09609 6.41901 9.06381 6.46107C9.03154 6.50313 9.03947 6.5634 9.08153 6.59567C9.1236 6.62795 9.18386 6.62001 9.21614 6.57795Z",fill:"#000088"}),g.jsx("path",{d:"M9.61959 8.93335L8.68164 8.31792L8.18776 8.10668L8.61764 8.42878L9.61959 8.93335Z",fill:"#000088"}),g.jsx("path",{d:"M9.53875 6.94044C9.58081 6.90816 9.58874 6.8479 9.55647 6.80584C9.52419 6.76377 9.46393 6.75584 9.42186 6.78812C9.3798 6.82039 9.37187 6.88066 9.40414 6.92272C9.43642 6.96478 9.49668 6.97272 9.53875 6.94044Z",fill:"#000088"}),g.jsx("path",{d:"M9.31883 9.31999L8.57213 8.48278L8.14975 8.15091L8.48162 8.57329L9.31883 9.31999Z",fill:"#000088"}),g.jsx("path",{d:"M9.76715 7.37502C9.81613 7.35473 9.83939 7.29858 9.8191 7.24959C9.79881 7.20061 9.74266 7.17735 9.69367 7.19764C9.64469 7.21793 9.62143 7.27408 9.64172 7.32307C9.66201 7.37205 9.71816 7.39531 9.76715 7.37502Z",fill:"#000088"}),g.jsx("path",{d:"M8.93922 9.61662L8.43465 8.61468L8.11255 8.1848L8.3238 8.67868L8.93922 9.61662Z",fill:"#000088"}),g.jsx("path",{d:"M9.86682 7.85227C9.91939 7.84534 9.95639 7.79712 9.94947 7.74456C9.94255 7.69199 9.89433 7.65499 9.84176 7.66191C9.78919 7.66883 9.75219 7.71705 9.75911 7.76962C9.76603 7.82218 9.81426 7.85919 9.86682 7.85227Z",fill:"#000088"}),g.jsx("path",{d:"M8.48631 9.80309L8.25826 8.70469L8.0584 8.20609L8.13462 8.73782L8.48631 9.80309Z",fill:"#000088"})]})}),g.jsx("defs",{children:g.jsx("clipPath",{id:"circleClip",children:g.jsx("circle",{cx:"8",cy:"8",r:"8"})})})]}),n4="+91";function r4(e){const t=e.replace(/\D/g,""),r=t.slice(0,5),i=t.slice(5,10);return i?`${r} ${i}`:r}function i4({value:e,onChange:t,onKeyDown:r,disabled:i,theme:s,isMobile:l,maxLength:c,isMobileValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your mobile number"}),g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[g.jsxs("div",{className:he("inline-flex items-center gap-2 rounded-full px-3 shrink-0 py-2 min-h-[56px]",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),style:{fontSize:l?"16px":"14px"},children:[g.jsx(t4,{}),g.jsx("span",{className:"text-sm font-medium text-foreground",children:n4}),g.jsx(ts,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})]}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 flex-1 min-w-0",i&&"opacity-60",s?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(kf,{type:"tel",autoComplete:"tel-national",value:r4(e),onChange:t,onKeyDown:r,placeholder:"88888 88888",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:l?"16px":"14px"},maxLength:c?c+1:void 0,inputMode:"numeric",autoFocus:!i,disabled:i}),g.jsx(He,{type:"button",size:"icon",onClick:f,disabled:i||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit mobile number":"Enter a valid mobile number","aria-label":u?"Submit mobile number":"Enter a valid mobile number",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})]})}const a4=6,s4=30,l4=(e,t)=>e.disabled===t.disabled&&e.isMobile===t.isMobile&&e.validation?.pattern===t.validation?.pattern&&e.validation?.minLength===t.validation?.minLength&&e.validation?.maxLength===t.validation?.maxLength&&e.serverMessage===t.serverMessage&&e.theme?.textColor===t.theme?.textColor;function o4({disabled:e,isMobile:t,validation:r,onSubmit:i,onResendOtp:s,serverMessage:l}){const c=x.useRef([]),[u,f]=x.useState(0),[h,m]=x.useState(!1),B=x.useRef(!1),C=x.useRef(i),w=x.useRef(s),v=r?.maxLength??a4,b=x.useMemo(()=>new RegExp(r?.pattern??`^\\d{${v}}$`),[r?.pattern,v]);x.useEffect(()=>{C.current=i},[i]),x.useEffect(()=>{w.current=s},[s]),x.useEffect(()=>{if(!l)return;const j=l.toLowerCase();j.includes("otp")&&(j.includes("invalid")||j.includes("incorrect")||j.includes("wrong"))&&(B.current=!1,m(!1))},[l]);const U=x.useCallback(()=>c.current.map(j=>j?.value.replace(/\D/g,"").slice(-1)??""),[]),Q=x.useCallback(()=>{const j=U().join(""),se=j.length===v&&b.test(j);B.current!==se&&(B.current=se,m(se))},[v,b,U]),T=x.useCallback(j=>{j<v-1&&c.current[j+1]?.focus()},[v]),O=x.useCallback(j=>{j>0&&c.current[j-1]?.focus()},[]),G=x.useMemo(()=>Array.from({length:v},(j,se)=>se),[v]),k=x.useCallback(j=>{for(let le=0;le<v;le++){const z=c.current[le];z&&(z.value=j[le]??"")}Q();const se=Math.min(j.length,v-1);c.current[se]?.focus()},[Q,v]),F=x.useCallback((j,se)=>{const le=se.target.value.replace(/\D/g,"");if(le.length>1){k(le.slice(0,v));return}const z=le.slice(-1);se.target.value=z,Q(),z&&T(j)},[Q,k,T,v]),H=x.useCallback((j,se)=>{if(se.key==="Backspace"&&!c.current[j]?.value){O(j);return}if(se.key==="Enter"&&!se.shiftKey&&!e){se.preventDefault();const le=U().join("");if(le.length===v&&b.test(le))C.current(le);else{const R=U().findIndex(q=>!q);c.current[R===-1?0:R]?.focus()}}},[e,O,v,b,U]),L=x.useCallback(j=>{j.preventDefault();const se=j.clipboardData.getData("text").replace(/\D/g,"").slice(0,v);se&&k(se)},[k,v]),M=x.useCallback(()=>{if(e)return;const j=U().join("");j.length===v&&b.test(j)&&C.current(j)},[e,v,b,U]),W=x.useCallback(()=>{if(!(u>0||e)){for(const j of c.current)j&&(j.value="");B.current=!1,m(!1),c.current[0]?.focus(),w.current?.(),f(s4)}},[e,u]);x.useEffect(()=>{e||c.current[0]?.focus()},[e]),x.useEffect(()=>{if(h){u>0&&f(0);return}if(u<=0)return;const j=setTimeout(()=>f(se=>se-1),1e3);return()=>clearTimeout(j)},[h,u]);const ee=x.useMemo(()=>G.map(j=>g.jsx("input",{ref:se=>{c.current[j]=se},type:"text",inputMode:"numeric",maxLength:t&&j===0?v:1,onChange:se=>F(j,se),onKeyDown:se=>H(j,se),onPaste:L,disabled:e,tabIndex:0,style:{fontSize:t?"16px":"14px",backgroundColor:"var(--input-box-bg)"},className:he("h-10 w-10 rounded-full border text-center text-lg font-semibold text-foreground","border-border shadow-sm outline-none transition-colors","focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 focus-visible:border-transparent","disabled:cursor-not-allowed disabled:opacity-50"),autoComplete:j===0?"one-time-code":"off","aria-label":`Digit ${j+1}`},j)),[e,G,F,H,L,t,v]);return g.jsx("div",{className:"px-4 pt-3 pb-2 space-y-3",children:g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-xs font-semibold tracking-wide text-foreground uppercase",children:"Please enter the OTP"}),!h&&g.jsxs("button",{type:"button",onClick:W,disabled:e||u>0,className:he("text-xs font-medium underline underline-offset-2","text-primary hover:opacity-90 disabled:opacity-50 disabled:no-underline disabled:cursor-not-allowed"),children:["Resend OTP",u>0?` (00:${String(u).padStart(2,"0")}s)`:""]})]}),g.jsxs("div",{className:"flex items-center w-full gap-2 justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:ee}),g.jsx(He,{type:"button",size:"icon",onClick:M,disabled:e,variant:"ghost",className:`h-10 w-10 ${h?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:h?"Submit OTP":"Enter the full OTP to submit","aria-label":h?"Submit OTP":"Enter the full OTP to submit",children:g.jsx(gs,{className:`w-4 h-4 ${h?"text-primary-foreground":"text-primary"}`})})]})]})})}const c4=x.memo(o4,l4);function u4({value:e,onChange:t,onKeyDown:r,placeholder:i,disabled:s,theme:l,isMobile:c,isEmailValid:u,onSend:f}){return g.jsxs("div",{className:"px-2 pt-3 pb-2 space-y-2 w-full",children:[g.jsx("p",{className:"px-1 text-xs font-semibold tracking-wide text-foreground uppercase",children:"Enter your email address"}),g.jsxs("div",{className:he("flex items-center gap-1 rounded-full px-2 py-2 w-full",s&&"opacity-60",l?.textColor==="white"?"bg-white-100":"bg-black-100"),children:[g.jsx(kf,{type:"email",autoComplete:"email",value:e,onChange:t,onKeyDown:r,placeholder:i??"username@example.com",className:he("w-full h-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-sm placeholder:text-muted-foreground/40 bg-transparent","disabled:cursor-not-allowed rounded-none break-words overflow-wrap-anywhere whitespace-pre-wrap","text-foreground px-3 py-2 pr-11 min-h-[40px]"),style:{fontSize:c?"16px":"14px"},autoFocus:!s,disabled:s}),g.jsx(He,{type:"button",size:"icon",onClick:f,disabled:s||!u,variant:"ghost",className:`h-10 w-10 ${u?"bg-primary":"bg-none"} hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100`,title:u?"Submit email address":"Enter a valid email address","aria-label":u?"Submit email address":"Enter a valid email address",children:g.jsx(gs,{className:`w-4 h-4 ${u?"text-primary-foreground":"text-primary"}`})})]})]})}const KB=10,f4=10,d4=/^[6-9][0-9]{9}$/,h4=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function g4({elicitationEntry:e,value:t,onChange:r,isDisabled:i,theme:s,isMobile:l,onSend:c}){const{component:u,pattern:f,minLength:h,maxLength:m,description:B,disp_toast_msg:C,tool_key:w}=e??{},v=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.MOBILE,[u]),b=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.OTP,[u]),U=x.useMemo(()=>u===de.SYNAPSE_COMPONENTS.EMAIL,[u]);if(!v&&!b&&!U)return null;const Q=C?.trim()??"",T=M=>{const W=M.target.value.replace(/\D/g,""),ee=m??KB;r(W.slice(0,ee))},O=t.length===(h??f4)&&(f?new RegExp(f).test(t):d4.test(t)),G=f?new RegExp(f).test(t):h4.test(t),k=()=>{!G||i||c({toolCalled:!0,tool_key:w})},F=M=>{M.key==="Enter"&&(M.preventDefault(),k())},H=()=>{!O||i||c({toolCalled:!0,tool_key:w})},L=M=>{M.key==="Enter"&&(M.preventDefault(),H())};return g.jsxs(g.Fragment,{children:[v&&g.jsx(i4,{value:t,onChange:T,onSend:H,onKeyDown:L,placeholder:B??"Enter your mobile number",disabled:i,isMobileValid:O,theme:s,isMobile:l,maxLength:m??KB}),b&&g.jsx(c4,{disabled:i,isMobile:l,validation:{pattern:f,minLength:h,maxLength:m},onSubmit:M=>{c({message:M,toolCalled:!0,tool_key:w})},onResendOtp:()=>{c({toolCalled:!0,resend:!0,tool_key:w})},serverMessage:Q,theme:s}),U&&g.jsx(u4,{value:t,onChange:M=>r(M.target.value),onKeyDown:F,disabled:i,isEmailValid:G,theme:s,isMobile:l,placeholder:B,onSend:k})]})}const VB=({className:e})=>g.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:g.jsx("path",{d:"M6.875 0C7.375 0 7.75 0.40625 7.75 0.875V14.875C7.75 15.375 7.375 15.75 6.875 15.75C6.40625 15.75 6 15.375 6 14.875V0.875C6 0.40625 6.40625 0 6.875 0ZM12.875 2C13.375 2 13.75 2.40625 13.75 2.875V12.875C13.75 13.375 13.375 13.75 12.875 13.75C12.4062 13.75 12 13.375 12 12.875V2.875C12 2.40625 12.4062 2 12.875 2ZM3.875 3C4.375 3 4.75 3.40625 4.75 3.875V11.875C4.75 12.375 4.375 12.75 3.875 12.75C3.40625 12.75 3 12.375 3 11.875V3.875C3 3.40625 3.40625 3 3.875 3ZM9.875 4C10.375 4 10.75 4.40625 10.75 4.875V10.875C10.75 11.375 10.375 11.75 9.875 11.75C9.40625 11.75 9 11.375 9 10.875V4.875C9 4.40625 9.40625 4 9.875 4ZM0.875 6C1.375 6 1.75 6.40625 1.75 6.875V8.875C1.75 9.375 1.375 9.75 0.875 9.75C0.40625 9.75 0 9.375 0 8.875V6.875C0 6.40625 0.40625 6 0.875 6ZM15.875 6C16.375 6 16.75 6.40625 16.75 6.875V8.875C16.75 9.375 16.375 9.75 15.875 9.75C15.4062 9.75 15 9.375 15 8.875V6.875C15 6.40625 15.4062 6 15.875 6Z",fill:"currentColor"})});function p4({value:e,onChange:t,onSend:r,onFileChange:i,onRemoveFile:s,onRecording:l,isRecording:c,hasAttachment:u,attachmentFiles:f,isDisabled:h,placeholder:m,isMobile:B,recordingStatus:C,theme:w,allowed:v,showStartNewChatButton:b,onStartNewChat:U,isVoiceAgentActive:Q,handleVoiceMode:T,isAuthComponent:O,activeElicitationState:G,isFullScreen:k}){const F=x.useRef(null),H=x.useRef(null),L=e.trim().length>0||u,M=v===void 0||v.includes(de.SYNAPSE_CONVERSATION.AUDIO),W=v===void 0||v.includes(de.SYNAPSE_CONVERSATION.VOICE),ee=L||!M,j=L,se=v===void 0||v.includes(de.SYNAPSE_CONVERSATION.FILE),le=(h||C!==BA.IDLE)&&!c,z=he("rounded-full transition-all duration-200 ",c?"bg-gradient-to-r from-rose-400 via-primary to-indigo-500 text-white ring-2 ring-white/60 animate-pulse shadow-[0_0_20px_rgba(139,92,246,0.45)]":le?"text-primary/50 cursor-not-allowed shadow-none":"text-foreground hover:bg-primary hover:text-primary-foreground"),R=I=>{const P=Array.from(I.target.files||[]);P.length>0&&i(P)},q=()=>{h||(F.current&&(F.current.value=""),F.current?.click())},Ae=I=>{I.key==="Enter"&&!I.shiftKey&&j&&!h&&(I.preventDefault(),r())},me=I=>{I.style.height="auto",I.style.overflow="hidden";const P=I.scrollHeight,E=k?20:28,te=120,oe=Math.max(E,Math.min(P,te));I.style.height=oe+"px",P>te?I.style.overflow="auto":I.style.overflow="hidden"},N=I=>{me(I.currentTarget)};return x.useEffect(()=>{H.current&&me(H.current)},[e]),x.useEffect(()=>{!h&&!B&&H.current?.focus()},[h]),b&&U?g.jsx("div",{className:"px-4 py-2 flex justify-unset",children:g.jsxs("button",{type:"button",onClick:U,className:he("px-6 py-3 bg-primary text-primary-foreground text-sm font-semibold rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-60 disabled:pointer-events-none w-full",!B&&"hover:bg-primary/90"),children:[g.jsx("span",{children:"Start new chat"}),g.jsx(Km,{className:"w-5 h-5","aria-hidden":!0})]})}):g.jsx(g.Fragment,{children:O?g.jsx(g4,{elicitationEntry:G,value:e,onChange:t,isDisabled:h,theme:w,isMobile:B,onSend:r}):k?g.jsx("div",{className:"mx-3 mb-3","data-name":"reply-box",children:g.jsxs("div",{className:"flex flex-col items-stretch w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.5)",borderRadius:24,padding:8},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Rf,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:R,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsx("div",{className:"flex items-center justify-between w-full",style:{padding:"12px 8px"},"data-name":"text-frame",children:g.jsx(Df,{ref:H,onInput:N,placeholder:m,value:e,onChange:I=>t(I.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"20px",maxHeight:"120px",fontFamily:"Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:14,lineHeight:"20px",fontWeight:400,padding:0},onKeyPress:Ae,title:"Enter your message","aria-label":"Enter your message",className:he("flex-1 min-w-0 shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","bg-transparent disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap","text-foreground resize-none placeholder:text-muted-foreground")})}),g.jsxs("div",{className:"flex items-center justify-between w-full","data-name":"cta-row",children:[g.jsx("div",{className:"flex items-start shrink-0","data-name":"input-left-cta",children:se&&C===BA.IDLE&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:q,disabled:h,className:he("rounded-full transition-all shrink-0 p-2 h-10 w-10",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Vm,{className:"w-6 h-6",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex gap-2 items-center shrink-0","data-name":"input-right-cta",children:[c?g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Gm,{className:"w-4 h-4"})}):M&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:le,className:he("h-10 w-10 shrink-0 p-2",z),title:"Start recording","aria-label":"Start recording",children:g.jsx(Du,{className:"w-6 h-6",strokeWidth:1.5})}),ee&&!c?g.jsx(He,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!j,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0 p-2",j?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:j?"Send message":"Type a message to send","aria-label":j?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):M&&W&&!c&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:T,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100 p-2",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(VB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})}):g.jsxs("div",{className:"px-3 pb-2 pt-1",children:[g.jsx("input",{ref:F,type:"file",multiple:!0,max:3,accept:"image/jpeg, image/png, image/jpg, application/pdf",className:"hidden",onChange:R,disabled:h,title:"Attach file","aria-label":"Attach file"}),g.jsxs("div",{className:"flex flex-col w-full bg-elicitationBg",style:{border:"1px solid hsl(var(--primary) / 0.3)",borderRadius:20,padding:"4px 8px"},children:[u&&f.length>0&&g.jsx("div",{className:"mb-2 pb-2 border-b border-border-subtle",children:g.jsx(Rf,{files:f,onRemoveFile:s,isPreview:!0})}),g.jsx("div",{className:"px-2 pt-1 pb-0",children:g.jsx(Df,{ref:H,onInput:N,placeholder:m,value:e,onChange:I=>t(I.target.value),rows:1,maxLength:1e3,autoFocus:!B,style:{wordBreak:"break-word",overflowWrap:"anywhere",minHeight:"28px",maxHeight:"120px",fontSize:"16px",lineHeight:"1.4"},onKeyPress:Ae,title:"Enter your message","aria-label":"Enter your message",className:he("w-full shadow-none border-0 outline-none focus-visible:ring-0 focus-visible:ring-offset-0","text-base placeholder:text-muted-foreground bg-transparent","disabled:cursor-not-allowed rounded-none break-words whitespace-pre-wrap text-foreground resize-none")})}),g.jsxs("div",{className:"flex items-center justify-between px-1",children:[g.jsx("div",{className:"flex items-center shrink-0",children:se&&C===BA.IDLE&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:q,disabled:h,className:he("h-10 w-10 rounded-full transition-all shrink-0",u?"bg-primary text-primary-foreground":"text-foreground",!B&&(u?"hover:bg-primary/15":"hover:bg-primary hover:text-primary-foreground")),title:"Attach file","aria-label":"Attach file",children:g.jsx(Vm,{className:"w-5 h-5",strokeWidth:1.5})})}),g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c?g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:l,className:he("h-10 w-10 rounded-full bg-gradient-to-r from-red-400 to-rose-500 text-white shadow-lg transition-all duration-200 active:scale-95 shrink-0",!B&&"hover:from-red-500 hover:to-rose-600 hover:scale-105"),title:"Stop recording","aria-label":"Stop recording",children:g.jsx(Gm,{className:"w-4 h-4"})}):ee?g.jsx(He,{type:"button",size:"icon",onClick:()=>r(),disabled:h||!j,variant:"ghost",className:he("h-10 w-10 rounded-full transition-all duration-200 shadow-lg shrink-0",j?"bg-primary hover:bg-primary/90 hover:shadow-xl hover:scale-105 active:scale-95":"bg-primary/40"),title:j?"Send message":"Type a message to send","aria-label":j?"Send message":"Type a message to send",children:g.jsx(gs,{className:"w-4 h-4 text-primary-foreground"})}):M&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:l,disabled:le,className:he("h-10 w-10 shrink-0",z),title:"Start recording","aria-label":"Start recording",children:g.jsx(Du,{className:"w-5 h-5",strokeWidth:1.5})}),M&&W&&!c&&g.jsx(He,{type:"button",variant:"ghost",size:"icon",onClick:T,disabled:h||Q,className:"h-10 w-10 bg-primary text-primary-foreground hover:bg-primary/90 rounded-full transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 active:scale-95 shrink-0 disabled:opacity-50 disabled:pointer-events-none disabled:hover:scale-100",title:"Enter voice mode","aria-label":"Enter voice mode",children:g.jsx(VB,{className:"w-4 h-4 text-primary-foreground"})})]})]})]})]})})}const m4=Object.freeze(Object.defineProperty({__proto__:null,default:p4},Symbol.toStringTag,{value:"Module"}));var B4=ep[" useInsertionEffect ".trim().toString()]||Ar;function w4({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[s,l,c]=C4({defaultProp:t,onChange:r}),u=e!==void 0,f=u?e:s;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const B=m.current;if(B!==u){const C=B?"controlled":"uncontrolled",w=u?"controlled":"uncontrolled"}m.current=u},[u,i])}const h=x.useCallback(m=>{if(u){const B=y4(m)?m(e):m;B!==e&&c.current?.(B)}else l(m)},[u,e,l,c]);return[f,h]}function C4({defaultProp:e,onChange:t}){const[r,i]=x.useState(e),s=x.useRef(r),l=x.useRef(t);return B4(()=>{l.current=t},[t]),x.useEffect(()=>{s.current!==r&&(l.current?.(r),s.current=r)},[r,s]),[r,i,l]}function y4(e){return typeof e=="function"}function E4(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function v4(e){const[t,r]=x.useState(void 0);return Ar(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const f=l.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;r({width:c,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var to="Checkbox",[b4]=lp(to),[x4,jf]=b4(to);function S4(e){const{__scopeCheckbox:t,checked:r,children:i,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:B}=e,[C,w]=w4({prop:r,defaultProp:s??!1,onChange:f,caller:to}),[v,b]=x.useState(null),[U,Q]=x.useState(null),T=x.useRef(!1),O=v?!!c||!!v.closest("form"):!0,G={checked:C,disabled:l,setChecked:w,control:v,setControl:b,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:T,required:h,defaultChecked:lr(s)?!1:s,isFormControl:O,bubbleInput:U,setBubbleInput:Q};return g.jsx(x4,{scope:t,...G,children:Q4(B)?B(G):i})}var GB="CheckboxTrigger",zB=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...i},s)=>{const{control:l,value:c,disabled:u,checked:f,required:h,setControl:m,setChecked:B,hasConsumerStoppedPropagationRef:C,isFormControl:w,bubbleInput:v}=jf(GB,e),b=Sn(s,m),U=x.useRef(f);return x.useEffect(()=>{const Q=l?.form;if(Q){const T=()=>B(U.current);return Q.addEventListener("reset",T),()=>Q.removeEventListener("reset",T)}},[l,B]),g.jsx(er.button,{type:"button",role:"checkbox","aria-checked":lr(f)?"mixed":f,"aria-required":h,"data-state":JB(f),"data-disabled":u?"":void 0,disabled:u,value:c,...i,ref:b,onKeyDown:Qn(t,Q=>{Q.key==="Enter"&&Q.preventDefault()}),onClick:Qn(r,Q=>{B(T=>lr(T)?!0:!T),v&&w&&(C.current=Q.isPropagationStopped(),C.current||Q.stopPropagation())})})});zB.displayName=GB;var Kf=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:l,required:c,disabled:u,value:f,onCheckedChange:h,form:m,...B}=e;return g.jsx(S4,{__scopeCheckbox:r,checked:s,defaultChecked:l,disabled:u,required:c,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:C})=>g.jsxs(g.Fragment,{children:[g.jsx(zB,{...B,ref:t,__scopeCheckbox:r}),C&&g.jsx(qB,{__scopeCheckbox:r})]})})});Kf.displayName=to;var PB="CheckboxIndicator",YB=x.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:i,...s}=e,l=jf(PB,r);return g.jsx(Ci,{present:i||lr(l.checked)||l.checked===!0,children:g.jsx(er.span,{"data-state":JB(l.checked),"data-disabled":l.disabled?"":void 0,...s,ref:t,style:{pointerEvents:"none",...e.style}})})});YB.displayName=PB;var XB="CheckboxBubbleInput",qB=x.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:c,required:u,disabled:f,name:h,value:m,form:B,bubbleInput:C,setBubbleInput:w}=jf(XB,e),v=Sn(r,w),b=E4(l),U=v4(i);x.useEffect(()=>{const T=C;if(!T)return;const O=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(O,"checked").set,F=!s.current;if(b!==l&&k){const H=new Event("click",{bubbles:F});T.indeterminate=lr(l),k.call(T,lr(l)?!1:l),T.dispatchEvent(H)}},[C,b,l,s]);const Q=x.useRef(lr(l)?!1:l);return g.jsx(er.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??Q.current,required:u,disabled:f,name:h,value:m,form:B,...t,tabIndex:-1,ref:v,style:{...t.style,...U,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});qB.displayName=XB;function Q4(e){return typeof e=="function"}function lr(e){return e==="indeterminate"}function JB(e){return lr(e)?"indeterminate":e?"checked":"unchecked"}const Vf=x.forwardRef(({className:e,...t},r)=>g.jsx(Kf,{ref:r,className:he("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:g.jsx(YB,{className:he("grid place-content-center text-current"),children:g.jsx(Lu,{className:"h-4 w-4"})})}));Vf.displayName=Kf.displayName;function U4({options:e,selectedValues:t,onSelectionChange:r,additionalOption:i,className:s,required:l=!0,maxSelections:c,disabled:u}){const f=i?{id:`extra-${i}`,label:i==="all_of_the_above"?"All of the above":"None of the above",value:i==="all_of_the_above"?"All of the above":"None of the above"}:null,h=b=>f?b.filter(U=>U!==f.value):b,m=b=>f?i==="none_of_the_above"?b?[f.value]:[]:i==="all_of_the_above"?b?[...e.map(U=>U.value),f.value]:h(t):b?[...t,f.value]:h(t):t,B=(b,U)=>{const Q=f?h(t):t;return U?c&&Q.length>=c?null:[...Q,b]:Q.filter(T=>T!==b)},C=b=>!(l&&b.length===0&&t.length===1),w=(b,U)=>{const T=f&&b===f.value?m(U):B(b,U);T!==null&&C(T)&&r(T)},v=f?t.filter(b=>b!==f.value).length:t.length;return e.length?g.jsxs("div",{className:he(s),children:[g.jsxs("div",{className:"space-y-3",children:[e.map(b=>{const U=u||c&&v>=c&&!t.includes(b.value);let Q=t.includes(b.value);return g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Vf,{id:b.id,checked:Q,disabled:!!U,onCheckedChange:T=>w(b.value,!!T),className:"mt-0.5 border border-muted-foreground text-primary-foreground"}),g.jsx("label",{htmlFor:b.id,className:he("text-sm font-normal leading-4 cursor-pointer",U?"text-muted-foreground cursor-not-allowed":Q?"text-primary":"text-secondary-foreground"),children:b.label})]},b.id)}),f&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border-medium my-3"}),g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(Vf,{id:f.id,checked:t.includes(f.value),onCheckedChange:b=>w(f.value,b),className:"mt-0.5 border border-muted-foreground"}),g.jsx("label",{htmlFor:f.id,className:"text-sm font-medium leading-none cursor-pointer text-secondary-foreground",children:f.label})]})]})]}),c&&v>=c&&g.jsx("p",{className:"text-sm text-blue-600 mt-3",children:c===1?"You can select only 1 option":`Maximum ${c} selections allowed`})]}):null}const F4=Object.freeze(Object.defineProperty({__proto__:null,MultiSelectGroup:U4},Symbol.toStringTag,{value:"Module"})),ZB=12,T4=.76,N4=3;function WB({count:e,renderItem:t,className:r}){const[i,s]=x.useState(0),[l,c]=x.useState(0),[u,f]=x.useState(()=>Math.min(N4,e)),h=x.useRef(null),m=x.useRef(0),B=x.useRef(0);if(x.useEffect(()=>{f(U=>Math.max(U,Math.min(i+2,e)))},[i,e]),x.useLayoutEffect(()=>{const U=h.current;if(!U)return;c(U.clientWidth);const Q=new ResizeObserver(([T])=>c(T.contentRect.width));return Q.observe(U),()=>Q.disconnect()},[]),e===0)return null;const C=U=>s(Math.max(0,Math.min(e-1,U)));if(e===1)return g.jsx("div",{className:r??"mt-3",children:t(0,!0)});const w=l*T4,v=(l-w)/2,b=l>0?v-i*(w+ZB):0;return g.jsx("div",{ref:h,className:he("mt-3 w-full",r),children:l>0&&g.jsxs("div",{className:"relative w-full",children:[g.jsx("div",{className:"w-full overflow-hidden py-3",onTouchStart:U=>{m.current=U.touches[0].clientX,B.current=U.touches[0].clientY},onTouchEnd:U=>{const Q=U.changedTouches[0].clientX-m.current,T=U.changedTouches[0].clientY-B.current;Math.abs(Q)>Math.abs(T)&&Math.abs(Q)>50&&C(i+(Q<0?1:-1))},children:g.jsx("div",{className:"flex items-stretch",style:{transform:`translateX(${b}px)`,transition:"transform 400ms cubic-bezier(0.4, 0, 0.2, 1)",gap:`${ZB}px`},"aria-live":"polite",children:Array.from({length:u},(U,Q)=>{const T=Q===i;return g.jsx("div",{"aria-hidden":!T,style:{flex:`0 0 ${w}px`,position:"relative",opacity:T?1:.6,transform:T?"scale(1.05)":"scale(0.9)",zIndex:T?20:10,transition:"all 400ms cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:12},children:t(Q,T)},Q)})})}),i>0&&g.jsx("button",{type:"button","aria-label":"Previous",onClick:()=>C(i-1),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(km,{size:18})}),i<e-1&&g.jsx("button",{type:"button","aria-label":"Next",onClick:()=>C(i+1),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 h-10 w-10 p-2 flex items-center justify-center rounded-full bg-background/90 shadow-md border border-primary text-primary hover:bg-muted transition-colors",children:g.jsx(jm,{size:18})})]})})}const I4=Object.freeze(Object.defineProperty({__proto__:null,FocusCarousel:WB},Symbol.toStringTag,{value:"Module"}));function _4({value:e,onValueChange:t,placeholder:r="Select an option",className:i,triggerClassName:s,contentClassName:l,disabled:c=!1,options:u=[],size:f="default",icon:h}){const[m,B]=x.useState(!1),C=x.useRef(null),w=x.useRef(null),v=u.find(Q=>Q.value===e);x.useEffect(()=>{const Q=T=>{m&&T.key==="Escape"&&(B(!1),w.current?.focus())};return document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)}},[m]);const b=Q=>{t?.(Q),B(!1),w.current?.focus()},U=()=>{c||B(!m)};return g.jsxs("div",{className:he("relative w-full",i),children:[g.jsxs("button",{ref:w,type:"button",onClick:U,disabled:c,className:he('border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*="text-"])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 overflow-hidden',f==="default"?"min-h-9":"min-h-8",s),"aria-expanded":m,"aria-haspopup":"listbox",children:[h,g.jsx("span",{className:he("flex-1 text-left min-w-0 overflow-hidden break-words line-clamp-2",!v&&"text-muted-foreground"),children:v?v.label:r}),g.jsx(ts,{className:he("size-4 opacity-50 pointer-events-none shrink-0 transition-transform duration-200",m&&"rotate-180")})]}),m&&g.jsx("div",{ref:C,className:he("bg-surface text-foreground animate-in fade-in-0 zoom-in-95 slide-in-from-top-2 relative z-50 max-h-[136px] min-w-[8rem] w-full overflow-x-hidden overflow-y-auto overscroll-contain rounded-md shadow-md mt-1",l),role:"listbox",children:g.jsx("div",{className:"p-1",children:u.length===0?g.jsx("div",{className:"px-3 py-2 text-sm text-muted-foreground text-center",children:"No options available"}):u.map(Q=>{const T=Q.value===e;return g.jsxs("div",{onClick:()=>b(Q.value),className:he("relative flex w-full cursor-pointer items-center gap-1 rounded-sm py-2.5 px-3 text-sm outline-none select-none transition-colors duration-150","hover:bg-accent hover:text-accent-foreground","focus-visible:bg-accent focus-visible:text-accent-foreground","active:bg-accent/80",T&&"bg-accent/50 text-foreground",c&&"pointer-events-none opacity-50 cursor-not-allowed"),role:"option","aria-selected":T,tabIndex:c?-1:0,onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),c||b(Q.value))},children:[g.jsx("span",{className:"flex-1 text-left min-w-0 break-words line-clamp-2",children:Q.label}),T&&g.jsx("span",{className:"absolute right-3 flex size-4 items-center justify-center shrink-0 pointer-events-none",children:g.jsx(Lu,{className:"size-4 text-foreground"})})]},Q.value)})})})]})}function H4({doctor:e,doctorDetails:t,onSelect:r,disabled:i,isActive:s=!0}){const l=x.useMemo(()=>{if(t?.hospitals?.[0]?.hospital_id)return t?.hospitals?.[0]?.hospital_id},[t?.hospitals]),[c,u]=x.useState(l),[f,h]=x.useState(!1),[m,B]=x.useState(null),[C,w]=x.useState(null),[v,b]=x.useState(0),[U,Q]=x.useState(!1),[T,O]=x.useState(!1),[G,k]=x.useState(!1),[F,H]=x.useState(!1),[L,M]=x.useState(!1),W=x.useRef(!1),ee=x.useRef(null);x.useEffect(()=>{u(l)},[l]);const j=e.availability??[],se=x.useCallback(async()=>{if(!G&&(O(!0),!j.length&&r&&t)){k(!0);try{await r({...e,hospital_id:c})}finally{k(!1)}}},[T,G,r,t,j.length,c]),le=x.useCallback(E=>{t&&(u(E),B(null),w(null),b(0),W.current=!1,r?.({...e,hospital_id:E}))},[e,r,t]);x.useEffect(()=>{s||O(!1)},[s]),x.useEffect(()=>{if(!T||!j.length||W.current)return;W.current=!0;const E=e.preferred_date||j[0]?.date;E&&(B(oe=>oe??E),j.find(oe=>oe.date===E)?.slots?.length||r?.({...e,hospital_id:c,preferred_date:E}))},[j,T]);const z=x.useMemo(()=>j.find(E=>E.date===m)?.slots??[],[j,m]);x.useLayoutEffect(()=>{const E=ee.current;E&&(E.scrollTop=0,H(E.scrollHeight>E.clientHeight+2))},[m,z.length]);const R=x.useCallback(()=>{const E=ee.current;E&&H(E.scrollTop+E.clientHeight<E.scrollHeight-4)},[]),q=()=>{ee.current?.scrollBy({top:120,behavior:"smooth"})},Ae=x.useMemo(()=>{if(!j.length)return[];const E=Math.min(v+3,j.length);return j.slice(v,E).map(te=>{if(te.date)return{...te,...RT(te.date)}})},[j,v]),me=v>0,N=v<Math.max(0,(j||[]).length-3),I=x.useCallback(async E=>{B(E),w(null);const te=j.find(oe=>oe.date===E);if(!(te?.slots?.length||Array.isArray(te?.slots)&&te?.slots.length===0)){h(!0);try{await r?.({...e,hospital_id:c,preferred_date:E})}catch{}finally{h(!1)}}},[e,c,r,j]),P=()=>{if(!C||!m||U)return;Q(!0);const E=e.cta?.text;r?.({...e,hospital_id:c,preferred_date:m,preferred_slot_time:C},`${E||`I want to book an appointment with Dr. ${t?.name}`} on ${m} at ${C}.`,e.cta?.tool_result)};return t?g.jsxs(Fn,{className:"max-w-md h-full rounded-xl border border-black-200 dark:border-white-200 shadow-none p-0 bg-elicitationBg overflow-hidden",children:[g.jsxs(Ku,{className:"flex flex-row items-center gap-3 bg-primary/[20%] rounded-t-xl p-2 border-b border-border-subtle overflow-hidden",children:[g.jsxs(Yu,{className:"h-12 w-12 ring-2 ring-primary/20 flex-shrink-0",children:[t.profile_pic&&g.jsx(o0,{src:t.profile_pic,alt:`${t.name} profile photo`,crossOrigin:"anonymous"}),g.jsx(Xu,{className:"bg-secondary text-primary",children:OT(t.name)})]}),g.jsxs("div",{className:"min-w-0",children:[g.jsxs("h3",{className:"font-bold text-slate-900 leading-tight",style:{fontSize:"0.95rem"},children:[g.jsx("span",{children:t.name}),t.profile_link&&g.jsx("a",{href:t.profile_link,target:"_blank",rel:"noreferrer","aria-label":"View profile",className:"inline-block align-middle ml-2 text-primary hover:text-primary/70 transition-colors",children:g.jsx(sS,{className:"h-3.5 w-3.5 inline","aria-hidden":!0})})]}),g.jsxs("p",{className:"mt-0.5 text-xs text-slate-600 line-clamp-1 hover:line-clamp-none hover:whitespace-normal cursor-help",title:`${t.specialty}${t.experience?` • ${t.experience}`:""}`,children:[t.specialty,t.experience&&g.jsxs(g.Fragment,{children:[" • ",t.experience]})]})]})]}),g.jsxs(Kl,{className:"px-3 py-2",children:[g.jsxs("div",{className:"grid gap-1 pb-2 border-b border-border-subtle",children:[t.timings&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(tS,{className:"h-3.5 w-3.5 text-primary mt-0.5 flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.timings})]}),t.languages&&g.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[g.jsx(uS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.languages})]}),t.hospitals?.length>1&&c?g.jsx(_4,{options:t.hospitals.map(E=>({value:E.hospital_id,label:E.name||""})),placeholder:"Select Hospital",disabled:i,onValueChange:le,value:c,triggerClassName:"h-8 text-xs px-3 rounded-lg border-border text-primary font-medium",icon:g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0})}):g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(Dl,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsx("span",{className:"text-text-secondary text-xs line-clamp-1 min-w-0",children:t.hospitals?.[0]?.name||""})]}),t.info&&g.jsxs("div",{className:"flex items-start gap-2 min-w-0",children:[g.jsx(cS,{className:"h-3.5 w-3.5 text-primary flex-shrink-0","aria-hidden":!0}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:he("text-text-secondary text-xs leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words overflow-hidden",!L&&"line-clamp-1"),children:g.jsx(hs,{children:t.info})}),g.jsxs("button",{type:"button",onClick:()=>M(E=>!E),"aria-expanded":L,className:"mt-0.5 flex items-center gap-1 text-[11px] font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(iS,{className:"h-3.5 w-3.5","aria-hidden":!0}),L?"View less":"View more"]})]})]})]}),T?G?g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"Loading..."}):j.length>0?g.jsxs("div",{className:"pt-3",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(He,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(E=>Math.max(0,E-3)),w(null)},disabled:i||!me,"aria-label":"Previous 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(km,{className:"h-4 w-4"})}),g.jsx("div",{className:"flex-1 grid grid-cols-3 gap-1 min-w-0",children:Ae.map((E,te)=>{if(!E||!E.date)return null;const oe=m===E.date,fe=(E?.slots||[]).length>0;return g.jsxs(He,{type:"button",variant:"outline",onClick:()=>E.date&&I(E.date),disabled:i,"aria-current":oe?"date":void 0,className:he("flex flex-col items-center justify-center h-12 rounded-lg border-2 p-2 gap-0.5 min-w-0 transition-all",oe?"border-primary border-2 ring-2 ring-primary/20 bg-primary/[20%] shadow-sm hover:text-accent-foreground":fe?"border-primary/30 bg-elicitationBg hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/40":"border-border bg-elicitationBg opacity-60 hover:bg-primary/10 hover:text-accent-foreground hover:border-primary/30"),children:[g.jsx("span",{className:he("text-[10px] tracking-wide w-full text-center font-medium"),children:E.weekday}),g.jsx("span",{className:he("text-xs font-bold w-full text-center"),children:E.dayNum})]},`${E.date}-${te}`)})}),g.jsx(He,{type:"button",variant:"outline",size:"icon",onClick:()=>{b(E=>Math.min(Math.max(0,j.length-3),E+3)),w(null)},disabled:i||!N,"aria-label":"Next 3 days",className:"h-8 w-8 flex-shrink-0 rounded-md border-primary/20 bg-surface text-primary hover:bg-surface-secondary disabled:opacity-50",children:g.jsx(jm,{className:"h-4 w-4"})})]}),m&&g.jsx("div",{className:"mt-2",children:z.length>0?g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:ee,onScroll:R,className:"grid grid-cols-3 gap-2 overflow-y-auto overscroll-contain",style:{maxHeight:"108px"},children:z.map((E,te)=>{if(!E)return null;const oe=C===E;return g.jsx(He,{type:"button",variant:"outline",onClick:()=>w(E),"aria-pressed":oe,disabled:i,className:he("h-9 rounded-lg px-2 text-xs font-medium transition-all",oe?"border-primary bg-primary/20 text-primary shadow-sm hover:bg-primary/10":"border-border bg-elicitationBg text-text-primary hover:bg-primary/10 hover:border-primary/30"),children:g.jsx("span",{children:E})},E||`slot-${te}`)})}),F&&g.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-elicitationBg via-elicitationBg to-transparent pointer-events-none flex items-end justify-center pb-1",children:g.jsxs("button",{type:"button",onClick:q,className:"pointer-events-auto flex items-center gap-1 text-xs font-semibold text-primary hover:text-primary/80 transition-colors",children:[g.jsx(ts,{className:"h-3.5 w-3.5","aria-hidden":!0}),"More slots"]})})]}):f?g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"Fetching slots..."}):g.jsx("p",{className:"text-sm text-text-secondary px-1",children:"No slots available."})}),g.jsxs(He,{type:"button",onClick:P,disabled:!C||i||U,"aria-disabled":!C||U,className:`w-full h-10 gap-2 bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-60 shadow-sm font-semibold ${F?"":" mt-2"}`,children:[e.cta?.title||"Book appointment",g.jsx($x,{className:"h-4 w-4","aria-hidden":!0})]})]}):g.jsx("p",{className:"pt-3 text-sm text-text-secondary text-center",children:"No slots available."}):g.jsx("div",{className:"pt-3",children:g.jsxs(He,{type:"button",variant:"outline",onClick:se,disabled:i||G,className:"w-full h-8 gap-1.5 text-xs border-primary/40 text-primary hover:bg-primary/10 disabled:opacity-60 font-medium rounded-lg",children:[G?"Loading...":"Show available slots",g.jsx(ts,{className:"h-3.5 w-3.5","aria-hidden":!0})]})})]})]}):null}const M4=Object.freeze(Object.defineProperty({__proto__:null,DoctorCard:H4},Symbol.toStringTag,{value:"Module"})),O4={voucher:BS,pharmacy:Dm,hospital:Dm,map:fS,location_pin:Dl,"location pin":Dl,check:Lu,calendar:eS,rupee:oS,dollar:nS,euro:aS};function no({name:e,className:t,size:r=16}){const i=e?.trim().toLowerCase().replace(/\s+/g,"_");if(!i)return null;const s=O4[i];if(s)return g.jsx(s,{className:t,size:r,"aria-hidden":!0})}function $B({card:e,onSelect:t,disabled:r=!1}){const{title:i,tags:s,icon:l,img:c,description:u,banner_text:f,items:h,primary_cta:m,secondary_cta:B}=e,C=v=>{if(!r&&(v.link&&window.open(v.link,"_blank","noopener,noreferrer"),v.text||v.title)){let b=!1;e?.primary_cta?.tool_result&&(b=!0),t?.({message:v.text||v.title,selectedCard:e?.title,selectedComponent:e,selected_id:e.card_id,...b?{tool_result:e.primary_cta?.tool_result}:{}})}},w=!!c;return g.jsxs(Fn,{className:"w-full h-full flex flex-col overflow-hidden rounded-xl border border-black-200 dark:border-white-200 bg-elicitationBg text-card-foreground shadow-none",children:[g.jsxs(Ku,{className:`flex flex-row items-center justify-between gap-3 p-3 ${w?"bg-primary/[20%]":""}`,children:[g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i?g.jsx(qm,{className:"text-base font-bold leading-tight tracking-tight truncate",children:i}):null,s?g.jsx("p",{className:"mt-1 text-sm text-muted-foreground truncate",children:s}):null]}),w?g.jsx("div",{className:"shrink-0",children:g.jsx("img",{src:c,alt:i??"profile",className:"h-16 w-16 rounded-full object-cover border-2 border-background"})}):l?g.jsx("div",{className:"shrink-0 text-muted-foreground",children:g.jsx(no,{name:l,size:24,className:"text-primary"})}):null]}),g.jsxs(Kl,{className:"flex-1 space-y-3 pt-3 overflow-hidden",children:[u?g.jsx("div",{className:"text-sm text-foreground leading-snug prose prose-sm max-w-none prose-strong:font-semibold prose-p:my-0 break-words",children:g.jsx(hs,{children:u})}):null,f?g.jsx("div",{className:"rounded-full px-4 py-2 text-center text-sm font-semibold bg-primary/15 text-primary truncate",children:f}):null,h?.length?g.jsx("div",{className:"flex flex-col gap-y-1",children:h.map((v,b)=>g.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-foreground min-w-0",children:[v.icon?g.jsx(no,{name:v.icon,size:12,className:"shrink-0 text-muted-foreground"}):null,g.jsx("span",{className:"truncate",children:v.text})]},b))}):null]}),m?.title||B?.title?g.jsxs(Jm,{className:"flex justify-center flex-wrap gap-2 pt-0",children:[m&&g.jsxs(He,{type:"button",variant:"default",size:"sm",className:`gap-1.5 truncate ${B?"":"w-full"}`,disabled:r,onClick:()=>C(m),children:[m.icon?g.jsx(no,{name:m.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:m.title})]}),B&&g.jsxs(He,{type:"button",variant:"outline",size:"sm",className:"gap-1.5 truncate",disabled:r,onClick:()=>C(B),children:[B.icon?g.jsx(no,{name:B.icon,size:14,className:"shrink-0"}):null,g.jsx("span",{className:"truncate",children:B.title})]})]}):null]})}function R4({cards:e,onSelect:t,disabled:r=!1,className:i,orientation:s="vertical"}){const[l,c]=x.useState(!1),u=x.useRef(!1);if(!e?.length)return g.jsx("p",{className:"text-sm text-muted-foreground py-2",children:"No options available."});const f=async h=>{u.current||(u.current=!0,c(!0),await t?.(h))};return s!=="horizontal"?g.jsx("div",{className:i??"flex flex-col gap-3 mt-3",children:e.map((h,m)=>g.jsx($B,{card:h,onSelect:f,disabled:r||l},h.card_id||m))}):g.jsx(WB,{count:e.length,renderItem:h=>g.jsx($B,{card:e[h],onSelect:f,disabled:r||l})})}const L4=Object.freeze(Object.defineProperty({__proto__:null,CardList:R4},Symbol.toStringTag,{value:"Module"}));function ew(e){return e.toLowerCase().endsWith(".pdf")}function D4(e){const t=document?.createElement("a");t.href=e,t.download=e.split("/").pop()??"download.pdf",t.target="_blank",t.click(),document?.body?.removeChild(t)}async function k4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ny)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download="card.png",i.click()}async function j4(e){if(!e.current)return;const t=(await Promise.resolve().then(()=>ny)).default,r=await t(e.current,{useCORS:!0}),i=document.createElement("a");i.href=r.toDataURL("image/png"),i.download=`screenshot-${Date.now()}.png`,i.click()}function K4({card:e}){const{title:t,description:r,tags_text:i,banner_text:s,action:l,link:c}=e,u=x.useRef(null),f=c&&!ew(c),h=()=>{l==="screenshot"?j4(u):l==="download"&&(c&&ew(c)?D4(c):k4(u))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx(Fn,{ref:u,className:"overflow-hidden rounded-xl border border-border bg-elicitationBg text-card-foreground shadow-sm",children:g.jsxs(Kl,{className:"p-3 space-y-2",children:[g.jsxs("div",{className:`flex items-start gap-3 ${f?"justify-between":"justify-center"}`,children:[g.jsxs("div",{className:`space-y-2 ${f?"min-w-0 flex-1":"flex flex-col items-center"}`,children:[t&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-sm font-semibold bg-primary text-primary-foreground",children:t}),r&&g.jsx("p",{className:`text-sm text-foreground leading-snug ${f?"":"text-center"}`,children:r}),s&&g.jsx("span",{className:"inline-block rounded-full px-3 py-1 text-xs font-semibold bg-green-600 text-white",children:s})]}),f&&g.jsx("div",{className:"shrink-0 h-24 w-24 rounded-lg overflow-hidden border border-border",children:g.jsx("img",{src:c,alt:t??"media",className:"h-full w-full object-cover"})})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"border-t border-border"}),g.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})}),l&&g.jsx("div",{className:"flex justify-end",children:g.jsxs(He,{type:"button",variant:"outline",size:"sm",className:"rounded-md px-5 gap-1.5",onClick:h,children:[l==="screenshot"?g.jsx(AS,{className:"h-4 w-4"}):g.jsx(rS,{className:"h-4 w-4"}),l==="screenshot"?"Screenshot":"Download"]})})]})}const V4=Object.freeze(Object.defineProperty({__proto__:null,MediaCard:K4},Symbol.toStringTag,{value:"Module"}));function G4({message:e,onDismiss:t}){return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"pointer-events-none absolute inset-0 z-[55] bg-black-600","aria-hidden":!0}),g.jsx("div",{className:"pointer-events-none absolute inset-x-3 top-3 z-[60]",role:"presentation",children:g.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"synapse-disp-toast-msg",className:"pointer-events-auto flex w-full flex-row items-center gap-3 rounded-lg border border-border bg-surface p-3 text-left text-foreground opacity-100",onClick:r=>r.stopPropagation(),children:[g.jsx("p",{id:"synapse-disp-toast-msg",className:"min-w-0 flex-1 text-sm font-medium whitespace-pre-wrap",children:e}),g.jsx("button",{type:"button",onClick:t,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground","aria-label":"Close",children:g.jsx(ns,{className:"h-4 w-4",strokeWidth:2.5})})]})})]})}function z4(){const e=Je(i=>i.toastMessage),t=Je(i=>i.setToastMessage),r=x.useCallback(()=>{t(null)},[t]);return x.useEffect(()=>{if(!e)return;const i=window.setTimeout(r,3e3);return()=>window.clearTimeout(i)},[e,r]),e?g.jsx(G4,{message:e,onDismiss:r}):null}const P4=Object.freeze(Object.defineProperty({__proto__:null,default:z4},Symbol.toStringTag,{value:"Module"}));function Y4({className:e="",onRetry:t,showRetryButton:r,startNewConnection:i,clearError:s,error:l,isConnected:c}){const{isOnline:u}=LB(),[f,h]=x.useState(!0);return x.useEffect(()=>{if(!i&&!r&&!!l){h(!0);const C=setTimeout(()=>h(!1),5e3);return()=>clearTimeout(C)}h(!0)},[l,i,r]),i?g.jsx("div",{className:he("flex flex-col items-center synapse-chat-widget-footer px-3 pt-3 pb-2 ",e),children:g.jsx("p",{className:"text-text-secondary text-sm max-w-sm mx-auto text-center w-250 mx-4 text-balance",children:"The conversation is now closed. Start a new session to continue."})}):r&&l?.title?g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-[#F7B500] rounded-lg",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-[#F7B500] rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:l?.title}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:l?.description??"Please check your connection and try again"})]}),g.jsxs("button",{onClick:()=>{s(),t?.()},className:"px-4 py-2 bg-primary text-primary-foreground text-sm font-semibold rounded-lg hover:bg-primary/90 transition-colors flex items-center gap-2 flex-shrink-0",children:[g.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Retry"]})]})}):c&&u&&!l?.title||!i&&!r&&!f||!c&&!l?.title?null:g.jsx("div",{className:he("mx-4 mb-3 p-2 bg-surface border border-border-subtle rounded-lg transition-opacity duration-500",e),children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center flex-shrink-0",children:g.jsx("span",{className:"text-primary-foreground text-sm font-bold",children:"!"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("div",{className:"text-text-primary font-semibold text-sm",children:u?l?.title:"No internet connection"}),g.jsx("div",{className:"text-text-secondary text-xs mt-1",children:u?l?.description??"Please wait while we try to connect":"Please check your internet connection"})]}),!u&&g.jsx("div",{className:"flex-shrink-0",children:g.jsx("div",{className:"w-6 h-6 border-2 border-primary border-t-transparent rounded-full animate-spin"})})]})})}const X4=Object.freeze(Object.defineProperty({__proto__:null,ConnectionStatus:Y4},Symbol.toStringTag,{value:"Module"}));var Gf=function(e,t){return Gf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},Gf(e,t)};function an(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Gf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var zf=function(){return zf=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},zf.apply(this,arguments)};function ot(e,t,r,i){function s(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function u(m){try{h(i.next(m))}catch(B){c(B)}}function f(m){try{h(i.throw(m))}catch(B){c(B)}}function h(m){m.done?l(m.value):s(m.value).then(u,f)}h((i=i.apply(e,[])).next())})}function at(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,s=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){r.label=h[1];break}if(h[0]===6&&r.label<l[1]){r.label=l[1],l=h;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(h);break}l[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(m){h=[6,m],s=0}finally{i=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function S6(e,t,r){if(arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||t)}for(var Tn=(function(){function e(t,r,i,s){this.left=t,this.top=r,this.width=i,this.height=s}return e.prototype.add=function(t,r,i,s){return new e(this.left+t,this.top+r,this.width+i,this.height+s)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var i=Array.from(r).find(function(s){return s.width!==0});return i?new e(i.left+t.windowBounds.left,i.top+t.windowBounds.top,i.width,i.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),ro=function(e,t){return Tn.fromClientRect(e,t.getBoundingClientRect())},q4=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),s=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new Tn(0,0,i,s)},io=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},QA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},Aw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",J4=typeof Uint8Array>"u"?[]:new Uint8Array(256),ao=0;ao<Aw.length;ao++)J4[Aw.charCodeAt(ao)]=ao;for(var tw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ps=typeof Uint8Array>"u"?[]:new Uint8Array(256),so=0;so<tw.length;so++)ps[tw.charCodeAt(so)]=so;for(var Z4=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=ps[e.charCodeAt(i)],c=ps[e.charCodeAt(i+1)],u=ps[e.charCodeAt(i+2)],f=ps[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},W4=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},$4=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},qr=5,Pf=11,Yf=2,eN=Pf-qr,nw=65536>>qr,AN=1<<qr,Xf=AN-1,tN=1024>>qr,nN=nw+tN,rN=nN,iN=32,aN=rN+iN,sN=65536>>Pf,lN=1<<eN,oN=lN-1,rw=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},cN=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},uN=function(e,t){var r=Z4(e),i=Array.isArray(r)?$4(r):new Uint32Array(r),s=Array.isArray(r)?W4(r):new Uint16Array(r),l=24,c=rw(s,l/2,i[4]/2),u=i[5]===2?rw(s,(l+i[4])/2):cN(i,Math.ceil((l+i[4])/4));return new fN(i[0],i[1],i[2],i[3],c,u)},fN=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>qr],r=(r<<Yf)+(t&Xf),this.data[r];if(t<=65535)return r=this.index[nw+(t-55296>>qr)],r=(r<<Yf)+(t&Xf),this.data[r];if(t<this.highStart)return r=aN-sN+(t>>Pf),r=this.index[r],r+=t>>qr&oN,r=this.index[r],r=(r<<Yf)+(t&Xf),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),iw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dN=typeof Uint8Array>"u"?[]:new Uint8Array(256),lo=0;lo<iw.length;lo++)dN[iw.charCodeAt(lo)]=lo;var hN="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",aw=50,gN=1,sw=2,lw=3,pN=4,mN=5,ow=7,cw=8,uw=9,or=10,qf=11,fw=12,Jf=13,BN=14,ms=15,Zf=16,oo=17,Bs=18,wN=19,dw=20,Wf=21,ws=22,$f=23,_i=24,Qt=25,Cs=26,ys=27,Hi=28,CN=29,Jr=30,yN=31,co=32,uo=33,ed=34,Ad=35,td=36,Es=37,nd=38,fo=39,ho=40,rd=41,hw=42,EN=43,vN=[9001,65288],gw="!",Ge="×",go="÷",id=uN(hN),Nn=[Jr,td],ad=[gN,sw,lw,mN],pw=[or,cw],mw=[ys,Cs],bN=ad.concat(pw),Bw=[nd,fo,ho,ed,Ad],xN=[ms,Jf],SN=function(e,t){t===void 0&&(t="strict");var r=[],i=[],s=[];return e.forEach(function(l,c){var u=id.get(l);if(u>aw?(s.push(!0),u-=aw):s.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return i.push(c),r.push(Zf);if(u===pN||u===qf){if(c===0)return i.push(c),r.push(Jr);var f=r[c-1];return bN.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(Jr))}if(i.push(c),u===yN)return r.push(t==="strict"?Wf:Es);if(u===hw||u===CN)return r.push(Jr);if(u===EN)return l>=131072&&l<=196605||l>=196608&&l<=262141?r.push(Es):r.push(Jr);r.push(u)}),[i,r,s]},sd=function(e,t,r,i){var s=i[r];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var l=r;l<=i.length;){l++;var c=i[l];if(c===t)return!0;if(c!==or)break}if(s===or)for(var l=r;l>0;){l--;var u=i[l];if(Array.isArray(e)?e.indexOf(u)!==-1:e===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===t)return!0;if(c!==or)break}if(u!==or)break}return!1},ww=function(e,t){for(var r=e;r>=0;){var i=t[r];if(i===or)r--;else return i}return 0},QN=function(e,t,r,i,s){if(r[i]===0)return Ge;var l=i-1;if(Array.isArray(s)&&s[l]===!0)return Ge;var c=l-1,u=l+1,f=t[l],h=c>=0?t[c]:0,m=t[u];if(f===sw&&m===lw)return Ge;if(ad.indexOf(f)!==-1)return gw;if(ad.indexOf(m)!==-1||pw.indexOf(m)!==-1)return Ge;if(ww(l,t)===cw)return go;if(id.get(e[l])===qf||(f===co||f===uo)&&id.get(e[u])===qf||f===ow||m===ow||f===uw||[or,Jf,ms].indexOf(f)===-1&&m===uw||[oo,Bs,wN,_i,Hi].indexOf(m)!==-1||ww(l,t)===ws||sd($f,ws,l,t)||sd([oo,Bs],Wf,l,t)||sd(fw,fw,l,t))return Ge;if(f===or)return go;if(f===$f||m===$f)return Ge;if(m===Zf||f===Zf)return go;if([Jf,ms,Wf].indexOf(m)!==-1||f===BN||h===td&&xN.indexOf(f)!==-1||f===Hi&&m===td||m===dw||Nn.indexOf(m)!==-1&&f===Qt||Nn.indexOf(f)!==-1&&m===Qt||f===ys&&[Es,co,uo].indexOf(m)!==-1||[Es,co,uo].indexOf(f)!==-1&&m===Cs||Nn.indexOf(f)!==-1&&mw.indexOf(m)!==-1||mw.indexOf(f)!==-1&&Nn.indexOf(m)!==-1||[ys,Cs].indexOf(f)!==-1&&(m===Qt||[ws,ms].indexOf(m)!==-1&&t[u+1]===Qt)||[ws,ms].indexOf(f)!==-1&&m===Qt||f===Qt&&[Qt,Hi,_i].indexOf(m)!==-1)return Ge;if([Qt,Hi,_i,oo,Bs].indexOf(m)!==-1)for(var B=l;B>=0;){var C=t[B];if(C===Qt)return Ge;if([Hi,_i].indexOf(C)!==-1)B--;else break}if([ys,Cs].indexOf(m)!==-1)for(var B=[oo,Bs].indexOf(f)!==-1?c:l;B>=0;){var C=t[B];if(C===Qt)return Ge;if([Hi,_i].indexOf(C)!==-1)B--;else break}if(nd===f&&[nd,fo,ed,Ad].indexOf(m)!==-1||[fo,ed].indexOf(f)!==-1&&[fo,ho].indexOf(m)!==-1||[ho,Ad].indexOf(f)!==-1&&m===ho||Bw.indexOf(f)!==-1&&[dw,Cs].indexOf(m)!==-1||Bw.indexOf(m)!==-1&&f===ys||Nn.indexOf(f)!==-1&&Nn.indexOf(m)!==-1||f===_i&&Nn.indexOf(m)!==-1||Nn.concat(Qt).indexOf(f)!==-1&&m===ws&&vN.indexOf(e[u])===-1||Nn.concat(Qt).indexOf(m)!==-1&&f===Bs)return Ge;if(f===rd&&m===rd){for(var w=r[l],v=1;w>0&&(w--,t[w]===rd);)v++;if(v%2!==0)return Ge}return f===co&&m===uo?Ge:go},UN=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=SN(e,t.lineBreak),i=r[0],s=r[1],l=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(s=s.map(function(u){return[Qt,Jr,hw].indexOf(u)!==-1?Es:u}));var c=t.wordBreak==="keep-all"?l.map(function(u,f){return u&&e[f]>=19968&&e[f]<=40959}):void 0;return[i,s,c]},FN=(function(){function e(t,r,i,s){this.codePoints=t,this.required=r===gw,this.start=i,this.end=s}return e.prototype.slice=function(){return QA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),TN=function(e,t){var r=io(e),i=UN(r,t),s=i[0],l=i[1],c=i[2],u=r.length,f=0,h=0;return{next:function(){if(h>=u)return{done:!0,value:null};for(var m=Ge;h<u&&(m=QN(r,l,s,++h,c))===Ge;);if(m!==Ge||h===u){var B=new FN(r,m,f,h);return f=h,{value:B,done:!1}}return{done:!0,value:null}}}},NN=1,IN=2,vs=4,Cw=8,po=10,yw=47,bs=92,_N=9,HN=32,mo=34,xs=61,MN=35,ON=36,RN=37,Bo=39,wo=40,Ss=41,LN=95,pt=45,DN=33,kN=60,jN=62,KN=64,VN=91,GN=93,zN=61,PN=123,Co=63,YN=125,Ew=124,XN=126,qN=128,vw=65533,ld=42,Zr=43,JN=44,ZN=58,WN=59,Qs=46,$N=0,eI=8,AI=11,tI=14,nI=31,rI=127,Bn=-1,bw=48,xw=97,Sw=101,iI=102,aI=117,sI=122,Qw=65,Uw=69,Fw=70,lI=85,oI=90,st=function(e){return e>=bw&&e<=57},cI=function(e){return e>=55296&&e<=57343},Mi=function(e){return st(e)||e>=Qw&&e<=Fw||e>=xw&&e<=iI},uI=function(e){return e>=xw&&e<=sI},fI=function(e){return e>=Qw&&e<=oI},dI=function(e){return uI(e)||fI(e)},hI=function(e){return e>=qN},yo=function(e){return e===po||e===_N||e===HN},Eo=function(e){return dI(e)||hI(e)||e===LN},Tw=function(e){return Eo(e)||st(e)||e===pt},gI=function(e){return e>=$N&&e<=eI||e===AI||e>=tI&&e<=nI||e===rI},cr=function(e,t){return e!==bs?!1:t!==po},vo=function(e,t,r){return e===pt?Eo(t)||cr(t,r):Eo(e)?!0:!!(e===bs&&cr(e,t))},od=function(e,t,r){return e===Zr||e===pt?st(t)?!0:t===Qs&&st(r):st(e===Qs?t:e)},pI=function(e){var t=0,r=1;(e[t]===Zr||e[t]===pt)&&(e[t]===pt&&(r=-1),t++);for(var i=[];st(e[t]);)i.push(e[t++]);var s=i.length?parseInt(QA.apply(void 0,i),10):0;e[t]===Qs&&t++;for(var l=[];st(e[t]);)l.push(e[t++]);var c=l.length,u=c?parseInt(QA.apply(void 0,l),10):0;(e[t]===Uw||e[t]===Sw)&&t++;var f=1;(e[t]===Zr||e[t]===pt)&&(e[t]===pt&&(f=-1),t++);for(var h=[];st(e[t]);)h.push(e[t++]);var m=h.length?parseInt(QA.apply(void 0,h),10):0;return r*(s+u*Math.pow(10,-c))*Math.pow(10,f*m)},mI={type:2},BI={type:3},wI={type:4},CI={type:13},yI={type:8},EI={type:21},vI={type:9},bI={type:10},xI={type:11},SI={type:12},QI={type:14},bo={type:23},UI={type:1},FI={type:25},TI={type:24},NI={type:26},II={type:27},_I={type:28},HI={type:29},MI={type:31},cd={type:32},Nw=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(io(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==cd;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case mo:return this.consumeStringToken(mo);case MN:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Tw(r)||cr(i,s)){var l=vo(r,i,s)?IN:NN,c=this.consumeName();return{type:5,value:c,flags:l}}break;case ON:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),CI;break;case Bo:return this.consumeStringToken(Bo);case wo:return mI;case Ss:return BI;case ld:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),QI;break;case Zr:if(od(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case JN:return wI;case pt:var u=t,f=this.peekCodePoint(0),h=this.peekCodePoint(1);if(od(u,f,h))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(vo(u,f,h))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(f===pt&&h===jN)return this.consumeCodePoint(),this.consumeCodePoint(),TI;break;case Qs:if(od(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case yw:if(this.peekCodePoint(0)===ld)for(this.consumeCodePoint();;){var m=this.consumeCodePoint();if(m===ld&&(m=this.consumeCodePoint(),m===yw))return this.consumeToken();if(m===Bn)return this.consumeToken()}break;case ZN:return NI;case WN:return II;case kN:if(this.peekCodePoint(0)===DN&&this.peekCodePoint(1)===pt&&this.peekCodePoint(2)===pt)return this.consumeCodePoint(),this.consumeCodePoint(),FI;break;case KN:var B=this.peekCodePoint(0),C=this.peekCodePoint(1),w=this.peekCodePoint(2);if(vo(B,C,w)){var c=this.consumeName();return{type:7,value:c}}break;case VN:return _I;case bs:if(cr(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case GN:return HI;case zN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),yI;break;case PN:return xI;case YN:return SI;case aI:case lI:var v=this.peekCodePoint(0),b=this.peekCodePoint(1);return v===Zr&&(Mi(b)||b===Co)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Ew:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),vI;if(this.peekCodePoint(0)===Ew)return this.consumeCodePoint(),EI;break;case XN:if(this.peekCodePoint(0)===xs)return this.consumeCodePoint(),bI;break;case Bn:return cd}return yo(t)?(this.consumeWhiteSpace(),MI):st(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Eo(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:QA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();Mi(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var i=!1;r===Co&&t.length<6;)t.push(r),r=this.consumeCodePoint(),i=!0;if(i){var s=parseInt(QA.apply(void 0,t.map(function(f){return f===Co?bw:f})),16),l=parseInt(QA.apply(void 0,t.map(function(f){return f===Co?Fw:f})),16);return{type:30,start:s,end:l}}var c=parseInt(QA.apply(void 0,t),16);if(this.peekCodePoint(0)===pt&&Mi(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];Mi(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var l=parseInt(QA.apply(void 0,u),16);return{type:30,start:c,end:l}}else return{type:30,start:c,end:c}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===wo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wo?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Bn)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Bo||r===mo){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Bn||this.peekCodePoint(0)===Ss)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),bo)}for(;;){var s=this.consumeCodePoint();if(s===Bn||s===Ss)return{type:22,value:QA.apply(void 0,t)};if(yo(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Bn||this.peekCodePoint(0)===Ss?(this.consumeCodePoint(),{type:22,value:QA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),bo);if(s===mo||s===Bo||s===wo||gI(s))return this.consumeBadUrlRemnants(),bo;if(s===bs)if(cr(s,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),bo;else t.push(s)}},e.prototype.consumeWhiteSpace=function(){for(;yo(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ss||t===Bn)return;cr(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,i="";t>0;){var s=Math.min(r,t);i+=QA.apply(void 0,this._value.splice(0,s)),t-=s}return this._value.shift(),i},e.prototype.consumeStringToken=function(t){var r="",i=0;do{var s=this._value[i];if(s===Bn||s===void 0||s===t)return r+=this.consumeStringSlice(i),{type:0,value:r};if(s===po)return this._value.splice(0,i),UI;if(s===bs){var l=this._value[i+1];l!==Bn&&l!==void 0&&(l===po?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):cr(s,l)&&(r+=this.consumeStringSlice(i),r+=QA(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=vs,i=this.peekCodePoint(0);for((i===Zr||i===pt)&&t.push(this.consumeCodePoint());st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(i===Qs&&st(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Cw;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());i=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((i===Uw||i===Sw)&&((s===Zr||s===pt)&&st(l)||st(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Cw;st(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[pI(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],i=t[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(vo(s,l,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return s===RN?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Mi(t)){for(var r=QA(t);Mi(this.peekCodePoint(0))&&r.length<6;)r+=QA(this.consumeCodePoint());yo(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||cI(i)||i>1114111?vw:i}return t===Bn?vw:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(Tw(r))t+=QA(r);else if(cr(r,this.peekCodePoint(0)))t+=QA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e})(),Iw=(function(){function e(t){this._tokens=t}return e.create=function(t){var r=new Nw;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},i=this.consumeToken();;){if(i.type===32||RI(i,t))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?cd:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),Us=function(e){return e.type===15},Oi=function(e){return e.type===17},oA=function(e){return e.type===20},OI=function(e){return e.type===0},ud=function(e,t){return oA(e)&&e.value===t},_w=function(e){return e.type!==31},Ri=function(e){return e.type!==31&&e.type!==4},wn=function(e){var t=[],r=[];return e.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&t.push(r),t},RI=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},ur=function(e){return e.type===17||e.type===15},HA=function(e){return e.type===16||ur(e)},Hw=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},WA={type:17,number:0,flags:vs},fd={type:16,number:50,flags:vs},fr={type:16,number:100,flags:vs},Fs=function(e,t,r){var i=e[0],s=e[1];return[mA(i,t),mA(typeof s<"u"?s:i,r)]},mA=function(e,t){if(e.type===16)return e.number/100*t;if(Us(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Mw="deg",Ow="grad",Rw="rad",Lw="turn",xo={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case Mw:return Math.PI*t.number/180;case Ow:return Math.PI/200*t.number;case Rw:return t.number;case Lw:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},Dw=function(e){return e.type===15&&(e.unit===Mw||e.unit===Ow||e.unit===Rw||e.unit===Lw)},kw=function(e){var t=e.filter(oA).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[WA,WA];case"to top":case"bottom":return Vt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[WA,fr];case"to right":case"left":return Vt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fr,fr];case"to bottom":case"top":return Vt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fr,WA];case"to left":case"right":return Vt(270)}return 0},Vt=function(e){return Math.PI*e/180},dr={name:"color",parse:function(e,t){if(t.type===18){var r=LI[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3);return gr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(t.value.length===4){var i=t.value.substring(0,1),s=t.value.substring(1,2),l=t.value.substring(2,3),c=t.value.substring(3,4);return gr(parseInt(i+i,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(c+c,16)/255)}if(t.value.length===6){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6);return gr(parseInt(i,16),parseInt(s,16),parseInt(l,16),1)}if(t.value.length===8){var i=t.value.substring(0,2),s=t.value.substring(2,4),l=t.value.substring(4,6),c=t.value.substring(6,8);return gr(parseInt(i,16),parseInt(s,16),parseInt(l,16),parseInt(c,16)/255)}}if(t.type===20){var u=In[t.value.toUpperCase()];if(typeof u<"u")return u}return In.TRANSPARENT}},hr=function(e){return(255&e)===0},YA=function(e){var t=255&e,r=255&e>>8,i=255&e>>16,s=255&e>>24;return t<255?"rgba("+s+","+i+","+r+","+t/255+")":"rgb("+s+","+i+","+r+")"},gr=function(e,t,r,i){return(e<<24|t<<16|r<<8|Math.round(i*255)<<0)>>>0},jw=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},Kw=function(e,t){var r=t.filter(Ri);if(r.length===3){var i=r.map(jw),s=i[0],l=i[1],c=i[2];return gr(s,l,c,1)}if(r.length===4){var u=r.map(jw),s=u[0],l=u[1],c=u[2],f=u[3];return gr(s,l,c,f)}return 0};function dd(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<.16666666666666666?(t-e)*r*6+e:r<.5?t:r<.6666666666666666?(t-e)*6*(.6666666666666666-r)+e:e}var Vw=function(e,t){var r=t.filter(Ri),i=r[0],s=r[1],l=r[2],c=r[3],u=(i.type===17?Vt(i.number):xo.parse(e,i))/(Math.PI*2),f=HA(s)?s.number/100:0,h=HA(l)?l.number/100:0,m=typeof c<"u"&&HA(c)?mA(c,1):1;if(f===0)return gr(h*255,h*255,h*255,1);var B=h<=.5?h*(f+1):h+f-h*f,C=h*2-B,w=dd(C,B,u+1/3),v=dd(C,B,u),b=dd(C,B,u-1/3);return gr(w*255,v*255,b*255,m)},LI={hsl:Vw,hsla:Vw,rgb:Kw,rgba:Kw},Ts=function(e,t){return dr.parse(e,Iw.create(t).parseComponentValue())},In={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},DI={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(oA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kI={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},So=function(e,t){var r=dr.parse(e,t[0]),i=t[1];return i&&HA(i)?{color:r,stop:i}:{color:r,stop:null}},Gw=function(e,t){var r=e[0],i=e[e.length-1];r.stop===null&&(r.stop=WA),i.stop===null&&(i.stop=fr);for(var s=[],l=0,c=0;c<e.length;c++){var u=e[c].stop;if(u!==null){var f=mA(u,t);f>l?s.push(f):s.push(l),l=f}else s.push(null)}for(var h=null,c=0;c<s.length;c++){var m=s[c];if(m===null)h===null&&(h=c);else if(h!==null){for(var B=c-h,C=s[h-1],w=(m-C)/(B+1),v=1;v<=B;v++)s[h+v-1]=w*v;h=null}}return e.map(function(b,U){var Q=b.color;return{color:Q,stop:Math.max(Math.min(1,s[U]/t),0)}})},jI=function(e,t,r){var i=t/2,s=r/2,l=mA(e[0],t)-i,c=s-mA(e[1],r);return(Math.atan2(c,l)+Math.PI*2)%(Math.PI*2)},KI=function(e,t,r){var i=typeof e=="number"?e:jI(e,t,r),s=Math.abs(t*Math.sin(i))+Math.abs(r*Math.cos(i)),l=t/2,c=r/2,u=s/2,f=Math.sin(i-Math.PI/2)*u,h=Math.cos(i-Math.PI/2)*u;return[s,l-h,l+h,c-f,c+f]},sn=function(e,t){return Math.sqrt(e*e+t*t)},zw=function(e,t,r,i,s){var l=[[0,0],[0,t],[e,0],[e,t]];return l.reduce(function(c,u){var f=u[0],h=u[1],m=sn(r-f,i-h);return(s?m<c.optimumDistance:m>c.optimumDistance)?{optimumCorner:u,optimumDistance:m}:c},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},VI=function(e,t,r,i,s){var l=0,c=0;switch(e.size){case 0:e.shape===0?l=c=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.min(Math.abs(t),Math.abs(t-i)),c=Math.min(Math.abs(r),Math.abs(r-s)));break;case 2:if(e.shape===0)l=c=Math.min(sn(t,r),sn(t,r-s),sn(t-i,r),sn(t-i,r-s));else if(e.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-s))/Math.min(Math.abs(t),Math.abs(t-i)),f=zw(i,s,t,r,!0),h=f[0],m=f[1];l=sn(h-t,(m-r)/u),c=u*l}break;case 1:e.shape===0?l=c=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(r),Math.abs(r-s)):e.shape===1&&(l=Math.max(Math.abs(t),Math.abs(t-i)),c=Math.max(Math.abs(r),Math.abs(r-s)));break;case 3:if(e.shape===0)l=c=Math.max(sn(t,r),sn(t,r-s),sn(t-i,r),sn(t-i,r-s));else if(e.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-s))/Math.max(Math.abs(t),Math.abs(t-i)),B=zw(i,s,t,r,!1),h=B[0],m=B[1];l=sn(h-t,(m-r)/u),c=u*l}break}return Array.isArray(e.size)&&(l=mA(e.size[0],i),c=e.size.length===2?mA(e.size[1],s):l),[l,c]},GI=function(e,t){var r=Vt(180),i=[];return wn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&c.value==="to"){r=kw(s);return}else if(Dw(c)){r=xo.parse(e,c);return}}var u=So(e,s);i.push(u)}),{angle:r,stops:i,type:1}},Qo=function(e,t){var r=Vt(180),i=[];return wn(t).forEach(function(s,l){if(l===0){var c=s[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=kw(s);return}else if(Dw(c)){r=(xo.parse(e,c)+Vt(270))%Vt(360);return}}var u=So(e,s);i.push(u)}),{angle:r,stops:i,type:1}},zI=function(e,t){var r=Vt(180),i=[],s=1,l=0,c=3,u=[];return wn(t).forEach(function(f,h){var m=f[0];if(h===0){if(oA(m)&&m.value==="linear"){s=1;return}else if(oA(m)&&m.value==="radial"){s=2;return}}if(m.type===18){if(m.name==="from"){var B=dr.parse(e,m.values[0]);i.push({stop:WA,color:B})}else if(m.name==="to"){var B=dr.parse(e,m.values[0]);i.push({stop:fr,color:B})}else if(m.name==="color-stop"){var C=m.values.filter(Ri);if(C.length===2){var B=dr.parse(e,C[1]),w=C[0];Oi(w)&&i.push({stop:{type:16,number:w.number*100,flags:w.flags},color:B})}}}}),s===1?{angle:(r+Vt(180))%Vt(360),stops:i,type:s}:{size:c,shape:l,stops:i,position:u,type:s}},Pw="closest-side",Yw="farthest-side",Xw="closest-corner",qw="farthest-corner",Jw="circle",Zw="ellipse",Ww="cover",$w="contain",PI=function(e,t){var r=0,i=3,s=[],l=[];return wn(t).forEach(function(c,u){var f=!0;if(u===0){var h=!1;f=c.reduce(function(B,C){if(h)if(oA(C))switch(C.value){case"center":return l.push(fd),B;case"top":case"left":return l.push(WA),B;case"right":case"bottom":return l.push(fr),B}else(HA(C)||ur(C))&&l.push(C);else if(oA(C))switch(C.value){case Jw:return r=0,!1;case Zw:return r=1,!1;case"at":return h=!0,!1;case Pw:return i=0,!1;case Ww:case Yw:return i=1,!1;case $w:case Xw:return i=2,!1;case qw:return i=3,!1}else if(ur(C)||HA(C))return Array.isArray(i)||(i=[]),i.push(C),!1;return B},f)}if(f){var m=So(e,c);s.push(m)}}),{size:i,shape:r,stops:s,position:l,type:2}},Uo=function(e,t){var r=0,i=3,s=[],l=[];return wn(t).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(m,B){if(oA(B))switch(B.value){case"center":return l.push(fd),!1;case"top":case"left":return l.push(WA),!1;case"right":case"bottom":return l.push(fr),!1}else if(HA(B)||ur(B))return l.push(B),!1;return m},f):u===1&&(f=c.reduce(function(m,B){if(oA(B))switch(B.value){case Jw:return r=0,!1;case Zw:return r=1,!1;case $w:case Pw:return i=0,!1;case Yw:return i=1,!1;case Xw:return i=2,!1;case Ww:case qw:return i=3,!1}else if(ur(B)||HA(B))return Array.isArray(i)||(i=[]),i.push(B),!1;return m},f)),f){var h=So(e,c);s.push(h)}}),{size:i,shape:r,stops:s,position:l,type:2}},YI=function(e){return e.type===1},XI=function(e){return e.type===2},hd={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var i=eC[t.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return i(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function qI(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!eC[e.name])}var eC={"linear-gradient":GI,"-moz-linear-gradient":Qo,"-ms-linear-gradient":Qo,"-o-linear-gradient":Qo,"-webkit-linear-gradient":Qo,"radial-gradient":PI,"-moz-radial-gradient":Uo,"-ms-radial-gradient":Uo,"-o-radial-gradient":Uo,"-webkit-radial-gradient":Uo,"-webkit-gradient":zI},JI={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(i){return Ri(i)&&qI(i)}).map(function(i){return hd.parse(e,i)})}},ZI={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(oA(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WI={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return wn(t).map(function(r){return r.filter(HA)}).map(Hw)}},$I={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return wn(t).map(function(r){return r.filter(oA).map(function(i){return i.value}).join(" ")}).map(e_)}},e_=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Li;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Li||(Li={}));var A_={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return wn(t).map(function(r){return r.filter(t_)})}},t_=function(e){return oA(e)||HA(e)},Fo=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},n_=Fo("top"),r_=Fo("right"),i_=Fo("bottom"),a_=Fo("left"),To=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return Hw(r.filter(HA))}}},s_=To("top-left"),l_=To("top-right"),o_=To("bottom-right"),c_=To("bottom-left"),No=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},u_=No("top"),f_=No("right"),d_=No("bottom"),h_=No("left"),Io=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return Us(r)?r.number:0}}},g_=Io("top"),p_=Io("right"),m_=Io("bottom"),B_=Io("left"),w_={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},C_={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},y_={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(oA).reduce(function(r,i){return r|E_(i.value)},0)}},E_=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},v_={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},b_={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},_o;(function(e){e.NORMAL="normal",e.STRICT="strict"})(_o||(_o={}));var x_={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return _o.STRICT;case"normal":default:return _o.NORMAL}}},S_={name:"line-height",initialValue:"normal",prefix:!1,type:4},AC=function(e,t){return oA(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:HA(e)?mA(e,t):t},Q_={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:hd.parse(e,t)}},U_={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},gd={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ho=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},F_=Ho("top"),T_=Ho("right"),N_=Ho("bottom"),I_=Ho("left"),__={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(oA).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},H_={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Mo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},M_=Mo("top"),O_=Mo("right"),R_=Mo("bottom"),L_=Mo("left"),D_={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},k_={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},j_={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&ud(t[0],"none")?[]:wn(t).map(function(r){for(var i={color:In.TRANSPARENT,offsetX:WA,offsetY:WA,blur:WA},s=0,l=0;l<r.length;l++){var c=r[l];ur(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:i.blur=c,s++):i.color=dr.parse(e,c)}return i})}},K_={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},V_={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=P_[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},G_=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},z_=function(e){var t=e.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=t[0],i=t[1],s=t[4],l=t[5],c=t[12],u=t[13];return t.length===16?[r,i,s,l,c,u]:null},P_={matrix:G_,matrix3d:z_},tC={type:16,number:50,flags:vs},Y_=[tC,tC],X_={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(HA);return r.length!==2?Y_:[r[0],r[1]]}},q_={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ns;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Ns||(Ns={}));for(var J_={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Ns.BREAK_ALL;case"keep-all":return Ns.KEEP_ALL;case"normal":default:return Ns.NORMAL}}},Z_={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Oi(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},nC={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},W_={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Oi(t)?t.number:1}},$_={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eH={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(oA).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},AH={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],i=[];return t.forEach(function(s){switch(s.type){case 20:case 0:r.push(s.value);break;case 17:r.push(s.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},tH={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},nH={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Oi(t))return t.number;if(oA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},rH={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(oA).map(function(r){return r.value})}},iH={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},KA=function(e,t){return(e&t)!==0},aH={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},sH={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var i=[],s=t.filter(_w),l=0;l<s.length;l++){var c=s[l],u=s[l+1];if(c.type===20){var f=u&&Oi(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},lH={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],i=t.filter(_w),s=0;s<i.length;s++){var l=i[s],c=i[s+1];if(oA(l)&&l.value!=="none"){var u=c&&Oi(c)?c.number:0;r.push({counter:l.value,reset:u})}}return r}},oH={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Us).map(function(r){return nC.parse(e,r)})}},cH={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var i=[],s=t.filter(OI);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var c=s[l].value,u=s[l+1].value;i.push({open:c,close:u})}return i}},rC=function(e,t,r){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?r?i.open:i.close:""},uH={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&ud(t[0],"none")?[]:wn(t).map(function(r){for(var i={color:255,offsetX:WA,offsetY:WA,blur:WA,spread:WA,inset:!1},s=0,l=0;l<r.length;l++){var c=r[l];ud(c,"inset")?i.inset=!0:ur(c)?(s===0?i.offsetX=c:s===1?i.offsetY=c:s===2?i.blur=c:i.spread=c,s++):i.color=dr.parse(e,c)}return i})}},fH={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],i=[];return t.filter(oA).forEach(function(s){switch(s.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(s){i.indexOf(s)===-1&&i.push(s)}),i}},dH={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},hH={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Us(t)?t.number:0}},gH=(function(){function e(t,r){var i,s;this.animationDuration=we(t,oH,r.animationDuration),this.backgroundClip=we(t,DI,r.backgroundClip),this.backgroundColor=we(t,kI,r.backgroundColor),this.backgroundImage=we(t,JI,r.backgroundImage),this.backgroundOrigin=we(t,ZI,r.backgroundOrigin),this.backgroundPosition=we(t,WI,r.backgroundPosition),this.backgroundRepeat=we(t,$I,r.backgroundRepeat),this.backgroundSize=we(t,A_,r.backgroundSize),this.borderTopColor=we(t,n_,r.borderTopColor),this.borderRightColor=we(t,r_,r.borderRightColor),this.borderBottomColor=we(t,i_,r.borderBottomColor),this.borderLeftColor=we(t,a_,r.borderLeftColor),this.borderTopLeftRadius=we(t,s_,r.borderTopLeftRadius),this.borderTopRightRadius=we(t,l_,r.borderTopRightRadius),this.borderBottomRightRadius=we(t,o_,r.borderBottomRightRadius),this.borderBottomLeftRadius=we(t,c_,r.borderBottomLeftRadius),this.borderTopStyle=we(t,u_,r.borderTopStyle),this.borderRightStyle=we(t,f_,r.borderRightStyle),this.borderBottomStyle=we(t,d_,r.borderBottomStyle),this.borderLeftStyle=we(t,h_,r.borderLeftStyle),this.borderTopWidth=we(t,g_,r.borderTopWidth),this.borderRightWidth=we(t,p_,r.borderRightWidth),this.borderBottomWidth=we(t,m_,r.borderBottomWidth),this.borderLeftWidth=we(t,B_,r.borderLeftWidth),this.boxShadow=we(t,uH,r.boxShadow),this.color=we(t,w_,r.color),this.direction=we(t,C_,r.direction),this.display=we(t,y_,r.display),this.float=we(t,v_,r.cssFloat),this.fontFamily=we(t,AH,r.fontFamily),this.fontSize=we(t,tH,r.fontSize),this.fontStyle=we(t,iH,r.fontStyle),this.fontVariant=we(t,rH,r.fontVariant),this.fontWeight=we(t,nH,r.fontWeight),this.letterSpacing=we(t,b_,r.letterSpacing),this.lineBreak=we(t,x_,r.lineBreak),this.lineHeight=we(t,S_,r.lineHeight),this.listStyleImage=we(t,Q_,r.listStyleImage),this.listStylePosition=we(t,U_,r.listStylePosition),this.listStyleType=we(t,gd,r.listStyleType),this.marginTop=we(t,F_,r.marginTop),this.marginRight=we(t,T_,r.marginRight),this.marginBottom=we(t,N_,r.marginBottom),this.marginLeft=we(t,I_,r.marginLeft),this.opacity=we(t,W_,r.opacity);var l=we(t,__,r.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=we(t,H_,r.overflowWrap),this.paddingTop=we(t,M_,r.paddingTop),this.paddingRight=we(t,O_,r.paddingRight),this.paddingBottom=we(t,R_,r.paddingBottom),this.paddingLeft=we(t,L_,r.paddingLeft),this.paintOrder=we(t,fH,r.paintOrder),this.position=we(t,k_,r.position),this.textAlign=we(t,D_,r.textAlign),this.textDecorationColor=we(t,$_,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=we(t,eH,(s=r.textDecorationLine)!==null&&s!==void 0?s:r.textDecoration),this.textShadow=we(t,j_,r.textShadow),this.textTransform=we(t,K_,r.textTransform),this.transform=we(t,V_,r.transform),this.transformOrigin=we(t,X_,r.transformOrigin),this.visibility=we(t,q_,r.visibility),this.webkitTextStrokeColor=we(t,dH,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=we(t,hH,r.webkitTextStrokeWidth),this.wordBreak=we(t,J_,r.wordBreak),this.zIndex=we(t,Z_,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return hr(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return KA(this.display,4)||KA(this.display,33554432)||KA(this.display,268435456)||KA(this.display,536870912)||KA(this.display,67108864)||KA(this.display,134217728)},e})(),pH=(function(){function e(t,r){this.content=we(t,aH,r.content),this.quotes=we(t,cH,r.quotes)}return e})(),iC=(function(){function e(t,r){this.counterIncrement=we(t,sH,r.counterIncrement),this.counterReset=we(t,lH,r.counterReset)}return e})(),we=function(e,t,r){var i=new Nw,s=r!==null&&typeof r<"u"?r.toString():t.initialValue;i.write(s);var l=new Iw(i.read());switch(t.type){case 2:var c=l.parseComponentValue();return t.parse(e,oA(c)?c.value:t.initialValue);case 0:return t.parse(e,l.parseComponentValue());case 1:return t.parse(e,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(t.format){case"angle":return xo.parse(e,l.parseComponentValue());case"color":return dr.parse(e,l.parseComponentValue());case"image":return hd.parse(e,l.parseComponentValue());case"length":var u=l.parseComponentValue();return ur(u)?u:WA;case"length-percentage":var f=l.parseComponentValue();return HA(f)?f:WA;case"time":return nC.parse(e,l.parseComponentValue())}break}},mH="data-html2canvas-debug",BH=function(e){var t=e.getAttribute(mH);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},pd=function(e,t){var r=BH(e);return r===1||t===r},Cn=(function(){function e(t,r){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,pd(r,3),this.styles=new gH(t,window.getComputedStyle(r,null)),Td(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=ro(this.context,r),pd(r,4)&&(this.flags|=16)}return e})(),wH="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",aC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Is=typeof Uint8Array>"u"?[]:new Uint8Array(256),Oo=0;Oo<aC.length;Oo++)Is[aC.charCodeAt(Oo)]=Oo;for(var CH=function(e){var t=e.length*.75,r=e.length,i,s=0,l,c,u,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var h=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),m=Array.isArray(h)?h:new Uint8Array(h);for(i=0;i<r;i+=4)l=Is[e.charCodeAt(i)],c=Is[e.charCodeAt(i+1)],u=Is[e.charCodeAt(i+2)],f=Is[e.charCodeAt(i+3)],m[s++]=l<<2|c>>4,m[s++]=(c&15)<<4|u>>2,m[s++]=(u&3)<<6|f&63;return h},yH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r.push(e[i+1]<<8|e[i]);return r},EH=function(e){for(var t=e.length,r=[],i=0;i<t;i+=4)r.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return r},Wr=5,md=11,Bd=2,vH=md-Wr,sC=65536>>Wr,bH=1<<Wr,wd=bH-1,xH=1024>>Wr,SH=sC+xH,QH=SH,UH=32,FH=QH+UH,TH=65536>>md,NH=1<<vH,IH=NH-1,lC=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},_H=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},HH=function(e,t){var r=CH(e),i=Array.isArray(r)?EH(r):new Uint32Array(r),s=Array.isArray(r)?yH(r):new Uint16Array(r),l=24,c=lC(s,l/2,i[4]/2),u=i[5]===2?lC(s,(l+i[4])/2):_H(i,Math.ceil((l+i[4])/4));return new MH(i[0],i[1],i[2],i[3],c,u)},MH=(function(){function e(t,r,i,s,l,c){this.initialValue=t,this.errorValue=r,this.highStart=i,this.highValueIndex=s,this.index=l,this.data=c}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Wr],r=(r<<Bd)+(t&wd),this.data[r];if(t<=65535)return r=this.index[sC+(t-55296>>Wr)],r=(r<<Bd)+(t&wd),this.data[r];if(t<this.highStart)return r=FH-TH+(t>>md),r=this.index[r],r+=t>>Wr&IH,r=this.index[r],r=(r<<Bd)+(t&wd),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),oC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",OH=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ro=0;Ro<oC.length;Ro++)OH[oC.charCodeAt(Ro)]=Ro;var RH=1,Cd=2,yd=3,cC=4,uC=5,LH=7,fC=8,Ed=9,vd=10,dC=11,hC=12,gC=13,pC=14,bd=15,DH=function(e){for(var t=[],r=0,i=e.length;r<i;){var s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<i){var l=e.charCodeAt(r++);(l&64512)===56320?t.push(((s&1023)<<10)+(l&1023)+65536):(t.push(s),r--)}else t.push(s)}return t},kH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var i=[],s=-1,l="";++s<r;){var c=e[s];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(s+1===r||i.length>16384)&&(l+=String.fromCharCode.apply(String,i),i.length=0)}return l},jH=HH(wH),Gt="×",xd="÷",KH=function(e){return jH.get(e)},VH=function(e,t,r){var i=r-2,s=t[i],l=t[r-1],c=t[r];if(l===Cd&&c===yd)return Gt;if(l===Cd||l===yd||l===cC||c===Cd||c===yd||c===cC)return xd;if(l===fC&&[fC,Ed,dC,hC].indexOf(c)!==-1||(l===dC||l===Ed)&&(c===Ed||c===vd)||(l===hC||l===vd)&&c===vd||c===gC||c===uC||c===LH||l===RH)return Gt;if(l===gC&&c===pC){for(;s===uC;)s=t[--i];if(s===pC)return Gt}if(l===bd&&c===bd){for(var u=0;s===bd;)u++,s=t[--i];if(u%2===0)return Gt}return xd},GH=function(e){var t=DH(e),r=t.length,i=0,s=0,l=t.map(KH);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=Gt;i<r&&(c=VH(t,l,++i))===Gt;);if(c!==Gt||i===r){var u=kH.apply(null,t.slice(s,i));return s=i,{value:u,done:!1}}return{done:!0,value:null}}}},zH=function(e){for(var t=GH(e),r=[],i;!(i=t.next()).done;)i.value&&r.push(i.value.slice());return r},PH=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),r.selectNode(i);var s=r.getBoundingClientRect(),l=Math.round(s.height);if(e.body.removeChild(i),l===t)return!0}}return!1},YH=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var i=t.firstChild,s=io(i.data).map(function(f){return QA(f)}),l=0,c={},u=s.every(function(f,h){r.setStart(i,l),r.setEnd(i,l+f.length);var m=r.getBoundingClientRect();l+=f.length;var B=m.x>c.x||m.y>c.y;return c=m,h===0?!0:B});return e.body.removeChild(t),u},XH=function(){return typeof new Image().crossOrigin<"u"},qH=function(){return typeof new XMLHttpRequest().responseType=="string"},JH=function(e){var t=new Image,r=e.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},mC=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},ZH=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var s=new Image,l=t.toDataURL();s.src=l;var c=Sd(r,r,0,0,s);return i.fillStyle="red",i.fillRect(0,0,r,r),BC(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var h=e.createElement("div");return h.style.backgroundImage="url("+l+")",h.style.height=r+"px",mC(f)?BC(Sd(r,r,0,0,h)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),mC(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Sd=function(e,t,r,i,s){var l="http://www.w3.org/2000/svg",c=document.createElementNS(l,"svg"),u=document.createElementNS(l,"foreignObject");return c.setAttributeNS(null,"width",e.toString()),c.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(s),c},BC=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){return t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},$A={get SUPPORT_RANGE_BOUNDS(){var e=PH(document);return Object.defineProperty($A,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=$A.SUPPORT_RANGE_BOUNDS&&YH(document);return Object.defineProperty($A,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=JH(document);return Object.defineProperty($A,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?ZH(document):Promise.resolve(!1);return Object.defineProperty($A,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=XH();return Object.defineProperty($A,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=qH();return Object.defineProperty($A,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty($A,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty($A,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},_s=(function(){function e(t,r){this.text=t,this.bounds=r}return e})(),WH=function(e,t,r,i){var s=A3(t,r),l=[],c=0;return s.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if($A.SUPPORT_RANGE_BOUNDS){var f=wC(i,c,u.length).getClientRects();if(f.length>1){var h=Qd(u),m=0;h.forEach(function(C){l.push(new _s(C,Tn.fromDOMRectList(e,wC(i,m+c,C.length).getClientRects()))),m+=C.length})}else l.push(new _s(u,Tn.fromDOMRectList(e,f)))}else{var B=i.splitText(u.length);l.push(new _s(u,$H(e,i))),i=B}else $A.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),l},$H=function(e,t){var r=t.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(t.cloneNode(!0));var s=t.parentNode;if(s){s.replaceChild(i,t);var l=ro(e,i);return i.firstChild&&s.replaceChild(i.firstChild,i),l}}return Tn.EMPTY},wC=function(e,t,r){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var s=i.createRange();return s.setStart(e,t),s.setEnd(e,t+r),s},Qd=function(e){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return zH(e)},e3=function(e,t){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(i){return i.segment})}return n3(e,t)},A3=function(e,t){return t.letterSpacing!==0?Qd(e):e3(e,t)},t3=[32,160,4961,65792,65793,4153,4241],n3=function(e,t){for(var r=TN(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),i=[],s,l=function(){if(s.value){var c=s.value.slice(),u=io(c),f="";u.forEach(function(h){t3.indexOf(h)===-1?f+=QA(h):(f.length&&i.push(f),i.push(QA(h)),f="")}),f.length&&i.push(f)}};!(s=r.next()).done;)l();return i},r3=(function(){function e(t,r,i){this.text=i3(r.data,i.textTransform),this.textBounds=WH(t,this.text,i,r)}return e})(),i3=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(a3,s3);case 2:return e.toUpperCase();default:return e}},a3=/(^|\s|:|-|\(|\))([a-z])/g,s3=function(e,t,r){return e.length>0?t+r.toUpperCase():e},CC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.src=i.currentSrc||i.src,s.intrinsicWidth=i.naturalWidth,s.intrinsicHeight=i.naturalHeight,s.context.cache.addImage(s.src),s}return t})(Cn),yC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i,s.intrinsicWidth=i.width,s.intrinsicHeight=i.height,s}return t})(Cn),EC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=new XMLSerializer,c=ro(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(i)),s.intrinsicWidth=i.width.baseVal.value,s.intrinsicHeight=i.height.baseVal.value,s.context.cache.addImage(s.svg),s}return t})(Cn),vC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(Cn),Ud=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.start=i.start,s.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,s}return t})(Cn),l3=[{type:15,flags:0,unit:"px",number:3}],o3=[{type:16,flags:0,number:50}],c3=function(e){return e.width>e.height?new Tn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new Tn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},u3=function(e){var t=e.type===f3?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},Lo="checkbox",Do="radio",f3="password",bC=707406591,Fd=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;switch(s.type=i.type.toLowerCase(),s.checked=i.checked,s.value=u3(i),(s.type===Lo||s.type===Do)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=c3(s.bounds)),s.type){case Lo:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=l3;break;case Do:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=o3;break}return s}return t})(Cn),xC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this,l=i.options[i.selectedIndex||0];return s.value=l&&l.text||"",s}return t})(Cn),SC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.value=i.value,s}return t})(Cn),QC=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;s.src=i.src,s.width=parseInt(i.width,10)||0,s.height=parseInt(i.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){s.tree=FC(r,i.contentWindow.document.documentElement);var l=i.contentWindow.document.documentElement?Ts(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):In.TRANSPARENT,c=i.contentWindow.document.body?Ts(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):In.TRANSPARENT;s.backgroundColor=hr(l)?hr(c)?s.styles.backgroundColor:c:l}}catch{}return s}return t})(Cn),d3=["OL","UL","MENU"],ko=function(e,t,r,i){for(var s=t.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,TC(s)&&s.data.trim().length>0)r.textNodes.push(new r3(e,s,r.styles));else if(Di(s))if(OC(s)&&s.assignedNodes)s.assignedNodes().forEach(function(u){return ko(e,u,r,i)});else{var c=UC(e,s);c.styles.isVisible()&&(h3(s,c,i)?c.flags|=4:g3(c.styles)&&(c.flags|=2),d3.indexOf(s.tagName)!==-1&&(c.flags|=8),r.elements.push(c),s.shadowRoot?ko(e,s.shadowRoot,c,i):!Ko(s)&&!NC(s)&&!Vo(s)&&ko(e,s,c,i))}},UC=function(e,t){return Id(t)?new CC(e,t):IC(t)?new yC(e,t):NC(t)?new EC(e,t):p3(t)?new vC(e,t):m3(t)?new Ud(e,t):B3(t)?new Fd(e,t):Vo(t)?new xC(e,t):Ko(t)?new SC(e,t):HC(t)?new QC(e,t):new Cn(e,t)},FC=function(e,t){var r=UC(e,t);return r.flags|=4,ko(e,t,r,r),r},h3=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Nd(e)&&r.styles.isTransparent()},g3=function(e){return e.isPositioned()||e.isFloating()},TC=function(e){return e.nodeType===Node.TEXT_NODE},Di=function(e){return e.nodeType===Node.ELEMENT_NODE},Td=function(e){return Di(e)&&typeof e.style<"u"&&!jo(e)},jo=function(e){return typeof e.className=="object"},p3=function(e){return e.tagName==="LI"},m3=function(e){return e.tagName==="OL"},B3=function(e){return e.tagName==="INPUT"},w3=function(e){return e.tagName==="HTML"},NC=function(e){return e.tagName==="svg"},Nd=function(e){return e.tagName==="BODY"},IC=function(e){return e.tagName==="CANVAS"},_C=function(e){return e.tagName==="VIDEO"},Id=function(e){return e.tagName==="IMG"},HC=function(e){return e.tagName==="IFRAME"},MC=function(e){return e.tagName==="STYLE"},C3=function(e){return e.tagName==="SCRIPT"},Ko=function(e){return e.tagName==="TEXTAREA"},Vo=function(e){return e.tagName==="SELECT"},OC=function(e){return e.tagName==="SLOT"},RC=function(e){return e.tagName.indexOf("-")>0},y3=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(i){return r.counters[i].pop()})},e.prototype.parse=function(t){var r=this,i=t.counterIncrement,s=t.counterReset,l=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(l=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return l&&s.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},e})(),LC={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},DC={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},E3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},v3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ki=function(e,t,r,i,s,l){return e<t||e>r?Ms(e,s,l.length>0):i.integers.reduce(function(c,u,f){for(;e>=u;)e-=u,c+=i.values[f];return c},"")+l},kC=function(e,t,r,i){var s="";do r||e--,s=i(e)+s,e/=t;while(e*t>=t);return s},UA=function(e,t,r,i,s){var l=r-t+1;return(e<0?"-":"")+(kC(Math.abs(e),l,i,function(c){return QA(Math.floor(c%l)+t)})+s)},$r=function(e,t,r){r===void 0&&(r=". ");var i=t.length;return kC(Math.abs(e),i,!1,function(s){return t[Math.floor(s%i)]})+r},ji=1,pr=2,mr=4,Hs=8,_n=function(e,t,r,i,s,l){if(e<-9999||e>9999)return Ms(e,4,s.length>0);var c=Math.abs(e),u=s;if(c===0)return t[0]+u;for(var f=0;c>0&&f<=4;f++){var h=c%10;h===0&&KA(l,ji)&&u!==""?u=t[h]+u:h>1||h===1&&f===0||h===1&&f===1&&KA(l,pr)||h===1&&f===1&&KA(l,mr)&&e>100||h===1&&f>1&&KA(l,Hs)?u=t[h]+(f>0?r[f-1]:"")+u:h===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(e<0?i:"")+u},jC="十百千萬",KC="拾佰仟萬",VC="マイナス",_d="마이너스",Ms=function(e,t,r){var i=r?". ":"",s=r?"、":"",l=r?", ":"",c=r?" ":"";switch(t){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=UA(e,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return $r(e,"〇一二三四五六七八九",s);case 6:return ki(e,1,3999,LC,3,i).toLowerCase();case 7:return ki(e,1,3999,LC,3,i);case 8:return UA(e,945,969,!1,i);case 9:return UA(e,97,122,!1,i);case 10:return UA(e,65,90,!1,i);case 11:return UA(e,1632,1641,!0,i);case 12:case 49:return ki(e,1,9999,DC,3,i);case 35:return ki(e,1,9999,DC,3,i).toLowerCase();case 13:return UA(e,2534,2543,!0,i);case 14:case 30:return UA(e,6112,6121,!0,i);case 15:return $r(e,"子丑寅卯辰巳午未申酉戌亥",s);case 16:return $r(e,"甲乙丙丁戊己庚辛壬癸",s);case 17:case 48:return _n(e,"零一二三四五六七八九",jC,"負",s,pr|mr|Hs);case 47:return _n(e,"零壹貳參肆伍陸柒捌玖",KC,"負",s,ji|pr|mr|Hs);case 42:return _n(e,"零一二三四五六七八九",jC,"负",s,pr|mr|Hs);case 41:return _n(e,"零壹贰叁肆伍陆柒捌玖",KC,"负",s,ji|pr|mr|Hs);case 26:return _n(e,"〇一二三四五六七八九","十百千万",VC,s,0);case 25:return _n(e,"零壱弐参四伍六七八九","拾百千万",VC,s,ji|pr|mr);case 31:return _n(e,"영일이삼사오육칠팔구","십백천만",_d,l,ji|pr|mr);case 33:return _n(e,"零一二三四五六七八九","十百千萬",_d,l,0);case 32:return _n(e,"零壹貳參四五六七八九","拾百千",_d,l,ji|pr|mr);case 18:return UA(e,2406,2415,!0,i);case 20:return ki(e,1,19999,v3,3,i);case 21:return UA(e,2790,2799,!0,i);case 22:return UA(e,2662,2671,!0,i);case 22:return ki(e,1,10999,E3,3,i);case 23:return $r(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $r(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return UA(e,3302,3311,!0,i);case 28:return $r(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",s);case 29:return $r(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",s);case 34:return UA(e,3792,3801,!0,i);case 37:return UA(e,6160,6169,!0,i);case 38:return UA(e,4160,4169,!0,i);case 39:return UA(e,2918,2927,!0,i);case 40:return UA(e,1776,1785,!0,i);case 43:return UA(e,3046,3055,!0,i);case 44:return UA(e,3174,3183,!0,i);case 45:return UA(e,3664,3673,!0,i);case 46:return UA(e,3872,3881,!0,i);case 3:default:return UA(e,48,57,!0,i)}},GC="data-html2canvas-ignore",zC=(function(){function e(t,r,i){if(this.context=t,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new y3,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var i=this,s=b3(t,r);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset,u=s.contentWindow,f=u.document,h=Q3(s).then(function(){return ot(i,void 0,void 0,function(){var m,B;return at(this,function(C){switch(C.label){case 0:return this.scrolledElements.forEach(N3),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),m=this.options.onclone,B=this.clonedReferenceElement,typeof B>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:C.sent(),C.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,S3(f)]:[3,4];case 3:C.sent(),C.label=4;case 4:return typeof m=="function"?[2,Promise.resolve().then(function(){return m(f,B)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(F3(document.doctype)+"<html></html>"),T3(this.referenceElement.ownerDocument,l,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),h},e.prototype.createElementClone=function(t){if(pd(t,2),IC(t))return this.createCanvasClone(t);if(_C(t))return this.createVideoClone(t);if(MC(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return Id(r)&&(Id(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),RC(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return Hd(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(l,c){return c&&typeof c.cssText=="string"?l+c.cssText:l},""),s=t.cloneNode(!1);return s.textContent=i,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var i=t.ownerDocument.createElement("img");try{return i.src=t.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var l=t.getContext("2d"),c=s.getContext("2d");if(c)if(!this.options.allowTaint&&l)c.putImageData(l.getImageData(0,0,t.width,t.height),0,0);else{var u=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(u){var f=u.getContextAttributes();f?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}c.drawImage(t,0,0)}return s}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var s=t.ownerDocument.createElement("canvas");return s.width=t.offsetWidth,s.height=t.offsetHeight,s},e.prototype.appendChildNode=function(t,r,i){(!Di(r)||!C3(r)&&!r.hasAttribute(GC)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Di(r)||!MC(r))&&t.appendChild(this.cloneNode(r,i))},e.prototype.cloneChildNodes=function(t,r,i){for(var s=this,l=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;l;l=l.nextSibling)if(Di(l)&&OC(l)&&typeof l.assignedNodes=="function"){var c=l.assignedNodes();c.length&&c.forEach(function(u){return s.appendChildNode(r,u,i)})}else this.appendChildNode(r,l,i)},e.prototype.cloneNode=function(t,r){if(TC(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var i=t.ownerDocument.defaultView;if(i&&Di(t)&&(Td(t)||jo(t))){var s=this.createElementClone(t);s.style.transitionProperty="none";var l=i.getComputedStyle(t),c=i.getComputedStyle(t,":before"),u=i.getComputedStyle(t,":after");this.referenceElement===t&&Td(s)&&(this.clonedReferenceElement=s),Nd(s)&&H3(s);var f=this.counters.parse(new iC(this.context,l)),h=this.resolvePseudoContent(t,s,c,Os.BEFORE);RC(t)&&(r=!0),_C(t)||this.cloneChildNodes(t,s,r),h&&s.insertBefore(h,s.firstChild);var m=this.resolvePseudoContent(t,s,u,Os.AFTER);return m&&s.appendChild(m),this.counters.pop(f),(l&&(this.options.copyStyles||jo(t))&&!HC(t)||r)&&Hd(l,s),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([s,t.scrollLeft,t.scrollTop]),(Ko(t)||Vo(t))&&(Ko(s)||Vo(s))&&(s.value=t.value),s}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,i,s){var l=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new iC(this.context,i));var f=new pH(this.context,i),h=u.createElement("html2canvaspseudoelement");Hd(i,h),f.content.forEach(function(B){if(B.type===0)h.appendChild(u.createTextNode(B.value));else if(B.type===22){var C=u.createElement("img");C.src=B.value,C.style.opacity="1",h.appendChild(C)}else if(B.type===18){if(B.name==="attr"){var w=B.values.filter(oA);w.length&&h.appendChild(u.createTextNode(t.getAttribute(w[0].value)||""))}else if(B.name==="counter"){var v=B.values.filter(Ri),b=v[0],U=v[1];if(b&&oA(b)){var Q=l.counters.getCounterValue(b.value),T=U&&oA(U)?gd.parse(l.context,U.value):3;h.appendChild(u.createTextNode(Ms(Q,T,!1)))}}else if(B.name==="counters"){var O=B.values.filter(Ri),b=O[0],G=O[1],U=O[2];if(b&&oA(b)){var k=l.counters.getCounterValues(b.value),F=U&&oA(U)?gd.parse(l.context,U.value):3,H=G&&G.type===0?G.value:"",L=k.map(function(ee){return Ms(ee,F,!1)}).join(H);h.appendChild(u.createTextNode(L))}}}else if(B.type===20)switch(B.value){case"open-quote":h.appendChild(u.createTextNode(rC(f.quotes,l.quoteDepth++,!0)));break;case"close-quote":h.appendChild(u.createTextNode(rC(f.quotes,--l.quoteDepth,!1)));break;default:h.appendChild(u.createTextNode(B.value))}}),h.className=Md+" "+Od;var m=s===Os.BEFORE?" "+Md:" "+Od;return jo(r)?r.className.baseValue+=m:r.className+=m,h}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),Os;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Os||(Os={}));var b3=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(GC,"true"),e.body.appendChild(r),r},x3=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},S3=function(e){return Promise.all([].slice.call(e.images,0).map(x3))},Q3=function(e){return new Promise(function(t,r){var i=e.contentWindow;if(!i)return r("No window assigned for iframe");var s=i.document;i.onload=e.onload=function(){i.onload=e.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),t(e))},50)}})},U3=["all","d","content"],Hd=function(e,t){for(var r=e.length-1;r>=0;r--){var i=e.item(r);U3.indexOf(i)===-1&&t.style.setProperty(i,e.getPropertyValue(i))}return t},F3=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},T3=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},N3=function(e){var t=e[0],r=e[1],i=e[2];t.scrollLeft=r,t.scrollTop=i},I3=":before",_3=":after",Md="___html2canvas___pseudoelement_before",Od="___html2canvas___pseudoelement_after",PC=`{
|
|
103
103
|
content: "" !important;
|
|
104
104
|
display: none !important;
|
|
105
|
-
}`,H3=function(e){M3(e,"."+
|
|
106
|
-
.`+Md+_3+PC)},M3=function(e,t){var r=e.ownerDocument;if(r){var i=r.createElement("style");i.textContent=t,e.appendChild(i)}},YC=(function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),O3=(function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(Rd(t)||k3(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return ft(this,void 0,void 0,function(){var r,i,s,l,c=this;return lt(this,function(u){switch(u.label){case 0:return r=YC.isSameOrigin(t),i=!Od(t)&&this._options.useCORS===!0&&et.SUPPORT_CORS_IMAGES&&!r,s=!Od(t)&&!r&&!Rd(t)&&typeof this._options.proxy=="string"&&et.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!Od(t)&&!Rd(t)&&!s&&!i?[2]:(l=t,s?[4,this.proxy(l)]:[3,2]);case 1:l=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(f,h){var m=new Image;m.onload=function(){return f(m)},m.onerror=h,(j3(l)||i)&&(m.crossOrigin="anonymous"),m.src=l,m.complete===!0&&setTimeout(function(){return f(m)},500),c._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(l,c){var u=et.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")l(f.response);else{var B=new FileReader;B.addEventListener("load",function(){return l(B.result)},!1),B.addEventListener("error",function(C){return c(C)},!1),B.readAsDataURL(f.response)}else c("Failed to proxy resource "+s+" with status code "+f.status)},f.onerror=c;var h=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var m=r._options.imageTimeout;f.timeout=m,f.ontimeout=function(){return c("Timed out ("+m+"ms) proxying "+s)}}f.send()})},e})(),R3=/^data:image\/svg\+xml/i,L3=/^data:image\/.*;base64,/i,D3=/^data:image\/.*/i,k3=function(e){return et.SUPPORT_SVG_DRAWING||!K3(e)},Od=function(e){return D3.test(e)},j3=function(e){return L3.test(e)},Rd=function(e){return e.substr(0,4)==="blob"},K3=function(e){return e.substr(-3).toLowerCase()==="svg"||R3.test(e)},me=(function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e})(),ki=function(e,t,r){return new me(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},zo=(function(){function e(t,r,i,s){this.type=1,this.start=t,this.startControl=r,this.endControl=i,this.end=s}return e.prototype.subdivide=function(t,r){var i=ki(this.start,this.startControl,t),s=ki(this.startControl,this.endControl,t),l=ki(this.endControl,this.end,t),c=ki(i,s,t),u=ki(s,l,t),f=ki(c,u,t);return r?new e(this.start,i,c,f):new e(f,u,l,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),Kt=function(e){return e.type===1},V3=(function(){function e(t){var r=t.styles,i=t.bounds,s=Fs(r.borderTopLeftRadius,i.width,i.height),l=s[0],c=s[1],u=Fs(r.borderTopRightRadius,i.width,i.height),f=u[0],h=u[1],m=Fs(r.borderBottomRightRadius,i.width,i.height),B=m[0],C=m[1],w=Fs(r.borderBottomLeftRadius,i.width,i.height),v=w[0],b=w[1],U=[];U.push((l+f)/i.width),U.push((v+B)/i.width),U.push((c+b)/i.height),U.push((h+C)/i.height);var Q=Math.max.apply(Math,U);Q>1&&(l/=Q,c/=Q,f/=Q,h/=Q,B/=Q,C/=Q,v/=Q,b/=Q);var I=i.width-f,M=i.height-C,z=i.width-B,j=i.height-b,F=r.borderTopWidth,H=r.borderRightWidth,k=r.borderBottomWidth,O=r.borderLeftWidth,$=pA(r.paddingTop,t.bounds.width),ee=pA(r.paddingRight,t.bounds.width),V=pA(r.paddingBottom,t.bounds.width),se=pA(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||c>0?vA(i.left+O/3,i.top+F/3,l-O/3,c-F/3,tA.TOP_LEFT):new me(i.left+O/3,i.top+F/3),this.topRightBorderDoubleOuterBox=l>0||c>0?vA(i.left+I,i.top+F/3,f-H/3,h-F/3,tA.TOP_RIGHT):new me(i.left+i.width-H/3,i.top+F/3),this.bottomRightBorderDoubleOuterBox=B>0||C>0?vA(i.left+z,i.top+M,B-H/3,C-k/3,tA.BOTTOM_RIGHT):new me(i.left+i.width-H/3,i.top+i.height-k/3),this.bottomLeftBorderDoubleOuterBox=v>0||b>0?vA(i.left+O/3,i.top+j,v-O/3,b-k/3,tA.BOTTOM_LEFT):new me(i.left+O/3,i.top+i.height-k/3),this.topLeftBorderDoubleInnerBox=l>0||c>0?vA(i.left+O*2/3,i.top+F*2/3,l-O*2/3,c-F*2/3,tA.TOP_LEFT):new me(i.left+O*2/3,i.top+F*2/3),this.topRightBorderDoubleInnerBox=l>0||c>0?vA(i.left+I,i.top+F*2/3,f-H*2/3,h-F*2/3,tA.TOP_RIGHT):new me(i.left+i.width-H*2/3,i.top+F*2/3),this.bottomRightBorderDoubleInnerBox=B>0||C>0?vA(i.left+z,i.top+M,B-H*2/3,C-k*2/3,tA.BOTTOM_RIGHT):new me(i.left+i.width-H*2/3,i.top+i.height-k*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||b>0?vA(i.left+O*2/3,i.top+j,v-O*2/3,b-k*2/3,tA.BOTTOM_LEFT):new me(i.left+O*2/3,i.top+i.height-k*2/3),this.topLeftBorderStroke=l>0||c>0?vA(i.left+O/2,i.top+F/2,l-O/2,c-F/2,tA.TOP_LEFT):new me(i.left+O/2,i.top+F/2),this.topRightBorderStroke=l>0||c>0?vA(i.left+I,i.top+F/2,f-H/2,h-F/2,tA.TOP_RIGHT):new me(i.left+i.width-H/2,i.top+F/2),this.bottomRightBorderStroke=B>0||C>0?vA(i.left+z,i.top+M,B-H/2,C-k/2,tA.BOTTOM_RIGHT):new me(i.left+i.width-H/2,i.top+i.height-k/2),this.bottomLeftBorderStroke=v>0||b>0?vA(i.left+O/2,i.top+j,v-O/2,b-k/2,tA.BOTTOM_LEFT):new me(i.left+O/2,i.top+i.height-k/2),this.topLeftBorderBox=l>0||c>0?vA(i.left,i.top,l,c,tA.TOP_LEFT):new me(i.left,i.top),this.topRightBorderBox=f>0||h>0?vA(i.left+I,i.top,f,h,tA.TOP_RIGHT):new me(i.left+i.width,i.top),this.bottomRightBorderBox=B>0||C>0?vA(i.left+z,i.top+M,B,C,tA.BOTTOM_RIGHT):new me(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=v>0||b>0?vA(i.left,i.top+j,v,b,tA.BOTTOM_LEFT):new me(i.left,i.top+i.height),this.topLeftPaddingBox=l>0||c>0?vA(i.left+O,i.top+F,Math.max(0,l-O),Math.max(0,c-F),tA.TOP_LEFT):new me(i.left+O,i.top+F),this.topRightPaddingBox=f>0||h>0?vA(i.left+Math.min(I,i.width-H),i.top+F,I>i.width+H?0:Math.max(0,f-H),Math.max(0,h-F),tA.TOP_RIGHT):new me(i.left+i.width-H,i.top+F),this.bottomRightPaddingBox=B>0||C>0?vA(i.left+Math.min(z,i.width-O),i.top+Math.min(M,i.height-k),Math.max(0,B-H),Math.max(0,C-k),tA.BOTTOM_RIGHT):new me(i.left+i.width-H,i.top+i.height-k),this.bottomLeftPaddingBox=v>0||b>0?vA(i.left+O,i.top+Math.min(j,i.height-k),Math.max(0,v-O),Math.max(0,b-k),tA.BOTTOM_LEFT):new me(i.left+O,i.top+i.height-k),this.topLeftContentBox=l>0||c>0?vA(i.left+O+se,i.top+F+$,Math.max(0,l-(O+se)),Math.max(0,c-(F+$)),tA.TOP_LEFT):new me(i.left+O+se,i.top+F+$),this.topRightContentBox=f>0||h>0?vA(i.left+Math.min(I,i.width+O+se),i.top+F+$,I>i.width+O+se?0:f-O+se,h-(F+$),tA.TOP_RIGHT):new me(i.left+i.width-(H+ee),i.top+F+$),this.bottomRightContentBox=B>0||C>0?vA(i.left+Math.min(z,i.width-(O+se)),i.top+Math.min(M,i.height+F+$),Math.max(0,B-(H+ee)),C-(k+V),tA.BOTTOM_RIGHT):new me(i.left+i.width-(H+ee),i.top+i.height-(k+V)),this.bottomLeftContentBox=v>0||b>0?vA(i.left+O+se,i.top+j,Math.max(0,v-(O+se)),b-(k+V),tA.BOTTOM_LEFT):new me(i.left+O+se,i.top+i.height-(k+V))}return e})(),tA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(tA||(tA={}));var vA=function(e,t,r,i,s){var l=4*((Math.sqrt(2)-1)/3),c=r*l,u=i*l,f=e+r,h=t+i;switch(s){case tA.TOP_LEFT:return new zo(new me(e,h),new me(e,h-u),new me(f-c,t),new me(f,t));case tA.TOP_RIGHT:return new zo(new me(e,t),new me(e+c,t),new me(f,h-u),new me(f,h));case tA.BOTTOM_RIGHT:return new zo(new me(f,t),new me(f,t+u),new me(e+c,h),new me(e,h));case tA.BOTTOM_LEFT:default:return new zo(new me(f,h),new me(f-c,h),new me(e,t+u),new me(e,t))}},Po=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},G3=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Yo=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},z3=(function(){function e(t,r,i){this.offsetX=t,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return e})(),Xo=(function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e})(),P3=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),Y3=function(e){return e.type===0},XC=function(e){return e.type===1},X3=function(e){return e.type===2},qC=function(e,t){return e.length===t.length?e.some(function(r,i){return r===t[i]}):!1},q3=function(e,t,r,i,s){return e.map(function(l,c){switch(c){case 0:return l.add(t,r);case 1:return l.add(t+i,r);case 2:return l.add(t+i,r+s);case 3:return l.add(t,r+s)}return l})},JC=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),ZC=(function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new V3(this.container),this.container.styles.opacity<1&&this.effects.push(new P3(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new z3(i,s,l))}if(this.container.styles.overflowX!==0){var c=Po(this.curves),u=Yo(this.curves);qC(c,u)?this.effects.push(new Xo(c,6)):(this.effects.push(new Xo(c,2)),this.effects.push(new Xo(u,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,s=this.effects.slice(0);i;){var l=i.effects.filter(function(f){return!XC(f)});if(r||i.container.styles.position!==0||!i.parent){if(s.unshift.apply(s,l),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=Po(i.curves),u=Yo(i.curves);qC(c,u)||s.unshift(new Xo(u,6))}}else s.unshift.apply(s,l);i=i.parent}return s.filter(function(f){return KA(f.target,t)})},e})(),Ld=function(e,t,r,i){e.container.elements.forEach(function(s){var l=KA(s.flags,4),c=KA(s.flags,2),u=new ZC(s,e);KA(s.styles.display,2048)&&i.push(u);var f=KA(s.flags,8)?[]:i;if(l||c){var h=l||s.styles.isPositioned()?r:t,m=new JC(u);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var B=s.styles.zIndex.order;if(B<0){var C=0;h.negativeZIndex.some(function(v,b){return B>v.element.container.styles.zIndex.order?(C=b,!1):C>0}),h.negativeZIndex.splice(C,0,m)}else if(B>0){var w=0;h.positiveZIndex.some(function(v,b){return B>=v.element.container.styles.zIndex.order?(w=b+1,!1):w>0}),h.positiveZIndex.splice(w,0,m)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else s.styles.isFloating()?h.nonPositionedFloats.push(m):h.nonPositionedInlineLevel.push(m);Ld(u,m,l?m:r,f)}else s.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),Ld(u,t,r,f);KA(s.flags,8)&&WC(s,f)})},WC=function(e,t){for(var r=e instanceof Qd?e.start:1,i=e instanceof Qd?e.reversed:!1,s=0;s<t.length;s++){var l=t[s];l.container instanceof vC&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=Ms(r,l.container.styles.listStyleType,!0),r+=i?-1:1}},J3=function(e){var t=new ZC(e,null),r=new JC(t),i=[];return Ld(t,r,r,i),WC(t.container,i),r},$C=function(e,t){switch(t){case 0:return Vt(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Vt(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Vt(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Vt(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Z3=function(e,t){switch(t){case 0:return Vt(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Vt(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Vt(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Vt(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},W3=function(e,t){switch(t){case 0:return Vt(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Vt(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Vt(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Vt(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},$3=function(e,t){switch(t){case 0:return qo(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return qo(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return qo(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return qo(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},qo=function(e,t){var r=[];return Kt(e)?r.push(e.subdivide(.5,!1)):r.push(e),Kt(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Vt=function(e,t,r,i){var s=[];return Kt(e)?s.push(e.subdivide(.5,!1)):s.push(e),Kt(r)?s.push(r.subdivide(.5,!0)):s.push(r),Kt(i)?s.push(i.subdivide(.5,!0).reverse()):s.push(i),Kt(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},ey=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Jo=function(e){var t=e.styles,r=e.bounds,i=pA(t.paddingLeft,r.width),s=pA(t.paddingRight,r.width),l=pA(t.paddingTop,r.width),c=pA(t.paddingBottom,r.width);return r.add(i+t.borderLeftWidth,l+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+s),-(t.borderTopWidth+t.borderBottomWidth+l+c))},eM=function(e,t){return e===0?t.bounds:e===2?Jo(t):ey(t)},AM=function(e,t){return e===0?t.bounds:e===2?Jo(t):ey(t)},Dd=function(e,t,r){var i=eM(Ki(e.styles.backgroundOrigin,t),e),s=AM(Ki(e.styles.backgroundClip,t),e),l=tM(Ki(e.styles.backgroundSize,t),r,i),c=l[0],u=l[1],f=Fs(Ki(e.styles.backgroundPosition,t),i.width-c,i.height-u),h=nM(Ki(e.styles.backgroundRepeat,t),f,l,i,s),m=Math.round(i.left+f[0]),B=Math.round(i.top+f[1]);return[h,m,B,c,u]},ji=function(e){return sA(e)&&e.value===Oi.AUTO},Zo=function(e){return typeof e=="number"},tM=function(e,t,r){var i=t[0],s=t[1],l=t[2],c=e[0],u=e[1];if(!c)return[0,0];if(MA(c)&&u&&MA(u))return[pA(c,r.width),pA(u,r.height)];var f=Zo(l);if(sA(c)&&(c.value===Oi.CONTAIN||c.value===Oi.COVER)){if(Zo(l)){var h=r.width/r.height;return h<l!=(c.value===Oi.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return[r.width,r.height]}var m=Zo(i),B=Zo(s),C=m||B;if(ji(c)&&(!u||ji(u))){if(m&&B)return[i,s];if(!f&&!C)return[r.width,r.height];if(C&&f){var w=m?i:s*l,v=B?s:i/l;return[w,v]}var b=m?i:r.width,U=B?s:r.height;return[b,U]}if(f){var Q=0,I=0;return MA(c)?Q=pA(c,r.width):MA(u)&&(I=pA(u,r.height)),ji(c)?Q=I*l:(!u||ji(u))&&(I=Q/l),[Q,I]}var M=null,z=null;if(MA(c)?M=pA(c,r.width):u&&MA(u)&&(z=pA(u,r.height)),M!==null&&(!u||ji(u))&&(z=m&&B?M/i*s:r.height),z!==null&&ji(c)&&(M=m&&B?z/s*i:r.width),M!==null&&z!==null)return[M,z];throw new Error("Unable to calculate background-size for element")},Ki=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},nM=function(e,t,r,i,s){var l=t[0],c=t[1],u=r[0],f=r[1];switch(e){case 2:return[new me(Math.round(i.left),Math.round(i.top+c)),new me(Math.round(i.left+i.width),Math.round(i.top+c)),new me(Math.round(i.left+i.width),Math.round(f+i.top+c)),new me(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new me(Math.round(i.left+l),Math.round(i.top)),new me(Math.round(i.left+l+u),Math.round(i.top)),new me(Math.round(i.left+l+u),Math.round(i.height+i.top)),new me(Math.round(i.left+l),Math.round(i.height+i.top))];case 1:return[new me(Math.round(i.left+l),Math.round(i.top+c)),new me(Math.round(i.left+l+u),Math.round(i.top+c)),new me(Math.round(i.left+l+u),Math.round(i.top+c+f)),new me(Math.round(i.left+l),Math.round(i.top+c+f))];default:return[new me(Math.round(s.left),Math.round(s.top)),new me(Math.round(s.left+s.width),Math.round(s.top)),new me(Math.round(s.left+s.width),Math.round(s.height+s.top)),new me(Math.round(s.left),Math.round(s.height+s.top))]}},rM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ay="Hidden Text",iM=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var i=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),s.src=rM,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=t,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(Ay)),i.appendChild(l),i.appendChild(s);var u=s.offsetTop-l.offsetTop+2;i.removeChild(l),i.appendChild(this._document.createTextNode(Ay)),i.style.lineHeight="normal",s.style.verticalAlign="super";var f=s.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},e.prototype.getMetrics=function(t,r){var i=t+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(t,r)),this._data[i]},e})(),ty=(function(){function e(t,r){this.context=t,this.options=r}return e})(),aM=1e4,sM=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s._activeEffects=[],s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),i.canvas||(s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px"),s.fontMetrics=new iM(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),s}return t.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return i.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),X3(r)&&(this.ctx.globalAlpha=r.opacity),Y3(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),XC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return ft(this,void 0,void 0,function(){var i;return lt(this,function(s){switch(s.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return ft(this,void 0,void 0,function(){return lt(this,function(i){switch(i.label){case 0:return KA(r.container.flags,16),r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,i,s){var l=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var c=Sd(r.text);c.reduce(function(u,f){return l.ctx.fillText(f,u,r.bounds.top+s),u+l.ctx.measureText(f).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),s=fM(r.fontFamily).join(", "),l=Us(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,l,s].join(" "),s,l]},t.prototype.renderTextNode=function(r,i){return ft(this,void 0,void 0,function(){var s,l,c,u,f,h,m,B,C=this;return lt(this,function(w){return s=this.createFontStyle(i),l=s[0],c=s[1],u=s[2],this.ctx.font=l,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),h=f.baseline,m=f.middle,B=i.paintOrder,r.textBounds.forEach(function(v){B.forEach(function(b){switch(b){case 0:C.ctx.fillStyle=YA(i.color),C.renderTextWithLetterSpacing(v,i.letterSpacing,h);var U=i.textShadow;U.length&&v.text.trim().length&&(U.slice(0).reverse().forEach(function(Q){C.ctx.shadowColor=YA(Q.color),C.ctx.shadowOffsetX=Q.offsetX.number*C.options.scale,C.ctx.shadowOffsetY=Q.offsetY.number*C.options.scale,C.ctx.shadowBlur=Q.blur.number,C.renderTextWithLetterSpacing(v,i.letterSpacing,h)}),C.ctx.shadowColor="",C.ctx.shadowOffsetX=0,C.ctx.shadowOffsetY=0,C.ctx.shadowBlur=0),i.textDecorationLine.length&&(C.ctx.fillStyle=YA(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(Q){switch(Q){case 1:C.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+h),v.bounds.width,1);break;case 2:C.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:C.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+m),v.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&v.text.trim().length&&(C.ctx.strokeStyle=YA(i.webkitTextStrokeColor),C.ctx.lineWidth=i.webkitTextStrokeWidth,C.ctx.lineJoin=window.chrome?"miter":"round",C.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+h)),C.ctx.strokeStyle="",C.ctx.lineWidth=0,C.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,i,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=Jo(r),c=Yo(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return ft(this,void 0,void 0,function(){var i,s,l,c,u,f,I,I,h,m,B,C,z,w,v,j,b,U,Q,I,M,z,j;return lt(this,function(F){switch(F.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,s=r.curves,l=i.styles,c=0,u=i.textNodes,F.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,l)]):[3,4];case 2:F.sent(),F.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof CC))return[3,8];F.label=5;case 5:return F.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return I=F.sent(),this.renderReplacedElement(i,s,I),[3,8];case 7:return F.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof yC&&this.renderReplacedElement(i,s,i.canvas),!(i instanceof EC))return[3,12];F.label=9;case 9:return F.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return I=F.sent(),this.renderReplacedElement(i,s,I),[3,12];case 11:return F.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof QC&&i.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,h.render(i.tree)]):[3,14];case 13:m=F.sent(),i.width&&i.height&&this.ctx.drawImage(m,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),F.label=14;case 14:if(i instanceof Ud&&(B=Math.min(i.bounds.width,i.bounds.height),i.type===Do?i.checked&&(this.ctx.save(),this.path([new me(i.bounds.left+B*.39363,i.bounds.top+B*.79),new me(i.bounds.left+B*.16,i.bounds.top+B*.5549),new me(i.bounds.left+B*.27347,i.bounds.top+B*.44071),new me(i.bounds.left+B*.39694,i.bounds.top+B*.5649),new me(i.bounds.left+B*.72983,i.bounds.top+B*.23),new me(i.bounds.left+B*.84,i.bounds.top+B*.34085),new me(i.bounds.left+B*.39363,i.bounds.top+B*.79)]),this.ctx.fillStyle=YA(bC),this.ctx.fill(),this.ctx.restore()):i.type===ko&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+B/2,i.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=YA(bC),this.ctx.fill(),this.ctx.restore())),lM(i)&&i.value.length){switch(C=this.createFontStyle(l),z=C[0],w=C[1],v=this.fontMetrics.getMetrics(z,w).baseline,this.ctx.font=z,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cM(i.styles.textAlign),j=Jo(i),b=0,i.styles.textAlign){case 1:b+=j.width/2;break;case 2:b+=j.width;break}U=j.add(b,0,0,-j.height/2+1),this.ctx.save(),this.path([new me(j.left,j.top),new me(j.left+j.width,j.top),new me(j.left+j.width,j.top+j.height),new me(j.left,j.top+j.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new _s(i.value,U),l.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!KA(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(Q=i.styles.listStyleImage,Q.type!==0)return[3,18];I=void 0,M=Q.url,F.label=15;case 15:return F.trys.push([15,17,,18]),[4,this.context.cache.match(M)];case 16:return I=F.sent(),this.ctx.drawImage(I,i.bounds.left-(I.width+10),i.bounds.top),[3,18];case 17:return F.sent(),this.context.logger.error("Error loading list-style-image "+M),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(z=this.createFontStyle(l)[0],this.ctx.font=z,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",j=new Nn(i.bounds.left,i.bounds.top+pA(i.styles.paddingTop,i.bounds.width),i.bounds.width,AC(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new _s(r.listValue,j),l.letterSpacing,AC(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),F.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return ft(this,void 0,void 0,function(){var i,s,Q,l,c,Q,u,f,Q,h,m,Q,B,C,Q,w,v,Q,b,U,Q;return lt(this,function(I){switch(I.label){case 0:return KA(r.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:I.sent(),i=0,s=r.negativeZIndex,I.label=2;case 2:return i<s.length?(Q=s[i],[4,this.renderStack(Q)]):[3,5];case 3:I.sent(),I.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:I.sent(),l=0,c=r.nonInlineLevel,I.label=7;case 7:return l<c.length?(Q=c[l],[4,this.renderNode(Q)]):[3,10];case 8:I.sent(),I.label=9;case 9:return l++,[3,7];case 10:u=0,f=r.nonPositionedFloats,I.label=11;case 11:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,14];case 12:I.sent(),I.label=13;case 13:return u++,[3,11];case 14:h=0,m=r.nonPositionedInlineLevel,I.label=15;case 15:return h<m.length?(Q=m[h],[4,this.renderStack(Q)]):[3,18];case 16:I.sent(),I.label=17;case 17:return h++,[3,15];case 18:B=0,C=r.inlineLevel,I.label=19;case 19:return B<C.length?(Q=C[B],[4,this.renderNode(Q)]):[3,22];case 20:I.sent(),I.label=21;case 21:return B++,[3,19];case 22:w=0,v=r.zeroOrAutoZIndexOrTransformedOrOpacity,I.label=23;case 23:return w<v.length?(Q=v[w],[4,this.renderStack(Q)]):[3,26];case 24:I.sent(),I.label=25;case 25:return w++,[3,23];case 26:b=0,U=r.positiveZIndex,I.label=27;case 27:return b<U.length?(Q=U[b],[4,this.renderStack(Q)]):[3,30];case 28:I.sent(),I.label=29;case 29:return b++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var i=this;r.forEach(function(s,l){var c=Kt(s)?s.start:s;l===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),Kt(s)&&i.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,i,s,l){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},t.prototype.resizeImage=function(r,i,s){var l;if(r.width===i&&r.height===s)return r;var c=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,s);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,s),u},t.prototype.renderBackgroundImage=function(r){return ft(this,void 0,void 0,function(){var i,s,l,c,u,f;return lt(this,function(h){switch(h.label){case 0:i=r.styles.backgroundImage.length-1,s=function(m){var B,C,w,$,L,Z,se,Ae,k,v,$,L,Z,se,Ae,b,U,Q,I,M,z,j,F,H,k,O,$,ee,V,se,Ae,J,L,Z,te,ge,T,N,q,E,ne,oe;return lt(this,function(ue){switch(ue.label){case 0:if(m.type!==0)return[3,5];B=void 0,C=m.url,ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,l.context.cache.match(C)];case 2:return B=ue.sent(),[3,4];case 3:return ue.sent(),l.context.logger.error("Error loading background-image "+C),[3,4];case 4:return B&&(w=Dd(r,i,[B.width,B.height,B.width/B.height]),$=w[0],L=w[1],Z=w[2],se=w[3],Ae=w[4],k=l.ctx.createPattern(l.resizeImage(B,se,Ae),"repeat"),l.renderRepeat($,k,L,Z)),[3,6];case 5:YI(m)?(v=Dd(r,i,[null,null,null]),$=v[0],L=v[1],Z=v[2],se=v[3],Ae=v[4],b=KI(m.angle,se,Ae),U=b[0],Q=b[1],I=b[2],M=b[3],z=b[4],j=document.createElement("canvas"),j.width=se,j.height=Ae,F=j.getContext("2d"),H=F.createLinearGradient(Q,M,I,z),Gw(m.stops,U).forEach(function(pe){return H.addColorStop(pe.stop,YA(pe.color))}),F.fillStyle=H,F.fillRect(0,0,se,Ae),se>0&&Ae>0&&(k=l.ctx.createPattern(j,"repeat"),l.renderRepeat($,k,L,Z))):XI(m)&&(O=Dd(r,i,[null,null,null]),$=O[0],ee=O[1],V=O[2],se=O[3],Ae=O[4],J=m.position.length===0?[ud]:m.position,L=pA(J[0],se),Z=pA(J[J.length-1],Ae),te=VI(m,L,Z,se,Ae),ge=te[0],T=te[1],ge>0&&T>0&&(N=l.ctx.createRadialGradient(ee+L,V+Z,0,ee+L,V+Z,ge),Gw(m.stops,ge*2).forEach(function(pe){return N.addColorStop(pe.stop,YA(pe.color))}),l.path($),l.ctx.fillStyle=N,ge!==T?(q=r.bounds.left+.5*r.bounds.width,E=r.bounds.top+.5*r.bounds.height,ne=T/ge,oe=1/ne,l.ctx.save(),l.ctx.translate(q,E),l.ctx.transform(1,0,0,ne,0,0),l.ctx.translate(-q,-E),l.ctx.fillRect(ee,oe*(V-E)+E,se,Ae*oe),l.ctx.restore()):l.ctx.fill())),ue.label=6;case 6:return i--,[2]}})},l=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return c<u.length?(f=u[c],[5,s(f)]):[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,i,s){return ft(this,void 0,void 0,function(){return lt(this,function(l){return this.path($C(s,i)),this.ctx.fillStyle=YA(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,i,s,l){return ft(this,void 0,void 0,function(){var c,u;return lt(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,s,l)]:[3,2];case 1:return f.sent(),[2];case 2:return c=Z3(l,s),this.path(c),this.ctx.fillStyle=YA(r),this.ctx.fill(),u=W3(l,s),this.path(u),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return ft(this,void 0,void 0,function(){var i,s,l,c,u,f,h,m,B=this;return lt(this,function(C){switch(C.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,s=!dr(i.backgroundColor)||i.backgroundImage.length,l=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=oM(Ki(i.backgroundClip,0),r.curves),s||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),dr(i.backgroundColor)||(this.ctx.fillStyle=YA(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:C.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(w){B.ctx.save();var v=Po(r.curves),b=w.inset?0:aM,U=q3(v,-b+(w.inset?1:-1)*w.spread.number,(w.inset?1:-1)*w.spread.number,w.spread.number*(w.inset?-2:2),w.spread.number*(w.inset?-2:2));w.inset?(B.path(v),B.ctx.clip(),B.mask(U)):(B.mask(v),B.ctx.clip(),B.path(U)),B.ctx.shadowOffsetX=w.offsetX.number+b,B.ctx.shadowOffsetY=w.offsetY.number,B.ctx.shadowColor=YA(w.color),B.ctx.shadowBlur=w.blur.number,B.ctx.fillStyle=w.inset?YA(w.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),C.label=2;case 2:u=0,f=0,h=l,C.label=3;case 3:return f<h.length?(m=h[f],m.style!==0&&!dr(m.color)&&m.width>0?m.style!==2?[3,5]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return C.sent(),[3,11];case 5:return m.style!==3?[3,7]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,3)];case 6:return C.sent(),[3,11];case 7:return m.style!==4?[3,9]:[4,this.renderDoubleBorder(m.color,m.width,u,r.curves)];case 8:return C.sent(),[3,11];case 9:return[4,this.renderSolidBorder(m.color,u,r.curves)];case 10:C.sent(),C.label=11;case 11:u++,C.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,i,s,l,c){return ft(this,void 0,void 0,function(){var u,f,h,m,B,C,w,v,b,U,Q,I,M,z,j,F,j,F;return lt(this,function(H){return this.ctx.save(),u=$3(l,s),f=$C(l,s),c===2&&(this.path(f),this.ctx.clip()),Kt(f[0])?(h=f[0].start.x,m=f[0].start.y):(h=f[0].x,m=f[0].y),Kt(f[1])?(B=f[1].end.x,C=f[1].end.y):(B=f[1].x,C=f[1].y),s===0||s===2?w=Math.abs(h-B):w=Math.abs(m-C),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),v=i<3?i*3:i*2,b=i<3?i*2:i,c===3&&(v=i,b=i),U=!0,w<=v*2?U=!1:w<=v*2+b?(Q=w/(2*v+b),v*=Q,b*=Q):(I=Math.floor((w+b)/(v+b)),M=(w-I*v)/(I-1),z=(w-(I+1)*v)/I,b=z<=0||Math.abs(b-M)<Math.abs(b-z)?M:z),U&&(c===3?this.ctx.setLineDash([0,v+b]):this.ctx.setLineDash([v,b])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=YA(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(Kt(f[0])&&(j=f[3],F=f[0],this.ctx.beginPath(),this.formatPath([new me(j.end.x,j.end.y),new me(F.start.x,F.start.y)]),this.ctx.stroke()),Kt(f[1])&&(j=f[1],F=f[2],this.ctx.beginPath(),this.formatPath([new me(j.end.x,j.end.y),new me(F.start.x,F.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return ft(this,void 0,void 0,function(){var i;return lt(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=J3(r),[4,this.renderStack(i)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(ty),lM=function(e){return e instanceof SC||e instanceof xC?!0:e instanceof Ud&&e.type!==ko&&e.type!==Do},oM=function(e,t){switch(e){case 0:return Po(t);case 2:return G3(t);case 1:default:return Yo(t)}},cM=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},uM=["-apple-system","system-ui"],fM=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return uM.indexOf(t)===-1}):e},dM=(function(e){rn(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=i,s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),s}return t.prototype.render=function(r){return ft(this,void 0,void 0,function(){var i,s;return lt(this,function(l){switch(l.label){case 0:return i=xd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,hM(i)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(ty),hM=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},gM=(function(){function e(t){var r=t.id,i=t.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,t))},e.instances={},e})(),pM=(function(){function e(t,r){var i;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new gM({id:this.instanceName,enabled:t.logging}),this.cache=(i=t.cache)!==null&&i!==void 0?i:new O3(this,t)}return e.instanceCount=1,e})(),mM=function(e,t){return t===void 0&&(t={}),BM(e,t)};typeof window<"u"&&YC.setContext(window);var BM=function(e,t){return ft(void 0,void 0,void 0,function(){var r,i,s,l,c,u,f,h,m,B,C,w,v,b,U,Q,I,M,z,j,H,F,H,k,O,$,ee,V,se,Ae,J,L,Z,te,ge,T,N,q,E,ne;return lt(this,function(oe){switch(oe.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return s={allowTaint:(k=t.allowTaint)!==null&&k!==void 0?k:!1,imageTimeout:(O=t.imageTimeout)!==null&&O!==void 0?O:15e3,proxy:t.proxy,useCORS:($=t.useCORS)!==null&&$!==void 0?$:!1},l=Gf({logging:(ee=t.logging)!==null&&ee!==void 0?ee:!0,cache:t.cache},s),c={windowWidth:(V=t.windowWidth)!==null&&V!==void 0?V:i.innerWidth,windowHeight:(se=t.windowHeight)!==null&&se!==void 0?se:i.innerHeight,scrollX:(Ae=t.scrollX)!==null&&Ae!==void 0?Ae:i.pageXOffset,scrollY:(J=t.scrollY)!==null&&J!==void 0?J:i.pageYOffset},u=new Nn(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new pM(l,u),h=(L=t.foreignObjectRendering)!==null&&L!==void 0?L:!1,m={allowTaint:(Z=t.allowTaint)!==null&&Z!==void 0?Z:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),B=new zC(f,e,m),C=B.clonedReferenceElement,C?[4,B.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=oe.sent(),v=Td(C)||w3(C)?q4(C.ownerDocument):io(f,C),b=v.width,U=v.height,Q=v.left,I=v.top,M=wM(f,C,t.backgroundColor),z={canvas:t.canvas,backgroundColor:M,scale:(ge=(te=t.scale)!==null&&te!==void 0?te:i.devicePixelRatio)!==null&&ge!==void 0?ge:1,x:((T=t.x)!==null&&T!==void 0?T:0)+Q,y:((N=t.y)!==null&&N!==void 0?N:0)+I,width:(q=t.width)!==null&&q!==void 0?q:Math.ceil(b),height:(E=t.height)!==null&&E!==void 0?E:Math.ceil(U)},h?(f.logger.debug("Document cloned, using foreign object rendering"),H=new dM(f,z),[4,H.render(C)]):[3,3];case 2:return j=oe.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+Q+","+I+" with size "+b+"x"+U+" using computed rendering"),f.logger.debug("Starting DOM parsing"),F=FC(f,C),M===F.styles.backgroundColor&&(F.styles.backgroundColor=_n.TRANSPARENT),f.logger.debug("Starting renderer for element at "+z.x+","+z.y+" with size "+z.width+"x"+z.height),H=new sM(f,z),[4,H.render(F)];case 4:j=oe.sent(),oe.label=5;case 5:return(!((ne=t.removeContainer)!==null&&ne!==void 0)||ne)&&(zC.destroy(w)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,j]}})})},wM=function(e,t,r){var i=t.ownerDocument,s=i.documentElement?Ts(e,getComputedStyle(i.documentElement).backgroundColor):_n.TRANSPARENT,l=i.body?Ts(e,getComputedStyle(i.body).backgroundColor):_n.TRANSPARENT,c=typeof r=="string"?Ts(e,r):r===null?_n.TRANSPARENT:4294967295;return t===i.documentElement?dr(s)?dr(l)?c:l:s:c};const ny=Object.freeze(Object.defineProperty({__proto__:null,default:mM},Symbol.toStringTag,{value:"Module"}));return cu.renderMedAssist=jB,Object.defineProperty(cu,Symbol.toStringTag,{value:"Module"}),cu})({});
|
|
105
|
+
}`,H3=function(e){M3(e,"."+Md+I3+PC+`
|
|
106
|
+
.`+Od+_3+PC)},M3=function(e,t){var r=e.ownerDocument;if(r){var i=r.createElement("style");i.textContent=t,e.appendChild(i)}},YC=(function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),O3=(function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(Ld(t)||k3(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return ot(this,void 0,void 0,function(){var r,i,s,l,c=this;return at(this,function(u){switch(u.label){case 0:return r=YC.isSameOrigin(t),i=!Rd(t)&&this._options.useCORS===!0&&$A.SUPPORT_CORS_IMAGES&&!r,s=!Rd(t)&&!r&&!Ld(t)&&typeof this._options.proxy=="string"&&$A.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!Rd(t)&&!Ld(t)&&!s&&!i?[2]:(l=t,s?[4,this.proxy(l)]:[3,2]);case 1:l=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(f,h){var m=new Image;m.onload=function(){return f(m)},m.onerror=h,(j3(l)||i)&&(m.crossOrigin="anonymous"),m.src=l,m.complete===!0&&setTimeout(function(){return f(m)},500),c._options.imageTimeout>0&&setTimeout(function(){return h("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise(function(l,c){var u=$A.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")l(f.response);else{var B=new FileReader;B.addEventListener("load",function(){return l(B.result)},!1),B.addEventListener("error",function(C){return c(C)},!1),B.readAsDataURL(f.response)}else c("Failed to proxy resource "+s+" with status code "+f.status)},f.onerror=c;var h=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+h+"url="+encodeURIComponent(t)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var m=r._options.imageTimeout;f.timeout=m,f.ontimeout=function(){return c("Timed out ("+m+"ms) proxying "+s)}}f.send()})},e})(),R3=/^data:image\/svg\+xml/i,L3=/^data:image\/.*;base64,/i,D3=/^data:image\/.*/i,k3=function(e){return $A.SUPPORT_SVG_DRAWING||!K3(e)},Rd=function(e){return D3.test(e)},j3=function(e){return L3.test(e)},Ld=function(e){return e.substr(0,4)==="blob"},K3=function(e){return e.substr(-3).toLowerCase()==="svg"||R3.test(e)},Be=(function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e})(),Ki=function(e,t,r){return new Be(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},Go=(function(){function e(t,r,i,s){this.type=1,this.start=t,this.startControl=r,this.endControl=i,this.end=s}return e.prototype.subdivide=function(t,r){var i=Ki(this.start,this.startControl,t),s=Ki(this.startControl,this.endControl,t),l=Ki(this.endControl,this.end,t),c=Ki(i,s,t),u=Ki(s,l,t),f=Ki(c,u,t);return r?new e(this.start,i,c,f):new e(f,u,l,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),zt=function(e){return e.type===1},V3=(function(){function e(t){var r=t.styles,i=t.bounds,s=Fs(r.borderTopLeftRadius,i.width,i.height),l=s[0],c=s[1],u=Fs(r.borderTopRightRadius,i.width,i.height),f=u[0],h=u[1],m=Fs(r.borderBottomRightRadius,i.width,i.height),B=m[0],C=m[1],w=Fs(r.borderBottomLeftRadius,i.width,i.height),v=w[0],b=w[1],U=[];U.push((l+f)/i.width),U.push((v+B)/i.width),U.push((c+b)/i.height),U.push((h+C)/i.height);var Q=Math.max.apply(Math,U);Q>1&&(l/=Q,c/=Q,f/=Q,h/=Q,B/=Q,C/=Q,v/=Q,b/=Q);var T=i.width-f,O=i.height-C,G=i.width-B,k=i.height-b,F=r.borderTopWidth,H=r.borderRightWidth,L=r.borderBottomWidth,M=r.borderLeftWidth,W=mA(r.paddingTop,t.bounds.width),ee=mA(r.paddingRight,t.bounds.width),j=mA(r.paddingBottom,t.bounds.width),se=mA(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||c>0?yA(i.left+M/3,i.top+F/3,l-M/3,c-F/3,iA.TOP_LEFT):new Be(i.left+M/3,i.top+F/3),this.topRightBorderDoubleOuterBox=l>0||c>0?yA(i.left+T,i.top+F/3,f-H/3,h-F/3,iA.TOP_RIGHT):new Be(i.left+i.width-H/3,i.top+F/3),this.bottomRightBorderDoubleOuterBox=B>0||C>0?yA(i.left+G,i.top+O,B-H/3,C-L/3,iA.BOTTOM_RIGHT):new Be(i.left+i.width-H/3,i.top+i.height-L/3),this.bottomLeftBorderDoubleOuterBox=v>0||b>0?yA(i.left+M/3,i.top+k,v-M/3,b-L/3,iA.BOTTOM_LEFT):new Be(i.left+M/3,i.top+i.height-L/3),this.topLeftBorderDoubleInnerBox=l>0||c>0?yA(i.left+M*2/3,i.top+F*2/3,l-M*2/3,c-F*2/3,iA.TOP_LEFT):new Be(i.left+M*2/3,i.top+F*2/3),this.topRightBorderDoubleInnerBox=l>0||c>0?yA(i.left+T,i.top+F*2/3,f-H*2/3,h-F*2/3,iA.TOP_RIGHT):new Be(i.left+i.width-H*2/3,i.top+F*2/3),this.bottomRightBorderDoubleInnerBox=B>0||C>0?yA(i.left+G,i.top+O,B-H*2/3,C-L*2/3,iA.BOTTOM_RIGHT):new Be(i.left+i.width-H*2/3,i.top+i.height-L*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||b>0?yA(i.left+M*2/3,i.top+k,v-M*2/3,b-L*2/3,iA.BOTTOM_LEFT):new Be(i.left+M*2/3,i.top+i.height-L*2/3),this.topLeftBorderStroke=l>0||c>0?yA(i.left+M/2,i.top+F/2,l-M/2,c-F/2,iA.TOP_LEFT):new Be(i.left+M/2,i.top+F/2),this.topRightBorderStroke=l>0||c>0?yA(i.left+T,i.top+F/2,f-H/2,h-F/2,iA.TOP_RIGHT):new Be(i.left+i.width-H/2,i.top+F/2),this.bottomRightBorderStroke=B>0||C>0?yA(i.left+G,i.top+O,B-H/2,C-L/2,iA.BOTTOM_RIGHT):new Be(i.left+i.width-H/2,i.top+i.height-L/2),this.bottomLeftBorderStroke=v>0||b>0?yA(i.left+M/2,i.top+k,v-M/2,b-L/2,iA.BOTTOM_LEFT):new Be(i.left+M/2,i.top+i.height-L/2),this.topLeftBorderBox=l>0||c>0?yA(i.left,i.top,l,c,iA.TOP_LEFT):new Be(i.left,i.top),this.topRightBorderBox=f>0||h>0?yA(i.left+T,i.top,f,h,iA.TOP_RIGHT):new Be(i.left+i.width,i.top),this.bottomRightBorderBox=B>0||C>0?yA(i.left+G,i.top+O,B,C,iA.BOTTOM_RIGHT):new Be(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=v>0||b>0?yA(i.left,i.top+k,v,b,iA.BOTTOM_LEFT):new Be(i.left,i.top+i.height),this.topLeftPaddingBox=l>0||c>0?yA(i.left+M,i.top+F,Math.max(0,l-M),Math.max(0,c-F),iA.TOP_LEFT):new Be(i.left+M,i.top+F),this.topRightPaddingBox=f>0||h>0?yA(i.left+Math.min(T,i.width-H),i.top+F,T>i.width+H?0:Math.max(0,f-H),Math.max(0,h-F),iA.TOP_RIGHT):new Be(i.left+i.width-H,i.top+F),this.bottomRightPaddingBox=B>0||C>0?yA(i.left+Math.min(G,i.width-M),i.top+Math.min(O,i.height-L),Math.max(0,B-H),Math.max(0,C-L),iA.BOTTOM_RIGHT):new Be(i.left+i.width-H,i.top+i.height-L),this.bottomLeftPaddingBox=v>0||b>0?yA(i.left+M,i.top+Math.min(k,i.height-L),Math.max(0,v-M),Math.max(0,b-L),iA.BOTTOM_LEFT):new Be(i.left+M,i.top+i.height-L),this.topLeftContentBox=l>0||c>0?yA(i.left+M+se,i.top+F+W,Math.max(0,l-(M+se)),Math.max(0,c-(F+W)),iA.TOP_LEFT):new Be(i.left+M+se,i.top+F+W),this.topRightContentBox=f>0||h>0?yA(i.left+Math.min(T,i.width+M+se),i.top+F+W,T>i.width+M+se?0:f-M+se,h-(F+W),iA.TOP_RIGHT):new Be(i.left+i.width-(H+ee),i.top+F+W),this.bottomRightContentBox=B>0||C>0?yA(i.left+Math.min(G,i.width-(M+se)),i.top+Math.min(O,i.height+F+W),Math.max(0,B-(H+ee)),C-(L+j),iA.BOTTOM_RIGHT):new Be(i.left+i.width-(H+ee),i.top+i.height-(L+j)),this.bottomLeftContentBox=v>0||b>0?yA(i.left+M+se,i.top+k,Math.max(0,v-(M+se)),b-(L+j),iA.BOTTOM_LEFT):new Be(i.left+M+se,i.top+i.height-(L+j))}return e})(),iA;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(iA||(iA={}));var yA=function(e,t,r,i,s){var l=4*((Math.sqrt(2)-1)/3),c=r*l,u=i*l,f=e+r,h=t+i;switch(s){case iA.TOP_LEFT:return new Go(new Be(e,h),new Be(e,h-u),new Be(f-c,t),new Be(f,t));case iA.TOP_RIGHT:return new Go(new Be(e,t),new Be(e+c,t),new Be(f,h-u),new Be(f,h));case iA.BOTTOM_RIGHT:return new Go(new Be(f,t),new Be(f,t+u),new Be(e+c,h),new Be(e,h));case iA.BOTTOM_LEFT:default:return new Go(new Be(f,h),new Be(f-c,h),new Be(e,t+u),new Be(e,t))}},zo=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},G3=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Po=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},z3=(function(){function e(t,r,i){this.offsetX=t,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return e})(),Yo=(function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e})(),P3=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),Y3=function(e){return e.type===0},XC=function(e){return e.type===1},X3=function(e){return e.type===2},qC=function(e,t){return e.length===t.length?e.some(function(r,i){return r===t[i]}):!1},q3=function(e,t,r,i,s){return e.map(function(l,c){switch(c){case 0:return l.add(t,r);case 1:return l.add(t+i,r);case 2:return l.add(t+i,r+s);case 3:return l.add(t,r+s)}return l})},JC=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),ZC=(function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new V3(this.container),this.container.styles.opacity<1&&this.effects.push(new P3(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new z3(i,s,l))}if(this.container.styles.overflowX!==0){var c=zo(this.curves),u=Po(this.curves);qC(c,u)?this.effects.push(new Yo(c,6)):(this.effects.push(new Yo(c,2)),this.effects.push(new Yo(u,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,s=this.effects.slice(0);i;){var l=i.effects.filter(function(f){return!XC(f)});if(r||i.container.styles.position!==0||!i.parent){if(s.unshift.apply(s,l),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=zo(i.curves),u=Po(i.curves);qC(c,u)||s.unshift(new Yo(u,6))}}else s.unshift.apply(s,l);i=i.parent}return s.filter(function(f){return KA(f.target,t)})},e})(),Dd=function(e,t,r,i){e.container.elements.forEach(function(s){var l=KA(s.flags,4),c=KA(s.flags,2),u=new ZC(s,e);KA(s.styles.display,2048)&&i.push(u);var f=KA(s.flags,8)?[]:i;if(l||c){var h=l||s.styles.isPositioned()?r:t,m=new JC(u);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var B=s.styles.zIndex.order;if(B<0){var C=0;h.negativeZIndex.some(function(v,b){return B>v.element.container.styles.zIndex.order?(C=b,!1):C>0}),h.negativeZIndex.splice(C,0,m)}else if(B>0){var w=0;h.positiveZIndex.some(function(v,b){return B>=v.element.container.styles.zIndex.order?(w=b+1,!1):w>0}),h.positiveZIndex.splice(w,0,m)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(m)}else s.styles.isFloating()?h.nonPositionedFloats.push(m):h.nonPositionedInlineLevel.push(m);Dd(u,m,l?m:r,f)}else s.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),Dd(u,t,r,f);KA(s.flags,8)&&WC(s,f)})},WC=function(e,t){for(var r=e instanceof Ud?e.start:1,i=e instanceof Ud?e.reversed:!1,s=0;s<t.length;s++){var l=t[s];l.container instanceof vC&&typeof l.container.value=="number"&&l.container.value!==0&&(r=l.container.value),l.listValue=Ms(r,l.container.styles.listStyleType,!0),r+=i?-1:1}},J3=function(e){var t=new ZC(e,null),r=new JC(t),i=[];return Dd(t,r,r,i),WC(t.container,i),r},$C=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Pt(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Pt(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Pt(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},Z3=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Pt(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Pt(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Pt(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},W3=function(e,t){switch(t){case 0:return Pt(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Pt(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Pt(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Pt(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},$3=function(e,t){switch(t){case 0:return Xo(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Xo(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Xo(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Xo(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Xo=function(e,t){var r=[];return zt(e)?r.push(e.subdivide(.5,!1)):r.push(e),zt(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Pt=function(e,t,r,i){var s=[];return zt(e)?s.push(e.subdivide(.5,!1)):s.push(e),zt(r)?s.push(r.subdivide(.5,!0)):s.push(r),zt(i)?s.push(i.subdivide(.5,!0).reverse()):s.push(i),zt(t)?s.push(t.subdivide(.5,!1).reverse()):s.push(t),s},ey=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},qo=function(e){var t=e.styles,r=e.bounds,i=mA(t.paddingLeft,r.width),s=mA(t.paddingRight,r.width),l=mA(t.paddingTop,r.width),c=mA(t.paddingBottom,r.width);return r.add(i+t.borderLeftWidth,l+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+s),-(t.borderTopWidth+t.borderBottomWidth+l+c))},eM=function(e,t){return e===0?t.bounds:e===2?qo(t):ey(t)},AM=function(e,t){return e===0?t.bounds:e===2?qo(t):ey(t)},kd=function(e,t,r){var i=eM(Gi(e.styles.backgroundOrigin,t),e),s=AM(Gi(e.styles.backgroundClip,t),e),l=tM(Gi(e.styles.backgroundSize,t),r,i),c=l[0],u=l[1],f=Fs(Gi(e.styles.backgroundPosition,t),i.width-c,i.height-u),h=nM(Gi(e.styles.backgroundRepeat,t),f,l,i,s),m=Math.round(i.left+f[0]),B=Math.round(i.top+f[1]);return[h,m,B,c,u]},Vi=function(e){return oA(e)&&e.value===Li.AUTO},Jo=function(e){return typeof e=="number"},tM=function(e,t,r){var i=t[0],s=t[1],l=t[2],c=e[0],u=e[1];if(!c)return[0,0];if(HA(c)&&u&&HA(u))return[mA(c,r.width),mA(u,r.height)];var f=Jo(l);if(oA(c)&&(c.value===Li.CONTAIN||c.value===Li.COVER)){if(Jo(l)){var h=r.width/r.height;return h<l!=(c.value===Li.COVER)?[r.width,r.width/l]:[r.height*l,r.height]}return[r.width,r.height]}var m=Jo(i),B=Jo(s),C=m||B;if(Vi(c)&&(!u||Vi(u))){if(m&&B)return[i,s];if(!f&&!C)return[r.width,r.height];if(C&&f){var w=m?i:s*l,v=B?s:i/l;return[w,v]}var b=m?i:r.width,U=B?s:r.height;return[b,U]}if(f){var Q=0,T=0;return HA(c)?Q=mA(c,r.width):HA(u)&&(T=mA(u,r.height)),Vi(c)?Q=T*l:(!u||Vi(u))&&(T=Q/l),[Q,T]}var O=null,G=null;if(HA(c)?O=mA(c,r.width):u&&HA(u)&&(G=mA(u,r.height)),O!==null&&(!u||Vi(u))&&(G=m&&B?O/i*s:r.height),G!==null&&Vi(c)&&(O=m&&B?G/s*i:r.width),O!==null&&G!==null)return[O,G];throw new Error("Unable to calculate background-size for element")},Gi=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},nM=function(e,t,r,i,s){var l=t[0],c=t[1],u=r[0],f=r[1];switch(e){case 2:return[new Be(Math.round(i.left),Math.round(i.top+c)),new Be(Math.round(i.left+i.width),Math.round(i.top+c)),new Be(Math.round(i.left+i.width),Math.round(f+i.top+c)),new Be(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new Be(Math.round(i.left+l),Math.round(i.top)),new Be(Math.round(i.left+l+u),Math.round(i.top)),new Be(Math.round(i.left+l+u),Math.round(i.height+i.top)),new Be(Math.round(i.left+l),Math.round(i.height+i.top))];case 1:return[new Be(Math.round(i.left+l),Math.round(i.top+c)),new Be(Math.round(i.left+l+u),Math.round(i.top+c)),new Be(Math.round(i.left+l+u),Math.round(i.top+c+f)),new Be(Math.round(i.left+l),Math.round(i.top+c+f))];default:return[new Be(Math.round(s.left),Math.round(s.top)),new Be(Math.round(s.left+s.width),Math.round(s.top)),new Be(Math.round(s.left+s.width),Math.round(s.height+s.top)),new Be(Math.round(s.left),Math.round(s.height+s.top))]}},rM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ay="Hidden Text",iM=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var i=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),s.src=rM,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=t,l.style.fontSize=r,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(Ay)),i.appendChild(l),i.appendChild(s);var u=s.offsetTop-l.offsetTop+2;i.removeChild(l),i.appendChild(this._document.createTextNode(Ay)),i.style.lineHeight="normal",s.style.verticalAlign="super";var f=s.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},e.prototype.getMetrics=function(t,r){var i=t+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(t,r)),this._data[i]},e})(),ty=(function(){function e(t,r){this.context=t,this.options=r}return e})(),aM=1e4,sM=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s._activeEffects=[],s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),i.canvas||(s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px"),s.fontMetrics=new iM(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),s}return t.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(s){return i.applyEffect(s)})},t.prototype.applyEffect=function(r){this.ctx.save(),X3(r)&&(this.ctx.globalAlpha=r.opacity),Y3(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),XC(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return ot(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return ot(this,void 0,void 0,function(){return at(this,function(i){switch(i.label){case 0:return KA(r.container.flags,16),r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,i,s){var l=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+s);else{var c=Qd(r.text);c.reduce(function(u,f){return l.ctx.fillText(f,u,r.bounds.top+s),u+l.ctx.measureText(f).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),s=fM(r.fontFamily).join(", "),l=Us(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,l,s].join(" "),s,l]},t.prototype.renderTextNode=function(r,i){return ot(this,void 0,void 0,function(){var s,l,c,u,f,h,m,B,C=this;return at(this,function(w){return s=this.createFontStyle(i),l=s[0],c=s[1],u=s[2],this.ctx.font=l,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),h=f.baseline,m=f.middle,B=i.paintOrder,r.textBounds.forEach(function(v){B.forEach(function(b){switch(b){case 0:C.ctx.fillStyle=YA(i.color),C.renderTextWithLetterSpacing(v,i.letterSpacing,h);var U=i.textShadow;U.length&&v.text.trim().length&&(U.slice(0).reverse().forEach(function(Q){C.ctx.shadowColor=YA(Q.color),C.ctx.shadowOffsetX=Q.offsetX.number*C.options.scale,C.ctx.shadowOffsetY=Q.offsetY.number*C.options.scale,C.ctx.shadowBlur=Q.blur.number,C.renderTextWithLetterSpacing(v,i.letterSpacing,h)}),C.ctx.shadowColor="",C.ctx.shadowOffsetX=0,C.ctx.shadowOffsetY=0,C.ctx.shadowBlur=0),i.textDecorationLine.length&&(C.ctx.fillStyle=YA(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(Q){switch(Q){case 1:C.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+h),v.bounds.width,1);break;case 2:C.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:C.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+m),v.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&v.text.trim().length&&(C.ctx.strokeStyle=YA(i.webkitTextStrokeColor),C.ctx.lineWidth=i.webkitTextStrokeWidth,C.ctx.lineJoin=window.chrome?"miter":"round",C.ctx.strokeText(v.text,v.bounds.left,v.bounds.top+h)),C.ctx.strokeStyle="",C.ctx.lineWidth=0,C.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,i,s){if(s&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var l=qo(r),c=Po(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,r.intrinsicWidth,r.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f,T,T,h,m,B,C,G,w,v,k,b,U,Q,T,O,G,k;return at(this,function(F){switch(F.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,s=r.curves,l=i.styles,c=0,u=i.textNodes,F.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,l)]):[3,4];case 2:F.sent(),F.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof CC))return[3,8];F.label=5;case 5:return F.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return T=F.sent(),this.renderReplacedElement(i,s,T),[3,8];case 7:return F.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof yC&&this.renderReplacedElement(i,s,i.canvas),!(i instanceof EC))return[3,12];F.label=9;case 9:return F.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return T=F.sent(),this.renderReplacedElement(i,s,T),[3,12];case 11:return F.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof QC&&i.tree?(h=new t(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,h.render(i.tree)]):[3,14];case 13:m=F.sent(),i.width&&i.height&&this.ctx.drawImage(m,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),F.label=14;case 14:if(i instanceof Fd&&(B=Math.min(i.bounds.width,i.bounds.height),i.type===Lo?i.checked&&(this.ctx.save(),this.path([new Be(i.bounds.left+B*.39363,i.bounds.top+B*.79),new Be(i.bounds.left+B*.16,i.bounds.top+B*.5549),new Be(i.bounds.left+B*.27347,i.bounds.top+B*.44071),new Be(i.bounds.left+B*.39694,i.bounds.top+B*.5649),new Be(i.bounds.left+B*.72983,i.bounds.top+B*.23),new Be(i.bounds.left+B*.84,i.bounds.top+B*.34085),new Be(i.bounds.left+B*.39363,i.bounds.top+B*.79)]),this.ctx.fillStyle=YA(bC),this.ctx.fill(),this.ctx.restore()):i.type===Do&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+B/2,i.bounds.top+B/2,B/4,0,Math.PI*2,!0),this.ctx.fillStyle=YA(bC),this.ctx.fill(),this.ctx.restore())),lM(i)&&i.value.length){switch(C=this.createFontStyle(l),G=C[0],w=C[1],v=this.fontMetrics.getMetrics(G,w).baseline,this.ctx.font=G,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=cM(i.styles.textAlign),k=qo(i),b=0,i.styles.textAlign){case 1:b+=k.width/2;break;case 2:b+=k.width;break}U=k.add(b,0,0,-k.height/2+1),this.ctx.save(),this.path([new Be(k.left,k.top),new Be(k.left+k.width,k.top),new Be(k.left+k.width,k.top+k.height),new Be(k.left,k.top+k.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new _s(i.value,U),l.letterSpacing,v),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!KA(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(Q=i.styles.listStyleImage,Q.type!==0)return[3,18];T=void 0,O=Q.url,F.label=15;case 15:return F.trys.push([15,17,,18]),[4,this.context.cache.match(O)];case 16:return T=F.sent(),this.ctx.drawImage(T,i.bounds.left-(T.width+10),i.bounds.top),[3,18];case 17:return F.sent(),this.context.logger.error("Error loading list-style-image "+O),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(G=this.createFontStyle(l)[0],this.ctx.font=G,this.ctx.fillStyle=YA(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",k=new Tn(i.bounds.left,i.bounds.top+mA(i.styles.paddingTop,i.bounds.width),i.bounds.width,AC(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new _s(r.listValue,k),l.letterSpacing,AC(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),F.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return ot(this,void 0,void 0,function(){var i,s,Q,l,c,Q,u,f,Q,h,m,Q,B,C,Q,w,v,Q,b,U,Q;return at(this,function(T){switch(T.label){case 0:return KA(r.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:T.sent(),i=0,s=r.negativeZIndex,T.label=2;case 2:return i<s.length?(Q=s[i],[4,this.renderStack(Q)]):[3,5];case 3:T.sent(),T.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:T.sent(),l=0,c=r.nonInlineLevel,T.label=7;case 7:return l<c.length?(Q=c[l],[4,this.renderNode(Q)]):[3,10];case 8:T.sent(),T.label=9;case 9:return l++,[3,7];case 10:u=0,f=r.nonPositionedFloats,T.label=11;case 11:return u<f.length?(Q=f[u],[4,this.renderStack(Q)]):[3,14];case 12:T.sent(),T.label=13;case 13:return u++,[3,11];case 14:h=0,m=r.nonPositionedInlineLevel,T.label=15;case 15:return h<m.length?(Q=m[h],[4,this.renderStack(Q)]):[3,18];case 16:T.sent(),T.label=17;case 17:return h++,[3,15];case 18:B=0,C=r.inlineLevel,T.label=19;case 19:return B<C.length?(Q=C[B],[4,this.renderNode(Q)]):[3,22];case 20:T.sent(),T.label=21;case 21:return B++,[3,19];case 22:w=0,v=r.zeroOrAutoZIndexOrTransformedOrOpacity,T.label=23;case 23:return w<v.length?(Q=v[w],[4,this.renderStack(Q)]):[3,26];case 24:T.sent(),T.label=25;case 25:return w++,[3,23];case 26:b=0,U=r.positiveZIndex,T.label=27;case 27:return b<U.length?(Q=U[b],[4,this.renderStack(Q)]):[3,30];case 28:T.sent(),T.label=29;case 29:return b++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var i=this;r.forEach(function(s,l){var c=zt(s)?s.start:s;l===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),zt(s)&&i.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},t.prototype.renderRepeat=function(r,i,s,l){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},t.prototype.resizeImage=function(r,i,s){var l;if(r.width===i&&r.height===s)return r;var c=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,s);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,s),u},t.prototype.renderBackgroundImage=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f;return at(this,function(h){switch(h.label){case 0:i=r.styles.backgroundImage.length-1,s=function(m){var B,C,w,W,R,q,se,le,L,v,W,R,q,se,le,b,U,Q,T,O,G,k,F,H,L,M,W,ee,j,se,le,z,R,q,Ae,me,N,I,P,E,te,oe;return at(this,function(fe){switch(fe.label){case 0:if(m.type!==0)return[3,5];B=void 0,C=m.url,fe.label=1;case 1:return fe.trys.push([1,3,,4]),[4,l.context.cache.match(C)];case 2:return B=fe.sent(),[3,4];case 3:return fe.sent(),l.context.logger.error("Error loading background-image "+C),[3,4];case 4:return B&&(w=kd(r,i,[B.width,B.height,B.width/B.height]),W=w[0],R=w[1],q=w[2],se=w[3],le=w[4],L=l.ctx.createPattern(l.resizeImage(B,se,le),"repeat"),l.renderRepeat(W,L,R,q)),[3,6];case 5:YI(m)?(v=kd(r,i,[null,null,null]),W=v[0],R=v[1],q=v[2],se=v[3],le=v[4],b=KI(m.angle,se,le),U=b[0],Q=b[1],T=b[2],O=b[3],G=b[4],k=document.createElement("canvas"),k.width=se,k.height=le,F=k.getContext("2d"),H=F.createLinearGradient(Q,O,T,G),Gw(m.stops,U).forEach(function(ge){return H.addColorStop(ge.stop,YA(ge.color))}),F.fillStyle=H,F.fillRect(0,0,se,le),se>0&&le>0&&(L=l.ctx.createPattern(k,"repeat"),l.renderRepeat(W,L,R,q))):XI(m)&&(M=kd(r,i,[null,null,null]),W=M[0],ee=M[1],j=M[2],se=M[3],le=M[4],z=m.position.length===0?[fd]:m.position,R=mA(z[0],se),q=mA(z[z.length-1],le),Ae=VI(m,R,q,se,le),me=Ae[0],N=Ae[1],me>0&&N>0&&(I=l.ctx.createRadialGradient(ee+R,j+q,0,ee+R,j+q,me),Gw(m.stops,me*2).forEach(function(ge){return I.addColorStop(ge.stop,YA(ge.color))}),l.path(W),l.ctx.fillStyle=I,me!==N?(P=r.bounds.left+.5*r.bounds.width,E=r.bounds.top+.5*r.bounds.height,te=N/me,oe=1/te,l.ctx.save(),l.ctx.translate(P,E),l.ctx.transform(1,0,0,te,0,0),l.ctx.translate(-P,-E),l.ctx.fillRect(ee,oe*(j-E)+E,se,le*oe),l.ctx.restore()):l.ctx.fill())),fe.label=6;case 6:return i--,[2]}})},l=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:return c<u.length?(f=u[c],[5,s(f)]):[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,i,s){return ot(this,void 0,void 0,function(){return at(this,function(l){return this.path($C(s,i)),this.ctx.fillStyle=YA(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,i,s,l){return ot(this,void 0,void 0,function(){var c,u;return at(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,s,l)]:[3,2];case 1:return f.sent(),[2];case 2:return c=Z3(l,s),this.path(c),this.ctx.fillStyle=YA(r),this.ctx.fill(),u=W3(l,s),this.path(u),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return ot(this,void 0,void 0,function(){var i,s,l,c,u,f,h,m,B=this;return at(this,function(C){switch(C.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,s=!hr(i.backgroundColor)||i.backgroundImage.length,l=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=oM(Gi(i.backgroundClip,0),r.curves),s||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),hr(i.backgroundColor)||(this.ctx.fillStyle=YA(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:C.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(w){B.ctx.save();var v=zo(r.curves),b=w.inset?0:aM,U=q3(v,-b+(w.inset?1:-1)*w.spread.number,(w.inset?1:-1)*w.spread.number,w.spread.number*(w.inset?-2:2),w.spread.number*(w.inset?-2:2));w.inset?(B.path(v),B.ctx.clip(),B.mask(U)):(B.mask(v),B.ctx.clip(),B.path(U)),B.ctx.shadowOffsetX=w.offsetX.number+b,B.ctx.shadowOffsetY=w.offsetY.number,B.ctx.shadowColor=YA(w.color),B.ctx.shadowBlur=w.blur.number,B.ctx.fillStyle=w.inset?YA(w.color):"rgba(0,0,0,1)",B.ctx.fill(),B.ctx.restore()}),C.label=2;case 2:u=0,f=0,h=l,C.label=3;case 3:return f<h.length?(m=h[f],m.style!==0&&!hr(m.color)&&m.width>0?m.style!==2?[3,5]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return C.sent(),[3,11];case 5:return m.style!==3?[3,7]:[4,this.renderDashedDottedBorder(m.color,m.width,u,r.curves,3)];case 6:return C.sent(),[3,11];case 7:return m.style!==4?[3,9]:[4,this.renderDoubleBorder(m.color,m.width,u,r.curves)];case 8:return C.sent(),[3,11];case 9:return[4,this.renderSolidBorder(m.color,u,r.curves)];case 10:C.sent(),C.label=11;case 11:u++,C.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,i,s,l,c){return ot(this,void 0,void 0,function(){var u,f,h,m,B,C,w,v,b,U,Q,T,O,G,k,F,k,F;return at(this,function(H){return this.ctx.save(),u=$3(l,s),f=$C(l,s),c===2&&(this.path(f),this.ctx.clip()),zt(f[0])?(h=f[0].start.x,m=f[0].start.y):(h=f[0].x,m=f[0].y),zt(f[1])?(B=f[1].end.x,C=f[1].end.y):(B=f[1].x,C=f[1].y),s===0||s===2?w=Math.abs(h-B):w=Math.abs(m-C),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),v=i<3?i*3:i*2,b=i<3?i*2:i,c===3&&(v=i,b=i),U=!0,w<=v*2?U=!1:w<=v*2+b?(Q=w/(2*v+b),v*=Q,b*=Q):(T=Math.floor((w+b)/(v+b)),O=(w-T*v)/(T-1),G=(w-(T+1)*v)/T,b=G<=0||Math.abs(b-O)<Math.abs(b-G)?O:G),U&&(c===3?this.ctx.setLineDash([0,v+b]):this.ctx.setLineDash([v,b])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=YA(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(zt(f[0])&&(k=f[3],F=f[0],this.ctx.beginPath(),this.formatPath([new Be(k.end.x,k.end.y),new Be(F.start.x,F.start.y)]),this.ctx.stroke()),zt(f[1])&&(k=f[1],F=f[2],this.ctx.beginPath(),this.formatPath([new Be(k.end.x,k.end.y),new Be(F.start.x,F.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return ot(this,void 0,void 0,function(){var i;return at(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=J3(r),[4,this.renderStack(i)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(ty),lM=function(e){return e instanceof SC||e instanceof xC?!0:e instanceof Fd&&e.type!==Do&&e.type!==Lo},oM=function(e,t){switch(e){case 0:return zo(t);case 2:return G3(t);case 1:default:return Po(t)}},cM=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},uM=["-apple-system","system-ui"],fM=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return uM.indexOf(t)===-1}):e},dM=(function(e){an(t,e);function t(r,i){var s=e.call(this,r,i)||this;return s.canvas=i.canvas?i.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=i,s.canvas.width=Math.floor(i.width*i.scale),s.canvas.height=Math.floor(i.height*i.scale),s.canvas.style.width=i.width+"px",s.canvas.style.height=i.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-i.x,-i.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),s}return t.prototype.render=function(r){return ot(this,void 0,void 0,function(){var i,s;return at(this,function(l){switch(l.label){case 0:return i=Sd(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,hM(i)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=YA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(ty),hM=function(e){return new Promise(function(t,r){var i=new Image;i.onload=function(){t(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},gM=(function(){function e(t){var r=t.id,i=t.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,t))},e.instances={},e})(),pM=(function(){function e(t,r){var i;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new gM({id:this.instanceName,enabled:t.logging}),this.cache=(i=t.cache)!==null&&i!==void 0?i:new O3(this,t)}return e.instanceCount=1,e})(),mM=function(e,t){return t===void 0&&(t={}),BM(e,t)};typeof window<"u"&&YC.setContext(window);var BM=function(e,t){return ot(void 0,void 0,void 0,function(){var r,i,s,l,c,u,f,h,m,B,C,w,v,b,U,Q,T,O,G,k,H,F,H,L,M,W,ee,j,se,le,z,R,q,Ae,me,N,I,P,E,te;return at(this,function(oe){switch(oe.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return s={allowTaint:(L=t.allowTaint)!==null&&L!==void 0?L:!1,imageTimeout:(M=t.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:t.proxy,useCORS:(W=t.useCORS)!==null&&W!==void 0?W:!1},l=zf({logging:(ee=t.logging)!==null&&ee!==void 0?ee:!0,cache:t.cache},s),c={windowWidth:(j=t.windowWidth)!==null&&j!==void 0?j:i.innerWidth,windowHeight:(se=t.windowHeight)!==null&&se!==void 0?se:i.innerHeight,scrollX:(le=t.scrollX)!==null&&le!==void 0?le:i.pageXOffset,scrollY:(z=t.scrollY)!==null&&z!==void 0?z:i.pageYOffset},u=new Tn(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new pM(l,u),h=(R=t.foreignObjectRendering)!==null&&R!==void 0?R:!1,m={allowTaint:(q=t.allowTaint)!==null&&q!==void 0?q:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:h,copyStyles:h},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),B=new zC(f,e,m),C=B.clonedReferenceElement,C?[4,B.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=oe.sent(),v=Nd(C)||w3(C)?q4(C.ownerDocument):ro(f,C),b=v.width,U=v.height,Q=v.left,T=v.top,O=wM(f,C,t.backgroundColor),G={canvas:t.canvas,backgroundColor:O,scale:(me=(Ae=t.scale)!==null&&Ae!==void 0?Ae:i.devicePixelRatio)!==null&&me!==void 0?me:1,x:((N=t.x)!==null&&N!==void 0?N:0)+Q,y:((I=t.y)!==null&&I!==void 0?I:0)+T,width:(P=t.width)!==null&&P!==void 0?P:Math.ceil(b),height:(E=t.height)!==null&&E!==void 0?E:Math.ceil(U)},h?(f.logger.debug("Document cloned, using foreign object rendering"),H=new dM(f,G),[4,H.render(C)]):[3,3];case 2:return k=oe.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+Q+","+T+" with size "+b+"x"+U+" using computed rendering"),f.logger.debug("Starting DOM parsing"),F=FC(f,C),O===F.styles.backgroundColor&&(F.styles.backgroundColor=In.TRANSPARENT),f.logger.debug("Starting renderer for element at "+G.x+","+G.y+" with size "+G.width+"x"+G.height),H=new sM(f,G),[4,H.render(F)];case 4:k=oe.sent(),oe.label=5;case 5:return(!((te=t.removeContainer)!==null&&te!==void 0)||te)&&(zC.destroy(w)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,k]}})})},wM=function(e,t,r){var i=t.ownerDocument,s=i.documentElement?Ts(e,getComputedStyle(i.documentElement).backgroundColor):In.TRANSPARENT,l=i.body?Ts(e,getComputedStyle(i.body).backgroundColor):In.TRANSPARENT,c=typeof r=="string"?Ts(e,r):r===null?In.TRANSPARENT:4294967295;return t===i.documentElement?hr(s)?hr(l)?c:l:s:c};const ny=Object.freeze(Object.defineProperty({__proto__:null,default:mM},Symbol.toStringTag,{value:"Module"}));return uu.renderMedAssist=jB,Object.defineProperty(uu,Symbol.toStringTag,{value:"Module"}),uu})({});
|