packages feed

espial-0.0.35: static/js/app-WY46YY6F.min.js

var Rk=Object.create;var Sf=Object.defineProperty,Nk=Object.defineProperties,zk=Object.getOwnPropertyDescriptor,Ck=Object.getOwnPropertyDescriptors,Uk=Object.getOwnPropertyNames,Vu=Object.getOwnPropertySymbols,Yk=Object.getPrototypeOf,Tf=Object.prototype.hasOwnProperty,wp=Object.prototype.propertyIsEnumerable;var Ap=e=>{throw TypeError(e)};var vf=(e,t,n)=>t in e?Sf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))Tf.call(t,n)&&vf(e,n,t[n]);if(Vu)for(var n of Vu(t))wp.call(t,n)&&vf(e,n,t[n]);return e},$=(e,t)=>Nk(e,Ck(t));var Mp=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Op=(e,t)=>{var n={};for(var a in e)Tf.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Vu)for(var a of Vu(e))t.indexOf(a)<0&&wp.call(e,a)&&(n[a]=e[a]);return n};var Yn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Lk=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Uk(t))!Tf.call(e,l)&&l!==n&&Sf(e,l,{get:()=>t[l],enumerable:!(a=zk(t,l))||a.enumerable});return e};var ve=(e,t,n)=>(n=e!=null?Rk(Yk(e)):{},Lk(t||!e||!e.__esModule?Sf(n,"default",{value:e,enumerable:!0}):n,e));var F=(e,t,n)=>vf(e,typeof t!="symbol"?t+"":t,n),_f=(e,t,n)=>t.has(e)||Ap("Cannot "+n);var O=(e,t,n)=>(_f(e,t,"read from private field"),n?n.call(e):t.get(e)),qt=(e,t,n)=>t.has(e)?Ap("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Et=(e,t,n,a)=>(_f(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n),G=(e,t,n)=>(_f(e,t,"access private method"),n);var kf=(e,t,n,a)=>({set _(l){Et(e,t,l,n)},get _(){return O(e,t,a)}});var Bp=Yn(Qe=>{"use strict";function Af(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,l=e[a];if(0<Zu(l,t))e[a]=t,e[n]=l,n=a;else break e}}function In(e){return e.length===0?null:e[0]}function Xu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,l=e.length,i=l>>>1;a<i;){var u=2*(a+1)-1,c=e[u],d=u+1,m=e[d];if(0>Zu(c,n))d<l&&0>Zu(m,c)?(e[a]=m,e[d]=n,a=d):(e[a]=c,e[u]=n,a=u);else if(d<l&&0>Zu(m,n))e[a]=m,e[d]=n,a=d;else break e}}return t}function Zu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Qe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Dp=performance,Qe.unstable_now=function(){return Dp.now()}):(xf=Date,Rp=xf.now(),Qe.unstable_now=function(){return xf.now()-Rp});var Dp,xf,Rp,_a=[],Ia=[],Hk=1,bn=null,wt=3,Mf=!1,$r=!1,Ir=!1,Of=!1,Cp=typeof setTimeout=="function"?setTimeout:null,Up=typeof clearTimeout=="function"?clearTimeout:null,Np=typeof setImmediate<"u"?setImmediate:null;function Qu(e){for(var t=In(Ia);t!==null;){if(t.callback===null)Xu(Ia);else if(t.startTime<=e)Xu(Ia),t.sortIndex=t.expirationTime,Af(_a,t);else break;t=In(Ia)}}function Df(e){if(Ir=!1,Qu(e),!$r)if(In(_a)!==null)$r=!0,zi||(zi=!0,Ni());else{var t=In(Ia);t!==null&&Rf(Df,t.startTime-e)}}var zi=!1,Pr=-1,Yp=5,Lp=-1;function Hp(){return Of?!0:!(Qe.unstable_now()-Lp<Yp)}function Ef(){if(Of=!1,zi){var e=Qe.unstable_now();Lp=e;var t=!0;try{e:{$r=!1,Ir&&(Ir=!1,Up(Pr),Pr=-1),Mf=!0;var n=wt;try{t:{for(Qu(e),bn=In(_a);bn!==null&&!(bn.expirationTime>e&&Hp());){var a=bn.callback;if(typeof a=="function"){bn.callback=null,wt=bn.priorityLevel;var l=a(bn.expirationTime<=e);if(e=Qe.unstable_now(),typeof l=="function"){bn.callback=l,Qu(e),t=!0;break t}bn===In(_a)&&Xu(_a),Qu(e)}else Xu(_a);bn=In(_a)}if(bn!==null)t=!0;else{var i=In(Ia);i!==null&&Rf(Df,i.startTime-e),t=!1}}break e}finally{bn=null,wt=n,Mf=!1}t=void 0}}finally{t?Ni():zi=!1}}}var Ni;typeof Np=="function"?Ni=function(){Np(Ef)}:typeof MessageChannel<"u"?(wf=new MessageChannel,zp=wf.port2,wf.port1.onmessage=Ef,Ni=function(){zp.postMessage(null)}):Ni=function(){Cp(Ef,0)};var wf,zp;function Rf(e,t){Pr=Cp(function(){e(Qe.unstable_now())},t)}Qe.unstable_IdlePriority=5;Qe.unstable_ImmediatePriority=1;Qe.unstable_LowPriority=4;Qe.unstable_NormalPriority=3;Qe.unstable_Profiling=null;Qe.unstable_UserBlockingPriority=2;Qe.unstable_cancelCallback=function(e){e.callback=null};Qe.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Yp=0<e?Math.floor(1e3/e):5};Qe.unstable_getCurrentPriorityLevel=function(){return wt};Qe.unstable_next=function(e){switch(wt){case 1:case 2:case 3:var t=3;break;default:t=wt}var n=wt;wt=t;try{return e()}finally{wt=n}};Qe.unstable_requestPaint=function(){Of=!0};Qe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=wt;wt=e;try{return t()}finally{wt=n}};Qe.unstable_scheduleCallback=function(e,t,n){var a=Qe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?a+n:a):n=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:Hk++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>a?(e.sortIndex=n,Af(Ia,e),In(_a)===null&&e===In(Ia)&&(Ir?(Up(Pr),Pr=-1):Ir=!0,Rf(Df,n-a))):(e.sortIndex=l,Af(_a,e),$r||Mf||($r=!0,zi||(zi=!0,Ni()))),e};Qe.unstable_shouldYield=Hp;Qe.unstable_wrapCallback=function(e){var t=wt;return function(){var n=wt;wt=t;try{return e.apply(this,arguments)}finally{wt=n}}}});var jp=Yn((N2,qp)=>{"use strict";qp.exports=Bp()});var Ip=Yn(le=>{"use strict";var Cf=Symbol.for("react.transitional.element"),Bk=Symbol.for("react.portal"),qk=Symbol.for("react.fragment"),jk=Symbol.for("react.strict_mode"),Gk=Symbol.for("react.profiler"),Vk=Symbol.for("react.consumer"),Zk=Symbol.for("react.context"),Qk=Symbol.for("react.forward_ref"),Xk=Symbol.for("react.suspense"),Fk=Symbol.for("react.memo"),Xp=Symbol.for("react.lazy"),Kk=Symbol.for("react.activity"),Gp=Symbol.iterator;function Jk(e){return e===null||typeof e!="object"?null:(e=Gp&&e[Gp]||e["@@iterator"],typeof e=="function"?e:null)}var Fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kp=Object.assign,Jp={};function Ui(e,t,n){this.props=e,this.context=t,this.refs=Jp,this.updater=n||Fp}Ui.prototype.isReactComponent={};Ui.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ui.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wp(){}Wp.prototype=Ui.prototype;function Uf(e,t,n){this.props=e,this.context=t,this.refs=Jp,this.updater=n||Fp}var Yf=Uf.prototype=new Wp;Yf.constructor=Uf;Kp(Yf,Ui.prototype);Yf.isPureReactComponent=!0;var Vp=Array.isArray;function zf(){}var qe={H:null,A:null,T:null,S:null},$p=Object.prototype.hasOwnProperty;function Lf(e,t,n){var a=n.ref;return{$$typeof:Cf,type:e,key:t,ref:a!==void 0?a:null,props:n}}function Wk(e,t){return Lf(e.type,t,e.props)}function Hf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cf}function $k(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Zp=/\/+/g;function Nf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$k(""+e.key):t.toString(36)}function Ik(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(zf,zf):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ci(e,t,n,a,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Cf:case Bk:u=!0;break;case Xp:return u=e._init,Ci(u(e._payload),t,n,a,l)}}if(u)return l=l(e),u=a===""?"."+Nf(e,0):a,Vp(l)?(n="",u!=null&&(n=u.replace(Zp,"$&/")+"/"),Ci(l,t,n,"",function(m){return m})):l!=null&&(Hf(l)&&(l=Wk(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(Zp,"$&/")+"/")+u)),t.push(l)),1;u=0;var c=a===""?".":a+":";if(Vp(e))for(var d=0;d<e.length;d++)a=e[d],i=c+Nf(a,d),u+=Ci(a,t,n,i,l);else if(d=Jk(e),typeof d=="function")for(e=d.call(e),d=0;!(a=e.next()).done;)a=a.value,i=c+Nf(a,d++),u+=Ci(a,t,n,i,l);else if(i==="object"){if(typeof e.then=="function")return Ci(Ik(e),t,n,a,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function Fu(e,t,n){if(e==null)return e;var a=[],l=0;return Ci(e,a,"","",function(i){return t.call(n,i,l++)}),a}function Pk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Qp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ex={map:Fu,forEach:function(e,t,n){Fu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Fu(e,function(){t++}),t},toArray:function(e){return Fu(e,function(t){return t})||[]},only:function(e){if(!Hf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Activity=Kk;le.Children=ex;le.Component=Ui;le.Fragment=qk;le.Profiler=Gk;le.PureComponent=Uf;le.StrictMode=jk;le.Suspense=Xk;le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qe;le.__COMPILER_RUNTIME={__proto__:null,c:function(e){return qe.H.useMemoCache(e)}};le.cache=function(e){return function(){return e.apply(null,arguments)}};le.cacheSignal=function(){return null};le.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=Kp({},e.props),l=e.key;if(t!=null)for(i in t.key!==void 0&&(l=""+t.key),t)!$p.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(a[i]=t[i]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];a.children=u}return Lf(e.type,l,a)};le.createContext=function(e){return e={$$typeof:Zk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Vk,_context:e},e};le.createElement=function(e,t,n){var a,l={},i=null;if(t!=null)for(a in t.key!==void 0&&(i=""+t.key),t)$p.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(l[a]=t[a]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];l.children=c}if(e&&e.defaultProps)for(a in u=e.defaultProps,u)l[a]===void 0&&(l[a]=u[a]);return Lf(e,i,l)};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:Qk,render:e}};le.isValidElement=Hf;le.lazy=function(e){return{$$typeof:Xp,_payload:{_status:-1,_result:e},_init:Pk}};le.memo=function(e,t){return{$$typeof:Fk,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=qe.T,n={};qe.T=n;try{var a=e(),l=qe.S;l!==null&&l(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(zf,Qp)}catch(i){Qp(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),qe.T=t}};le.unstable_useCacheRefresh=function(){return qe.H.useCacheRefresh()};le.use=function(e){return qe.H.use(e)};le.useActionState=function(e,t,n){return qe.H.useActionState(e,t,n)};le.useCallback=function(e,t){return qe.H.useCallback(e,t)};le.useContext=function(e){return qe.H.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e,t){return qe.H.useDeferredValue(e,t)};le.useEffect=function(e,t){return qe.H.useEffect(e,t)};le.useEffectEvent=function(e){return qe.H.useEffectEvent(e)};le.useId=function(){return qe.H.useId()};le.useImperativeHandle=function(e,t,n){return qe.H.useImperativeHandle(e,t,n)};le.useInsertionEffect=function(e,t){return qe.H.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return qe.H.useLayoutEffect(e,t)};le.useMemo=function(e,t){return qe.H.useMemo(e,t)};le.useOptimistic=function(e,t){return qe.H.useOptimistic(e,t)};le.useReducer=function(e,t,n){return qe.H.useReducer(e,t,n)};le.useRef=function(e){return qe.H.useRef(e)};le.useState=function(e){return qe.H.useState(e)};le.useSyncExternalStore=function(e,t,n){return qe.H.useSyncExternalStore(e,t,n)};le.useTransition=function(){return qe.H.useTransition()};le.version="19.2.6"});var jt=Yn((C2,Pp)=>{"use strict";Pp.exports=Ip()});var tg=Yn(Ct=>{"use strict";var tx=jt();function eg(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Pa(){}var zt={d:{f:Pa,r:function(){throw Error(eg(522))},D:Pa,C:Pa,L:Pa,m:Pa,X:Pa,S:Pa,M:Pa},p:0,findDOMNode:null},nx=Symbol.for("react.portal");function ax(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nx,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var es=tx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ku(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=zt;Ct.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(eg(299));return ax(e,t,null,n)};Ct.flushSync=function(e){var t=es.T,n=zt.p;try{if(es.T=null,zt.p=2,e)return e()}finally{es.T=t,zt.p=n,zt.d.f()}};Ct.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,zt.d.C(e,t))};Ct.prefetchDNS=function(e){typeof e=="string"&&zt.d.D(e)};Ct.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Ku(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?zt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:l,fetchPriority:i}):n==="script"&&zt.d.X(e,{crossOrigin:a,integrity:l,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ct.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ku(t.as,t.crossOrigin);zt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&zt.d.M(e)};Ct.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Ku(n,t.crossOrigin);zt.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Ct.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ku(t.as,t.crossOrigin);zt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else zt.d.m(e)};Ct.requestFormReset=function(e){zt.d.r(e)};Ct.unstable_batchedUpdates=function(e,t){return e(t)};Ct.useFormState=function(e,t,n){return es.H.useFormState(e,t,n)};Ct.useFormStatus=function(){return es.H.useHostTransitionStatus()};Ct.version="19.2.6"});var lg=Yn((Y2,ag)=>{"use strict";function ng(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ng)}catch(e){console.error(e)}}ng(),ag.exports=tg()});var gv=Yn(Sc=>{"use strict";var ct=jp(),Dy=jt(),lx=lg();function D(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ry(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qs(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ny(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zy(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ig(e){if(qs(e)!==e)throw Error(D(188))}function ix(e){var t=e.alternate;if(!t){if(t=qs(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,a=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return ig(l),e;if(i===a)return ig(l),t;i=i.sibling}throw Error(D(188))}if(n.return!==a.return)n=l,a=i;else{for(var u=!1,c=l.child;c;){if(c===n){u=!0,n=l,a=i;break}if(c===a){u=!0,a=l,n=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===n){u=!0,n=i,a=l;break}if(c===a){u=!0,a=i,n=l;break}c=c.sibling}if(!u)throw Error(D(189))}}if(n.alternate!==a)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Cy(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Cy(e),t!==null)return t;e=e.sibling}return null}var Ve=Object.assign,rx=Symbol.for("react.element"),Ju=Symbol.for("react.transitional.element"),us=Symbol.for("react.portal"),ji=Symbol.for("react.fragment"),Uy=Symbol.for("react.strict_mode"),bd=Symbol.for("react.profiler"),Yy=Symbol.for("react.consumer"),Da=Symbol.for("react.context"),hh=Symbol.for("react.forward_ref"),vd=Symbol.for("react.suspense"),Sd=Symbol.for("react.suspense_list"),mh=Symbol.for("react.memo"),el=Symbol.for("react.lazy"),Td=Symbol.for("react.activity"),sx=Symbol.for("react.memo_cache_sentinel"),rg=Symbol.iterator;function ts(e){return e===null||typeof e!="object"?null:(e=rg&&e[rg]||e["@@iterator"],typeof e=="function"?e:null)}var ux=Symbol.for("react.client.reference");function _d(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ux?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ji:return"Fragment";case bd:return"Profiler";case Uy:return"StrictMode";case vd:return"Suspense";case Sd:return"SuspenseList";case Td:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case us:return"Portal";case Da:return e.displayName||"Context";case Yy:return(e._context.displayName||"Context")+".Consumer";case hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mh:return t=e.displayName||null,t!==null?t:_d(e.type)||"Memo";case el:t=e._payload,e=e._init;try{return _d(e(t))}catch(n){}}return null}var os=Array.isArray,P=Dy.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=lx.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xl={pending:!1,data:null,method:null,action:null},kd=[],Gi=-1;function aa(e){return{current:e}}function ht(e){0>Gi||(e.current=kd[Gi],kd[Gi]=null,Gi--)}function Ye(e,t){Gi++,kd[Gi]=e.current,e.current=t}var na=aa(null),ws=aa(null),fl=aa(null),Oo=aa(null);function Do(e,t){switch(Ye(fl,t),Ye(ws,e),Ye(na,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hy(t),e=nv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ht(na),Ye(na,e)}function rr(){ht(na),ht(ws),ht(fl)}function xd(e){e.memoizedState!==null&&Ye(Oo,e);var t=na.current,n=nv(t,e.type);t!==n&&(Ye(ws,e),Ye(na,n))}function Ro(e){ws.current===e&&(ht(na),ht(ws)),Oo.current===e&&(ht(Oo),Ls._currentValue=Xl)}var Bf,sg;function Gl(e){if(Bf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bf=t&&t[1]||"",sg=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+Bf+e+sg}var qf=!1;function jf(e,t){if(!e||qf)return"";qf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(_){var y=_}Reflect.construct(e,[],T)}else{try{T.call()}catch(_){y=_}e.call(T.prototype)}}else{try{throw Error()}catch(_){y=_}(T=e())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(_){if(_&&y&&typeof _.stack=="string")return[_.stack,y.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],c=i[1];if(u&&c){var d=u.split("\n"),m=c.split("\n");for(l=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;l<m.length&&!m[l].includes("DetermineComponentFrameRoot");)l++;if(a===d.length||l===m.length)for(a=d.length-1,l=m.length-1;1<=a&&0<=l&&d[a]!==m[l];)l--;for(;1<=a&&0<=l;a--,l--)if(d[a]!==m[l]){if(a!==1||l!==1)do if(a--,l--,0>l||d[a]!==m[l]){var p="\n"+d[a].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=a&&0<=l);break}}}finally{qf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Gl(n):""}function ox(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return jf(e.type,!1);case 11:return jf(e.type.render,!1);case 1:return jf(e.type,!0);case 31:return Gl("Activity");default:return""}}function ug(e){try{var t="",n=null;do t+=ox(e,n),n=e,e=e.return;while(e);return t}catch(a){return"\nError generating stack: "+a.message+"\n"+a.stack}}var Ed=Object.prototype.hasOwnProperty,ph=ct.unstable_scheduleCallback,Gf=ct.unstable_cancelCallback,cx=ct.unstable_shouldYield,fx=ct.unstable_requestPaint,ln=ct.unstable_now,dx=ct.unstable_getCurrentPriorityLevel,Ly=ct.unstable_ImmediatePriority,Hy=ct.unstable_UserBlockingPriority,No=ct.unstable_NormalPriority,hx=ct.unstable_LowPriority,By=ct.unstable_IdlePriority,mx=ct.log,px=ct.unstable_setDisableYieldValue,js=null,rn=null;function rl(e){if(typeof mx=="function"&&px(e),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(js,e)}catch(t){}}var sn=Math.clz32?Math.clz32:bx,gx=Math.log,yx=Math.LN2;function bx(e){return e>>>=0,e===0?32:31-(gx(e)/yx|0)|0}var Wu=256,$u=262144,Iu=4194304;function Vl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function lc(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var c=a&134217727;return c!==0?(a=c&~i,a!==0?l=Vl(a):(u&=c,u!==0?l=Vl(u):n||(n=c&~e,n!==0&&(l=Vl(n))))):(c=a&~i,c!==0?l=Vl(c):u!==0?l=Vl(u):n||(n=a&~e,n!==0&&(l=Vl(n)))),l===0?0:t!==0&&t!==l&&(t&i)===0&&(i=l&-l,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:l}function Gs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qy(){var e=Iu;return Iu<<=1,(Iu&62914560)===0&&(Iu=4194304),e}function Vf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sx(e,t,n,a,l,i){var u=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var c=e.entanglements,d=e.expirationTimes,m=e.hiddenUpdates;for(n=u&~n;0<n;){var p=31-sn(n),T=1<<p;c[p]=0,d[p]=-1;var y=m[p];if(y!==null)for(m[p]=null,p=0;p<y.length;p++){var _=y[p];_!==null&&(_.lane&=-536870913)}n&=~T}a!==0&&jy(e,a,0),i!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function jy(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-sn(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Gy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-sn(n),l=1<<a;l&t|e[a]&t&&(e[a]|=t),n&=~l}}function Vy(e,t){var n=t&-t;return n=(n&42)!==0?1:gh(n),(n&(e.suspendedLanes|t))!==0?0:n}function gh(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function yh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zy(){var e=Ee.p;return e!==0?e:(e=window.event,e===void 0?32:hv(e.type))}function og(e,t){var n=Ee.p;try{return Ee.p=e,t()}finally{Ee.p=n}}var xl=Math.random().toString(36).slice(2),yt="__reactFiber$"+xl,Ft="__reactProps$"+xl,yr="__reactContainer$"+xl,wd="__reactEvents$"+xl,Tx="__reactListeners$"+xl,_x="__reactHandles$"+xl,cg="__reactResources$"+xl,Zs="__reactMarker$"+xl;function bh(e){delete e[yt],delete e[Ft],delete e[wd],delete e[Tx],delete e[_x]}function Vi(e){var t=e[yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yr]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=by(e);e!==null;){if(n=e[yt])return n;e=by(e)}return t}e=n,n=e.parentNode}return null}function br(e){if(e=e[yt]||e[yr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(D(33))}function Pi(e){var t=e[cg];return t||(t=e[cg]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[Zs]=!0}var Qy=new Set,Xy={};function ni(e,t){sr(e,t),sr(e+"Capture",t)}function sr(e,t){for(Xy[e]=t,e=0;e<t.length;e++)Qy.add(t[e])}var kx=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]*$"),fg={},dg={};function xx(e){return Ed.call(dg,e)?!0:Ed.call(fg,e)?!1:kx.test(e)?dg[e]=!0:(fg[e]=!0,!1)}function mo(e,t,n){if(xx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Pu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ka(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ex(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){n=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(u){n=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ad(e){if(!e._valueTracker){var t=Fy(e)?"checked":"value";e._valueTracker=Ex(e,t,""+e[t])}}function Ky(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Fy(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function zo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var wx=/[\n"\\]/g;function kn(e){return e.replace(wx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Md(e,t,n,a,l,i,u,c){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Sn(t)):e.value!==""+Sn(t)&&(e.value=""+Sn(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?Od(e,u,Sn(t)):n!=null?Od(e,u,Sn(n)):a!=null&&e.removeAttribute("value"),l==null&&i!=null&&(e.defaultChecked=!!i),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+Sn(c):e.removeAttribute("name")}function Jy(e,t,n,a,l,i,u,c){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ad(e);return}n=n!=null?""+Sn(n):"",t=t!=null?""+Sn(t):n,c||t===e.value||(e.value=t),e.defaultValue=t}a=a!=null?a:l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=c?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Ad(e)}function Od(e,t,n){t==="number"&&zo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function er(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Sn(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,a&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Wy(e,t,n){if(t!=null&&(t=""+Sn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Sn(n):""}function $y(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(D(92));if(os(a)){if(1<a.length)throw Error(D(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Sn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ad(e)}function ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ax=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 hg(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Ax.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Iy(e,t,n){if(t!=null&&typeof t!="object")throw Error(D(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var l in t)a=t[l],t.hasOwnProperty(l)&&n[l]!==a&&hg(e,l,a)}else for(var i in t)t.hasOwnProperty(i)&&hg(e,i,t[i])}function vh(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mx=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"]]),Ox=/^[\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 po(e){return Ox.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}var Dd=null;function Sh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zi=null,tr=null;function mg(e){var t=br(e);if(t&&(e=t.stateNode)){var n=e[Ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(Md(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var l=a[Ft]||null;if(!l)throw Error(D(90));Md(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ky(a)}break e;case"textarea":Wy(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&er(e,!!n.multiple,t,!1)}}}var Zf=!1;function Py(e,t,n){if(Zf)return e(t,n);Zf=!0;try{var a=e(t);return a}finally{if(Zf=!1,(Zi!==null||tr!==null)&&(gc(),Zi&&(t=Zi,e=tr,tr=Zi=null,mg(t),e)))for(t=0;t<e.length;t++)mg(e[t])}}function As(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ft]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rd=!1;if(Ya)try{Yi={},Object.defineProperty(Yi,"passive",{get:function(){Rd=!0}}),window.addEventListener("test",Yi,Yi),window.removeEventListener("test",Yi,Yi)}catch(e){Rd=!1}var Yi,sl=null,Th=null,go=null;function e0(){if(go)return go;var e,t=Th,n=t.length,a,l="value"in sl?sl.value:sl.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var u=n-e;for(a=1;a<=u&&t[n-a]===l[i-a];a++);return go=l.slice(e,1<a?1-a:void 0)}function yo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function eo(){return!0}function pg(){return!1}function Kt(e){function t(n,a,l,i,u){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(n=e[c],this[c]=n?n(i):i[c]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?eo:pg,this.isPropagationStopped=pg,this}return Ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=eo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),t}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ic=Kt(ai),Qs=Ve({},ai,{view:0,detail:0}),Dx=Kt(Qs),Qf,Xf,ns,rc=Ve({},Qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_h,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ns&&(ns&&e.type==="mousemove"?(Qf=e.screenX-ns.screenX,Xf=e.screenY-ns.screenY):Xf=Qf=0,ns=e),Qf)},movementY:function(e){return"movementY"in e?e.movementY:Xf}}),gg=Kt(rc),Rx=Ve({},rc,{dataTransfer:0}),Nx=Kt(Rx),zx=Ve({},Qs,{relatedTarget:0}),Ff=Kt(zx),Cx=Ve({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Ux=Kt(Cx),Yx=Ve({},ai,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lx=Kt(Yx),Hx=Ve({},ai,{data:0}),yg=Kt(Hx),Bx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qx={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"},jx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jx[e])?!!t[e]:!1}function _h(){return Gx}var Vx=Ve({},Qs,{key:function(e){if(e.key){var t=Bx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_h,charCode:function(e){return e.type==="keypress"?yo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zx=Kt(Vx),Qx=Ve({},rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bg=Kt(Qx),Xx=Ve({},Qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_h}),Fx=Kt(Xx),Kx=Ve({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jx=Kt(Kx),Wx=Ve({},rc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$x=Kt(Wx),Ix=Ve({},ai,{newState:0,oldState:0}),Px=Kt(Ix),eE=[9,13,27,32],kh=Ya&&"CompositionEvent"in window,hs=null;Ya&&"documentMode"in document&&(hs=document.documentMode);var tE=Ya&&"TextEvent"in window&&!hs,t0=Ya&&(!kh||hs&&8<hs&&11>=hs),vg=" ",Sg=!1;function n0(e,t){switch(e){case"keyup":return eE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qi=!1;function nE(e,t){switch(e){case"compositionend":return a0(t);case"keypress":return t.which!==32?null:(Sg=!0,vg);case"textInput":return e=t.data,e===vg&&Sg?null:e;default:return null}}function aE(e,t){if(Qi)return e==="compositionend"||!kh&&n0(e,t)?(e=e0(),go=Th=sl=null,Qi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return t0&&t.locale!=="ko"?null:t.data;default:return null}}var lE={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 Tg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lE[e.type]:t==="textarea"}function l0(e,t,n,a){Zi?tr?tr.push(a):tr=[a]:Zi=a,t=$o(t,"onChange"),0<t.length&&(n=new ic("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var ms=null,Ms=null;function iE(e){Pb(e,0)}function sc(e){var t=cs(e);if(Ky(t))return e}function _g(e,t){if(e==="change")return t}var i0=!1;Ya&&(Ya?(no="oninput"in document,no||(Kf=document.createElement("div"),Kf.setAttribute("oninput","return;"),no=typeof Kf.oninput=="function"),to=no):to=!1,i0=to&&(!document.documentMode||9<document.documentMode));var to,no,Kf;function kg(){ms&&(ms.detachEvent("onpropertychange",r0),Ms=ms=null)}function r0(e){if(e.propertyName==="value"&&sc(Ms)){var t=[];l0(t,Ms,e,Sh(e)),Py(iE,t)}}function rE(e,t,n){e==="focusin"?(kg(),ms=t,Ms=n,ms.attachEvent("onpropertychange",r0)):e==="focusout"&&kg()}function sE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sc(Ms)}function uE(e,t){if(e==="click")return sc(t)}function oE(e,t){if(e==="input"||e==="change")return sc(t)}function cE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var on=typeof Object.is=="function"?Object.is:cE;function Os(e,t){if(on(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Ed.call(t,l)||!on(e[l],t[l]))return!1}return!0}function xg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Eg(e,t){var n=xg(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xg(n)}}function s0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?s0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function u0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(a){n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function xh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var fE=Ya&&"documentMode"in document&&11>=document.documentMode,Xi=null,Nd=null,ps=null,zd=!1;function wg(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zd||Xi==null||Xi!==zo(a)||(a=Xi,"selectionStart"in a&&xh(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ps&&Os(ps,a)||(ps=a,a=$o(Nd,"onSelect"),0<a.length&&(t=new ic("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Xi)))}function jl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fi={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},Jf={},o0={};Ya&&(o0=document.createElement("div").style,"AnimationEvent"in window||(delete Fi.animationend.animation,delete Fi.animationiteration.animation,delete Fi.animationstart.animation),"TransitionEvent"in window||delete Fi.transitionend.transition);function li(e){if(Jf[e])return Jf[e];if(!Fi[e])return e;var t=Fi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in o0)return Jf[e]=t[n];return e}var c0=li("animationend"),f0=li("animationiteration"),d0=li("animationstart"),dE=li("transitionrun"),hE=li("transitionstart"),mE=li("transitioncancel"),h0=li("transitionend"),m0=new Map,Cd="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(" ");Cd.push("scrollEnd");function Bn(e,t){m0.set(e,t),ni(t,[e])}var Co=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},vn=[],Ki=0,Eh=0;function uc(){for(var e=Ki,t=Eh=Ki=0;t<e;){var n=vn[t];vn[t++]=null;var a=vn[t];vn[t++]=null;var l=vn[t];vn[t++]=null;var i=vn[t];if(vn[t++]=null,a!==null&&l!==null){var u=a.pending;u===null?l.next=l:(l.next=u.next,u.next=l),a.pending=l}i!==0&&p0(n,l,i)}}function oc(e,t,n,a){vn[Ki++]=e,vn[Ki++]=t,vn[Ki++]=n,vn[Ki++]=a,Eh|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function wh(e,t,n,a){return oc(e,t,n,a),Uo(e)}function ii(e,t){return oc(e,null,null,t),Uo(e)}function p0(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var l=!1,i=e.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(l=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,l&&t!==null&&(l=31-sn(n),e=i.hiddenUpdates,a=e[l],a===null?e[l]=[t]:a.push(t),t.lane=n|536870912),i):null}function Uo(e){if(50<xs)throw xs=0,th=null,Error(D(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ji={};function pE(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,n,a){return new pE(e,t,n,a)}function Ah(e){return e=e.prototype,!(!e||!e.isReactComponent)}function za(e,t){var n=e.alternate;return n===null?(n=nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function g0(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bo(e,t,n,a,l,i){var u=0;if(a=e,typeof e=="function")Ah(e)&&(u=1);else if(typeof e=="string")u=bw(e,n,na.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Td:return e=nn(31,n,t,l),e.elementType=Td,e.lanes=i,e;case ji:return Fl(n.children,l,i,t);case Uy:u=8,l|=24;break;case bd:return e=nn(12,n,t,l|2),e.elementType=bd,e.lanes=i,e;case vd:return e=nn(13,n,t,l),e.elementType=vd,e.lanes=i,e;case Sd:return e=nn(19,n,t,l),e.elementType=Sd,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Da:u=10;break e;case Yy:u=9;break e;case hh:u=11;break e;case mh:u=14;break e;case el:u=16,a=null;break e}u=29,n=Error(D(130,e===null?"null":typeof e,"")),a=null}return t=nn(u,n,t,l),t.elementType=e,t.type=a,t.lanes=i,t}function Fl(e,t,n,a){return e=nn(7,e,a,t),e.lanes=n,e}function Wf(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function y0(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function $f(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ag=new WeakMap;function xn(e,t){if(typeof e=="object"&&e!==null){var n=Ag.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ug(t)},Ag.set(e,t),t)}return{value:e,source:t,stack:ug(t)}}var Wi=[],$i=0,Yo=null,Ds=0,Tn=[],_n=0,Sl=null,Pn=1,ea="";function Ma(e,t){Wi[$i++]=Ds,Wi[$i++]=Yo,Yo=e,Ds=t}function b0(e,t,n){Tn[_n++]=Pn,Tn[_n++]=ea,Tn[_n++]=Sl,Sl=e;var a=Pn;e=ea;var l=32-sn(a)-1;a&=~(1<<l),n+=1;var i=32-sn(t)+l;if(30<i){var u=l-l%5;i=(a&(1<<u)-1).toString(32),a>>=u,l-=u,Pn=1<<32-sn(t)+l|n<<l|a,ea=i+e}else Pn=1<<i|n<<l|a,ea=e}function Mh(e){e.return!==null&&(Ma(e,1),b0(e,1,0))}function Oh(e){for(;e===Yo;)Yo=Wi[--$i],Wi[$i]=null,Ds=Wi[--$i],Wi[$i]=null;for(;e===Sl;)Sl=Tn[--_n],Tn[_n]=null,ea=Tn[--_n],Tn[_n]=null,Pn=Tn[--_n],Tn[_n]=null}function v0(e,t){Tn[_n++]=Pn,Tn[_n++]=ea,Tn[_n++]=Sl,Pn=t.id,ea=t.overflow,Sl=e}var bt=null,Ge=null,pe=!1,dl=null,En=!1,Ud=Error(D(519));function Tl(e){var t=Error(D(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rs(xn(t,e)),Ud}function Mg(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[yt]=e,t[Ft]=a,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<Us.length;n++)ce(Us[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Jy(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),$y(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||tv(t.textContent,n)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Ra),t=!0):t=!1,t||Tl(e,!0)}function Og(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:bt=bt.return}}function Li(e){if(e!==bt)return!1;if(!pe)return Og(e),pe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||rh(e.type,e.memoizedProps)),n=!n),n&&Ge&&Tl(e),Og(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));Ge=yy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));Ge=yy(e)}else t===27?(t=Ge,El(e.type)?(e=ch,ch=null,Ge=e):Ge=t):Ge=bt?An(e.stateNode.nextSibling):null;return!0}function $l(){Ge=bt=null,pe=!1}function If(){var e=dl;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),dl=null),e}function Rs(e){dl===null?dl=[e]:dl.push(e)}var Yd=aa(null),ri=null,Na=null;function nl(e,t,n){Ye(Yd,t._currentValue),t._currentValue=n}function Ca(e){e._currentValue=Yd.current,ht(Yd)}function Ld(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Hd(e,t,n,a){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var i=l.dependencies;if(i!==null){var u=l.child;i=i.firstContext;e:for(;i!==null;){var c=i;i=l;for(var d=0;d<t.length;d++)if(c.context===t[d]){i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Ld(i.return,n,e),a||(u=null);break e}i=c.next}}else if(l.tag===18){if(u=l.return,u===null)throw Error(D(341));u.lanes|=n,i=u.alternate,i!==null&&(i.lanes|=n),Ld(u,n,e),u=null}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===e){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}}function vr(e,t,n,a){e=null;for(var l=t,i=!1;l!==null;){if(!i){if((l.flags&524288)!==0)i=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var u=l.alternate;if(u===null)throw Error(D(387));if(u=u.memoizedProps,u!==null){var c=l.type;on(l.pendingProps.value,u.value)||(e!==null?e.push(c):e=[c])}}else if(l===Oo.current){if(u=l.alternate,u===null)throw Error(D(387));u.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Ls):e=[Ls])}l=l.return}e!==null&&Hd(t,e,n,a),t.flags|=262144}function Lo(e){for(e=e.firstContext;e!==null;){if(!on(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){ri=e,Na=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return S0(ri,e)}function ao(e,t){return ri===null&&Il(e),S0(e,t)}function S0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Na===null){if(e===null)throw Error(D(308));Na=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Na=Na.next=t;return n}var gE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},yE=ct.unstable_scheduleCallback,bE=ct.unstable_NormalPriority,lt={$$typeof:Da,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dh(){return{controller:new gE,data:new Map,refCount:0}}function Xs(e){e.refCount--,e.refCount===0&&yE(bE,function(){e.controller.abort()})}var gs=null,Bd=0,or=0,nr=null;function vE(e,t){if(gs===null){var n=gs=[];Bd=0,or=tm(),nr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Bd++,t.then(Dg,Dg),t}function Dg(){if(--Bd===0&&gs!==null){nr!==null&&(nr.status="fulfilled");var e=gs;gs=null,or=0,nr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function SE(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Rg=P.S;P.S=function(e,t){Cb=ln(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vE(e,t),Rg!==null&&Rg(e,t)};var Kl=aa(null);function Rh(){var e=Kl.current;return e!==null?e:Ce.pooledCache}function vo(e,t){t===null?Ye(Kl,Kl.current):Ye(Kl,t.pool)}function T0(){var e=Rh();return e===null?null:{parent:lt._currentValue,pool:e}}var Sr=Error(D(460)),Nh=Error(D(474)),cc=Error(D(542)),Ho={then:function(){}};function Ng(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ra,Ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cg(e),e;default:if(typeof t.status=="string")t.then(Ra,Ra);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(D(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=a}},function(a){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cg(e),e}throw Jl=t,Sr}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Jl=n,Sr):n}}var Jl=null;function zg(){if(Jl===null)throw Error(D(459));var e=Jl;return Jl=null,e}function Cg(e){if(e===Sr||e===cc)throw Error(D(483))}var ar=null,Ns=0;function lo(e){var t=Ns;return Ns+=1,ar===null&&(ar=[]),_0(ar,e,t)}function as(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function io(e,t){throw t.$$typeof===rx?Error(D(525)):(e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function k0(e){function t(g,b){if(e){var k=g.deletions;k===null?(g.deletions=[b],g.flags|=16):k.push(b)}}function n(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function a(g){for(var b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function l(g,b){return g=za(g,b),g.index=0,g.sibling=null,g}function i(g,b,k){return g.index=k,e?(k=g.alternate,k!==null?(k=k.index,k<b?(g.flags|=67108866,b):k):(g.flags|=67108866,b)):(g.flags|=1048576,b)}function u(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function c(g,b,k,x){return b===null||b.tag!==6?(b=Wf(k,g.mode,x),b.return=g,b):(b=l(b,k),b.return=g,b)}function d(g,b,k,x){var N=k.type;return N===ji?p(g,b,k.props.children,x,k.key):b!==null&&(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===el&&Zl(N)===b.type)?(b=l(b,k.props),as(b,k),b.return=g,b):(b=bo(k.type,k.key,k.props,null,g.mode,x),as(b,k),b.return=g,b)}function m(g,b,k,x){return b===null||b.tag!==4||b.stateNode.containerInfo!==k.containerInfo||b.stateNode.implementation!==k.implementation?(b=$f(k,g.mode,x),b.return=g,b):(b=l(b,k.children||[]),b.return=g,b)}function p(g,b,k,x,N){return b===null||b.tag!==7?(b=Fl(k,g.mode,x,N),b.return=g,b):(b=l(b,k),b.return=g,b)}function T(g,b,k){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Wf(""+b,g.mode,k),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ju:return k=bo(b.type,b.key,b.props,null,g.mode,k),as(k,b),k.return=g,k;case us:return b=$f(b,g.mode,k),b.return=g,b;case el:return b=Zl(b),T(g,b,k)}if(os(b)||ts(b))return b=Fl(b,g.mode,k,null),b.return=g,b;if(typeof b.then=="function")return T(g,lo(b),k);if(b.$$typeof===Da)return T(g,ao(g,b),k);io(g,b)}return null}function y(g,b,k,x){var N=b!==null?b.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return N!==null?null:c(g,b,""+k,x);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Ju:return k.key===N?d(g,b,k,x):null;case us:return k.key===N?m(g,b,k,x):null;case el:return k=Zl(k),y(g,b,k,x)}if(os(k)||ts(k))return N!==null?null:p(g,b,k,x,null);if(typeof k.then=="function")return y(g,b,lo(k),x);if(k.$$typeof===Da)return y(g,b,ao(g,k),x);io(g,k)}return null}function _(g,b,k,x,N){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return g=g.get(k)||null,c(b,g,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ju:return g=g.get(x.key===null?k:x.key)||null,d(b,g,x,N);case us:return g=g.get(x.key===null?k:x.key)||null,m(b,g,x,N);case el:return x=Zl(x),_(g,b,k,x,N)}if(os(x)||ts(x))return g=g.get(k)||null,p(b,g,x,N,null);if(typeof x.then=="function")return _(g,b,k,lo(x),N);if(x.$$typeof===Da)return _(g,b,k,ao(b,x),N);io(b,x)}return null}function E(g,b,k,x){for(var N=null,z=null,Y=b,q=b=0,K=null;Y!==null&&q<k.length;q++){Y.index>q?(K=Y,Y=null):K=Y.sibling;var J=y(g,Y,k[q],x);if(J===null){Y===null&&(Y=K);break}e&&Y&&J.alternate===null&&t(g,Y),b=i(J,b,q),z===null?N=J:z.sibling=J,z=J,Y=K}if(q===k.length)return n(g,Y),pe&&Ma(g,q),N;if(Y===null){for(;q<k.length;q++)Y=T(g,k[q],x),Y!==null&&(b=i(Y,b,q),z===null?N=Y:z.sibling=Y,z=Y);return pe&&Ma(g,q),N}for(Y=a(Y);q<k.length;q++)K=_(Y,g,q,k[q],x),K!==null&&(e&&K.alternate!==null&&Y.delete(K.key===null?q:K.key),b=i(K,b,q),z===null?N=K:z.sibling=K,z=K);return e&&Y.forEach(function(be){return t(g,be)}),pe&&Ma(g,q),N}function w(g,b,k,x){if(k==null)throw Error(D(151));for(var N=null,z=null,Y=b,q=b=0,K=null,J=k.next();Y!==null&&!J.done;q++,J=k.next()){Y.index>q?(K=Y,Y=null):K=Y.sibling;var be=y(g,Y,J.value,x);if(be===null){Y===null&&(Y=K);break}e&&Y&&be.alternate===null&&t(g,Y),b=i(be,b,q),z===null?N=be:z.sibling=be,z=be,Y=K}if(J.done)return n(g,Y),pe&&Ma(g,q),N;if(Y===null){for(;!J.done;q++,J=k.next())J=T(g,J.value,x),J!==null&&(b=i(J,b,q),z===null?N=J:z.sibling=J,z=J);return pe&&Ma(g,q),N}for(Y=a(Y);!J.done;q++,J=k.next())J=_(Y,g,q,J.value,x),J!==null&&(e&&J.alternate!==null&&Y.delete(J.key===null?q:J.key),b=i(J,b,q),z===null?N=J:z.sibling=J,z=J);return e&&Y.forEach(function(Ue){return t(g,Ue)}),pe&&Ma(g,q),N}function R(g,b,k,x){if(typeof k=="object"&&k!==null&&k.type===ji&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case Ju:e:{for(var N=k.key;b!==null;){if(b.key===N){if(N=k.type,N===ji){if(b.tag===7){n(g,b.sibling),x=l(b,k.props.children),x.return=g,g=x;break e}}else if(b.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===el&&Zl(N)===b.type){n(g,b.sibling),x=l(b,k.props),as(x,k),x.return=g,g=x;break e}n(g,b);break}else t(g,b);b=b.sibling}k.type===ji?(x=Fl(k.props.children,g.mode,x,k.key),x.return=g,g=x):(x=bo(k.type,k.key,k.props,null,g.mode,x),as(x,k),x.return=g,g=x)}return u(g);case us:e:{for(N=k.key;b!==null;){if(b.key===N)if(b.tag===4&&b.stateNode.containerInfo===k.containerInfo&&b.stateNode.implementation===k.implementation){n(g,b.sibling),x=l(b,k.children||[]),x.return=g,g=x;break e}else{n(g,b);break}else t(g,b);b=b.sibling}x=$f(k,g.mode,x),x.return=g,g=x}return u(g);case el:return k=Zl(k),R(g,b,k,x)}if(os(k))return E(g,b,k,x);if(ts(k)){if(N=ts(k),typeof N!="function")throw Error(D(150));return k=N.call(k),w(g,b,k,x)}if(typeof k.then=="function")return R(g,b,lo(k),x);if(k.$$typeof===Da)return R(g,b,ao(g,k),x);io(g,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,b!==null&&b.tag===6?(n(g,b.sibling),x=l(b,k),x.return=g,g=x):(n(g,b),x=Wf(k,g.mode,x),x.return=g,g=x),u(g)):n(g,b)}return function(g,b,k,x){try{Ns=0;var N=R(g,b,k,x);return ar=null,N}catch(Y){if(Y===Sr||Y===cc)throw Y;var z=nn(29,Y,null,g.mode);return z.lanes=x,z.return=g,z}}}var Pl=k0(!0),x0=k0(!1),tl=!1;function zh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var l=a.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),a.pending=t,t=Uo(e),p0(e,null,n),t}return oc(e,a,t,n),Uo(e)}function ys(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gy(e,n)}}function Pf(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?l=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jd=!1;function bs(){if(jd){var e=nr;if(e!==null)throw e}}function vs(e,t,n,a){jd=!1;var l=e.updateQueue;tl=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var d=c,m=d.next;d.next=null,u===null?i=m:u.next=m,u=d;var p=e.alternate;p!==null&&(p=p.updateQueue,c=p.lastBaseUpdate,c!==u&&(c===null?p.firstBaseUpdate=m:c.next=m,p.lastBaseUpdate=d))}if(i!==null){var T=l.baseState;u=0,p=m=d=null,c=i;do{var y=c.lane&-536870913,_=y!==c.lane;if(_?(de&y)===y:(a&y)===y){y!==0&&y===or&&(jd=!0),p!==null&&(p=p.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var E=e,w=c;y=t;var R=n;switch(w.tag){case 1:if(E=w.payload,typeof E=="function"){T=E.call(R,T,y);break e}T=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=w.payload,y=typeof E=="function"?E.call(R,T,y):E,y==null)break e;T=Ve({},T,y);break e;case 2:tl=!0}}y=c.callback,y!==null&&(e.flags|=64,_&&(e.flags|=8192),_=l.callbacks,_===null?l.callbacks=[y]:_.push(y))}else _={lane:y,tag:c.tag,payload:c.payload,callback:c.callback,next:null},p===null?(m=p=_,d=T):p=p.next=_,u|=y;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;_=c,c=_.next,_.next=null,l.lastBaseUpdate=_,l.shared.pending=null}}while(!0);p===null&&(d=T),l.baseState=d,l.firstBaseUpdate=m,l.lastBaseUpdate=p,i===null&&(l.shared.lanes=0),kl|=u,e.lanes=u,e.memoizedState=T}}function E0(e,t){if(typeof e!="function")throw Error(D(191,e));e.call(t)}function w0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)E0(n[e],t)}var cr=aa(null),Bo=aa(0);function Ug(e,t){e=qa,Ye(Bo,e),Ye(cr,t),qa=e|t.baseLanes}function Gd(){Ye(Bo,qa),Ye(cr,cr.current)}function Ch(){qa=Bo.current,ht(cr),ht(Bo)}var cn=aa(null),wn=null;function al(e){var t=e.alternate;Ye(Ie,Ie.current&1),Ye(cn,e),wn===null&&(t===null||cr.current!==null||t.memoizedState!==null)&&(wn=e)}function Vd(e){Ye(Ie,Ie.current),Ye(cn,e),wn===null&&(wn=e)}function A0(e){e.tag===22?(Ye(Ie,Ie.current),Ye(cn,e),wn===null&&(wn=e)):ll(e)}function ll(){Ye(Ie,Ie.current),Ye(cn,cn.current)}function tn(e){ht(cn),wn===e&&(wn=null),ht(Ie)}var Ie=aa(0);function qo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||uh(n)||oh(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var La=0,ie=null,Ne=null,nt=null,jo=!1,lr=!1,ei=!1,Go=0,zs=0,ir=null,TE=0;function Fe(){throw Error(D(321))}function Uh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!on(e[n],t[n]))return!1;return!0}function Yh(e,t,n,a,l,i){return La=i,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?lb:Fh,ei=!1,i=n(a,l),ei=!1,lr&&(i=O0(t,n,a,l)),M0(e),i}function M0(e){P.H=Cs;var t=Ne!==null&&Ne.next!==null;if(La=0,nt=Ne=ie=null,jo=!1,zs=0,ir=null,t)throw Error(D(300));e===null||it||(e=e.dependencies,e!==null&&Lo(e)&&(it=!0))}function O0(e,t,n,a){ie=e;var l=0;do{if(lr&&(ir=null),zs=0,lr=!1,25<=l)throw Error(D(301));if(l+=1,nt=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}P.H=ib,i=t(n,a)}while(lr);return i}function _E(){var e=P.H,t=e.useState()[0];return t=typeof t.then=="function"?Fs(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ie.flags|=1024),t}function Lh(){var e=Go!==0;return Go=0,e}function Hh(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Bh(e){if(jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jo=!1}La=0,nt=Ne=ie=null,lr=!1,zs=Go=0,ir=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?ie.memoizedState=nt=e:nt=nt.next=e,nt}function Pe(){if(Ne===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=nt===null?ie.memoizedState:nt.next;if(t!==null)nt=t,Ne=e;else{if(e===null)throw ie.alternate===null?Error(D(467)):Error(D(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},nt===null?ie.memoizedState=nt=e:nt=nt.next=e}return nt}function fc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fs(e){var t=zs;return zs+=1,ir===null&&(ir=[]),e=_0(ir,e,t),t=ie,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?lb:Fh),e}function dc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fs(e);if(e.$$typeof===Da)return vt(e)}throw Error(D(438,String(e)))}function qh(e){var t=null,n=ie.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ie.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=fc(),ie.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=sx;return t.index++,n}function Ha(e,t){return typeof t=="function"?t(e):t}function So(e){var t=Pe();return jh(t,Ne,e)}function jh(e,t,n){var a=e.queue;if(a===null)throw Error(D(311));a.lastRenderedReducer=n;var l=e.baseQueue,i=a.pending;if(i!==null){if(l!==null){var u=l.next;l.next=i.next,i.next=u}t.baseQueue=l=i,a.pending=null}if(i=e.baseState,l===null)e.memoizedState=i;else{t=l.next;var c=u=null,d=null,m=t,p=!1;do{var T=m.lane&-536870913;if(T!==m.lane?(de&T)===T:(La&T)===T){var y=m.revertLane;if(y===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),T===or&&(p=!0);else if((La&y)===y){m=m.next,y===or&&(p=!0);continue}else T={lane:0,revertLane:m.revertLane,gesture:null,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},d===null?(c=d=T,u=i):d=d.next=T,ie.lanes|=y,kl|=y;T=m.action,ei&&n(i,T),i=m.hasEagerState?m.eagerState:n(i,T)}else y={lane:T,revertLane:m.revertLane,gesture:m.gesture,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},d===null?(c=d=y,u=i):d=d.next=y,ie.lanes|=T,kl|=T;m=m.next}while(m!==null&&m!==t);if(d===null?u=i:d.next=c,!on(i,e.memoizedState)&&(it=!0,p&&(n=nr,n!==null)))throw n;e.memoizedState=i,e.baseState=u,e.baseQueue=d,a.lastRenderedState=i}return l===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ed(e){var t=Pe(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var a=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var u=l=l.next;do i=e(i,u.action),u=u.next;while(u!==l);on(i,t.memoizedState)||(it=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function D0(e,t,n){var a=ie,l=Pe(),i=pe;if(i){if(n===void 0)throw Error(D(407));n=n()}else n=t();var u=!on((Ne||l).memoizedState,n);if(u&&(l.memoizedState=n,it=!0),l=l.queue,Gh(z0.bind(null,a,l,e),[e]),l.getSnapshot!==t||u||nt!==null&&nt.memoizedState.tag&1){if(a.flags|=2048,fr(9,{destroy:void 0},N0.bind(null,a,l,n,t),null),Ce===null)throw Error(D(349));i||(La&127)!==0||R0(a,t,n)}return n}function R0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ie.updateQueue,t===null?(t=fc(),ie.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function N0(e,t,n,a){t.value=n,t.getSnapshot=a,C0(t)&&U0(e)}function z0(e,t,n){return n(function(){C0(t)&&U0(e)})}function C0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!on(e,n)}catch(a){return!0}}function U0(e){var t=ii(e,2);t!==null&&Xt(t,e,2)}function Zd(e){var t=Ut();if(typeof e=="function"){var n=e;if(e=n(),ei){rl(!0);try{n()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:e},t}function Y0(e,t,n,a){return e.baseState=n,jh(e,Ne,typeof a=="function"?a:Ha)}function kE(e,t,n,a,l){if(mc(e))throw Error(D(485));if(e=t.action,e!==null){var i={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};P.T!==null?n(!0):i.isTransition=!1,a(i),n=t.pending,n===null?(i.next=t.pending=i,L0(t,i)):(i.next=n.next,t.pending=n.next=i)}}function L0(e,t){var n=t.action,a=t.payload,l=e.state;if(t.isTransition){var i=P.T,u={};P.T=u;try{var c=n(l,a),d=P.S;d!==null&&d(u,c),Yg(e,t,c)}catch(m){Qd(e,t,m)}finally{i!==null&&u.types!==null&&(i.types=u.types),P.T=i}}else try{i=n(l,a),Yg(e,t,i)}catch(m){Qd(e,t,m)}}function Yg(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Lg(e,t,a)},function(a){return Qd(e,t,a)}):Lg(e,t,n)}function Lg(e,t,n){t.status="fulfilled",t.value=n,H0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,L0(e,n)))}function Qd(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,H0(t),t=t.next;while(t!==a)}e.action=null}function H0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function B0(e,t){return t}function Hg(e,t){if(pe){var n=Ce.formState;if(n!==null){e:{var a=ie;if(pe){if(Ge){t:{for(var l=Ge,i=En;l.nodeType!==8;){if(!i){l=null;break t}if(l=An(l.nextSibling),l===null){l=null;break t}}i=l.data,l=i==="F!"||i==="F"?l:null}if(l){Ge=An(l.nextSibling),a=l.data==="F!";break e}}Tl(a)}a=!1}a&&(t=n[0])}}return n=Ut(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:B0,lastRenderedState:t},n.queue=a,n=tb.bind(null,ie,a),a.dispatch=n,a=Zd(!1),i=Xh.bind(null,ie,!1,a.queue),a=Ut(),l={state:t,dispatch:null,action:e,pending:null},a.queue=l,n=kE.bind(null,ie,l,i,n),l.dispatch=n,a.memoizedState=e,[t,n,!1]}function Bg(e){var t=Pe();return q0(t,Ne,e)}function q0(e,t,n){if(t=jh(e,t,B0)[0],e=So(Ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Fs(t)}catch(u){throw u===Sr?cc:u}else a=t;t=Pe();var l=t.queue,i=l.dispatch;return n!==t.memoizedState&&(ie.flags|=2048,fr(9,{destroy:void 0},xE.bind(null,l,n),null)),[a,i,e]}function xE(e,t){e.action=t}function qg(e){var t=Pe(),n=Ne;if(n!==null)return q0(t,n,e);Pe(),t=t.memoizedState,n=Pe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function fr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ie.updateQueue,t===null&&(t=fc(),ie.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function j0(){return Pe().memoizedState}function To(e,t,n,a){var l=Ut();ie.flags|=e,l.memoizedState=fr(1|t,{destroy:void 0},n,a===void 0?null:a)}function hc(e,t,n,a){var l=Pe();a=a===void 0?null:a;var i=l.memoizedState.inst;Ne!==null&&a!==null&&Uh(a,Ne.memoizedState.deps)?l.memoizedState=fr(t,i,n,a):(ie.flags|=e,l.memoizedState=fr(1|t,i,n,a))}function jg(e,t){To(8390656,8,e,t)}function Gh(e,t){hc(2048,8,e,t)}function EE(e){ie.flags|=4;var t=ie.updateQueue;if(t===null)t=fc(),ie.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function G0(e){var t=Pe().memoizedState;return EE({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(D(440));return t.impl.apply(void 0,arguments)}}function V0(e,t){return hc(4,2,e,t)}function Z0(e,t){return hc(4,4,e,t)}function Q0(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function X0(e,t,n){n=n!=null?n.concat([e]):null,hc(4,4,Q0.bind(null,t,e),n)}function Vh(){}function F0(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Uh(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function K0(e,t){var n=Pe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Uh(t,a[1]))return a[0];if(a=e(),ei){rl(!0);try{e()}finally{rl(!1)}}return n.memoizedState=[a,t],a}function Zh(e,t,n){return n===void 0||(La&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Yb(),ie.lanes|=e,kl|=e,n)}function J0(e,t,n,a){return on(n,t)?n:cr.current!==null?(e=Zh(e,n,a),on(e,t)||(it=!0),e):(La&42)===0||(La&1073741824)!==0&&(de&261930)===0?(it=!0,e.memoizedState=n):(e=Yb(),ie.lanes|=e,kl|=e,t)}function W0(e,t,n,a,l){var i=Ee.p;Ee.p=i!==0&&8>i?i:8;var u=P.T,c={};P.T=c,Xh(e,!1,t,n);try{var d=l(),m=P.S;if(m!==null&&m(c,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var p=SE(d,a);Ss(e,t,p,un(e))}else Ss(e,t,a,un(e))}catch(T){Ss(e,t,{then:function(){},status:"rejected",reason:T},un())}finally{Ee.p=i,u!==null&&c.types!==null&&(u.types=c.types),P.T=u}}function wE(){}function Xd(e,t,n,a){if(e.tag!==5)throw Error(D(476));var l=$0(e).queue;W0(e,l,t,Xl,n===null?wE:function(){return I0(e),n(a)})}function $0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xl,baseState:Xl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:Xl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function I0(e){var t=$0(e);t.next===null&&(t=e.alternate.memoizedState),Ss(e,t.next.queue,{},un())}function Qh(){return vt(Ls)}function P0(){return Pe().memoizedState}function eb(){return Pe().memoizedState}function AE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=un();e=hl(n);var a=ml(t,e,n);a!==null&&(Xt(a,t,n),ys(a,t,n)),t={cache:Dh()},e.payload=t;return}t=t.return}}function ME(e,t,n){var a=un();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e)?nb(t,n):(n=wh(e,t,n,a),n!==null&&(Xt(n,e,a),ab(n,t,a)))}function tb(e,t,n){var a=un();Ss(e,t,n,a)}function Ss(e,t,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))nb(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,n);if(l.hasEagerState=!0,l.eagerState=c,on(c,u))return oc(e,t,l,0),Ce===null&&uc(),!1}catch(d){}if(n=wh(e,t,l,a),n!==null)return Xt(n,e,a),ab(n,t,a),!0}return!1}function Xh(e,t,n,a){if(a={lane:2,revertLane:tm(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mc(e)){if(t)throw Error(D(479))}else t=wh(e,n,a,2),t!==null&&Xt(t,e,2)}function mc(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function nb(e,t){lr=jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ab(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Gy(e,n)}}var Cs={readContext:vt,use:dc,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};Cs.useEffectEvent=Fe;var lb={readContext:vt,use:dc,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:jg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,To(4194308,4,Q0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){To(4,2,e,t)},useMemo:function(e,t){var n=Ut();t=t===void 0?null:t;var a=e();if(ei){rl(!0);try{e()}finally{rl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Ut();if(n!==void 0){var l=n(t);if(ei){rl(!0);try{n(t)}finally{rl(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=ME.bind(null,ie,e),[a.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Zd(e);var t=e.queue,n=tb.bind(null,ie,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Vh,useDeferredValue:function(e,t){var n=Ut();return Zh(n,e,t)},useTransition:function(){var e=Zd(!1);return e=W0.bind(null,ie,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ie,l=Ut();if(pe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Ce===null)throw Error(D(349));(de&127)!==0||R0(a,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,jg(z0.bind(null,a,i,e),[e]),a.flags|=2048,fr(9,{destroy:void 0},N0.bind(null,a,i,n,t),null),n},useId:function(){var e=Ut(),t=Ce.identifierPrefix;if(pe){var n=ea,a=Pn;n=(a&~(1<<32-sn(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Go++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=TE++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qh,useFormState:Hg,useActionState:Hg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xh.bind(null,ie,!0,n),n.dispatch=t,[e,t]},useMemoCache:qh,useCacheRefresh:function(){return Ut().memoizedState=AE.bind(null,ie)},useEffectEvent:function(e){var t=Ut(),n={impl:e};return t.memoizedState=n,function(){if((xe&2)!==0)throw Error(D(440));return n.impl.apply(void 0,arguments)}}},Fh={readContext:vt,use:dc,useCallback:F0,useContext:vt,useEffect:Gh,useImperativeHandle:X0,useInsertionEffect:V0,useLayoutEffect:Z0,useMemo:K0,useReducer:So,useRef:j0,useState:function(){return So(Ha)},useDebugValue:Vh,useDeferredValue:function(e,t){var n=Pe();return J0(n,Ne.memoizedState,e,t)},useTransition:function(){var e=So(Ha)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Fs(e),t]},useSyncExternalStore:D0,useId:P0,useHostTransitionStatus:Qh,useFormState:Bg,useActionState:Bg,useOptimistic:function(e,t){var n=Pe();return Y0(n,Ne,e,t)},useMemoCache:qh,useCacheRefresh:eb};Fh.useEffectEvent=G0;var ib={readContext:vt,use:dc,useCallback:F0,useContext:vt,useEffect:Gh,useImperativeHandle:X0,useInsertionEffect:V0,useLayoutEffect:Z0,useMemo:K0,useReducer:ed,useRef:j0,useState:function(){return ed(Ha)},useDebugValue:Vh,useDeferredValue:function(e,t){var n=Pe();return Ne===null?Zh(n,e,t):J0(n,Ne.memoizedState,e,t)},useTransition:function(){var e=ed(Ha)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Fs(e),t]},useSyncExternalStore:D0,useId:P0,useHostTransitionStatus:Qh,useFormState:qg,useActionState:qg,useOptimistic:function(e,t){var n=Pe();return Ne!==null?Y0(n,Ne,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qh,useCacheRefresh:eb};ib.useEffectEvent=G0;function td(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fd={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=un(),l=hl(a);l.payload=t,n!=null&&(l.callback=n),t=ml(e,l,a),t!==null&&(Xt(t,e,a),ys(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=un(),l=hl(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=ml(e,l,a),t!==null&&(Xt(t,e,a),ys(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=un(),a=hl(n);a.tag=2,t!=null&&(a.callback=t),t=ml(e,a,n),t!==null&&(Xt(t,e,n),ys(t,e,n))}};function Gg(e,t,n,a,l,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!Os(n,a)||!Os(l,i):!0}function Vg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Fd.enqueueReplaceState(t,t.state,null)}function ti(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Ve({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function rb(e){Co(e)}function sb(e){console.error(e)}function ub(e){Co(e)}function Vo(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Zg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Kd(e,t,n){return n=hl(n),n.tag=3,n.payload={element:null},n.callback=function(){Vo(e,t)},n}function ob(e){return e=hl(e),e.tag=3,e}function cb(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var i=a.value;e.payload=function(){return l(i)},e.callback=function(){Zg(t,n,a)}}var u=n.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Zg(t,n,a),typeof l!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function OE(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&vr(t,n,l,!0),n=cn.current,n!==null){switch(n.tag){case 31:case 13:return wn===null?Ko():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===Ho?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),dd(e,a,l)),!1;case 22:return n.flags|=65536,a===Ho?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),dd(e,a,l)),!1}throw Error(D(435,n.tag))}return dd(e,a,l),Ko(),!1}if(pe)return t=cn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==Ud&&(e=Error(D(422),{cause:a}),Rs(xn(e,n)))):(a!==Ud&&(t=Error(D(423),{cause:a}),Rs(xn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=xn(a,n),l=Kd(e.stateNode,a,l),Pf(e,l),Ke!==4&&(Ke=2)),!1;var i=Error(D(520),{cause:a});if(i=xn(i,n),ks===null?ks=[i]:ks.push(i),Ke!==4&&(Ke=2),t===null)return!0;a=xn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Kd(n.stateNode,a,e),Pf(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(pl===null||!pl.has(i))))return n.flags|=65536,l&=-l,n.lanes|=l,l=ob(l),cb(l,e,n,a),Pf(n,l),!1}n=n.return}while(n!==null);return!1}var Kh=Error(D(461)),it=!1;function gt(e,t,n,a){t.child=e===null?x0(t,null,n,a):Pl(t,e.child,n,a)}function Qg(e,t,n,a,l){n=n.render;var i=t.ref;if("ref"in a){var u={};for(var c in a)c!=="ref"&&(u[c]=a[c])}else u=a;return Il(t),a=Yh(e,t,n,u,i,l),c=Lh(),e!==null&&!it?(Hh(e,t,l),Ba(e,t,l)):(pe&&c&&Mh(t),t.flags|=1,gt(e,t,a,l),t.child)}function Xg(e,t,n,a,l){if(e===null){var i=n.type;return typeof i=="function"&&!Ah(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,fb(e,t,i,a,l)):(e=bo(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Jh(e,l)){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:Os,n(u,a)&&e.ref===t.ref)return Ba(e,t,l)}return t.flags|=1,e=za(i,a),e.ref=t.ref,e.return=t,t.child=e}function fb(e,t,n,a,l){if(e!==null){var i=e.memoizedProps;if(Os(i,a)&&e.ref===t.ref)if(it=!1,t.pendingProps=a=i,Jh(e,l))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Ba(e,t,l)}return Jd(e,t,n,a,l)}function db(e,t,n,a){var l=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~i}else a=0,t.child=null;return Fg(e,t,i,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vo(t,i!==null?i.cachePool:null),i!==null?Ug(t,i):Gd(),A0(t);else return a=t.lanes=536870912,Fg(e,t,i!==null?i.baseLanes|n:n,n,a)}else i!==null?(vo(t,i.cachePool),Ug(t,i),ll(t),t.memoizedState=null):(e!==null&&vo(t,null),Gd(),ll(t));return gt(e,t,l,n),t.child}function fs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fg(e,t,n,a,l){var i=Rh();return i=i===null?null:{parent:lt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&vo(t,null),Gd(),A0(t),e!==null&&vr(e,t,a,!0),t.childLanes=l,null}function _o(e,t){return t=Zo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kg(e,t,n){return Pl(t,e.child,null,n),e=_o(t,t.pendingProps),e.flags|=2,tn(t),t.memoizedState=null,e}function DE(e,t,n){var a=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(a.mode==="hidden")return e=_o(t,a),t.lanes=536870912,fs(null,e);if(Vd(t),(e=Ge)?(e=lv(e,En),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sl!==null?{id:Pn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},n=y0(e),n.return=t,t.child=n,bt=t,Ge=null)):e=null,e===null)throw Tl(t);return t.lanes=536870912,null}return _o(t,a)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(Vd(t),l)if(t.flags&256)t.flags&=-257,t=Kg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(D(558));else if(it||vr(e,t,n,!1),l=(n&e.childLanes)!==0,it||l){if(a=Ce,a!==null&&(u=Vy(a,n),u!==0&&u!==i.retryLane))throw i.retryLane=u,ii(e,u),Xt(a,e,u),Kh;Ko(),t=Kg(e,t,n)}else e=i.treeContext,Ge=An(u.nextSibling),bt=t,pe=!0,dl=null,En=!1,e!==null&&v0(t,e),t=_o(t,a),t.flags|=4096;return t}return e=za(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ko(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(D(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Jd(e,t,n,a,l){return Il(t),n=Yh(e,t,n,a,void 0,l),a=Lh(),e!==null&&!it?(Hh(e,t,l),Ba(e,t,l)):(pe&&a&&Mh(t),t.flags|=1,gt(e,t,n,l),t.child)}function Jg(e,t,n,a,l,i){return Il(t),t.updateQueue=null,n=O0(t,a,n,l),M0(e),a=Lh(),e!==null&&!it?(Hh(e,t,i),Ba(e,t,i)):(pe&&a&&Mh(t),t.flags|=1,gt(e,t,n,i),t.child)}function Wg(e,t,n,a,l){if(Il(t),t.stateNode===null){var i=Ji,u=n.contextType;typeof u=="object"&&u!==null&&(i=vt(u)),i=new n(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Fd,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},zh(t),u=n.contextType,i.context=typeof u=="object"&&u!==null?vt(u):Ji,i.state=t.memoizedState,u=n.getDerivedStateFromProps,typeof u=="function"&&(td(t,n,u,a),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Fd.enqueueReplaceState(i,i.state,null),vs(t,a,i,l),bs(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var c=t.memoizedProps,d=ti(n,c);i.props=d;var m=i.context,p=n.contextType;u=Ji,typeof p=="object"&&p!==null&&(u=vt(p));var T=n.getDerivedStateFromProps;p=typeof T=="function"||typeof i.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c||m!==u)&&Vg(t,i,a,u),tl=!1;var y=t.memoizedState;i.state=y,vs(t,a,i,l),bs(),m=t.memoizedState,c||y!==m||tl?(typeof T=="function"&&(td(t,n,T,a),m=t.memoizedState),(d=tl||Gg(t,n,d,a,y,m,u))?(p||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=m),i.props=a,i.state=m,i.context=u,a=d):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,qd(e,t),u=t.memoizedProps,p=ti(n,u),i.props=p,T=t.pendingProps,y=i.context,m=n.contextType,d=Ji,typeof m=="object"&&m!==null&&(d=vt(m)),c=n.getDerivedStateFromProps,(m=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==T||y!==d)&&Vg(t,i,a,d),tl=!1,y=t.memoizedState,i.state=y,vs(t,a,i,l),bs();var _=t.memoizedState;u!==T||y!==_||tl||e!==null&&e.dependencies!==null&&Lo(e.dependencies)?(typeof c=="function"&&(td(t,n,c,a),_=t.memoizedState),(p=tl||Gg(t,n,p,a,y,_,d)||e!==null&&e.dependencies!==null&&Lo(e.dependencies))?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,_,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,_,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),i.props=a,i.state=_,i.context=d,a=p):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ko(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Pl(t,e.child,null,l),t.child=Pl(t,null,n,l)):gt(e,t,n,l),t.memoizedState=i.state,e=t.child):e=Ba(e,t,l),e}function $g(e,t,n,a){return $l(),t.flags|=256,gt(e,t,n,a),t.child}var nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ad(e){return{baseLanes:e,cachePool:T0()}}function ld(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=an),e}function hb(e,t,n){var a=t.pendingProps,l=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),u&&(l=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(l?al(t):ll(t),(e=Ge)?(e=lv(e,En),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Sl!==null?{id:Pn,overflow:ea}:null,retryLane:536870912,hydrationErrors:null},n=y0(e),n.return=t,t.child=n,bt=t,Ge=null)):e=null,e===null)throw Tl(t);return oh(e)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,l?(ll(t),l=t.mode,c=Zo({mode:"hidden",children:c},l),a=Fl(a,l,n,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=ad(n),a.childLanes=ld(e,u,n),t.memoizedState=nd,fs(null,a)):(al(t),Wd(t,c))}var d=e.memoizedState;if(d!==null&&(c=d.dehydrated,c!==null)){if(i)t.flags&256?(al(t),t.flags&=-257,t=id(e,t,n)):t.memoizedState!==null?(ll(t),t.child=e.child,t.flags|=128,t=null):(ll(t),c=a.fallback,l=t.mode,a=Zo({mode:"visible",children:a.children},l),c=Fl(c,l,n,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,Pl(t,e.child,null,n),a=t.child,a.memoizedState=ad(n),a.childLanes=ld(e,u,n),t.memoizedState=nd,t=fs(null,a));else if(al(t),oh(c)){if(u=c.nextSibling&&c.nextSibling.dataset,u)var m=u.dgst;u=m,a=Error(D(419)),a.stack="",a.digest=u,Rs({value:a,source:null,stack:null}),t=id(e,t,n)}else if(it||vr(e,t,n,!1),u=(n&e.childLanes)!==0,it||u){if(u=Ce,u!==null&&(a=Vy(u,n),a!==0&&a!==d.retryLane))throw d.retryLane=a,ii(e,a),Xt(u,e,a),Kh;uh(c)||Ko(),t=id(e,t,n)}else uh(c)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,Ge=An(c.nextSibling),bt=t,pe=!0,dl=null,En=!1,e!==null&&v0(t,e),t=Wd(t,a.children),t.flags|=4096);return t}return l?(ll(t),c=a.fallback,l=t.mode,d=e.child,m=d.sibling,a=za(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,m!==null?c=za(m,c):(c=Fl(c,l,n,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,fs(null,a),a=t.child,c=e.child.memoizedState,c===null?c=ad(n):(l=c.cachePool,l!==null?(d=lt._currentValue,l=l.parent!==d?{parent:d,pool:d}:l):l=T0(),c={baseLanes:c.baseLanes|n,cachePool:l}),a.memoizedState=c,a.childLanes=ld(e,u,n),t.memoizedState=nd,fs(e.child,a)):(al(t),n=e.child,e=n.sibling,n=za(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=n,t.memoizedState=null,n)}function Wd(e,t){return t=Zo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zo(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function id(e,t,n){return Pl(t,e.child,null,n),e=Wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ld(e.return,t,n)}function rd(e,t,n,a,l,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=n,u.tailMode=l,u.treeForkCount=i)}function mb(e,t,n){var a=t.pendingProps,l=a.revealOrder,i=a.tail;a=a.children;var u=Ie.current,c=(u&2)!==0;if(c?(u=u&1|2,t.flags|=128):u&=1,Ye(Ie,u),gt(e,t,a,n),a=pe?Ds:0,!c&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ig(e,n,t);else if(e.tag===19)Ig(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&qo(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),rd(t,!1,l,n,i,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&qo(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}rd(t,!0,n,null,i,a);break;case"together":rd(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ba(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(vr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=za(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=za(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lo(e)))}function RE(e,t,n){switch(t.tag){case 3:Do(t,t.stateNode.containerInfo),nl(t,lt,e.memoizedState.cache),$l();break;case 27:case 5:xd(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:nl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vd(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(al(t),t.flags|=128,null):(n&t.child.childLanes)!==0?hb(e,t,n):(al(t),e=Ba(e,t,n),e!==null?e.sibling:null);al(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(vr(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return mb(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ye(Ie,Ie.current),a)break;return null;case 22:return t.lanes=0,db(e,t,n,t.pendingProps);case 24:nl(t,lt,e.memoizedState.cache)}return Ba(e,t,n)}function pb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Jh(e,n)&&(t.flags&128)===0)return it=!1,RE(e,t,n);it=(e.flags&131072)!==0}else it=!1,pe&&(t.flags&1048576)!==0&&b0(t,Ds,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Ah(e)?(a=ti(e,a),t.tag=1,t=Wg(null,t,e,a,n)):(t.tag=0,t=Jd(null,t,e,a,n));else{if(e!=null){var l=e.$$typeof;if(l===hh){t.tag=11,t=Qg(null,t,e,a,n);break e}else if(l===mh){t.tag=14,t=Xg(null,t,e,a,n);break e}}throw t=_d(e)||e,Error(D(306,t,""))}}return t;case 0:return Jd(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=ti(a,t.pendingProps),Wg(e,t,a,l,n);case 3:e:{if(Do(t,t.stateNode.containerInfo),e===null)throw Error(D(387));a=t.pendingProps;var i=t.memoizedState;l=i.element,qd(e,t),vs(t,a,null,n);var u=t.memoizedState;if(a=u.cache,nl(t,lt,a),a!==i.cache&&Hd(t,[lt],n,!0),bs(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=$g(e,t,a,n);break e}else if(a!==l){l=xn(Error(D(424)),t),Rs(l),t=$g(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=An(e.firstChild),bt=t,pe=!0,dl=null,En=!0,n=x0(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($l(),a===l){t=Ba(e,t,n);break e}gt(e,t,a,n)}t=t.child}return t;case 26:return ko(e,t),e===null?(n=Sy(t.type,null,t.pendingProps,null))?t.memoizedState=n:pe||(n=t.type,e=t.pendingProps,a=Io(fl.current).createElement(n),a[yt]=t,a[Ft]=e,St(a,n,e),dt(a),t.stateNode=a):t.memoizedState=Sy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xd(t),e===null&&pe&&(a=t.stateNode=iv(t.type,t.pendingProps,fl.current),bt=t,En=!0,l=Ge,El(t.type)?(ch=l,Ge=An(a.firstChild)):Ge=l),gt(e,t,t.pendingProps.children,n),ko(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((l=a=Ge)&&(a=iw(a,t.type,t.pendingProps,En),a!==null?(t.stateNode=a,bt=t,Ge=An(a.firstChild),En=!1,l=!0):l=!1),l||Tl(t)),xd(t),l=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,rh(l,i)?a=null:u!==null&&rh(l,u)&&(t.flags|=32),t.memoizedState!==null&&(l=Yh(e,t,_E,null,null,n),Ls._currentValue=l),ko(e,t),gt(e,t,a,n),t.child;case 6:return e===null&&pe&&((e=n=Ge)&&(n=rw(n,t.pendingProps,En),n!==null?(t.stateNode=n,bt=t,Ge=null,e=!0):e=!1),e||Tl(t)),null;case 13:return hb(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Pl(t,null,a,n):gt(e,t,a,n),t.child;case 11:return Qg(e,t,t.type,t.pendingProps,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,nl(t,t.type,a.value),gt(e,t,a.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,Il(t),l=vt(l),a=a(l),t.flags|=1,gt(e,t,a,n),t.child;case 14:return Xg(e,t,t.type,t.pendingProps,n);case 15:return fb(e,t,t.type,t.pendingProps,n);case 19:return mb(e,t,n);case 31:return DE(e,t,n);case 22:return db(e,t,n,t.pendingProps);case 24:return Il(t),a=vt(lt),e===null?(l=Rh(),l===null&&(l=Ce,i=Dh(),l.pooledCache=i,i.refCount++,i!==null&&(l.pooledCacheLanes|=n),l=i),t.memoizedState={parent:a,cache:l},zh(t),nl(t,lt,l)):((e.lanes&n)!==0&&(qd(e,t),vs(t,null,null,n),bs()),l=e.memoizedState,i=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),nl(t,lt,a)):(a=i.cache,nl(t,lt,a),a!==l.cache&&Hd(t,[lt],n,!0))),gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(D(156,t.tag))}function xa(e){e.flags|=4}function sd(e,t,n,a,l){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Bb())e.flags|=8192;else throw Jl=Ho,Nh}else e.flags&=-16777217}function Pg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!uv(t))if(Bb())e.flags|=8192;else throw Jl=Ho,Nh}function ro(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qy():536870912,e.lanes|=t,dr|=t)}function ls(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function NE(e,t,n){var a=t.pendingProps;switch(Oh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return je(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ca(lt),rr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Li(t)?xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,If())),je(t),null;case 26:var l=t.type,i=t.memoizedState;return e===null?(xa(t),i!==null?(je(t),Pg(t,i)):(je(t),sd(t,l,null,a,n))):i?i!==e.memoizedState?(xa(t),je(t),Pg(t,i)):(je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&xa(t),je(t),sd(t,l,e,a,n)),null;case 27:if(Ro(t),n=fl.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xa(t);else{if(!a){if(t.stateNode===null)throw Error(D(166));return je(t),null}e=na.current,Li(t)?Mg(t,e):(e=iv(l,a,n),t.stateNode=e,xa(t))}return je(t),null;case 5:if(Ro(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xa(t);else{if(!a){if(t.stateNode===null)throw Error(D(166));return je(t),null}if(i=na.current,Li(t))Mg(t,i);else{var u=Io(fl.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}i[yt]=t,i[Ft]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(St(i,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&xa(t)}}return je(t),sd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&xa(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(D(166));if(e=fl.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,l=bt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||tv(e.nodeValue,n)),e||Tl(t,!0)}else e=Io(e).createTextNode(a),e[yt]=t,t.stateNode=e}return je(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Li(t),n!==null){if(e===null){if(!a)throw Error(D(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(557));e[yt]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),e=!1}else n=If(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(tn(t),t):(tn(t),null);if((t.flags&128)!==0)throw Error(D(558))}return je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Li(t),a!==null&&a.dehydrated!==null){if(e===null){if(!l)throw Error(D(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(D(317));l[yt]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),l=!1}else l=If(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(tn(t),t):(tn(t),null)}return tn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ro(t,t.updateQueue),je(t),null);case 4:return rr(),e===null&&nm(t.stateNode.containerInfo),je(t),null;case 10:return Ca(t.type),je(t),null;case 19:if(ht(Ie),a=t.memoizedState,a===null)return je(t),null;if(l=(t.flags&128)!==0,i=a.rendering,i===null)if(l)ls(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=qo(e),i!==null){for(t.flags|=128,ls(a,!1),e=i.updateQueue,t.updateQueue=e,ro(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)g0(n,e),n=n.sibling;return Ye(Ie,Ie.current&1|2),pe&&Ma(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ln()>Xo&&(t.flags|=128,l=!0,ls(a,!1),t.lanes=4194304)}else{if(!l)if(e=qo(i),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,ro(t,e),ls(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!pe)return je(t),null}else 2*ln()-a.renderingStartTime>Xo&&n!==536870912&&(t.flags|=128,l=!0,ls(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ln(),e.sibling=null,n=Ie.current,Ye(Ie,l?n&1|2:n&1),pe&&Ma(t,a.treeForkCount),e):(je(t),null);case 22:case 23:return tn(t),Ch(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),n=t.updateQueue,n!==null&&ro(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&ht(Kl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ca(lt),je(t),null;case 25:return null;case 30:return null}throw Error(D(156,t.tag))}function zE(e,t){switch(Oh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(lt),rr(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ro(t),null;case 31:if(t.memoizedState!==null){if(tn(t),t.alternate===null)throw Error(D(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Ie),null;case 4:return rr(),null;case 10:return Ca(t.type),null;case 22:case 23:return tn(t),Ch(),e!==null&&ht(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(lt),null;case 25:return null;default:return null}}function gb(e,t){switch(Oh(t),t.tag){case 3:Ca(lt),rr();break;case 26:case 27:case 5:Ro(t);break;case 4:rr();break;case 31:t.memoizedState!==null&&tn(t);break;case 13:tn(t);break;case 19:ht(Ie);break;case 10:Ca(t.type);break;case 22:case 23:tn(t),Ch(),e!==null&&ht(Kl);break;case 24:Ca(lt)}}function Ks(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&e)===e){a=void 0;var i=n.create,u=n.inst;a=i(),u.destroy=a}n=n.next}while(n!==l)}}catch(c){Me(t,t.return,c)}}function _l(e,t,n){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){var u=a.inst,c=u.destroy;if(c!==void 0){u.destroy=void 0,l=t;var d=n,m=c;try{m()}catch(p){Me(l,d,p)}}}a=a.next}while(a!==i)}}catch(p){Me(t,t.return,p)}}function yb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{w0(t,n)}catch(a){Me(e,e.return,a)}}}function bb(e,t,n){n.props=ti(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Me(e,t,a)}}function Ts(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(l){Me(e,t,l)}}function ta(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){Me(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Me(e,t,l)}else n.current=null}function vb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){Me(e,e.return,l)}}function ud(e,t,n){try{var a=e.stateNode;PE(a,e.type,n,t),a[Ft]=t}catch(l){Me(e,e.return,l)}}function Sb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&El(e.type)||e.tag===4}function od(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&El(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $d(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ra));else if(a!==4&&(a===27&&El(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($d(e,t,n),e=e.sibling;e!==null;)$d(e,t,n),e=e.sibling}function Qo(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&El(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qo(e,t,n),e=e.sibling;e!==null;)Qo(e,t,n),e=e.sibling}function Tb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);St(t,a,n),t[yt]=e,t[Ft]=n}catch(i){Me(e,e.return,i)}}var Oa=!1,at=!1,cd=!1,ey=typeof WeakSet=="function"?WeakSet:Set,ft=null;function CE(e,t){if(e=e.containerInfo,lh=nc,e=u0(e),xh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var u=0,c=-1,d=-1,m=0,p=0,T=e,y=null;t:for(;;){for(var _;T!==n||l!==0&&T.nodeType!==3||(c=u+l),T!==i||a!==0&&T.nodeType!==3||(d=u+a),T.nodeType===3&&(u+=T.nodeValue.length),(_=T.firstChild)!==null;)y=T,T=_;for(;;){if(T===e)break t;if(y===n&&++m===l&&(c=u),y===i&&++p===a&&(d=u),(_=T.nextSibling)!==null)break;T=y,y=T.parentNode}T=_}n=c===-1||d===-1?null:{start:c,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(ih={focusedElem:e,selectionRange:n},nc=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){switch(t=ft,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)l=e[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,n=t,l=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var E=ti(n.type,l);e=a.getSnapshotBeforeUpdate(E,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(w){Me(n,n.return,w)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sh(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(D(163))}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}}function _b(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:wa(e,n),a&4&&Ks(5,n);break;case 1:if(wa(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(u){Me(n,n.return,u)}else{var l=ti(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){Me(n,n.return,u)}}a&64&&yb(n),a&512&&Ts(n,n.return);break;case 3:if(wa(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{w0(e,t)}catch(u){Me(n,n.return,u)}}break;case 27:t===null&&a&4&&Tb(n);case 26:case 5:wa(e,n),t===null&&a&4&&vb(n),a&512&&Ts(n,n.return);break;case 12:wa(e,n);break;case 31:wa(e,n),a&4&&Eb(e,n);break;case 13:wa(e,n),a&4&&wb(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=VE.bind(null,n),sw(e,n))));break;case 22:if(a=n.memoizedState!==null||Oa,!a){t=t!==null&&t.memoizedState!==null||at,l=Oa;var i=at;Oa=a,(at=t)&&!i?Aa(e,n,(n.subtreeFlags&8772)!==0):wa(e,n),Oa=l,at=i}break;case 30:break;default:wa(e,n)}}function kb(e){var t=e.alternate;t!==null&&(e.alternate=null,kb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bh(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Zt=!1;function Ea(e,t,n){for(n=n.child;n!==null;)xb(e,t,n),n=n.sibling}function xb(e,t,n){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(js,n)}catch(i){}switch(n.tag){case 26:at||ta(n,t),Ea(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||ta(n,t);var a=Xe,l=Zt;El(n.type)&&(Xe=n.stateNode,Zt=!1),Ea(e,t,n),Es(n.stateNode),Xe=a,Zt=l;break;case 5:at||ta(n,t);case 6:if(a=Xe,l=Zt,Xe=null,Ea(e,t,n),Xe=a,Zt=l,Xe!==null)if(Zt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(n.stateNode)}catch(i){Me(n,t,i)}else try{Xe.removeChild(n.stateNode)}catch(i){Me(n,t,i)}break;case 18:Xe!==null&&(Zt?(e=Xe,py(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),gr(e)):py(Xe,n.stateNode));break;case 4:a=Xe,l=Zt,Xe=n.stateNode.containerInfo,Zt=!0,Ea(e,t,n),Xe=a,Zt=l;break;case 0:case 11:case 14:case 15:_l(2,n,t),at||_l(4,n,t),Ea(e,t,n);break;case 1:at||(ta(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&bb(n,t,a)),Ea(e,t,n);break;case 21:Ea(e,t,n);break;case 22:at=(a=at)||n.memoizedState!==null,Ea(e,t,n),at=a;break;default:Ea(e,t,n)}}function Eb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gr(e)}catch(n){Me(t,t.return,n)}}}function wb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gr(e)}catch(n){Me(t,t.return,n)}}function UE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ey),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ey),t;default:throw Error(D(435,e.tag))}}function so(e,t){var n=UE(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var l=ZE.bind(null,e,a);a.then(l,l)}})}function Gt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],i=e,u=t,c=u;e:for(;c!==null;){switch(c.tag){case 27:if(El(c.type)){Xe=c.stateNode,Zt=!1;break e}break;case 5:Xe=c.stateNode,Zt=!1;break e;case 3:case 4:Xe=c.stateNode.containerInfo,Zt=!0;break e}c=c.return}if(Xe===null)throw Error(D(160));xb(i,u,l),Xe=null,Zt=!1,i=l.alternate,i!==null&&(i.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ab(t,e),t=t.sibling}var Hn=null;function Ab(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),Vt(e),a&4&&(_l(3,e,e.return),Ks(3,e),_l(5,e,e.return));break;case 1:Gt(t,e),Vt(e),a&512&&(at||n===null||ta(n,n.return)),a&64&&Oa&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=Hn;if(Gt(t,e),Vt(e),a&512&&(at||n===null||ta(n,n.return)),a&4){var i=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,l=l.ownerDocument||l;t:switch(a){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Zs]||i[yt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(a),l.head.insertBefore(i,l.querySelector("head > title"))),St(i,a,n),i[yt]=e,dt(i),a=i;break e;case"link":var u=_y("link","href",l).get(a+(n.href||""));if(u){for(var c=0;c<u.length;c++)if(i=u[c],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){u.splice(c,1);break t}}i=l.createElement(a),St(i,a,n),l.head.appendChild(i);break;case"meta":if(u=_y("meta","content",l).get(a+(n.content||""))){for(c=0;c<u.length;c++)if(i=u[c],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){u.splice(c,1);break t}}i=l.createElement(a),St(i,a,n),l.head.appendChild(i);break;default:throw Error(D(468,a))}i[yt]=e,dt(i),a=i}e.stateNode=a}else ky(l,e.type,e.stateNode);else e.stateNode=Ty(l,a,e.memoizedProps);else i!==a?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,a===null?ky(l,e.type,e.stateNode):Ty(l,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ud(e,e.memoizedProps,n.memoizedProps)}break;case 27:Gt(t,e),Vt(e),a&512&&(at||n===null||ta(n,n.return)),n!==null&&a&4&&ud(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Gt(t,e),Vt(e),a&512&&(at||n===null||ta(n,n.return)),e.flags&32){l=e.stateNode;try{ur(l,"")}catch(E){Me(e,e.return,E)}}a&4&&e.stateNode!=null&&(l=e.memoizedProps,ud(e,l,n!==null?n.memoizedProps:l)),a&1024&&(cd=!0);break;case 6:if(Gt(t,e),Vt(e),a&4){if(e.stateNode===null)throw Error(D(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(E){Me(e,e.return,E)}}break;case 3:if(wo=null,l=Hn,Hn=Po(t.containerInfo),Gt(t,e),Hn=l,Vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{gr(t.containerInfo)}catch(E){Me(e,e.return,E)}cd&&(cd=!1,Mb(e));break;case 4:a=Hn,Hn=Po(e.stateNode.containerInfo),Gt(t,e),Vt(e),Hn=a;break;case 12:Gt(t,e),Vt(e);break;case 31:Gt(t,e),Vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 13:Gt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(pc=ln()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 22:l=e.memoizedState!==null;var d=n!==null&&n.memoizedState!==null,m=Oa,p=at;if(Oa=m||l,at=p||d,Gt(t,e),at=p,Oa=m,Vt(e),a&8192)e:for(t=e.stateNode,t._visibility=l?t._visibility&-2:t._visibility|1,l&&(n===null||d||Oa||at||Ql(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){d=n=t;try{if(i=d.stateNode,l)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{c=d.stateNode;var T=d.memoizedProps.style,y=T!=null&&T.hasOwnProperty("display")?T.display:null;c.style.display=y==null||typeof y=="boolean"?"":(""+y).trim()}}catch(E){Me(d,d.return,E)}}}else if(t.tag===6){if(n===null){d=t;try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(E){Me(d,d.return,E)}}}else if(t.tag===18){if(n===null){d=t;try{var _=d.stateNode;l?gy(_,!0):gy(d.stateNode,!1)}catch(E){Me(d,d.return,E)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,so(e,n))));break;case 19:Gt(t,e),Vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 30:break;case 21:break;default:Gt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(Sb(a)){n=a;break}a=a.return}if(n==null)throw Error(D(160));switch(n.tag){case 27:var l=n.stateNode,i=od(e);Qo(e,i,l);break;case 5:var u=n.stateNode;n.flags&32&&(ur(u,""),n.flags&=-33);var c=od(e);Qo(e,c,u);break;case 3:case 4:var d=n.stateNode.containerInfo,m=od(e);$d(e,m,d);break;default:throw Error(D(161))}}catch(p){Me(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_b(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_l(4,t,t.return),Ql(t);break;case 1:ta(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bb(t,t.return,n),Ql(t);break;case 27:Es(t.stateNode);case 26:case 5:ta(t,t.return),Ql(t);break;case 22:t.memoizedState===null&&Ql(t);break;case 30:Ql(t);break;default:Ql(t)}e=e.sibling}}function Aa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,l=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:Aa(l,i,n),Ks(4,i);break;case 1:if(Aa(l,i,n),a=i,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(m){Me(a,a.return,m)}if(a=i,l=a.updateQueue,l!==null){var c=a.stateNode;try{var d=l.shared.hiddenCallbacks;if(d!==null)for(l.shared.hiddenCallbacks=null,l=0;l<d.length;l++)E0(d[l],c)}catch(m){Me(a,a.return,m)}}n&&u&64&&yb(i),Ts(i,i.return);break;case 27:Tb(i);case 26:case 5:Aa(l,i,n),n&&a===null&&u&4&&vb(i),Ts(i,i.return);break;case 12:Aa(l,i,n);break;case 31:Aa(l,i,n),n&&u&4&&Eb(l,i);break;case 13:Aa(l,i,n),n&&u&4&&wb(l,i);break;case 22:i.memoizedState===null&&Aa(l,i,n),Ts(i,i.return);break;case 30:break;default:Aa(l,i,n)}t=t.sibling}}function Wh(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Xs(n))}function $h(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xs(e))}function Ln(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ob(e,t,n,a),t=t.sibling}function Ob(e,t,n,a){var l=t.flags;switch(t.tag){case 0:case 11:case 15:Ln(e,t,n,a),l&2048&&Ks(9,t);break;case 1:Ln(e,t,n,a);break;case 3:Ln(e,t,n,a),l&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Xs(e)));break;case 12:if(l&2048){Ln(e,t,n,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,c=i.onPostCommit;typeof c=="function"&&c(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){Me(t,t.return,d)}}else Ln(e,t,n,a);break;case 31:Ln(e,t,n,a);break;case 13:Ln(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?Ln(e,t,n,a):_s(e,t):i._visibility&2?Ln(e,t,n,a):(i._visibility|=2,Bi(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),l&2048&&Wh(u,t);break;case 24:Ln(e,t,n,a),l&2048&&$h(t.alternate,t);break;default:Ln(e,t,n,a)}}function Bi(e,t,n,a,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,c=n,d=a,m=u.flags;switch(u.tag){case 0:case 11:case 15:Bi(i,u,c,d,l),Ks(8,u);break;case 23:break;case 22:var p=u.stateNode;u.memoizedState!==null?p._visibility&2?Bi(i,u,c,d,l):_s(i,u):(p._visibility|=2,Bi(i,u,c,d,l)),l&&m&2048&&Wh(u.alternate,u);break;case 24:Bi(i,u,c,d,l),l&&m&2048&&$h(u.alternate,u);break;default:Bi(i,u,c,d,l)}t=t.sibling}}function _s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,l=a.flags;switch(a.tag){case 22:_s(n,a),l&2048&&Wh(a.alternate,a);break;case 24:_s(n,a),l&2048&&$h(a.alternate,a);break;default:_s(n,a)}t=t.sibling}}var ds=8192;function Hi(e,t,n){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)Db(e,t,n),e=e.sibling}function Db(e,t,n){switch(e.tag){case 26:Hi(e,t,n),e.flags&ds&&e.memoizedState!==null&&vw(n,Hn,e.memoizedState,e.memoizedProps);break;case 5:Hi(e,t,n);break;case 3:case 4:var a=Hn;Hn=Po(e.stateNode.containerInfo),Hi(e,t,n),Hn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ds,ds=16777216,Hi(e,t,n),ds=a):Hi(e,t,n));break;default:Hi(e,t,n)}}function Rb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ft=a,zb(a,e)}Rb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nb(e),e=e.sibling}function Nb(e){switch(e.tag){case 0:case 11:case 15:is(e),e.flags&2048&&_l(9,e,e.return);break;case 3:is(e);break;case 12:is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,xo(e)):is(e);break;default:is(e)}}function xo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];ft=a,zb(a,e)}Rb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),xo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,xo(t));break;default:xo(t)}e=e.sibling}}function zb(e,t){for(;ft!==null;){var n=ft;switch(n.tag){case 0:case 11:case 15:_l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Xs(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,ft=a;else e:for(n=e;ft!==null;){a=ft;var l=a.sibling,i=a.return;if(kb(a),a===n){ft=null;break e}if(l!==null){l.return=i,ft=l;break e}ft=i}}}var YE={getCacheForType:function(e){var t=vt(lt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt(lt).controller.signal}},LE=typeof WeakMap=="function"?WeakMap:Map,xe=0,Ce=null,fe=null,de=0,Ae=0,en=null,ul=!1,Tr=!1,Ih=!1,qa=0,Ke=0,kl=0,Wl=0,Ph=0,an=0,dr=0,ks=null,Qt=null,Id=!1,pc=0,Cb=0,Xo=1/0,Fo=null,pl=null,ot=0,gl=null,hr=null,Ua=0,Pd=0,eh=null,Ub=null,xs=0,th=null;function un(){return(xe&2)!==0&&de!==0?de&-de:P.T!==null?tm():Zy()}function Yb(){if(an===0)if((de&536870912)===0||pe){var e=$u;$u<<=1,($u&3932160)===0&&($u=262144),an=e}else an=536870912;return e=cn.current,e!==null&&(e.flags|=32),an}function Xt(e,t,n){(e===Ce&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(mr(e,0),ol(e,de,an,!1)),Vs(e,n),((xe&2)===0||e!==Ce)&&(e===Ce&&((xe&2)===0&&(Wl|=n),Ke===4&&ol(e,de,an,!1)),la(e))}function Lb(e,t,n){if((xe&6)!==0)throw Error(D(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Gs(e,t),l=a?qE(e,t):fd(e,t,!0),i=a;do{if(l===0){Tr&&!a&&ol(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!HE(n)){l=fd(e,t,!1),i=!1;continue}if(l===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var c=e;l=ks;var d=c.current.memoizedState.isDehydrated;if(d&&(mr(c,u).flags|=256),u=fd(c,u,!1),u!==2){if(Ih&&!d){c.errorRecoveryDisabledLanes|=i,Wl|=i,l=4;break e}i=Qt,Qt=l,i!==null&&(Qt===null?Qt=i:Qt.push.apply(Qt,i))}l=u}if(i=!1,l!==2)continue}}if(l===1){mr(e,0),ol(e,t,0,!0);break}e:{switch(a=e,i=l,i){case 0:case 1:throw Error(D(345));case 4:if((t&4194048)!==t)break;case 6:ol(a,t,an,!ul);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(D(329))}if((t&62914560)===t&&(l=pc+300-ln(),10<l)){if(ol(a,t,an,!ul),lc(a,0,!0)!==0)break e;Ua=t,a.timeoutHandle=av(ty.bind(null,a,n,Qt,Fo,Id,t,an,Wl,dr,ul,i,"Throttled",-0,0),l);break e}ty(a,n,Qt,Fo,Id,t,an,Wl,dr,ul,i,null,-0,0)}}break}while(!0);la(e)}function ty(e,t,n,a,l,i,u,c,d,m,p,T,y,_){if(e.timeoutHandle=-1,T=t.subtreeFlags,T&8192||(T&16785408)===16785408){T={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},Db(t,i,T);var E=(i&62914560)===i?pc-ln():(i&4194048)===i?Cb-ln():0;if(E=Sw(T,E),E!==null){Ua=i,e.cancelPendingCommit=E(ay.bind(null,e,t,i,n,a,l,u,c,d,p,T,null,y,_)),ol(e,i,u,!m);return}}ay(e,t,i,n,a,l,u,c,d)}function HE(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],i=l.getSnapshot;l=l.value;try{if(!on(i(),l))return!1}catch(u){return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ol(e,t,n,a){t&=~Ph,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var l=t;0<l;){var i=31-sn(l),u=1<<i;a[i]=-1,l&=~u}n!==0&&jy(e,n,t)}function gc(){return(xe&6)===0?(Js(0,!1),!1):!0}function em(){if(fe!==null){if(Ae===0)var e=fe.return;else e=fe,Na=ri=null,Bh(e),ar=null,Ns=0,e=fe;for(;e!==null;)gb(e.alternate,e),e=e.return;fe=null}}function mr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nw(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ua=0,em(),Ce=e,fe=n=za(e.current,null),de=t,Ae=0,en=null,ul=!1,Tr=Gs(e,t),Ih=!1,dr=an=Ph=Wl=kl=Ke=0,Qt=ks=null,Id=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var l=31-sn(a),i=1<<l;t|=e[l],a&=~i}return qa=t,uc(),n}function Hb(e,t){ie=null,P.H=Cs,t===Sr||t===cc?(t=zg(),Ae=3):t===Nh?(t=zg(),Ae=4):Ae=t===Kh?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,en=t,fe===null&&(Ke=1,Vo(e,xn(t,e.current)))}function Bb(){var e=cn.current;return e===null?!0:(de&4194048)===de?wn===null:(de&62914560)===de||(de&536870912)!==0?e===wn:!1}function qb(){var e=P.H;return P.H=Cs,e===null?Cs:e}function jb(){var e=P.A;return P.A=YE,e}function Ko(){Ke=4,ul||(de&4194048)!==de&&cn.current!==null||(Tr=!0),(kl&134217727)===0&&(Wl&134217727)===0||Ce===null||ol(Ce,de,an,!1)}function fd(e,t,n){var a=xe;xe|=2;var l=qb(),i=jb();(Ce!==e||de!==t)&&(Fo=null,mr(e,t)),t=!1;var u=Ke;e:do try{if(Ae!==0&&fe!==null){var c=fe,d=en;switch(Ae){case 8:em(),u=6;break e;case 3:case 2:case 9:case 6:cn.current===null&&(t=!0);var m=Ae;if(Ae=0,en=null,Ii(e,c,d,m),n&&Tr){u=0;break e}break;default:m=Ae,Ae=0,en=null,Ii(e,c,d,m)}}BE(),u=Ke;break}catch(p){Hb(e,p)}while(!0);return t&&e.shellSuspendCounter++,Na=ri=null,xe=a,P.H=l,P.A=i,fe===null&&(Ce=null,de=0,uc()),u}function BE(){for(;fe!==null;)Gb(fe)}function qE(e,t){var n=xe;xe|=2;var a=qb(),l=jb();Ce!==e||de!==t?(Fo=null,Xo=ln()+500,mr(e,t)):Tr=Gs(e,t);e:do try{if(Ae!==0&&fe!==null){t=fe;var i=en;t:switch(Ae){case 1:Ae=0,en=null,Ii(e,t,i,1);break;case 2:case 9:if(Ng(i)){Ae=0,en=null,ny(t);break}t=function(){Ae!==2&&Ae!==9||Ce!==e||(Ae=7),la(e)},i.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Ng(i)?(Ae=0,en=null,ny(t)):(Ae=0,en=null,Ii(e,t,i,7));break;case 5:var u=null;switch(fe.tag){case 26:u=fe.memoizedState;case 5:case 27:var c=fe;if(u?uv(u):c.stateNode.complete){Ae=0,en=null;var d=c.sibling;if(d!==null)fe=d;else{var m=c.return;m!==null?(fe=m,yc(m)):fe=null}break t}}Ae=0,en=null,Ii(e,t,i,5);break;case 6:Ae=0,en=null,Ii(e,t,i,6);break;case 8:em(),Ke=6;break e;default:throw Error(D(462))}}jE();break}catch(p){Hb(e,p)}while(!0);return Na=ri=null,P.H=a,P.A=l,xe=n,fe!==null?0:(Ce=null,de=0,uc(),Ke)}function jE(){for(;fe!==null&&!cx();)Gb(fe)}function Gb(e){var t=pb(e.alternate,e,qa);e.memoizedProps=e.pendingProps,t===null?yc(e):fe=t}function ny(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Jg(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=Jg(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Bh(t);default:gb(n,t),t=fe=g0(t,qa),t=pb(n,t,qa)}e.memoizedProps=e.pendingProps,t===null?yc(e):fe=t}function Ii(e,t,n,a){Na=ri=null,Bh(t),ar=null,Ns=0;var l=t.return;try{if(OE(e,l,t,n,de)){Ke=1,Vo(e,xn(n,e.current)),fe=null;return}}catch(i){if(l!==null)throw fe=l,i;Ke=1,Vo(e,xn(n,e.current)),fe=null;return}t.flags&32768?(pe||a===1?e=!0:Tr||(de&536870912)!==0?e=!1:(ul=e=!0,(a===2||a===9||a===3||a===6)&&(a=cn.current,a!==null&&a.tag===13&&(a.flags|=16384))),Vb(t,e)):yc(t)}function yc(e){var t=e;do{if((t.flags&32768)!==0){Vb(t,ul);return}e=t.return;var n=NE(t.alternate,t,qa);if(n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ke===0&&(Ke=5)}function Vb(e,t){do{var n=zE(e.alternate,e);if(n!==null){n.flags&=32767,fe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=n}while(e!==null);Ke=6,fe=null}function ay(e,t,n,a,l,i,u,c,d){e.cancelPendingCommit=null;do bc();while(ot!==0);if((xe&6)!==0)throw Error(D(327));if(t!==null){if(t===e.current)throw Error(D(177));if(i=t.lanes|t.childLanes,i|=Eh,Sx(e,n,i,u,c,d),e===Ce&&(fe=Ce=null,de=0),hr=t,gl=e,Ua=n,Pd=i,eh=l,Ub=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,QE(No,function(){return Kb(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=P.T,P.T=null,l=Ee.p,Ee.p=2,u=xe,xe|=4;try{CE(e,t,n)}finally{xe=u,Ee.p=l,P.T=a}}ot=1,Zb(),Qb(),Xb()}}function Zb(){if(ot===1){ot=0;var e=gl,t=hr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=P.T,P.T=null;var a=Ee.p;Ee.p=2;var l=xe;xe|=4;try{Ab(t,e);var i=ih,u=u0(e.containerInfo),c=i.focusedElem,d=i.selectionRange;if(u!==c&&c&&c.ownerDocument&&s0(c.ownerDocument.documentElement,c)){if(d!==null&&xh(c)){var m=d.start,p=d.end;if(p===void 0&&(p=m),"selectionStart"in c)c.selectionStart=m,c.selectionEnd=Math.min(p,c.value.length);else{var T=c.ownerDocument||document,y=T&&T.defaultView||window;if(y.getSelection){var _=y.getSelection(),E=c.textContent.length,w=Math.min(d.start,E),R=d.end===void 0?w:Math.min(d.end,E);!_.extend&&w>R&&(u=R,R=w,w=u);var g=Eg(c,w),b=Eg(c,R);if(g&&b&&(_.rangeCount!==1||_.anchorNode!==g.node||_.anchorOffset!==g.offset||_.focusNode!==b.node||_.focusOffset!==b.offset)){var k=T.createRange();k.setStart(g.node,g.offset),_.removeAllRanges(),w>R?(_.addRange(k),_.extend(b.node,b.offset)):(k.setEnd(b.node,b.offset),_.addRange(k))}}}}for(T=[],_=c;_=_.parentNode;)_.nodeType===1&&T.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<T.length;c++){var x=T[c];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}nc=!!lh,ih=lh=null}finally{xe=l,Ee.p=a,P.T=n}}e.current=t,ot=2}}function Qb(){if(ot===2){ot=0;var e=gl,t=hr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=P.T,P.T=null;var a=Ee.p;Ee.p=2;var l=xe;xe|=4;try{_b(e,t.alternate,t)}finally{xe=l,Ee.p=a,P.T=n}}ot=3}}function Xb(){if(ot===4||ot===3){ot=0,fx();var e=gl,t=hr,n=Ua,a=Ub;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,hr=gl=null,Fb(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(pl=null),yh(n),t=t.stateNode,rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(js,t,void 0,(t.current.flags&128)===128)}catch(d){}if(a!==null){t=P.T,l=Ee.p,Ee.p=2,P.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var c=a[u];i(c.value,{componentStack:c.stack})}}finally{P.T=t,Ee.p=l}}(Ua&3)!==0&&bc(),la(e),l=e.pendingLanes,(n&261930)!==0&&(l&42)!==0?e===th?xs++:(xs=0,th=e):xs=0,Js(0,!1)}}function Fb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xs(t)))}function bc(){return Zb(),Qb(),Xb(),Kb()}function Kb(){if(ot!==5)return!1;var e=gl,t=Pd;Pd=0;var n=yh(Ua),a=P.T,l=Ee.p;try{Ee.p=32>n?32:n,P.T=null,n=eh,eh=null;var i=gl,u=Ua;if(ot=0,hr=gl=null,Ua=0,(xe&6)!==0)throw Error(D(331));var c=xe;if(xe|=4,Nb(i.current),Ob(i,i.current,u,n),xe=c,Js(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(js,i)}catch(d){}return!0}finally{Ee.p=l,P.T=a,Fb(e,t)}}function ly(e,t,n){t=xn(n,t),t=Kd(e.stateNode,t,2),e=ml(e,t,2),e!==null&&(Vs(e,2),la(e))}function Me(e,t,n){if(e.tag===3)ly(e,e,n);else for(;t!==null;){if(t.tag===3){ly(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pl===null||!pl.has(a))){e=xn(n,e),n=ob(2),a=ml(t,n,2),a!==null&&(cb(n,a,t,e),Vs(a,2),la(a));break}}t=t.return}}function dd(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new LE;var l=new Set;a.set(t,l)}else l=a.get(t),l===void 0&&(l=new Set,a.set(t,l));l.has(n)||(Ih=!0,l.add(n),e=GE.bind(null,e,t,n),t.then(e,e))}function GE(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ce===e&&(de&n)===n&&(Ke===4||Ke===3&&(de&62914560)===de&&300>ln()-pc?(xe&2)===0&&mr(e,0):Ph|=n,dr===de&&(dr=0)),la(e)}function Jb(e,t){t===0&&(t=qy()),e=ii(e,t),e!==null&&(Vs(e,t),la(e))}function VE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jb(e,n)}function ZE(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(D(314))}a!==null&&a.delete(t),Jb(e,n)}function QE(e,t){return ph(e,t)}var Jo=null,qi=null,nh=!1,Wo=!1,hd=!1,cl=0;function la(e){e!==qi&&e.next===null&&(qi===null?Jo=qi=e:qi=qi.next=e),Wo=!0,nh||(nh=!0,FE())}function Js(e,t){if(!hd&&Wo){hd=!0;do for(var n=!1,a=Jo;a!==null;){if(!t)if(e!==0){var l=a.pendingLanes;if(l===0)var i=0;else{var u=a.suspendedLanes,c=a.pingedLanes;i=(1<<31-sn(42|e)+1)-1,i&=l&~(u&~c),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,iy(a,i))}else i=de,i=lc(a,a===Ce?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Gs(a,i)||(n=!0,iy(a,i));a=a.next}while(n);hd=!1}}function XE(){Wb()}function Wb(){Wo=nh=!1;var e=0;cl!==0&&tw()&&(e=cl);for(var t=ln(),n=null,a=Jo;a!==null;){var l=a.next,i=$b(a,t);i===0?(a.next=null,n===null?Jo=l:n.next=l,l===null&&(qi=n)):(n=a,(e!==0||(i&3)!==0)&&(Wo=!0)),a=l}ot!==0&&ot!==5||Js(e,!1),cl!==0&&(cl=0)}function $b(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-sn(i),c=1<<u,d=l[u];d===-1?((c&n)===0||(c&a)!==0)&&(l[u]=vx(c,t)):d<=t&&(e.expiredLanes|=c),i&=~c}if(t=Ce,n=de,n=lc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Gf(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Gs(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Gf(a),yh(n)){case 2:case 8:n=Hy;break;case 32:n=No;break;case 268435456:n=By;break;default:n=No}return a=Ib.bind(null,e),n=ph(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Gf(a),e.callbackPriority=2,e.callbackNode=null,2}function Ib(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bc()&&e.callbackNode!==n)return null;var a=de;return a=lc(e,e===Ce?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Lb(e,a,t),$b(e,ln()),e.callbackNode!=null&&e.callbackNode===n?Ib.bind(null,e):null)}function iy(e,t){if(bc())return null;Lb(e,t,!0)}function FE(){aw(function(){(xe&6)!==0?ph(Ly,XE):Wb()})}function tm(){if(cl===0){var e=or;e===0&&(e=Wu,Wu<<=1,(Wu&261888)===0&&(Wu=256)),cl=e}return cl}function ry(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:po(""+e)}function sy(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function KE(e,t,n,a,l){if(t==="submit"&&n&&n.stateNode===l){var i=ry((l[Ft]||null).action),u=a.submitter;u&&(t=(t=u[Ft]||null)?ry(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var c=new ic("action","action",null,a,l);e.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(cl!==0){var d=u?sy(l,u):new FormData(l);Xd(n,{pending:!0,data:d,method:l.method,action:i},null,d)}}else typeof i=="function"&&(c.preventDefault(),d=u?sy(l,u):new FormData(l),Xd(n,{pending:!0,data:d,method:l.method,action:i},i,d))},currentTarget:l}]})}}for(uo=0;uo<Cd.length;uo++)oo=Cd[uo],uy=oo.toLowerCase(),oy=oo[0].toUpperCase()+oo.slice(1),Bn(uy,"on"+oy);var oo,uy,oy,uo;Bn(c0,"onAnimationEnd");Bn(f0,"onAnimationIteration");Bn(d0,"onAnimationStart");Bn("dblclick","onDoubleClick");Bn("focusin","onFocus");Bn("focusout","onBlur");Bn(dE,"onTransitionRun");Bn(hE,"onTransitionStart");Bn(mE,"onTransitionCancel");Bn(h0,"onTransitionEnd");sr("onMouseEnter",["mouseout","mouseover"]);sr("onMouseLeave",["mouseout","mouseover"]);sr("onPointerEnter",["pointerout","pointerover"]);sr("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 Us="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(" "),JE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Us));function Pb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],l=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var c=a[u],d=c.instance,m=c.currentTarget;if(c=c.listener,d!==i&&l.isPropagationStopped())break e;i=c,l.currentTarget=m;try{i(l)}catch(p){Co(p)}l.currentTarget=null,i=d}else for(u=0;u<a.length;u++){if(c=a[u],d=c.instance,m=c.currentTarget,c=c.listener,d!==i&&l.isPropagationStopped())break e;i=c,l.currentTarget=m;try{i(l)}catch(p){Co(p)}l.currentTarget=null,i=d}}}}function ce(e,t){var n=t[wd];n===void 0&&(n=t[wd]=new Set);var a=e+"__bubble";n.has(a)||(ev(t,e,2,!1),n.add(a))}function md(e,t,n){var a=0;t&&(a|=4),ev(n,e,a,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function nm(e){if(!e[co]){e[co]=!0,Qy.forEach(function(n){n!=="selectionchange"&&(JE.has(n)||md(n,!1,e),md(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,md("selectionchange",!1,t))}}function ev(e,t,n,a){switch(hv(t)){case 2:var l=kw;break;case 8:l=xw;break;default:l=rm}n=l.bind(null,t,n,e),l=void 0,!Rd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),a?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function pd(e,t,n,a,l){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var c=a.stateNode.containerInfo;if(c===l)break;if(u===4)for(u=a.return;u!==null;){var d=u.tag;if((d===3||d===4)&&u.stateNode.containerInfo===l)return;u=u.return}for(;c!==null;){if(u=Vi(c),u===null)return;if(d=u.tag,d===5||d===6||d===26||d===27){a=i=u;continue e}c=c.parentNode}}a=a.return}Py(function(){var m=i,p=Sh(n),T=[];e:{var y=m0.get(e);if(y!==void 0){var _=ic,E=e;switch(e){case"keypress":if(yo(n)===0)break e;case"keydown":case"keyup":_=Zx;break;case"focusin":E="focus",_=Ff;break;case"focusout":E="blur",_=Ff;break;case"beforeblur":case"afterblur":_=Ff;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=gg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Fx;break;case c0:case f0:case d0:_=Ux;break;case h0:_=Jx;break;case"scroll":case"scrollend":_=Dx;break;case"wheel":_=$x;break;case"copy":case"cut":case"paste":_=Lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=bg;break;case"toggle":case"beforetoggle":_=Px}var w=(t&4)!==0,R=!w&&(e==="scroll"||e==="scrollend"),g=w?y!==null?y+"Capture":null:y;w=[];for(var b=m,k;b!==null;){var x=b;if(k=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||k===null||g===null||(x=As(b,g),x!=null&&w.push(Ys(b,x,k))),R)break;b=b.return}0<w.length&&(y=new _(y,E,null,n,p),T.push({event:y,listeners:w}))}}if((t&7)===0){e:{if(y=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",y&&n!==Dd&&(E=n.relatedTarget||n.fromElement)&&(Vi(E)||E[yr]))break e;if((_||y)&&(y=p.window===p?p:(y=p.ownerDocument)?y.defaultView||y.parentWindow:window,_?(E=n.relatedTarget||n.toElement,_=m,E=E?Vi(E):null,E!==null&&(R=qs(E),w=E.tag,E!==R||w!==5&&w!==27&&w!==6)&&(E=null)):(_=null,E=m),_!==E)){if(w=gg,x="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(w=bg,x="onPointerLeave",g="onPointerEnter",b="pointer"),R=_==null?y:cs(_),k=E==null?y:cs(E),y=new w(x,b+"leave",_,n,p),y.target=R,y.relatedTarget=k,x=null,Vi(p)===m&&(w=new w(g,b+"enter",E,n,p),w.target=k,w.relatedTarget=R,x=w),R=x,_&&E)t:{for(w=WE,g=_,b=E,k=0,x=g;x;x=w(x))k++;x=0;for(var N=b;N;N=w(N))x++;for(;0<k-x;)g=w(g),k--;for(;0<x-k;)b=w(b),x--;for(;k--;){if(g===b||b!==null&&g===b.alternate){w=g;break t}g=w(g),b=w(b)}w=null}else w=null;_!==null&&cy(T,y,_,w,!1),E!==null&&R!==null&&cy(T,R,E,w,!0)}}e:{if(y=m?cs(m):window,_=y.nodeName&&y.nodeName.toLowerCase(),_==="select"||_==="input"&&y.type==="file")var z=_g;else if(Tg(y))if(i0)z=oE;else{z=sE;var Y=rE}else _=y.nodeName,!_||_.toLowerCase()!=="input"||y.type!=="checkbox"&&y.type!=="radio"?m&&vh(m.elementType)&&(z=_g):z=uE;if(z&&(z=z(e,m))){l0(T,z,n,p);break e}Y&&Y(e,y,m),e==="focusout"&&m&&y.type==="number"&&m.memoizedProps.value!=null&&Od(y,"number",y.value)}switch(Y=m?cs(m):window,e){case"focusin":(Tg(Y)||Y.contentEditable==="true")&&(Xi=Y,Nd=m,ps=null);break;case"focusout":ps=Nd=Xi=null;break;case"mousedown":zd=!0;break;case"contextmenu":case"mouseup":case"dragend":zd=!1,wg(T,n,p);break;case"selectionchange":if(fE)break;case"keydown":case"keyup":wg(T,n,p)}var q;if(kh)e:{switch(e){case"compositionstart":var K="onCompositionStart";break e;case"compositionend":K="onCompositionEnd";break e;case"compositionupdate":K="onCompositionUpdate";break e}K=void 0}else Qi?n0(e,n)&&(K="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(K="onCompositionStart");K&&(t0&&n.locale!=="ko"&&(Qi||K!=="onCompositionStart"?K==="onCompositionEnd"&&Qi&&(q=e0()):(sl=p,Th="value"in sl?sl.value:sl.textContent,Qi=!0)),Y=$o(m,K),0<Y.length&&(K=new yg(K,e,null,n,p),T.push({event:K,listeners:Y}),q?K.data=q:(q=a0(n),q!==null&&(K.data=q)))),(q=tE?nE(e,n):aE(e,n))&&(K=$o(m,"onBeforeInput"),0<K.length&&(Y=new yg("onBeforeInput","beforeinput",null,n,p),T.push({event:Y,listeners:K}),Y.data=q)),KE(T,e,m,n,p)}Pb(T,t)})}function Ys(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $o(e,t){for(var n=t+"Capture",a=[];e!==null;){var l=e,i=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||i===null||(l=As(e,n),l!=null&&a.unshift(Ys(e,l,i)),l=As(e,t),l!=null&&a.push(Ys(e,l,i))),e.tag===3)return a;e=e.return}return[]}function WE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cy(e,t,n,a,l){for(var i=t._reactName,u=[];n!==null&&n!==a;){var c=n,d=c.alternate,m=c.stateNode;if(c=c.tag,d!==null&&d===a)break;c!==5&&c!==26&&c!==27||m===null||(d=m,l?(m=As(n,i),m!=null&&u.unshift(Ys(n,m,d))):l||(m=As(n,i),m!=null&&u.push(Ys(n,m,d)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var $E=/\r\n?/g,IE=/\u0000|\uFFFD/g;function fy(e){return(typeof e=="string"?e:""+e).replace($E,"\n").replace(IE,"")}function tv(e,t){return t=fy(t),fy(e)===t}function Re(e,t,n,a,l,i){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ur(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ur(e,""+a);break;case"className":Pu(e,"class",a);break;case"tabIndex":Pu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(e,n,a);break;case"style":Iy(e,a,i);break;case"data":if(t!=="object"){Pu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=po(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",l.name,l,null),Re(e,t,"formEncType",l.formEncType,l,null),Re(e,t,"formMethod",l.formMethod,l,null),Re(e,t,"formTarget",l.formTarget,l,null)):(Re(e,t,"encType",l.encType,l,null),Re(e,t,"method",l.method,l,null),Re(e,t,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=po(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Ra);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(D(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(D(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=po(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ce("beforetoggle",e),ce("toggle",e),mo(e,"popover",a);break;case"xlinkActuate":ka(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ka(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ka(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ka(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ka(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ka(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ka(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ka(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ka(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":mo(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Mx.get(n)||n,mo(e,n,a))}}function ah(e,t,n,a,l,i){switch(n){case"style":Iy(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(D(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(D(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ur(e,a):(typeof a=="number"||typeof a=="bigint")&&ur(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xy.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),t=n.slice(2,l?n.length-7:void 0),i=e[Ft]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,l),typeof a=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,l);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):mo(e,n,a)}}}function St(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,l=!1,i;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(D(137,t));default:Re(e,t,i,u,n,null)}}l&&Re(e,t,"srcSet",n.srcSet,n,null),a&&Re(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var c=i=u=l=null,d=null,m=null;for(a in n)if(n.hasOwnProperty(a)){var p=n[a];if(p!=null)switch(a){case"name":l=p;break;case"type":u=p;break;case"checked":d=p;break;case"defaultChecked":m=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(D(137,t));break;default:Re(e,t,a,p,n,null)}}Jy(e,i,c,d,m,u,l,!1);return;case"select":ce("invalid",e),a=u=i=null;for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null))switch(l){case"value":i=c;break;case"defaultValue":u=c;break;case"multiple":a=c;default:Re(e,t,l,c,n,null)}t=i,n=u,e.multiple=!!a,t!=null?er(e,!!a,t,!1):n!=null&&er(e,!!a,n,!0);return;case"textarea":ce("invalid",e),i=l=a=null;for(u in n)if(n.hasOwnProperty(u)&&(c=n[u],c!=null))switch(u){case"value":a=c;break;case"defaultValue":l=c;break;case"children":i=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(D(91));break;default:Re(e,t,u,c,n,null)}$y(e,a,l,i);return;case"option":for(d in n)n.hasOwnProperty(d)&&(a=n[d],a!=null)&&(d==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Re(e,t,d,a,n,null));return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Us.length;a++)ce(Us[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(m in n)if(n.hasOwnProperty(m)&&(a=n[m],a!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(D(137,t));default:Re(e,t,m,a,n,null)}return;default:if(vh(t)){for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!==void 0&&ah(e,t,p,a,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!=null&&Re(e,t,c,a,n,null))}function PE(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,i=null,u=null,c=null,d=null,m=null,p=null;for(_ in n){var T=n[_];if(n.hasOwnProperty(_)&&T!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":d=T;default:a.hasOwnProperty(_)||Re(e,t,_,null,a,T)}}for(var y in a){var _=a[y];if(T=n[y],a.hasOwnProperty(y)&&(_!=null||T!=null))switch(y){case"type":i=_;break;case"name":l=_;break;case"checked":m=_;break;case"defaultChecked":p=_;break;case"value":u=_;break;case"defaultValue":c=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(D(137,t));break;default:_!==T&&Re(e,t,y,_,a,T)}}Md(e,u,c,d,m,p,i,l);return;case"select":_=u=c=y=null;for(i in n)if(d=n[i],n.hasOwnProperty(i)&&d!=null)switch(i){case"value":break;case"multiple":_=d;default:a.hasOwnProperty(i)||Re(e,t,i,null,a,d)}for(l in a)if(i=a[l],d=n[l],a.hasOwnProperty(l)&&(i!=null||d!=null))switch(l){case"value":y=i;break;case"defaultValue":c=i;break;case"multiple":u=i;default:i!==d&&Re(e,t,l,i,a,d)}t=c,n=u,a=_,y!=null?er(e,!!n,y,!1):!!a!=!!n&&(t!=null?er(e,!!n,t,!0):er(e,!!n,n?[]:"",!1));return;case"textarea":_=y=null;for(c in n)if(l=n[c],n.hasOwnProperty(c)&&l!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:Re(e,t,c,null,a,l)}for(u in a)if(l=a[u],i=n[u],a.hasOwnProperty(u)&&(l!=null||i!=null))switch(u){case"value":y=l;break;case"defaultValue":_=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(D(91));break;default:l!==i&&Re(e,t,u,l,a,i)}Wy(e,y,_);return;case"option":for(var E in n)y=n[E],n.hasOwnProperty(E)&&y!=null&&!a.hasOwnProperty(E)&&(E==="selected"?e.selected=!1:Re(e,t,E,null,a,y));for(d in a)y=a[d],_=n[d],a.hasOwnProperty(d)&&y!==_&&(y!=null||_!=null)&&(d==="selected"?e.selected=y&&typeof y!="function"&&typeof y!="symbol":Re(e,t,d,y,a,_));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 w in n)y=n[w],n.hasOwnProperty(w)&&y!=null&&!a.hasOwnProperty(w)&&Re(e,t,w,null,a,y);for(m in a)if(y=a[m],_=n[m],a.hasOwnProperty(m)&&y!==_&&(y!=null||_!=null))switch(m){case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(D(137,t));break;default:Re(e,t,m,y,a,_)}return;default:if(vh(t)){for(var R in n)y=n[R],n.hasOwnProperty(R)&&y!==void 0&&!a.hasOwnProperty(R)&&ah(e,t,R,void 0,a,y);for(p in a)y=a[p],_=n[p],!a.hasOwnProperty(p)||y===_||y===void 0&&_===void 0||ah(e,t,p,y,a,_);return}}for(var g in n)y=n[g],n.hasOwnProperty(g)&&y!=null&&!a.hasOwnProperty(g)&&Re(e,t,g,null,a,y);for(T in a)y=a[T],_=n[T],!a.hasOwnProperty(T)||y===_||y==null&&_==null||Re(e,t,T,y,a,_)}function dy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ew(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],i=l.transferSize,u=l.initiatorType,c=l.duration;if(i&&c&&dy(u)){for(u=0,c=l.responseEnd,a+=1;a<n.length;a++){var d=n[a],m=d.startTime;if(m>c)break;var p=d.transferSize,T=d.initiatorType;p&&dy(T)&&(d=d.responseEnd,u+=p*(d<c?1:(c-m)/(d-m)))}if(--a,t+=8*(i+u)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var lh=null,ih=null;function Io(e){return e.nodeType===9?e:e.ownerDocument}function hy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function rh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gd=null;function tw(){var e=window.event;return e&&e.type==="popstate"?e===gd?!1:(gd=e,!0):(gd=null,!1)}var av=typeof setTimeout=="function"?setTimeout:void 0,nw=typeof clearTimeout=="function"?clearTimeout:void 0,my=typeof Promise=="function"?Promise:void 0,aw=typeof queueMicrotask=="function"?queueMicrotask:typeof my<"u"?function(e){return my.resolve(null).then(e).catch(lw)}:av;function lw(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function py(e,t){var n=t,a=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(l),gr(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Es(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Es(n);for(var i=n.firstChild;i;){var u=i.nextSibling,c=i.nodeName;i[Zs]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=u}}else n==="body"&&Es(e.ownerDocument.body);n=l}while(n);gr(t)}function gy(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function sh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sh(n),bh(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iw(e,t,n,a){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Zs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function rw(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=An(e.nextSibling),e===null))return null;return e}function lv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=An(e.nextSibling),e===null))return null;return e}function uh(e){return e.data==="$?"||e.data==="$~"}function oh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function sw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function An(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ch=null;function yy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return An(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function by(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function iv(e,t,n){switch(t=Io(n),e){case"html":if(e=t.documentElement,!e)throw Error(D(452));return e;case"head":if(e=t.head,!e)throw Error(D(453));return e;case"body":if(e=t.body,!e)throw Error(D(454));return e;default:throw Error(D(451))}}function Es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bh(e)}var Mn=new Map,vy=new Set;function Po(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ja=Ee.d;Ee.d={f:uw,r:ow,D:cw,C:fw,L:dw,m:hw,X:pw,S:mw,M:gw};function uw(){var e=ja.f(),t=gc();return e||t}function ow(e){var t=br(e);t!==null&&t.tag===5&&t.type==="form"?I0(t):ja.r(e)}var _r=typeof document>"u"?null:document;function rv(e,t,n){var a=_r;if(a&&typeof t=="string"&&t){var l=kn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),vy.has(l)||(vy.add(l),e={rel:e,crossOrigin:n,href:t},a.querySelector(l)===null&&(t=a.createElement("link"),St(t,"link",e),dt(t),a.head.appendChild(t)))}}function cw(e){ja.D(e),rv("dns-prefetch",e,null)}function fw(e,t){ja.C(e,t),rv("preconnect",e,t)}function dw(e,t,n){ja.L(e,t,n);var a=_r;if(a&&e&&t){var l='link[rel="preload"][as="'+kn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+kn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+kn(n.imageSizes)+'"]')):l+='[href="'+kn(e)+'"]';var i=l;switch(t){case"style":i=pr(e);break;case"script":i=kr(e)}Mn.has(i)||(e=Ve({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Mn.set(i,e),a.querySelector(l)!==null||t==="style"&&a.querySelector(Ws(i))||t==="script"&&a.querySelector($s(i))||(t=a.createElement("link"),St(t,"link",e),dt(t),a.head.appendChild(t)))}}function hw(e,t){ja.m(e,t);var n=_r;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+kn(a)+'"][href="'+kn(e)+'"]',i=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=kr(e)}if(!Mn.has(i)&&(e=Ve({rel:"modulepreload",href:e},t),Mn.set(i,e),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($s(i)))return}a=n.createElement("link"),St(a,"link",e),dt(a),n.head.appendChild(a)}}}function mw(e,t,n){ja.S(e,t,n);var a=_r;if(a&&e){var l=Pi(a).hoistableStyles,i=pr(e);t=t||"default";var u=l.get(i);if(!u){var c={loading:0,preload:null};if(u=a.querySelector(Ws(i)))c.loading=5;else{e=Ve({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Mn.get(i))&&am(e,n);var d=u=a.createElement("link");dt(d),St(d,"link",e),d._p=new Promise(function(m,p){d.onload=m,d.onerror=p}),d.addEventListener("load",function(){c.loading|=1}),d.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Eo(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:c},l.set(i,u)}}}function pw(e,t){ja.X(e,t);var n=_r;if(n&&e){var a=Pi(n).hoistableScripts,l=kr(e),i=a.get(l);i||(i=n.querySelector($s(l)),i||(e=Ve({src:e,async:!0},t),(t=Mn.get(l))&&lm(e,t),i=n.createElement("script"),dt(i),St(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function gw(e,t){ja.M(e,t);var n=_r;if(n&&e){var a=Pi(n).hoistableScripts,l=kr(e),i=a.get(l);i||(i=n.querySelector($s(l)),i||(e=Ve({src:e,async:!0,type:"module"},t),(t=Mn.get(l))&&lm(e,t),i=n.createElement("script"),dt(i),St(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(l,i))}}function Sy(e,t,n,a){var l=(l=fl.current)?Po(l):null;if(!l)throw Error(D(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=pr(n.href),n=Pi(l).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=pr(n.href);var i=Pi(l).hoistableStyles,u=i.get(e);if(u||(l=l.ownerDocument||l,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=l.querySelector(Ws(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Mn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Mn.set(e,n),i||yw(l,e,n,u.state))),t&&a===null)throw Error(D(528,""));return u}if(t&&a!==null)throw Error(D(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kr(n),n=Pi(l).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(D(444,e))}}function pr(e){return'href="'+kn(e)+'"'}function Ws(e){return'link[rel="stylesheet"]['+e+"]"}function sv(e){return Ve({},e,{"data-precedence":e.precedence,precedence:null})}function yw(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),St(t,"link",n),dt(t),e.head.appendChild(t))}function kr(e){return'[src="'+kn(e)+'"]'}function $s(e){return"script[async]"+e}function Ty(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+kn(n.href)+'"]');if(a)return t.instance=a,dt(a),a;var l=Ve({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),dt(a),St(a,"style",l),Eo(a,n.precedence,e),t.instance=a;case"stylesheet":l=pr(n.href);var i=e.querySelector(Ws(l));if(i)return t.state.loading|=4,t.instance=i,dt(i),i;a=sv(n),(l=Mn.get(l))&&am(a,l),i=(e.ownerDocument||e).createElement("link"),dt(i);var u=i;return u._p=new Promise(function(c,d){u.onload=c,u.onerror=d}),St(i,"link",a),t.state.loading|=4,Eo(i,n.precedence,e),t.instance=i;case"script":return i=kr(n.src),(l=e.querySelector($s(i)))?(t.instance=l,dt(l),l):(a=n,(l=Mn.get(i))&&(a=Ve({},n),lm(a,l)),e=e.ownerDocument||e,l=e.createElement("script"),dt(l),St(l,"link",a),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(D(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Eo(a,n.precedence,e));return t.instance}function Eo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,i=l,u=0;u<a.length;u++){var c=a[u];if(c.dataset.precedence===t)i=c;else if(i!==l)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function am(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var wo=null;function _y(e,t,n){if(wo===null){var a=new Map,l=wo=new Map;l.set(n,a)}else l=wo,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var i=n[l];if(!(i[Zs]||i[yt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var c=a.get(u);c?c.push(i):a.set(u,[i])}}return a}function ky(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function bw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function uv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function vw(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=pr(a.href),i=t.querySelector(Ws(l));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ec.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,dt(i);return}i=t.ownerDocument||t,a=sv(a),(l=Mn.get(l))&&am(a,l),i=i.createElement("link"),dt(i);var u=i;u._p=new Promise(function(c,d){u.onload=c,u.onerror=d}),St(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ec.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var yd=0;function Sw(e,t){return e.stylesheets&&e.count===0&&Ao(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ao(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&yd===0&&(yd=62500*ew());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ao(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>yd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function ec(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ao(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tc=null;function Ao(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tc=new Map,t.forEach(Tw,e),tc=null,ec.call(e))}function Tw(e,t){if(!(t.state.loading&4)){var n=tc.get(e);if(n)var a=n.get(null);else{n=new Map,tc.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<l.length;i++){var u=l[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(n.set(u.dataset.precedence,u),a=u)}a&&n.set(null,a)}l=t.instance,u=l.getAttribute("data-precedence"),i=n.get(u)||a,i===a&&n.set(null,l),n.set(u,l),this.count++,a=ec.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),i?i.parentNode.insertBefore(l,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Ls={$$typeof:Da,Provider:null,Consumer:null,_currentValue:Xl,_currentValue2:Xl,_threadCount:0};function _w(e,t,n,a,l,i,u,c,d){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vf(0),this.hiddenUpdates=Vf(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function ov(e,t,n,a,l,i,u,c,d,m,p,T){return e=new _w(e,t,n,u,d,m,p,T,c),t=1,i===!0&&(t|=24),i=nn(3,null,null,t),e.current=i,i.stateNode=e,t=Dh(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},zh(i),e}function cv(e){return e?(e=Ji,e):Ji}function fv(e,t,n,a,l,i){l=cv(l),a.context===null?a.context=l:a.pendingContext=l,a=hl(t),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=ml(e,a,t),n!==null&&(Xt(n,e,t),ys(n,e,t))}function xy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function im(e,t){xy(e,t),(e=e.alternate)&&xy(e,t)}function dv(e){if(e.tag===13||e.tag===31){var t=ii(e,67108864);t!==null&&Xt(t,e,67108864),im(e,67108864)}}function Ey(e){if(e.tag===13||e.tag===31){var t=un();t=gh(t);var n=ii(e,t);n!==null&&Xt(n,e,t),im(e,t)}}var nc=!0;function kw(e,t,n,a){var l=P.T;P.T=null;var i=Ee.p;try{Ee.p=2,rm(e,t,n,a)}finally{Ee.p=i,P.T=l}}function xw(e,t,n,a){var l=P.T;P.T=null;var i=Ee.p;try{Ee.p=8,rm(e,t,n,a)}finally{Ee.p=i,P.T=l}}function rm(e,t,n,a){if(nc){var l=fh(a);if(l===null)pd(e,t,a,ac,n),wy(e,a);else if(ww(l,e,t,n,a))a.stopPropagation();else if(wy(e,a),t&4&&-1<Ew.indexOf(e)){for(;l!==null;){var i=br(l);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Vl(i.pendingLanes);if(u!==0){var c=i;for(c.pendingLanes|=2,c.entangledLanes|=2;u;){var d=1<<31-sn(u);c.entanglements[1]|=d,u&=~d}la(i),(xe&6)===0&&(Xo=ln()+500,Js(0,!1))}}break;case 31:case 13:c=ii(i,2),c!==null&&Xt(c,i,2),gc(),im(i,2)}if(i=fh(a),i===null&&pd(e,t,a,ac,n),i===l)break;l=i}l!==null&&a.stopPropagation()}else pd(e,t,a,null,n)}}function fh(e){return e=Sh(e),sm(e)}var ac=null;function sm(e){if(ac=null,e=Vi(e),e!==null){var t=qs(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Ny(t),e!==null)return e;e=null}else if(n===31){if(e=zy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ac=e,null}function hv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dx()){case Ly:return 2;case Hy:return 8;case No:case hx:return 32;case By:return 268435456;default:return 32}default:return 32}}var dh=!1,yl=null,bl=null,vl=null,Hs=new Map,Bs=new Map,il=[],Ew="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 wy(e,t){switch(e){case"focusin":case"focusout":yl=null;break;case"dragenter":case"dragleave":bl=null;break;case"mouseover":case"mouseout":vl=null;break;case"pointerover":case"pointerout":Hs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bs.delete(t.pointerId)}}function rs(e,t,n,a,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[l]},t!==null&&(t=br(t),t!==null&&dv(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function ww(e,t,n,a,l){switch(t){case"focusin":return yl=rs(yl,e,t,n,a,l),!0;case"dragenter":return bl=rs(bl,e,t,n,a,l),!0;case"mouseover":return vl=rs(vl,e,t,n,a,l),!0;case"pointerover":var i=l.pointerId;return Hs.set(i,rs(Hs.get(i)||null,e,t,n,a,l)),!0;case"gotpointercapture":return i=l.pointerId,Bs.set(i,rs(Bs.get(i)||null,e,t,n,a,l)),!0}return!1}function mv(e){var t=Vi(e.target);if(t!==null){var n=qs(t);if(n!==null){if(t=n.tag,t===13){if(t=Ny(n),t!==null){e.blockedOn=t,og(e.priority,function(){Ey(n)});return}}else if(t===31){if(t=zy(n),t!==null){e.blockedOn=t,og(e.priority,function(){Ey(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fh(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Dd=a,n.target.dispatchEvent(a),Dd=null}else return t=br(n),t!==null&&dv(t),e.blockedOn=n,!1;t.shift()}return!0}function Ay(e,t,n){Mo(e)&&n.delete(t)}function Aw(){dh=!1,yl!==null&&Mo(yl)&&(yl=null),bl!==null&&Mo(bl)&&(bl=null),vl!==null&&Mo(vl)&&(vl=null),Hs.forEach(Ay),Bs.forEach(Ay)}function fo(e,t){e.blockedOn===t&&(e.blockedOn=null,dh||(dh=!0,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,Aw)))}var ho=null;function My(e){ho!==e&&(ho=e,ct.unstable_scheduleCallback(ct.unstable_NormalPriority,function(){ho===e&&(ho=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],l=e[t+2];if(typeof a!="function"){if(sm(a||n)===null)continue;break}var i=br(n);i!==null&&(e.splice(t,3),t-=3,Xd(i,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function gr(e){function t(d){return fo(d,e)}yl!==null&&fo(yl,e),bl!==null&&fo(bl,e),vl!==null&&fo(vl,e),Hs.forEach(t),Bs.forEach(t);for(var n=0;n<il.length;n++){var a=il[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<il.length&&(n=il[0],n.blockedOn===null);)mv(n),n.blockedOn===null&&il.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],i=n[a+1],u=l[Ft]||null;if(typeof i=="function")u||My(n);else if(u){var c=null;if(i&&i.hasAttribute("formAction")){if(l=i,u=i[Ft]||null)c=u.formAction;else if(sm(l)!==null)continue}else c=u.action;typeof c=="function"?n[a+1]=c:(n.splice(a,3),a-=3),My(n)}}}function pv(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return l=u})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function um(e){this._internalRoot=e}vc.prototype.render=um.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));var n=t.current,a=un();fv(n,a,e,t,null,null)};vc.prototype.unmount=um.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fv(e.current,2,null,e,null,null),gc(),t[yr]=null}};function vc(e){this._internalRoot=e}vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<il.length&&t!==0&&t<il[n].priority;n++);il.splice(n,0,e),n===0&&mv(e)}};var Oy=Dy.version;if(Oy!=="19.2.6")throw Error(D(527,Oy,"19.2.6"));Ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=ix(t),e=e!==null?Cy(e):null,e=e===null?null:e.stateNode,e};var Mw={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ss=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ss.isDisabled&&ss.supportsFiber))try{js=ss.inject(Mw),rn=ss}catch(e){}var ss;Sc.createRoot=function(e,t){if(!Ry(e))throw Error(D(299));var n=!1,a="",l=rb,i=sb,u=ub;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=ov(e,1,!1,null,null,n,a,null,l,i,u,pv),e[yr]=t.current,nm(e),new um(t)};Sc.hydrateRoot=function(e,t,n){if(!Ry(e))throw Error(D(299));var a=!1,l="",i=rb,u=sb,c=ub,d=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(u=n.onCaughtError),n.onRecoverableError!==void 0&&(c=n.onRecoverableError),n.formState!==void 0&&(d=n.formState)),t=ov(e,1,!0,t,n!=null?n:null,a,l,d,i,u,c,pv),t.context=cv(null),n=t.current,a=un(),a=gh(a),l=hl(a),l.callback=null,ml(n,l,a),n=a,t.current.lanes=n,Vs(t,n),la(t),e[yr]=t.current,nm(e),new vc(t)};Sc.version="19.2.6"});var vv=Yn((H2,bv)=>{"use strict";function yv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yv)}catch(e){console.error(e)}}yv(),bv.exports=gv()});var Pv=Yn((km,Nr)=>{(function(e,t){typeof km=="object"&&typeof Nr<"u"?Nr.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(km,(function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(r){e=r}function a(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function l(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function i(r,s){return Object.prototype.hasOwnProperty.call(r,s)}function u(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var s;for(s in r)if(i(r,s))return!1;return!0}function c(r){return r===void 0}function d(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function m(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function p(r,s){var o=[],f,h=r.length;for(f=0;f<h;++f)o.push(s(r[f],f));return o}function T(r,s){for(var o in s)i(s,o)&&(r[o]=s[o]);return i(s,"toString")&&(r.toString=s.toString),i(s,"valueOf")&&(r.valueOf=s.valueOf),r}function y(r,s,o,f){return ap(r,s,o,f,!0).utc()}function _(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function E(r){return r._pf==null&&(r._pf=_()),r._pf}var w;Array.prototype.some?w=Array.prototype.some:w=function(r){var s=Object(this),o=s.length>>>0,f;for(f=0;f<o;f++)if(f in s&&r.call(this,s[f],f,s))return!0;return!1};function R(r){var s=null,o=!1,f=r._d&&!isNaN(r._d.getTime());if(f&&(s=E(r),o=w.call(s.parsedDateParts,function(h){return h!=null}),f=s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&o),r._strict&&(f=f&&s.charsLeftOver===0&&s.unusedTokens.length===0&&s.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=f;else return f;return r._isValid}function g(r){var s=y(NaN);return r!=null?T(E(s),r):E(s).userInvalidated=!0,s}var b=t.momentProperties=[],k=!1;function x(r,s){var o,f,h,S=b.length;if(c(s._isAMomentObject)||(r._isAMomentObject=s._isAMomentObject),c(s._i)||(r._i=s._i),c(s._f)||(r._f=s._f),c(s._l)||(r._l=s._l),c(s._strict)||(r._strict=s._strict),c(s._tzm)||(r._tzm=s._tzm),c(s._isUTC)||(r._isUTC=s._isUTC),c(s._offset)||(r._offset=s._offset),c(s._pf)||(r._pf=E(s)),c(s._locale)||(r._locale=s._locale),S>0)for(o=0;o<S;o++)f=b[o],h=s[f],c(h)||(r[f]=h);return r}function N(r){x(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),k===!1&&(k=!0,t.updateOffset(this),k=!1)}function z(r){return r instanceof N||r!=null&&r._isAMomentObject!=null}function Y(r){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+r)}function q(r,s){var o=!0;return T(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,r),o){var f=[],h,S,A,V=arguments.length;for(S=0;S<V;S++){if(h="",typeof arguments[S]=="object"){h+="\n["+S+"] ";for(A in arguments[0])i(arguments[0],A)&&(h+=A+": "+arguments[0][A]+", ");h=h.slice(0,-2)}else h=arguments[S];f.push(h)}Y(r+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+new Error().stack),o=!1}return s.apply(this,arguments)},s)}var K={};function J(r,s){t.deprecationHandler!=null&&t.deprecationHandler(r,s),K[r]||(Y(s),K[r]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function be(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function Ue(r){var s,o;for(o in r)i(r,o)&&(s=r[o],be(s)?this[o]=s:this["_"+o]=s);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function We(r,s){var o=T({},r),f;for(f in s)i(s,f)&&(l(r[f])&&l(s[f])?(o[f]={},T(o[f],r[f]),T(o[f],s[f])):s[f]!=null?o[f]=s[f]:delete o[f]);for(f in r)i(r,f)&&!i(s,f)&&l(r[f])&&(o[f]=T({},o[f]));return o}function I(r){r!=null&&this.set(r)}var oe;Object.keys?oe=Object.keys:oe=function(r){var s,o=[];for(s in r)i(r,s)&&o.push(s);return o};var _t={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Vn(r,s,o){var f=this._calendar[r]||this._calendar.sameElse;return be(f)?f.call(s,o):f}function pt(r,s,o){var f=""+Math.abs(r),h=s-f.length,S=r>=0;return(S?o?"+":"":"-")+Math.pow(10,Math.max(0,h)).toString().substr(1)+f}var Zn=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Nn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,da={},Qn={};function Q(r,s,o,f){var h=f;typeof f=="string"&&(h=function(){return this[f]()}),r&&(Qn[r]=h),s&&(Qn[s[0]]=function(){return pt(h.apply(this,arguments),s[1],s[2])}),o&&(Qn[o]=function(){return this.localeData().ordinal(h.apply(this,arguments),r)})}function Le(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Va(r){var s=r.match(Zn),o,f;for(o=0,f=s.length;o<f;o++)Qn[s[o]]?s[o]=Qn[s[o]]:s[o]=Le(s[o]);return function(h){var S="",A;for(A=0;A<f;A++)S+=be(s[A])?s[A].call(h,r):s[A];return S}}function Oe(r,s){return r.isValid()?(s=ne(s,r.localeData()),da[s]=da[s]||Va(s),da[s](r)):r.localeData().invalidDate()}function ne(r,s){var o=5;function f(h){return s.longDateFormat(h)||h}for(Nn.lastIndex=0;o>=0&&Nn.test(r);)r=r.replace(Nn,f),Nn.lastIndex=0,o-=1;return r}var ee={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Dt(r){var s=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return s||!o?s:(this._longDateFormat[r]=o.match(Zn).map(function(f){return f==="MMMM"||f==="MM"||f==="DD"||f==="dddd"?f.slice(1):f}).join(""),this._longDateFormat[r])}var bi="Invalid date";function Xn(){return this._invalidDate}var _u="%d",Vr=/\d{1,2}/;function ku(r){return this._ordinal.replace("%d",r)}var xu={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Fn(r,s,o,f){var h=this._relativeTime[o];return be(h)?h(r,s,o,f):h.replace(/%d/i,r)}function Rl(r,s){var o=this._relativeTime[r>0?"future":"past"];return be(o)?o(s):o.replace(/%s/i,s)}var Kn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function kt(r){return typeof r=="string"?Kn[r]||Kn[r.toLowerCase()]:void 0}function Nl(r){var s={},o,f;for(f in r)i(r,f)&&(o=kt(f),o&&(s[o]=r[f]));return s}var Za={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function vi(r){var s=[],o;for(o in r)i(r,o)&&s.push({unit:o,priority:Za[o]});return s.sort(function(f,h){return f.priority-h.priority}),s}var zl=/\d/,xt=/\d\d/,Zr=/\d{3}/,Si=/\d{4}/,Qa=/[+-]?\d{6}/,_e=/\d\d?/,ha=/\d\d\d\d?/,It=/\d\d\d\d\d\d?/,Xa=/\d{1,3}/,Ti=/\d{1,4}/,Cl=/[+-]?\d{1,6}/,Jn=/\d+/,Ul=/[+-]?\d+/,_i=/Z|[+-]\d\d:?\d\d/gi,ma=/Z|[+-]\d\d(?::?\d\d)?/gi,dn=/[+-]?\d+(\.\d{1,3})?/,hn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Wn=/^[1-9]\d?/,Yl=/^([1-9]\d|\d)/,ki;ki={};function j(r,s,o){ki[r]=be(s)?s:function(f,h){return f&&o?o:s}}function Qr(r,s){return i(ki,r)?ki[r](s._strict,s._locale):new RegExp(ef(r))}function ef(r){return Rt(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,o,f,h,S){return o||f||h||S}))}function Rt(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ht(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function se(r){var s=+r,o=0;return s!==0&&isFinite(s)&&(o=Ht(s)),o}var He={};function he(r,s){var o,f=s,h;for(typeof r=="string"&&(r=[r]),d(s)&&(f=function(S,A){A[s]=se(S)}),h=r.length,o=0;o<h;o++)He[r[o]]=f}function Ll(r,s){he(r,function(o,f,h,S){h._w=h._w||{},s(o,h._w,h,S)})}function Eu(r,s,o){s!=null&&i(He,r)&&He[r](s,o._a,o,r)}function Fa(r){return r%4===0&&r%100!==0||r%400===0}var st=0,mn=1,pn=2,ke=3,ut=4,gn=5,$n=6,wu=7,xi=8;Q("Y",0,0,function(){var r=this.year();return r<=9999?pt(r,4):"+"+r}),Q(0,["YY",2],0,function(){return this.year()%100}),Q(0,["YYYY",4],0,"year"),Q(0,["YYYYY",5],0,"year"),Q(0,["YYYYYY",6,!0],0,"year"),j("Y",Ul),j("YY",_e,xt),j("YYYY",Ti,Si),j("YYYYY",Cl,Qa),j("YYYYYY",Cl,Qa),he(["YYYYY","YYYYYY"],st),he("YYYY",function(r,s){s[st]=r.length===2?t.parseTwoDigitYear(r):se(r)}),he("YY",function(r,s){s[st]=t.parseTwoDigitYear(r)}),he("Y",function(r,s){s[st]=parseInt(r,10)});function zn(r){return Fa(r)?366:365}t.parseTwoDigitYear=function(r){return se(r)+(se(r)>68?1900:2e3)};var Hl=pa("FullYear",!0);function Cn(){return Fa(this.year())}function pa(r,s){return function(o){return o!=null?(Au(this,r,o),t.updateOffset(this,s),this):Ka(this,r)}}function Ka(r,s){if(!r.isValid())return NaN;var o=r._d,f=r._isUTC;switch(s){case"Milliseconds":return f?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return f?o.getUTCSeconds():o.getSeconds();case"Minutes":return f?o.getUTCMinutes():o.getMinutes();case"Hours":return f?o.getUTCHours():o.getHours();case"Date":return f?o.getUTCDate():o.getDate();case"Day":return f?o.getUTCDay():o.getDay();case"Month":return f?o.getUTCMonth():o.getMonth();case"FullYear":return f?o.getUTCFullYear():o.getFullYear();default:return NaN}}function Au(r,s,o){var f,h,S,A,V;if(!(!r.isValid()||isNaN(o))){switch(f=r._d,h=r._isUTC,s){case"Milliseconds":return void(h?f.setUTCMilliseconds(o):f.setMilliseconds(o));case"Seconds":return void(h?f.setUTCSeconds(o):f.setSeconds(o));case"Minutes":return void(h?f.setUTCMinutes(o):f.setMinutes(o));case"Hours":return void(h?f.setUTCHours(o):f.setHours(o));case"Date":return void(h?f.setUTCDate(o):f.setDate(o));case"FullYear":break;default:return}S=o,A=r.month(),V=r.date(),V=V===29&&A===1&&!Fa(S)?28:V,h?f.setUTCFullYear(S,A,V):f.setFullYear(S,A,V)}}function Mu(r){return r=kt(r),be(this[r])?this[r]():this}function Ou(r,s){if(typeof r=="object"){r=Nl(r);var o=vi(r),f,h=o.length;for(f=0;f<h;f++)this[o[f].unit](r[o[f].unit])}else if(r=kt(r),be(this[r]))return this[r](s);return this}function Ei(r,s){return(r%s+s)%s}var De;Array.prototype.indexOf?De=Array.prototype.indexOf:De=function(r){var s;for(s=0;s<this.length;++s)if(this[s]===r)return s;return-1};function Z(r,s){if(isNaN(r)||isNaN(s))return NaN;var o=Ei(s,12);return r+=(s-o)/12,o===1?Fa(r)?29:28:31-o%7%2}Q("M",["MM",2],"Mo",function(){return this.month()+1}),Q("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)}),Q("MMMM",0,0,function(r){return this.localeData().months(this,r)}),j("M",_e,Wn),j("MM",_e,xt),j("MMM",function(r,s){return s.monthsShortRegex(r)}),j("MMMM",function(r,s){return s.monthsRegex(r)}),he(["M","MM"],function(r,s){s[mn]=se(r)-1}),he(["MMM","MMMM"],function(r,s,o,f){var h=o._locale.monthsParse(r,f,o._strict);h!=null?s[mn]=h:E(o).invalidMonth=r});var v="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),M="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),H=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=hn,ue=hn;function ze(r,s){return r?a(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||H).test(s)?"format":"standalone"][r.month()]:a(this._months)?this._months:this._months.standalone}function Bt(r,s){return r?a(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[H.test(s)?"format":"standalone"][r.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function yn(r,s,o){var f,h,S,A=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],f=0;f<12;++f)S=y([2e3,f]),this._shortMonthsParse[f]=this.monthsShort(S,"").toLocaleLowerCase(),this._longMonthsParse[f]=this.months(S,"").toLocaleLowerCase();return o?s==="MMM"?(h=De.call(this._shortMonthsParse,A),h!==-1?h:null):(h=De.call(this._longMonthsParse,A),h!==-1?h:null):s==="MMM"?(h=De.call(this._shortMonthsParse,A),h!==-1?h:(h=De.call(this._longMonthsParse,A),h!==-1?h:null)):(h=De.call(this._longMonthsParse,A),h!==-1?h:(h=De.call(this._shortMonthsParse,A),h!==-1?h:null))}function Pt(r,s,o){var f,h,S;if(this._monthsParseExact)return yn.call(this,r,s,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),f=0;f<12;f++){if(h=y([2e3,f]),o&&!this._longMonthsParse[f]&&(this._longMonthsParse[f]=new RegExp("^"+this.months(h,"").replace(".","")+"$","i"),this._shortMonthsParse[f]=new RegExp("^"+this.monthsShort(h,"").replace(".","")+"$","i")),!o&&!this._monthsParse[f]&&(S="^"+this.months(h,"")+"|^"+this.monthsShort(h,""),this._monthsParse[f]=new RegExp(S.replace(".",""),"i")),o&&s==="MMMM"&&this._longMonthsParse[f].test(r))return f;if(o&&s==="MMM"&&this._shortMonthsParse[f].test(r))return f;if(!o&&this._monthsParse[f].test(r))return f}}function wi(r,s){if(!r.isValid())return r;if(typeof s=="string"){if(/^\d+$/.test(s))s=se(s);else if(s=r.localeData().monthsParse(s),!d(s))return r}var o=s,f=r.date();return f=f<29?f:Math.min(f,Z(r.year(),o)),r._isUTC?r._d.setUTCMonth(o,f):r._d.setMonth(o,f),r}function $e(r){return r!=null?(wi(this,r),t.updateOffset(this,!0),this):Ka(this,"Month")}function Du(){return Z(this.year(),this.month())}function Ru(r){return this._monthsParseExact?(i(this,"_monthsRegex")||Fm.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function gS(r){return this._monthsParseExact?(i(this,"_monthsRegex")||Fm.call(this),r?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=ue),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function Fm(){function r(te,me){return me.length-te.length}var s=[],o=[],f=[],h,S,A,V;for(h=0;h<12;h++)S=y([2e3,h]),A=Rt(this.monthsShort(S,"")),V=Rt(this.months(S,"")),s.push(A),o.push(V),f.push(V),f.push(A);s.sort(r),o.sort(r),f.sort(r),this._monthsRegex=new RegExp("^("+f.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function yS(r,s,o,f,h,S,A){var V;return r<100&&r>=0?(V=new Date(r+400,s,o,f,h,S,A),isFinite(V.getFullYear())&&V.setFullYear(r)):V=new Date(r,s,o,f,h,S,A),V}function Xr(r){var s,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,s=new Date(Date.UTC.apply(null,o)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(r)):s=new Date(Date.UTC.apply(null,arguments)),s}function Nu(r,s,o){var f=7+s-o,h=(7+Xr(r,0,f).getUTCDay()-s)%7;return-h+f-1}function Km(r,s,o,f,h){var S=(7+o-f)%7,A=Nu(r,f,h),V=1+7*(s-1)+S+A,te,me;return V<=0?(te=r-1,me=zn(te)+V):V>zn(r)?(te=r+1,me=V-zn(r)):(te=r,me=V),{year:te,dayOfYear:me}}function Fr(r,s,o){var f=Nu(r.year(),s,o),h=Math.floor((r.dayOfYear()-f-1)/7)+1,S,A;return h<1?(A=r.year()-1,S=h+ga(A,s,o)):h>ga(r.year(),s,o)?(S=h-ga(r.year(),s,o),A=r.year()+1):(A=r.year(),S=h),{week:S,year:A}}function ga(r,s,o){var f=Nu(r,s,o),h=Nu(r+1,s,o);return(zn(r)-f+h)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),j("w",_e,Wn),j("ww",_e,xt),j("W",_e,Wn),j("WW",_e,xt),Ll(["w","ww","W","WW"],function(r,s,o,f){s[f.substr(0,1)]=se(r)});function bS(r){return Fr(r,this._week.dow,this._week.doy).week}var vS={dow:0,doy:6};function SS(){return this._week.dow}function TS(){return this._week.doy}function _S(r){var s=this.localeData().week(this);return r==null?s:this.add((r-s)*7,"d")}function kS(r){var s=Fr(this,1,4).week;return r==null?s:this.add((r-s)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)}),Q("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)}),Q("dddd",0,0,function(r){return this.localeData().weekdays(this,r)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),j("d",_e),j("e",_e),j("E",_e),j("dd",function(r,s){return s.weekdaysMinRegex(r)}),j("ddd",function(r,s){return s.weekdaysShortRegex(r)}),j("dddd",function(r,s){return s.weekdaysRegex(r)}),Ll(["dd","ddd","dddd"],function(r,s,o,f){var h=o._locale.weekdaysParse(r,f,o._strict);h!=null?s.d=h:E(o).invalidWeekday=r}),Ll(["d","e","E"],function(r,s,o,f){s[f]=se(r)});function xS(r,s){return typeof r!="string"?r:isNaN(r)?(r=s.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function ES(r,s){return typeof r=="string"?s.weekdaysParse(r)%7||7:isNaN(r)?null:r}function tf(r,s){return r.slice(s,7).concat(r.slice(0,s))}var wS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jm="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),AS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),MS=hn,OS=hn,DS=hn;function RS(r,s){var o=a(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return r===!0?tf(o,this._week.dow):r?o[r.day()]:o}function NS(r){return r===!0?tf(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function zS(r){return r===!0?tf(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function CS(r,s,o){var f,h,S,A=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)S=y([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(S,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(S,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(S,"").toLocaleLowerCase();return o?s==="dddd"?(h=De.call(this._weekdaysParse,A),h!==-1?h:null):s==="ddd"?(h=De.call(this._shortWeekdaysParse,A),h!==-1?h:null):(h=De.call(this._minWeekdaysParse,A),h!==-1?h:null):s==="dddd"?(h=De.call(this._weekdaysParse,A),h!==-1||(h=De.call(this._shortWeekdaysParse,A),h!==-1)?h:(h=De.call(this._minWeekdaysParse,A),h!==-1?h:null)):s==="ddd"?(h=De.call(this._shortWeekdaysParse,A),h!==-1||(h=De.call(this._weekdaysParse,A),h!==-1)?h:(h=De.call(this._minWeekdaysParse,A),h!==-1?h:null)):(h=De.call(this._minWeekdaysParse,A),h!==-1||(h=De.call(this._weekdaysParse,A),h!==-1)?h:(h=De.call(this._shortWeekdaysParse,A),h!==-1?h:null))}function US(r,s,o){var f,h,S;if(this._weekdaysParseExact)return CS.call(this,r,s,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(h=y([2e3,1]).day(f),o&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=new RegExp("^"+this.weekdays(h,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=new RegExp("^"+this.weekdaysShort(h,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=new RegExp("^"+this.weekdaysMin(h,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(S="^"+this.weekdays(h,"")+"|^"+this.weekdaysShort(h,"")+"|^"+this.weekdaysMin(h,""),this._weekdaysParse[f]=new RegExp(S.replace(".",""),"i")),o&&s==="dddd"&&this._fullWeekdaysParse[f].test(r))return f;if(o&&s==="ddd"&&this._shortWeekdaysParse[f].test(r))return f;if(o&&s==="dd"&&this._minWeekdaysParse[f].test(r))return f;if(!o&&this._weekdaysParse[f].test(r))return f}}function YS(r){if(!this.isValid())return r!=null?this:NaN;var s=Ka(this,"Day");return r!=null?(r=xS(r,this.localeData()),this.add(r-s,"d")):s}function LS(r){if(!this.isValid())return r!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return r==null?s:this.add(r-s,"d")}function HS(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var s=ES(r,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function BS(r){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||nf.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=MS),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function qS(r){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||nf.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=OS),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jS(r){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||nf.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=DS),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function nf(){function r(Nt,Ta){return Ta.length-Nt.length}var s=[],o=[],f=[],h=[],S,A,V,te,me;for(S=0;S<7;S++)A=y([2e3,1]).day(S),V=Rt(this.weekdaysMin(A,"")),te=Rt(this.weekdaysShort(A,"")),me=Rt(this.weekdays(A,"")),s.push(V),o.push(te),f.push(me),h.push(V),h.push(te),h.push(me);s.sort(r),o.sort(r),f.sort(r),h.sort(r),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function af(){return this.hours()%12||12}function GS(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,af),Q("k",["kk",2],0,GS),Q("hmm",0,0,function(){return""+af.apply(this)+pt(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+af.apply(this)+pt(this.minutes(),2)+pt(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+pt(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+pt(this.minutes(),2)+pt(this.seconds(),2)});function Wm(r,s){Q(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}Wm("a",!0),Wm("A",!1);function $m(r,s){return s._meridiemParse}j("a",$m),j("A",$m),j("H",_e,Yl),j("h",_e,Wn),j("k",_e,Wn),j("HH",_e,xt),j("hh",_e,xt),j("kk",_e,xt),j("hmm",ha),j("hmmss",It),j("Hmm",ha),j("Hmmss",It),he(["H","HH"],ke),he(["k","kk"],function(r,s,o){var f=se(r);s[ke]=f===24?0:f}),he(["a","A"],function(r,s,o){o._isPm=o._locale.isPM(r),o._meridiem=r}),he(["h","hh"],function(r,s,o){s[ke]=se(r),E(o).bigHour=!0}),he("hmm",function(r,s,o){var f=r.length-2;s[ke]=se(r.substr(0,f)),s[ut]=se(r.substr(f)),E(o).bigHour=!0}),he("hmmss",function(r,s,o){var f=r.length-4,h=r.length-2;s[ke]=se(r.substr(0,f)),s[ut]=se(r.substr(f,2)),s[gn]=se(r.substr(h)),E(o).bigHour=!0}),he("Hmm",function(r,s,o){var f=r.length-2;s[ke]=se(r.substr(0,f)),s[ut]=se(r.substr(f))}),he("Hmmss",function(r,s,o){var f=r.length-4,h=r.length-2;s[ke]=se(r.substr(0,f)),s[ut]=se(r.substr(f,2)),s[gn]=se(r.substr(h))});function VS(r){return(r+"").toLowerCase().charAt(0)==="p"}var ZS=/[ap]\.?m?\.?/i,QS=pa("Hours",!0);function XS(r,s,o){return r>11?o?"pm":"PM":o?"am":"AM"}var Im={calendar:_t,longDateFormat:ee,invalidDate:bi,ordinal:_u,dayOfMonthOrdinalParse:Vr,relativeTime:xu,months:v,monthsShort:M,week:vS,weekdays:wS,weekdaysMin:AS,weekdaysShort:Jm,meridiemParse:ZS},Ze={},Kr={},Jr;function FS(r,s){var o,f=Math.min(r.length,s.length);for(o=0;o<f;o+=1)if(r[o]!==s[o])return o;return f}function Pm(r){return r&&r.toLowerCase().replace("_","-")}function KS(r){for(var s=0,o,f,h,S;s<r.length;){for(S=Pm(r[s]).split("-"),o=S.length,f=Pm(r[s+1]),f=f?f.split("-"):null;o>0;){if(h=zu(S.slice(0,o).join("-")),h)return h;if(f&&f.length>=o&&FS(S,f)>=o-1)break;o--}s++}return Jr}function JS(r){return!!(r&&r.match("^[^/\\\\]*$"))}function zu(r){var s=null,o;if(Ze[r]===void 0&&typeof Nr<"u"&&Nr&&Nr.exports&&JS(r))try{s=Jr._abbr,o=Mp,o("./locale/"+r),Ja(s)}catch(f){Ze[r]=null}return Ze[r]}function Ja(r,s){var o;return r&&(c(s)?o=ya(r):o=lf(r,s),o?Jr=o:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Jr._abbr}function lf(r,s){if(s!==null){var o,f=Im;if(s.abbr=r,Ze[r]!=null)J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),f=Ze[r]._config;else if(s.parentLocale!=null)if(Ze[s.parentLocale]!=null)f=Ze[s.parentLocale]._config;else if(o=zu(s.parentLocale),o!=null)f=o._config;else return Kr[s.parentLocale]||(Kr[s.parentLocale]=[]),Kr[s.parentLocale].push({name:r,config:s}),null;return Ze[r]=new I(We(f,s)),Kr[r]&&Kr[r].forEach(function(h){lf(h.name,h.config)}),Ja(r),Ze[r]}else return delete Ze[r],null}function WS(r,s){if(s!=null){var o,f,h=Im;Ze[r]!=null&&Ze[r].parentLocale!=null?Ze[r].set(We(Ze[r]._config,s)):(f=zu(r),f!=null&&(h=f._config),s=We(h,s),f==null&&(s.abbr=r),o=new I(s),o.parentLocale=Ze[r],Ze[r]=o),Ja(r)}else Ze[r]!=null&&(Ze[r].parentLocale!=null?(Ze[r]=Ze[r].parentLocale,r===Ja()&&Ja(r)):Ze[r]!=null&&delete Ze[r]);return Ze[r]}function ya(r){var s;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Jr;if(!a(r)){if(s=zu(r),s)return s;r=[r]}return KS(r)}function $S(){return oe(Ze)}function rf(r){var s,o=r._a;return o&&E(r).overflow===-2&&(s=o[mn]<0||o[mn]>11?mn:o[pn]<1||o[pn]>Z(o[st],o[mn])?pn:o[ke]<0||o[ke]>24||o[ke]===24&&(o[ut]!==0||o[gn]!==0||o[$n]!==0)?ke:o[ut]<0||o[ut]>59?ut:o[gn]<0||o[gn]>59?gn:o[$n]<0||o[$n]>999?$n:-1,E(r)._overflowDayOfYear&&(s<st||s>pn)&&(s=pn),E(r)._overflowWeeks&&s===-1&&(s=wu),E(r)._overflowWeekday&&s===-1&&(s=xi),E(r).overflow=s),r}var IS=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,PS=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eT=/Z|[+-]\d\d(?::?\d\d)?/,Cu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],sf=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tT=/^\/?Date\((-?\d+)/i,nT=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,aT={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ep(r){var s,o,f=r._i,h=IS.exec(f)||PS.exec(f),S,A,V,te,me=Cu.length,Nt=sf.length;if(h){for(E(r).iso=!0,s=0,o=me;s<o;s++)if(Cu[s][1].exec(h[1])){A=Cu[s][0],S=Cu[s][2]!==!1;break}if(A==null){r._isValid=!1;return}if(h[3]){for(s=0,o=Nt;s<o;s++)if(sf[s][1].exec(h[3])){V=(h[2]||" ")+sf[s][0];break}if(V==null){r._isValid=!1;return}}if(!S&&V!=null){r._isValid=!1;return}if(h[4])if(eT.exec(h[4]))te="Z";else{r._isValid=!1;return}r._f=A+(V||"")+(te||""),of(r)}else r._isValid=!1}function lT(r,s,o,f,h,S){var A=[iT(r),M.indexOf(s),parseInt(o,10),parseInt(f,10),parseInt(h,10)];return S&&A.push(parseInt(S,10)),A}function iT(r){var s=parseInt(r,10);return s<=49?2e3+s:s<=999?1900+s:s}function rT(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sT(r,s,o){if(r){var f=Jm.indexOf(r),h=new Date(s[0],s[1],s[2]).getDay();if(f!==h)return E(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function uT(r,s,o){if(r)return aT[r];if(s)return 0;var f=parseInt(o,10),h=f%100,S=(f-h)/100;return S*60+h}function tp(r){var s=nT.exec(rT(r._i)),o;if(s){if(o=lT(s[4],s[3],s[2],s[5],s[6],s[7]),!sT(s[1],o,r))return;r._a=o,r._tzm=uT(s[8],s[9],s[10]),r._d=Xr.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),E(r).rfc2822=!0}else r._isValid=!1}function oT(r){var s=tT.exec(r._i);if(s!==null){r._d=new Date(+s[1]);return}if(ep(r),r._isValid===!1)delete r._isValid;else return;if(tp(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:t.createFromInputFallback(r)}t.createFromInputFallback=q("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Ai(r,s,o){return r!=null?r:s!=null?s:o}function cT(r){var s=new Date(t.now());return r._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}function uf(r){var s,o,f=[],h,S,A;if(!r._d){for(h=cT(r),r._w&&r._a[pn]==null&&r._a[mn]==null&&fT(r),r._dayOfYear!=null&&(A=Ai(r._a[st],h[st]),(r._dayOfYear>zn(A)||r._dayOfYear===0)&&(E(r)._overflowDayOfYear=!0),o=Xr(A,0,r._dayOfYear),r._a[mn]=o.getUTCMonth(),r._a[pn]=o.getUTCDate()),s=0;s<3&&r._a[s]==null;++s)r._a[s]=f[s]=h[s];for(;s<7;s++)r._a[s]=f[s]=r._a[s]==null?s===2?1:0:r._a[s];r._a[ke]===24&&r._a[ut]===0&&r._a[gn]===0&&r._a[$n]===0&&(r._nextDay=!0,r._a[ke]=0),r._d=(r._useUTC?Xr:yS).apply(null,f),S=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[ke]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==S&&(E(r).weekdayMismatch=!0)}}function fT(r){var s,o,f,h,S,A,V,te,me;s=r._w,s.GG!=null||s.W!=null||s.E!=null?(S=1,A=4,o=Ai(s.GG,r._a[st],Fr(Be(),1,4).year),f=Ai(s.W,1),h=Ai(s.E,1),(h<1||h>7)&&(te=!0)):(S=r._locale._week.dow,A=r._locale._week.doy,me=Fr(Be(),S,A),o=Ai(s.gg,r._a[st],me.year),f=Ai(s.w,me.week),s.d!=null?(h=s.d,(h<0||h>6)&&(te=!0)):s.e!=null?(h=s.e+S,(s.e<0||s.e>6)&&(te=!0)):h=S),f<1||f>ga(o,S,A)?E(r)._overflowWeeks=!0:te!=null?E(r)._overflowWeekday=!0:(V=Km(o,f,h,S,A),r._a[st]=V.year,r._dayOfYear=V.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function of(r){if(r._f===t.ISO_8601){ep(r);return}if(r._f===t.RFC_2822){tp(r);return}r._a=[],E(r).empty=!0;var s=""+r._i,o,f,h,S,A,V=s.length,te=0,me,Nt;for(h=ne(r._f,r._locale).match(Zn)||[],Nt=h.length,o=0;o<Nt;o++)S=h[o],f=(s.match(Qr(S,r))||[])[0],f&&(A=s.substr(0,s.indexOf(f)),A.length>0&&E(r).unusedInput.push(A),s=s.slice(s.indexOf(f)+f.length),te+=f.length),Qn[S]?(f?E(r).empty=!1:E(r).unusedTokens.push(S),Eu(S,f,r)):r._strict&&!f&&E(r).unusedTokens.push(S);E(r).charsLeftOver=V-te,s.length>0&&E(r).unusedInput.push(s),r._a[ke]<=12&&E(r).bigHour===!0&&r._a[ke]>0&&(E(r).bigHour=void 0),E(r).parsedDateParts=r._a.slice(0),E(r).meridiem=r._meridiem,r._a[ke]=dT(r._locale,r._a[ke],r._meridiem),me=E(r).era,me!==null&&(r._a[st]=r._locale.erasConvertYear(me,r._a[st])),uf(r),rf(r)}function dT(r,s,o){var f;return o==null?s:r.meridiemHour!=null?r.meridiemHour(s,o):(r.isPM!=null&&(f=r.isPM(o),f&&s<12&&(s+=12),!f&&s===12&&(s=0)),s)}function hT(r){var s,o,f,h,S,A,V=!1,te=r._f.length;if(te===0){E(r).invalidFormat=!0,r._d=new Date(NaN);return}for(h=0;h<te;h++)S=0,A=!1,s=x({},r),r._useUTC!=null&&(s._useUTC=r._useUTC),s._f=r._f[h],of(s),R(s)&&(A=!0),S+=E(s).charsLeftOver,S+=E(s).unusedTokens.length*10,E(s).score=S,V?S<f&&(f=S,o=s):(f==null||S<f||A)&&(f=S,o=s,A&&(V=!0));T(r,o||s)}function mT(r){if(!r._d){var s=Nl(r._i),o=s.day===void 0?s.date:s.day;r._a=p([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],function(f){return f&&parseInt(f,10)}),uf(r)}}function pT(r){var s=new N(rf(np(r)));return s._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function np(r){var s=r._i,o=r._f;return r._locale=r._locale||ya(r._l),s===null||o===void 0&&s===""?g({nullInput:!0}):(typeof s=="string"&&(r._i=s=r._locale.preparse(s)),z(s)?new N(rf(s)):(m(s)?r._d=s:a(o)?hT(r):o?of(r):gT(r),R(r)||(r._d=null),r))}function gT(r){var s=r._i;c(s)?r._d=new Date(t.now()):m(s)?r._d=new Date(s.valueOf()):typeof s=="string"?oT(r):a(s)?(r._a=p(s.slice(0),function(o){return parseInt(o,10)}),uf(r)):l(s)?mT(r):d(s)?r._d=new Date(s):t.createFromInputFallback(r)}function ap(r,s,o,f,h){var S={};return(s===!0||s===!1)&&(f=s,s=void 0),(o===!0||o===!1)&&(f=o,o=void 0),(l(r)&&u(r)||a(r)&&r.length===0)&&(r=void 0),S._isAMomentObject=!0,S._useUTC=S._isUTC=h,S._l=o,S._i=r,S._f=s,S._strict=f,pT(S)}function Be(r,s,o,f){return ap(r,s,o,f,!1)}var yT=q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Be.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:g()}),bT=q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Be.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:g()});function lp(r,s){var o,f;if(s.length===1&&a(s[0])&&(s=s[0]),!s.length)return Be();for(o=s[0],f=1;f<s.length;++f)(!s[f].isValid()||s[f][r](o))&&(o=s[f]);return o}function vT(){var r=[].slice.call(arguments,0);return lp("isBefore",r)}function ST(){var r=[].slice.call(arguments,0);return lp("isAfter",r)}var TT=function(){return Date.now?Date.now():+new Date},Wr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function _T(r){var s,o=!1,f,h=Wr.length;for(s in r)if(i(r,s)&&!(De.call(Wr,s)!==-1&&(r[s]==null||!isNaN(r[s]))))return!1;for(f=0;f<h;++f)if(r[Wr[f]]){if(o)return!1;parseFloat(r[Wr[f]])!==se(r[Wr[f]])&&(o=!0)}return!0}function kT(){return this._isValid}function xT(){return Un(NaN)}function Uu(r){var s=Nl(r),o=s.year||0,f=s.quarter||0,h=s.month||0,S=s.week||s.isoWeek||0,A=s.day||0,V=s.hour||0,te=s.minute||0,me=s.second||0,Nt=s.millisecond||0;this._isValid=_T(s),this._milliseconds=+Nt+me*1e3+te*6e4+V*1e3*60*60,this._days=+A+S*7,this._months=+h+f*3+o*12,this._data={},this._locale=ya(),this._bubble()}function Yu(r){return r instanceof Uu}function cf(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function ET(r,s,o){var f=Math.min(r.length,s.length),h=Math.abs(r.length-s.length),S=0,A;for(A=0;A<f;A++)(o&&r[A]!==s[A]||!o&&se(r[A])!==se(s[A]))&&S++;return S+h}function ip(r,s){Q(r,0,0,function(){var o=this.utcOffset(),f="+";return o<0&&(o=-o,f="-"),f+pt(~~(o/60),2)+s+pt(~~o%60,2)})}ip("Z",":"),ip("ZZ",""),j("Z",ma),j("ZZ",ma),he(["Z","ZZ"],function(r,s,o){o._useUTC=!0,o._tzm=ff(ma,r)});var wT=/([\+\-]|\d\d)/gi;function ff(r,s){var o=(s||"").match(r),f,h,S;return o===null?null:(f=o[o.length-1]||[],h=(f+"").match(wT)||["-",0,0],S=+(h[1]*60)+se(h[2]),S===0?0:h[0]==="+"?S:-S)}function df(r,s){var o,f;return s._isUTC?(o=s.clone(),f=(z(r)||m(r)?r.valueOf():Be(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+f),t.updateOffset(o,!1),o):Be(r).local()}function hf(r){return-Math.round(r._d.getTimezoneOffset())}t.updateOffset=function(){};function AT(r,s,o){var f=this._offset||0,h;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=ff(ma,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&s&&(h=hf(this)),this._offset=r,this._isUTC=!0,h!=null&&this.add(h,"m"),f!==r&&(!s||this._changeInProgress?op(this,Un(r-f,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?f:hf(this)}function MT(r,s){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,s),this):-this.utcOffset()}function OT(r){return this.utcOffset(0,r)}function DT(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(hf(this),"m")),this}function RT(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=ff(_i,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function NT(r){return this.isValid()?(r=r?Be(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function zT(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function CT(){if(!c(this._isDSTShifted))return this._isDSTShifted;var r={},s;return x(r,this),r=np(r),r._a?(s=r._isUTC?y(r._a):Be(r._a),this._isDSTShifted=this.isValid()&&ET(r._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function UT(){return this.isValid()?!this._isUTC:!1}function YT(){return this.isValid()?this._isUTC:!1}function rp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var LT=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HT=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Un(r,s){var o=r,f=null,h,S,A;return Yu(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:d(r)||!isNaN(+r)?(o={},s?o[s]=+r:o.milliseconds=+r):(f=LT.exec(r))?(h=f[1]==="-"?-1:1,o={y:0,d:se(f[pn])*h,h:se(f[ke])*h,m:se(f[ut])*h,s:se(f[gn])*h,ms:se(cf(f[$n]*1e3))*h}):(f=HT.exec(r))?(h=f[1]==="-"?-1:1,o={y:Bl(f[2],h),M:Bl(f[3],h),w:Bl(f[4],h),d:Bl(f[5],h),h:Bl(f[6],h),m:Bl(f[7],h),s:Bl(f[8],h)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(A=BT(Be(o.from),Be(o.to)),o={},o.ms=A.milliseconds,o.M=A.months),S=new Uu(o),Yu(r)&&i(r,"_locale")&&(S._locale=r._locale),Yu(r)&&i(r,"_isValid")&&(S._isValid=r._isValid),S}Un.fn=Uu.prototype,Un.invalid=xT;function Bl(r,s){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*s}function sp(r,s){var o={};return o.months=s.month()-r.month()+(s.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(s)&&--o.months,o.milliseconds=+s-+r.clone().add(o.months,"M"),o}function BT(r,s){var o;return r.isValid()&&s.isValid()?(s=df(s,r),r.isBefore(s)?o=sp(r,s):(o=sp(s,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function up(r,s){return function(o,f){var h,S;return f!==null&&!isNaN(+f)&&(J(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),S=o,o=f,f=S),h=Un(o,f),op(this,h,r),this}}function op(r,s,o,f){var h=s._milliseconds,S=cf(s._days),A=cf(s._months);r.isValid()&&(f=f==null?!0:f,A&&wi(r,Ka(r,"Month")+A*o),S&&Au(r,"Date",Ka(r,"Date")+S*o),h&&r._d.setTime(r._d.valueOf()+h*o),f&&t.updateOffset(r,S||A))}var qT=up(1,"add"),jT=up(-1,"subtract");function cp(r){return typeof r=="string"||r instanceof String}function GT(r){return z(r)||m(r)||cp(r)||d(r)||ZT(r)||VT(r)||r===null||r===void 0}function VT(r){var s=l(r)&&!u(r),o=!1,f=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h,S,A=f.length;for(h=0;h<A;h+=1)S=f[h],o=o||i(r,S);return s&&o}function ZT(r){var s=a(r),o=!1;return s&&(o=r.filter(function(f){return!d(f)&&cp(r)}).length===0),s&&o}function QT(r){var s=l(r)&&!u(r),o=!1,f=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],h,S;for(h=0;h<f.length;h+=1)S=f[h],o=o||i(r,S);return s&&o}function XT(r,s){var o=r.diff(s,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function FT(r,s){arguments.length===1&&(arguments[0]?GT(arguments[0])?(r=arguments[0],s=void 0):QT(arguments[0])&&(s=arguments[0],r=void 0):(r=void 0,s=void 0));var o=r||Be(),f=df(o,this).startOf("day"),h=t.calendarFormat(this,f)||"sameElse",S=s&&(be(s[h])?s[h].call(this,o):s[h]);return this.format(S||this.localeData().calendar(h,this,Be(o)))}function KT(){return new N(this)}function JT(r,s){var o=z(r)?r:Be(r);return this.isValid()&&o.isValid()?(s=kt(s)||"millisecond",s==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(s).valueOf()):!1}function WT(r,s){var o=z(r)?r:Be(r);return this.isValid()&&o.isValid()?(s=kt(s)||"millisecond",s==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(s).valueOf()<o.valueOf()):!1}function $T(r,s,o,f){var h=z(r)?r:Be(r),S=z(s)?s:Be(s);return this.isValid()&&h.isValid()&&S.isValid()?(f=f||"()",(f[0]==="("?this.isAfter(h,o):!this.isBefore(h,o))&&(f[1]===")"?this.isBefore(S,o):!this.isAfter(S,o))):!1}function IT(r,s){var o=z(r)?r:Be(r),f;return this.isValid()&&o.isValid()?(s=kt(s)||"millisecond",s==="millisecond"?this.valueOf()===o.valueOf():(f=o.valueOf(),this.clone().startOf(s).valueOf()<=f&&f<=this.clone().endOf(s).valueOf())):!1}function PT(r,s){return this.isSame(r,s)||this.isAfter(r,s)}function e_(r,s){return this.isSame(r,s)||this.isBefore(r,s)}function t_(r,s,o){var f,h,S;if(!this.isValid())return NaN;if(f=df(r,this),!f.isValid())return NaN;switch(h=(f.utcOffset()-this.utcOffset())*6e4,s=kt(s),s){case"year":S=Lu(this,f)/12;break;case"month":S=Lu(this,f);break;case"quarter":S=Lu(this,f)/3;break;case"second":S=(this-f)/1e3;break;case"minute":S=(this-f)/6e4;break;case"hour":S=(this-f)/36e5;break;case"day":S=(this-f-h)/864e5;break;case"week":S=(this-f-h)/6048e5;break;default:S=this-f}return o?S:Ht(S)}function Lu(r,s){if(r.date()<s.date())return-Lu(s,r);var o=(s.year()-r.year())*12+(s.month()-r.month()),f=r.clone().add(o,"months"),h,S;return s-f<0?(h=r.clone().add(o-1,"months"),S=(s-f)/(f-h)):(h=r.clone().add(o+1,"months"),S=(s-f)/(h-f)),-(o+S)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function n_(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function a_(r){if(!this.isValid())return null;var s=r!==!0,o=s?this.clone().utc():this;return o.year()<0||o.year()>9999?Oe(o,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):be(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(o,"Z")):Oe(o,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function l_(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",s="",o,f,h,S;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),o="["+r+'("]',f=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",h="-MM-DD[T]HH:mm:ss.SSS",S=s+'[")]',this.format(o+f+h+S)}function i_(r){r||(r=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var s=Oe(this,r);return this.localeData().postformat(s)}function r_(r,s){return this.isValid()&&(z(r)&&r.isValid()||Be(r).isValid())?Un({to:this,from:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function s_(r){return this.from(Be(),r)}function u_(r,s){return this.isValid()&&(z(r)&&r.isValid()||Be(r).isValid())?Un({from:this,to:r}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function o_(r){return this.to(Be(),r)}function fp(r){var s;return r===void 0?this._locale._abbr:(s=ya(r),s!=null&&(this._locale=s),this)}var dp=q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function hp(){return this._locale}var Hu=1e3,Mi=60*Hu,Bu=60*Mi,mp=(365*400+97)*24*Bu;function Oi(r,s){return(r%s+s)%s}function pp(r,s,o){return r<100&&r>=0?new Date(r+400,s,o)-mp:new Date(r,s,o).valueOf()}function gp(r,s,o){return r<100&&r>=0?Date.UTC(r+400,s,o)-mp:Date.UTC(r,s,o)}function c_(r){var s,o;if(r=kt(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?gp:pp,r){case"year":s=o(this.year(),0,1);break;case"quarter":s=o(this.year(),this.month()-this.month()%3,1);break;case"month":s=o(this.year(),this.month(),1);break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=o(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=Oi(s+(this._isUTC?0:this.utcOffset()*Mi),Bu);break;case"minute":s=this._d.valueOf(),s-=Oi(s,Mi);break;case"second":s=this._d.valueOf(),s-=Oi(s,Hu);break}return this._d.setTime(s),t.updateOffset(this,!0),this}function f_(r){var s,o;if(r=kt(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?gp:pp,r){case"year":s=o(this.year()+1,0,1)-1;break;case"quarter":s=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=o(this.year(),this.month()+1,1)-1;break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=Bu-Oi(s+(this._isUTC?0:this.utcOffset()*Mi),Bu)-1;break;case"minute":s=this._d.valueOf(),s+=Mi-Oi(s,Mi)-1;break;case"second":s=this._d.valueOf(),s+=Hu-Oi(s,Hu)-1;break}return this._d.setTime(s),t.updateOffset(this,!0),this}function d_(){return this._d.valueOf()-(this._offset||0)*6e4}function h_(){return Math.floor(this.valueOf()/1e3)}function m_(){return new Date(this.valueOf())}function p_(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function g_(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function y_(){return this.isValid()?this.toISOString():null}function b_(){return R(this)}function v_(){return T({},E(this))}function S_(){return E(this).overflow}function T_(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),j("N",mf),j("NN",mf),j("NNN",mf),j("NNNN",N_),j("NNNNN",z_),he(["N","NN","NNN","NNNN","NNNNN"],function(r,s,o,f){var h=o._locale.erasParse(r,f,o._strict);h?E(o).era=h:E(o).invalidEra=r}),j("y",Jn),j("yy",Jn),j("yyy",Jn),j("yyyy",Jn),j("yo",C_),he(["y","yy","yyy","yyyy"],st),he(["yo"],function(r,s,o,f){var h;o._locale._eraYearOrdinalRegex&&(h=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?s[st]=o._locale.eraYearOrdinalParse(r,h):s[st]=parseInt(r,10)});function __(r,s){var o,f,h,S=this._eras||ya("en")._eras;for(o=0,f=S.length;o<f;++o)switch(typeof S[o].since==="string"&&(h=t(S[o].since).startOf("day"),S[o].since=h.valueOf()),typeof S[o].until){case"undefined":S[o].until=1/0;break;case"string":h=t(S[o].until).startOf("day").valueOf(),S[o].until=h.valueOf();break}return S}function k_(r,s,o){var f,h,S=this.eras(),A,V,te;for(r=r.toUpperCase(),f=0,h=S.length;f<h;++f)if(A=S[f].name.toUpperCase(),V=S[f].abbr.toUpperCase(),te=S[f].narrow.toUpperCase(),o)switch(s){case"N":case"NN":case"NNN":if(V===r)return S[f];break;case"NNNN":if(A===r)return S[f];break;case"NNNNN":if(te===r)return S[f];break}else if([A,V,te].indexOf(r)>=0)return S[f]}function x_(r,s){var o=r.since<=r.until?1:-1;return s===void 0?t(r.since).year():t(r.since).year()+(s-r.offset)*o}function E_(){var r,s,o,f=this.localeData().eras();for(r=0,s=f.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),f[r].since<=o&&o<=f[r].until||f[r].until<=o&&o<=f[r].since)return f[r].name;return""}function w_(){var r,s,o,f=this.localeData().eras();for(r=0,s=f.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),f[r].since<=o&&o<=f[r].until||f[r].until<=o&&o<=f[r].since)return f[r].narrow;return""}function A_(){var r,s,o,f=this.localeData().eras();for(r=0,s=f.length;r<s;++r)if(o=this.clone().startOf("day").valueOf(),f[r].since<=o&&o<=f[r].until||f[r].until<=o&&o<=f[r].since)return f[r].abbr;return""}function M_(){var r,s,o,f,h=this.localeData().eras();for(r=0,s=h.length;r<s;++r)if(o=h[r].since<=h[r].until?1:-1,f=this.clone().startOf("day").valueOf(),h[r].since<=f&&f<=h[r].until||h[r].until<=f&&f<=h[r].since)return(this.year()-t(h[r].since).year())*o+h[r].offset;return this.year()}function O_(r){return i(this,"_erasNameRegex")||pf.call(this),r?this._erasNameRegex:this._erasRegex}function D_(r){return i(this,"_erasAbbrRegex")||pf.call(this),r?this._erasAbbrRegex:this._erasRegex}function R_(r){return i(this,"_erasNarrowRegex")||pf.call(this),r?this._erasNarrowRegex:this._erasRegex}function mf(r,s){return s.erasAbbrRegex(r)}function N_(r,s){return s.erasNameRegex(r)}function z_(r,s){return s.erasNarrowRegex(r)}function C_(r,s){return s._eraYearOrdinalRegex||Jn}function pf(){var r=[],s=[],o=[],f=[],h,S,A,V,te,me=this.eras();for(h=0,S=me.length;h<S;++h)A=Rt(me[h].name),V=Rt(me[h].abbr),te=Rt(me[h].narrow),s.push(A),r.push(V),o.push(te),f.push(A),f.push(V),f.push(te);this._erasRegex=new RegExp("^("+f.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Q(0,["gg",2],0,function(){return this.weekYear()%100}),Q(0,["GG",2],0,function(){return this.isoWeekYear()%100});function qu(r,s){Q(0,[r,r.length],0,s)}qu("gggg","weekYear"),qu("ggggg","weekYear"),qu("GGGG","isoWeekYear"),qu("GGGGG","isoWeekYear"),j("G",Ul),j("g",Ul),j("GG",_e,xt),j("gg",_e,xt),j("GGGG",Ti,Si),j("gggg",Ti,Si),j("GGGGG",Cl,Qa),j("ggggg",Cl,Qa),Ll(["gggg","ggggg","GGGG","GGGGG"],function(r,s,o,f){s[f.substr(0,2)]=se(r)}),Ll(["gg","GG"],function(r,s,o,f){s[f]=t.parseTwoDigitYear(r)});function U_(r){return yp.call(this,r,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Y_(r){return yp.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function L_(){return ga(this.year(),1,4)}function H_(){return ga(this.isoWeekYear(),1,4)}function B_(){var r=this.localeData()._week;return ga(this.year(),r.dow,r.doy)}function q_(){var r=this.localeData()._week;return ga(this.weekYear(),r.dow,r.doy)}function yp(r,s,o,f,h){var S;return r==null?Fr(this,f,h).year:(S=ga(r,f,h),s>S&&(s=S),j_.call(this,r,s,o,f,h))}function j_(r,s,o,f,h){var S=Km(r,s,o,f,h),A=Xr(S.year,0,S.dayOfYear);return this.year(A.getUTCFullYear()),this.month(A.getUTCMonth()),this.date(A.getUTCDate()),this}Q("Q",0,"Qo","quarter"),j("Q",zl),he("Q",function(r,s){s[mn]=(se(r)-1)*3});function G_(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),j("D",_e,Wn),j("DD",_e,xt),j("Do",function(r,s){return r?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient}),he(["D","DD"],pn),he("Do",function(r,s){s[pn]=se(r.match(_e)[0])});var bp=pa("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),j("DDD",Xa),j("DDDD",Zr),he(["DDD","DDDD"],function(r,s,o){o._dayOfYear=se(r)});function V_(r){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"d")}Q("m",["mm",2],0,"minute"),j("m",_e,Yl),j("mm",_e,xt),he(["m","mm"],ut);var Z_=pa("Minutes",!1);Q("s",["ss",2],0,"second"),j("s",_e,Yl),j("ss",_e,xt),he(["s","ss"],gn);var Q_=pa("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),j("S",Xa,zl),j("SS",Xa,xt),j("SSS",Xa,Zr);var Wa,vp;for(Wa="SSSS";Wa.length<=9;Wa+="S")j(Wa,Jn);function X_(r,s){s[$n]=se(("0."+r)*1e3)}for(Wa="S";Wa.length<=9;Wa+="S")he(Wa,X_);vp=pa("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function F_(){return this._isUTC?"UTC":""}function K_(){return this._isUTC?"Coordinated Universal Time":""}var U=N.prototype;U.add=qT,U.calendar=FT,U.clone=KT,U.diff=t_,U.endOf=f_,U.format=i_,U.from=r_,U.fromNow=s_,U.to=u_,U.toNow=o_,U.get=Mu,U.invalidAt=S_,U.isAfter=JT,U.isBefore=WT,U.isBetween=$T,U.isSame=IT,U.isSameOrAfter=PT,U.isSameOrBefore=e_,U.isValid=b_,U.lang=dp,U.locale=fp,U.localeData=hp,U.max=bT,U.min=yT,U.parsingFlags=v_,U.set=Ou,U.startOf=c_,U.subtract=jT,U.toArray=p_,U.toObject=g_,U.toDate=m_,U.toISOString=a_,U.inspect=l_,typeof Symbol<"u"&&Symbol.for!=null&&(U[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),U.toJSON=y_,U.toString=n_,U.unix=h_,U.valueOf=d_,U.creationData=T_,U.eraName=E_,U.eraNarrow=w_,U.eraAbbr=A_,U.eraYear=M_,U.year=Hl,U.isLeapYear=Cn,U.weekYear=U_,U.isoWeekYear=Y_,U.quarter=U.quarters=G_,U.month=$e,U.daysInMonth=Du,U.week=U.weeks=_S,U.isoWeek=U.isoWeeks=kS,U.weeksInYear=B_,U.weeksInWeekYear=q_,U.isoWeeksInYear=L_,U.isoWeeksInISOWeekYear=H_,U.date=bp,U.day=U.days=YS,U.weekday=LS,U.isoWeekday=HS,U.dayOfYear=V_,U.hour=U.hours=QS,U.minute=U.minutes=Z_,U.second=U.seconds=Q_,U.millisecond=U.milliseconds=vp,U.utcOffset=AT,U.utc=OT,U.local=DT,U.parseZone=RT,U.hasAlignedHourOffset=NT,U.isDST=zT,U.isLocal=UT,U.isUtcOffset=YT,U.isUtc=rp,U.isUTC=rp,U.zoneAbbr=F_,U.zoneName=K_,U.dates=q("dates accessor is deprecated. Use date instead.",bp),U.months=q("months accessor is deprecated. Use month instead",$e),U.years=q("years accessor is deprecated. Use year instead",Hl),U.zone=q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",MT),U.isDSTShifted=q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",CT);function J_(r){return Be(r*1e3)}function W_(){return Be.apply(null,arguments).parseZone()}function Sp(r){return r}var Te=I.prototype;Te.calendar=Vn,Te.longDateFormat=Dt,Te.invalidDate=Xn,Te.ordinal=ku,Te.preparse=Sp,Te.postformat=Sp,Te.relativeTime=Fn,Te.pastFuture=Rl,Te.set=Ue,Te.eras=__,Te.erasParse=k_,Te.erasConvertYear=x_,Te.erasAbbrRegex=D_,Te.erasNameRegex=O_,Te.erasNarrowRegex=R_,Te.months=ze,Te.monthsShort=Bt,Te.monthsParse=Pt,Te.monthsRegex=gS,Te.monthsShortRegex=Ru,Te.week=bS,Te.firstDayOfYear=TS,Te.firstDayOfWeek=SS,Te.weekdays=RS,Te.weekdaysMin=zS,Te.weekdaysShort=NS,Te.weekdaysParse=US,Te.weekdaysRegex=BS,Te.weekdaysShortRegex=qS,Te.weekdaysMinRegex=jS,Te.isPM=VS,Te.meridiem=XS;function ju(r,s,o,f){var h=ya(),S=y().set(f,s);return h[o](S,r)}function Tp(r,s,o){if(d(r)&&(s=r,r=void 0),r=r||"",s!=null)return ju(r,s,o,"month");var f,h=[];for(f=0;f<12;f++)h[f]=ju(r,f,o,"month");return h}function gf(r,s,o,f){typeof r=="boolean"?(d(s)&&(o=s,s=void 0),s=s||""):(s=r,o=s,r=!1,d(s)&&(o=s,s=void 0),s=s||"");var h=ya(),S=r?h._week.dow:0,A,V=[];if(o!=null)return ju(s,(o+S)%7,f,"day");for(A=0;A<7;A++)V[A]=ju(s,(A+S)%7,f,"day");return V}function $_(r,s){return Tp(r,s,"months")}function I_(r,s){return Tp(r,s,"monthsShort")}function P_(r,s,o){return gf(r,s,o,"weekdays")}function ek(r,s,o){return gf(r,s,o,"weekdaysShort")}function tk(r,s,o){return gf(r,s,o,"weekdaysMin")}Ja("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var s=r%10,o=se(r%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return r+o}}),t.lang=q("moment.lang is deprecated. Use moment.locale instead.",Ja),t.langData=q("moment.langData is deprecated. Use moment.localeData instead.",ya);var ba=Math.abs;function nk(){var r=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),r.milliseconds=ba(r.milliseconds),r.seconds=ba(r.seconds),r.minutes=ba(r.minutes),r.hours=ba(r.hours),r.months=ba(r.months),r.years=ba(r.years),this}function _p(r,s,o,f){var h=Un(s,o);return r._milliseconds+=f*h._milliseconds,r._days+=f*h._days,r._months+=f*h._months,r._bubble()}function ak(r,s){return _p(this,r,s,1)}function lk(r,s){return _p(this,r,s,-1)}function kp(r){return r<0?Math.floor(r):Math.ceil(r)}function ik(){var r=this._milliseconds,s=this._days,o=this._months,f=this._data,h,S,A,V,te;return r>=0&&s>=0&&o>=0||r<=0&&s<=0&&o<=0||(r+=kp(yf(o)+s)*864e5,s=0,o=0),f.milliseconds=r%1e3,h=Ht(r/1e3),f.seconds=h%60,S=Ht(h/60),f.minutes=S%60,A=Ht(S/60),f.hours=A%24,s+=Ht(A/24),te=Ht(xp(s)),o+=te,s-=kp(yf(te)),V=Ht(o/12),o%=12,f.days=s,f.months=o,f.years=V,this}function xp(r){return r*4800/146097}function yf(r){return r*146097/4800}function rk(r){if(!this.isValid())return NaN;var s,o,f=this._milliseconds;if(r=kt(r),r==="month"||r==="quarter"||r==="year")switch(s=this._days+f/864e5,o=this._months+xp(s),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(s=this._days+Math.round(yf(this._months)),r){case"week":return s/7+f/6048e5;case"day":return s+f/864e5;case"hour":return s*24+f/36e5;case"minute":return s*1440+f/6e4;case"second":return s*86400+f/1e3;case"millisecond":return Math.floor(s*864e5)+f;default:throw new Error("Unknown unit "+r)}}function va(r){return function(){return this.as(r)}}var Ep=va("ms"),sk=va("s"),uk=va("m"),ok=va("h"),ck=va("d"),fk=va("w"),dk=va("M"),hk=va("Q"),mk=va("y"),pk=Ep;function gk(){return Un(this)}function yk(r){return r=kt(r),this.isValid()?this[r+"s"]():NaN}function ql(r){return function(){return this.isValid()?this._data[r]:NaN}}var bk=ql("milliseconds"),vk=ql("seconds"),Sk=ql("minutes"),Tk=ql("hours"),_k=ql("days"),kk=ql("months"),xk=ql("years");function Ek(){return Ht(this.days()/7)}var Sa=Math.round,Di={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wk(r,s,o,f,h){return h.relativeTime(s||1,!!o,r,f)}function Ak(r,s,o,f){var h=Un(r).abs(),S=Sa(h.as("s")),A=Sa(h.as("m")),V=Sa(h.as("h")),te=Sa(h.as("d")),me=Sa(h.as("M")),Nt=Sa(h.as("w")),Ta=Sa(h.as("y")),$a=S<=o.ss&&["s",S]||S<o.s&&["ss",S]||A<=1&&["m"]||A<o.m&&["mm",A]||V<=1&&["h"]||V<o.h&&["hh",V]||te<=1&&["d"]||te<o.d&&["dd",te];return o.w!=null&&($a=$a||Nt<=1&&["w"]||Nt<o.w&&["ww",Nt]),$a=$a||me<=1&&["M"]||me<o.M&&["MM",me]||Ta<=1&&["y"]||["yy",Ta],$a[2]=s,$a[3]=+r>0,$a[4]=f,wk.apply(null,$a)}function Mk(r){return r===void 0?Sa:typeof r=="function"?(Sa=r,!0):!1}function Ok(r,s){return Di[r]===void 0?!1:s===void 0?Di[r]:(Di[r]=s,r==="s"&&(Di.ss=s-1),!0)}function Dk(r,s){if(!this.isValid())return this.localeData().invalidDate();var o=!1,f=Di,h,S;return typeof r=="object"&&(s=r,r=!1),typeof r=="boolean"&&(o=r),typeof s=="object"&&(f=Object.assign({},Di,s),s.s!=null&&s.ss==null&&(f.ss=s.s-1)),h=this.localeData(),S=Ak(this,!o,f,h),o&&(S=h.pastFuture(+this,S)),h.postformat(S)}var bf=Math.abs;function Ri(r){return(r>0)-(r<0)||+r}function Gu(){if(!this.isValid())return this.localeData().invalidDate();var r=bf(this._milliseconds)/1e3,s=bf(this._days),o=bf(this._months),f,h,S,A,V=this.asSeconds(),te,me,Nt,Ta;return V?(f=Ht(r/60),h=Ht(f/60),r%=60,f%=60,S=Ht(o/12),o%=12,A=r?r.toFixed(3).replace(/\.?0+$/,""):"",te=V<0?"-":"",me=Ri(this._months)!==Ri(V)?"-":"",Nt=Ri(this._days)!==Ri(V)?"-":"",Ta=Ri(this._milliseconds)!==Ri(V)?"-":"",te+"P"+(S?me+S+"Y":"")+(o?me+o+"M":"")+(s?Nt+s+"D":"")+(h||f||r?"T":"")+(h?Ta+h+"H":"")+(f?Ta+f+"M":"")+(r?Ta+A+"S":"")):"P0D"}var ge=Uu.prototype;ge.isValid=kT,ge.abs=nk,ge.add=ak,ge.subtract=lk,ge.as=rk,ge.asMilliseconds=Ep,ge.asSeconds=sk,ge.asMinutes=uk,ge.asHours=ok,ge.asDays=ck,ge.asWeeks=fk,ge.asMonths=dk,ge.asQuarters=hk,ge.asYears=mk,ge.valueOf=pk,ge._bubble=ik,ge.clone=gk,ge.get=yk,ge.milliseconds=bk,ge.seconds=vk,ge.minutes=Sk,ge.hours=Tk,ge.days=_k,ge.weeks=Ek,ge.months=kk,ge.years=xk,ge.humanize=Dk,ge.toISOString=Gu,ge.toString=Gu,ge.toJSON=Gu,ge.locale=fp,ge.localeData=hp,ge.toIsoString=q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gu),ge.lang=dp,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),j("x",Ul),j("X",dn),he("X",function(r,s,o){o._d=new Date(parseFloat(r)*1e3)}),he("x",function(r,s,o){o._d=new Date(se(r))});return t.version="2.30.1",n(Be),t.fn=U,t.min=vT,t.max=ST,t.now=TT,t.utc=y,t.unix=J_,t.months=$_,t.isDate=m,t.locale=Ja,t.invalid=g,t.duration=Un,t.isMoment=z,t.weekdays=P_,t.parseZone=W_,t.localeData=ya,t.isDuration=Yu,t.monthsShort=I_,t.weekdaysMin=tk,t.defineLocale=lf,t.updateLocale=WS,t.locales=$S,t.weekdaysShort=ek,t.normalizeUnits=kt,t.relativeTimeRounding=Mk,t.relativeTimeThreshold=Ok,t.calendarFormat=XT,t.prototype=U,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}))});var d1=Yn(Bc=>{"use strict";var Iw=Symbol.for("react.transitional.element"),Pw=Symbol.for("react.fragment");function f1(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:Iw,type:e,key:a,ref:t!==void 0?t:null,props:n}}Bc.Fragment=Pw;Bc.jsx=f1;Bc.jsxs=f1});var et=Yn((eO,h1)=>{"use strict";h1.exports=d1()});var gi=ve(vv());var ia=class extends Error{constructor(){super(...arguments);F(this,"name","KyError")}get isKyError(){return!0}};var xr=class extends ia{constructor(n,a,l){var m;let i=n.status||n.status===0?n.status:"",u=(m=n.statusText)!=null?m:"",c="".concat(i," ").concat(u).trim(),d=c?"status code ".concat(c):"an unknown error";super("Request failed with ".concat(d,": ").concat(a.method," ").concat(a.url));F(this,"name","HTTPError");F(this,"response");F(this,"request");F(this,"options");F(this,"data");this.response=n,this.request=a,this.options=l}};var Er=class extends ia{constructor(n,a){super("Request failed due to a network error: ".concat(n.method," ").concat(n.url),a);F(this,"name","NetworkError");F(this,"request");this.request=n}};var wr=class extends Error{constructor(n){let a="Non-error value was thrown";try{typeof n=="string"?a=n:n&&typeof n=="object"&&"message"in n&&typeof n.message=="string"&&(a=n.message)}catch(l){}super(a);F(this,"name","NonError");F(this,"value");this.value=n}};var si=class extends ia{constructor(n){let a=n!=null&&n.cause?n.cause instanceof Error?n.cause:new wr(n.cause):void 0;super(n!=null&&n.code?"Forced retry: ".concat(n.code):"Forced retry",a?{cause:a}:void 0);F(this,"name","ForceRetryError");F(this,"customDelay");F(this,"code");F(this,"customRequest");this.customDelay=n==null?void 0:n.delay,this.code=n==null?void 0:n.code,this.customRequest=n==null?void 0:n.request}};var Tc=class extends Error{constructor(n){super("Response schema validation failed");F(this,"name","SchemaValidationError");F(this,"issues");this.issues=n}};var On=class extends ia{constructor(n){super("Request timed out: ".concat(n.method," ").concat(n.url));F(this,"name","TimeoutError");F(this,"request");this.request=n}};var om=(()=>{let e=!1,t=!1,n=typeof globalThis.ReadableStream=="function",a=typeof globalThis.Request=="function";if(n&&a)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(l){if(l instanceof Error&&l.message==="unsupported BodyInit type")return!1;throw l}return e&&!t})(),Sv=typeof globalThis.AbortController=="function",_c=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",Tv=typeof globalThis.ReadableStream=="function",_v=typeof globalThis.FormData=="function",kc=["get","post","put","patch","head","delete"],Ow=()=>{};Ow();var kv={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Ar=2147483647,xv=40,xc=Symbol("stop"),Is=class{constructor(t){F(this,"options");this.options=t}},Ev=e=>new Is(e),wv={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},Av={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var Ec=new TextEncoder,Dw=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[n,a]of e)t+=xv,t+=Ec.encode('Content-Disposition: form-data; name="'.concat(n,'"')).byteLength,t+=typeof a=="string"?Ec.encode(a).byteLength:a.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:typeof e=="string"?Ec.encode(e).byteLength:e instanceof URLSearchParams?Ec.encode(e.toString()).byteLength:0},Mv=(e,t,n)=>{let a,l=0;return e.pipeThrough(new TransformStream({transform(i,u){if(u.enqueue(i),a){l+=a.byteLength;let c=t===0?0:l/t;c>=1&&(c=1-Number.EPSILON),n==null||n({percent:c,totalBytes:Math.max(t,l),transferredBytes:l},a)}a=i},flush(){a&&(l+=a.byteLength,n==null||n({percent:1,totalBytes:Math.max(t,l),transferredBytes:l},a))}}))},Ov=(e,t)=>{if(!e.body)return e;let n={status:e.status,statusText:e.statusText,headers:e.headers};if(e.status===204)return new Response(null,n);let a=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(Mv(e.body,a,t),n)},Dv=(e,t,n)=>{if(!e.body)return e;let a=Dw(n!=null?n:e.body);return new Request(e,{duplex:"half",body:Mv(e.body,a,t)})};var ra=e=>e!==null&&typeof e=="object";var Rw=Symbol("replaceOption"),cm=e=>ra(e)&&e[Rw]===!0?{isReplace:!0,value:e.value}:{isReplace:!1,value:e};var eu=(...e)=>{for(let t of e)if((!ra(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return hm({},...e)},dm=(e={},t={})=>{let n=new globalThis.Headers(e),a=t instanceof globalThis.Headers,l=new globalThis.Headers(t);for(let[i,u]of l.entries())a&&u==="undefined"||u===void 0?n.delete(i):n.set(i,u);return n},fm=e=>{if(!ra(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Mr=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),n=e[wl];return n&&(t[wl]=new Set(n)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:fm(e)?B({},e):e},Nw=e=>Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0)),zw=(e,t)=>fm(e)&&fm(t)?Nw(B(B({},e),t)):dm(e,t);function Ps(e,t,n){var a,l;return Object.hasOwn(t,n)&&t[n]===void 0?[]:hm((a=e[n])!=null?a:[],(l=t[n])!=null?l:[])}var wc=(e={},t={})=>({init:Ps(e,t,"init"),beforeRequest:Ps(e,t,"beforeRequest"),beforeRetry:Ps(e,t,"beforeRetry"),beforeError:Ps(e,t,"beforeError"),afterResponse:Ps(e,t,"afterResponse")}),wl=Symbol("deletedParameters"),Cw=(e,t)=>{let n=new URLSearchParams,a=new Set;for(let l of[e,t])if(l!==void 0)if(l instanceof URLSearchParams){for(let[u,c]of l.entries())n.append(u,c),a.delete(u);let i=l[wl];if(i)for(let u of i)n.delete(u),a.add(u)}else if(Array.isArray(l))for(let i of l){if(!Array.isArray(i)||i.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");n.append(String(i[0]),String(i[1])),a.delete(String(i[0]))}else if(ra(l))for(let[i,u]of Object.entries(l))u===void 0?(n.delete(i),a.add(i)):(n.append(i,String(u)),a.delete(i));else{let i=new URLSearchParams(l);for(let[u,c]of i.entries())n.append(u,c),a.delete(u)}return a.size>0&&(n[wl]=a),n},hm=(...e)=>{let t={},n={},a={},l,i=[];for(let u of e)if(Array.isArray(u))Array.isArray(t)||(t=[]),t=[...t,...u];else if(ra(u)){for(let[c,d]of Object.entries(u)){if(c==="signal"&&d instanceof globalThis.AbortSignal){i.push(d);continue}let m=cm(d),{isReplace:p}=m;if(d=m.value,c==="context"){if(d!=null&&(!ra(d)||Array.isArray(d)))throw new TypeError("The `context` option must be an object");t=$(B({},t),{context:d==null?{}:B(p?{}:B({},t.context),d)});continue}if(c==="searchParams"){d==null?l=void 0:p?l=d:l=l===void 0?d:Cw(l,d);continue}ra(d)&&!p&&c in t&&(d=hm(t[c],d)),t=$(B({},t),{[c]:d})}if(ra(u.hooks)){let{value:c,isReplace:d}=cm(u.hooks);a=wc(d?{}:a,c),t.hooks=a}if(ra(u.headers)){let{value:c,isReplace:d}=cm(u.headers);n=d?Mr(c):zw(n,c),t.headers=n}}return l!==void 0&&(t.searchParams=l),i.length>0&&(i.length===1?t.signal=i[0]:_c?t.signal=AbortSignal.any(i):t.signal=i.at(-1)),t};var Nv=e=>kc.includes(e)?e.toUpperCase():e,Uw=["get","put","head","delete","options","trace"],Yw=[408,413,429,500,502,503,504],Lw=[413,429,503],Rv={limit:2,methods:Uw,statusCodes:Yw,afterStatusCodes:Lw,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},zv=(e={})=>{var n;if(typeof e=="number")return $(B({},Rv),{limit:e});if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries($(B({},e),{methods:(n=e.methods)==null?void 0:n.map(a=>a.toLowerCase())})).filter(([,a])=>a!==void 0));return B(B({},Rv),t)};async function mm(e,t,n,a){return new Promise((l,i)=>{let u=setTimeout(()=>{n&&n.abort(),i(new On(e))},a.timeout);a.fetch(e,t).then(l).catch(i).then(()=>{clearTimeout(u)})})}async function Ac(e,{signal:t}){return new Promise((n,a)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",l,{once:!0}));function l(){clearTimeout(i),a(t.reason)}let i=setTimeout(()=>{t==null||t.removeEventListener("abort",l),n()},e)})}var Cv=e=>{let t={};for(let n in e)Object.hasOwn(e,n)&&!(n in Av)&&!(n in wv)&&(t[n]=e[n]);return t},Uv=e=>{var t;return e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!((t=e[wl])!=null&&t.size):typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e};var Hw=Object.prototype.toString,Bw=e=>Hw.call(e)==="[object Error]",qw=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function pm(e){if(!(e&&Bw(e)&&e.name==="TypeError"&&typeof e.message=="string"))return!1;let{message:n,stack:a}=e;return n==="Load failed"?a===void 0||"__sentry_captured__"in e:n.startsWith("error sending request for url")||n==="Failed to fetch"||n.startsWith("Failed to fetch (")&&n.endsWith(")")?!0:qw.has(n)}var gm=(e,t)=>e instanceof t||(e==null?void 0:e.name)===t.name;function Yv(e){return gm(e,xr)}function Lv(e){return gm(e,Er)}function Hv(e){return gm(e,On)}var jw=10*1024*1024,Gw="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",tu=Symbol("timedOutResponseData"),Vw=e=>{var a;let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),n=(a=t==null?void 0:t[1])!=null?a:t==null?void 0:t[2];if(n)try{return new TextDecoder(n)}catch(l){}return new TextDecoder},Bv="The `schema` argument must follow the Standard Schema specification",Zw=e=>typeof e!="object"?e:B(B(B(B({},e),e.methods&&{methods:[...e.methods]}),e.statusCodes&&{statusCodes:[...e.statusCodes]}),e.afterStatusCodes&&{afterStatusCodes:[...e.afterStatusCodes]}),Gv=Object.prototype.toString,qv=e=>e instanceof globalThis.Request||Gv.call(e)==="[object Request]",nu=e=>e instanceof globalThis.Response||Gv.call(e)==="[object Response]",Qw=e=>Array.isArray(e)?e.map(t=>[...t]):Mr(e);function Xw(e){let t=$(B({},e),{json:Mr(e.json),context:Mr(e.context),headers:Mr(e.headers),searchParams:Qw(e.searchParams)});return e.retry!==void 0&&(t.retry=Zw(e.retry)),t}var jv=async(e,t)=>{if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(Bv);let n=t["~standard"];if(typeof n!="object"||n===null||typeof n.validate!="function")throw new TypeError(Bv);let a=await n.validate(e);if(a.issues)throw new Tc(a.issues);return a.value},Cc,Vv,Ga,qn,mt,L,su,oi,uu,ci,Rr,fi,ou,C,ui,Zv,ym,Qv,bm,Xv,Fv,Kv,Mc,Al,vm,au,Jv,Wv,Sm,Oc,Dc,Rc,lu,Tm,Or,Nc,Dr,zc,$v,iu=class iu{constructor(t,n={}){qt(this,C);F(this,"request");qt(this,Ga);qt(this,qn,0);qt(this,mt);qt(this,L);qt(this,su);qt(this,oi);qt(this,uu,new WeakSet);qt(this,ci);qt(this,Rr);qt(this,fi,!1);qt(this,ou,new WeakMap);var l,i,u,c,d,m,p,T,y,_,E,w,R,g;if(Et(this,mt,t),Object.hasOwn(n,"prefixUrl"))throw new Error(Gw);if(Et(this,L,$(B({},n),{headers:dm(O(this,mt).headers,n.headers),hooks:wc({},n.hooks),method:Nv((i=(l=n.method)!=null?l:O(this,mt).method)!=null?i:"GET"),prefix:String(n.prefix||""),retry:zv(n.retry),throwHttpErrors:(u=n.throwHttpErrors)!=null?u:!0,timeout:(c=n.timeout)!=null?c:1e4,totalTimeout:(d=n.totalTimeout)!=null?d:!1,fetch:(m=n.fetch)!=null?m:globalThis.fetch.bind(globalThis),context:(p=n.context)!=null?p:{}})),typeof O(this,mt)!="string"&&!(O(this,mt)instanceof URL||O(this,mt)instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(typeof O(this,mt)=="string"){if(O(this,L).prefix){let b=O(this,L).prefix.replace(/\/+$/,""),k=O(this,mt).replace(/^\/+/,"");Et(this,mt,"".concat(b,"/").concat(k))}if(O(this,L).baseUrl){let b;try{b=new URL(O(this,mt))}catch(k){}b||Et(this,mt,new URL(O(this,mt),new Request(O(this,L).baseUrl).url))}}Sv&&_c&&(Et(this,oi,(T=O(this,L).signal)!=null?T:O(this,mt).signal),Et(this,Ga,new globalThis.AbortController),O(this,L).signal=G(this,C,vm).call(this)),om&&(O(this,L).duplex="half"),O(this,L).json!==void 0&&(O(this,L).body=(E=(_=(y=O(this,L)).stringifyJson)==null?void 0:_.call(y,O(this,L).json))!=null?E:JSON.stringify(O(this,L).json),O(this,L).headers.set("content-type",(w=O(this,L).headers.get("content-type"))!=null?w:"application/json"));let a=n.headers&&new globalThis.Headers(n.headers).has("content-type");if(O(this,mt)instanceof globalThis.Request&&(_v&&O(this,L).body instanceof globalThis.FormData||O(this,L).body instanceof URLSearchParams)&&!a&&O(this,L).headers.delete("content-type"),this.request=new globalThis.Request(O(this,mt),O(this,L)),Uv(O(this,L).searchParams)){let b=new URL(this.request.url),k=(R=O(this,L).searchParams)==null?void 0:R[wl];if(k)for(let x of k)b.searchParams.delete(x);if(typeof O(this,L).searchParams=="string"){let x=O(this,L).searchParams.replace(/^\?/,"");x!==""&&(b.search=b.search?"".concat(b.search,"&").concat(x):"?".concat(x))}else{let x=new URLSearchParams(G(g=iu,Cc,Vv).call(g,O(this,L).searchParams));for(let[N,z]of x.entries())b.searchParams.append(N,z)}if(O(this,L).searchParams&&typeof O(this,L).searchParams=="object"&&!Array.isArray(O(this,L).searchParams)&&!(O(this,L).searchParams instanceof URLSearchParams))for(let[x,N]of Object.entries(O(this,L).searchParams))N===void 0&&b.searchParams.delete(x);this.request=new globalThis.Request(b,O(this,L))}if(O(this,L).onUploadProgress&&typeof O(this,L).onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");Et(this,Rr,typeof O(this,L).totalTimeout=="number"?G(this,C,Tm).call(this):void 0)}static create(t,n){var d,m,p,T;let a=(m=(d=n.hooks)==null?void 0:d.init)!=null?m:[],l=a.length>0?Xw(n):n;for(let y of a)y(l);let i=new iu(t,l),u=async()=>{var w,R,g,b,k,x,N,z,Y,q,K,J,be;if(typeof O(i,L).timeout=="number"&&O(i,L).timeout>Ar)throw new RangeError("The `timeout` option cannot be greater than ".concat(Ar));if(typeof O(i,L).totalTimeout=="number"&&O(i,L).totalTimeout>Ar)throw new RangeError("The `totalTimeout` option cannot be greater than ".concat(Ar));await Promise.resolve();let y=await G(w=i,C,Jv).call(w),_=y!=null?y:await G(R=i,C,Sm).call(R,async()=>{var Ue;return G(Ue=i,C,Rc).call(Ue)}),E=y!==void 0||G(g=i,C,Dc).call(g);for(;;){if(_===void 0)return _;if(nu(_))try{_=await G(b=i,C,Wv).call(b,_)}catch(We){if(!(We instanceof si))throw We;let I=await G(k=i,C,Oc).call(k,We,async()=>{var oe;return G(oe=i,C,Rc).call(oe)});if(I===void 0)return I;_=I,E=G(x=i,C,Dc).call(x);continue}let Ue=_;if(!Ue.ok&&Ue.type!=="opaque"&&(typeof O(i,L).throwHttpErrors=="function"?O(i,L).throwHttpErrors(Ue.status):O(i,L).throwHttpErrors)){let We=new xr(Ue,G(N=i,C,Dr).call(N,Ue),G(z=i,C,Or).call(z)),I=We;if(We.data=await G(Y=i,C,Qv).call(Y,Ue),E)throw I;let oe=await G(q=i,C,Oc).call(q,We,async()=>{var _t;return G(_t=i,C,Rc).call(_t)});if(oe===void 0)return oe;_=oe,E=G(K=i,C,Dc).call(K);continue}break}if(!nu(_))return _;if(G(J=i,C,ym).call(J,_),O(i,L).onDownloadProgress){if(typeof O(i,L).onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!Tv)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let Ue=_.clone();return G(be=i,C,Al).call(be,_),Ov(Ue,O(i,L).onDownloadProgress)}return _},c=(async()=>{var y,_,E,w,R;try{return await u()}catch(g){if(!(g instanceof Error)||O(i,uu).has(g))throw g;let b=g;for(let k of O(i,L).hooks.beforeError){let x=await k({request:i.request,options:G(y=i,C,Or).call(y),error:b,retryCount:O(i,qn)});x instanceof Error&&(b=x)}throw b}finally{let g=O(i,su);G(E=i,C,Mc).call(E,(_=g==null?void 0:g.body)!=null?_:void 0),i.request!==g&&G(R=i,C,Mc).call(R,(w=i.request.body)!=null?w:void 0)}})();for(let[y,_]of Object.entries(kv))y==="bytes"&&typeof((T=(p=globalThis.Response)==null?void 0:p.prototype)==null?void 0:T.bytes)!="function"||(c[y]=async E=>{var b;i.request.headers.set("accept",i.request.headers.get("accept")||_);let w=await c;if(y!=="json")return w[y]();let R=await w.text();if(R==="")return E!==void 0?jv(void 0,E):JSON.parse(R);let g=l.parseJson?await l.parseJson(R,{request:G(b=i,C,Dr).call(b,w),response:w}):JSON.parse(R);return E===void 0?g:jv(g,E)});return c}};Cc=new WeakSet,Vv=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,n])=>n!==void 0)):t},Ga=new WeakMap,qn=new WeakMap,mt=new WeakMap,L=new WeakMap,su=new WeakMap,oi=new WeakMap,uu=new WeakMap,ci=new WeakMap,Rr=new WeakMap,fi=new WeakMap,ou=new WeakMap,C=new WeakSet,ui=function(){let t=O(this,L).retry.delay(O(this,qn)+1),n=t;return O(this,L).retry.jitter===!0?n=Math.random()*t:typeof O(this,L).retry.jitter=="function"&&(n=O(this,L).retry.jitter(t),(!Number.isFinite(n)||n<0)&&(n=t)),Math.min(O(this,L).retry.backoffLimit,n)},Zv=async function(t){var a,l,i,u,c;if(O(this,qn)>=O(this,L).retry.limit)throw t;let n=t instanceof Error?t:new wr(t);if(n instanceof si)return(a=n.customDelay)!=null?a:G(this,C,ui).call(this);if(!O(this,L).retry.methods.includes(this.request.method.toLowerCase()))throw t;if(O(this,L).retry.shouldRetry!==void 0){let d=await O(this,L).retry.shouldRetry({error:n,retryCount:O(this,qn)+1});if(d===!1)throw t;if(d===!0)return G(this,C,ui).call(this)}if(Hv(t)){if(!O(this,L).retry.retryOnTimeout)throw t;return G(this,C,ui).call(this)}if(Yv(t)){if(!O(this,L).retry.statusCodes.includes(t.response.status))throw t;let d=(c=(u=(i=(l=t.response.headers.get("Retry-After"))!=null?l:t.response.headers.get("RateLimit-Reset"))!=null?i:t.response.headers.get("X-RateLimit-Retry-After"))!=null?u:t.response.headers.get("X-RateLimit-Reset"))!=null?c:t.response.headers.get("X-Rate-Limit-Reset");if(d&&O(this,L).retry.afterStatusCodes.includes(t.response.status)){let m=Number(d)*1e3;return Number.isNaN(m)?m=Date.parse(d)-Date.now():m>=Date.parse("2024-01-01")&&(m-=Date.now()),Number.isFinite(m)?(m=Math.max(0,m),Math.min(O(this,L).retry.maxRetryAfter,m)):Math.min(O(this,L).retry.maxRetryAfter,G(this,C,ui).call(this))}if(t.response.status===413)throw t;return G(this,C,ui).call(this)}if(!Lv(t))throw t;return G(this,C,ui).call(this)},ym=function(t){let n=G(this,C,Dr).call(this,t);return O(this,L).parseJson&&(t.json=async()=>{let a=await t.text();return a===""?JSON.parse(a):O(this,L).parseJson(a,{request:n,response:t})}),t},Qv=async function(t){var l;let n=await G(this,C,Fv).call(this,t,G(this,C,bm).call(this));if(n===tu){G(this,C,au).call(this);return}if(!n)return;if(!G(this,C,Xv).call(this,(l=t.headers.get("content-type"))!=null?l:""))return n;let a=await G(this,C,Kv).call(this,n,t,G(this,C,bm).call(this),G(this,C,Dr).call(this,t));if(a===tu){G(this,C,au).call(this);return}return a},bm=function(){let t=O(this,L).timeout===!1?1e4:O(this,L).timeout,n=G(this,C,lu).call(this);if(n===void 0)return t;if(n<=0)throw new On(this.request);return Math.min(t,n)},Xv=function(t){var a;let n=((a=t.split(";",1)[0])!=null?a:"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(n)},Fv=async function(t,n){var T;let{body:a}=t;if(!a)try{return await t.text()}catch(y){return}let l;try{l=a.getReader()}catch(y){return}let i=Vw((T=t.headers.get("content-type"))!=null?T:""),u=[],c=0,d=(async()=>{try{for(;;){let{done:y,value:_}=await l.read();if(y)break;if(c+=_.byteLength,c>jw){l.cancel().catch(()=>{});return}u.push(i.decode(_,{stream:!0}))}}catch(y){return}return u.push(i.decode()),u.join("")})(),m=new Promise(y=>{let _=setTimeout(()=>{y(tu)},n);d.finally(()=>{clearTimeout(_)})}),p=await Promise.race([d,m]);return p===tu&&l.cancel().catch(()=>{}),p},Kv=async function(t,n,a,l){let i;try{return await Promise.race([Promise.resolve().then(()=>O(this,L).parseJson?O(this,L).parseJson(t,{request:l,response:n}):JSON.parse(t)),new Promise(u=>{i=setTimeout(()=>{u(tu)},a)})])}catch(u){return}finally{clearTimeout(i)}},Mc=function(t){t&&t.cancel().catch(()=>{})},Al=function(t){var n;G(this,C,Mc).call(this,(n=t.body)!=null?n:void 0)},vm=function(){return O(this,oi)?AbortSignal.any([O(this,oi),O(this,Ga).signal]):O(this,Ga).signal},au=function(){let t=G(this,C,lu).call(this);if(t!==void 0&&t<=0)throw new On(this.request)},Jv=async function(){for(let t of O(this,L).hooks.beforeRequest){let n=await t({request:this.request,options:G(this,C,Or).call(this),retryCount:0});if(qv(n))G(this,C,Nc).call(this,n);else if(nu(n))return n}},Wv=async function(t){let n=G(this,C,Dr).call(this,t);for(let a of O(this,L).hooks.afterResponse){let l=G(this,C,zc).call(this,t.clone(),n);G(this,C,ym).call(this,l);let i;try{i=await a({request:this.request,options:G(this,C,Or).call(this),response:l,retryCount:O(this,qn)})}catch(c){throw l!==t&&G(this,C,Al).call(this,l),G(this,C,Al).call(this,t),c}if(i instanceof Is)throw l!==t&&G(this,C,Al).call(this,l),G(this,C,Al).call(this,t),new si(i.options);let u=nu(i)?G(this,C,zc).call(this,i,n):t;l!==t&&l!==u&&l.body!==u.body&&G(this,C,Al).call(this,l),t!==u&&t.body!==u.body&&G(this,C,Al).call(this,t),t=u}return t},Sm=async function(t){try{return await t()}catch(n){return G(this,C,Oc).call(this,n,t)}},Oc=async function(t,n){Et(this,fi,!1);let a=Math.min(await G(this,C,Zv).call(this,t),Ar),l={signal:O(this,oi)},i=G(this,C,lu).call(this);if(i!==void 0){if(i<=0)throw new On(this.request);if(a>=i)throw await Ac(i,l),new On(this.request)}if(await Ac(a,l),G(this,C,au).call(this),t instanceof si&&t.customRequest){let u=new globalThis.Request(t.customRequest,O(this,L).signal?{signal:O(this,L).signal}:void 0);G(this,C,Nc).call(this,u)}for(let u of O(this,L).hooks.beforeRetry){let c;try{c=await u({request:this.request,options:G(this,C,Or).call(this),error:t,retryCount:O(this,qn)+1})}catch(d){throw d instanceof Error&&d!==t&&O(this,uu).add(d),d}if(qv(c)){G(this,C,Nc).call(this,c);break}if(nu(c))return Et(this,fi,!0),kf(this,qn)._++,c;if(c===xc)return}return G(this,C,au).call(this),kf(this,qn)._++,G(this,C,Sm).call(this,n)},Dc=function(){let t=O(this,fi);return Et(this,fi,!1),t},Rc=async function(){var l,i;(l=O(this,Ga))!=null&&l.signal.aborted&&(Et(this,Ga,new globalThis.AbortController),O(this,L).signal=G(this,C,vm).call(this),this.request=new globalThis.Request(this.request,{signal:O(this,L).signal}));let t=Cv(O(this,L)),n=O(this,L).retry.limit>0?this.request.clone():void 0,a=G(this,C,$v).call(this,this.request,(i=O(this,L).body)!=null?i:void 0);Et(this,su,a),n&&(this.request=n);try{let u=G(this,C,lu).call(this);if(u!==void 0&&u<=0)throw new On(this.request);let c=O(this,L).timeout===!1?u:u===void 0?O(this,L).timeout:Math.min(O(this,L).timeout,u),d=c===void 0?await O(this,L).fetch(a,t):await mm(a,t,O(this,Ga),{timeout:c,fetch:O(this,L).fetch});return G(this,C,zc).call(this,d,a)}catch(u){throw pm(u)?new Er(this.request,{cause:u}):u}},lu=function(){if(O(this,Rr)===void 0)return;let t=G(this,C,Tm).call(this)-O(this,Rr);return Math.max(0,O(this,L).totalTimeout-t)},Tm=function(){var t,n;return(n=(t=globalThis.performance)==null?void 0:t.now())!=null?n:Date.now()},Or=function(){if(!O(this,ci)){let t=O(this,L),{hooks:n,json:a,parseJson:l,stringifyJson:i,searchParams:u,timeout:c,totalTimeout:d,throwHttpErrors:m,fetch:p}=t,T=Op(t,["hooks","json","parseJson","stringifyJson","searchParams","timeout","totalTimeout","throwHttpErrors","fetch"]);Et(this,ci,Object.freeze(T))}return O(this,ci)},Nc=function(t){Et(this,ci,void 0),this.request=t},Dr=function(t){var n;return(n=O(this,ou).get(t))!=null?n:this.request},zc=function(t,n){return O(this,ou).set(t,n),t},$v=function(t,n){var a;return!O(this,L).onUploadProgress||!t.body||!om?t:Dv(t,O(this,L).onUploadProgress,(a=n!=null?n:O(this,L).body)!=null?a:void 0)},qt(iu,Cc);var ru=iu;var _m=e=>{let t=(n,a)=>ru.create(n,eu(e,a));for(let n of kc)t[n]=(a,l)=>ru.create(a,eu(e,l,{method:n}));return t.create=n=>_m(eu(n)),t.extend=n=>(typeof n=="function"&&(n=n(e!=null?e:{})),_m(eu(e,n))),t.stop=xc,t.retry=Ev,t},Fw=_m(),Iv=Fw;var xm=ve(Pv());function Jt(){return globalThis.app}function Kw(e){let t=(0,xm.default)(e,xm.default.ISO_8601),n=t.fromNow(),a="".concat(t.format("MMMM D YYYY, h:mm a")," (").concat(t.format(),") ");return[n,a]}function zr(e){try{return Kw(e)}catch(t){return null}}function Cr(e){e.close()}function Uc(e){var t;(t=document.getElementById(e))==null||t.focus()}function e1(e){return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}function Jw(e){let t=Jt(),n=new Headers(e);return n.set(t.csrfHeaderName,t.csrfToken),n}function Ww(e){return"".concat(Jt().homeR).concat(e)}function $w(e){try{let t=new URL(e,window.location.origin),n="".concat(t.pathname).concat(t.search).concat(t.hash);return n.startsWith("/")?n.slice(1):n}catch(t){return e.replace(/^\/+/,"")}}async function fn(e,t,n={}){var l;return await Iv(Ww(t),{method:e,headers:Jw(n.headers),body:(l=n.body)!=null?l:void 0,throwHttpErrors:!1})}async function t1(e,t){await fn("POST","bm/".concat(e.toString(),"/").concat(t),{headers:{"content-type":"application/x-www-form-urlencoded"}})}async function Yc(e){await fn("DELETE","bm/".concat(e.toString()),{headers:{"content-type":"application/x-www-form-urlencoded"}})}async function n1(e){await fn("POST","bm/".concat(e.toString(),"/read"),{headers:{"content-type":"application/x-www-form-urlencoded"}})}async function a1(e){await fn("POST","bm/".concat(e.toString(),"/archive"),{headers:{"content-type":"application/x-www-form-urlencoded"}})}async function Lc(e){let t=await fn("POST","api/add",{headers:{"content-type":"application/json"},body:JSON.stringify(e)});return{ok:t.ok,status:t.status,bodyText:await t.text()}}async function l1(e){let t=await fn("POST","api/note/add",{headers:{"content-type":"application/json"},body:JSON.stringify(e)});return{ok:t.ok,status:t.status,bodyText:await t.text()}}async function Hc(e){let t=await fn("POST","api/lookuptitle",{headers:{"content-type":"application/json"},body:JSON.stringify(e)});return t.status===200?await t.text():null}async function i1(e){let t=await fn("POST","api/tagcloud",{headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(!t.ok)return null;try{return await t.json()}catch(n){return null}}async function r1(e){await fn("POST","api/tagcloudmode",{headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async function s1(e){let t=await fn("POST","api/tagSuggestions",{headers:{"content-type":"application/json"},body:JSON.stringify(e)});if(!t.ok)return null;try{return await t.json()}catch(n){return null}}async function u1(e){await fn("DELETE","api/note/".concat(e.toString()),{headers:{"content-type":"application/x-www-form-urlencoded"}})}async function o1(e){await fn("POST","api/accountSettings",{headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async function c1(){let e=Jt();await fn("POST",$w(e.authRlogoutR)),window.location.reload()}var m1=ve(jt());var At=ve(et());function p1({initial:e}){let[t,n]=m1.default.useState(e),a=!t.archiveBackendEnabled,l=a?"Archiving Disabled":void 0;async function i(u){n(u),await o1(u)}return(0,At.jsxs)("div",{className:"settings-form",children:[(0,At.jsx)("div",{className:"fw7 mb2",children:"Account Settings"}),(0,At.jsxs)("div",{className:"flex items-center mb2".concat(a?" o-50":""),title:l,children:[(0,At.jsx)("input",{type:"checkbox",className:"mr2".concat(a?"":" pointer"),id:"archiveDefault",name:"archiveDefault",checked:t.archiveDefault,disabled:a,title:l,onChange:u=>{i($(B({},t),{archiveDefault:u.target.checked}))}}),(0,At.jsx)("label",{htmlFor:"archiveDefault",className:"lh-copy".concat(a?" thm-text-tertiary":""),title:l,children:"Archive new non-Private bookmarks by default"})]}),(0,At.jsxs)("div",{className:"flex items-center mb2",children:[(0,At.jsx)("input",{type:"checkbox",className:"pointer mr2",id:"privateDefault",name:"privateDefault",checked:t.privateDefault,onChange:u=>{i($(B({},t),{privateDefault:u.target.checked}))}}),(0,At.jsx)("label",{htmlFor:"privateDefault",className:"lh-copy",children:"Default new bookmarks to Private"})]}),(0,At.jsxs)("div",{className:"flex items-center mb2",children:[(0,At.jsx)("input",{type:"checkbox",className:"pointer mr2",id:"suggestTags",name:"suggestTags",checked:t.suggestTags,onChange:u=>{i($(B({},t),{suggestTags:u.target.checked}))}}),(0,At.jsx)("label",{htmlFor:"suggestTags",className:"lh-copy",children:"Enable tag suggestions"})]}),(0,At.jsxs)("div",{className:"flex items-center mb2",children:[(0,At.jsx)("input",{type:"checkbox",className:"pointer mr2",id:"privacyLock",name:"privacyLock",checked:t.privacyLock,onChange:u=>{i($(B({},t),{privacyLock:u.target.checked}))}}),(0,At.jsx)("label",{htmlFor:"privacyLock",className:"lh-copy",children:"Privacy Lock (Private Account)"})]})]})}var di=ve(jt());var Wt=ve(jt());var eA=180;function qc({enabled:e,tags:t,onTagsUpdate:n,maxSuggestions:a=10}){let[l,i]=Wt.default.useState(null),u=Wt.default.useRef(0),c=Wt.default.useRef(null),d=Wt.default.useRef(null),m=Wt.default.useCallback(()=>{c.current!=null&&(window.clearTimeout(c.current),c.current=null),u.current+=1},[]),p=Wt.default.useCallback(()=>{m(),i(null)},[m]);Wt.default.useEffect(()=>()=>{m()},[m]),Wt.default.useEffect(()=>{e||p()},[e,p]);let T=Wt.default.useCallback(R=>{let{value:g,selectionStart:b,selectionEnd:k}=R.target;if(n(g),!e){p();return}if(b==null||k==null||b!==k){p();return}if(aA(t,g)){p();return}let x=g1(g,b);if(x==null||x.token.length<2){p();return}let N=lA(g),z=x.token.toLowerCase(),q=N.filter(J=>J===z).length>1,K={query:x.token,currentTags:Array.from(new Set(N.filter(J=>q||J!==z)))};m(),c.current=window.setTimeout(()=>{let J=u.current+1;u.current=J,(async()=>{let be=await s1(K);if(J!==u.current||be==null||d.current==null)return;let Ue=be.suggestions.slice(0,a);if(Ue.length===0){p();return}let We=tA(d.current,b);i({items:Ue,selectedIndex:0,tokenRange:x,anchorLeft:We.left,anchorTop:We.top})})()},eA)},[m,p,e,a,n]),y=Wt.default.useCallback(R=>{let g=d.current;if(g==null||l==null)return;let b=nA(t,l.tokenRange,R);n(b.value),p(),requestAnimationFrame(()=>{g.focus(),g.setSelectionRange(b.caret,b.caret)})},[p,n,l,t]),_=Wt.default.useCallback(R=>{if(R.key==="Escape"){l!=null&&(R.preventDefault(),p());return}if(R.key===" "){p();return}if(l!=null){if(R.key==="ArrowDown"){R.preventDefault(),i(g=>g==null?g:$(B({},g),{selectedIndex:(g.selectedIndex+1)%g.items.length}));return}if(R.key==="ArrowUp"){R.preventDefault(),i(g=>g==null?g:$(B({},g),{selectedIndex:(g.selectedIndex-1+g.items.length)%g.items.length}));return}if(R.key==="Enter"||R.key==="Tab"){R.preventDefault();let g=l.items[l.selectedIndex];y(g.term)}}},[y,p,l]),E=Wt.default.useCallback(R=>{if(l==null)return;let g=R.currentTarget,{selectionStart:b,selectionEnd:k,value:x}=g;if(b==null||k==null||b!==k){p();return}let N=g1(x,b);if(N==null){p();return}N.start!==l.tokenRange.start&&p()},[p,l]),w=Wt.default.useCallback(R=>{i(g=>g==null?g:$(B({},g),{selectedIndex:R}))},[]);return{tagInputRef:d,suggestionState:l,closeSuggestions:p,onTagsChange:T,onTagsKeyDown:_,onTagsSelect:E,onSuggestionHover:w,onSuggestionPick:y}}function g1(e,t){let n=Math.max(0,Math.min(t,e.length)),a=n;for(;a>0&&e[a-1]!==" ";)a-=1;let l=n;for(;l<e.length&&e[l]!==" ";)l+=1;let i=e.slice(a,l).trim();return i===""?null:{token:i,start:a,end:l}}function tA(e,t){let n=window.getComputedStyle(e),a=document.createElement("div");a.style.position="absolute",a.style.visibility="hidden",a.style.whiteSpace="pre",a.style.top="0",a.style.left="0",a.style.font=n.font,a.style.fontKerning=n.fontKerning,a.style.fontFeatureSettings=n.fontFeatureSettings,a.style.fontVariantLigatures=n.fontVariantLigatures,a.style.letterSpacing=n.letterSpacing,a.style.textTransform=n.textTransform,a.style.textIndent=n.textIndent,a.style.boxSizing=n.boxSizing,a.style.padding=n.padding,a.style.border=n.border,a.style.width="".concat(String(e.clientWidth),"px");let l=document.createElement("span");l.textContent=e.value.slice(0,t),a.appendChild(l);let i=document.createElement("span");i.textContent="\u200B",a.appendChild(i),document.body.appendChild(a);let u=i.offsetLeft-e.scrollLeft+1,c=i.offsetTop-e.scrollTop+e.offsetHeight+4;return document.body.removeChild(a),{left:u,top:c}}function nA(e,t,n){let a=e.slice(0,t.start),l=e.slice(t.end).replace(/^ /,""),i="".concat(n," ");return{value:"".concat(a).concat(i).concat(l),caret:a.length+i.length}}function aA(e,t){if(e===t)return!1;let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n+=1;let a=e.length,l=t.length;for(;a>n&&l>n&&e[a-1]===t[l-1];)a-=1,l-=1;let i=e.slice(n,a),u=t.slice(n,l);return i===""&&u===""?!1:y1(i)&&y1(u)}function y1(e){return e===""||/^ *$/.test(e)}function lA(e){return e.split(" ").map(t=>t.trim().toLowerCase()).filter(t=>t!=="")}function iA(e){return decodeURIComponent(e)}function rA(e){var u;let t=e.slice(0,1),a=(t==="#"||t==="?"?e.slice(1):e).split("&").filter(c=>c!==""),l=c=>iA(c.replace(/\+/g," ")),i=[];for(let c of a){let[d,...m]=c.split("=");d&&(m.length===0?i.push([l(d),null]):m.length===1&&i.push([l(d),l((u=m[0])!=null?u:"")]))}return i}function cu(){return rA(window.location.search)}function fu(e,t){for(let[n,a]of e)if(n===t)return a;return null}function Ur(e){return encodeURIComponent(e.replace(/\+/g,"%2B"))}function sa(e){return e!=null?e:""}function jc(e){var t;return(t=e==null?void 0:e.replace(/,/g," ").replace(/\s+/g," ").trim())!=null?t:""}var uO=ve(jt()),ua=ve(et()),b1=80;function Gc({suggestionState:e,onHover:t,onPick:n}){return(0,ua.jsx)("div",{className:"absolute z-5 thm-bg-secondary thm-text-primary ba thm-border-default br2 shadow-4 overflow-hidden f6",style:{left:e.anchorLeft,top:e.anchorTop,width:"max-content",maxWidth:"22rem"},children:e.items.map((a,l)=>{let i=l===e.selectedIndex,u=uA(a.term);return(0,ua.jsxs)("button",{type:"button",className:"flex items-center justify-between w-100 bn bg-transparent tl ph2 pv1 pointer nowrap thm-text-primary thm-hover-link-color ".concat(i?"thm-bg-selected thm-text-selected":""),onMouseEnter:()=>{t(l)},onMouseDown:c=>{c.preventDefault()},onClick:()=>{n(a.term)},title:a.term,children:[(0,ua.jsx)("span",{className:"mr2",children:sA(u,e.tokenRange.token)}),(0,ua.jsx)("span",{className:"thm-text-tertiary f6 tr",style:{minWidth:"3ch"},children:a.count})]},"".concat(a.term,"-").concat(a.count.toString()))})})}function sA(e,t){let n=e.toLocaleLowerCase(),a=t.toLocaleLowerCase(),l=n.indexOf(a);if(l<0)return e;let i=e.slice(0,l),u=e.slice(l,l+t.length),c=e.slice(l+t.length);return(0,ua.jsxs)(ua.Fragment,{children:[i,(0,ua.jsx)("strong",{children:u}),c]})}function uA(e){return e.length<=b1?e:"".concat(e.slice(0,b1),"...")}var X=ve(et());function v1({initial:e}){var be,Ue,We;let t=Jt(),[n,a]=di.default.useState(e),[l,i]=di.default.useState(e),[u,c]=di.default.useState(!1),[d,m]=di.default.useState(!1),[p,T]=di.default.useState(!1),[y,_]=di.default.useState(null),E=t.dat.suggestTags===!0,{tagInputRef:w,suggestionState:R,closeSuggestions:g,onTagsChange:b,onTagsKeyDown:k,onTagsSelect:x,onSuggestionHover:N,onSuggestionPick:z}=qc({enabled:E,tags:l.tags,maxSuggestions:4,onTagsUpdate:I=>{i(oe=>$(B({},oe),{tags:I}))}}),Y=zr(n.time);async function q(){m(!0);try{let I=await Hc(l);I!=null&&i(oe=>$(B({},oe),{title:I}))}finally{m(!1)}}async function K(){await Yc(n.bid),T(!0)}let J=async I=>{I.preventDefault(),_(null);let oe=$(B({},l),{tags:jc(l.tags)}),_t=await Lc(oe);if(_t.ok&&_t.status>=200&&_t.status<300){a(oe);let Vn=cu(),pt=fu(Vn,"next"),Zn=document.referrer,Nn=window.location.origin;pt==="closeWindow"?Cr(window):pt==="back"?Zn.startsWith(Nn)?window.location.href=Zn:window.location.href=Nn:Cr(window)}else _(_t.bodyText)};return p?(0,X.jsx)("p",{className:"thm-text-killed",children:"you killed this bookmark"}):(0,X.jsx)("form",{onSubmit:I=>{J(I)},children:(0,X.jsx)("table",{className:"w-100",children:(0,X.jsxs)("tbody",{children:[(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{className:"w1"}),(0,X.jsxs)("td",{children:[n.bid>0?(0,X.jsxs)("div",{className:"alert",children:["previously saved\xA0",(0,X.jsx)("span",{className:"link f7 dib thm-text-tertiary thm-hover-link-color pr3",title:(be=Y==null?void 0:Y[1])!=null?be:n.time,children:(Ue=Y==null?void 0:Y[0])!=null?Ue:"\xA0"}),(0,X.jsx)("div",{className:"edit_links dib ml1",children:(0,X.jsxs)("div",{className:"delete_link di",children:[(0,X.jsx)("button",{type:"button",onClick:()=>{c(!0)},className:"delete",hidden:u,children:"delete"}),(0,X.jsxs)("span",{className:"confirm thm-text-error",hidden:!u,children:[(0,X.jsx)("button",{type:"button",onClick:()=>{c(!1)},children:"cancel\xA0/\xA0"}),(0,X.jsx)("button",{type:"button",onClick:()=>{K()},className:"thm-text-error",children:"destroy"})]})]})})]}):null,y?(0,X.jsx)("div",{className:"alert alert-err",children:y}):null]})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"url",children:"URL"})}),(0,X.jsx)("td",{children:(0,X.jsx)("input",{type:"url",id:"url",className:"w-100 mv1",required:!0,name:"url",autoFocus:n.url==="",value:l.url,onChange:I=>{i(oe=>$(B({},oe),{url:I.target.value}))}})})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"title",children:"title"})}),(0,X.jsxs)("td",{className:"flex",children:[(0,X.jsx)("input",{type:"text",id:"title",className:"w-100 mv1 flex-auto",name:"title",value:l.title,onChange:I=>{i(oe=>$(B({},oe),{title:I.target.value}))}}),(0,X.jsx)("button",{disabled:d,type:"button",onClick:()=>{q()},className:"ml2 input-reset ba thm-border-primary pointer f6 di dim pa1 ma1 mr0".concat(d?" thm-bg-disabled":""),children:"fetch"})]})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"description",children:"description"})}),(0,X.jsx)("td",{children:(0,X.jsx)("textarea",{className:"w-100 mt1 thm-text-secondary",id:"description",name:"description",rows:4,value:l.description,onChange:I=>{i(oe=>$(B({},oe),{description:I.target.value}))}})})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"tags",children:"tags"})}),(0,X.jsx)("td",{children:(0,X.jsxs)("div",{className:"relative",children:[(0,X.jsx)("input",{ref:w,type:"text",id:"tags",className:"w-100 mv1",name:"tags",autoComplete:"off",autoCapitalize:"off",autoFocus:n.url!=="",value:l.tags,onChange:b,onKeyDown:k,onClick:x,onSelect:x,onBlur:()=>{window.setTimeout(()=>{g()},0)}}),R!=null?(0,X.jsx)(Gc,{suggestionState:R,onHover:N,onPick:z}):null]})})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"private",children:"private"})}),(0,X.jsxs)("td",{children:[(0,X.jsx)("div",{className:"mr4 dib",children:(0,X.jsx)("input",{type:"checkbox",id:"private",className:"private pointer",name:"private",checked:l.private,onChange:I=>{i(oe=>B($(B({},oe),{private:I.target.checked}),t.dat.archiveBackendEnabled&&l.archiveRequested&&I.target.checked?{archiveRequested:!1}:{}))}})}),!(n.bid>0)&&t.dat.archiveBackendEnabled?(0,X.jsxs)("div",{className:"dib ".concat(l.private?"o-50":""),title:l.private?"archiving is unavailable for private bookmarks":void 0,children:[(0,X.jsx)("label",{className:"mr2 di",htmlFor:"archiveRequested",children:"archive"}),(0,X.jsx)("input",{type:"checkbox",id:"archiveRequested",className:"archive pointer ml2",name:"archiveRequested",disabled:l.private,checked:(We=l.archiveRequested)!=null?We:!1,onChange:I=>{i(oe=>$(B({},oe),{archiveRequested:I.target.checked}))}})]}):null]})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{children:(0,X.jsx)("label",{htmlFor:"toread",children:"read later"})}),(0,X.jsx)("td",{children:(0,X.jsx)("input",{type:"checkbox",id:"toread",className:"toread pointer",name:"toread",checked:l.toread,onChange:I=>{i(oe=>$(B({},oe),{toread:I.target.checked}))}})})]}),(0,X.jsxs)("tr",{children:[(0,X.jsx)("td",{}),(0,X.jsx)("td",{children:(0,X.jsx)("input",{type:"submit",className:"ph3 pv2 input-reset thm-text-strong ba thm-border-primary bg-transparent pointer f6 dib mt1 dim",value:n.bid>0?"update bookmark":"add bookmark"})})]})]})})})}var rS=ve(jt());var S1=e=>{let t,n=new Set,a=(m,p)=>{let T=typeof m=="function"?m(t):m;if(!Object.is(T,t)){let y=t;t=(p!=null?p:typeof T!="object"||T===null)?T:Object.assign({},t,T),n.forEach(_=>_(t,y))}},l=()=>t,c={setState:a,getState:l,getInitialState:()=>d,subscribe:m=>(n.add(m),()=>n.delete(m))},d=t=e(a,l,c);return c},T1=(e=>e?S1(e):S1);var du=ve(jt(),1);var oA=e=>e;function cA(e,t=oA){let n=du.default.useSyncExternalStore(e.subscribe,du.default.useCallback(()=>t(e.getState()),[e,t]),du.default.useCallback(()=>t(e.getInitialState()),[e,t]));return du.default.useDebugValue(n),n}var _1=e=>{let t=T1(e),n=a=>cA(t,a);return Object.assign(n,t),n},Vc=(e=>e?_1(e):_1);var hu=Vc(e=>({bmarks:[],setAll:t=>{e({bmarks:t})},removeById:t=>{e(n=>({bmarks:n.bmarks.filter(a=>a.bid!==t)}))},upsert:t=>{e(n=>({bmarks:n.bmarks.map(a=>a.bid===t.bid?t:a)}))}}));var Ol=ve(jt());function k1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function fA(e){if(Array.isArray(e))return e}function dA(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,l,i,u,c=[],d=!0,m=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(d=(a=i.call(n)).done)&&(c.push(a.value),c.length!==t);d=!0);}catch(p){m=!0,l=p}finally{try{if(!d&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(m)throw l}}return c}}function hA(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mA(e,t){return fA(e)||dA(e,t)||pA(e,t)||hA()}function pA(e,t){if(e){if(typeof e=="string")return k1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k1(e,t):void 0}}var Y1=Object.entries,x1=Object.setPrototypeOf,gA=Object.isFrozen,yA=Object.getPrototypeOf,bA=Object.getOwnPropertyDescriptor,Lt=Object.freeze,Dn=Object.seal,Br=Object.create,L1=typeof Reflect<"u"&&Reflect,Dm=L1.apply,Rm=L1.construct;Lt||(Lt=function(t){return t});Dn||(Dn=function(t){return t});Dm||(Dm=function(t,n){for(var a=arguments.length,l=new Array(a>2?a-2:0),i=2;i<a;i++)l[i-2]=arguments[i];return t.apply(n,l)});Rm||(Rm=function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];return new t(...a)});var Yr=rt(Array.prototype.forEach),vA=rt(Array.prototype.lastIndexOf),E1=rt(Array.prototype.pop),Lr=rt(Array.prototype.push),SA=rt(Array.prototype.splice),Yt=Array.isArray,gu=rt(String.prototype.toLowerCase),Em=rt(String.prototype.toString),w1=rt(String.prototype.match),Hr=rt(String.prototype.replace),A1=rt(String.prototype.indexOf),TA=rt(String.prototype.trim),_A=rt(Number.prototype.toString),kA=rt(Boolean.prototype.toString),M1=typeof BigInt>"u"?null:rt(BigInt.prototype.toString),O1=typeof Symbol>"u"?null:rt(Symbol.prototype.toString),Je=rt(Object.prototype.hasOwnProperty),mu=rt(Object.prototype.toString),Tt=rt(RegExp.prototype.test),pu=xA(TypeError);function rt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];return Dm(e,t,a)}}function xA(e){return function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Rm(e,n)}}function re(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gu;if(x1&&x1(e,null),!Yt(t))return e;let a=t.length;for(;a--;){let l=t[a];if(typeof l=="string"){let i=n(l);i!==l&&(gA(t)||(t[a]=i),l=i)}e[l]=!0}return e}function EA(e){for(let t=0;t<e.length;t++)Je(e,t)||(e[t]=null);return e}function Mt(e){let t=Br(null);for(let a of Y1(e)){var n=mA(a,2);let l=n[0],i=n[1];Je(e,l)&&(Yt(i)?t[l]=EA(i):i&&typeof i=="object"&&i.constructor===Object?t[l]=Mt(i):t[l]=i)}return t}function wA(e){switch(typeof e){case"string":return e;case"number":return _A(e);case"boolean":return kA(e);case"bigint":return M1?M1(e):"0";case"symbol":return O1?O1(e):"Symbol()";case"undefined":return mu(e);case"function":case"object":{if(e===null)return mu(e);let t=e,n=ca(t,"toString");if(typeof n=="function"){let a=n(t);return typeof a=="string"?a:mu(a)}return mu(e)}default:return mu(e)}}function ca(e,t){for(;e!==null;){let a=bA(e,t);if(a){if(a.get)return rt(a.get);if(typeof a.value=="function")return rt(a.value)}e=yA(e)}function n(){return null}return n}function AA(e){try{return Tt(e,""),!0}catch(t){return!1}}var D1=Lt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),wm=Lt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Am=Lt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),MA=Lt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mm=Lt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),OA=Lt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R1=Lt(["#text"]),N1=Lt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Om=Lt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z1=Lt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Zc=Lt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),DA=Dn(/{{[\w\W]*|^[\w\W]*}}/g),RA=Dn(/<%[\w\W]*|^[\w\W]*%>/g),NA=Dn(/\${[\w\W]*/g),zA=Dn(/^data-[\-\w.\u00B7-\uFFFF]+$/),CA=Dn(/^aria-[\-\w]+$/),C1=Dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UA=Dn(/^(?:\w+script|data):/i),YA=Dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),LA=Dn(/^html$/i),HA=Dn(/^[a-z][.\w]*(-[.\w]+)+$/i),oa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},BA=function(){return typeof window>"u"?null:window},qA=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null,l="data-tt-policy-suffix";n&&n.hasAttribute(l)&&(a=n.getAttribute(l));let i="dompurify"+(a?"#"+a:"");try{return t.createPolicy(i,{createHTML(u){return u},createScriptURL(u){return u}})}catch(u){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},U1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function H1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BA(),t=Z=>H1(Z);if(t.version="3.4.7",t.removed=[],!e||!e.document||e.document.nodeType!==oa.document||!e.Element)return t.isSupported=!1,t;let n=e.document,a=n,l=a.currentScript;e.DocumentFragment;let i=e.HTMLTemplateElement,u=e.Node,c=e.Element,d=e.NodeFilter,m=e.NamedNodeMap;m===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let p=e.DOMParser,T=e.trustedTypes,y=c.prototype,_=ca(y,"cloneNode"),E=ca(y,"remove"),w=ca(y,"nextSibling"),R=ca(y,"childNodes"),g=ca(y,"parentNode"),b=ca(y,"shadowRoot"),k=ca(y,"attributes"),x=u&&u.prototype?ca(u.prototype,"nodeType"):null,N=u&&u.prototype?ca(u.prototype,"nodeName"):null;if(typeof i=="function"){let Z=n.createElement("template");Z.content&&Z.content.ownerDocument&&(n=Z.content.ownerDocument)}let z,Y="",q=n,K=q.implementation,J=q.createNodeIterator,be=q.createDocumentFragment,Ue=q.getElementsByTagName,We=a.importNode,I=U1();t.isSupported=typeof Y1=="function"&&typeof g=="function"&&K&&K.createHTMLDocument!==void 0;let oe=DA,_t=RA,Vn=NA,pt=zA,Zn=CA,Nn=UA,da=YA,Qn=HA,Q=C1,Le=null,Va=re({},[...D1,...wm,...Am,...Mm,...R1]),Oe=null,ne=re({},[...N1,...Om,...z1,...Zc]),ee=Object.seal(Br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dt=null,bi=null,Xn=Object.seal(Br(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_u=!0,Vr=!0,ku=!1,xu=!0,Fn=!1,Rl=!0,Kn=!1,kt=!1,Nl=!1,Za=!1,vi=!1,zl=!1,xt=!0,Zr=!1,Si="user-content-",Qa=!0,_e=!1,ha={},It=null,Xa=re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ti=null,Cl=re({},["audio","video","img","source","image","track"]),Jn=null,Ul=re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_i="http://www.w3.org/1998/Math/MathML",ma="http://www.w3.org/2000/svg",dn="http://www.w3.org/1999/xhtml",hn=dn,Wn=!1,Yl=null,ki=re({},[_i,ma,dn],Em),j=re({},["mi","mo","mn","ms","mtext"]),Qr=re({},["annotation-xml"]),ef=re({},["title","style","font","a","script"]),Rt=null,Ht=["application/xhtml+xml","text/html"],se="text/html",He=null,he=null,Ll=n.createElement("form"),Eu=function(v){return v instanceof RegExp||v instanceof Function},Fa=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(he&&he===v)return;(!v||typeof v!="object")&&(v={}),v=Mt(v),Rt=Ht.indexOf(v.PARSER_MEDIA_TYPE)===-1?se:v.PARSER_MEDIA_TYPE,He=Rt==="application/xhtml+xml"?Em:gu,Le=Je(v,"ALLOWED_TAGS")&&Yt(v.ALLOWED_TAGS)?re({},v.ALLOWED_TAGS,He):Va,Oe=Je(v,"ALLOWED_ATTR")&&Yt(v.ALLOWED_ATTR)?re({},v.ALLOWED_ATTR,He):ne,Yl=Je(v,"ALLOWED_NAMESPACES")&&Yt(v.ALLOWED_NAMESPACES)?re({},v.ALLOWED_NAMESPACES,Em):ki,Jn=Je(v,"ADD_URI_SAFE_ATTR")&&Yt(v.ADD_URI_SAFE_ATTR)?re(Mt(Ul),v.ADD_URI_SAFE_ATTR,He):Ul,Ti=Je(v,"ADD_DATA_URI_TAGS")&&Yt(v.ADD_DATA_URI_TAGS)?re(Mt(Cl),v.ADD_DATA_URI_TAGS,He):Cl,It=Je(v,"FORBID_CONTENTS")&&Yt(v.FORBID_CONTENTS)?re({},v.FORBID_CONTENTS,He):Xa,Dt=Je(v,"FORBID_TAGS")&&Yt(v.FORBID_TAGS)?re({},v.FORBID_TAGS,He):Mt({}),bi=Je(v,"FORBID_ATTR")&&Yt(v.FORBID_ATTR)?re({},v.FORBID_ATTR,He):Mt({}),ha=Je(v,"USE_PROFILES")?v.USE_PROFILES&&typeof v.USE_PROFILES=="object"?Mt(v.USE_PROFILES):v.USE_PROFILES:!1,_u=v.ALLOW_ARIA_ATTR!==!1,Vr=v.ALLOW_DATA_ATTR!==!1,ku=v.ALLOW_UNKNOWN_PROTOCOLS||!1,xu=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Fn=v.SAFE_FOR_TEMPLATES||!1,Rl=v.SAFE_FOR_XML!==!1,Kn=v.WHOLE_DOCUMENT||!1,Za=v.RETURN_DOM||!1,vi=v.RETURN_DOM_FRAGMENT||!1,zl=v.RETURN_TRUSTED_TYPE||!1,Nl=v.FORCE_BODY||!1,xt=v.SANITIZE_DOM!==!1,Zr=v.SANITIZE_NAMED_PROPS||!1,Qa=v.KEEP_CONTENT!==!1,_e=v.IN_PLACE||!1,Q=AA(v.ALLOWED_URI_REGEXP)?v.ALLOWED_URI_REGEXP:C1,hn=typeof v.NAMESPACE=="string"?v.NAMESPACE:dn,j=Je(v,"MATHML_TEXT_INTEGRATION_POINTS")&&v.MATHML_TEXT_INTEGRATION_POINTS&&typeof v.MATHML_TEXT_INTEGRATION_POINTS=="object"?Mt(v.MATHML_TEXT_INTEGRATION_POINTS):re({},["mi","mo","mn","ms","mtext"]),Qr=Je(v,"HTML_INTEGRATION_POINTS")&&v.HTML_INTEGRATION_POINTS&&typeof v.HTML_INTEGRATION_POINTS=="object"?Mt(v.HTML_INTEGRATION_POINTS):re({},["annotation-xml"]);let M=Je(v,"CUSTOM_ELEMENT_HANDLING")&&v.CUSTOM_ELEMENT_HANDLING&&typeof v.CUSTOM_ELEMENT_HANDLING=="object"?Mt(v.CUSTOM_ELEMENT_HANDLING):Br(null);if(ee=Br(null),Je(M,"tagNameCheck")&&Eu(M.tagNameCheck)&&(ee.tagNameCheck=M.tagNameCheck),Je(M,"attributeNameCheck")&&Eu(M.attributeNameCheck)&&(ee.attributeNameCheck=M.attributeNameCheck),Je(M,"allowCustomizedBuiltInElements")&&typeof M.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=M.allowCustomizedBuiltInElements),Fn&&(Vr=!1),vi&&(Za=!0),ha&&(Le=re({},R1),Oe=Br(null),ha.html===!0&&(re(Le,D1),re(Oe,N1)),ha.svg===!0&&(re(Le,wm),re(Oe,Om),re(Oe,Zc)),ha.svgFilters===!0&&(re(Le,Am),re(Oe,Om),re(Oe,Zc)),ha.mathMl===!0&&(re(Le,Mm),re(Oe,z1),re(Oe,Zc))),Xn.tagCheck=null,Xn.attributeCheck=null,Je(v,"ADD_TAGS")&&(typeof v.ADD_TAGS=="function"?Xn.tagCheck=v.ADD_TAGS:Yt(v.ADD_TAGS)&&(Le===Va&&(Le=Mt(Le)),re(Le,v.ADD_TAGS,He))),Je(v,"ADD_ATTR")&&(typeof v.ADD_ATTR=="function"?Xn.attributeCheck=v.ADD_ATTR:Yt(v.ADD_ATTR)&&(Oe===ne&&(Oe=Mt(Oe)),re(Oe,v.ADD_ATTR,He))),Je(v,"ADD_URI_SAFE_ATTR")&&Yt(v.ADD_URI_SAFE_ATTR)&&re(Jn,v.ADD_URI_SAFE_ATTR,He),Je(v,"FORBID_CONTENTS")&&Yt(v.FORBID_CONTENTS)&&(It===Xa&&(It=Mt(It)),re(It,v.FORBID_CONTENTS,He)),Je(v,"ADD_FORBID_CONTENTS")&&Yt(v.ADD_FORBID_CONTENTS)&&(It===Xa&&(It=Mt(It)),re(It,v.ADD_FORBID_CONTENTS,He)),Qa&&(Le["#text"]=!0),Kn&&re(Le,["html","head","body"]),Le.table&&(re(Le,["tbody"]),delete Dt.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw pu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');z=v.TRUSTED_TYPES_POLICY,Y=z.createHTML("")}else z===void 0&&(z=qA(T,l)),z!==null&&typeof Y=="string"&&(Y=z.createHTML(""));(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&Le===Va&&(Le=Mt(Le)),I.uponSanitizeAttribute.length>0&&Oe===ne&&(Oe=Mt(Oe)),Lt&&Lt(v),he=v},st=re({},[...wm,...Am,...MA]),mn=re({},[...Mm,...OA]),pn=function(v){let M=g(v);(!M||!M.tagName)&&(M={namespaceURI:hn,tagName:"template"});let H=gu(v.tagName),Se=gu(M.tagName);return Yl[v.namespaceURI]?v.namespaceURI===ma?M.namespaceURI===dn?H==="svg":M.namespaceURI===_i?H==="svg"&&(Se==="annotation-xml"||j[Se]):!!st[H]:v.namespaceURI===_i?M.namespaceURI===dn?H==="math":M.namespaceURI===ma?H==="math"&&Qr[Se]:!!mn[H]:v.namespaceURI===dn?M.namespaceURI===ma&&!Qr[Se]||M.namespaceURI===_i&&!j[Se]?!1:!mn[H]&&(ef[H]||!st[H]):!!(Rt==="application/xhtml+xml"&&Yl[v.namespaceURI]):!1},ke=function(v){Lr(t.removed,{element:v});try{g(v).removeChild(v)}catch(M){E(v)}},ut=function(v,M){try{Lr(t.removed,{attribute:M.getAttributeNode(v),from:M})}catch(H){Lr(t.removed,{attribute:null,from:M})}if(M.removeAttribute(v),v==="is")if(Za||vi)try{ke(M)}catch(H){}else try{M.setAttribute(v,"")}catch(H){}},gn=function(v){let M=null,H=null;if(Nl)v="<remove></remove>"+v;else{let ze=w1(v,/^[\r\n\t ]+/);H=ze&&ze[0]}Rt==="application/xhtml+xml"&&hn===dn&&(v='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+v+"</body></html>");let Se=z?z.createHTML(v):v;if(hn===dn)try{M=new p().parseFromString(Se,Rt)}catch(ze){}if(!M||!M.documentElement){M=K.createDocument(hn,"template",null);try{M.documentElement.innerHTML=Wn?Y:Se}catch(ze){}}let ue=M.body||M.documentElement;return v&&H&&ue.insertBefore(n.createTextNode(H),ue.childNodes[0]||null),hn===dn?Ue.call(M,Kn?"html":"body")[0]:Kn?M.documentElement:ue},$n=function(v){return J.call(v.ownerDocument||v,v,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},wu=function(v){v.normalize();let M=J.call(v.ownerDocument||v,v,d.SHOW_TEXT|d.SHOW_COMMENT|d.SHOW_CDATA_SECTION|d.SHOW_PROCESSING_INSTRUCTION,null),H=M.nextNode();for(;H;){let Se=H.data;Yr([oe,_t,Vn],ue=>{Se=Hr(Se,ue," ")}),H.data=Se,H=M.nextNode()}},xi=function(v){let M=N?N(v):null;return typeof M!="string"||He(M)!=="form"?!1:typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||v.attributes!==k(v)||typeof v.removeAttribute!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function"||v.nodeType!==x(v)||v.childNodes!==R(v)},zn=function(v){if(!x||typeof v!="object"||v===null)return!1;try{return x(v)===oa.documentFragment}catch(M){return!1}},Hl=function(v){if(!x||typeof v!="object"||v===null)return!1;try{return typeof x(v)=="number"}catch(M){return!1}};function Cn(Z,v,M){Yr(Z,H=>{H.call(t,v,M,he)})}let pa=function(v){let M=null;if(Cn(I.beforeSanitizeElements,v,null),xi(v))return ke(v),!0;let H=He(v.nodeName);if(Cn(I.uponSanitizeElement,v,{tagName:H,allowedTags:Le}),Rl&&v.hasChildNodes()&&!Hl(v.firstElementChild)&&Tt(/<[/\w!]/g,v.innerHTML)&&Tt(/<[/\w!]/g,v.textContent)||Rl&&v.namespaceURI===dn&&H==="style"&&Hl(v.firstElementChild)||v.nodeType===oa.progressingInstruction||Rl&&v.nodeType===oa.comment&&Tt(/<[/\w]/g,v.data))return ke(v),!0;if(Dt[H]||!(Xn.tagCheck instanceof Function&&Xn.tagCheck(H))&&!Le[H]){if(!Dt[H]&&Mu(H)&&(ee.tagNameCheck instanceof RegExp&&Tt(ee.tagNameCheck,H)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(H)))return!1;if(Qa&&!It[H]){let ue=g(v),ze=R(v);if(ze&&ue){let Bt=ze.length;for(let yn=Bt-1;yn>=0;--yn){let Pt=_(ze[yn],!0);ue.insertBefore(Pt,w(v))}}}return ke(v),!0}return(x?x(v):v.nodeType)===oa.element&&!pn(v)||(H==="noscript"||H==="noembed"||H==="noframes")&&Tt(/<\/no(script|embed|frames)/i,v.innerHTML)?(ke(v),!0):(Fn&&v.nodeType===oa.text&&(M=v.textContent,Yr([oe,_t,Vn],ue=>{M=Hr(M,ue," ")}),v.textContent!==M&&(Lr(t.removed,{element:v.cloneNode()}),v.textContent=M)),Cn(I.afterSanitizeElements,v,null),!1)},Ka=function(v,M,H){if(bi[M]||xt&&(M==="id"||M==="name")&&(H in n||H in Ll))return!1;let Se=Oe[M]||Xn.attributeCheck instanceof Function&&Xn.attributeCheck(M,v);if(!(Vr&&!bi[M]&&Tt(pt,M))){if(!(_u&&Tt(Zn,M))){if(!Se||bi[M]){if(!(Mu(v)&&(ee.tagNameCheck instanceof RegExp&&Tt(ee.tagNameCheck,v)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(v))&&(ee.attributeNameCheck instanceof RegExp&&Tt(ee.attributeNameCheck,M)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(M,v))||M==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&Tt(ee.tagNameCheck,H)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(H))))return!1}else if(!Jn[M]){if(!Tt(Q,Hr(H,da,""))){if(!((M==="src"||M==="xlink:href"||M==="href")&&v!=="script"&&A1(H,"data:")===0&&Ti[v])){if(!(ku&&!Tt(Nn,Hr(H,da,"")))){if(H)return!1}}}}}}return!0},Au=re({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Mu=function(v){return!Au[gu(v)]&&Tt(Qn,v)},Ou=function(v){Cn(I.beforeSanitizeAttributes,v,null);let M=v.attributes;if(!M||xi(v))return;let H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe,forceKeepAttr:void 0},Se=M.length;for(;Se--;){let ue=M[Se],ze=ue.name,Bt=ue.namespaceURI,yn=ue.value,Pt=He(ze),wi=yn,$e=ze==="value"?wi:TA(wi);if(H.attrName=Pt,H.attrValue=$e,H.keepAttr=!0,H.forceKeepAttr=void 0,Cn(I.uponSanitizeAttribute,v,H),$e=H.attrValue,Zr&&(Pt==="id"||Pt==="name")&&A1($e,Si)!==0&&(ut(ze,v),$e=Si+$e),Rl&&Tt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,$e)){ut(ze,v);continue}if(Pt==="attributename"&&w1($e,"href")){ut(ze,v);continue}if(H.forceKeepAttr)continue;if(!H.keepAttr){ut(ze,v);continue}if(!xu&&Tt(/\/>/i,$e)){ut(ze,v);continue}Fn&&Yr([oe,_t,Vn],Ru=>{$e=Hr($e,Ru," ")});let Du=He(v.nodeName);if(!Ka(Du,Pt,$e)){ut(ze,v);continue}if(z&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!Bt)switch(T.getAttributeType(Du,Pt)){case"TrustedHTML":{$e=z.createHTML($e);break}case"TrustedScriptURL":{$e=z.createScriptURL($e);break}}if($e!==wi)try{Bt?v.setAttributeNS(Bt,ze,$e):v.setAttribute(ze,$e),xi(v)?ke(v):E1(t.removed)}catch(Ru){ut(ze,v)}}Cn(I.afterSanitizeAttributes,v,null)},Ei=function(v){let M=null,H=$n(v);for(Cn(I.beforeSanitizeShadowDOM,v,null);M=H.nextNode();)if(Cn(I.uponSanitizeShadowNode,M,null),pa(M),Ou(M),zn(M.content)&&Ei(M.content),(x?x(M):M.nodeType)===oa.element){let ue=b?b(M):M.shadowRoot;zn(ue)&&(De(ue),Ei(ue))}Cn(I.afterSanitizeShadowDOM,v,null)},De=function(v){let M=x?x(v):v.nodeType;if(M===oa.element){let ue=b?b(v):v.shadowRoot;zn(ue)&&(De(ue),Ei(ue))}let H=R?R(v):v.childNodes;if(!H)return;let Se=[];Yr(H,ue=>{Lr(Se,ue)});for(let ue of Se)De(ue);if(M===oa.element){let ue=N?N(v):null;if(typeof ue=="string"&&He(ue)==="template"){let ze=v.content;zn(ze)&&De(ze)}}};return t.sanitize=function(Z){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=null,H=null,Se=null,ue=null;if(Wn=!Z,Wn&&(Z="<!-->"),typeof Z!="string"&&!Hl(Z)&&(Z=wA(Z),typeof Z!="string"))throw pu("dirty is not a string, aborting");if(!t.isSupported)return Z;if(kt||Fa(v),t.removed=[],typeof Z=="string"&&(_e=!1),_e){let yn=N?N(Z):Z.nodeName;if(typeof yn=="string"){let Pt=He(yn);if(!Le[Pt]||Dt[Pt])throw pu("root node is forbidden and cannot be sanitized in-place")}if(xi(Z))throw pu("root node is clobbered and cannot be sanitized in-place");De(Z)}else if(Hl(Z))M=gn("<!---->"),H=M.ownerDocument.importNode(Z,!0),H.nodeType===oa.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?M=H:M.appendChild(H),De(H);else{if(!Za&&!Fn&&!Kn&&Z.indexOf("<")===-1)return z&&zl?z.createHTML(Z):Z;if(M=gn(Z),!M)return Za?null:zl?Y:""}M&&Nl&&ke(M.firstChild);let ze=$n(_e?Z:M);for(;Se=ze.nextNode();)pa(Se),Ou(Se),zn(Se.content)&&Ei(Se.content);if(_e)return Fn&&wu(Z),Z;if(Za){if(Fn&&wu(M),vi)for(ue=be.call(M.ownerDocument);M.firstChild;)ue.appendChild(M.firstChild);else ue=M;return(Oe.shadowroot||Oe.shadowrootmode)&&(ue=We.call(a,ue,!0)),ue}let Bt=Kn?M.outerHTML:M.innerHTML;return Kn&&Le["!doctype"]&&M.ownerDocument&&M.ownerDocument.doctype&&M.ownerDocument.doctype.name&&Tt(LA,M.ownerDocument.doctype.name)&&(Bt="<!DOCTYPE "+M.ownerDocument.doctype.name+">\n"+Bt),Fn&&Yr([oe,_t,Vn],yn=>{Bt=Hr(Bt,yn," ")}),z&&zl?z.createHTML(Bt):Bt},t.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fa(Z),kt=!0},t.clearConfig=function(){he=null,kt=!1},t.isValidAttribute=function(Z,v,M){he||Fa({});let H=He(Z),Se=He(v);return Ka(H,Se,M)},t.addHook=function(Z,v){typeof v=="function"&&Lr(I[Z],v)},t.removeHook=function(Z,v){if(v!==void 0){let M=vA(I[Z],v);return M===-1?void 0:SA(I[Z],M,1)[0]}return E1(I[Z])},t.removeHooks=function(Z){I[Z]=[]},t.removeAllHooks=function(){I=U1()},t}var B1=H1();function Um(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var pi=Um();function F1(e){pi=e}var hi={exec:()=>null};function qr(e){let t=[];return n=>{let a=Math.max(0,Math.min(3,n-1)),l=t[a];return l||(l=e(a),t[a]=l),l}}function ye(e,t=""){let n=typeof e=="string"?e:e.source,a={replace:(l,i)=>{let u=typeof i=="string"?i:i.source;return u=u.replace(Ot.caret,"$1"),n=n.replace(l,u),a},getRegex:()=>new RegExp(n,t)};return a}var jA=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch(t){return!1}})(),Ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp("^( {0,3}".concat(e,")((?:[	 ][^\\n]*)?(?:\\n|$))")),nextBulletRegex:qr(e=>new RegExp("^ {0,".concat(e,"}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))"))),hrRegex:qr(e=>new RegExp("^ {0,".concat(e,"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"))),fencesBeginRegex:qr(e=>new RegExp("^ {0,".concat(e,"}(?:```|~~~)"))),headingBeginRegex:qr(e=>new RegExp("^ {0,".concat(e,"}#"))),htmlBeginRegex:qr(e=>new RegExp("^ {0,".concat(e,"}<(?:[a-z].*>|!--)"),"i")),blockquoteBeginRegex:qr(e=>new RegExp("^ {0,".concat(e,"}>")))},GA=/^(?:[ \t]*(?:\n|$))+/,VA=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ZA=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,QA=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ym=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,K1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,J1=ye(K1).replace(/bull/g,Ym).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),XA=ye(K1).replace(/bull/g,Ym).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Lm=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,FA=/^[^\n]+/,Hm=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,KA=ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Hm).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),JA=ye(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ym).getRegex(),Wc="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Bm=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,WA=ye("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Bm).replace("tag",Wc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W1=ye(Lm).replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wc).getRegex(),$A=ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",W1).getRegex(),qm={blockquote:$A,code:VA,def:KA,fences:ZA,heading:QA,hr:vu,html:WA,lheading:J1,list:JA,newline:GA,paragraph:W1,table:hi,text:FA},q1=ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wc).getRegex(),IA=$(B({},qm),{lheading:XA,table:q1,paragraph:ye(Lm).replace("hr",vu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",q1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Wc).getRegex()}),PA=$(B({},qm),{html:ye("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Bm).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ye(Lm).replace("hr",vu).replace("heading"," *#{1,6} *[^\n]").replace("lheading",J1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),e2=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,t2=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,$1=/^( {2,}|\\)\n(?!\s*$)/,n2=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jr=/[\p{P}\p{S}]/u,$c=/[\s\p{P}\p{S}]/u,jm=/[^\s\p{P}\p{S}]/u,a2=ye(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$c).getRegex(),I1=/(?!~)[\p{P}\p{S}]/u,l2=/(?!~)[\s\p{P}\p{S}]/u,i2=/(?:[^\s\p{P}\p{S}]|~)/u,r2=ye(/link|precode-code|html/,"g").replace("link",new RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",jA?"(?<!`)()":"(^^|[^`])").replace("code",new RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),P1=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,s2=ye(P1,"u").replace(/punct/g,jr).getRegex(),u2=ye(P1,"u").replace(/punct/g,I1).getRegex(),eS="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",o2=ye(eS,"gu").replace(/notPunctSpace/g,jm).replace(/punctSpace/g,$c).replace(/punct/g,jr).getRegex(),c2=ye(eS,"gu").replace(/notPunctSpace/g,i2).replace(/punctSpace/g,l2).replace(/punct/g,I1).getRegex(),f2=ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,jm).replace(/punctSpace/g,$c).replace(/punct/g,jr).getRegex(),d2=ye(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,jr).getRegex(),h2="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",m2=ye(h2,"gu").replace(/notPunctSpace/g,jm).replace(/punctSpace/g,$c).replace(/punct/g,jr).getRegex(),p2=ye(/\\(punct)/,"gu").replace(/punct/g,jr).getRegex(),g2=ye(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),y2=ye(Bm).replace("(?:-->|$)","-->").getRegex(),b2=ye("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",y2).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,v2=ye(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Fc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tS=ye(/^!?\[(label)\]\[(ref)\]/).replace("label",Fc).replace("ref",Hm).getRegex(),nS=ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",Hm).getRegex(),S2=ye("reflink|nolink(?!\\()","g").replace("reflink",tS).replace("nolink",nS).getRegex(),j1=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Gm={_backpedal:hi,anyPunctuation:p2,autolink:g2,blockSkip:r2,br:$1,code:t2,del:hi,delLDelim:hi,delRDelim:hi,emStrongLDelim:s2,emStrongRDelimAst:o2,emStrongRDelimUnd:f2,escape:e2,link:v2,nolink:nS,punctuation:a2,reflink:tS,reflinkSearch:S2,tag:b2,text:n2,url:hi},T2=$(B({},Gm),{link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",Fc).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fc).getRegex()}),Nm=$(B({},Gm),{emStrongRDelimAst:c2,emStrongLDelim:u2,delLDelim:d2,delRDelim:m2,url:ye(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",j1).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ye(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",j1).getRegex()}),_2=$(B({},Nm),{br:ye($1).replace("{2,}","*").getRegex(),text:ye(Nm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Qc={normal:qm,gfm:IA,pedantic:PA},yu={normal:Gm,gfm:Nm,breaks:_2,pedantic:T2},k2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G1=e=>k2[e];function fa(e,t){if(t){if(Ot.escapeTest.test(e))return e.replace(Ot.escapeReplace,G1)}else if(Ot.escapeTestNoEncode.test(e))return e.replace(Ot.escapeReplaceNoEncode,G1);return e}function V1(e){try{e=encodeURI(e).replace(Ot.percentDecode,"%")}catch(t){return null}return e}function Z1(e,t){var i;let n=e.replace(Ot.findPipe,(u,c,d)=>{let m=!1,p=c;for(;--p>=0&&d[p]==="\\";)m=!m;return m?"|":" |"}),a=n.split(Ot.splitPipe),l=0;if(a[0].trim()||a.shift(),a.length>0&&!((i=a.at(-1))!=null&&i.trim())&&a.pop(),t)if(a.length>t)a.splice(t);else for(;a.length<t;)a.push("");for(;l<a.length;l++)a[l]=a[l].trim().replace(Ot.slashPipe,"|");return a}function Ml(e,t,n){let a=e.length;if(a===0)return"";let l=0;for(;l<a;){let i=e.charAt(a-l-1);if(i===t&&!n)l++;else if(i!==t&&n)l++;else break}return e.slice(0,a-l)}function Q1(e){let t=e.split("\n"),n=t.length-1;for(;n>=0&&Ot.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join("\n")}function x2(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let a=0;a<e.length;a++)if(e[a]==="\\")a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return n>0?-2:-1}function E2(e,t=0){let n=t,a="";for(let l of e)if(l==="	"){let i=4-n%4;a+=" ".repeat(i),n+=i}else a+=l,n++;return a}function X1(e,t,n,a,l){let i=t.href,u=t.title||null,c=e[1].replace(l.other.outputLinkReplace,"$1");a.state.inLink=!0;let d={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:u,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,d}function w2(e,t,n){let a=e.match(n.other.indentCodeCompensation);if(a===null)return t;let l=a[1];return t.split("\n").map(i=>{let u=i.match(n.other.beginningSpace);if(u===null)return i;let[c]=u;return c.length>=l.length?i.slice(l.length):i}).join("\n")}var Kc=class{constructor(e){F(this,"options");F(this,"rules");F(this,"lexer");this.options=e||pi}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:Q1(t[0]),a=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:a}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],a=w2(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let a=Ml(n,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(n=a.trim())}return{type:"heading",raw:Ml(t[0],"\n"),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ml(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ml(t[0],"\n").split("\n"),a="",l="",i=[];for(;n.length>0;){let u=!1,c=[],d;for(d=0;d<n.length;d++)if(this.rules.other.blockquoteStart.test(n[d]))c.push(n[d]),u=!0;else if(!u)c.push(n[d]);else break;n=n.slice(d);let m=c.join("\n"),p=m.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");a=a?"".concat(a,"\n").concat(m):m,l=l?"".concat(l,"\n").concat(p):p;let T=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=T,n.length===0)break;let y=i.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let _=y,E=_.raw+"\n"+n.join("\n"),w=this.blockquote(E);i[i.length-1]=w,a=a.substring(0,a.length-_.raw.length)+w.raw,l=l.substring(0,l.length-_.text.length)+w.text;break}else if((y==null?void 0:y.type)==="list"){let _=y,E=_.raw+"\n"+n.join("\n"),w=this.list(E);i[i.length-1]=w,a=a.substring(0,a.length-y.raw.length)+w.raw,l=l.substring(0,l.length-_.raw.length)+w.raw,n=E.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:a,tokens:i,text:l}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,l={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?"\\d{1,9}\\".concat(n.slice(-1)):"\\".concat(n),this.options.pedantic&&(n=a?n:"[*+-]");let i=this.rules.other.listItemRegex(n),u=!1;for(;e;){let d=!1,m="",p="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;m=t[0],e=e.substring(m.length);let T=E2(t[2].split("\n",1)[0],t[1].length),y=e.split("\n",1)[0],_=!T.trim(),E=0;if(this.options.pedantic?(E=2,p=T.trimStart()):_?E=t[1].length+1:(E=T.search(this.rules.other.nonSpaceChar),E=E>4?1:E,p=T.slice(E),E+=t[1].length),_&&this.rules.other.blankLine.test(y)&&(m+=y+"\n",e=e.substring(y.length+1),d=!0),!d){let w=this.rules.other.nextBulletRegex(E),R=this.rules.other.hrRegex(E),g=this.rules.other.fencesBeginRegex(E),b=this.rules.other.headingBeginRegex(E),k=this.rules.other.htmlBeginRegex(E),x=this.rules.other.blockquoteBeginRegex(E);for(;e;){let N=e.split("\n",1)[0],z;if(y=N,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting,"  "),z=y):z=y.replace(this.rules.other.tabCharGlobal,"    "),g.test(y)||b.test(y)||k.test(y)||x.test(y)||w.test(y)||R.test(y))break;if(z.search(this.rules.other.nonSpaceChar)>=E||!y.trim())p+="\n"+z.slice(E);else{if(_||T.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||g.test(T)||b.test(T)||R.test(T))break;p+="\n"+y}_=!y.trim(),m+=N+"\n",e=e.substring(N.length+1),T=z.slice(E)}}l.loose||(u?l.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(u=!0)),l.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=m}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let d of l.items){this.lexer.state.top=!1,d.tokens=this.lexer.blockTokens(d.text,[]);let m=d.tokens[0];if(d.task&&((m==null?void 0:m.type)==="text"||(m==null?void 0:m.type)==="paragraph")){d.text=d.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let T=this.lexer.inlineQueue.length-1;T>=0;T--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[T].src)){this.lexer.inlineQueue[T].src=this.lexer.inlineQueue[T].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(d.raw);if(p){let T={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};d.checked=T.checked,l.loose?d.tokens[0]&&["paragraph","text"].includes(d.tokens[0].type)&&"tokens"in d.tokens[0]&&d.tokens[0].tokens?(d.tokens[0].raw=T.raw+d.tokens[0].raw,d.tokens[0].text=T.raw+d.tokens[0].text,d.tokens[0].tokens.unshift(T)):d.tokens.unshift({type:"paragraph",raw:T.raw,text:T.raw,tokens:[T]}):d.tokens.unshift(T)}}else d.task&&(d.task=!1);if(!l.loose){let p=d.tokens.filter(y=>y.type==="space"),T=p.length>0&&p.some(y=>this.rules.other.anyLine.test(y.raw));l.loose=T}}if(l.loose)for(let d of l.items){d.loose=!0;for(let m of d.tokens)m.type==="text"&&(m.type="paragraph")}return l}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=Q1(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Ml(t[0],"\n"),href:a,title:l}}}table(e){var u;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Z1(t[1]),a=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(u=t[3])!=null&&u.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:Ml(t[0],"\n"),header:[],align:[],rows:[]};if(n.length===a.length){for(let c of a)this.rules.other.tableAlignRight.test(c)?i.align.push("right"):this.rules.other.tableAlignCenter.test(c)?i.align.push("center"):this.rules.other.tableAlignLeft.test(c)?i.align.push("left"):i.align.push(null);for(let c=0;c<n.length;c++)i.header.push({text:n[c],tokens:this.lexer.inline(n[c]),header:!0,align:i.align[c]});for(let c of l)i.rows.push(Z1(c,i.header.length).map((d,m)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:i.align[m]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ml(t[0],"\n"),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)==="\n"?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Ml(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=x2(t[2],"()");if(i===-2)return;if(i>-1){let u=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,u).trim(),t[3]=""}}let a=t[2],l="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(a);i&&(a=i[1],l=i[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?a=a.slice(1):a=a.slice(1,-1)),X1(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let a=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=t[a.toLowerCase()];if(!l){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return X1(n,l,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[3])||!n||this.rules.inline.punctuation.exec(n))){let l=[...a[0]].length-1,i,u,c=l,d=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,t=t.slice(-1*e.length+l);(a=m.exec(t))!==null;){if(i=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!i)continue;if(u=[...i].length,a[3]||a[4]){c+=u;continue}else if((a[5]||a[6])&&l%3&&!((l+u)%3)){d+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c+d);let p=[...a[0]][0].length,T=e.slice(0,l+a.index+p+u);if(Math.min(l,u)%2){let _=T.slice(1,-1);return{type:"em",raw:T,text:_,tokens:this.lexer.inlineTokens(_)}}let y=T.slice(2,-2);return{type:"strong",raw:T,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(n),l=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return a&&l&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let a=this.rules.inline.delLDelim.exec(e);if(a&&(!a[1]||!n||this.rules.inline.punctuation.exec(n))){let l=[...a[0]].length-1,i,u,c=l,d=this.rules.inline.delRDelim;for(d.lastIndex=0,t=t.slice(-1*e.length+l);(a=d.exec(t))!==null;){if(i=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!i||(u=[...i].length,u!==l))continue;if(a[3]||a[4]){c+=u;continue}if(c-=u,c>0)continue;u=Math.min(u,u+c);let m=[...a[0]][0].length,p=e.slice(0,l+a.index+m+u),T=p.slice(l,-l);return{type:"del",raw:p,text:T,tokens:this.lexer.inlineTokens(T)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=t[1],a="mailto:"+n):(n=t[1],a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n,a;let t;if(t=this.rules.inline.url.exec(e)){let l,i;if(t[2]==="@")l=t[0],i="mailto:"+l;else{let u;do u=t[0],t[0]=(a=(n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])!=null?a:"";while(u!==t[0]);l=t[0],t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},jn=class zm{constructor(t){F(this,"tokens");F(this,"options");F(this,"state");F(this,"inlineQueue");F(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||pi,this.options.tokenizer=this.options.tokenizer||new Kc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ot,block:Qc.normal,inline:yu.normal};this.options.pedantic?(n.block=Qc.pedantic,n.inline=yu.pedantic):this.options.gfm&&(n.block=Qc.gfm,this.options.breaks?n.inline=yu.breaks:n.inline=yu.gfm),this.tokenizer.rules=n}static get rules(){return{block:Qc,inline:yu}}static lex(t,n){return new zm(n).lex(t)}static lexInline(t,n){return new zm(n).inlineTokens(t)}lex(t){t=t.replace(Ot.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let a=this.inlineQueue[n];this.inlineTokens(a.src,a.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],a=!1){var i,u,c;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ot.tabCharGlobal,"    ").replace(Ot.spaceLine,""));let l=1/0;for(;t;){if(t.length<l)l=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let d;if((u=(i=this.options.extensions)==null?void 0:i.block)!=null&&u.some(p=>(d=p.call({lexer:this},t,n))?(t=t.substring(d.raw.length),n.push(d),!0):!1))continue;if(d=this.tokenizer.space(t)){t=t.substring(d.raw.length);let p=n.at(-1);d.raw.length===1&&p!==void 0?p.raw+="\n":n.push(d);continue}if(d=this.tokenizer.code(t)){t=t.substring(d.raw.length);let p=n.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith("\n")?"":"\n")+d.raw,p.text+="\n"+d.text,this.inlineQueue.at(-1).src=p.text):n.push(d);continue}if(d=this.tokenizer.fences(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.heading(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.hr(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.blockquote(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.list(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.html(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.def(t)){t=t.substring(d.raw.length);let p=n.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith("\n")?"":"\n")+d.raw,p.text+="\n"+d.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[d.tag]||(this.tokens.links[d.tag]={href:d.href,title:d.title},n.push(d));continue}if(d=this.tokenizer.table(t)){t=t.substring(d.raw.length),n.push(d);continue}if(d=this.tokenizer.lheading(t)){t=t.substring(d.raw.length),n.push(d);continue}let m=t;if((c=this.options.extensions)!=null&&c.startBlock){let p=1/0,T=t.slice(1),y;this.options.extensions.startBlock.forEach(_=>{y=_.call({lexer:this},T),typeof y=="number"&&y>=0&&(p=Math.min(p,y))}),p<1/0&&p>=0&&(m=t.substring(0,p+1))}if(this.state.top&&(d=this.tokenizer.paragraph(m))){let p=n.at(-1);a&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith("\n")?"":"\n")+d.raw,p.text+="\n"+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):n.push(d),a=m.length!==t.length,t=t.substring(d.raw.length);continue}if(d=this.tokenizer.text(t)){t=t.substring(d.raw.length);let p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith("\n")?"":"\n")+d.raw,p.text+="\n"+d.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):n.push(d);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var m,p,T,y,_,E;this.tokenizer.lexer=this;let a=t,l=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(a))!==null;)w.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(a))!==null;)a=a.slice(0,l.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(l=this.tokenizer.rules.inline.blockSkip.exec(a))!==null;)i=l[2]?l[2].length:0,a=a.slice(0,l.index+i)+"["+"a".repeat(l[0].length-i-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=(T=(p=(m=this.options.hooks)==null?void 0:m.emStrongMask)==null?void 0:p.call({lexer:this},a))!=null?T:a;let u=!1,c="",d=1/0;for(;t;){if(t.length<d)d=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}u||(c=""),u=!1;let w;if((_=(y=this.options.extensions)==null?void 0:y.inline)!=null&&_.some(g=>(w=g.call({lexer:this},t,n))?(t=t.substring(w.raw.length),n.push(w),!0):!1))continue;if(w=this.tokenizer.escape(t)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.tag(t)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.link(t)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(w.raw.length);let g=n.at(-1);w.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=w.raw,g.text+=w.text):n.push(w);continue}if(w=this.tokenizer.emStrong(t,a,c)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.codespan(t)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.br(t)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.del(t,a,c)){t=t.substring(w.raw.length),n.push(w);continue}if(w=this.tokenizer.autolink(t)){t=t.substring(w.raw.length),n.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(t))){t=t.substring(w.raw.length),n.push(w);continue}let R=t;if((E=this.options.extensions)!=null&&E.startInline){let g=1/0,b=t.slice(1),k;this.options.extensions.startInline.forEach(x=>{k=x.call({lexer:this},b),typeof k=="number"&&k>=0&&(g=Math.min(g,k))}),g<1/0&&g>=0&&(R=t.substring(0,g+1))}if(w=this.tokenizer.inlineText(R)){t=t.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(c=w.raw.slice(-1)),u=!0;let g=n.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=w.raw,g.text+=w.text):n.push(w);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},Jc=class{constructor(e){F(this,"options");F(this,"parser");this.options=e||pi}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let a=(i=(t||"").match(Ot.notSpaceStart))==null?void 0:i[0],l=e.replace(Ot.endingNewline,"")+"\n";return a?'<pre><code class="language-'+fa(a)+'">'+(n?l:fa(l,!0))+"</code></pre>\n":"<pre><code>"+(n?l:fa(l,!0))+"</code></pre>\n"}blockquote({tokens:e}){return"<blockquote>\n".concat(this.parser.parse(e),"</blockquote>\n")}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return"<h".concat(t,">").concat(this.parser.parseInline(e),"</h").concat(t,">\n")}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,a="";for(let u=0;u<e.items.length;u++){let c=e.items[u];a+=this.listitem(c)}let l=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+l+i+">\n"+a+"</"+l+">\n"}listitem(e){return"<li>".concat(this.parser.parse(e.tokens),"</li>\n")}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return"<p>".concat(this.parser.parseInline(e),"</p>\n")}table(e){let t="",n="";for(let l=0;l<e.header.length;l++)n+=this.tablecell(e.header[l]);t+=this.tablerow({text:n});let a="";for(let l=0;l<e.rows.length;l++){let i=e.rows[l];n="";for(let u=0;u<i.length;u++)n+=this.tablecell(i[u]);a+=this.tablerow({text:n})}return a&&(a="<tbody>".concat(a,"</tbody>")),"<table>\n<thead>\n"+t+"</thead>\n"+a+"</table>\n"}tablerow({text:e}){return"<tr>\n".concat(e,"</tr>\n")}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"</".concat(n,">\n")}strong({tokens:e}){return"<strong>".concat(this.parser.parseInline(e),"</strong>")}em({tokens:e}){return"<em>".concat(this.parser.parseInline(e),"</em>")}codespan({text:e}){return"<code>".concat(fa(e,!0),"</code>")}br(e){return"<br>"}del({tokens:e}){return"<del>".concat(this.parser.parseInline(e),"</del>")}link({href:e,title:t,tokens:n}){let a=this.parser.parseInline(n),l=V1(e);if(l===null)return a;e=l;let i='<a href="'+e+'"';return t&&(i+=' title="'+fa(t)+'"'),i+=">"+a+"</a>",i}image({href:e,title:t,text:n,tokens:a}){a&&(n=this.parser.parseInline(a,this.parser.textRenderer));let l=V1(e);if(l===null)return fa(n);e=l;let i='<img src="'.concat(e,'" alt="').concat(fa(n),'"');return t&&(i+=' title="'.concat(fa(t),'"')),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:fa(e.text)}},Vm=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Gn=class Cm{constructor(t){F(this,"options");F(this,"renderer");F(this,"textRenderer");this.options=t||pi,this.options.renderer=this.options.renderer||new Jc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vm}static parse(t,n){return new Cm(n).parse(t)}static parseInline(t,n){return new Cm(n).parseInline(t)}parse(t){var a,l;this.renderer.parser=this;let n="";for(let i=0;i<t.length;i++){let u=t[i];if((l=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&l[u.type]){let d=u,m=this.options.extensions.renderers[d.type].call({parser:this},d);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(d.type)){n+=m||"";continue}}let c=u;switch(c.type){case"space":{n+=this.renderer.space(c);break}case"hr":{n+=this.renderer.hr(c);break}case"heading":{n+=this.renderer.heading(c);break}case"code":{n+=this.renderer.code(c);break}case"table":{n+=this.renderer.table(c);break}case"blockquote":{n+=this.renderer.blockquote(c);break}case"list":{n+=this.renderer.list(c);break}case"checkbox":{n+=this.renderer.checkbox(c);break}case"html":{n+=this.renderer.html(c);break}case"def":{n+=this.renderer.def(c);break}case"paragraph":{n+=this.renderer.paragraph(c);break}case"text":{n+=this.renderer.text(c);break}default:{let d='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return n}parseInline(t,n=this.renderer){var l,i;this.renderer.parser=this;let a="";for(let u=0;u<t.length;u++){let c=t[u];if((i=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&i[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){a+=m||"";continue}}let d=c;switch(d.type){case"escape":{a+=n.text(d);break}case"html":{a+=n.html(d);break}case"link":{a+=n.link(d);break}case"image":{a+=n.image(d);break}case"checkbox":{a+=n.checkbox(d);break}case"strong":{a+=n.strong(d);break}case"em":{a+=n.em(d);break}case"codespan":{a+=n.codespan(d);break}case"br":{a+=n.br(d);break}case"del":{a+=n.del(d);break}case"text":{a+=n.text(d);break}default:{let m='Token with "'+d.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return a}},Xc,bu=(Xc=class{constructor(e){F(this,"options");F(this,"block");this.options=e||pi}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?jn.lex:jn.lexInline}provideParser(e=this.block){return e?Gn.parse:Gn.parseInline}},F(Xc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),F(Xc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Xc),A2=class{constructor(...e){F(this,"defaults",Um());F(this,"options",this.setOptions);F(this,"parse",this.parseMarkdown(!0));F(this,"parseInline",this.parseMarkdown(!1));F(this,"Parser",Gn);F(this,"Renderer",Jc);F(this,"TextRenderer",Vm);F(this,"Lexer",jn);F(this,"Tokenizer",Kc);F(this,"Hooks",bu);this.use(...e)}walkTokens(e,t){var a,l;let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let u=i;for(let c of u.header)n=n.concat(this.walkTokens(c.tokens,t));for(let c of u.rows)for(let d of c)n=n.concat(this.walkTokens(d.tokens,t));break}case"list":{let u=i;n=n.concat(this.walkTokens(u.items,t));break}default:{let u=i;(l=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&l[u.type]?this.defaults.extensions.childTokens[u.type].forEach(c=>{let d=u[c].flat(1/0);n=n.concat(this.walkTokens(d,t))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let a=B({},n);if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let i=t.renderers[l.name];i?t.renderers[l.name]=function(...u){let c=l.renderer.apply(this,u);return c===!1&&(c=i.apply(this,u)),c}:t.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[l.level];i?i.unshift(l.tokenizer):t[l.level]=[l.tokenizer],l.start&&(l.level==="block"?t.startBlock?t.startBlock.push(l.start):t.startBlock=[l.start]:l.level==="inline"&&(t.startInline?t.startInline.push(l.start):t.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(t.childTokens[l.name]=l.childTokens)}),a.extensions=t),n.renderer){let l=this.defaults.renderer||new Jc(this.defaults);for(let i in n.renderer){if(!(i in l))throw new Error("renderer '".concat(i,"' does not exist"));if(["options","parser"].includes(i))continue;let u=i,c=n.renderer[u],d=l[u];l[u]=(...m)=>{let p=c.apply(l,m);return p===!1&&(p=d.apply(l,m)),p||""}}a.renderer=l}if(n.tokenizer){let l=this.defaults.tokenizer||new Kc(this.defaults);for(let i in n.tokenizer){if(!(i in l))throw new Error("tokenizer '".concat(i,"' does not exist"));if(["options","rules","lexer"].includes(i))continue;let u=i,c=n.tokenizer[u],d=l[u];l[u]=(...m)=>{let p=c.apply(l,m);return p===!1&&(p=d.apply(l,m)),p}}a.tokenizer=l}if(n.hooks){let l=this.defaults.hooks||new bu;for(let i in n.hooks){if(!(i in l))throw new Error("hook '".concat(i,"' does not exist"));if(["options","block"].includes(i))continue;let u=i,c=n.hooks[u],d=l[u];bu.passThroughHooks.has(i)?l[u]=m=>{if(this.defaults.async&&bu.passThroughHooksRespectAsync.has(i))return(async()=>{let T=await c.call(l,m);return d.call(l,T)})();let p=c.call(l,m);return d.call(l,p)}:l[u]=(...m)=>{if(this.defaults.async)return(async()=>{let T=await c.apply(l,m);return T===!1&&(T=await d.apply(l,m)),T})();let p=c.apply(l,m);return p===!1&&(p=d.apply(l,m)),p}}a.hooks=l}if(n.walkTokens){let l=this.defaults.walkTokens,i=n.walkTokens;a.walkTokens=function(u){let c=[];return c.push(i.call(this,u)),l&&(c=c.concat(l.call(this,u))),c}}this.defaults=B(B({},this.defaults),a)}),this}setOptions(e){return this.defaults=B(B({},this.defaults),e),this}lexer(e,t){return jn.lex(e,t!=null?t:this.defaults)}parser(e,t){return Gn.parse(e,t!=null?t:this.defaults)}parseMarkdown(e){return(t,n)=>{let a=B({},n),l=B(B({},this.defaults),a),i=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&a.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let u=l.hooks?await l.hooks.preprocess(t):t,c=await(l.hooks?await l.hooks.provideLexer(e):e?jn.lex:jn.lexInline)(u,l),d=l.hooks?await l.hooks.processAllTokens(c):c;l.walkTokens&&await Promise.all(this.walkTokens(d,l.walkTokens));let m=await(l.hooks?await l.hooks.provideParser(e):e?Gn.parse:Gn.parseInline)(d,l);return l.hooks?await l.hooks.postprocess(m):m})().catch(i);try{l.hooks&&(t=l.hooks.preprocess(t));let u=(l.hooks?l.hooks.provideLexer(e):e?jn.lex:jn.lexInline)(t,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let c=(l.hooks?l.hooks.provideParser(e):e?Gn.parse:Gn.parseInline)(u,l);return l.hooks&&(c=l.hooks.postprocess(c)),c}catch(u){return i(u)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let a="<p>An error occurred:</p><pre>"+fa(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}},mi=new A2;function we(e,t){return mi.parse(e,t)}we.options=we.setOptions=function(e){return mi.setOptions(e),we.defaults=mi.defaults,F1(we.defaults),we};we.getDefaults=Um;we.defaults=pi;we.use=function(...e){return mi.use(...e),we.defaults=mi.defaults,F1(we.defaults),we};we.walkTokens=function(e,t){return mi.walkTokens(e,t)};we.parseInline=mi.parseInline;we.Parser=Gn;we.parser=Gn.parse;we.Renderer=Jc;we.TextRenderer=Vm;we.Lexer=jn;we.lexer=jn.lex;we.Tokenizer=Kc;we.Hooks=bu;we.parse=we;var xO=we.options,EO=we.setOptions,wO=we.use,AO=we.walkTokens,MO=we.parseInline;var OO=Gn.parse,DO=jn.lex;var aS=ve(jt()),lS=ve(et());we.setOptions({pedantic:!1,gfm:!0});function Ic({text:e,className:t}){let n=aS.default.useMemo(()=>{if(!e)return"";let a=we.parse(e,{async:!1});return B1.sanitize(typeof a=="string"?a:"")},[e]);return(0,lS.jsx)("div",{className:t,dangerouslySetInnerHTML:{__html:n}})}var W=ve(et());function iS({initial:e,onNotifyRemove:t,onUpdated:n}){var Oe;let a=Jt(),[l,i]=Ol.default.useState(e),[u,c]=Ol.default.useState(e),[d,m]=Ol.default.useState(!1),[p,T]=Ol.default.useState(!1),[y,_]=Ol.default.useState(!1),[E,w]=Ol.default.useState(!1),[R,g]=Ol.default.useState(null),b="".concat(l.bid.toString(),"_tags"),k="".concat(sa(a.userR),"/b:").concat(l.slug),x=ne=>"".concat(sa(a.userR),"/t:").concat(Ur(ne)),N=ne=>{let ee=new Date(ne);return new Date(ee.getTime()+2).toISOString()},z="".concat(sa(a.userR),"?before=").concat(encodeURIComponent(N(new Date(l.time)))),Y=e1(l.time),q="".concat(l.time.slice(0,16),"Z"),K=a.dat.suggestTags===!0,{tagInputRef:J,suggestionState:be,closeSuggestions:Ue,onTagsChange:We,onTagsKeyDown:I,onTagsSelect:oe,onSuggestionHover:_t,onSuggestionPick:Vn}=qc({enabled:K,tags:u.tags,onTagsUpdate:ne=>{c(ee=>$(B({},ee),{tags:ne}))}});async function pt(ne){await t1(l.bid,ne?"star":"unstar");let ee=$(B({},l),{selected:ne});i(ee),c(Dt=>$(B({},Dt),{selected:ne})),n(ee)}async function Zn(){await Yc(l.bid),t()}async function Nn(){await n1(l.bid);let ne=$(B({},l),{toread:!1});i(ne),n(ne)}function da(ne){c(l),T(ne),g(null),w(!1),Ue(),ne&&Uc(b)}async function Qn(){_(!0);try{let ne=await Hc(u);ne!=null&&c(ee=>$(B({},ee),{title:ne}))}finally{_(!1)}}async function Q(){w(!0),await a1(l.bid)}let Le=async ne=>{ne.preventDefault(),g(null);let ee=$(B({},u),{tags:jc(u.tags)}),Dt=await Lc(ee);Dt.ok&&Dt.status>=200&&Dt.status<300?(i(ee),T(!1),n(ee)):g(Dt.bodyText)},Va=E||u.private||l.url!==u.url;return(0,W.jsxs)("div",{id:String(l.bid),className:"bookmark w-100 mw7 pa1 mb3".concat(l.private?" private":""),children:[a.dat.isowner?(0,W.jsx)("div",{className:"star fl pointer".concat(l.selected?" selected":""),children:(0,W.jsx)("button",{className:"thm-text-border",onClick:()=>{pt(!l.selected)},type:"button",children:"\u272D"})}):null,p?(0,W.jsxs)("div",{className:"edit_bookmark_form pa2 pt0 thm-bg-surface",children:[R?(0,W.jsx)("div",{className:"alert alert-err",children:R}):null,(0,W.jsxs)("form",{onSubmit:ne=>{Le(ne)},children:[(0,W.jsx)("div",{children:"url"}),(0,W.jsx)("input",{type:"url",className:"url w-100 mb2 pt1 edit_form_input",required:!0,name:"url",value:u.url,onChange:ne=>{c(ee=>$(B({},ee),{url:ne.target.value}))}}),(0,W.jsx)("div",{children:"title"}),(0,W.jsxs)("div",{className:"flex",children:[(0,W.jsx)("input",{type:"text",className:"title w-100 mb2 pt1 edit_form_input",name:"title",value:u.title,onChange:ne=>{c(ee=>$(B({},ee),{title:ne.target.value}))}}),(0,W.jsx)("button",{disabled:y,type:"button",onClick:()=>{Qn()},className:"ml1 pa1 mb2 thm-text-primary ba thm-border-default thm-bg-secondary pointer rdim f7".concat(y?" thm-bg-disabled":""),children:"fetch"})]}),(0,W.jsx)("div",{children:"description"}),(0,W.jsx)("textarea",{className:"description w-100 mb1 pt1 edit_form_input",name:"description",rows:5,value:u.description,onChange:ne=>{c(ee=>$(B({},ee),{description:ne.target.value}))}}),(0,W.jsxs)("div",{id:"tags_input_box",children:[(0,W.jsx)("div",{children:"tags"}),(0,W.jsxs)("div",{className:"relative",children:[(0,W.jsx)("input",{id:b,ref:J,type:"text",className:"tags w-100 mb1 pt1 edit_form_input",name:"tags",autoComplete:"off",autoCapitalize:"off",value:u.tags,onChange:We,onKeyDown:I,onClick:oe,onSelect:oe,onBlur:()=>{window.setTimeout(()=>{Ue()},0)}}),be!=null?(0,W.jsx)(Gc,{suggestionState:be,onHover:_t,onPick:Vn}):null]})]}),(0,W.jsxs)("div",{className:"edit_form_checkboxes mv3",children:[(0,W.jsx)("input",{type:"checkbox",className:"private pointer",id:"edit_private",name:"private",checked:u.private,onChange:ne=>{c(ee=>$(B({},ee),{private:ne.target.checked}))}})," ",(0,W.jsx)("label",{htmlFor:"edit_private",className:"mr2",children:"private"})," ",(0,W.jsx)("input",{type:"checkbox",className:"toread pointer",id:"edit_toread",name:"toread",checked:u.toread,onChange:ne=>{c(ee=>$(B({},ee),{toread:ne.target.checked}))}})," ",(0,W.jsx)("label",{htmlFor:"edit_toread",children:"to-read"})]}),(0,W.jsxs)("div",{className:"flex justify-between items-center",children:[(0,W.jsxs)("div",{children:[(0,W.jsx)("input",{type:"submit",className:"mr1 pv1 ph2 thm-text-primary ba thm-border-default thm-bg-secondary pointer rdim",value:"save"})," ",(0,W.jsx)("input",{type:"reset",className:"pv1 ph2 thm-text-primary ba thm-border-default thm-bg-secondary pointer rdim",value:"cancel",onClick:()=>{da(!1)}})]}),a.dat.archiveBackendEnabled?(0,W.jsx)("button",{type:"button",disabled:Va,onClick:()=>{Q()},className:"pv1 ph2 thm-text-primary ba thm-border-default thm-bg-secondary".concat(E?" thm-bg-disabled":"").concat(Va?" not-allowed o-20":""),children:E?"archiving":"archive"}):null]})]})]}):(0,W.jsxs)("div",{className:"display",children:[(0,W.jsx)("a",{href:l.url,target:"_blank",rel:"noreferrer",className:"link f5 lh-title".concat(l.toread?" unread":""),children:l.title===""?"[no title]":l.title}),(0,W.jsx)("br",{}),(0,W.jsx)("a",{href:l.url,className:"link f7 thm-text-tertiary thm-hover-link-color",children:l.url}),l.archiveUrl?(0,W.jsx)("a",{href:l.archiveUrl,className:"link f7 thm-text-tertiary thm-hover-link-color ml2 thm-text-success",target:"_blank",rel:"noreferrer",title:"archive link",children:"\u2611"}):null,(0,W.jsx)("br",{}),(0,W.jsx)("div",{className:"description mt1 thm-text-secondary",children:(0,W.jsx)(Ic,{text:l.description})}),(0,W.jsx)("div",{className:"tags",children:l.tags!==""?l.tags.split(" ").map(ne=>(0,W.jsx)("a",{className:"link tag mr1".concat(ne.slice(0,1)==="."?" private":""),href:x(ne),children:ne},ne)):null}),(0,W.jsxs)("div",{children:[(0,W.jsx)("a",{className:"link f7 di mr5 thm-text-tertiary",href:k,title:q,children:Y}),a.dat.isowner?(0,W.jsxs)("div",{className:"edit_links di",children:[(0,W.jsx)("button",{type:"button",onClick:()=>{da(!0)},className:"edit thm-text-muted thm-hover-link-color",children:"edit\xA0\xA0"}),(0,W.jsxs)("div",{className:"delete_link di",children:[(0,W.jsx)("button",{type:"button",onClick:()=>{m(!0)},className:"delete thm-text-muted thm-hover-link-color".concat(d?" dn":""),children:"delete"}),(0,W.jsxs)("span",{className:"confirm thm-text-error".concat(d?"":" dn"),children:[(0,W.jsx)("button",{type:"button",onClick:()=>{m(!1)},children:"cancel\xA0/\xA0"}),(0,W.jsx)("button",{type:"button",onClick:()=>{Zn()},className:"thm-text-error",children:"destroy"})]})]})]}):null,a.dat.isowner&&l.toread?(0,W.jsxs)("div",{className:"read di",children:["\xA0\xA0",(0,W.jsx)("button",{onClick:()=>{Nn()},className:"mark_read",type:"button",children:"mark as read"})]}):null]}),((Oe=a.dat.filter)==null?void 0:Oe.tag)=="FilterSingle"?(0,W.jsx)("div",{className:"mt2",children:(0,W.jsx)("a",{className:"link f7 di mr5",href:z,children:"view in context"})}):null]})]})}var Zm=ve(et());function sS({initial:e}){let t=hu(i=>i.bmarks),n=hu(i=>i.setAll),a=hu(i=>i.removeById),l=hu(i=>i.upsert);return rS.default.useEffect(()=>{n(e)},[e,n]),(0,Zm.jsx)("div",{children:t.map(i=>(0,Zm.jsx)(iS,{initial:i,onNotifyRemove:()=>{a(i.bid)},onUpdated:u=>{l(u)}},i.bid))})}var uS=ve(jt());var $t=ve(et());function M2(e){let t=e.split("\n");return(0,$t.jsxs)($t.Fragment,{children:[t[0],t.slice(1).map((n,a)=>(0,$t.jsxs)(uS.default.Fragment,{children:[(0,$t.jsx)("br",{}),n]},a))]})}function oS({initial:e}){let t=Jt(),n=a=>"".concat(sa(t.userR),"/notes/").concat(a);return(0,$t.jsx)("div",{children:e.map(a=>{var i,u;let l=zr(a.created);return(0,$t.jsx)("div",{id:String(a.id),className:"note w-100 mw7 pa1 mb2".concat(a.shared?"":" private"),children:(0,$t.jsxs)("div",{className:"display",children:[(0,$t.jsx)("a",{href:n(a.slug),className:"link f5 lh-title",children:a.title===""?"[no title]":a.title}),(0,$t.jsx)("br",{}),(0,$t.jsx)("div",{className:"description mt1 thm-text-secondary",children:M2(a.text.slice(0,200))}),(0,$t.jsx)("a",{className:"link f7 dib thm-text-tertiary w4",title:(i=l==null?void 0:l[1])!=null?i:a.created,href:n(a.slug),children:(u=l==null?void 0:l[0])!=null?u:"\xA0"})]})},a.id)})})}var Dl=ve(jt());var ae=ve(et());function O2(e){let t=e.split("\n");return(0,ae.jsxs)(ae.Fragment,{children:[t[0],t.slice(1).map((n,a)=>(0,ae.jsxs)(Dl.default.Fragment,{children:[(0,ae.jsx)("br",{}),n]},a))]})}function cS({initial:e}){var k,x;let t=Jt(),[n,a]=Dl.default.useState(e),[l,i]=Dl.default.useState(e),[u,c]=Dl.default.useState(!1),[d,m]=Dl.default.useState(e.id<=0),[p,T]=Dl.default.useState(!1),[y,_]=Dl.default.useState(null),E="".concat(n.id.toString(),"_text"),w=zr(n.created);function R(N){i(n),m(N);let z=cu(),Y=fu(z,"next");!N&&Y==="closeWindow"?Cr(window):N&&Uc(E)}async function g(){await u1(n.id),T(!0)}let b=async N=>{N.preventDefault(),_(null);let z=await l1(l);if(z.ok&&z.status>=200&&z.status<300){let Y=cu(),q=fu(Y,"next"),K=document.referrer,J=window.location.origin;q==="closeWindow"?Cr(window):q==="back"?K.startsWith(J)?window.location.href=K:window.location.href=J:l.id===0?window.location.href=sa(t.noteR):(a(l),m(!1))}else _(z.bodyText),console.log(z.bodyText)};return p?(0,ae.jsx)("p",{className:"thm-text-error",children:"you killed this note"}):(0,ae.jsx)("div",{id:String(n.id),className:"note w-100 mw7 pa1 mb2",children:d?(0,ae.jsxs)("form",{onSubmit:N=>{b(N)},children:[y?(0,ae.jsx)("div",{className:"alert alert-err",children:y}):null,(0,ae.jsx)("p",{className:"mt2 mb1",children:"title:"}),(0,ae.jsx)("input",{type:"text",className:"title w-100 mb1 pt1 edit_form_input",name:"title",value:l.title,onChange:N=>{i(z=>$(B({},z),{title:N.target.value}))},autoFocus:l.title===""}),(0,ae.jsx)("br",{}),(0,ae.jsx)("p",{className:"mt2 mb1",children:"description:"}),(0,ae.jsx)("textarea",{id:E,className:"description w-100 mb1 pt1 edit_form_input",name:"text",rows:25,value:l.text,onChange:N=>{i(z=>$(B({},z),{text:N.target.value}))}}),(0,ae.jsxs)("div",{className:"edit_form_checkboxes mb3",children:[(0,ae.jsx)("input",{type:"checkbox",className:"is-markdown pointer",id:"edit_ismarkdown",name:"ismarkdown",checked:l.isMarkdown,onChange:N=>{i(z=>$(B({},z),{isMarkdown:N.target.checked}))}})," ",(0,ae.jsx)("label",{htmlFor:"edit_ismarkdown",className:"mr2",children:"use markdown?"}),(0,ae.jsx)("br",{})]}),(0,ae.jsxs)("div",{className:"edit_form_checkboxes mb3",children:[(0,ae.jsx)("input",{type:"checkbox",className:"is-markdown pointer",id:"edit_shared",name:"shared",checked:l.shared,onChange:N=>{i(z=>$(B({},z),{shared:N.target.checked}))}})," ",(0,ae.jsx)("label",{htmlFor:"edit_shared",className:"mr2",children:"public?"}),(0,ae.jsx)("br",{})]}),(0,ae.jsx)("input",{type:"submit",className:"mr1 pv1 ph2 thm-text-primary ba thm-border-default thm-bg-secondary pointer rdim",value:"save"})," ",(0,ae.jsx)("input",{type:"reset",className:"pv1 ph2 thm-text-primary ba thm-border-default thm-bg-secondary pointer rdim",value:"cancel",onClick:()=>{R(!1)}})]}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsxs)("div",{className:"display",children:[(0,ae.jsx)("div",{className:"link f5 lh-title",children:n.title===""?"[no title]":n.title}),(0,ae.jsx)("br",{}),n.isMarkdown?(0,ae.jsx)("div",{className:"description mt1",children:(0,ae.jsx)(Ic,{text:n.text})}):(0,ae.jsx)("div",{className:"description mt1 thm-text-secondary",children:O2(n.text)}),(0,ae.jsxs)("div",{className:"link f7 dib thm-text-tertiary w4",children:[(0,ae.jsx)("span",{title:(k=w==null?void 0:w[1])!=null?k:n.created,children:(x=w==null?void 0:w[0])!=null?x:"\xA0"})," - ",(0,ae.jsx)("span",{className:"thm-text-tertiary",children:n.shared?"public":"private"})]})]}),t.dat.isowner?(0,ae.jsxs)("div",{className:"edit_links db mt3",children:[(0,ae.jsx)("button",{type:"button",onClick:()=>{R(!0)},className:"edit thm-text-muted thm-hover-link-color",children:"edit\xA0\xA0"}),(0,ae.jsxs)("div",{className:"delete_link di",children:[(0,ae.jsx)("button",{type:"button",onClick:()=>{c(!0)},className:"delete thm-text-muted thm-hover-link-color".concat(u?" dn":""),children:"delete"}),(0,ae.jsxs)("span",{className:"confirm thm-text-error".concat(u?"":" dn"),children:[(0,ae.jsx)("button",{type:"button",onClick:()=>{c(!1)},children:"cancel\xA0/\xA0"}),(0,ae.jsx)("button",{type:"button",onClick:()=>{g()},className:"thm-text-error",children:"destroy"})]})]})]}):null]})})}var Pc=ve(jt());var Su=Vc(e=>({mode:{kind:"none"},tagcloud:{},setMode:t=>{e({mode:t})},setTagCloud:t=>{e({tagcloud:t})}}));function fS(e){switch(e.mode){case"top":{let t=typeof e.value=="number"?e.value:Number(e.value);return Number.isFinite(t)?{kind:"top",expanded:e.expanded,value:t}:{kind:"none"}}case"lowerBound":{let t=typeof e.value=="number"?e.value:Number(e.value);return Number.isFinite(t)?{kind:"lowerBound",expanded:e.expanded,value:t}:{kind:"none"}}case"related":{let t=typeof e.value=="string"?e.value:"",n=t?t.split(" "):[];return{kind:"related",expanded:e.expanded,value:n}}default:return{kind:"none"}}}function Qm(e){switch(e.kind){case"top":return{mode:"top",value:e.value,expanded:e.expanded};case"lowerBound":return{mode:"lowerBound",value:e.value,expanded:e.expanded};case"related":return{mode:"related",value:e.value.join(" "),expanded:e.expanded};case"none":return{mode:"none",value:"",expanded:!1}}}function Rn(e){return e.kind==="none"?!1:e.expanded}function dS(e){return e.kind==="related"}function Xm(e,t){return e.kind==="none"?e:$(B({},e),{expanded:t})}var tt=ve(et());function hS(e,t,n,a,l,i){let u=e(a-n);return(a-n<.01||u===0?1:e(t-n)/u)*(i-l)+l}function mS(e,t,n,a){let l=Jt(),i=e.map(m=>m.toLowerCase()),u=Object.entries(a).sort((m,p)=>m[0].toLowerCase().localeCompare(p[0].toLowerCase())),c=m=>"".concat(sa(l.userR)).concat(m===""?"":"/t:".concat(m)),d=[];for(let[m,p]of u){let T=m.toLowerCase(),y=hS(R=>R,p,t,n,100,150),_=hS(R=>Math.log(1+R),p,t,n,.6,1),E={fontSize:"".concat(y.toString(),"%"),opacity:_},w=i.length===0?null:i.includes(T)?(0,tt.jsx)("a",{href:c(i.filter(R=>R!==T).map(Ur).join("+")),className:"link mr2 tag-exclude",children:"\u2296"}):(0,tt.jsx)("a",{href:c(i.concat([T]).map(Ur).join("+")),className:"link mr2 tag-include",children:"\u2295"});d.push((0,tt.jsx)("a",{href:c(Ur(m)),className:"link tag mr1",style:E,children:m},"".concat(m,"-tag"))),w&&d.push((0,tt.jsx)(Pc.default.Fragment,{children:w},"".concat(m,"-ie")))}return d}function pS({initialMode:e}){let t=Su(R=>R.mode),n=Su(R=>R.tagcloud),a=Su(R=>R.setMode),l=Su(R=>R.setTagCloud);if(Pc.default.useEffect(()=>{a(e)},[e]),Pc.default.useEffect(()=>{async function R(g){if(g.kind==="none")return;let b=await i1(Qm(g));l(b!=null?b:{})}R(t)},[t,l]),t.kind==="none")return(0,tt.jsx)("div",{className:"tag_cloud"});let i={kind:"top",expanded:Rn(t),value:200},u={kind:"lowerBound",expanded:Rn(t),value:1},c={kind:"lowerBound",expanded:Rn(t),value:2},d={kind:"lowerBound",expanded:Rn(t),value:5},m={kind:"lowerBound",expanded:Rn(t),value:10},p={kind:"lowerBound",expanded:Rn(t),value:20},T=Object.values(n),y=T.length?Math.min(...T):1,_=T.length?Math.max(...T):1;async function E(R){let g=Xm(t,R);a(g),await r1(Qm(g))}async function w(R){JSON.stringify(t)===JSON.stringify(R)?await E(!Rn(t)):a(Xm(R,!0))}return(0,tt.jsxs)("div",{className:"tag_cloud mv3",children:[(0,tt.jsxs)("div",{className:"tag_cloud_header mb2",children:[dS(t)?(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color mr1 b",onClick:()=>{E(!Rn(t))},children:"Related Tags"}):(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color mr1".concat(JSON.stringify(t)===JSON.stringify(i)?" b":""),title:"show a cloud of your most-used tags",onClick:()=>{w(i)},children:"Top Tags"}),(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color ml2 ".concat(JSON.stringify(t)===JSON.stringify(u)?" b":""),title:"show all tags",onClick:()=>{w(u)},children:"all"}),"\u2027",(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color".concat(JSON.stringify(t)===JSON.stringify(c)?" b":""),title:"show tags with at least 2 bookmarks",onClick:()=>{w(c)},children:"2"}),"\u2027",(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color".concat(JSON.stringify(t)===JSON.stringify(d)?" b":""),title:"show tags with at least 5 bookmarks",onClick:()=>{w(d)},children:"5"}),"\u2027",(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color".concat(JSON.stringify(t)===JSON.stringify(m)?" b":""),title:"show tags with at least 10 bookmarks",onClick:()=>{w(m)},children:"10"}),"\u2027",(0,tt.jsx)("button",{type:"button",className:"pa1 f7 link thm-hover-link-color".concat(JSON.stringify(t)===JSON.stringify(p)?" b":""),title:"show tags with at least 20 bookmarks",onClick:()=>{w(p)},children:"20"})]}),(0,tt.jsx)("button",{type:"button",className:"pa1 ml2 f7 link thm-text-faded thm-hover-link-color",onClick:()=>{E(!Rn(t))},children:Rn(t)?"hide":"show"})]}),Rn(t)?(0,tt.jsx)("div",{className:"tag_cloud_body",children:t.kind==="related"?mS(t.value,y,_,n):mS([],y,_,n)}):null]})}var yi=ve(et());function Gr(e){return document.querySelector(e)}function Tu(){let e=document.querySelector("#content");e&&e.setAttribute("view-rendered","")}var ED=e=>()=>{e.preventDefault(),c1()},wD=e=>t=>()=>{let n=Gr(e);n&&((0,gi.createRoot)(n).render((0,yi.jsx)(sS,{initial:t})),Tu())},AD=e=>t=>()=>{let n=Gr(e);n&&(0,gi.createRoot)(n).render((0,yi.jsx)(pS,{initialMode:fS(t)}))},MD=e=>t=>()=>{let n=Gr(e);n&&((0,gi.createRoot)(n).render((0,yi.jsx)(v1,{initial:t})),Tu())},OD=e=>t=>()=>{let n=Gr(e);n&&((0,gi.createRoot)(n).render((0,yi.jsx)(oS,{initial:t})),Tu())},DD=e=>t=>()=>{let n=Gr(e);n&&((0,gi.createRoot)(n).render((0,yi.jsx)(cS,{initial:t})),Tu())},RD=e=>t=>()=>{let n=Gr(e);n&&((0,gi.createRoot)(n).render((0,yi.jsx)(p1,{initial:t})),Tu())};function ND(){function e(u){return u==="light"||u==="dark"}function t(){let u=document.documentElement.dataset.colorScheme;return u==="light"||u==="dark"?u:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function n(u){document.documentElement.dataset.colorScheme=u}let a="espial-color-scheme",l=window.localStorage.getItem(a);e(l)&&n(l);let i=document.querySelector("#color-scheme-toggle");i&&i.addEventListener("click",u=>{u.preventDefault();let c=t()==="dark"?"light":"dark";n(c),window.localStorage.setItem(a,c)})}export{ND as initColorSchemeToggle,ED as logoutE,RD as renderAccountSettings,MD as renderAddForm,wD as renderBookmarks,DD as renderNote,OD as renderNotes,AD as renderTagCloud};
/*! Bundled license information:

scheduler/cjs/scheduler.production.js:
  (**
   * @license React
   * scheduler.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

react/cjs/react.production.js:
  (**
   * @license React
   * react.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

react-dom/cjs/react-dom.production.js:
  (**
   * @license React
   * react-dom.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

react-dom/cjs/react-dom-client.production.js:
  (**
   * @license React
   * react-dom-client.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

moment/moment.js:
  (*! moment.js *)
  (*! version : 2.30.1 *)
  (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
  (*! license : MIT *)
  (*! momentjs.com *)

react/cjs/react-jsx-runtime.production.js:
  (**
   * @license React
   * react-jsx-runtime.production.js
   *
   * Copyright (c) Meta Platforms, Inc. and affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)

ky/distribution/index.js:
  (*! MIT License © Sindre Sorhus *)

dompurify/dist/purify.es.mjs:
  (*! @license DOMPurify 3.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.7/LICENSE *)
*/
//# sourceMappingURL=app-WY46YY6F.min.js.map