g-comments 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +44 -8
- package/dist/{chunk-X6RAR374.cjs → chunk-IBNNENCZ.cjs} +14 -2
- package/dist/chunk-IBNNENCZ.cjs.map +1 -0
- package/dist/{chunk-6E3M3PQN.js → chunk-WACVXJHD.js} +14 -2
- package/dist/chunk-WACVXJHD.js.map +1 -0
- package/dist/element.d.ts +58 -5
- package/dist/element.js +983 -965
- package/dist/element.js.map +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{messages-BlBkT6Kr.d.cts → messages-C9bMljl3.d.cts} +51 -1
- package/dist/{messages-BlBkT6Kr.d.ts → messages-C9bMljl3.d.ts} +51 -1
- package/dist/react.cjs +236 -35
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +20 -5
- package/dist/react.d.ts +20 -5
- package/dist/react.js +206 -6
- package/dist/react.js.map +1 -1
- package/package.json +9 -9
- package/styles/styles.css +957 -947
- package/dist/chunk-6E3M3PQN.js.map +0 -1
- package/dist/chunk-X6RAR374.cjs.map +0 -1
package/dist/element.js
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
var tb=Object.create;var nm=Object.defineProperty;var nb=Object.getOwnPropertyDescriptor;var lb=Object.getOwnPropertyNames;var ab=Object.getPrototypeOf,ob=Object.prototype.hasOwnProperty;var Jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ib=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of lb(t))!ob.call(e,a)&&a!==n&&nm(e,a,{get:()=>t[a],enumerable:!(l=nb(t,a))||l.enumerable});return e};var D=(e,t,n)=>(n=e!=null?tb(ab(e)):{},ib(t||!e||!e.__esModule?nm(n,"default",{value:e,enumerable:!0}):n,e));var Ym=Jt(U=>{"use strict";var Ac=Symbol.for("react.transitional.element"),Vb=Symbol.for("react.portal"),jb=Symbol.for("react.fragment"),Qb=Symbol.for("react.strict_mode"),Xb=Symbol.for("react.profiler"),kb=Symbol.for("react.consumer"),Zb=Symbol.for("react.context"),Kb=Symbol.for("react.forward_ref"),Jb=Symbol.for("react.suspense"),Ib=Symbol.for("react.memo"),Mm=Symbol.for("react.lazy"),Pb=Symbol.for("react.activity"),$b=Symbol.for("react.view_transition"),Am=Symbol.iterator;function Fb(e){return e===null||typeof e!="object"?null:(e=Am&&e[Am]||e["@@iterator"],typeof e=="function"?e:null)}var zm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dm=Object.assign,Um={};function ga(e,t,n){this.props=e,this.context=t,this.refs=Um,this.updater=n||zm}ga.prototype.isReactComponent={};ga.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")};ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hm(){}Hm.prototype=ga.prototype;function Nc(e,t,n){this.props=e,this.context=t,this.refs=Um,this.updater=n||zm}var Rc=Nc.prototype=new Hm;Rc.constructor=Nc;Dm(Rc,ga.prototype);Rc.isPureReactComponent=!0;var Nm=Array.isArray;function xc(){}var re={H:null,A:null,T:null,S:null},qm=Object.prototype.hasOwnProperty;function Oc(e,t,n){var l=n.ref;return{$$typeof:Ac,type:e,key:t,ref:l!==void 0?l:null,props:n}}function Wb(e,t){return Oc(e.type,t,e.props)}function Mc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ac}function e1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Rm=/\/+/g;function wc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?e1(""+e.key):t.toString(36)}function t1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(xc,xc):(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 ma(e,t,n,l,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ac:case Vb:i=!0;break;case Mm:return i=e._init,ma(i(e._payload),t,n,l,a)}}if(i)return a=a(e),i=l===""?"."+wc(e,0):l,Nm(a)?(n="",i!=null&&(n=i.replace(Rm,"$&/")+"/"),ma(a,t,n,"",function(c){return c})):a!=null&&(Mc(a)&&(a=Wb(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Rm,"$&/")+"/")+i)),t.push(a)),1;i=0;var r=l===""?".":l+":";if(Nm(e))for(var u=0;u<e.length;u++)l=e[u],o=r+wc(l,u),i+=ma(l,t,n,o,a);else if(u=Fb(e),typeof u=="function")for(e=u.call(e),u=0;!(l=e.next()).done;)l=l.value,o=r+wc(l,u++),i+=ma(l,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return ma(t1(e),t,n,l,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function or(e,t,n){if(e==null)return e;var l=[],a=0;return ma(e,l,"","",function(o){return t.call(n,o,a++)}),l}function n1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l,n.status===void 0&&(n.status="fulfilled",n.value=l))},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l,n.status===void 0&&(n.status="rejected",n.reason=l))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Om=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Lm(e){var t=re.T,n={};n.types=t!==null?t.types:null,re.T=n;try{var l=e(),a=re.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(xc,Om)}catch(o){Om(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),re.T=t}}function Bm(e){var t=re.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else Lm(Bm.bind(null,e))}var l1={map:or,forEach:function(e,t,n){or(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return or(e,function(){t++}),t},toArray:function(e){return or(e,function(t){return t})||[]},only:function(e){if(!Mc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=Pb;U.Children=l1;U.Component=ga;U.Fragment=jb;U.Profiler=Xb;U.PureComponent=Nc;U.StrictMode=Qb;U.Suspense=Jb;U.ViewTransition=$b;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return re.H.useMemoCache(e)}};U.addTransitionType=Bm;U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=Dm({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!qm.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(l[o]=t[o]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var i=Array(o),r=0;r<o;r++)i[r]=arguments[r+2];l.children=i}return Oc(e.type,a,l)};U.createContext=function(e){return e={$$typeof:Zb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:kb,_context:e},e};U.createElement=function(e,t,n){var l,a={},o=null;if(t!=null)for(l in t.key!==void 0&&(o=""+t.key),t)qm.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=t[l]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var r=Array(i),u=0;u<i;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(l in i=e.defaultProps,i)a[l]===void 0&&(a[l]=i[l]);return Oc(e,o,a)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Kb,render:e}};U.isValidElement=Mc;U.lazy=function(e){return{$$typeof:Mm,_payload:{_status:-1,_result:e},_init:n1}};U.memo=function(e,t){return{$$typeof:Ib,type:e,compare:t===void 0?null:t}};U.startTransition=Lm;U.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()};U.use=function(e){return re.H.use(e)};U.useActionState=function(e,t,n){return re.H.useActionState(e,t,n)};U.useCallback=function(e,t){return re.H.useCallback(e,t)};U.useContext=function(e){return re.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,t){return re.H.useDeferredValue(e,t)};U.useEffect=function(e,t){return re.H.useEffect(e,t)};U.useEffectEvent=function(e){return re.H.useEffectEvent(e)};U.useId=function(){return re.H.useId()};U.useImperativeHandle=function(e,t,n){return re.H.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return re.H.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return re.H.useLayoutEffect(e,t)};U.useMemo=function(e,t){return re.H.useMemo(e,t)};U.useOptimistic=function(e,t){return re.H.useOptimistic(e,t)};U.useReducer=function(e,t,n){return re.H.useReducer(e,t,n)};U.useRef=function(e){return re.H.useRef(e)};U.useState=function(e){return re.H.useState(e)};U.useSyncExternalStore=function(e,t,n){return re.H.useSyncExternalStore(e,t,n)};U.useTransition=function(){return re.H.useTransition()};U.version="19.3.1"});var Ue=Jt((ZT,Gm)=>{"use strict";Gm.exports=Ym()});var Pm=Jt(cr=>{"use strict";var c1=Symbol.for("react.transitional.element"),s1=Symbol.for("react.fragment");function Im(e,t,n){var l=null;if(n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:c1,type:e,key:l,ref:t!==void 0?t:null,props:n}}cr.Fragment=s1;cr.jsx=Im;cr.jsxs=Im});var $=Jt((lE,$m)=>{"use strict";$m.exports=Pm()});var zg=Jt(Ze=>{"use strict";var R1=Ue();function Mg(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 Kn(){}var $e={d:{f:Kn,r:function(){throw Error(Mg(522))},D:Kn,C:Kn,L:Kn,m:Kn,X:Kn,S:Kn,M:Kn},p:0,findDOMNode:null},O1=Symbol.for("react.portal"),M1=Symbol.for("react.recoverable"),Og=Symbol.for("react.optimistic_key");function z1(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O1,key:l==null?null:l===Og?Og:""+l,children:e,containerInfo:t,implementation:n}}var Do=R1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function pr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$e;Ze.browser=function(e){return{$$typeof:M1,_reason:e}};Ze.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(Mg(299));return z1(e,t,null,n)};Ze.flushSync=function(e){var t=Do.T,n=$e.p;try{if(Do.T=null,$e.p=2,e)return e()}finally{Do.T=t,$e.p=n,$e.d.f()}};Ze.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,$e.d.C(e,t))};Ze.prefetchDNS=function(e){typeof e=="string"&&$e.d.D(e)};Ze.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,l=pr(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?$e.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:o}):n==="script"&&$e.d.X(e,{crossOrigin:l,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ze.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=pr(t.as,t.crossOrigin);$e.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&$e.d.M(e)};Ze.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,l=pr(n,t.crossOrigin);$e.d.L(e,n,{crossOrigin:l,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})}};Ze.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=pr(t.as,t.crossOrigin);$e.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,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else $e.d.m(e)};Ze.requestFormReset=function(e){$e.d.r(e)};Ze.unstable_batchedUpdates=function(e,t){return e(t)};Ze.useFormState=function(e,t,n){return Do.H.useFormState(e,t,n)};Ze.useFormStatus=function(){return Do.H.useHostTransitionStatus()};Ze.version="19.3.1"});var es=Jt((Yw,Ug)=>{"use strict";function Dg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),Ug.exports=zg()});var Xg=Jt(ge=>{"use strict";function as(e,t){var n=e.length;e.push(t);e:for(;0<n;){var l=n-1>>>1,a=e[l];if(0<yr(a,t))e[l]=t,e[n]=a,n=l;else break e}}function It(e){return e.length===0?null:e[0]}function br(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var l=0,a=e.length,o=a>>>1;l<o;){var i=2*(l+1)-1,r=e[i],u=i+1,c=e[u];if(0>yr(r,n))u<a&&0>yr(c,r)?(e[l]=c,e[u]=n,l=u):(e[l]=r,e[i]=n,l=i);else if(u<a&&0>yr(c,n))e[l]=c,e[u]=n,l=u;else break e}}return t}function yr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}ge.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Hg=performance,ge.unstable_now=function(){return Hg.now()}):(ts=Date,qg=ts.now(),ge.unstable_now=function(){return ts.now()-qg});var Hg,ts,qg,yn=[],Jn=[],D1=1,Rt=null,Ke=3,os=!1,Uo=!1,Ho=!1,is=!1,Yg=typeof setTimeout=="function"?setTimeout:null,Gg=typeof clearTimeout=="function"?clearTimeout:null,Lg=typeof setImmediate<"u"?setImmediate:null;function vr(e){for(var t=It(Jn);t!==null;){if(t.callback===null)br(Jn);else if(t.startTime<=e)br(Jn),t.sortIndex=t.expirationTime,as(yn,t);else break;t=It(Jn)}}function rs(e){if(Ho=!1,vr(e),!Uo)if(It(yn)!==null)Uo=!0,_a||(_a=!0,ba());else{var t=It(Jn);t!==null&&us(rs,t.startTime-e)}}var _a=!1,qo=-1,Vg=5,jg=-1;function Qg(){return is?!0:!(ge.unstable_now()-jg<Vg)}function ns(){if(is=!1,_a){var e=ge.unstable_now();jg=e;var t=!0;try{e:{Uo=!1,Ho&&(Ho=!1,Gg(qo),qo=-1),os=!0;var n=Ke;try{t:{for(vr(e),Rt=It(yn);Rt!==null&&!(Rt.expirationTime>e&&Qg());){var l=Rt.callback;if(typeof l=="function"){Rt.callback=null,Ke=Rt.priorityLevel;var a=l(Rt.expirationTime<=e);if(e=ge.unstable_now(),typeof a=="function"){Rt.callback=a,vr(e),t=!0;break t}Rt===It(yn)&&br(yn),vr(e)}else br(yn);Rt=It(yn)}if(Rt!==null)t=!0;else{var o=It(Jn);o!==null&&us(rs,o.startTime-e),t=!1}}break e}finally{Rt=null,Ke=n,os=!1}t=void 0}}finally{t?ba():_a=!1}}}var ba;typeof Lg=="function"?ba=function(){Lg(ns)}:typeof MessageChannel<"u"?(ls=new MessageChannel,Bg=ls.port2,ls.port1.onmessage=ns,ba=function(){Bg.postMessage(null)}):ba=function(){Yg(ns,0)};var ls,Bg;function us(e,t){qo=Yg(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.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"):Vg=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return Ke};ge.unstable_next=function(e){switch(Ke){case 1:case 2:case 3:var t=3;break;default:t=Ke}var n=Ke;Ke=t;try{return e()}finally{Ke=n}};ge.unstable_requestPaint=function(){is=!0};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ke;Ke=e;try{return t()}finally{Ke=n}};ge.unstable_scheduleCallback=function(e,t,n){var l=ge.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:D1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>l?(e.sortIndex=n,as(Jn,e),It(yn)===null&&e===It(Jn)&&(Ho?(Gg(qo),qo=-1):Ho=!0,us(rs,n-l))):(e.sortIndex=a,as(yn,e),Uo||os||(Uo=!0,_a||(_a=!0,ba()))),e};ge.unstable_shouldYield=Qg;ge.unstable_wrapCallback=function(e){var t=Ke;return function(){var n=Ke;Ke=t;try{return e.apply(this,arguments)}finally{Ke=n}}}});var Zg=Jt((Vw,kg)=>{"use strict";kg.exports=Xg()});var z0=Jt(ec=>{"use strict";var De=Zg(),Mp=Ue(),U1=es();function _(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 zp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ti(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Dp(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 Up(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 Kg(e){if(Ti(e)!==e)throw Error(_(188))}function H1(e){var t=e.alternate;if(!t){if(t=Ti(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Kg(a),e;if(o===l)return Kg(a),t;o=o.sibling}throw Error(_(188))}if(n.return!==l.return)n=a,l=o;else{for(var i=!1,r=a.child;r;){if(r===n){i=!0,n=a,l=o;break}if(r===l){i=!0,l=a,n=o;break}r=r.sibling}if(!i){for(r=o.child;r;){if(r===n){i=!0,n=o,l=a;break}if(r===l){i=!0,l=o,n=a;break}r=r.sibling}if(!i)throw Error(_(189))}}if(n.alternate!==l)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Hp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Hp(e),t!==null)return t;e=e.sibling}return null}function ut(e,t,n,l,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&ut(e.child,t,n,l,a,o))return!0;e=e.sibling}return!1}function ea(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Jg(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function qp(e){var t=[null,null],n=ea(e);return n===null||Lp(t,e,n.child,{foundSelf:!1}),t}function Lp(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Lp(e,t,n.child,l))return!0;n=n.sibling}return!1}function ze(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(_(559))}}var Aa=null,Gs=null;function q1(e,t,n){return e===n?!0:e===t?(Aa=e,!0):!1}function L1(e,t,n){return e===n?(Gs=e,!1):e===t?(Gs!==null&&(Aa=e),!0):!1}function Ig(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Vs(e,t,n){for(var l=0,a=e;a;a=n(a))l++;a=0;for(var o=t;o;o=n(o))a++;for(;0<l-a;)e=n(e),l--;for(;0<a-l;)t=n(t),a--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var ie=Object.assign,B1=Symbol.for("react.element"),_r=Symbol.for("react.transitional.element"),Qo=Symbol.for("react.portal"),Na=Symbol.for("react.fragment"),Bp=Symbol.for("react.strict_mode"),js=Symbol.for("react.profiler"),Yp=Symbol.for("react.consumer"),tn=Symbol.for("react.context"),Ff=Symbol.for("react.forward_ref"),Qs=Symbol.for("react.suspense"),Xs=Symbol.for("react.suspense_list"),Wf=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),ks=Symbol.for("react.activity"),Y1=Symbol.for("react.legacy_hidden"),G1=Symbol.for("react.memo_cache_sentinel"),Zs=Symbol.for("react.view_transition"),V1=Symbol.for("react.recoverable"),Pg=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Pg&&e[Pg]||e["@@iterator"],typeof e=="function"?e:null)}var j1=Symbol.for("react.client.reference");function Ks(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===j1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Na:return"Fragment";case js:return"Profiler";case Bp:return"StrictMode";case Qs:return"Suspense";case Xs:return"SuspenseList";case ks:return"Activity";case Zs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Qo:return"Portal";case tn:return e.displayName||"Context";case Yp:return(e._context.displayName||"Context")+".Consumer";case Ff:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wf:return t=e.displayName||null,t!==null?t:Ks(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return Ks(e(t))}catch{}}return null}var Xo=Array.isArray,z=Mp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=U1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vl={pending:!1,data:null,method:null,action:null},Js=[],Ra=-1;function cn(e){return{current:e}}function je(e){0>Ra||(e.current=Js[Ra],Js[Ra]=null,Ra--)}function se(e,t){Ra++,Js[Ra]=e.current,e.current=t}var on=cn(null),ri=cn(null),rl=cn(null),iu=cn(null);function ru(e,t){switch(se(rl,t),se(ri,e),se(on,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sp(t),e=r0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}je(on),se(on,e)}function Ia(){je(on),je(ri),je(rl)}function Is(e){var t=e.memoizedState;t!==null&&(oo._currentValue=t.memoizedState,se(iu,e)),t=on.current;var n=r0(t,e.type);t!==n&&(se(ri,e),se(on,n))}function uu(e){ri.current===e&&(je(on),je(ri)),iu.current===e&&(je(iu),oo._currentValue=Vl)}var cs,$g;function Pn(e){if(cs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cs=t&&t[1]||"",$g=-1<n.stack.indexOf(`
|
|
1
|
+
var mb=Object.create;var ld=Object.defineProperty;var db=Object.getOwnPropertyDescriptor;var gb=Object.getOwnPropertyNames;var hb=Object.getPrototypeOf,pb=Object.prototype.hasOwnProperty;var Pt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yb=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gb(t))!pb.call(e,o)&&o!==n&&ld(e,o,{get:()=>t[o],enumerable:!(l=db(t,o))||l.enumerable});return e};var D=(e,t,n)=>(n=e!=null?mb(hb(e)):{},yb(t||!e||!e.__esModule?ld(n,"default",{value:e,enumerable:!0}):n,e));var Gd=Pt(U=>{"use strict";var As=Symbol.for("react.transitional.element"),$b=Symbol.for("react.portal"),Wb=Symbol.for("react.fragment"),e_=Symbol.for("react.strict_mode"),t_=Symbol.for("react.profiler"),n_=Symbol.for("react.consumer"),l_=Symbol.for("react.context"),o_=Symbol.for("react.forward_ref"),a_=Symbol.for("react.suspense"),i_=Symbol.for("react.memo"),zd=Symbol.for("react.lazy"),r_=Symbol.for("react.activity"),u_=Symbol.for("react.view_transition"),Nd=Symbol.iterator;function s_(e){return e===null||typeof e!="object"?null:(e=Nd&&e[Nd]||e["@@iterator"],typeof e=="function"?e:null)}var Dd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ud=Object.assign,Hd={};function bo(e,t,n){this.props=e,this.context=t,this.refs=Hd,this.updater=n||Dd}bo.prototype.isReactComponent={};bo.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")};bo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qd(){}qd.prototype=bo.prototype;function Ns(e,t,n){this.props=e,this.context=t,this.refs=Hd,this.updater=n||Dd}var Rs=Ns.prototype=new qd;Rs.constructor=Ns;Ud(Rs,bo.prototype);Rs.isPureReactComponent=!0;var Rd=Array.isArray;function xs(){}var fe={H:null,A:null,T:null,S:null},Ld=Object.prototype.hasOwnProperty;function Os(e,t,n){var l=n.ref;return{$$typeof:As,type:e,key:t,ref:l!==void 0?l:null,props:n}}function c_(e,t){return Os(e.type,t,e.props)}function Ms(e){return typeof e=="object"&&e!==null&&e.$$typeof===As}function f_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Od=/\/+/g;function ws(e,t){return typeof e=="object"&&e!==null&&e.key!=null?f_(""+e.key):t.toString(36)}function m_(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(xs,xs):(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 vo(e,t,n,l,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case As:case $b:i=!0;break;case zd:return i=e._init,vo(i(e._payload),t,n,l,o)}}if(i)return o=o(e),i=l===""?"."+ws(e,0):l,Rd(o)?(n="",i!=null&&(n=i.replace(Od,"$&/")+"/"),vo(o,t,n,"",function(s){return s})):o!=null&&(Ms(o)&&(o=c_(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Od,"$&/")+"/")+i)),t.push(o)),1;i=0;var r=l===""?".":l+":";if(Rd(e))for(var u=0;u<e.length;u++)l=e[u],a=r+ws(l,u),i+=vo(l,t,n,a,o);else if(u=s_(e),typeof u=="function")for(e=u.call(e),u=0;!(l=e.next()).done;)l=l.value,a=r+ws(l,u++),i+=vo(l,t,n,a,o);else if(a==="object"){if(typeof e.then=="function")return vo(m_(e),t,n,l,o);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 i}function ir(e,t,n){if(e==null)return e;var l=[],o=0;return vo(e,l,"","",function(a){return t.call(n,a,o++)}),l}function d_(e){if(e._status===-1){var t=e._result,n=t();n.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l,n.status===void 0&&(n.status="fulfilled",n.value=l))},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l,n.status===void 0&&(n.status="rejected",n.reason=l))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Md=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Bd(e){var t=fe.T,n={};n.types=t!==null?t.types:null,fe.T=n;try{var l=e(),o=fe.S;o!==null&&o(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(xs,Md)}catch(a){Md(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),fe.T=t}}function Yd(e){var t=fe.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else Bd(Yd.bind(null,e))}var g_={map:ir,forEach:function(e,t,n){ir(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ir(e,function(){t++}),t},toArray:function(e){return ir(e,function(t){return t})||[]},only:function(e){if(!Ms(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=r_;U.Children=g_;U.Component=bo;U.Fragment=Wb;U.Profiler=t_;U.PureComponent=Ns;U.StrictMode=e_;U.Suspense=a_;U.ViewTransition=u_;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=fe;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return fe.H.useMemoCache(e)}};U.addTransitionType=Yd;U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=Ud({},e.props),o=e.key;if(t!=null)for(a in t.key!==void 0&&(o=""+t.key),t)!Ld.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(l[a]=t[a]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var i=Array(a),r=0;r<a;r++)i[r]=arguments[r+2];l.children=i}return Os(e.type,o,l)};U.createContext=function(e){return e={$$typeof:l_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:n_,_context:e},e};U.createElement=function(e,t,n){var l,o={},a=null;if(t!=null)for(l in t.key!==void 0&&(a=""+t.key),t)Ld.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(o[l]=t[l]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var r=Array(i),u=0;u<i;u++)r[u]=arguments[u+2];o.children=r}if(e&&e.defaultProps)for(l in i=e.defaultProps,i)o[l]===void 0&&(o[l]=i[l]);return Os(e,a,o)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:o_,render:e}};U.isValidElement=Ms;U.lazy=function(e){return{$$typeof:zd,_payload:{_status:-1,_result:e},_init:d_}};U.memo=function(e,t){return{$$typeof:i_,type:e,compare:t===void 0?null:t}};U.startTransition=Bd;U.unstable_useCacheRefresh=function(){return fe.H.useCacheRefresh()};U.use=function(e){return fe.H.use(e)};U.useActionState=function(e,t,n){return fe.H.useActionState(e,t,n)};U.useCallback=function(e,t){return fe.H.useCallback(e,t)};U.useContext=function(e){return fe.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,t){return fe.H.useDeferredValue(e,t)};U.useEffect=function(e,t){return fe.H.useEffect(e,t)};U.useEffectEvent=function(e){return fe.H.useEffectEvent(e)};U.useId=function(){return fe.H.useId()};U.useImperativeHandle=function(e,t,n){return fe.H.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return fe.H.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return fe.H.useLayoutEffect(e,t)};U.useMemo=function(e,t){return fe.H.useMemo(e,t)};U.useOptimistic=function(e,t){return fe.H.useOptimistic(e,t)};U.useReducer=function(e,t,n){return fe.H.useReducer(e,t,n)};U.useRef=function(e){return fe.H.useRef(e)};U.useState=function(e){return fe.H.useState(e)};U.useSyncExternalStore=function(e,t,n){return fe.H.useSyncExternalStore(e,t,n)};U.useTransition=function(){return fe.H.useTransition()};U.version="19.3.1"});var Oe=Pt((hE,Vd)=>{"use strict";Vd.exports=Gd()});var Pd=Pt(sr=>{"use strict";var __=Symbol.for("react.transitional.element"),C_=Symbol.for("react.fragment");function Fd(e,t,n){var l=null;if(n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:__,type:e,key:l,ref:t!==void 0?t:null,props:n}}sr.Fragment=C_;sr.jsx=Fd;sr.jsxs=Fd});var $=Pt((xE,$d)=>{"use strict";$d.exports=Pd()});var kg=Pt(Ze=>{"use strict";var W_=Oe();function Qg(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 Xn(){}var $e={d:{f:Xn,r:function(){throw Error(Qg(522))},D:Xn,C:Xn,L:Xn,m:Xn,X:Xn,S:Xn,M:Xn},p:0,findDOMNode:null},e1=Symbol.for("react.portal"),t1=Symbol.for("react.recoverable"),jg=Symbol.for("react.optimistic_key");function n1(e,t,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:e1,key:l==null?null:l===jg?jg:""+l,children:e,containerInfo:t,implementation:n}}var qa=W_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function yr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$e;Ze.browser=function(e){return{$$typeof:t1,_reason:e}};Ze.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(Qg(299));return n1(e,t,null,n)};Ze.flushSync=function(e){var t=qa.T,n=$e.p;try{if(qa.T=null,$e.p=2,e)return e()}finally{qa.T=t,$e.p=n,$e.d.f()}};Ze.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,$e.d.C(e,t))};Ze.prefetchDNS=function(e){typeof e=="string"&&$e.d.D(e)};Ze.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,l=yr(n,t.crossOrigin),o=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?$e.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:o,fetchPriority:a}):n==="script"&&$e.d.X(e,{crossOrigin:l,integrity:o,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ze.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=yr(t.as,t.crossOrigin);$e.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&$e.d.M(e)};Ze.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,l=yr(n,t.crossOrigin);$e.d.L(e,n,{crossOrigin:l,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})}};Ze.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=yr(t.as,t.crossOrigin);$e.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,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else $e.d.m(e)};Ze.requestFormReset=function(e){$e.d.r(e)};Ze.unstable_batchedUpdates=function(e,t){return e(t)};Ze.useFormState=function(e,t,n){return qa.H.useFormState(e,t,n)};Ze.useFormStatus=function(){return qa.H.useHostTransitionStatus()};Ze.version="19.3.1"});var ec=Pt((d2,Zg)=>{"use strict";function Xg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xg)}catch(e){console.error(e)}}Xg(),Zg.exports=kg()});var nh=Pt(pe=>{"use strict";function oc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var l=n-1>>>1,o=e[l];if(0<vr(o,t))e[l]=t,e[n]=o,n=l;else break e}}function $t(e){return e.length===0?null:e[0]}function _r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var l=0,o=e.length,a=o>>>1;l<a;){var i=2*(l+1)-1,r=e[i],u=i+1,s=e[u];if(0>vr(r,n))u<o&&0>vr(s,r)?(e[l]=s,e[u]=n,l=u):(e[l]=r,e[i]=n,l=i);else if(u<o&&0>vr(s,n))e[l]=s,e[u]=n,l=u;else break e}}return t}function vr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}pe.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Kg=performance,pe.unstable_now=function(){return Kg.now()}):(tc=Date,Jg=tc.now(),pe.unstable_now=function(){return tc.now()-Jg});var Kg,tc,Jg,_n=[],Zn=[],l1=1,Ot=null,Ke=3,ac=!1,La=!1,Ba=!1,ic=!1,Pg=typeof setTimeout=="function"?setTimeout:null,$g=typeof clearTimeout=="function"?clearTimeout:null,Ig=typeof setImmediate<"u"?setImmediate:null;function br(e){for(var t=$t(Zn);t!==null;){if(t.callback===null)_r(Zn);else if(t.startTime<=e)_r(Zn),t.sortIndex=t.expirationTime,oc(_n,t);else break;t=$t(Zn)}}function rc(e){if(Ba=!1,br(e),!La)if($t(_n)!==null)La=!0,xo||(xo=!0,wo());else{var t=$t(Zn);t!==null&&uc(rc,t.startTime-e)}}var xo=!1,Ya=-1,Wg=5,eh=-1;function th(){return ic?!0:!(pe.unstable_now()-eh<Wg)}function nc(){if(ic=!1,xo){var e=pe.unstable_now();eh=e;var t=!0;try{e:{La=!1,Ba&&(Ba=!1,$g(Ya),Ya=-1),ac=!0;var n=Ke;try{t:{for(br(e),Ot=$t(_n);Ot!==null&&!(Ot.expirationTime>e&&th());){var l=Ot.callback;if(typeof l=="function"){Ot.callback=null,Ke=Ot.priorityLevel;var o=l(Ot.expirationTime<=e);if(e=pe.unstable_now(),typeof o=="function"){Ot.callback=o,br(e),t=!0;break t}Ot===$t(_n)&&_r(_n),br(e)}else _r(_n);Ot=$t(_n)}if(Ot!==null)t=!0;else{var a=$t(Zn);a!==null&&uc(rc,a.startTime-e),t=!1}}break e}finally{Ot=null,Ke=n,ac=!1}t=void 0}}finally{t?wo():xo=!1}}}var wo;typeof Ig=="function"?wo=function(){Ig(nc)}:typeof MessageChannel<"u"?(lc=new MessageChannel,Fg=lc.port2,lc.port1.onmessage=nc,wo=function(){Fg.postMessage(null)}):wo=function(){Pg(nc,0)};var lc,Fg;function uc(e,t){Ya=Pg(function(){e(pe.unstable_now())},t)}pe.unstable_IdlePriority=5;pe.unstable_ImmediatePriority=1;pe.unstable_LowPriority=4;pe.unstable_NormalPriority=3;pe.unstable_Profiling=null;pe.unstable_UserBlockingPriority=2;pe.unstable_cancelCallback=function(e){e.callback=null};pe.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"):Wg=0<e?Math.floor(1e3/e):5};pe.unstable_getCurrentPriorityLevel=function(){return Ke};pe.unstable_next=function(e){switch(Ke){case 1:case 2:case 3:var t=3;break;default:t=Ke}var n=Ke;Ke=t;try{return e()}finally{Ke=n}};pe.unstable_requestPaint=function(){ic=!0};pe.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Ke;Ke=e;try{return t()}finally{Ke=n}};pe.unstable_scheduleCallback=function(e,t,n){var l=pe.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:l1++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>l?(e.sortIndex=n,oc(Zn,e),$t(_n)===null&&e===$t(Zn)&&(Ba?($g(Ya),Ya=-1):Ba=!0,uc(rc,n-l))):(e.sortIndex=o,oc(_n,e),La||ac||(La=!0,xo||(xo=!0,wo()))),e};pe.unstable_shouldYield=th;pe.unstable_wrapCallback=function(e){var t=Ke;return function(){var n=Ke;Ke=t;try{return e.apply(this,arguments)}finally{Ke=n}}}});var oh=Pt((h2,lh)=>{"use strict";lh.exports=nh()});var k0=Pt(ts=>{"use strict";var De=oh(),Qp=Oe(),o1=ec();function _(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 kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xi(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Xp(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 Zp(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 ah(e){if(xi(e)!==e)throw Error(_(188))}function a1(e){var t=e.alternate;if(!t){if(t=xi(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ah(o),e;if(a===l)return ah(o),t;a=a.sibling}throw Error(_(188))}if(n.return!==l.return)n=o,l=a;else{for(var i=!1,r=o.child;r;){if(r===n){i=!0,n=o,l=a;break}if(r===l){i=!0,l=o,n=a;break}r=r.sibling}if(!i){for(r=a.child;r;){if(r===n){i=!0,n=a,l=o;break}if(r===l){i=!0,l=a,n=o;break}r=r.sibling}if(!i)throw Error(_(189))}}if(n.alternate!==l)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Kp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Kp(e),t!==null)return t;e=e.sibling}return null}function ct(e,t,n,l,o,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,o,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&ct(e.child,t,n,l,o,a))return!0;e=e.sibling}return!1}function eo(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function ih(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Jp(e){var t=[null,null],n=eo(e);return n===null||Ip(t,e,n.child,{foundSelf:!1}),t}function Ip(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Ip(e,t,n.child,l))return!0;n=n.sibling}return!1}function ze(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(_(559))}}var Do=null,Gc=null;function i1(e,t,n){return e===n?!0:e===t?(Do=e,!0):!1}function r1(e,t,n){return e===n?(Gc=e,!1):e===t?(Gc!==null&&(Do=e),!0):!1}function rh(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Vc(e,t,n){for(var l=0,o=e;o;o=n(o))l++;o=0;for(var a=t;a;a=n(a))o++;for(;0<l-o;)e=n(e),l--;for(;0<o-l;)t=n(t),o--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var ce=Object.assign,u1=Symbol.for("react.element"),Cr=Symbol.for("react.transitional.element"),Za=Symbol.for("react.portal"),Uo=Symbol.for("react.fragment"),Fp=Symbol.for("react.strict_mode"),jc=Symbol.for("react.profiler"),Pp=Symbol.for("react.consumer"),on=Symbol.for("react.context"),$f=Symbol.for("react.forward_ref"),Qc=Symbol.for("react.suspense"),kc=Symbol.for("react.suspense_list"),Wf=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),Xc=Symbol.for("react.activity"),s1=Symbol.for("react.legacy_hidden"),c1=Symbol.for("react.memo_cache_sentinel"),Zc=Symbol.for("react.view_transition"),f1=Symbol.for("react.recoverable"),uh=Symbol.iterator;function Ga(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var m1=Symbol.for("react.client.reference");function Kc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===m1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Uo:return"Fragment";case jc:return"Profiler";case Fp:return"StrictMode";case Qc:return"Suspense";case kc:return"SuspenseList";case Xc:return"Activity";case Zc:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Za:return"Portal";case on:return e.displayName||"Context";case Pp:return(e._context.displayName||"Context")+".Consumer";case $f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wf:return t=e.displayName||null,t!==null?t:Kc(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return Kc(e(t))}catch{}}return null}var Ka=Array.isArray,z=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=o1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vl={pending:!1,data:null,method:null,action:null},Jc=[],Ho=-1;function mn(e){return{current:e}}function je(e){0>Ho||(e.current=Jc[Ho],Jc[Ho]=null,Ho--)}function ge(e,t){Ho++,Jc[Ho]=e.current,e.current=t}var sn=mn(null),ci=mn(null),al=mn(null),ru=mn(null);function uu(e,t){switch(ge(al,t),ge(ci,e),ge(sn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sp(t),e=b0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}je(sn),ge(sn,e)}function ta(){je(sn),je(ci),je(al)}function Ic(e){var t=e.memoizedState;t!==null&&(fa._currentValue=t.memoizedState,ge(ru,e)),t=sn.current;var n=b0(t,e.type);t!==n&&(ge(ci,e),ge(sn,n))}function su(e){ci.current===e&&(je(sn),je(ci)),ru.current===e&&(je(ru),fa._currentValue=Vl)}var sc,sh;function Jn(e){if(sc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sc=t&&t[1]||"",sh=-1<n.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
4
|
-
`),
|
|
5
|
-
`);for(
|
|
6
|
-
`+u[l].replace(" at new "," at ");return e.displayName&&
|
|
3
|
+
`+sc+e+sh}var cc=!1;function fc(e,t){if(!e||cc)return"";cc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(v){var c=v}Reflect.construct(e,[],f)}else{try{f.call()}catch(v){c=v}f=!1;try{var g=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),f=!0,new e}finally{f&&(g!==void 0?Object.defineProperty(e.prototype,"props",g):delete e.prototype.props)}}}else{try{throw Error()}catch(v){c=v}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(v){if(v&&c&&typeof v.stack=="string")return[v.stack,c.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=l.DetermineComponentFrameRoot(),i=a[0],r=a[1];if(i&&r){var u=i.split(`
|
|
4
|
+
`),s=r.split(`
|
|
5
|
+
`);for(o=l=0;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;for(;o<s.length&&!s[o].includes("DetermineComponentFrameRoot");)o++;if(l===u.length||o===s.length)for(l=u.length-1,o=s.length-1;1<=l&&0<=o&&u[l]!==s[o];)o--;for(;1<=l&&0<=o;l--,o--)if(u[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0>o||u[l]!==s[o]){var m=`
|
|
6
|
+
`+u[l].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=l&&0<=o);break}}}finally{cc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Jn(n):""}function d1(e,t){switch(e.tag){case 26:case 27:case 5:return Jn(e.type);case 16:return Jn("Lazy");case 13:return e.child!==t&&t!==null?Jn("Suspense Fallback"):Jn("Suspense");case 19:return Jn("SuspenseList");case 0:case 15:return fc(e.type,!1);case 11:return fc(e.type.render,!1);case 1:return fc(e.type,!0);case 31:return Jn("Activity");case 30:return Jn("ViewTransition");default:return""}}function ch(e){try{var t="",n=null;do t+=d1(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var Ps=Object.prototype.hasOwnProperty,ed=De.unstable_scheduleCallback,ds=De.unstable_cancelCallback,X1=De.unstable_shouldYield,k1=De.unstable_requestPaint,yt=De.unstable_now,Z1=De.unstable_getCurrentPriorityLevel,Gp=De.unstable_ImmediatePriority,Vp=De.unstable_UserBlockingPriority,cu=De.unstable_NormalPriority,K1=De.unstable_LowPriority,jp=De.unstable_IdlePriority,J1=De.log,I1=De.unstable_setDisableYieldValue,Ei=null,vt=null;function tl(e){if(typeof J1=="function"&&I1(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Ei,e)}catch{}}var bt=Math.clz32?Math.clz32:F1,P1=Math.log,$1=Math.LN2;function F1(e){return e>>>=0,e===0?32:31-(P1(e)/$1|0)|0}var Cr=256,Sr=262144,Tr=4194304;function ql(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&-e;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 Hu(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~o,l!==0?a=ql(l):(i&=r,i!==0?a=ql(i):n||(n=r&~e,n!==0&&(a=ql(n))))):(r=l&~o,r!==0?a=ql(r):i!==0?a=ql(i):n||(n=l&~e,n!==0&&(a=ql(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qp(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-bt(n),a=1<<l;t|=e[l],n&=~a}return t}function W1(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 Xp(){var e=Tr;return Tr<<=1,(Tr&62914560)===0&&(Tr=4194304),e}function ms(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function e_(e,t,n,l,a,o){var i=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 r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var d=31-bt(n),f=1<<d;r[d]=0,u[d]=-1;var s=c[d];if(s!==null)for(c[d]=null,d=0;d<s.length;d++){var g=s[d];g!==null&&(g.lane&=-536870913)}n&=~f}l!==0&&kp(e,l,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function kp(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Zp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-bt(n),a=1<<l;a&t|e[l]&t&&(e[l]|=t),n&=~a}}function Kp(e,t){var n=t&-t;return n=(n&42)!==0?1:td(n),(n&(e.suspendedLanes|t))!==0?0:n}function td(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 nd(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Jp(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:R0(e.type))}function Wg(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var On=Math.random().toString(36).slice(2),Ge="__reactFiber$"+On,ct="__reactProps$"+On,uo="__reactContainer$"+On,eh="__reactEvents$"+On,t_="__reactListeners$"+On,n_="__reactHandles$"+On,th="__reactResources$"+On,Ai="__reactMarker$"+On,su="__reactLoad$"+On;function qu(e){delete e[Ge],delete e[ct],delete e[t_],delete e[n_]}function Yl(e){var t;if(t=e[Ge])return t;for(var n=e.parentNode;n;){if(t=n[uo]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vp(e);e!==null;){if(n=e[Ge])return n;e=vp(e)}return t}e=n,n=e.parentNode}return null}function co(e){if(e=e[Ge]||e[uo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ko(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(_(33))}function Ya(e){var t=e[th];return t||(t=e[th]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Le(e){e[Ai]=!0}function Ip(e){e[su]=void 0}var Pp=new Set,$p={};function ta(e,t){Pa(e,t),Pa(e+"Capture",t)}function Pa(e,t){for($p[e]=t,e=0;e<t.length;e++)Pp.add(t[e])}var l_=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]*$"),nh={},lh={};function a_(e){return Ps.call(lh,e)?!0:Ps.call(nh,e)?!1:l_.test(e)?lh[e]=!0:(nh[e]=!0,!1)}var Z=!1;function ah(){var e=Z;return Z=!1,e}function Vr(e,t,n){if(a_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Er(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 vn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,l)}}function mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function o_(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){if(!e._valueTracker){var t=Fp(e)?"checked":"value";e._valueTracker=o_(e,t,""+e[t])}}function Wp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Fp(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var i_=/[\n"\\]/g;function Ut(e){return e.replace(i_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fs(e,t,n,l,a,o,i,r){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?gs(e,mt(e.value)):gs(e,mt(t)):n!=null?gs(e,mt(n)):l!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+mt(r):e.removeAttribute("name")}function ey(e,t,n,l,a,o,i,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){$s(e);return}n=n!=null?""+mt(n):"",t=t!=null?""+mt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),$s(e)}function gs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ga(e,t,n,l){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&l&&(e[n].defaultSelected=!0)}else{for(n=""+mt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function ty(e,t,n){if(t!=null&&(t=""+mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+mt(n):""}function ny(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(_(92));if(Xo(l)){if(1<l.length)throw Error(_(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=mt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),$s(e)}function $a(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var r_=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 oh(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||r_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ly(e,t,n){if(t!=null&&typeof t!="object")throw Error(_(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",Z=!0);for(var a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&(oh(e,a,l),Z=!0)}else for(var o in t)t.hasOwnProperty(o)&&oh(e,o,t[o])}function ld(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 u_=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"],["maskType","mask-type"],["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"]]),c_=/^[\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 jr(e){return c_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function nn(){}var Ws=null;function ad(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oa=null,Va=null;function ih(e){var t=co(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fs(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="'+Ut(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[ct]||null;if(!a)throw Error(_(90));Fs(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Wp(l)}break e;case"textarea":ty(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ga(e,!!n.multiple,t,!1)}}}var hs=!1;function ay(e,t,n){if(hs)return e(t,n);hs=!0;try{var l=e(t);return l}finally{if(hs=!1,(Oa!==null||Va!==null)&&(Pu(),Oa&&(t=Oa,e=Va,Va=Oa=null,ih(t),e)))for(t=0;t<e.length;t++)ih(e[t])}}function ui(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ct]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var En=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(En)try{Ca={},Object.defineProperty(Ca,"passive",{get:function(){ef=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{ef=!1}var Ca,nl=null,od=null,Qr=null;function oy(){if(Qr)return Qr;var e,t=od,n=t.length,l,a="value"in nl?nl.value:nl.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var i=n-e;for(l=1;l<=i&&t[n-l]===a[o-l];l++);return Qr=a.slice(e,1<l?1-l:void 0)}function Xr(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 wr(){return!0}function rh(){return!1}function tt(e){function t(n,l,a,o,i){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?wr:rh,this.isPropagationStopped=rh,this}return ie(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=wr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wr)},persist:function(){},isPersistent:wr}),t}var Sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=tt(Sl),Ni=ie({},Sl,{view:0,detail:0}),s_=tt(Ni),ps,ys,Bo,Bu=ie({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==Bo&&(Bo&&e.type==="mousemove"?(ps=e.screenX-Bo.screenX,ys=e.screenY-Bo.screenY):ys=ps=0,Bo=e),ps)},movementY:function(e){return"movementY"in e?e.movementY:ys}}),uh=tt(Bu),f_=ie({},Bu,{dataTransfer:0}),d_=tt(f_),m_=ie({},Ni,{relatedTarget:0}),vs=tt(m_),g_=ie({},Sl,{animationName:0,elapsedTime:0,pseudoElement:0}),h_=tt(g_),p_=ie({},Sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),y_=tt(p_),v_=ie({},Sl,{data:0}),ch=tt(v_),b_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},__={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"},C_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=C_[e])?!!t[e]:!1}function id(){return S_}var T_=ie({},Ni,{key:function(e){if(e.key){var t=b_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?__[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E_=tt(T_),w_=ie({},Bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sh=tt(w_),x_=ie({},Sl,{submitter:0}),A_=tt(x_),N_=ie({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),R_=tt(N_),O_=ie({},Sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),M_=tt(O_),z_=ie({},Bu,{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}),D_=tt(z_),U_=ie({},Sl,{newState:0,oldState:0,source:0}),H_=tt(U_),q_=[9,13,27,32],rd=En&&"CompositionEvent"in window,Jo=null;En&&"documentMode"in document&&(Jo=document.documentMode);var L_=En&&"TextEvent"in window&&!Jo,iy=En&&(!rd||Jo&&8<Jo&&11>=Jo),fh=" ",dh=!1;function ry(e,t){switch(e){case"keyup":return q_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ma=!1;function B_(e,t){switch(e){case"compositionend":return uy(t);case"keypress":return t.which!==32?null:(dh=!0,fh);case"textInput":return e=t.data,e===fh&&dh?null:e;default:return null}}function Y_(e,t){if(Ma)return e==="compositionend"||!rd&&ry(e,t)?(e=oy(),Qr=od=nl=null,Ma=!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 iy&&t.locale!=="ko"?null:t.data;default:return null}}var G_={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 mh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!G_[e.type]:t==="textarea"}function cy(e,t,n,l){Oa?Va?Va.push(l):Va=[l]:Oa=l,t=zu(t,"onChange"),0<t.length&&(n=new Lu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Io=null,ci=null;function V_(e){a0(e,0)}function Yu(e){var t=ko(e);if(Wp(t))return e}function gh(e,t){if(e==="change")return t}var sy=!1;En&&(En?(Ar="oninput"in document,Ar||(bs=document.createElement("div"),bs.setAttribute("oninput","return;"),Ar=typeof bs.oninput=="function"),xr=Ar):xr=!1,sy=xr&&(!document.documentMode||9<document.documentMode));var xr,Ar,bs;function hh(){Io&&(Io.detachEvent("onpropertychange",fy),ci=Io=null)}function fy(e){if(e.propertyName==="value"&&Yu(ci)){var t=[];cy(t,ci,e,ad(e)),ay(V_,t)}}function j_(e,t,n){e==="focusin"?(hh(),Io=t,ci=n,Io.attachEvent("onpropertychange",fy)):e==="focusout"&&hh()}function Q_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yu(ci)}function X_(e,t){if(e==="click")return Yu(t)}function k_(e,t){if(e==="input"||e==="change")return Yu(t)}function Z_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Z_;function si(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Ps.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function tf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ph(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yh(e,t){var n=ph(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ph(n)}}function dy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function my(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tf(e.document)}return t}function ud(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 K_=En&&"documentMode"in document&&11>=document.documentMode,za=null,nf=null,Po=null,lf=!1;function vh(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lf||za==null||za!==tf(l)||(l=za,"selectionStart"in l&&ud(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Po&&si(Po,l)||(Po=l,l=zu(nf,"onSelect"),0<l.length&&(t=new Lu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=za)))}function Ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Da={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},_s={},gy={};En&&(gy=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function na(e){if(_s[e])return _s[e];if(!Da[e])return e;var t=Da[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gy)return _s[e]=t[n];return e}var hy=na("animationend"),py=na("animationiteration"),yy=na("animationstart"),J_=na("transitionrun"),I_=na("transitionstart"),P_=na("transitioncancel"),vy=na("transitionend"),by=new Map,af="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");af.push("scrollEnd");function Zt(e,t){by.set(e,t),ta(t,[e])}var $_=0;function wn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=kt.identifierPrefix;var n=$_++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function bh(e){if(e==null||typeof e=="string")return e;var t=null,n=Ja;if(n!==null)for(var l=0;l<n.length;l++){var a=e[n[l]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function Mn(e,t){return e=bh(e),t=bh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var fu=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)},Mt=[],Ua=0,cd=0;function Gu(){for(var e=Ua,t=cd=Ua=0;t<e;){var n=Mt[t];Mt[t++]=null;var l=Mt[t];Mt[t++]=null;var a=Mt[t];Mt[t++]=null;var o=Mt[t];if(Mt[t++]=null,l!==null&&a!==null){var i=l.pending;i===null?a.next=a:(a.next=i.next,i.next=a),l.pending=a}o!==0&&_y(n,a,o)}}function Vu(e,t,n,l){Mt[Ua++]=e,Mt[Ua++]=t,Mt[Ua++]=n,Mt[Ua++]=l,cd|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function sd(e,t,n,l){return Vu(e,t,n,l),du(e)}function la(e,t){return Vu(e,null,null,t),du(e)}function _y(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-bt(n),e=o.hiddenUpdates,l=e[a],l===null?e[a]=[t]:l.push(t),t.lane=n|536870912),o):null}function du(e){if(50<ii)throw ii=0,eu=null,Error(_(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ha={};function F_(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function it(e,t,n,l){return new F_(e,t,n,l)}function fd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var n=e.alternate;return n===null?(n=it(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&1206910976,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 Cy(e,t){e.flags&=1206910978;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 kr(e,t,n,l,a,o){var i=0;if(l=e,typeof l=="function")fd(l)&&(i=1);else if(typeof l=="string")i=ES(e,n,on.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case ks:return e=it(31,n,t,a),e.elementType=ks,e.lanes=o,e;case Na:return jl(n.children,a,o,t);case Bp:i=8,a|=24;break;case js:return e=it(12,n,t,a|2),e.elementType=js,e.lanes=o,e;case Qs:return e=it(13,n,t,a),e.elementType=Qs,e.lanes=o,e;case Xs:return e=it(19,n,t,a),e.elementType=Xs,e.lanes=o,e;case Y1:case Zs:return e=a|32,e=it(30,n,t,e),e.elementType=Zs,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case tn:i=10;break e;case Yp:i=9;break e;case Ff:i=11;break e;case Wf:i=14;break e;case Fn:i=16,l=null;break e}i=29,n=Error(_(130,e===null?"null":typeof e,"")),l=null}return t=it(i,n,t,a),t.elementType=e,t.type=l,t.lanes=o,t}function jl(e,t,n,l){return e=it(7,e,l,t),e.lanes=n,e}function Cs(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Sy(e){var t=it(18,null,null,0);return t.stateNode=e,t}function Ss(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _h=new WeakMap;function Ht(e,t){if(typeof e=="object"&&e!==null){var n=_h.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Fg(t)},_h.set(e,t),t)}return{value:e,source:t,stack:Fg(t)}}var qa=[],La=0,mu=null,fi=0,zt=[],Dt=0,yl=null,ln=1,an="";function _n(e,t){qa[La++]=fi,qa[La++]=mu,mu=e,fi=t}function Ty(e,t,n){zt[Dt++]=ln,zt[Dt++]=an,zt[Dt++]=yl,yl=e;var l=ln;e=an;var a=32-bt(l)-1;l&=~(1<<a),n+=1;var o=32-bt(t)+a;if(30<o){var i=a-a%5;o=(l&(1<<i)-1).toString(32),l>>=i,a-=i,ln=1<<32-bt(t)+a|n<<a|l,an=o+e}else ln=1<<o|n<<a|l,an=e}function ju(e){e.return!==null&&(_n(e,1),Ty(e,1,0))}function dd(e){for(;e===mu;)mu=qa[--La],qa[La]=null,fi=qa[--La],qa[La]=null;for(;e===yl;)yl=zt[--Dt],zt[Dt]=null,an=zt[--Dt],zt[Dt]=null,ln=zt[--Dt],zt[Dt]=null}function Ey(e,t){zt[Dt++]=ln,zt[Dt++]=an,zt[Dt++]=yl,ln=t.id,an=t.overflow,yl=e}var Be=null,ce=null,L=!1,ul=null,qt=!1,of=Error(_(519));function vl(e){var t=Error(_(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw di(Ht(t,e)),of}function Ch(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Ge]=e,t[ct]=l,n){case"dialog":Y("cancel",t),Y("close",t);break;case"iframe":case"object":case"embed":Y("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)Y(pi[n],t);break;case"source":Y("error",t);break;case"img":case"image":case"link":Y("error",t),Y("load",t);break;case"details":Y("toggle",t);break;case"input":Y("invalid",t),ey(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Y("invalid",t);break;case"textarea":Y("invalid",t),ny(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||i0(t.textContent,n)?(l.popover!=null&&(Y("beforetoggle",t),Y("toggle",t)),l.onScroll!=null&&Y("scroll",t),l.onScrollEnd!=null&&Y("scrollend",t),l.onClick!=null&&(t.onclick=nn),t=!0):t=!1,t||vl(e,!0)}function gu(e){for(Be=e.return;Be;)switch(Be.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:Be=Be.return}}function Sa(e){if(e!==Be)return!1;if(!L)return gu(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Xf(e.type,e.memoizedProps)),n=!n),n&&ce&&vl(e),gu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));ce=yp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));ce=yp(e)}else t===27?(t=ce,Tl(e.type)?(e=Jf,Jf=null,ce=e):ce=t):ce=Be?Lt(e.stateNode.nextSibling):null;return!0}function Zl(){ce=Be=null,L=!1}function Ts(){var e=ul;return e!==null&&(at===null?at=e:at.push.apply(at,e),ul=null),e}function di(e){ul===null?ul=[e]:ul.push(e)}var rf=cn(null),aa=null,Cn=null;function ll(e,t,n){se(rf,t._currentValue),t._currentValue=n}function Tn(e){e._currentValue=rf.current,je(rf)}function Zr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function uf(e,t,n,l){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var i=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Zr(o.return,n,e),l||(i=null);break e}o=r.next}}else if(a.tag===18){if(i=a.return,i===null)throw Error(_(341));i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Zr(i,n,e),i=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),Zr(a.return,n,e),i=a.child,i=i!==null?i.sibling:null):i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}}function Kl(e,t,n,l){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var i=a.alternate;if(i===null)throw Error(_(387));if(i=i.memoizedProps,i!==null){var r=a.type;Ct(a.pendingProps.value,i.value)||(e!==null?e.push(r):e=[r])}}else if(a===iu.current){if(i=a.alternate,i===null)throw Error(_(387));i.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(oo):e=[oo])}a=a.return}return e!==null&&uf(t,e,n,l),t.flags|=262144,e!==null}function hu(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){aa=e,Cn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return wy(aa,e)}function Nr(e,t){return aa===null&&Jl(e),wy(e,t)}function wy(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Cn===null){if(e===null)throw Error(_(308));Cn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cn=Cn.next=t;return n}var W_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},eC=De.unstable_scheduleCallback,tC=De.unstable_NormalPriority,Ne={$$typeof:tn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function md(){return{controller:new W_,data:new Map,refCount:0}}function Ri(e){e.refCount--,e.refCount===0&&eC(tC,function(){e.controller.abort()})}function Sh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Zo=null;function nC(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var $o=null,cf=0,Il=0,ja=null;function lC(e,t){if($o===null){var n=$o=[];cf=0,Il=Vd(),ja={status:"pending",value:void 0,then:function(l){n.push(l)}}}return cf++,t.then(Th,Th),t}function Th(){if(--cf===0&&(Zo=null,$o!==null)){ja!==null&&(ja.status="fulfilled");var e=$o;$o=null,Il=0,ja=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aC(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var Eh=z.S;z.S=function(e,t){if(Qv=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&lC(e,t),Zo!==null)for(var n=no;n!==null;)Sh(n,Zo),n=n.next;if(n=e.types,n!==null){for(var l=no;l!==null;)Sh(l,n),l=l.next;if(Il!==0){l=Zo,l===null&&(l=Zo=[]);for(var a=0;a<n.length;a++){var o=n[a];l.indexOf(o)===-1&&l.push(o)}}}Eh!==null&&Eh(e,t)};var Ql=cn(null);function gd(){var e=Ql.current;return e!==null?e:oe.pooledCache}function Kr(e,t){t===null?se(Ql,Ql.current):se(Ql,t.pool)}function xy(){var e=gd();return e===null?null:{parent:Ne._currentValue,pool:e}}var so=Error(_(460)),hd=Error(_(474)),Qu=Error(_(542)),pu={then:function(){}};function wh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ay(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(nn,nn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ah(e),e===void 0&&!("reason"in t)?Error(_(600)):e;default:if(typeof t.status=="string")t.then(nn,nn);else{if(e=oe,e!==null&&100<e.shellSuspendCounter)throw Error(_(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=l}},function(l){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ah(e),e}throw Xl=t,so}}function Ll(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Xl=n,so):n}}var Xl=null;function xh(){if(Xl===null)throw Error(_(459));var e=Xl;return Xl=null,e}function Ah(e){if(e===so||e===Qu)throw Error(_(483))}var Qa=null,mi=0;function Rr(e){var t=mi;return mi+=1,Qa===null&&(Qa=[]),Ay(Qa,e,t)}function In(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Or(e,t){throw t.$$typeof===B1?Error(_(525)):(e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ny(e){function t(h,m){if(e){var p=h.deletions;p===null?(h.deletions=[m],h.flags|=16):p.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function l(h){for(var m=new Map;h!==null;)h.key===null?m.set(h.index,h):m.set(h.key,h),h=h.sibling;return m}function a(h,m){return h=Sn(h,m),h.index=0,h.sibling=null,h}function o(h,m,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<m?(h.flags|=2,m):p):(h.flags|=134217730,m)):(h.flags|=1048576,m)}function i(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function r(h,m,p,y){return m===null||m.tag!==6?(m=Cs(p,h.mode,y),m.return=h,m):(m=a(m,p),m.return=h,m)}function u(h,m,p,y){var C=p.type;return C===Na?(h=d(h,m,p.props.children,y,p.key),In(h,p),h):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Fn&&Ll(C)===m.type)?(m=a(m,p.props),In(m,p),m.return=h,m):(m=kr(p.type,p.key,p.props,null,h.mode,y),In(m,p),m.return=h,m)}function c(h,m,p,y){return m===null||m.tag!==4||m.stateNode.containerInfo!==p.containerInfo||m.stateNode.implementation!==p.implementation?(m=Ss(p,h.mode,y),m.return=h,m):(m=a(m,p.children||[]),m.return=h,m)}function d(h,m,p,y,C){return m===null||m.tag!==7?(m=jl(p,h.mode,y,C),m.return=h,m):(m=a(m,p),m.return=h,m)}function f(h,m,p){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Cs(""+m,h.mode,p),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case _r:return p=kr(m.type,m.key,m.props,null,h.mode,p),In(p,m),p.return=h,p;case Qo:return m=Ss(m,h.mode,p),m.return=h,m;case Fn:return m=Ll(m),f(h,m,p)}if(Xo(m)||Lo(m))return m=jl(m,h.mode,p,null),m.return=h,m;if(typeof m.then=="function")return f(h,Rr(m),p);if(m.$$typeof===tn)return f(h,Nr(h,m),p);Or(h,m)}return null}function s(h,m,p,y){var C=m!==null?m.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return C!==null?null:r(h,m,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:return p.key===C?u(h,m,p,y):null;case Qo:return p.key===C?c(h,m,p,y):null;case Fn:return p=Ll(p),s(h,m,p,y)}if(Xo(p)||Lo(p))return C!==null?null:d(h,m,p,y,null);if(typeof p.then=="function")return s(h,m,Rr(p),y);if(p.$$typeof===tn)return s(h,m,Nr(h,p),y);Or(h,p)}return null}function g(h,m,p,y,C){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return h=h.get(p)||null,r(m,h,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case _r:return h=h.get(y.key===null?p:y.key)||null,u(m,h,y,C);case Qo:return h=h.get(y.key===null?p:y.key)||null,c(m,h,y,C);case Fn:return y=Ll(y),g(h,m,p,y,C)}if(Xo(y)||Lo(y))return h=h.get(p)||null,d(m,h,y,C,null);if(typeof y.then=="function")return g(h,m,p,Rr(y),C);if(y.$$typeof===tn)return g(h,m,p,Nr(m,y),C);Or(m,y)}return null}function v(h,m,p,y){for(var C=null,N=null,E=m,A=m=0,B=null;E!==null&&A<p.length;A++){E.index>A?(B=E,E=null):B=E.sibling;var w=s(h,E,p[A],y);if(w===null){E===null&&(E=B);break}e&&E&&w.alternate===null&&t(h,E),m=o(w,m,A),N===null?C=w:N.sibling=w,N=w,E=B}if(A===p.length)return n(h,E),L&&_n(h,A),C;if(E===null){for(;A<p.length;A++)E=f(h,p[A],y),E!==null&&(m=o(E,m,A),N===null?C=E:N.sibling=E,N=E);return L&&_n(h,A),C}for(E=l(E);A<p.length;A++)B=g(E,h,A,p[A],y),B!==null&&(e&&(w=B.alternate,w!==null&&E.delete(w.key===null?A:w.key)),m=o(B,m,A),N===null?C=B:N.sibling=B,N=B);return e&&E.forEach(function(K){return t(h,K)}),L&&_n(h,A),C}function b(h,m,p,y){if(p==null)throw Error(_(151));for(var C=null,N=null,E=m,A=m=0,B=null,w=p.next();E!==null&&!w.done;A++,w=p.next()){E.index>A?(B=E,E=null):B=E.sibling;var K=s(h,E,w.value,y);if(K===null){E===null&&(E=B);break}e&&E&&K.alternate===null&&t(h,E),m=o(K,m,A),N===null?C=K:N.sibling=K,N=K,E=B}if(w.done)return n(h,E),L&&_n(h,A),C;if(E===null){for(;!w.done;A++,w=p.next())w=f(h,w.value,y),w!==null&&(m=o(w,m,A),N===null?C=w:N.sibling=w,N=w);return L&&_n(h,A),C}for(E=l(E);!w.done;A++,w=p.next())w=g(E,h,A,w.value,y),w!==null&&(e&&(B=w.alternate,B!==null&&E.delete(B.key===null?A:B.key)),m=o(w,m,A),N===null?C=w:N.sibling=w,N=w);return e&&E.forEach(function(be){return t(h,be)}),L&&_n(h,A),C}function S(h,m,p,y){if(typeof p=="object"&&p!==null&&p.type===Na&&p.key===null&&p.props.ref===void 0&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case _r:e:{for(var C=p.key;m!==null;){if(m.key===C){if(C=p.type,C===Na){if(m.tag===7){n(h,m.sibling),y=a(m,p.props.children),In(y,p),y.return=h,h=y;break e}}else if(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Fn&&Ll(C)===m.type){n(h,m.sibling),y=a(m,p.props),In(y,p),y.return=h,h=y;break e}n(h,m);break}else t(h,m);m=m.sibling}p.type===Na?(y=jl(p.props.children,h.mode,y,p.key),In(y,p),y.return=h,h=y):(y=kr(p.type,p.key,p.props,null,h.mode,y),In(y,p),y.return=h,h=y)}return i(h);case Qo:e:{for(C=p.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(h,m.sibling),y=a(m,p.children||[]),y.return=h,h=y;break e}else{n(h,m);break}else t(h,m);m=m.sibling}y=Ss(p,h.mode,y),y.return=h,h=y}return i(h);case Fn:return p=Ll(p),S(h,m,p,y)}if(Xo(p))return v(h,m,p,y);if(Lo(p)){if(C=Lo(p),typeof C!="function")throw Error(_(150));return p=C.call(p),b(h,m,p,y)}if(typeof p.then=="function")return S(h,m,Rr(p),y);if(p.$$typeof===tn)return S(h,m,Nr(h,p),y);Or(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,m!==null&&m.tag===6?(n(h,m.sibling),y=a(m,p),y.return=h,h=y):(n(h,m),y=Cs(p,h.mode,y),y.return=h,h=y),i(h)):n(h,m)}return function(h,m,p,y){try{mi=0;var C=S(h,m,p,y);return Qa=null,C}catch(E){if(E===so||E===Qu)throw E;var N=it(29,E,null,h.mode);return N.lanes=y,N.return=h,N}}}var Pl=Ny(!0),Ry=Ny(!1),Wn=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sf(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 cl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(J&2)!==0){var a=l.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t,t=du(e),_y(e,null,n),t}return Vu(e,l,t,n),du(e)}function Fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Zp(e,n)}}function Es(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ff=!1;function Wo(){if(ff){var e=ja;if(e!==null)throw e}}function ei(e,t,n,l){ff=!1;var a=e.updateQueue;Wn=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var d=e.alternate;d!==null&&(d=d.updateQueue,r=d.lastBaseUpdate,r!==i&&(r===null?d.firstBaseUpdate=c:r.next=c,d.lastBaseUpdate=u))}if(o!==null){var f=a.baseState;i=0,d=c=u=null,r=o;do{var s=r.lane&-536870913,g=s!==r.lane;if(g?(V&s)===s:(l&s)===s){s!==0&&s===Il&&(ff=!0),d!==null&&(d=d.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var v=e,b=r;s=t;var S=n;switch(b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(S,f,s);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,s=typeof v=="function"?v.call(S,f,s):v,s==null)break e;f=ie({},f,s);break e;case 2:Wn=!0}}s=r.callback,s!==null&&(e.flags|=64,g&&(e.flags|=8192),g=a.callbacks,g===null?a.callbacks=[s]:g.push(s))}else g={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},d===null?(c=d=g,u=f):d=d.next=g,i|=s;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;g=r,r=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null}}while(!0);d===null&&(u=f),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=d,o===null&&(a.shared.lanes=0),Cl|=i,e.lanes=i,e.memoizedState=f}}function Oy(e,t){if(typeof e!="function")throw Error(_(191,e));e.call(t)}function My(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oy(n[e],t)}var bl=cn(null),yu=cn(0);function Nh(e,t){e=Rn,se(yu,e),se(bl,t),Rn=e|t.baseLanes}function df(){se(yu,Rn),se(bl,bl.current)}function yd(){Rn=yu.current,je(bl),je(yu)}var ke=cn(null),Je=null;function fl(e){var t=e.alternate;se(Qe,Qe.current&1),se(ke,e),Je===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(Je=e)}function mf(e){se(Qe,Qe.current),se(ke,e),Je===null&&(Je=e)}function zy(e){e.tag===22?(se(Qe,Qe.current),se(ke,e),Je===null&&(Je=e)):dl()}function dl(){se(Qe,Qe.current),se(ke,ke.current)}function gt(e){je(ke),Je===e&&(Je=null),je(Qe)}var Qe=cn(0);function gi(e,t){se(ke,ke.current),se(Qe,t)}function vd(e){je(Qe),je(ke),Je===e&&(Je=null)}function vu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kf(n)||kd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 xn=0,H=null,le=null,Ae=null,bu=!1,Xa=!1,$l=!1,_u=0,hi=0,ka=null,oC=0;function Te(){throw Error(_(321))}function bd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ct(e[n],t[n]))return!1;return!0}function _d(e,t,n,l,a,o){return xn=o,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?cv:sv,$l=!1,o=n(l,a),$l=!1,Xa&&(o=Uy(t,n,l,a)),Dy(e),o}function Dy(e){z.H=Cu;var t=le!==null&&le.next!==null;if(xn=0,Ae=le=H=null,bu=!1,hi=0,ka=null,t)throw Error(_(300));e===null||Re||(e=e.dependencies,e!==null&&hu(e)&&(Re=!0))}function Uy(e,t,n,l){H=e;var a=0;do{if(Xa&&(ka=null),hi=0,Xa=!1,25<=a)throw Error(_(301));if(a+=1,Ae=le=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=mC,o=t(n,l)}while(Xa);return o}function iC(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Oi(t):t,e=e.useState()[0],(le!==null?le.memoizedState:null)!==e&&(H.flags|=1024),t}function Cd(){var e=_u!==0;return _u=0,e}function Sd(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Td(e){if(bu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bu=!1}xn=0,Ae=le=H=null,Xa=!1,hi=_u=0,ka=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?H.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function xe(){if(le===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=le.next;var t=Ae===null?H.memoizedState:Ae.next;if(t!==null)Ae=t,le=e;else{if(e===null)throw H.alternate===null?Error(_(467)):Error(_(310));le=e,e={memoizedState:le.memoizedState,baseState:le.baseState,baseQueue:le.baseQueue,queue:le.queue,next:null},Ae===null?H.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oi(e){var t=hi;return hi+=1,ka===null&&(ka=[]),e=Ay(ka,e,t),t=H,(Ae===null?t.memoizedState:Ae.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?cv:sv),e}function ku(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oi(e);if(e.$$typeof===V1)return;if(e.$$typeof===tn)return Ve(e)}throw Error(_(438,String(e)))}function Ed(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=H.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Xu(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=G1;return t.index++,n}function An(e,t){return typeof t=="function"?t(e):t}function Jr(e){var t=xe();return wd(t,le,e)}function wd(e,t,n){var l=e.queue;if(l===null)throw Error(_(311));l.lastRenderedReducer=n;var a=e.baseQueue,o=l.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}t.baseQueue=a=o,l.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=i=null,u=null,c=t,d=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(V&f)===f:(xn&f)===f){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Il&&(d=!0);else if((xn&s)===s){c=c.next,s===Il&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=f,i=o):u=u.next=f,H.lanes|=s,Cl|=s;f=c.action,$l&&n(o,f),o=c.hasEagerState?c.eagerState:n(o,f)}else s={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,i=o):u=u.next=s,H.lanes|=f,Cl|=f;c=c.next}while(c!==null&&c!==t);if(u===null?i=o:u.next=r,!Ct(o,e.memoizedState)&&(Re=!0,d&&(n=ja,n!==null)))throw n;e.memoizedState=o,e.baseState=i,e.baseQueue=u,l.lastRenderedState=o}return a===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ws(e){var t=xe(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Ct(o,t.memoizedState)||(Re=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Hy(e,t,n){var l=H,a=xe(),o=L;if(o){if(n===void 0)throw Error(_(407));n=n()}else n=t();var i=!Ct((le||a).memoizedState,n);if(i&&(a.memoizedState=n,Re=!0),a=a.queue,xd(By.bind(null,l,a,e),[e]),e=a.getSnapshot!==t||i||Ae!==null&&(Ae.memoizedState.tag&1)!==0,Fa(e?9:8,{destroy:void 0},Ly.bind(null,l,a,n,t),null),e){if(l.flags|=2048,oe===null)throw Error(_(349));o||(xn&127)!==0||qy(l,t,n)}return n}function qy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=Xu(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ly(e,t,n,l){t.value=n,t.getSnapshot=l,Yy(t)&&Gy(e)}function By(e,t,n){return n(function(){Yy(t)&&Gy(e)})}function Yy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ct(e,n)}catch{return!0}}function Gy(e){var t=la(e,2);t!==null&&rt(t,e,2)}function gf(e){var t=et();if(typeof e=="function"){var n=e;if(e=n(),$l){tl(!0);try{n()}finally{tl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:e},t}function Vy(e,t,n,l){return e.baseState=n,wd(e,le,typeof l=="function"?l:An)}function rC(e,t,n,l,a){if(Ku(e))throw Error(_(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};z.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,jy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function jy(e,t){var n=t.action,l=t.payload,a=e.state;if(t.isTransition){var o=z.T,i={};i.types=o!==null?o.types:null,z.T=i;try{var r=n(a,l),u=z.S;u!==null&&u(i,r),Rh(e,t,r)}catch(c){hf(e,t,c)}finally{o!==null&&i.types!==null&&(o.types=i.types),z.T=o}}else try{o=n(a,l),Rh(e,t,o)}catch(c){hf(e,t,c)}}function Rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Oh(e,t,l)},function(l){return hf(e,t,l)}):Oh(e,t,n)}function Oh(e,t,n){t.status="fulfilled",t.value=n,Qy(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jy(e,n)))}function hf(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Qy(t),t=t.next;while(t!==l)}e.action=null}function Qy(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xy(e,t){return t}function Mh(e,t){if(L){var n=oe.formState;if(n!==null){e:{var l=H;if(L){if(ce){t:{for(var a=ce,o=qt;a.nodeType!==8;){if(!o){a=null;break t}if(a=Lt(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){ce=Lt(a.nextSibling),l=a.data==="F!";break e}}vl(l)}l=!1}l&&(t=n[0])}}return n=et(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xy,lastRenderedState:t},n.queue=l,n=iv.bind(null,H,l),l.dispatch=n,l=gf(!1),o=Od.bind(null,H,!1,l.queue),l=et(),a={state:t,dispatch:null,action:e,pending:null},l.queue=a,n=rC.bind(null,H,a,o,n),a.dispatch=n,l.memoizedState=e,[t,n,!1]}function zh(e){var t=xe();return ky(t,le,e)}function ky(e,t,n){if(t=wd(e,t,Xy)[0],e=Jr(An)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Oi(t)}catch(i){throw i===so?Qu:i}else l=t;t=xe();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(H.flags|=2048,Fa(9,{destroy:void 0},uC.bind(null,a,n),null)),[l,o,e]}function uC(e,t){e.action=t}function Dh(e){var t=xe(),n=le;if(n!==null)return ky(t,n,e);xe(),t=t.memoizedState,n=xe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Fa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=H.updateQueue,t===null&&(t=Xu(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Zy(){return xe().memoizedState}function Ir(e,t,n,l){var a=et();H.flags|=e,a.memoizedState=Fa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Zu(e,t,n,l){var a=xe();l=l===void 0?null:l;var o=a.memoizedState.inst;le!==null&&l!==null&&bd(l,le.memoizedState.deps)?a.memoizedState=Fa(t,o,n,l):(H.flags|=e,a.memoizedState=Fa(1|t,o,n,l))}function Uh(e,t){Ir(8390656,8,e,t)}function xd(e,t){Zu(2048,8,e,t)}function cC(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=Xu(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ky(e){var t=xe().memoizedState;return cC({ref:t,nextImpl:e}),function(){if((J&2)!==0)throw Error(_(440));return t.impl.apply(void 0,arguments)}}function Jy(e,t){return Zu(4,2,e,t)}function Iy(e,t){return Zu(4,4,e,t)}function Py(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 $y(e,t,n){n=n!=null?n.concat([e]):null,Zu(4,4,Py.bind(null,t,e),n)}function Ad(){}function Fy(e,t){var n=xe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&bd(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Wy(e,t){var n=xe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&bd(t,l[1]))return l[0];if(l=e(),$l){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[l,t],l}function Nd(e,t,n){return n===void 0||(xn&1073741824)!==0&&(V&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=kv(),H.lanes|=e,Cl|=e,n)}function ev(e,t,n,l){return Ct(n,t)?n:bl.current!==null?(e=Nd(e,n,l),Ct(e,t)||(Re=!0),e):(xn&106)===0||(xn&1073741824)!==0&&(V&261930)===0?(Re=!0,e.memoizedState=n):(e=kv(),H.lanes|=e,Cl|=e,t)}function tv(e,t,n,l,a){var o=I.p;I.p=o!==0&&8>o?o:8;var i=z.T,r={};r.types=i!==null?i.types:null,z.T=r,Od(e,!1,t,n);try{var u=a(),c=z.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var d=aC(u,l);ti(e,t,d,_t(e))}else ti(e,t,l,_t(e))}catch(f){ti(e,t,{then:function(){},status:"rejected",reason:f},_t())}finally{I.p=o,i!==null&&r.types!==null&&(i.types=r.types),z.T=i}}function sC(){}function pf(e,t,n,l){if(e.tag!==5)throw Error(_(476));var a=nv(e).queue;tv(e,a,t,Vl,n===null?sC:function(){return lv(e),n(l)})}function nv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vl,baseState:Vl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Vl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lv(e){var t=nv(e);t.next===null&&(t=e.alternate.memoizedState),ti(e,t.next.queue,{},_t())}function Rd(){return Ve(oo)}function av(){return xe().memoizedState}function ov(){return xe().memoizedState}function fC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_t();e=cl(n);var l=sl(t,e,n);l!==null&&(rt(l,t,n),Fo(l,t,n)),t={cache:md()},e.payload=t;return}t=t.return}}function dC(e,t,n){var l=_t();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ku(e)?rv(t,n):(n=sd(e,t,n,l),n!==null&&(rt(n,e,l),uv(n,t,l)))}function iv(e,t,n){var l=_t();ti(e,t,n,l)}function ti(e,t,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ku(e))rv(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,r=o(i,n);if(a.hasEagerState=!0,a.eagerState=r,Ct(r,i))return Vu(e,t,a,0),oe===null&&Gu(),!1}catch{}if(n=sd(e,t,a,l),n!==null)return rt(n,e,l),uv(n,t,l),!0}return!1}function Od(e,t,n,l){if(l={lane:2,revertLane:Vd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ku(e)){if(t)throw Error(_(479))}else t=sd(e,n,l,2),t!==null&&rt(t,e,2)}function Ku(e){var t=e.alternate;return e===H||t!==null&&t===H}function rv(e,t){Xa=bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uv(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Zp(e,n)}}var Cu={readContext:Ve,use:ku,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useLayoutEffect:Te,useInsertionEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useSyncExternalStore:Te,useId:Te,useHostTransitionStatus:Te,useFormState:Te,useActionState:Te,useOptimistic:Te,useMemoCache:Te,useCacheRefresh:Te,useEffectEvent:Te},cv={readContext:Ve,use:ku,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Uh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ir(4194308,4,Py.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ir(4194308,4,e,t)},useInsertionEffect:function(e,t){Ir(4,2,e,t)},useMemo:function(e,t){var n=et();t=t===void 0?null:t;var l=e();if($l){tl(!0);try{e()}finally{tl(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=et();if(n!==void 0){var a=n(t);if($l){tl(!0);try{n(t)}finally{tl(!1)}}}else a=t;return l.memoizedState=l.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},l.queue=e,e=e.dispatch=dC.bind(null,H,e),[l.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,n=iv.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ad,useDeferredValue:function(e,t){var n=et();return Nd(n,e,t)},useTransition:function(){var e=gf(!1);return e=tv.bind(null,H,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=H,a=et();if(L){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),oe===null)throw Error(_(349));(V&127)!==0||qy(l,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Uh(By.bind(null,l,o,e),[e]),l.flags|=2048,Fa(9,{destroy:void 0},Ly.bind(null,l,o,n,t),null),n},useId:function(){var e=et(),t=oe.identifierPrefix;if(L){var n=an,l=ln;n=(l&~(1<<32-bt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=_u++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=oC++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rd,useFormState:Mh,useActionState:Mh,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Od.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ed,useCacheRefresh:function(){return et().memoizedState=fC.bind(null,H)},useEffectEvent:function(e){var t=et(),n={impl:e};return t.memoizedState=n,function(){if((J&2)!==0)throw Error(_(440));return n.impl.apply(void 0,arguments)}}},sv={readContext:Ve,use:ku,useCallback:Fy,useContext:Ve,useEffect:xd,useImperativeHandle:$y,useInsertionEffect:Jy,useLayoutEffect:Iy,useMemo:Wy,useReducer:Jr,useRef:Zy,useState:function(){return Jr(An)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=xe();return ev(n,le.memoizedState,e,t)},useTransition:function(){var e=Jr(An)[0],t=xe().memoizedState;return[typeof e=="boolean"?e:Oi(e),t]},useSyncExternalStore:Hy,useId:av,useHostTransitionStatus:Rd,useFormState:zh,useActionState:zh,useOptimistic:function(e,t){var n=xe();return Vy(n,le,e,t)},useMemoCache:Ed,useCacheRefresh:ov,useEffectEvent:Ky},mC={readContext:Ve,use:ku,useCallback:Fy,useContext:Ve,useEffect:xd,useImperativeHandle:$y,useInsertionEffect:Jy,useLayoutEffect:Iy,useMemo:Wy,useReducer:ws,useRef:Zy,useState:function(){return ws(An)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=xe();return le===null?Nd(n,e,t):ev(n,le.memoizedState,e,t)},useTransition:function(){var e=ws(An)[0],t=xe().memoizedState;return[typeof e=="boolean"?e:Oi(e),t]},useSyncExternalStore:Hy,useId:av,useHostTransitionStatus:Rd,useFormState:Dh,useActionState:Dh,useOptimistic:function(e,t){var n=xe();return le!==null?Vy(n,le,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ed,useCacheRefresh:ov,useEffectEvent:Ky};function xs(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yf={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=_t(),a=cl(l);a.payload=t,n!=null&&(a.callback=n),t=sl(e,a,l),t!==null&&(rt(t,e,l),Fo(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=_t(),a=cl(l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=sl(e,a,l),t!==null&&(rt(t,e,l),Fo(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),l=cl(n);l.tag=2,t!=null&&(l.callback=t),t=sl(e,l,n),t!==null&&(rt(t,e,n),Fo(t,e,n))}};function Hh(e,t,n,l,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,i):t.prototype&&t.prototype.isPureReactComponent?!si(n,l)||!si(a,o):!0}function qh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&yf.enqueueReplaceState(t,t.state,null)}function Fl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=ie({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function fv(e){fu(e)}function dv(e){console.error(e)}function mv(e){fu(e)}function Su(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Lh(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function vf(e,t,n){return n=cl(n),n.tag=3,n.payload={element:null},n.callback=function(){Su(e,t)},n}function gv(e){return e=cl(e),e.tag=3,e}function hv(e,t,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=l.value;e.payload=function(){return a(o)},e.callback=function(){Lh(t,n,l)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){Lh(t,n,l),typeof a!="function"&&(ml===null?ml=new Set([this]):ml.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function gC(e,t,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,a,!0),n=ke.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Je===null?Ou():n.alternate===null&&Ee===0&&(Ee=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Ds(e,l,a)),!1;case 22:return n.flags|=65536,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Ds(e,l,a)),!1}throw Error(_(435,n.tag))}return Ds(e,l,a),Ou(),!1}if(L)return t=ke.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==of&&(e=Error(_(422),{cause:l}),di(Ht(e,n)))):(l!==of&&(t=Error(_(423),{cause:l}),di(Ht(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,l=Ht(l,n),a=vf(e.stateNode,l,a),Es(e,a),Ee!==4&&(Ee=2)),!1;var o=Error(_(520),{cause:l});if(o=Ht(o,n),oi===null?oi=[o]:oi.push(o),Ee!==4&&(Ee=2),t===null)return!0;l=Ht(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=vf(n.stateNode,l,e),Es(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ml===null||!ml.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=gv(a),hv(a,e,n,l),Es(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Md=Error(_(461)),Re=!1;function Me(e,t,n,l){t.child=e===null?Ry(t,null,n,l):Pl(t,e.child,n,l)}function Bh(e,t,n,l,a){n=n.render;var o=t.ref;if("ref"in l){var i={};for(var r in l)r!=="ref"&&(i[r]=l[r])}else i=l;return Jl(t),l=_d(e,t,n,i,o,a),r=Cd(),e!==null&&!Re?(Sd(e,t,a),Nn(e,t,a)):(L&&r&&ju(t),t.flags|=1,Me(e,t,l,a),t.child)}function Yh(e,t,n,l,a){if(e===null){var o=n.type;return typeof o=="function"&&!fd(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,pv(e,t,o,l,a)):(e=kr(n.type,null,l,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Dd(e,a)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:si,n(i,l)&&e.ref===t.ref)return Nn(e,t,a)}return t.flags|=1,e=Sn(o,l),e.ref=t.ref,e.return=t,t.child=e}function pv(e,t,n,l,a){if(e!==null){var o=e.memoizedProps;if(si(o,l)&&e.ref===t.ref)if(Re=!1,t.pendingProps=l=o,Dd(e,a))(e.flags&131072)!==0&&(Re=!0);else return t.lanes=e.lanes,Nn(e,t,a)}return bf(e,t,n,l,a)}function yv(e,t,n,l){var a=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~o}else l=0,t.child=null;return Gh(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Kr(t,o!==null?o.cachePool:null),o!==null?Nh(t,o):df(),zy(t);else return l=t.lanes=536870912,Gh(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(Kr(t,o.cachePool),Nh(t,o),dl(),t.memoizedState=null):(e!==null&&Kr(t,null),df(),dl());return Me(e,t,a,n),t.child}function ni(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gh(e,t,n,l,a){var o=gd();return o=o===null?null:{parent:Ne._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Kr(t,null),df(),zy(t),e!==null&&Kl(e,t,l,!0),t.childLanes=a,null}function Pr(e,t){return t=Ju({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vh(e,t,n){return Pl(t,e.child,null,n),e=Pr(t,t.pendingProps),e.flags|=2,gt(t),t.memoizedState=null,e}function hC(e,t,n){var l=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(L){if(l.mode==="hidden")return e=Pr(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},ni(null,e);if(mf(t),(e=ce)?(e=y0(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:ln,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=Sy(e),n.return=t,t.child=n,Be=t,ce=null)):e=null,e===null)throw vl(t);return t.lanes=536870912,null}return Pr(t,l)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(mf(t),a)if(t.flags&256)t.flags&=-257,t=Vh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(_(558));else if(Re||Kl(e,t,n,!1),a=(n&e.childLanes)!==0,Re||a){if(bl.current===null){if(l=oe,l!==null&&(i=Kp(l,n),i!==0&&i!==o.retryLane))throw o.retryLane=i,la(e,i),rt(l,e,i),Md;Ou()}t=Vh(e,t,n)}else e=o.treeContext,ce=Lt(i.nextSibling),Be=t,L=!0,ul=null,qt=!1,e!==null&&Ey(t,e),t=Pr(t,l),t.flags|=134221824;return t}return e=Sn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ea(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(_(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bf(e,t,n,l,a){return Jl(t),n=_d(e,t,n,l,void 0,a),l=Cd(),e!==null&&!Re?(Sd(e,t,a),Nn(e,t,a)):(L&&l&&ju(t),t.flags|=1,Me(e,t,n,a),t.child)}function jh(e,t,n,l,a,o){return Jl(t),t.updateQueue=null,n=Uy(t,l,n,a),Dy(e),l=Cd(),e!==null&&!Re?(Sd(e,t,o),Nn(e,t,o)):(L&&l&&ju(t),t.flags|=1,Me(e,t,n,o),t.child)}function Qh(e,t,n,l,a){if(Jl(t),t.stateNode===null){var o=Ha,i=n.contextType;typeof i=="object"&&i!==null&&(o=Ve(i)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=yf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},pd(t),i=n.contextType,o.context=typeof i=="object"&&i!==null?Ve(i):Ha,o.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(xs(t,n,i,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&yf.enqueueReplaceState(o,o.state,null),ei(t,l,o,a),Wo(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=Fl(n,r);o.props=u;var c=o.context,d=n.contextType;i=Ha,typeof d=="object"&&d!==null&&(i=Ve(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||c!==i)&&qh(t,o,l,i),Wn=!1;var s=t.memoizedState;o.state=s,ei(t,l,o,a),Wo(),c=t.memoizedState,r||s!==c||Wn?(typeof f=="function"&&(xs(t,n,f,l),c=t.memoizedState),(u=Wn||Hh(t,n,u,l,s,c,i))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=c),o.props=l,o.state=c,o.context=i,l=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,sf(e,t),i=t.memoizedProps,d=Fl(n,i),o.props=d,f=t.pendingProps,s=o.context,c=n.contextType,u=Ha,typeof c=="object"&&c!==null&&(u=Ve(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==f||s!==u)&&qh(t,o,l,u),Wn=!1,s=t.memoizedState,o.state=s,ei(t,l,o,a),Wo();var g=t.memoizedState;i!==f||s!==g||Wn||e!==null&&e.dependencies!==null&&hu(e.dependencies)?(typeof r=="function"&&(xs(t,n,r,l),g=t.memoizedState),(d=Wn||Hh(t,n,d,l,s,g,u)||e!==null&&e.dependencies!==null&&hu(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,g,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,g,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=g),o.props=l,o.state=g,o.context=u,l=d):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Ea(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Pl(t,e.child,null,a),t.child=Pl(t,null,n,a)):Me(e,t,n,a),t.memoizedState=o.state,e=t.child):e=Nn(e,t,a),e}function Xh(e,t,n,l){return Zl(),t.flags|=256,Me(e,t,n,l),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cf(e){return{baseLanes:e,cachePool:xy()}}function Sf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=pt),e}function vv(e,t,n){var l=t.pendingProps,a=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),i&&(a=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(L){if(a?fl(t):dl(),(e=ce)?(e=y0(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:ln,overflow:an}:null,retryLane:536870912,hydrationErrors:null},n=Sy(e),n.return=t,t.child=n,Be=t,ce=null)):e=null,e===null)throw vl(t);return kd(e)?t.lanes=32:t.lanes=536870912,null}return o=l.children,l=l.fallback,a?(dl(),a=t.mode,o=Ju({mode:"hidden",children:o},a),l=jl(l,a,n,null),o.return=t,l.return=t,o.sibling=l,t.child=o,l=t.child,l.memoizedState=Cf(n),l.childLanes=Sf(e,i,n),t.memoizedState=_f,ni(null,l)):(fl(t),zd(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return pC(e,t,o,i,l,u,r,n)}return a?(dl(),a=l.fallback,o=t.mode,r=e.child,u=r.sibling,l=Sn(r,{mode:"hidden",children:l.children}),l.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=Sn(u,a):(a=jl(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,ni(null,l),l=t.child,a=e.child.memoizedState,a===null?a=Cf(n):(o=a.cachePool,o!==null?(r=Ne._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=xy(),a={baseLanes:a.baseLanes|n,cachePool:o}),l.memoizedState=a,l.childLanes=Sf(e,i,n),t.memoizedState=_f,ni(e.child,l)):(fl(t),n=e.child,e=n.sibling,n=Sn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function zd(e,t){return t=Ju({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ju(e,t){return e=it(22,e,null,t),e.lanes=0,e}function Mr(e,t,n){return Pl(t,e.child,null,n),e=zd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pC(e,t,n,l,a,o,i,r){if(n)return t.flags&256?(fl(t),t.flags&=-257,Mr(e,t,r)):t.memoizedState!==null?(dl(),t.child=e.child,t.flags|=128,null):(dl(),o=a.fallback,i=t.mode,a=Ju({mode:"visible",children:a.children},i),o=jl(o,i,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Pl(t,e.child,null,r),a=t.child,a.memoizedState=Cf(r),a.childLanes=Sf(e,l,r),t.memoizedState=_f,ni(null,a));if(fl(t),kd(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;return l=u,l!==""&&(a=Error(_(419)),a.stack="",a.digest=l,di({value:a,source:null,stack:null})),Mr(e,t,r)}if(Re||Kl(e,t,r,!1),l=(r&e.childLanes)!==0,Re||l){if(bl.current!==null)return Mr(e,t,r);if(l=oe,l!==null&&(a=Kp(l,r),a!==0&&a!==i.retryLane))throw i.retryLane=a,la(e,a),rt(l,e,a),Md;return Kf(o)||Ou(),Mr(e,t,r)}return Kf(o)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,ce=Lt(o.nextSibling),Be=t,L=!0,ul=null,qt=!1,e!==null&&Ey(t,e),t=zd(t,a.children),t.flags|=134221824,t)}function kh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Zr(e.return,t,n)}function Zh(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&vu(n)===null&&(t=e),e=e.sibling}return t}function zr(e,t,n,l,a,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=l,i.tail=n,i.tailMode=a,i.treeForkCount=o)}function As(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Tf(e,t,n){var l=t.pendingProps,a=l.revealOrder,o=l.tail;l=l.children;var i=Qe.current;if(t.flags&128)return gi(t,i),null;var r=(i&2)!==0;if(r?(i=i&1|2,t.flags|=128):i&=1,gi(t,i),a==="backwards"&&e!==null?(As(e),Me(e,t,l,n),As(e)):Me(e,t,l,n),l=L?fi:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kh(e,n,t);else if(e.tag===19)kh(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(a){case"backwards":n=Zh(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,As(t)),zr(t,!0,a,null,o,l);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&vu(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zr(t,!0,n,null,o,l);break;case"together":zr(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=Zh(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zr(t,!1,a,n,o,l)}return t.child}function Kh(e,t,n){var l=t.pendingProps;return ll(t,t.type,l.value),Me(e,t,l.children,n),t.child}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hu(e)))}function yC(e,t,n){switch(t.tag){case 3:ru(t,t.stateNode.containerInfo),ll(t,Ne,e.memoizedState.cache),Zl();break;case 27:case 5:Is(t);break;case 4:ru(t,t.stateNode.containerInfo);break;case 10:ll(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mf(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return fl(t),t.flags|=128,null;l=Kl(e,t,n,!1);var a=t.child.childLanes;return l||(n&a)!==0?vv(e,t,n):(fl(t),e=Nn(e,t,n),e!==null?e.sibling:null)}fl(t);break;case 19:if(t.flags&128)return Tf(e,t,n);if(a=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(Kl(e,t,n,!1),l=(n&t.childLanes)!==0),a){if(l)return Tf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),gi(t,Qe.current),l)break;return null;case 22:return t.lanes=0,yv(e,t,n,t.pendingProps);case 24:ll(t,Ne,e.memoizedState.cache)}return Nn(e,t,n)}function bv(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Re=!0;else{if(!Dd(e,n)&&(t.flags&128)===0)return Re=!1,yC(e,t,n);Re=(e.flags&131072)!==0}else Re=!1,L&&(t.flags&1048576)!==0&&Ty(t,fi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ll(t.elementType),t.type=e,typeof e=="function")fd(e)?(l=Fl(e,l),t.tag=1,t=Qh(null,t,e,l,n)):(t.tag=0,t=bf(null,t,e,l,n));else{if(e!=null){var a=e.$$typeof;if(a===Ff){t.tag=11,t=Bh(null,t,e,l,n);break e}else if(a===Wf){t.tag=14,t=Yh(null,t,e,l,n);break e}else if(a===tn){t.tag=10,t.type=e,t=Kh(null,t,n);break e}}throw t=Ks(e)||e,Error(_(306,t,""))}}return t;case 0:return bf(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,a=Fl(l,t.pendingProps),Qh(e,t,l,a,n);case 3:e:{if(ru(t,t.stateNode.containerInfo),e===null)throw Error(_(387));l=t.pendingProps;var o=t.memoizedState;a=o.element,sf(e,t),ei(t,l,null,n);var i=t.memoizedState;if(l=i.cache,ll(t,Ne,l),l!==o.cache&&uf(t,[Ne],n,!0),Wo(),l=i.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Xh(e,t,l,n);break e}else if(l!==a){a=Ht(Error(_(424)),t),di(a),t=Xh(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ce=Lt(e.firstChild),Be=t,L=!0,ul=null,qt=!0,n=Ry(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Zl(),l===a){t=Nn(e,t,n);break e}Me(e,t,l,n)}t=t.child}return t;case 26:return Ea(e,t),e===null?(n=_p(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(t.stateNode=u0(t.type,t.pendingProps,rl.current,t)):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Is(t),e===null&&L&&(l=t.stateNode=v0(t.type,t.pendingProps,rl.current),Be=t,qt=!0,a=ce,Tl(t.type)?(Jf=a,ce=Lt(l.firstChild)):ce=a),Me(e,t,t.pendingProps.children,n),Ea(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=l=ce)&&(l=cS(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,Be=t,ce=Lt(l.firstChild),qt=!1,a=!0):a=!1),a||vl(t)),Is(t),a=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Xf(a,o)?l=null:i!==null&&Xf(a,i)&&(t.flags|=32),t.memoizedState!==null&&(a=_d(e,t,iC,null,null,n),oo._currentValue=a),Ea(e,t),Me(e,t,l,n),t.child;case 6:return e===null&&L&&((e=n=ce)&&(n=sS(n,t.pendingProps,qt),n!==null?(t.stateNode=n,Be=t,ce=null,e=!0):e=!1),e||vl(t)),null;case 13:return vv(e,t,n);case 4:return ru(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Pl(t,null,l,n):Me(e,t,l,n),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,Ea(e,t),Me(e,t,l,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:return Kh(e,t,n);case 9:return a=t.type._context,l=t.pendingProps.children,Jl(t),a=Ve(a),l=l(a),t.flags|=1,Me(e,t,l,n),t.child;case 14:return Yh(e,t,t.type,t.pendingProps,n);case 15:return pv(e,t,t.type,t.pendingProps,n);case 19:return Tf(e,t,n);case 31:return hC(e,t,n);case 22:return yv(e,t,n,t.pendingProps);case 24:return Jl(t),l=Ve(Ne),e===null?(a=gd(),a===null&&(a=oe,o=md(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:l,cache:a},pd(t),ll(t,Ne,a)):((e.lanes&n)!==0&&(sf(e,t),ei(t,null,null,n),Wo()),a=e.memoizedState,o=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ll(t,Ne,l)):(l=o.cache,ll(t,Ne,l),l!==a.cache&&uf(t,[Ne],n,!0))),Me(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:L&&ju(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:Ea(e,t),Me(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(_(156,t.tag))}function bn(e){e.flags|=4}function Ns(e,t,n,l,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Tp(t,l):Tp(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Jv())e.flags|=8192;else throw Xl=pu,hd}else e.flags&=-16777217}function Jh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!S0(t))if(Jv())e.flags|=8192;else throw Xl=pu,hd}function Dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xp():536870912,e.lanes|=t,Wa|=t)}function Yo(e,t){if(!L)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&1206910976,l|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function vC(e,t,n){var l=t.pendingProps;switch(dd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return ue(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(Ne),Ia(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?bn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ts())),ue(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(bn(t),o!==null?(ue(t),Jh(t,o)):(ue(t),Ns(t,a,null,l,n))):o?o!==e.memoizedState?(bn(t),ue(t),Jh(t,o)):(ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&bn(t),ue(t),Ns(t,a,e,l,n)),null;case 27:if(uu(t),n=rl.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(!l){if(t.stateNode===null)throw Error(_(166));return ue(t),t.subtreeFlags&=-33554433,null}e=on.current,Sa(t)?Ch(t,e):(e=v0(a,l,n),t.stateNode=e,bn(t))}return ue(t),t.subtreeFlags&=-33554433,null;case 5:if(uu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(!l){if(t.stateNode===null)throw Error(_(166));return ue(t),t.subtreeFlags&=-33554433,null}if(o=on.current,Sa(t))Ch(t,o);else{var i=vi(rl.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?i.createElement(a,{is:l.is}):i.createElement(a)}}o[Ge]=t,o[ct]=l;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(Xe(o,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&bn(t)}}return ue(t),t.subtreeFlags&=-33554433,Ns(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&bn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(_(166));if(e=rl.current,Sa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,a=Be,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||i0(e.nodeValue,n)),e||vl(t,!0)}else e=vi(e).createTextNode(l),e[Ge]=t,t.stateNode=e}return ue(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Sa(t),n!==null){if(e===null){if(!l)throw Error(_(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(557));e[Ge]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),e=!1}else n=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(gt(t),t):(gt(t),null);if((t.flags&128)!==0)throw Error(_(558))}return ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Sa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!a)throw Error(_(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(_(317));a[Ge]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),a=!1}else a=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(gt(t),t):(gt(t),null)}return gt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==a&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dr(t,t.updateQueue),ue(t),null);case 4:return Ia(),e===null&&jd(t.stateNode.containerInfo),t.flags|=67108864,ue(t),null;case 10:return Tn(t.type),ue(t),null;case 19:if(vd(t),l=t.memoizedState,l===null)return ue(t),null;if(a=(t.flags&128)!==0,o=l.rendering,o===null)if(a)Yo(l,!1);else{if(Ee!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=vu(e),o!==null){for(t.flags|=128,Yo(l,!1),e=o.updateQueue,t.updateQueue=e,Dr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Cy(n,e),n=n.sibling;return gi(t,Qe.current&1|2),L&&_n(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&yt()>Nu&&(t.flags|=128,a=!0,Yo(l,!1),t.lanes=4194304)}else{if(!a)if(e=vu(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Dr(t,e),Yo(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!o.alternate&&!L)return ue(t),null}else 2*yt()-l.renderingStartTime>Nu&&n!==536870912&&(t.flags|=128,a=!0,Yo(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=yt(),e.sibling=null,o=Qe.current,o=a?o&1|2:o&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||L?gi(t,o):(n=o,se(ke,t),se(Qe,n),Je===null&&(Je=t)),L&&_n(t,l.treeForkCount),e}return ue(t),null;case 22:case 23:return gt(t),yd(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),n=t.updateQueue,n!==null&&Dr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&je(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Tn(Ne),ue(t),null;case 25:return null;case 30:return t.flags|=33554432,ue(t),null}throw Error(_(156,t.tag))}function bC(e,t){switch(dd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(Ne),Ia(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return uu(t),null;case 31:if(t.memoizedState!==null){if(gt(t),t.alternate===null)throw Error(_(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ia(),null;case 10:return Tn(t.type),null;case 22:case 23:return gt(t),yd(),e!==null&&je(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(Ne),null;case 25:return null;default:return null}}function _v(e,t){switch(dd(t),t.tag){case 3:Tn(Ne),Ia();break;case 26:case 27:case 5:uu(t);break;case 4:Ia();break;case 31:t.memoizedState!==null&>(t);break;case 13:gt(t);break;case 19:vd(t);break;case 10:Tn(t.type);break;case 22:case 23:gt(t),yd(),e!==null&&je(Ql);break;case 24:Tn(Ne)}}function Mi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&e)===e){l=void 0;var o=n.create,i=n.inst;l=o(),i.destroy=l}n=n.next}while(n!==a)}}catch(r){ee(t,t.return,r)}}function _l(e,t,n){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var o=a.next;l=o;do{if((l.tag&e)===e){var i=l.inst,r=i.destroy;if(r!==void 0){i.destroy=void 0,a=t;var u=n,c=r;try{c()}catch(d){ee(a,u,d)}}}l=l.next}while(l!==o)}}catch(d){ee(t,t.return,d)}}function Cv(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{My(t,n)}catch(l){ee(e,e.return,l)}}}function Sv(e,t,n){n.props=Fl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){ee(e,t,l)}}function Wt(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var a=e.stateNode,o=wn(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=d0(o)),l=a.ref;break;case 7:if(e.stateNode===null){var i=new St(e);ut(e.child,!1,rS,i,void 0,void 0),e.stateNode=i}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(r){ee(e,t,r)}}function Ye(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){ee(e,t,a)}else n.current=null}function Tu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)p0(e.stateNode,t[n])}function Ih(e){for(var t=e.return;t!==null&&(Hd(t)&&p0(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function li(e){for(var t=e.return;t!==null&&(Hd(t)&&uS(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function Ud(e){return e.tag===5||e.tag===3||e.tag===27}function Hd(e){return e&&e.tag===7&&e.stateNode!==null}function Ef(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){ee(e,e.return,a)}}function Rs(e,t,n){try{var l=e.stateNode;QC(l,e.type,n,t),l[ct]=t}catch(a){ee(e,e.return,a)}}function Tv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tv(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&&Tl(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 wf(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nn)),Tu(e,l),Z=!0;else if(a!==4&&(a===27&&(Tu(e,l),l=null,Tl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(wf(e,t,n,l),e=e.sibling;e!==null;)wf(e,t,n,l),e=e.sibling}function Eu(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),Tu(e,l),Z=!0;else if(a!==4&&(a===27&&(Tu(e,l),l=null,Tl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Eu(e,t,n,l),e=e.sibling;e!==null;)Eu(e,t,n,l),e=e.sibling}function Ev(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Xe(t,l,n),t[Ge]=e,t[ct]=n}catch(o){ee(e,e.return,o)}}var wu=!1,ht=null;function Ph(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(wu=!0)}var en=null;function $h(){var e=en;return en=null,e}var ot=0;function fo(e,t,n,l,a){return ot=0,wv(e.child,t,n,l,a)}function wv(e,t,n,l,a){for(var o=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(l!==null){var r=kf(i);l.push(r),r.view&&(o=!0)}else o||kf(i).view&&(o=!0);wu=!0,c0(i,ot===0?t:t+"_"+ot,n),ot++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||wv(e.child,t,n,l,a)&&(o=!0));e=e.sibling}return o}function un(e,t){for(;e!==null;)e.tag===5?s0(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||un(e.child,t)),e=e.sibling}function $r(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&($r(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(_(544));var n=t.name;t=Mn(t.default,t.share),t!=="none"&&(fo(e,n,t,null,!1)||un(e.child,!1))}e=e.sibling}}function xf(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,a=wn(l,n),o=Mn(l.default,n.paired?l.share:l.enter);o!=="none"?fo(e,a,o,null,!1)?($r(e),n.paired||t||eo(e,l.onEnter)):un(e.child,!1):$r(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)xf(e,t),e=e.sibling;else $r(e)}function Af(e){if(ht!==null&&ht.size!==0){var t=ht;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var a=t.get(l);if(a!==void 0){var o=Mn(n.default,n.share);if(o!=="none"&&(fo(e,l,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,eo(e,n.onShare)):un(e.child,!1)),t.delete(l),t.size===0)break}}}Af(e)}e=e.sibling}}}function Nf(e){if(e.tag===30){var t=e.memoizedProps,n=wn(t,e.stateNode),l=ht!==null?ht.get(n):void 0,a=Mn(t.default,l!==void 0?t.share:t.exit);a!=="none"&&(fo(e,n,a,null,!1)?l!==void 0?(a=e.stateNode,l.paired=a,a.paired=l,ht.delete(n),eo(e,t.onShare)):eo(e,t.onExit):un(e.child,!1)),ht!==null&&Af(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Nf(e),e=e.sibling;else ht!==null&&Af(e)}function xv(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=wn(t,e.stateNode);t=Mn(t.default,t.update),e.flags&=-5,t!=="none"&&fo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&xv(e);e=e.sibling}}function Rf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,un(e.child,!1))}Rf(e)}e=e.sibling}}function Fr(e){if(e.tag===30)e.stateNode.paired=null,un(e.child,!1),Rf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Fr(e),e=e.sibling;else Rf(e)}function Av(e){for(e=e.child;e!==null;)e.tag===30?un(e.child,!1):(e.subtreeFlags&33554432)!==0&&Av(e),e=e.sibling}function qd(e,t,n,l,a,o,i){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&ot<o.length){var c=o[ot],d=kf(u);(c.view||d.view)&&(r=!0);var f;if(f=(e.flags&4)===0)if(d.clip)f=!0;else{f=c.rect;var s=d.rect;f=f.y!==s.y||f.x!==s.x||f.height!==s.height||f.width!==s.width}f&&(e.flags|=4),d.abs?d=!c.abs:(c=c.rect,d=d.rect,d=c.height!==d.height||c.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&c0(u,ot===0?n:n+"_"+ot,a),r&&(e.flags&4)!==0||(en===null&&(en=[]),en.push(u,ot===0?l:l+"_"+ot,t.memoizedProps)),ot++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:qd(e,t.child,n,l,a,o,i)&&(r=!0));t=t.sibling}return r}function Nv(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,a=wn(n,l),o=Mn(n.default,n.update);if(t){l=l.clones;var i=l===null?null:l.map(IC)}else i=e.memoizedState,e.memoizedState=null;l=e;var r=e.child;ot=0,a=qd(l,r,a,a,o,i,!1),(e.flags&4)!==0&&a&&(t||eo(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Nv(e,t);e=e.sibling}}var He=!1,P=!1,Pt=!1,Ms=!1,Fh=typeof WeakSet=="function"?WeakSet:Set,qe=null,$t=!1,Ko=!1,xu=!1,Of=!1;function _C(e,t,n){if(e=e.containerInfo,jf=io,e=my(e),ud(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var r=0,u=-1,c=-1,d=0,f=0,s=e,g=null;t:for(;;){for(var v;s!==l||o!==0&&s.nodeType!==3||(u=r+o),s!==i||a!==0&&s.nodeType!==3||(c=r+a),s.nodeType===3&&(r+=s.nodeValue.length),(v=s.firstChild)!==null;)g=s,s=v;for(;;){if(s===e)break t;if(g===l&&++d===o&&(u=r),g===i&&++f===a&&(c=r),(v=s.nextSibling)!==null)break;s=g,g=s.parentNode}s=v}l=u===-1||c===-1?null:{start:u,end:c}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qf={focusedElem:e,selectionRange:l},io=!1,n=(n&335544064)===n,qe=t,t=n?9270:1024;qe!==null;){if(e=qe,n&&(l=e.deletions,l!==null))for(o=0;o<l.length;o++)n&&Nf(l[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&Ph(e),Ur(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Nf(l),Ur(n);continue}else if(l!==null&&l.memoizedState!==null){n&&Ph(e),Ur(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,qe=l):(n&&xv(e),Ur(n))}}ht=null}function Ur(e){for(;qe!==null;){var t=qe,n=e,l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&l!==null){n=void 0,a=l.memoizedProps,l=l.memoizedState;var o=t.stateNode;try{var i=Fl(t.type,a);n=o.getSnapshotBeforeUpdate(i,l),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){ee(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)Zf(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=wn(l.memoizedProps,l.stateNode),a=t.memoizedProps,a=Mn(a.default,a.update),a!=="none"&&fo(l,n,a,l.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(_(163))}if(l=t.sibling,l!==null){l.return=t.return,qe=l;break}qe=t.return}}function Rv(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Ft(e,n),l&4&&Mi(5,n);break;case 1:if(Ft(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){ee(n,n.return,i)}else{var a=Fl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){ee(n,n.return,i)}}l&64&&Cv(n),l&512&&Wt(n,n.return);break;case 3:if(Ft(e,n),l&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{My(e,t)}catch(i){ee(n,n.return,i)}}break;case 27:t===null&&l&4&&Ev(n);case 26:case 5:Ft(e,n),t===null&&l&4&&Ef(n),l&512&&Wt(n,n.return);break;case 12:Ft(e,n);break;case 31:Ft(e,n),l&4&&Dv(e,n);break;case 13:Ft(e,n),l&4&&Uv(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=zC.bind(null,n),fS(e,n))));break;case 22:if(l=n.memoizedState!==null||He,!l){var o=t!==null&&t.memoizedState!==null||P;t=He,a=P,He=l,(P=o)&&!a?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),jt(e,n,l)):Ft(e,n),He=t,P=a}break;case 30:Ft(e,n),l&512&&Wt(n,n.return);break;case 7:l&512&&Wt(n,n.return);default:Ft(e,n)}}function Mf(e,t){for(e=e.child;e!==null;)Ov(e,t),e=e.sibling}function Ov(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,i=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(u){ee(e,e.return,u)}zf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Z=!0}catch(u){ee(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?gp(r,!0):gp(e.stateNode,!1)}catch(u){ee(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Mf(e,t);break;default:Mf(e,t)}}function zf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:Ov(n,l);break e;case 22:n.memoizedState===null&&zf(n,l);break e;default:zf(n,l)}}e=e.sibling}}function Mv(e){var t=e.alternate;t!==null&&(e.alternate=null,Mv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qu(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 he=null,lt=!1;function Vt(e,t,n){for(n=n.child;n!==null;)zv(e,t,n),n=n.sibling}function zv(e,t,n){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ei,n)}catch{}switch(n.tag){case 26:P||Ye(n,t),Vt(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!P&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:P||Ye(n,t),li(n);var l=he,a=lt;Tl(n.type)&&(he=n.stateNode,lt=!1),Vt(e,t,n),b0(n.stateNode,n.type,n.memoizedProps),he=l,lt=a;break;case 5:P||Ye(n,t),li(n);case 6:if(n.tag===6&&li(n),l=he,a=lt,he=null,Vt(e,t,n),he=l,lt=a,he!==null)if(lt)try{(he.nodeType===9?he.body:he.nodeName==="HTML"?he.ownerDocument.body:he).removeChild(n.stateNode),Z=!0}catch(o){ee(n,t,o)}else try{he.removeChild(n.stateNode),Z=!0}catch(o){ee(n,t,o)}break;case 18:he!==null&&(lt?(e=he,mp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ro(e)):mp(he,n.stateNode));break;case 4:l=he,a=lt,he=n.stateNode.containerInfo,lt=!0,Vt(e,t,n),he=l,lt=a;break;case 0:case 11:case 14:case 15:_l(2,n,t),P||_l(4,n,t),Vt(e,t,n);break;case 1:P||(Ye(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Sv(n,t,l)),Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:P=(l=P)||n.memoizedState!==null,Vt(e,t,n),P=l;break;case 30:Ye(n,t),Vt(e,t,n);break;case 7:P||Ye(n,t),Vt(e,t,n);break;default:Vt(e,t,n)}}function Dv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ro(e)}catch(n){ee(t,t.return,n)}}}function Uv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ro(e)}catch(n){ee(t,t.return,n)}}function CC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fh),t;default:throw Error(_(435,e.tag))}}function Hr(e,t){var n=CC(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var a=DC.bind(null,e,l);l.then(a,a)}})}function Fe(e,t,n){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var o=l[a],i=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(Tl(u.type)){he=u.stateNode,lt=!1;break e}break;case 5:he=u.stateNode,lt=!1;break e;case 3:case 4:he=u.stateNode.containerInfo,lt=!0;break e}u=u.return}if(he===null)throw Error(_(160));zv(i,r,o),he=null,lt=!1,i=o.alternate,i!==null&&(i.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hv(t,e,n),t=t.sibling}var Qt=null;function Hv(e,t,n){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var o=0;o<l.length;o++){var i=l[o];i.ref.impl=i.nextImpl}Fe(t,e,n),We(e),a&4&&(_l(3,e,e.return),Mi(3,e),_l(5,e,e.return));break;case 1:Fe(t,e,n),We(e),a&512&&(P||l===null||Ye(l,l.return)),a&64&&He&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Qt,Fe(t,e,n),We(e),a&512&&(P||l===null||Ye(l,l.return)),a&4)if(a=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(He)e.stateNode=u0(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":l=a.getElementsByTagName("title")[0],(!l||l[Ai]||l[Ge]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(t),a.head.insertBefore(l,a.querySelector("head > title"))),Xe(l,t,n),l[Ge]=e,Le(l),t=l;break e;case"link":if(o=Sp("link","href",a).get(t+(n.href||""))){for(i=0;i<o.length;i++)if(l=o[i],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(i,1);break t}}l=a.createElement(t),Xe(l,t,n),a.head.appendChild(l);break;case"meta":if(o=Sp("meta","content",a).get(t+(n.content||""))){for(i=0;i<o.length;i++)if(l=o[i],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(i,1);break t}}l=a.createElement(t),Xe(l,t,n),a.head.appendChild(l);break;default:throw Error(_(468,t))}l[Ge]=e,Le(l),t=l}e.stateNode=t}else He||If(o,e.type,e.stateNode);else e.stateNode=Cp(o,n,e.memoizedProps);else a!==n?(a===null?(t=l.stateNode,t===null||P||t.parentNode.removeChild(t)):a.count--,n===null?He||If(o,e.type,e.stateNode):Cp(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Rs(e,e.memoizedProps,l.memoizedProps);break;case 27:Fe(t,e,n),We(e),a&512&&(P||l===null||Ye(l,l.return)),l!==null&&a&4&&Rs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(o=Pt,Pt=!1,Fe(t,e,n),Pt=o,We(e),a&512&&(P||l===null||Ye(l,l.return)),e.flags&32){t=e.stateNode;try{$a(t,""),Z=!0}catch(d){ee(e,e.return,d)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Rs(e,t,l!==null?l.memoizedProps:t)),a&1024&&(Ms=!0);break;case 6:if(Fe(t,e,n),We(e),a&4){if(e.stateNode===null)throw Error(_(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Z=!0}catch(d){ee(e,e.return,d)}}break;case 3:if(Z=!1,nu=null,o=Qt,Qt=bi(t.containerInfo),Fe(t,e,n),Qt=o,We(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(d){ee(e,e.return,d)}Ms&&(Ms=!1,qv(e)),Z=!1;break;case 4:a=Pt,Pt=He,l=ah(),o=Qt,Qt=bi(e.stateNode.containerInfo),Fe(t,e,n),We(e),Qt=o,Z&&Ko&&(xu=!0),Z=l,Pt=a;break;case 12:Fe(t,e,n),We(e);break;case 31:Fe(t,e,n),We(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Hr(e,t)));break;case 13:Fe(t,e,n),We(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Iu=yt()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Hr(e,t)));break;case 22:o=e.memoizedState!==null,i=l!==null&&l.memoizedState!==null;var r=He,u=P,c=Pt;He=r||o,Pt=c||o,P=u||i,Fe(t,e,n),P=u,Pt=c,He=r,We(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||l===null||i||He||P||(t=i||P,n=He,l=P,He=o||He,P=t,$n(e,2),He=n,P=l),!o&&Pt||Mf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Hr(e,n))));break;case 19:Fe(t,e,n),We(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Hr(e,t)));break;case 30:a&512&&(P||l===null||Ye(l,l.return)),a=ah(),o=Ko,i=(n&335544064)===n,r=e.memoizedProps,Ko=i&&Mn(r.default,r.update)!=="none",Fe(t,e,n),We(e),i&&l!==null&&Z&&(e.flags|=4),Ko=o,Z=a;break;case 21:break;case 7:a&512&&(P||l===null||Ye(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:Fe(t,e,n),We(e)}}function We(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Tv(l)){n=l;break}l=l.return}l=null;for(var a=e.return;a!==null;){if(Hd(a)){var o=a.stateNode;l===null?l=[o]:l.push(o)}if(Ud(a))break;a=a.return}var i=l;if(n==null)throw Error(_(160));switch(n.tag){case 27:var r=n.stateNode,u=Os(e);Eu(e,u,r,i);break;case 5:var c=n.stateNode;n.flags&32&&($a(c,""),n.flags&=-33);var d=Os(e);Eu(e,d,c,i);break;case 3:case 4:var f=n.stateNode.containerInfo,s=Os(e);wf(e,s,f,i);break;default:throw Error(_(161))}}catch(g){ee(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qv(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,io=!0,t.reset(),io=!1),e=e.sibling}}function Ta(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Lv(t,e),t=t.sibling;else Nv(t,!1)}function Lv(e,t){var n=e.alternate;if(n===null)xf(e,!1);else switch(e.tag){case 3:if(Of=$t=!1,$h(),Ta(t,e),!$t&&!xu){if(e=en,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var a=e[l+1];s0(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Of=!0}en=null;break;case 5:Ta(t,e);break;case 4:l=$t,$t=!1,Ta(t,e),$t&&(xu=!0),$t=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?xf(e,!1):Ta(t,e));break;case 30:l=$t,a=$h(),$t=!1,Ta(t,e),$t&&(e.flags|=4);var o=e.memoizedProps,i=e.stateNode;t=wn(o,i),i=wn(n.memoizedProps,i);var r=Mn(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,ot=0,t=qd(e,n,t,i,r,o,!0),ot!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(eo(e,e.memoizedProps.onUpdate),en=a):a!==null&&(a.push.apply(a,en),en=a),$t=(e.flags&32)!==0?!0:l;break;default:Ta(t,e)}}function Ft(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rv(e,t.alternate,t),t=t.sibling}function $n(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),$n(n,l);break;case 1:Ye(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Sv(n,n.return,a),$n(n,l);break;case 27:(l&2)!==0&&b0(n.stateNode,n.type,n.memoizedProps);case 5:Ye(n,n.return),n.tag!==5&&n.tag!==27||li(n),$n(n,l);break;case 6:li(n);break;case 26:Ye(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||P||a.parentNode.removeChild(a),$n(n,l);break;case 22:n.memoizedState===null&&$n(n,l);break;case 30:Ye(n,n.return),$n(n,l);break;case 7:Ye(n,n.return);default:$n(n,l)}e=e.sibling}}function jt(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,a=e,o=t,i=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:jt(a,o,n),Mi(4,o);break;case 1:if(jt(a,o,n),l=o,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(d){ee(l,l.return,d)}if(l=o,a=l.updateQueue,a!==null){var u=l.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)Oy(c[a],u)}catch(d){ee(l,l.return,d)}}r&&i&64&&Cv(o),Wt(o,o.return);break;case 27:(n&2)!==0&&Ev(o);case 5:o.tag!==5&&o.tag!==27||Ih(o),jt(a,o,n),r&&l===null&&i&4&&Ef(o),Wt(o,o.return);break;case 6:Ih(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||He||If(bi(u.ownerDocument),o.type,u),jt(a,o,n),r&&l===null&&i&4&&Ef(o),Wt(o,o.return);break;case 12:jt(a,o,n);break;case 31:jt(a,o,n),r&&i&4&&Dv(a,o);break;case 13:jt(a,o,n),r&&i&4&&Uv(a,o);break;case 22:o.memoizedState===null&&jt(a,o,n),Wt(o,o.return);break;case 30:jt(a,o,n),Wt(o,o.return);break;case 7:Wt(o,o.return);default:jt(a,o,n)}t=t.sibling}}function Ld(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&&Ri(n))}function Bd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ri(e))}function Ot(e,t,n,l){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Bv(e,t,n,l),t=t.sibling;else a&&Av(t)}function Bv(e,t,n,l){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Fr(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,n,l),o&2048&&Mi(9,t);break;case 1:Ot(e,t,n,l);break;case 3:Ot(e,t,n,l),a&&Of&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Ri(o)));break;case 12:if(o&2048){Ot(e,t,n,l),o=t.stateNode;try{var i=t.memoizedProps,r=i.id,u=i.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(c){ee(t,t.return,c)}}else Ot(e,t,n,l);break;case 31:Ot(e,t,n,l);break;case 13:Ot(e,t,n,l);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&Fr(r),i._visibility&2?Ot(e,t,n,l):ai(e,t)):(a&&r!==null&&r.memoizedState!==null&&Fr(t),i._visibility&2?Ot(e,t,n,l):(i._visibility|=2,wa(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Ld(r,t);break;case 24:Ot(e,t,n,l),o&2048&&Bd(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(un(o.child,!0),un(t.child,!0))),Ot(e,t,n,l);break;default:Ot(e,t,n,l)}}function wa(e,t,n,l,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,r=n,u=l,c=i.flags;switch(i.tag){case 0:case 11:case 15:wa(o,i,r,u,a),Mi(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?wa(o,i,r,u,a):ai(o,i):(d._visibility|=2,wa(o,i,r,u,a)),a&&c&2048&&Ld(i.alternate,i);break;case 24:wa(o,i,r,u,a),a&&c&2048&&Bd(i.alternate,i);break;default:wa(o,i,r,u,a)}t=t.sibling}}function ai(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,a=l.flags;switch(l.tag){case 22:ai(n,l),a&2048&&Ld(l.alternate,l);break;case 24:ai(n,l),a&2048&&Bd(l.alternate,l);break;default:ai(n,l)}t=t.sibling}}var Bl=8192;function Hl(e,t,n){if(e.subtreeFlags&Bl)for(e=e.child;e!==null;)Yv(e,t,n),e=e.sibling}function Yv(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Bl&&(e.memoizedState!==null?wS(n,Qt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Ep(n,e)));break;case 5:Hl(e,t,n),e.flags&Bl&&(e=e.stateNode,(t&335544128)===t&&Ep(n,e));break;case 3:case 4:var l=Qt;Qt=bi(e.stateNode.containerInfo),Hl(e,t,n),Qt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Bl,Bl=16777216,Hl(e,t,n),Bl=l):Hl(e,t,n));break;case 30:if((e.flags&Bl)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var a=e.stateNode;a.paired=null,ht===null&&(ht=new Map),ht.set(l,a)}Hl(e,t,n);break;default:Hl(e,t,n)}}function Gv(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 Go(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];qe=l,jv(l,e)}Gv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vv(e),e=e.sibling}function Vv(e){switch(e.tag){case 0:case 11:case 15:Go(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Go(e);break;case 12:Go(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wr(e)):Go(e);break;default:Go(e)}}function Wr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];qe=l,jv(l,e)}Gv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Wr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Wr(t));break;default:Wr(t)}e=e.sibling}}function jv(e,t){for(;qe!==null;){var n=qe;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 l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ri(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,qe=l;else e:for(n=e;qe!==null;){l=qe;var a=l.sibling,o=l.return;if(Mv(l),l===n){qe=null;break e}if(a!==null){a.return=o,qe=a;break e}qe=o}}}var SC={getCacheForType:function(e){var t=Ve(Ne),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ve(Ne).controller.signal}},TC=typeof WeakMap=="function"?WeakMap:Map,J=0,oe=null,G=null,V=0,F=0,dt=null,al=!1,mo=!1,Yd=!1,Rn=0,Ee=0,Cl=0,kl=0,Au=0,pt=0,Wa=0,oi=null,at=null,Df=!1,Iu=0,Qv=0,Nu=1/0,Ru=null,ml=null,ve=0,kt=null,Wl=null,rn=0,Uf=0,Hf=null,Xv=null,Za=null,Ka=null,Ja=null,ii=0,eu=null;function _t(){return(J&2)!==0&&V!==0?V&-V:z.T!==null?Vd():Jp()}function kv(){if(pt===0)if((V&536870912)===0||L){var e=Sr;Sr<<=1,(Sr&3932160)===0&&(Sr=262144),pt=e}else pt=536870912;return e=ke.current,e!==null&&(e.flags|=32),pt}function eo(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=d0(wn(e.memoizedProps,n))),Ka===null&&(Ka=[]),Ka.push(t.bind(null,l))}}function rt(e,t,n){(e===oe&&(F===2||F===9)||e.cancelPendingCommit!==null)&&(to(e,0),ol(e,V,pt,!1)),xi(e,n),((J&2)===0||e!==oe)&&(e===oe&&((J&2)===0&&(kl|=n),Ee===4&&ol(e,V,pt,!1)),sn(e))}function Zv(e,t,n){if((J&6)!==0)throw Error(_(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||wi(e,t),a=l?xC(e,t):zs(e,t,!0),o=l;do{if(a===0){mo&&!l&&ol(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!EC(n)){a=zs(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var r=e;a=oi;var u=r.current.memoizedState.isDehydrated;if(u&&(to(r,i).flags|=256),i=zs(r,i,!1),i!==2&&i!==6){if(Yd&&!u){r.errorRecoveryDisabledLanes|=o,kl|=o,a=4;break e}o=at,at=a,o!==null&&(at===null?at=o:at.push.apply(at,o))}a=i}if(o=!1,a!==2)continue}}if(a===1){to(e,0),ol(e,t,0,!0);break}e:{switch(l=e,o=a,o){case 0:case 1:throw Error(_(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ol(l,t,pt,!al);break e;case 2:at=null;break;case 3:case 5:break;default:throw Error(_(329))}if((t&62914560)===t&&(a=Iu+300-yt(),10<a)){if(ol(l,t,pt,!al),Hu(l,0,!0)!==0)break e;rn=t,l.timeoutHandle=Qd(Wh.bind(null,l,n,at,Ru,Df,t,pt,kl,Wa,al,o,"Throttled",-0,0),a);break e}Wh(l,n,at,Ru,Df,t,pt,kl,Wa,al,o,null,-0,0)}}break}while(!0);sn(e)}function Wh(e,t,n,l,a,o,i,r,u,c,d,f,s,g){e.timeoutHandle=-1;var v=t.subtreeFlags,b=(o&335544064)===o;if(f=null,(b||v&8192||(v&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:nn},ht=null,Yv(t,o,f),b&&(v=f,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(v.count++,v.waitingForViewTransition=!0,v=_i.bind(v),b.finished.then(v,v))),v=(o&62914560)===o?Iu-yt():(o&4194048)===o?Qv-yt():0,v=xS(f,v),v!==null)){rn=o,e.cancelPendingCommit=v(tp.bind(null,e,t,o,n,l,a,i,r,u,c,d,f,null,s,g)),ol(e,o,i,!c);return}tp(e,t,o,n,l,a,i,r,u,c,d,f)}function EC(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 l=0;l<n.length;l++){var a=n[l],o=a.getSnapshot;a=a.value;try{if(!Ct(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ol(e,t,n,l){t=Qp(e,t),t&=~Au,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var a=t;0<a;){var o=31-bt(a),i=1<<o;l[o]=-1,a&=~i}n!==0&&kp(e,n,t)}function Pu(){return(J&6)===0?(zi(0,!1),!1):!0}function Gd(){if(G!==null){if(F===0)var e=G.return;else e=G,Cn=aa=null,Td(e),Qa=null,mi=0,e=G;for(;e!==null;)_v(e.alternate,e),e=e.return;G=null}}function to(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,ZC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),rn=0,Gd(),oe=e,G=n=Sn(e.current,null),V=t,F=0,dt=null,al=!1,mo=wi(e,t),Yd=!1,Wa=pt=Au=kl=Cl=Ee=0,at=oi=null,Df=!1,Rn=Qp(e,t),Gu(),n}function Kv(e,t){H=null,z.H=Cu,t===so||t===Qu?(t=xh(),F=3):t===hd?(t=xh(),F=4):F=t===Md?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dt=t,G===null&&(Ee=1,Su(e,Ht(t,e.current)))}function Jv(){var e=ke.current;return e===null?!0:(V&4194048)===V?Je===null:(V&62914560)===V||(V&536870912)!==0?e===Je:!1}function Iv(){var e=z.H;return z.H=Cu,e===null?Cu:e}function Pv(){var e=z.A;return z.A=SC,e}function Ou(){Ee=4,al||(V&4194048)!==V&&ke.current!==null||(mo=!0),(Cl&134217727)===0&&(kl&134217727)===0||oe===null||ol(oe,V,pt,!1)}function zs(e,t,n){var l=J;J|=2;var a=Iv(),o=Pv();(oe!==e||V!==t)&&(Ru=null,to(e,t)),t=!1;var i=Ee;e:do try{if(F!==0&&G!==null){var r=G,u=dt;switch(F){case 8:Gd(),i=6;break e;case 3:case 2:case 9:case 6:ke.current===null&&(t=!0);var c=F;if(F=0,dt=null,Ba(e,r,u,c),n&&mo){i=0;break e}break;default:c=F,F=0,dt=null,Ba(e,r,u,c)}}wC(),i=Ee;break}catch(d){Kv(e,d)}while(!0);return t&&e.shellSuspendCounter++,Cn=aa=null,J=l,z.H=a,z.A=o,G===null&&(oe=null,V=0,Gu()),i}function wC(){for(;G!==null;)$v(G)}function xC(e,t){var n=J;J|=2;var l=Iv(),a=Pv();oe!==e||V!==t?(Ru=null,Nu=yt()+500,to(e,t)):mo=wi(e,t);e:do try{if(F!==0&&G!==null){t=G;var o=dt;t:switch(F){case 1:F=0,dt=null,Ba(e,t,o,1);break;case 2:case 9:if(wh(o)){F=0,dt=null,ep(t);break}t=function(){F!==2&&F!==9||oe!==e||(F=7),sn(e)},o.then(t,t);break e;case 3:F=7;break e;case 4:F=5;break e;case 7:wh(o)?(F=0,dt=null,ep(t)):(F=0,dt=null,Ba(e,t,o,7));break;case 5:var i=null;switch(G.tag){case 26:i=G.memoizedState;case 5:case 27:var r=G;if(i?S0(i):r.stateNode.complete){F=0,dt=null;var u=r.sibling;if(u!==null)G=u;else{var c=r.return;c!==null?(G=c,$u(c)):G=null}break t}}F=0,dt=null,Ba(e,t,o,5);break;case 6:F=0,dt=null,Ba(e,t,o,6);break;case 8:Gd(),Ee=6;break e;default:throw Error(_(462))}}AC();break}catch(d){Kv(e,d)}while(!0);return Cn=aa=null,z.H=l,z.A=a,J=n,G!==null?0:(oe=null,V=0,Gu(),Ee)}function AC(){for(;G!==null&&!X1();)$v(G)}function $v(e){var t=bv(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?$u(e):G=t}function ep(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jh(n,t,t.pendingProps,t.type,void 0,V);break;case 11:t=jh(n,t,t.pendingProps,t.type.render,t.ref,V);break;case 5:Td(t);var l=t;l===Be&&(L?(gu(l),l.tag===5&&l.stateNode!=null&&(ce=l.stateNode)):(gu(l),L=!0));default:_v(n,t),t=G=Cy(t,Rn),t=bv(n,t,Rn)}e.memoizedProps=e.pendingProps,t===null?$u(e):G=t}function Ba(e,t,n,l){Cn=aa=null,Td(t),Qa=null,mi=0;var a=t.return;try{if(gC(e,a,t,n,V)){Ee=1,Su(e,Ht(n,e.current)),G=null;return}}catch(o){if(a!==null)throw G=a,o;Ee=1,Su(e,Ht(n,e.current)),G=null;return}t.flags&32768?(L||l===1?e=!0:mo||(V&536870912)!==0?e=!1:(al=e=!0,(l===2||l===9||l===3||l===6)&&(l=ke.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fv(t,e)):$u(t)}function $u(e){var t=e;do{if((t.flags&32768)!==0){Fv(t,al);return}e=t.return;var n=vC(t.alternate,t,Rn);if(n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);Ee===0&&(Ee=5)}function Fv(e,t){do{var n=bC(e.alternate,e);if(n!==null){n.flags&=32767,G=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){G=e;return}G=e=n}while(e!==null);Ee=6,G=null}function tp(e,t,n,l,a,o,i,r,u,c,d,f){e.cancelPendingCommit=null;do Fu();while(ve!==0);if((J&6)!==0)throw Error(_(327));if(t!==null){if(t===e.current)throw Error(_(177));e===oe&&(G=oe=null,V=0),Wl=t,kt=e,rn=n,Hf=a,Xv=l,NC(e,t,n,i,r,u,f)}}function NC(e,t,n,l,a,o,i){var r=t.lanes|t.childLanes;if(Uf=r,r|=cd,e_(e,n,r,l,a,o),Ka=null,(n&335544064)===n?(Ja=nC(e),l=10262):(Ja=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,UC(cu,function(){return Yf(),null})):(e.callbackNode=null,e.callbackPriority=0),wu=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,a=I.p,I.p=2,o=J,J|=4;try{_C(e,t,n)}finally{J=o,I.p=a,z.T=l}}ve=1,wu?Za=FC(i,e.containerInfo,Ja,qf,Lf,OC,Bf,Yf,RC,null,null):(qf(),Lf(),Bf())}function RC(e){if(ve!==0){var t=kt.onRecoverableError;t(e,{componentStack:null})}}function OC(){ve===3&&(ve=0,Lv(Wl,kt),ve=4)}function qf(){if(ve===1){ve=0;var e=kt,t=Wl,n=rn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=I.p;I.p=2;var o=J;J|=4;try{Ko=xu=!1,Hv(t,e,n),n=Qf;var i=my(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(i!==r&&r&&r.ownerDocument&&dy(r.ownerDocument.documentElement,r)){if(u!==null&&ud(r)){var c=u.start,d=u.end;if(d===void 0&&(d=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(d,r.value.length);else{var f=r.ownerDocument||document,s=f&&f.defaultView||window;if(s.getSelection){var g=s.getSelection(),v=r.textContent.length,b=Math.min(u.start,v),S=u.end===void 0?b:Math.min(u.end,v);!g.extend&&b>S&&(i=S,S=b,b=i);var h=yh(r,b),m=yh(r,S);if(h&&m&&(g.rangeCount!==1||g.anchorNode!==h.node||g.anchorOffset!==h.offset||g.focusNode!==m.node||g.focusOffset!==m.offset)){var p=f.createRange();p.setStart(h.node,h.offset),g.removeAllRanges(),b>S?(g.addRange(p),g.extend(m.node,m.offset)):(p.setEnd(m.node,m.offset),g.addRange(p))}}}}for(f=[],g=r;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<f.length;r++){var y=f[r];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}io=!!jf,Qf=jf=null}finally{J=o,I.p=a,z.T=l}}e.current=t,ve=2}}function Lf(){if(ve===2){ve=0;var e=kt,t=Wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var l=I.p;I.p=2;var a=J;J|=4;try{Rv(e,t.alternate,t)}finally{J=a,I.p=l,z.T=n}}ve=3}}function Bf(){if(ve===4||ve===3){ve=0;var e=Za;Za=null,k1();var t=kt,n=Wl,l=rn,a=Xv,o=(l&335544064)===l?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?ve=5:(ve=0,Wl=kt=null,Wv(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(ml=null),nd(l),n=n.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(Ei,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=z.T,o=I.p,I.p=2,z.T=null;try{for(var i=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];i(u.value,{componentStack:u.stack})}}finally{z.T=n,I.p=o}}if(a=Ka,i=Ja,Ja=null,a!==null&&(Ka=null,i===null&&(i=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(i),n!==void 0&&e.finished.finally(n);(rn&3)!==0&&Fu(),sn(t),o=t.pendingLanes,(l&261930)!==0&&(o&42)!==0?t===eu?ii++:(ii=0,eu=t):(ii=0,eu=null),zi(0,!1)}}function Wv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ri(t)))}function Fu(){return Za!==null&&(Za.skipTransition(),Za=null),qf(),Lf(),Bf(),Yf()}function Yf(){if(ve!==5)return!1;var e=kt,t=Uf;Uf=0;var n=nd(rn),l=z.T,a=I.p;try{I.p=32>n?32:n,z.T=null,n=Hf,Hf=null;var o=kt,i=rn;if(ve=0,Wl=kt=null,rn=0,(J&6)!==0)throw Error(_(331));var r=J;if(J|=4,Vv(o.current),Bv(o,o.current,i,n),J=r,zi(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(Ei,o)}catch{}return!0}finally{I.p=a,z.T=l,Wv(e,t)}}function np(e,t,n){t=Ht(n,t),t=vf(e.stateNode,t,2),e=sl(e,t,2),e!==null&&(xi(e,2),sn(e))}function ee(e,t,n){if(e.tag===3)np(e,e,n);else for(;t!==null;){if(t.tag===3){np(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ml===null||!ml.has(l))){e=Ht(n,e),n=gv(2),l=sl(t,n,2),l!==null&&(hv(n,l,t,e),xi(l,2),sn(l));break}}t=t.return}}function Ds(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new TC;var a=new Set;l.set(t,a)}else a=l.get(t),a===void 0&&(a=new Set,l.set(t,a));a.has(n)||(Yd=!0,a.add(n),e=MC.bind(null,e,t,n),t.then(e,e))}function MC(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,oe===e&&(V&n)===n&&((Ee===4||Ee===3&&(V&62914560)===V&&300>yt()-Iu)&&(J&2)===0?to(e,0):Au|=n,Wa===V&&(Wa=0)),sn(e)}function e0(e,t){t===0&&(t=Xp()),e=la(e,t),e!==null&&(xi(e,t),sn(e))}function zC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e0(e,n)}function DC(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(_(314))}l!==null&&l.delete(t),e0(e,n)}function UC(e,t){return ed(e,t)}var no=null,xa=null,Gf=!1,Mu=!1,Us=!1,il=0;function sn(e){e!==xa&&e.next===null&&(xa===null?no=xa=e:xa=xa.next=e),Mu=!0,Gf||(Gf=!0,qC())}function zi(e,t){if(!Us&&Mu){Us=!0;do for(var n=!1,l=no;l!==null;){if(!t)if(e!==0){var a=l.pendingLanes;if(a===0)var o=0;else{var i=l.suspendedLanes,r=l.pingedLanes;o=(1<<31-bt(42|e)+1)-1,o&=a&~(i&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,lp(l,o))}else o=V,o=Hu(l,l===oe?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||wi(l,o)||(n=!0,lp(l,o));l=l.next}while(n);Us=!1}}function HC(){t0()}function t0(){Mu=Gf=!1;var e=0;il!==0&&kC()&&(e=il);for(var t=yt(),n=null,l=no;l!==null;){var a=l.next,o=n0(l,t);o===0?(l.next=null,n===null?no=a:n.next=a,a===null&&(xa=n)):(n=l,(e!==0||(o&3)!==0)&&(Mu=!0)),l=a}ve!==0&&ve!==5||zi(e,!1),il!==0&&(il=0)}function n0(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-bt(o),r=1<<i,u=a[i];u===-1?((r&n)===0||(r&l)!==0)&&(a[i]=W1(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=oe,n=V,n=Hu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(F===2||F===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ds(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||wi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&ds(l),nd(n)){case 2:case 8:n=Vp;break;case 32:n=cu;break;case 268435456:n=jp;break;default:n=cu}return l=l0.bind(null,e),n=ed(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&ds(l),e.callbackPriority=2,e.callbackNode=null,2}function l0(e,t){if(ve!==0&&ve!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Fu()&&e.callbackNode!==n)return null;var l=V;return l=Hu(e,e===oe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Zv(e,l,t),n0(e,yt()),e.callbackNode!=null&&e.callbackNode===n?l0.bind(null,e):null)}function lp(e,t){if(Fu())return null;Zv(e,t,!0)}function qC(){KC(function(){(J&6)!==0?ed(Gp,HC):t0()})}function Vd(){if(il===0){var e=Il;e===0&&(e=Cr,Cr<<=1,(Cr&261888)===0&&(Cr=256)),il=e}return il}function ap(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:jr(e)}function LC(e,t,n,l,a){if(t==="submit"&&n&&n.stateNode===a){var o=ap((a[ct]||null).action),i=l.submitter;i&&(t=(t=i[ct]||null)?ap(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var r=new Lu("action","action",null,l,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(il!==0){var u=new FormData(a,i);pf(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,i),pf(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(qr=0;qr<af.length;qr++)Lr=af[qr],op=Lr.toLowerCase(),ip=Lr[0].toUpperCase()+Lr.slice(1),Zt(op,"on"+ip);var Lr,op,ip,qr;Zt(hy,"onAnimationEnd");Zt(py,"onAnimationIteration");Zt(yy,"onAnimationStart");Zt("dblclick","onDoubleClick");Zt("focusin","onFocus");Zt("focusout","onBlur");Zt(J_,"onTransitionRun");Zt(I_,"onTransitionStart");Zt(P_,"onTransitionCancel");Zt(vy,"onTransitionEnd");Pa("onMouseEnter",["mouseout","mouseover"]);Pa("onMouseLeave",["mouseout","mouseover"]);Pa("onPointerEnter",["pointerout","pointerover"]);Pa("onPointerLeave",["pointerout","pointerover"]);ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="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(" "),BC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function a0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],a=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var i=l.length-1;0<=i;i--){var r=l[i],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(d){fu(d)}a.currentTarget=null,o=u}else for(i=0;i<l.length;i++){if(r=l[i],u=r.instance,c=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(d){fu(d)}a.currentTarget=null,o=u}}}}function Y(e,t){var n=t[eh];n===void 0&&(n=t[eh]=new Set);var l=e+"__bubble";n.has(l)||(o0(t,e,2,!1),n.add(l))}function Hs(e,t,n){var l=0;t&&(l|=4),o0(n,e,l,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function jd(e){if(!e[Br]){e[Br]=!0,Pp.forEach(function(n){n!=="selectionchange"&&(BC.has(n)||Hs(n,!1,e),Hs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Hs("selectionchange",!1,t))}}function o0(e,t,n,l){switch(R0(t)){case 2:var a=OS;break;case 8:a=MS;break;default:a=Id}n=a.bind(null,t,n,e),a=void 0,!ef||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function qs(e,t,n,l,a){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var i=l.tag;if(i===3||i===4){var r=l.stateNode.containerInfo;if(r===a)break;if(i===4)for(i=l.return;i!==null;){var u=i.tag;if((u===3||u===4)&&i.stateNode.containerInfo===a)return;i=i.return}for(;r!==null;){if(i=Yl(r),i===null)return;if(u=i.tag,u===5||u===6||u===26||u===27){l=o=i;continue e}r=r.parentNode}}l=l.return}ay(function(){var c=o,d=ad(n),f=[];e:{var s=by.get(e);if(s!==void 0){var g=Lu,v=e;switch(e){case"keypress":if(Xr(n)===0)break e;case"keydown":case"keyup":g=E_;break;case"focusin":v="focus",g=vs;break;case"focusout":v="blur",g=vs;break;case"beforeblur":case"afterblur":g=vs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=d_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=R_;break;case hy:case py:case yy:g=h_;break;case vy:g=M_;break;case"scroll":case"scrollend":g=s_;break;case"wheel":g=D_;break;case"copy":case"cut":case"paste":g=y_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=sh;break;case"submit":g=A_;break;case"toggle":case"beforetoggle":g=H_}var b=(t&4)!==0,S=!b&&(e==="scroll"||e==="scrollend"),h=b?s!==null?s+"Capture":null:s;b=[];for(var m=c,p;m!==null;){var y=m;if(p=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||p===null||h===null||(y=ui(m,h),y!=null&&b.push(yi(m,y,p))),S)break;m=m.return}0<b.length&&(s=new g(s,v,null,n,d),f.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",g&&n!==Ws&&(v=n.relatedTarget||n.fromElement)&&(Yl(v)||v[uo]))break e;(s||g)&&(v=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,s?(g=n.relatedTarget||n.toElement,s=c,g=g?Yl(g):null,g!==null&&(S=Ti(g),b=g.tag,g!==S||b!==5&&b!==27&&b!==6)&&(g=null)):(s=null,g=c),s!==g&&(b=uh,y="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=sh,y="onPointerLeave",h="onPointerEnter",m="pointer"),S=s==null?v:ko(s),p=g==null?v:ko(g),v=new b(y,m+"leave",s,n,d),v.target=S,v.relatedTarget=p,y=null,Yl(d)===c&&(b=new b(h,m+"enter",g,n,d),b.target=p,b.relatedTarget=S,y=b),S=y,b=s&&g?Vs(s,g,YC):null,s!==null&&rp(f,v,s,b,!1),g!==null&&S!==null&&rp(f,S,g,b,!0)))}e:{if(s=c?ko(c):window,g=s.nodeName&&s.nodeName.toLowerCase(),g==="select"||g==="input"&&s.type==="file")var C=gh;else if(mh(s))if(sy)C=k_;else{C=Q_;var N=j_}else g=s.nodeName,!g||g.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&ld(c.elementType)&&(C=gh):C=X_;if(C&&(C=C(e,c))){cy(f,C,n,d);break e}N&&N(e,s,c)}switch(N=c?ko(c):window,e){case"focusin":(mh(N)||N.contentEditable==="true")&&(za=N,nf=c,Po=null);break;case"focusout":Po=nf=za=null;break;case"mousedown":lf=!0;break;case"contextmenu":case"mouseup":case"dragend":lf=!1,vh(f,n,d);break;case"selectionchange":if(K_)break;case"keydown":case"keyup":vh(f,n,d)}var E;if(rd)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Ma?ry(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(iy&&n.locale!=="ko"&&(Ma||A!=="onCompositionStart"?A==="onCompositionEnd"&&Ma&&(E=oy()):(nl=d,od="value"in nl?nl.value:nl.textContent,Ma=!0)),N=zu(c,A),0<N.length&&(A=new ch(A,e,null,n,d),f.push({event:A,listeners:N}),E?A.data=E:(E=uy(n),E!==null&&(A.data=E)))),(E=L_?B_(e,n):Y_(e,n))&&(A=zu(c,"onBeforeInput"),0<A.length&&(N=new ch("onBeforeInput","beforeinput",null,n,d),f.push({event:N,listeners:A}),N.data=E)),LC(f,e,c,n,d)}a0(f,t)})}function yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zu(e,t){for(var n=t+"Capture",l=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=ui(e,n),a!=null&&l.unshift(yi(e,a,o)),a=ui(e,t),a!=null&&l.push(yi(e,a,o))),e.tag===3)return l;e=e.return}return[]}function YC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(e,t,n,l,a){for(var o=t._reactName,i=[];n!==null&&n!==l;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===l)break;r!==5&&r!==26&&r!==27||c===null||(u=c,a?(c=ui(n,o),c!=null&&i.unshift(yi(n,c,u))):a||(c=ui(n,o),c!=null&&i.push(yi(n,c,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var GC=/\r\n?/g,VC=/\u0000|\uFFFD/g;function up(e){return(typeof e=="string"?e:""+e).replace(GC,`
|
|
9
|
-
`).replace(VC,"")}function i0(e,t){return t=up(t),up(e)===t}function W(e,t,n,l,a,o){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||$a(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&$a(e,""+l);else return;break;case"className":Er(e,"class",l);break;case"tabIndex":Er(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Er(e,n,l);break;case"style":ly(e,l,o);return;case"data":if(t!=="object"){Er(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=jr(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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 o=="function"&&(n==="formAction"?(t!=="input"&&W(e,t,"name",a.name,a,null),W(e,t,"formEncType",a.formEncType,a,null),W(e,t,"formMethod",a.formMethod,a,null),W(e,t,"formTarget",a.formTarget,a,null)):(W(e,t,"encType",a.encType,a,null),W(e,t,"method",a.method,a,null),W(e,t,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=jr(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=nn);return;case"onScroll":l!=null&&Y("scroll",e);return;case"onScrollEnd":l!=null&&Y("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(_(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(_(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=jr(l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Y("beforetoggle",e),Y("toggle",e),Vr(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vr(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=u_.get(n)||n,Vr(e,n,l);else return}Z=!0}function Vf(e,t,n,l,a,o){switch(n){case"style":ly(e,l,o);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(_(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(_(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")$a(e,l);else if(typeof l=="number"||typeof l=="bigint")$a(e,""+l);else return;break;case"onScroll":l!=null&&Y("scroll",e);return;case"onScrollEnd":l!=null&&Y("scrollend",e);return;case"onClick":l!=null&&(e.onclick=nn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!$p.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[ct]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,l,a);break e}Z=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):Vr(e,n,l)}return}Z=!0}function Xe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Y("error",e),Y("load",e);var l=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var i=n[o];if(i!=null)switch(o){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(_(137,t));default:W(e,t,o,i,n,null)}}a&&W(e,t,"srcSet",n.srcSet,n,null),l&&W(e,t,"src",n.src,n,null);return;case"input":Y("invalid",e);var r=o=i=a=null,u=null,c=null;for(l in n)if(n.hasOwnProperty(l)){var d=n[l];if(d!=null)switch(l){case"name":a=d;break;case"type":i=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":o=d;break;case"defaultValue":r=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(_(137,t));break;default:W(e,t,l,d,n,null)}}ey(e,o,r,u,c,i,a,!1);return;case"select":Y("invalid",e),l=i=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":i=r;break;case"multiple":l=r;default:W(e,t,a,r,n,null)}t=o,n=i,e.multiple=!!l,t!=null?Ga(e,!!l,t,!1):n!=null&&Ga(e,!!l,n,!0);return;case"textarea":Y("invalid",e),o=a=l=null;for(i in n)if(n.hasOwnProperty(i)&&(r=n[i],r!=null))switch(i){case"value":l=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(_(91));break;default:W(e,t,i,r,n,null)}ny(e,l,a,o);return;case"option":for(u in n)n.hasOwnProperty(u)&&(l=n[u],l!=null)&&(u==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":W(e,t,u,l,n,null));return;case"dialog":Y("beforetoggle",e),Y("toggle",e),Y("cancel",e),Y("close",e);break;case"iframe":case"object":Y("load",e);break;case"video":case"audio":for(l=0;l<pi.length;l++)Y(pi[l],e);break;case"image":Y("error",e),Y("load",e);break;case"details":Y("toggle",e);break;case"embed":case"source":case"link":Y("error",e),Y("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(c in n)if(n.hasOwnProperty(c)&&(l=n[c],l!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(_(137,t));default:W(e,t,c,l,n,null)}return;default:if(ld(t)){for(d in n)n.hasOwnProperty(d)&&(l=n[d],l!==void 0&&Vf(e,t,d,l,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(l=n[r],l!=null&&W(e,t,r,l,n,null))}var jC={};function QC(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,i=null,r=null,u=null,c=null,d=null;for(g in n){var f=n[g];if(n.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":u=f;default:l.hasOwnProperty(g)||W(e,t,g,null,l,f)}}for(var s in l){var g=l[s];if(f=n[s],l.hasOwnProperty(s)&&(g!=null||f!=null))switch(s){case"type":g!==f&&(Z=!0),o=g;break;case"name":g!==f&&(Z=!0),a=g;break;case"checked":g!==f&&(Z=!0),c=g;break;case"defaultChecked":g!==f&&(Z=!0),d=g;break;case"value":g!==f&&(Z=!0),i=g;break;case"defaultValue":g!==f&&(Z=!0),r=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(_(137,t));break;default:g!==f&&W(e,t,s,g,l,f)}}Fs(e,i,r,u,c,d,o,a);return;case"select":g=i=r=s=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":g=u;default:l.hasOwnProperty(o)||W(e,t,o,null,l,u)}for(a in l)if(o=l[a],u=n[a],l.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(Z=!0),s=o;break;case"defaultValue":o!==u&&(Z=!0),r=o;break;case"multiple":o!==u&&(Z=!0),i=o;default:o!==u&&W(e,t,a,o,l,u)}t=r,n=i,l=g,s!=null?Ga(e,!!n,s,!1):!!l!=!!n&&(t!=null?Ga(e,!!n,t,!0):Ga(e,!!n,n?[]:"",!1));return;case"textarea":g=s=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:W(e,t,r,null,l,a)}for(i in l)if(a=l[i],o=n[i],l.hasOwnProperty(i)&&(a!=null||o!=null))switch(i){case"value":a!==o&&(Z=!0),s=a;break;case"defaultValue":a!==o&&(Z=!0),g=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(_(91));break;default:a!==o&&W(e,t,i,a,l,o)}ty(e,s,g);return;case"option":for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!=null&&!l.hasOwnProperty(v)&&(v==="selected"?e.selected=!1:W(e,t,v,null,l,s));for(u in l)s=l[u],g=n[u],l.hasOwnProperty(u)&&s!==g&&(s!=null||g!=null)&&(u==="selected"?(s!==g&&(Z=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol"):W(e,t,u,s,l,g));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!l.hasOwnProperty(b)&&W(e,t,b,null,l,s);for(c in l)if(s=l[c],g=n[c],l.hasOwnProperty(c)&&s!==g&&(s!=null||g!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(_(137,t));break;default:W(e,t,c,s,l,g)}return;default:if(ld(t)){for(var S in n)s=n[S],n.hasOwnProperty(S)&&s!==void 0&&!l.hasOwnProperty(S)&&Vf(e,t,S,void 0,l,s);for(d in l)s=l[d],g=n[d],!l.hasOwnProperty(d)||s===g||s===void 0&&g===void 0||Vf(e,t,d,s,l,g);return}}for(var h in n)s=n[h],n.hasOwnProperty(h)&&s!=null&&!l.hasOwnProperty(h)&&W(e,t,h,null,l,s);for(f in l)s=l[f],g=n[f],!l.hasOwnProperty(f)||s===g||s==null&&g==null||W(e,t,f,s,l,g)}function cp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function XC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],o=a.transferSize,i=a.initiatorType,r=a.duration;if(o&&r&&cp(i)){for(i=0,r=a.responseEnd,l+=1;l<n.length;l++){var u=n[l],c=u.startTime;if(c>r)break;var d=u.transferSize,f=u.initiatorType;d&&cp(f)&&(u=u.responseEnd,i+=d*(u<r?1:(r-c)/(u-c)))}if(--l,t+=8*(o+i)/(a.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 jf=null,Qf=null;function vi(e){return e.nodeType===9?e:e.ownerDocument}function sp(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 r0(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 u0(e,t,n,l){return n=vi(n).createElement(e),n[Ge]=l,n[ct]=t,Xe(n,e,t),Le(n),n}function Xf(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 Ls=null;function kC(){var e=window.event;return e&&e.type==="popstate"?e===Ls?!1:(Ls=e,!0):(Ls=null,!1)}var Qd=typeof setTimeout=="function"?setTimeout:void 0,ZC=typeof clearTimeout=="function"?clearTimeout:void 0,fp=typeof Promise=="function"?Promise:void 0,dp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Qd,KC=typeof queueMicrotask=="function"?queueMicrotask:typeof fp<"u"?function(e){return fp.resolve(null).then(e).catch(JC)}:Qd;function JC(e){setTimeout(function(){throw e})}function Tl(e){return e==="head"}function mp(e,t){var n=t,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(a),ro(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ys(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ys(n);for(var o=n.firstChild;o;){var i=o.nextSibling,r=o.nodeName;o[Ai]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=i}}else n==="body"&&Ys(e.ownerDocument.body);n=a}while(n);ro(t)}function gp(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function c0(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var a=l=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function s0(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function f0(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return f0(t,n,e)}function IC(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return f0(t,n,e)}function PC(e){return e.documentElement.clientHeight}function $C(e){this.addEventListener("load",e),this.addEventListener("error",e)}function FC(e,t,n,l,a,o,i,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var d=c.startViewTransition({update:function(){var s=c.defaultView,g=s.navigation&&s.navigation.transition,v=c.fonts.status;l();var b=[];if(v==="loaded"&&(PC(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),v=b.length,e!==null)for(var S=e.suspenseyImages,h=0,m=0;m<S.length;m++){var p=S[m];if(!p.complete){var y=p.getBoundingClientRect();if(0<y.bottom&&0<y.right&&y.top<s.innerHeight&&y.left<s.innerWidth){if(h+=T0(p),h>lu){b.length=v;break}p=new Promise($C.bind(p)),b.push(p)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(C){return setTimeout(C,500)})]).then(a,a),(g?Promise.allSettled([g.finished,s]):s).then(o,o);if(a(),g)return g.finished.then(o,o);o()},types:n});c.__reactViewTransition=d;var f=[];return d.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),g=0;g<s.length;g++){var v=s[g],b=v.effect,S=b.pseudoElement;if(S!=null&&S.startsWith("::view-transition")){f.push(v),v=b.getKeyframes();for(var h=S=void 0,m=!0,p=0;p<v.length;p++){var y=v[p],C=y.width;if(S===void 0)S=C;else if(S!==C){m=!1;break}if(C=y.height,h===void 0)h=C;else if(h!==C){m=!1;break}delete y.width,delete y.height,y.transform==="none"&&delete y.transform}m&&S!==void 0&&h!==void 0&&(b.setKeyframes(v),m=getComputedStyle(b.target,b.pseudoElement),m.width!==S||m.height!==h)&&(m=v[0],m.width=S,m.height=h,m=v[v.length-1],m.width=S,m.height=h,b.setKeyframes(v))}}i()},function(s){c.__reactViewTransition===d&&(c.__reactViewTransition=null);try{typeof s=="object"&&s!==null&&s.name==="InvalidStateError"&&(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null),s!==null&&u(s)}finally{l(),a(),i()}}),d.finished.finally(function(){for(var s=0;s<f.length;s++)f[s].cancel();c.__reactViewTransition===d&&(c.__reactViewTransition=null),r()}),d}catch{return l(),a(),i(),null}}function Gl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Gl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:ie({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};Gl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&l.push(n[a])}return l};Gl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function d0(e){return{name:e,group:new Gl("group",e),imagePair:new Gl("image-pair",e),old:new Gl("old",e),new:new Gl("new",e)}}function St(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}St.prototype.addEventListener=function(e,t,n){var l=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(m0(o,e,t,n)===-1){var i=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){i.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),l!==null&&(a=i.removeEventListener.bind(i,e,t,n),l.addEventListener("abort",a,{once:!0}),a=l.removeEventListener.bind(l,"abort",a)),l=lo(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),ut(this._fragmentFiber.child,!1,WC,e,r,l)}this._eventListeners=o}};function WC(e,t,n,l){return ze(e).addEventListener(t,n,l),!1}St.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=m0(l,e,t,n),t!==-1)){var a=l[t];n=a.attachedListener;var o=a.cleanup;a=lo(a.optionsOrUseCapture),ut(this._fragmentFiber.child,!1,eS,e,n,a),l.splice(t,1),o!==null&&o()}};function eS(e,t,n,l){return ze(e).removeEventListener(t,n,l),!1}function lo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function hp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function m0(e,t,n,l){if(e.length===0)return-1;l=hp(l);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&hp(o.optionsOrUseCapture)===l)return a}return-1}St.prototype.dispatchEvent=function(e){var t=ea(this._fragmentFiber);if(t===null)return!0;t=ze(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];l.addEventListener(o.type,o.attachedListener,lo(o.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],l.removeEventListener(o.type,o.attachedListener,lo(o.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)};St.prototype.focus=function(e){ut(this._fragmentFiber.child,!0,g0,e,void 0,void 0)};function g0(e,t){return e.tag===6?!1:(e=ze(e),dS(e,t))}St.prototype.focusLast=function(e){var t=[];ut(this._fragmentFiber.child,!0,Xd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!g0(t[n],e);n--);};function Xd(e,t){return t.push(e),!1}St.prototype.blur=function(){var e=ea(this._fragmentFiber);e!==null&&(e=ze(e),e=vi(e).activeElement,e!==null&&ut(this._fragmentFiber.child,!1,tS,e,void 0,void 0))};function tS(e,t){return e.tag===6?!1:(e=ze(e),e===t||e.contains(t)?(t.blur(),!0):!1)}St.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),ut(this._fragmentFiber.child,!1,nS,e,void 0,void 0)};function nS(e,t){return e.tag===6||(e=ze(e),t.observe(e)),!1}St.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),ut(this._fragmentFiber.child,!1,lS,e,void 0,void 0);for(var n=t=0;n<Xt.length;n++){var l=Xt[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):Xt[t++]=l}Xt.length=t}};function lS(e,t){return e.tag===6||(e=ze(e),t.unobserve(e)),!1}var Xt=[],Bs=!1;function aS(e,t,n){Xt.push({fragmentInstance:e,observer:t,instance:n}),Bs||(Bs=!0,mS(function(){Bs=!1;var l=Xt;Xt=[];for(var a=0;a<l.length;a++){var o=l[a];o.observer.unobserve(o.instance)}}))}St.prototype.getClientRects=function(){var e=[];return ut(this._fragmentFiber.child,!1,oS,e,void 0,void 0),e};function oS(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=ze(e),t.push.apply(t,e.getClientRects());return!1}St.prototype.getRootNode=function(e){var t=ea(this._fragmentFiber);return t===null?this:ze(t).getRootNode(e)};St.prototype.compareDocumentPosition=function(e){var t=ea(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];ut(this._fragmentFiber.child,!1,Xd,n,void 0,void 0);var l=ze(t);if(n.length===0){if(n=l,Jg(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=l=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=qp(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=ze(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=ze(n[0]),a=ze(n[n.length-1]);var o=Jg(this._fragmentFiber)?t.parentElement:l;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=i&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=l&&o&&i&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||iS(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function iS(e,t,n,l,a){var o=Yl(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=ea(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Vs(n,o,Ig),t===null?t=!1:(ut(t,!0,q1,o,n),o=Aa,Aa=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===l)&&(t=Vs(l,o,Ig),t===null?t=!1:(ut(t,!0,L1,o,l),o=Aa,Gs=Aa=null,t=o!==null)),t):!1}function pp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}St.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(_(566));var t=[];ut(this._fragmentFiber.child,!1,Xd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=qp(this._fragmentFiber);if(l=n?l[1]||l[0]||ea(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=ze(l),pp(e,n);return}if(l=ze(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var a=t[l];a.tag===6?(a=ze(a),pp(a,n)):ze(a).scrollIntoView(e),l+=n?-1:1}};function rS(e,t){return e=ze(e),h0(e,t),!1}function h0(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function p0(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.addEventListener(a.type,a.attachedListener,lo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var i=0,r=0;r<Xt.length;r++){var u=Xt[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Xt[i++]=u)}Xt.length=i,o.observe(e)}),h0(e,t))}function uS(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.removeEventListener(a.type,a.attachedListener,lo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?aS(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Zf(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":Zf(n),qu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function cS(e,t,n,l){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ai])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function sS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Lt(e.nextSibling),e===null))return null;return e}function y0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function Kf(e){return e.data==="$?"||e.data==="$~"}function kd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function fS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lt(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 Jf=null;function yp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Lt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vp(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 dS(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function mS(e){dp(function(){dp(function(t){return e(t)})})}function v0(e,t,n){switch(t=vi(n),e){case"html":if(e=t.documentElement,!e)throw Error(_(452));return e;case"head":if(e=t.head,!e)throw Error(_(453));return e;case"body":if(e=t.body,!e)throw Error(_(454));return e;default:throw Error(_(451))}}function b0(e,t,n){for(var l in n){var a=n[l];n.hasOwnProperty(l)&&a!=null&&W(e,t,l,null,jC,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===nn&&(e.onclick=null),qu(e)}function Ys(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qu(e)}var Bt=new Map,bp=new Set;function bi(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var zn=I.d;I.d={f:gS,r:hS,D:pS,C:yS,L:vS,m:bS,X:CS,S:_S,M:SS};function gS(){var e=zn.f(),t=Pu();return e||t}function hS(e){var t=co(e);t!==null&&t.tag===5&&t.type==="form"?lv(t):zn.r(e)}var go=typeof document>"u"?null:document;function _0(e,t,n){var l=go;if(l&&typeof t=="string"&&t){var a=Ut(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),bp.has(a)||(bp.add(a),e={rel:e,crossOrigin:n,href:t},l.querySelector(a)===null&&(t=l.createElement("link"),Xe(t,"link",e),Le(t),l.head.appendChild(t)))}}function pS(e){zn.D(e),_0("dns-prefetch",e,null)}function yS(e,t){zn.C(e,t),_0("preconnect",e,t)}function vS(e,t,n){zn.L(e,t,n);var l=go;if(l&&e&&t){var a='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Ut(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Ut(n.imageSizes)+'"]')):a+='[href="'+Ut(e)+'"]';var o=a;switch(t){case"style":o=ao(e);break;case"script":o=ho(e)}if(!(Bt.has(o)||(e=ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Bt.set(o,e),l.querySelector(a)!==null||t==="style"&&l.querySelector(Di(o))||t==="script"&&l.querySelector(Ui(o))))){var i=l.createElement("link");Xe(i,"link",e),t==="style"&&(i[su]=!0,i.onload=i.onerror=function(){Ip(i)}),Le(i),l.head.appendChild(i)}}}function bS(e,t){zn.m(e,t);var n=go;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',o=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ho(e)}if(!Bt.has(o)&&(e=ie({rel:"modulepreload",href:e},t),Bt.set(o,e),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ui(o)))return}l=n.createElement("link"),Xe(l,"link",e),Le(l),n.head.appendChild(l)}}}function _S(e,t,n){zn.S(e,t,n);var l=go;if(l&&e){var a=Ya(l).hoistableStyles,o=ao(e);t=t||"default";var i=a.get(o);if(!i){var r={loading:0,preload:null};if(i=l.querySelector(Di(o)))r.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Bt.get(o))&&Zd(e,n);var u=i=l.createElement("link");Le(u),Xe(u,"link",e),u._p=new Promise(function(c,d){u.onload=c,u.onerror=d}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,tu(i,t,l)}i={type:"stylesheet",instance:i,count:1,state:r},a.set(o,i)}}}function CS(e,t){zn.X(e,t);var n=go;if(n&&e){var l=Ya(n).hoistableScripts,a=ho(e),o=l.get(a);o||(o=n.querySelector(Ui(a)),o||(e=ie({src:e,async:!0},t),(t=Bt.get(a))&&Kd(e,t),o=n.createElement("script"),Le(o),Xe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(a,o))}}function SS(e,t){zn.M(e,t);var n=go;if(n&&e){var l=Ya(n).hoistableScripts,a=ho(e),o=l.get(a);o||(o=n.querySelector(Ui(a)),o||(e=ie({src:e,async:!0,type:"module"},t),(t=Bt.get(a))&&Kd(e,t),o=n.createElement("script"),Le(o),Xe(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(a,o))}}function _p(e,t,n,l){var a=(a=rl.current)?bi(a):null;if(!a)throw Error(_(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ao(n.href),t=Ya(a).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ao(n.href);var o=Ya(a).hoistableStyles,i=o.get(e);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=a.querySelector(Di(e)))?o._p||(i.instance=o,i.state.loading=5):(o=Bt.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Bt.set(e,o)),TS(a,e,o,i.state))),t&&l===null)throw Error(_(528,""));return i}if(t&&l!==null)throw Error(_(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=ho(n),t=Ya(a).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(_(444,e))}}function ao(e){return'href="'+Ut(e)+'"'}function Di(e){return'link[rel="stylesheet"]['+e+"]"}function C0(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function TS(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[su]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[su]=!0,t.onload=t.onerror=Ip.bind(null,t),Xe(t,"link",n),Le(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function ho(e){return'[src="'+Ut(e)+'"]'}function Ui(e){return"script[async]"+e}function Cp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(n.href)+'"]');if(l)return t.instance=l,Le(l),l;var a=ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Le(l),Xe(l,"style",a),tu(l,n.precedence,e),t.instance=l;case"stylesheet":a=ao(n.href);var o=e.querySelector(Di(a));if(o)return t.state.loading|=4,t.instance=o,Le(o),o;l=C0(n),(a=Bt.get(a))&&Zd(l,a),o=(e.ownerDocument||e).createElement("link"),Le(o);var i=o;return i._p=new Promise(function(r,u){i.onload=r,i.onerror=u}),Xe(o,"link",l),t.state.loading|=4,tu(o,n.precedence,e),t.instance=o;case"script":return o=ho(n.src),(a=e.querySelector(Ui(o)))?(t.instance=a,Le(a),a):(l=n,(a=Bt.get(o))&&(l=ie({},n),Kd(l,a)),e=e.ownerDocument||e,a=e.createElement("script"),Le(a),Xe(a,"link",l),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(_(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,tu(l,n.precedence,e));return t.instance}function tu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,o=a,i=0;i<l.length;i++){var r=l[i];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function Sp(e,t,n){if(nu===null){var l=new Map,a=nu=new Map;a.set(n,l)}else a=nu,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Ai]||o[Ge]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var r=l.get(i);r?r.push(o):l.set(i,[o])}}return l}function If(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ES(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 Tp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function S0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function T0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Ep(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=T0(t),e.suspenseyImages.push(t)),e=AS.bind(e),t.decode().then(e,e))}function wS(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ao(l.href),o=t.querySelector(Di(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_i.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Le(o);return}o=t.ownerDocument||t,l=C0(l),(a=Bt.get(a))&&Zd(l,a),o=o.createElement("link"),Le(o);var i=o;i._p=new Promise(function(r,u){i.onload=r,i.onerror=u}),Xe(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=_i.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var lu=0;function xS(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&lu===0&&(lu=62500*XC());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>lu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function E0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)au(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function _i(){this.count--,E0(this)}function AS(){this.imgCount--,E0(this)}var Du=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Du=new Map,t.forEach(NS,e),Du=null,_i.call(e))}function NS(e,t){if(!(t.state.loading&4)){var n=Du.get(e);if(n)var l=n.get(null);else{n=new Map,Du.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var i=a[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),l=i)}l&&n.set(null,l)}a=t.instance,i=a.getAttribute("data-precedence"),o=n.get(i)||l,o===l&&n.set(null,a),n.set(i,a),this.count++,l=_i.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var oo={$$typeof:tn,Provider:null,Consumer:null,_currentValue:Vl,_currentValue2:Vl,_threadCount:0};function RS(e,t,n,l,a,o,i,r,u){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=ms(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ms(0),this.hiddenUpdates=ms(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function w0(e,t,n,l,a,o,i,r,u,c,d,f){return e=new RS(e,t,n,i,u,c,d,f,r),t=1,o===!0&&(t|=24),o=it(3,null,null,t),e.current=o,o.stateNode=e,t=md(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},pd(o),e}function x0(e){return e?(e=Ha,e):Ha}function A0(e,t,n,l,a,o){a=x0(a),l.context===null?l.context=a:l.pendingContext=a,l=cl(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=sl(e,l,t),n!==null&&(rt(n,e,t),Fo(n,e,t))}function wp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jd(e,t){wp(e,t),(e=e.alternate)&&wp(e,t)}function N0(e){if(e.tag===13||e.tag===31){var t=la(e,67108864);t!==null&&rt(t,e,67108864),Jd(e,67108864)}}function xp(e){if(e.tag===13||e.tag===31){var t=_t();t=td(t);var n=la(e,t);n!==null&&rt(n,e,t),Jd(e,t)}}var io=!0;function OS(e,t,n,l){var a=z.T;z.T=null;var o=I.p;try{I.p=2,Id(e,t,n,l)}finally{I.p=o,z.T=a}}function MS(e,t,n,l){var a=z.T;z.T=null;var o=I.p;try{I.p=8,Id(e,t,n,l)}finally{I.p=o,z.T=a}}function Id(e,t,n,l){if(io){var a=Pf(l);if(a===null)qs(e,t,l,Uu,n),Ap(e,l);else if(DS(a,e,t,n,l))l.stopPropagation();else if(Ap(e,l),t&4&&-1<zS.indexOf(e)){for(;a!==null;){var o=co(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=ql(o.pendingLanes);if(i!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var u=1<<31-bt(i);r.entanglements[1]|=u,i&=~u}sn(o),(J&6)===0&&(Nu=yt()+500,zi(0,!1))}}break;case 31:case 13:r=la(o,2),r!==null&&rt(r,o,2),Pu(),Jd(o,2)}if(o=Pf(l),o===null&&qs(e,t,l,Uu,n),o===a)break;a=o}a!==null&&l.stopPropagation()}else qs(e,t,l,null,n)}}function Pf(e){return e=ad(e),Pd(e)}var Uu=null;function Pd(e){if(Uu=null,e=Yl(e),e!==null){var t=Ti(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Dp(t),e!==null)return e;e=null}else if(n===31){if(e=Up(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 Uu=e,null}function R0(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Z1()){case Gp:return 2;case Vp:return 8;case cu:case K1:return 32;case jp:return 268435456;default:return 32}default:return 32}}var $f=!1,gl=null,hl=null,pl=null,Ci=new Map,Si=new Map,el=[],zS="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 Ap(e,t){switch(e){case"focusin":case"focusout":gl=null;break;case"dragenter":case"dragleave":hl=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(t.pointerId)}}function Vo(e,t,n,l,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[a]},t!==null&&(t=co(t),t!==null&&N0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function DS(e,t,n,l,a){switch(t){case"focusin":return gl=Vo(gl,e,t,n,l,a),!0;case"dragenter":return hl=Vo(hl,e,t,n,l,a),!0;case"mouseover":return pl=Vo(pl,e,t,n,l,a),!0;case"pointerover":var o=a.pointerId;return Ci.set(o,Vo(Ci.get(o)||null,e,t,n,l,a)),!0;case"gotpointercapture":return o=a.pointerId,Si.set(o,Vo(Si.get(o)||null,e,t,n,l,a)),!0}return!1}function O0(e){var t=Yl(e.target);if(t!==null){var n=Ti(t);if(n!==null){if(t=n.tag,t===13){if(t=Dp(n),t!==null){e.blockedOn=t,Wg(e.priority,function(){xp(n)});return}}else if(t===31){if(t=Up(n),t!==null){e.blockedOn=t,Wg(e.priority,function(){xp(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 ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pf(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ws=l,n.target.dispatchEvent(l),Ws=null}else return t=co(n),t!==null&&N0(t),e.blockedOn=n,!1;t.shift()}return!0}function Np(e,t,n){ou(e)&&n.delete(t)}function US(){$f=!1,gl!==null&&ou(gl)&&(gl=null),hl!==null&&ou(hl)&&(hl=null),pl!==null&&ou(pl)&&(pl=null),Ci.forEach(Np),Si.forEach(Np)}function Yr(e,t){e.blockedOn===t&&(e.blockedOn=null,$f||($f=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,US)))}var Gr=null;function Rp(e){Gr!==e&&(Gr=e,De.unstable_scheduleCallback(De.unstable_NormalPriority,function(){Gr===e&&(Gr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],a=e[t+2];if(typeof l!="function"){if(Pd(l||n)===null)continue;break}var o=co(n);o!==null&&(e.splice(t,3),t-=3,pf(o,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function ro(e){function t(u){return Yr(u,e)}gl!==null&&Yr(gl,e),hl!==null&&Yr(hl,e),pl!==null&&Yr(pl,e),Ci.forEach(t),Si.forEach(t);for(var n=0;n<el.length;n++){var l=el[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<el.length&&(n=el[0],n.blockedOn===null);)O0(n),n.blockedOn===null&&el.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],o=n[l+1],i=a[ct]||null;if(typeof o=="function")i||Rp(n);else if(i){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,i=o[ct]||null)r=i.formAction;else if(Pd(a)!==null)continue}else r=i.action;typeof r=="function"?n[l+1]=r:(n.splice(l,3),l-=3),Rp(n)}}}function M0(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return a=i})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function $d(e){this._internalRoot=e}Wu.prototype.render=$d.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));var n=t.current,l=_t();A0(n,l,e,t,null,null)};Wu.prototype.unmount=$d.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;A0(e.current,2,null,e,null,null),Pu(),t[uo]=null}};function Wu(e){this._internalRoot=e}Wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Jp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<el.length&&t!==0&&t<el[n].priority;n++);el.splice(n,0,e),n===0&&O0(e)}};var Op=Mp.version;if(Op!=="19.3.1")throw Error(_(527,Op,"19.3.1"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=H1(t),e=e!==null?Hp(e):null,e=e===null?null:e.stateNode,e};var HS={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(jo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!jo.isDisabled&&jo.supportsFiber))try{Ei=jo.inject(HS),vt=jo}catch{}var jo;ec.createRoot=function(e,t){if(!zp(e))throw Error(_(299));var n=!1,l="",a=fv,o=dv,i=mv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=w0(e,1,!1,null,null,n,l,null,a,o,i,M0),e[uo]=t.current,jd(e),new $d(t)};ec.hydrateRoot=function(e,t,n){if(!zp(e))throw Error(_(299));var l=!1,a="",o=fv,i=dv,r=mv,u=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=w0(e,1,!0,t,n??null,l,a,u,o,i,r,M0),t.context=x0(null),n=t.current,l=_t(),l=td(l),a=cl(l),a.callback=null,sl(n,a,l),n=l,t.current.lanes=n,xi(t,n),sn(t),e[uo]=t.current,jd(e),new Wu(t)};ec.version="19.3.1"});var H0=Jt((Qw,U0)=>{"use strict";function D0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D0)}catch(e){console.error(e)}}D0(),U0.exports=z0()});var me="g-comments",lm="g-comments:auth",sc="gc_code",am="gc_nonce";var Zi=/^[\w-]{8,64}$/;var rb=new Set(["invalid_key","not_logged_in","invalid_access","invalid_parameters","not_found","rate_limit","thread_conflict","page_not_allowed","invalid_url","no_category","thread_not_created","invalid_grant","user_not_allowed","submission_rejected","not_a_root_comment","pin_limit_reached"]),ub={400:"invalid_parameters",401:"invalid_key",403:"invalid_access",404:"not_found",409:"thread_conflict",422:"invalid_parameters",429:"rate_limit"},te=class extends Error{name="CommentsError";type;status;errors;extras;waitSeconds;hint;serverType;constructor(t,n,l={}){super(n,l.cause===void 0?void 0:{cause:l.cause}),this.type=t,this.status=l.status??0,this.errors=l.errors??(n?[n]:[]),this.extras=l.extras,this.waitSeconds=l.waitSeconds,this.hint=l.hint,this.serverType=l.serverType}};function Al(e){return e instanceof te}function im(e,t,n){let l=typeof t?.error_type=="string"?t.error_type:void 0,a=l&&rb.has(l)?l:ub[e]??"unknown",o=Array.isArray(t?.errors)?t.errors.filter(r=>typeof r=="string"):[],i=t?.extras&&typeof t.extras=="object"?t.extras:void 0;return new te(a,o[0]??`Request failed with status ${e}`,{status:e,errors:o,extras:i,serverType:l,waitSeconds:a==="rate_limit"?cb(i,n):void 0})}function cb(e,t){return om(e?.wait_seconds)??om(t?.get("Retry-After"))}function om(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?e:void 0;if(typeof e=="string"&&/^\s*\d+(\.\d+)?\s*$/.test(e))return Number(e)}function rm(e,t,n){let l=t?`this page's origin (${t})`:"this page's origin",a=[`${me} could not reach ${e}. Probable causes:`,`- ${l} is not allowed: add the host under Admin \u2192 Customize \u2192 Embedding on the forum, or to the discourse_comments_allowed_origins setting;`,"- the forum is behind HTTP basic auth, which rejects CORS preflight (OPTIONS) requests: let OPTIONS through without credentials;","- the discourse-comments plugin is disabled (discourse_comments_enabled);","- the forum URL is wrong or the forum is offline."].join(`
|
|
10
|
-
`);return new te("unreachable",`Could not reach ${e}`,{status:0,errors:[],hint:a,cause:n})}var jn=class{#t=new Set;get size(){return this.#t.size}on(t){return this.#t.add(t),()=>{this.#t.delete(t)}}emit(t){for(let n of[...this.#t])try{n(t)}catch(l){console.error(l)}}clear(){this.#t.clear()}};function nt(){return typeof window>"u"?void 0:window}function ca(){return typeof document>"u"?void 0:document}function um(){return nt()?.location.origin}function Ki(){let e=ca()?.querySelector('link[rel="canonical"]');return e?.href?e.href:nt()?.location.href}function cm(){return ca()?.title||void 0}function sa(){let e=nt()?.location;if(e)return e.href.split("#")[0]}function fc(){return ca()?.hidden===!0}function sm(e){let t=ca();return t?(t.addEventListener("visibilitychange",e),()=>t.removeEventListener("visibilitychange",e)):()=>{}}function Qn(e){let t;try{t=new URL(e)}catch{throw new TypeError(`${me}: "forum" must be an absolute URL, got "${e}"`)}if(t.protocol!=="https:"&&t.protocol!=="http:")throw new TypeError(`${me}: "forum" must be an http(s) URL, got "${e}"`);return{origin:t.origin,base:t.origin+t.pathname.replace(/\/+$/,"")}}function dc(e){if(!e)return"";let t=[];for(let[n,l]of Object.entries(e))if(l!=null)if(Array.isArray(l))for(let a of l)t.push(`${encodeURIComponent(n)}[]=${encodeURIComponent(String(a))}`);else t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(l))}`);return t.join("&")}function xt(e){return`/threads/${encodeURIComponent(e).replace(/%3A/gi,":")}`}function xo(e){return typeof e=="object"&&e!==null&&e.name==="AbortError"}var Ji=class{forum;#t;#e;constructor(t){this.forum=t.forum,this.#t=t,this.#e=t.fetch??((n,l)=>globalThis.fetch(n,l))}get fetch(){return this.#e}url(t,n){let l=dc(n),a=`${this.forum.base}/comments${t}`;return l?`${a}?${l}`:a}async request(t,n,l={}){let a={Accept:"application/json",...this.#t.headers},o=sb(this.#t.locale);o&&(a["Accept-Language"]=o);let i;l.json!==void 0?(a["Content-Type"]="application/json",i=JSON.stringify(l.json)):l.form&&(i=l.form);let r=l.anonymous?null:l.credentials??this.#t.credentials();r&&(a["User-Api-Key"]=r.key,a["User-Api-Client-Id"]=r.clientId);let u=this.url(n,l.query),c=l.detached?void 0:this.#t.lifetime;if(c?.aborted)throw new DOMException("The comments client was disposed","AbortError");let d=fb(l.signal,c);this.#t.log(t,u);let f;try{f=await this.#e(u,{method:t,headers:a,body:i,credentials:"omit",mode:"cors",signal:d})}catch(S){throw d?.aborted||xo(S)?S:rm(this.forum.base,um(),S)}if(f.status===204)return;let s=await f.text(),g=db(s);if(f.ok){if(g===void 0)throw new te("unknown","The forum returned a non-JSON response",{status:f.status});return g}let v=mb(g)?g:null,b=im(f.status,v,f.headers);throw f.status===401&&b.serverType==="invalid_key"&&r&&v?.degraded!==!0&&this.#t.onInvalidKey(r.key),b}};function sb(e){let t=e?.replace(/_/g,"-");return t&&/^[0-9A-Za-z *,\-.;=]+$/.test(t)?t:void 0}function fb(e,t){if(!e||!t)return e??t;if(typeof AbortSignal.any=="function")return AbortSignal.any([e,t]);let n=new AbortController,l=()=>n.abort();return(e.aborted||t.aborted)&&l(),e.addEventListener("abort",l,{once:!0}),t.addEventListener("abort",l,{once:!0}),n.signal}function db(e){if(!e)return null;try{return JSON.parse(e)}catch{return}}function mb(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function fm(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function fa(e){let t=new Uint8Array(e);return globalThis.crypto.getRandomValues(t),fm(t)}async function dm(e){let t=globalThis.crypto?.subtle;if(!t)throw new Error("Signing in requires a secure context (https or localhost).");let n=await t.digest("SHA-256",new TextEncoder().encode(e));return fm(new Uint8Array(n))}function gb(){let e=new Map;return{durable:!1,getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function mm(e){if(e.durable!==!1)return e;try{let t=globalThis.sessionStorage;if(t){let n="gc:probe";t.setItem(n,n);let l=t.getItem(n)===n;if(t.removeItem(n),l)return t}}catch{}return null}function gm(){try{let e=globalThis.localStorage;if(e){let t="gc:probe";return e.setItem(t,t),e.removeItem(t),{storage:e,isLocalStorage:!0}}}catch{}return{storage:gb(),isLocalStorage:!1}}function hm(e){try{return e===globalThis.localStorage}catch{return!1}}function mc(e,t){try{let n=e.getItem(t);return n?JSON.parse(n):null}catch{return null}}function Ii(e,t,n){try{e.setItem(t,JSON.stringify(n))}catch{}}function Pi(e,t){try{e.removeItem(t)}catch{}}var pm=15*6e4,hb="gc-auth",ym=520,vm=680,pb=500,yb=1e3,$i=class{clientId;#t;#e;#l;#n;#r=new jn;#a=null;#i=null;#u=null;#f=0;constructor(t){this.#t=t;let n=`${"gc"}:${t.forum.base}`;this.#e={auth:`${n}:auth`,clientId:`${n}:client_id`,pending:`${n}:pending`},this.clientId=this.#S(t.clientId),this.#l=this.#T(),this.#n=Object.freeze({status:this.#l?"signed-in":"anonymous",user:this.#l?.user??null,degraded:!1,error:null});let l=nt();t.syncAcrossTabs&&l&&(l.addEventListener("storage",this.#p),this.#u=()=>l.removeEventListener("storage",this.#p))}get status(){return this.#n.status}get user(){return this.#n.user}get providers(){return this.#t.providers()}state(){return this.#n}onChange(t){return this.#r.on(t)}credentials(){return this.#l?{key:this.#l.key,clientId:this.#l.client_id}:null}signIn(t={}){if(this.#a){let S=this.#a.popup;if(S&&!S.closed)return S.focus(),this.#a.promise;this.#a.cancel(new te("cancelled","Sign-in was restarted"))}let n=nt();if(!n)return Promise.reject(new te("unknown","Signing in needs a browser window"));let l=this.#h(),a=l?.nonce??fa(16),o=l?.verifier??fa(32),i=(t.mode??"popup")==="popup"?vb(n):null,r=i&&!i.closed?i:null,u=!1,c=null,d=()=>{},f=new Promise((S,h)=>{d=h});f.catch(()=>{});let s=()=>{},g=S=>this.#t.pendingStorage&&Ii(this.#t.pendingStorage,this.#e.pending,{nonce:a,verifier:o,mode:S,created_at:l?.created_at??Date.now()}),v=async()=>{let S=await dm(o);if(c)throw c;let h=this.#_(a,S,t.provider);if(r){if(r.closed)throw new te("cancelled","The sign-in window was closed");g("popup"),u=bb(r,h)}if(!u){if(!this.#t.pendingStorage)throw new te("storage_unavailable","Signing in needs a popup or browser storage, and this page has neither. Allow popups for this site, or enable site data (localStorage/sessionStorage).");return g("redirect"),this.#t.log("popup unavailable, redirecting"),n.addEventListener("pageshow",this.#C),(this.#t.navigate??(p=>n.location.assign(p)))(h),null}let m=await this.#v(n,r,a,p=>{s=p});return m.kind==="user"?m.user:this.#d(m.code,o,a,()=>c)};this.#s({status:"signing-in",error:null});let b={popup:r,cancel:S=>{c=S,s(),d(S)},promise:Promise.race([v(),f]).then(S=>(this.#a===b&&(this.#a=null),S),S=>{let h=bm(S);throw r&&!u&&!r.closed&&r.close(),this.#a!==b||(this.#a=null,h.type!=="cancelled"&&this.#c(),this.#s({status:this.#l?"signed-in":"anonymous",error:h})),h})};return this.#a=b,b.promise}cancelSignIn(){this.#a?.cancel(new te("cancelled","Sign-in was cancelled"))}async signOut(){if(this.#f++,this.cancelSignIn(),this.#c(),this.#l)try{await this.#t.http.request("POST","/auth/revoke")}catch(t){this.#t.log("revoke failed",t)}this.#N(),this.#s({status:"anonymous",user:null,degraded:!1,error:null})}handleRedirect(){return this.#i||(this.#i=this.#y(),this.#i.catch(()=>{})),this.#i}invalidate(t){if(!this.#l||this.#l.key!==t)return;let n=this.#T();if(n&&n.key!==t){this.#l=n,this.#s({status:"signed-in",user:n.user,error:null});return}this.#N(),this.#s({status:this.#a?"signing-in":"anonymous",user:null,degraded:!1,error:new te("invalid_key","Your session has expired. Please sign in again.",{status:401})})}applyConfig(t){this.#l&&t.current_user&&(this.#l={...this.#l,user:t.current_user},Ii(this.#t.storage,this.#e.auth,this.#l)),this.#s({degraded:t.degraded===!0,user:this.#l?.user??null})}dispose(){this.#f++,this.cancelSignIn(),nt()?.removeEventListener("pageshow",this.#C),this.#u?.(),this.#u=null,this.#r.clear()}async#y(){let t=nt(),n=t?.location.hash??"";if(!t||!n.includes(`${sc}=`))return null;let l=new URLSearchParams(n.slice(1)),a=l.get(sc),o=l.get(am),i=this.#h();if(!a||!o||!i||i.nonce!==o)return null;t.history.replaceState(t.history.state,"",t.location.pathname+t.location.search),this.#s({status:"signing-in",error:null});try{let r=await this.#d(a,i.verifier,o);return i.mode==="popup"&&t.close(),r}catch(r){let u=bm(r);throw u.type!=="cancelled"&&this.#c(),this.#s({status:this.#l?"signed-in":"anonymous",error:u}),u}}async#d(t,n,l,a=()=>null){let o=this.#f,i=this.#h()?.nonce===l,r=await this.#t.http.request("POST","/auth/exchange",{json:{code:t,client_id:this.clientId,code_verifier:n},anonymous:!0,detached:!0}),u=a()??(o!==this.#f?new te("cancelled","Signed out while signing in"):null)??(i&&this.#h()?.nonce!==l?new te("cancelled","The sign-in was abandoned"):null);if(u)throw this.#t.http.request("POST","/auth/revoke",{credentials:{key:r.key,clientId:r.client_id||this.clientId},detached:!0}).catch(()=>{}),u;let c={key:r.key,client_id:r.client_id||this.clientId,expires_at:r.expires_at??null,user:r.user};return this.#l=c,Ii(this.#t.storage,this.#e.auth,c),this.#c(),this.#s({status:"signed-in",user:c.user,degraded:!1,error:null}),c.user}#v(t,n,l,a){return new Promise((o,i)=>{let r=null,u=g=>{if(g.origin!==this.#t.forum.origin||g.source!==n)return;let v=g.data;!v||typeof v!="object"||v.type!==lm||v.nonce!==l||typeof v.code!="string"||(s(),o({kind:"code",code:v.code}))},c=g=>{if(g.key!==this.#e.auth||!g.newValue)return;let v=this.#T();v&&(s(),o({kind:"user",user:v.user}))},d=setInterval(()=>{if(!n.closed||!ca()?.hasFocus()){r=null;return}r??=Date.now(),Date.now()-r>=yb&&(s(),i(new te("cancelled","The sign-in window was closed")))},pb),f=setTimeout(()=>{s(),i(new te("cancelled","Sign-in timed out"))},pm),s=()=>{t.removeEventListener("message",u),t.removeEventListener("storage",c),clearInterval(d),clearTimeout(f)};t.addEventListener("message",u),this.#t.syncAcrossTabs&&t.addEventListener("storage",c),a(s)})}#_(t,n,l){let a=dc({origin:nt()?.location.origin,client_id:this.clientId,nonce:t,code_challenge:n,return_to:sa(),provider:l});return`${this.#t.forum.base}/comments/auth/start?${a}`}#C=t=>{t.persisted&&(nt()?.removeEventListener("pageshow",this.#C),!this.#a&&this.#n.status==="signing-in"&&this.#s({status:this.#l?"signed-in":"anonymous"}))};#c(){this.#t.pendingStorage&&Pi(this.#t.pendingStorage,this.#e.pending)}#h(){let t=this.#t.pendingStorage,n=t?mc(t,this.#e.pending):null;return!n||typeof n.nonce!="string"||typeof n.verifier!="string"||typeof n.created_at!="number"||Date.now()-n.created_at>pm?null:n}#p=t=>{if(t.key!==null&&t.key!==this.#e.auth)return;let n=this.#T();n?.key!==this.#l?.key&&(this.#l=n,this.#s({status:n?"signed-in":this.#a?"signing-in":"anonymous",user:n?.user??null,degraded:!1,error:null}))};#S(t){if(t!==void 0){if(!Zi.test(t))throw new TypeError(`${me}: "clientId" must match ${Zi}`);return t}let{storage:n}=this.#t,l=null;try{l=n.getItem(this.#e.clientId)}catch{l=null}if(l&&Zi.test(l))return l;let a=fa(24);try{n.setItem(this.#e.clientId,a)}catch{}return a}#T(){let t=mc(this.#t.storage,this.#e.auth);return!t||typeof t.key!="string"||typeof t.client_id!="string"||!t.user||typeof t.user!="object"?null:t.expires_at&&Date.parse(t.expires_at)<=Date.now()?(Pi(this.#t.storage,this.#e.auth),null):t}#N(){this.#l=null,Pi(this.#t.storage,this.#e.auth)}#s(t){let n={...this.#n,...t};n.status===this.#n.status&&n.degraded===this.#n.degraded&&n.error===this.#n.error&&_b(n.user,this.#n.user)||(this.#n=Object.freeze(n),this.#r.emit(this.#n))}};function vb(e){let t=Math.round(e.screenX+Math.max(0,(e.outerWidth-ym)/2)),n=Math.round(e.screenY+Math.max(0,(e.outerHeight-vm)/2));try{return e.open("",hb,`popup=yes,width=${ym},height=${vm},left=${t},top=${n}`)}catch{return null}}function bb(e,t){try{return e.location.replace(t),!0}catch{return!1}}function _b(e,t){return e===t?!0:!e||!t?!1:JSON.stringify(e)===JSON.stringify(t)}function bm(e){return Al(e)?e:new te("unknown",e instanceof Error?e.message:String(e),{cause:e})}function Ao(e){if("topicId"in e)return`t:${e.topicId}`;if("identifier"in e){let t=e.host??nt()?.location.host;if(!t)throw new TypeError("A count ref with an identifier needs a host outside the browser");return`id:${t}/${e.identifier}`}return`url:${e.url}`}var Cb=4e3,Fi=class{#t;#e=[];#l=!1;constructor(t){this.#t=t}request(t){let n=t.map(Ao);return n.length===0?Promise.resolve({}):new Promise((l,a)=>{this.#e.push({keys:n,resolve:l,reject:a}),this.#l||(this.#l=!0,setTimeout(()=>{this.#n()},0))})}async#n(){let t=this.#e;this.#e=[],this.#l=!1;let n=[...new Set(t.flatMap(u=>u.keys))],l=[],a=[],o=0;for(let u of n){let c=encodeURIComponent(u).length+8;a.length>0&&(a.length>=50||o+c>Cb)&&(l.push(a),a=[],o=0),a.push(u),o+=c}a.length>0&&l.push(a);let i=new Map,r=new Map;await Promise.all(l.map(async u=>{try{let c=await this.#t.request("GET","/counts",{query:{refs:u},anonymous:!0});for(let d of u)i.set(d,Number(c.counts?.[d]??0))}catch(c){for(let d of u)r.set(d,c)}}));for(let u of t){let c=u.keys.find(f=>r.has(f));if(c!==void 0){u.reject(r.get(c));continue}let d={};for(let f of u.keys)d[f]=i.get(f)??0;u.resolve(d)}}};function _m(e){return e?(...t)=>console.debug(`[${me}]`,...t):()=>{}}var Sb="/__status",hc=`\r
|
|
8
|
+
`+l.stack}}var Fc=Object.prototype.hasOwnProperty,em=De.unstable_scheduleCallback,mc=De.unstable_cancelCallback,g1=De.unstable_shouldYield,h1=De.unstable_requestPaint,_t=De.unstable_now,p1=De.unstable_getCurrentPriorityLevel,$p=De.unstable_ImmediatePriority,Wp=De.unstable_UserBlockingPriority,cu=De.unstable_NormalPriority,y1=De.unstable_LowPriority,ey=De.unstable_IdlePriority,v1=De.log,b1=De.unstable_setDisableYieldValue,Ai=null,Ct=null;function Wn(e){if(typeof v1=="function"&&b1(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(Ai,e)}catch{}}var St=Math.clz32?Math.clz32:S1,_1=Math.log,C1=Math.LN2;function S1(e){return e>>>=0,e===0?32:31-(_1(e)/C1|0)|0}var Sr=256,Tr=262144,Er=4194304;function ql(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&-e;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 qu(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,a=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~a,l!==0?o=ql(l):(i&=r,i!==0?o=ql(i):n||(n=r&~e,n!==0&&(o=ql(n))))):(r=l&~a,r!==0?o=ql(r):i!==0?o=ql(i):n||(n=l&~e,n!==0&&(o=ql(n)))),o===0?0:t!==0&&t!==o&&(t&a)===0&&(a=o&-o,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:o}function Ni(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ty(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-St(n),o=1<<l;t|=e[l],n&=~o}return t}function T1(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 ny(){var e=Er;return Er<<=1,(Er&62914560)===0&&(Er=4194304),e}function dc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function E1(e,t,n,l,o,a){var i=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 r=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=i&~n;0<n;){var m=31-St(n),f=1<<m;r[m]=0,u[m]=-1;var c=s[m];if(c!==null)for(s[m]=null,m=0;m<c.length;m++){var g=c[m];g!==null&&(g.lane&=-536870913)}n&=~f}l!==0&&ly(e,l,0),a!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=a&~(i&~t))}function ly(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-St(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function oy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-St(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function ay(e,t){var n=t&-t;return n=(n&42)!==0?1:tm(n),(n&(e.suspendedLanes|t))!==0?0:n}function tm(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 nm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function iy(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:V0(e.type))}function fh(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Dn=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Dn,ft="__reactProps$"+Dn,ga="__reactContainer$"+Dn,mh="__reactEvents$"+Dn,w1="__reactListeners$"+Dn,x1="__reactHandles$"+Dn,dh="__reactResources$"+Dn,Oi="__reactMarker$"+Dn,fu="__reactLoad$"+Dn;function Lu(e){delete e[Ge],delete e[ft],delete e[w1],delete e[x1]}function Yl(e){var t;if(t=e[Ge])return t;for(var n=e.parentNode;n;){if(t=n[ga]||n[Ge]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Op(e);e!==null;){if(n=e[Ge])return n;e=Op(e)}return t}e=n,n=e.parentNode}return null}function ha(e){if(e=e[Ge]||e[ga]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(_(33))}function Xo(e){var t=e[dh];return t||(t=e[dh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[Oi]=!0}function ry(e){e[fu]=void 0}var uy=new Set,sy={};function to(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(sy[e]=t,e=0;e<t.length;e++)uy.add(t[e])}var A1=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]*$"),gh={},hh={};function N1(e){return Fc.call(hh,e)?!0:Fc.call(gh,e)?!1:A1.test(e)?hh[e]=!0:(gh[e]=!0,!1)}var J=!1;function ph(){var e=J;return J=!1,e}function jr(e,t,n){if(N1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function wr(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 Cn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,l)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R1(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,a=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pc(e){if(!e._valueTracker){var t=cy(e)?"checked":"value";e._valueTracker=R1(e,t,""+e[t])}}function fy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=cy(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var O1=/[\n"\\]/g;function Ht(e){return e.replace(O1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $c(e,t,n,l,o,a,i,r){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?gc(e,pt(e.value)):gc(e,pt(t)):n!=null?gc(e,pt(n)):l!=null&&e.removeAttribute("value"),o==null&&a!=null&&(e.defaultChecked=!!a),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+pt(r):e.removeAttribute("name")}function my(e,t,n,l,o,a,i,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Pc(e);return}n=n!=null?""+pt(n):"",t=t!=null?""+pt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Pc(e)}function gc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Zo(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function dy(e,t,n){if(t!=null&&(t=""+pt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+pt(n):""}function gy(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(_(92));if(Ka(l)){if(1<l.length)throw Error(_(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=pt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Pc(e)}function la(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var M1=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 yh(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||M1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hy(e,t,n){if(t!=null&&typeof t!="object")throw Error(_(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",J=!0);for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&(yh(e,o,l),J=!0)}else for(var a in t)t.hasOwnProperty(a)&&yh(e,a,t[a])}function lm(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 z1=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"],["maskType","mask-type"],["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"]]),D1=/^[\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 Qr(e){return D1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function an(){}var Wc=null;function om(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qo=null,Ko=null;function vh(e){var t=ha(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if($c(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="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[ft]||null;if(!o)throw Error(_(90));$c(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&fy(l)}break e;case"textarea":dy(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zo(e,!!n.multiple,t,!1)}}}var hc=!1;function py(e,t,n){if(hc)return e(t,n);hc=!0;try{var l=e(t);return l}finally{if(hc=!1,(qo!==null||Ko!==null)&&(Pu(),qo&&(t=qo,e=Ko,Ko=qo=null,vh(t),e)))for(t=0;t<e.length;t++)vh(e[t])}}function fi(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(An)try{Ao={},Object.defineProperty(Ao,"passive",{get:function(){ef=!0}}),window.addEventListener("test",Ao,Ao),window.removeEventListener("test",Ao,Ao)}catch{ef=!1}var Ao,el=null,am=null,kr=null;function yy(){if(kr)return kr;var e,t=am,n=t.length,l,o="value"in el?el.value:el.textContent,a=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(l=1;l<=i&&t[n-l]===o[a-l];l++);return kr=o.slice(e,1<l?1-l:void 0)}function Xr(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 xr(){return!0}function bh(){return!1}function nt(e){function t(n,l,o,a,i){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?xr:bh,this.isPropagationStopped=bh,this}return ce(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=xr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xr)},persist:function(){},isPersistent:xr}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bu=nt(_l),Mi=ce({},_l,{view:0,detail:0}),U1=nt(Mi),pc,yc,Va,Yu=ce({},Mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,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!==Va&&(Va&&e.type==="mousemove"?(pc=e.screenX-Va.screenX,yc=e.screenY-Va.screenY):yc=pc=0,Va=e),pc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),_h=nt(Yu),H1=ce({},Yu,{dataTransfer:0}),q1=nt(H1),L1=ce({},Mi,{relatedTarget:0}),vc=nt(L1),B1=ce({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),Y1=nt(B1),G1=ce({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=nt(G1),j1=ce({},_l,{data:0}),Ch=nt(j1),Q1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k1={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"},X1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X1[e])?!!t[e]:!1}function im(){return Z1}var K1=ce({},Mi,{key:function(e){if(e.key){var t=Q1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J1=nt(K1),I1=ce({},Yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sh=nt(I1),F1=ce({},_l,{submitter:0}),P1=nt(F1),$1=ce({},Mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),W1=nt($1),eC=ce({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),tC=nt(eC),nC=ce({},Yu,{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}),lC=nt(nC),oC=ce({},_l,{newState:0,oldState:0,source:0}),aC=nt(oC),iC=[9,13,27,32],rm=An&&"CompositionEvent"in window,Pa=null;An&&"documentMode"in document&&(Pa=document.documentMode);var rC=An&&"TextEvent"in window&&!Pa,vy=An&&(!rm||Pa&&8<Pa&&11>=Pa),Th=" ",Eh=!1;function by(e,t){switch(e){case"keyup":return iC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _y(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lo=!1;function uC(e,t){switch(e){case"compositionend":return _y(t);case"keypress":return t.which!==32?null:(Eh=!0,Th);case"textInput":return e=t.data,e===Th&&Eh?null:e;default:return null}}function sC(e,t){if(Lo)return e==="compositionend"||!rm&&by(e,t)?(e=yy(),kr=am=el=null,Lo=!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 vy&&t.locale!=="ko"?null:t.data;default:return null}}var cC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cC[e.type]:t==="textarea"}function Cy(e,t,n,l){qo?Ko?Ko.push(l):Ko=[l]:qo=l,t=Du(t,"onChange"),0<t.length&&(n=new Bu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var $a=null,mi=null;function fC(e){p0(e,0)}function Gu(e){var t=Ja(e);if(fy(t))return e}function xh(e,t){if(e==="change")return t}var Sy=!1;An&&(An?(Nr="oninput"in document,Nr||(bc=document.createElement("div"),bc.setAttribute("oninput","return;"),Nr=typeof bc.oninput=="function"),Ar=Nr):Ar=!1,Sy=Ar&&(!document.documentMode||9<document.documentMode));var Ar,Nr,bc;function Ah(){$a&&($a.detachEvent("onpropertychange",Ty),mi=$a=null)}function Ty(e){if(e.propertyName==="value"&&Gu(mi)){var t=[];Cy(t,mi,e,om(e)),py(fC,t)}}function mC(e,t,n){e==="focusin"?(Ah(),$a=t,mi=n,$a.attachEvent("onpropertychange",Ty)):e==="focusout"&&Ah()}function dC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gu(mi)}function gC(e,t){if(e==="click")return Gu(t)}function hC(e,t){if(e==="input"||e==="change")return Gu(t)}function pC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:pC;function di(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Fc.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function tf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rh(e,t){var n=Nh(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nh(n)}}function Ey(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wy(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=tf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tf(e.document)}return t}function um(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 yC=An&&"documentMode"in document&&11>=document.documentMode,Bo=null,nf=null,Wa=null,lf=!1;function Oh(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lf||Bo==null||Bo!==tf(l)||(l=Bo,"selectionStart"in l&&um(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Wa&&di(Wa,l)||(Wa=l,l=Du(nf,"onSelect"),0<l.length&&(t=new Bu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Bo)))}function Ul(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yo={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},_c={},xy={};An&&(xy=document.createElement("div").style,"AnimationEvent"in window||(delete Yo.animationend.animation,delete Yo.animationiteration.animation,delete Yo.animationstart.animation),"TransitionEvent"in window||delete Yo.transitionend.transition);function no(e){if(_c[e])return _c[e];if(!Yo[e])return e;var t=Yo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xy)return _c[e]=t[n];return e}var Ay=no("animationend"),Ny=no("animationiteration"),Ry=no("animationstart"),vC=no("transitionrun"),bC=no("transitionstart"),_C=no("transitioncancel"),Oy=no("transitionend"),My=new Map,of="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");of.push("scrollEnd");function Jt(e,t){My.set(e,t),to(t,[e])}var CC=0;function Nn(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Kt.identifierPrefix;var n=CC++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Mh(e){if(e==null||typeof e=="string")return e;var t=null,n=ea;if(n!==null)for(var l=0;l<n.length;l++){var o=e[n[l]];if(o!=null){if(o==="none")return"none";t=t==null?o:t+(" "+o)}}return t??e.default}function Un(e,t){return e=Mh(e),t=Mh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var mu=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)},zt=[],Go=0,sm=0;function Vu(){for(var e=Go,t=sm=Go=0;t<e;){var n=zt[t];zt[t++]=null;var l=zt[t];zt[t++]=null;var o=zt[t];zt[t++]=null;var a=zt[t];if(zt[t++]=null,l!==null&&o!==null){var i=l.pending;i===null?o.next=o:(o.next=i.next,i.next=o),l.pending=o}a!==0&&zy(n,o,a)}}function ju(e,t,n,l){zt[Go++]=e,zt[Go++]=t,zt[Go++]=n,zt[Go++]=l,sm|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function cm(e,t,n,l){return ju(e,t,n,l),du(e)}function lo(e,t){return ju(e,null,null,t),du(e)}function zy(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,a=e.return;a!==null;)a.childLanes|=n,l=a.alternate,l!==null&&(l.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(o=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,o&&t!==null&&(o=31-St(n),e=a.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),a):null}function du(e){if(50<si)throw si=0,tu=null,Error(_(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Vo={};function SC(e,t,n,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,l){return new SC(e,t,n,l)}function fm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wn(e,t){var n=e.alternate;return n===null?(n=ut(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&1206910976,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 Dy(e,t){e.flags&=1206910978;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 Zr(e,t,n,l,o,a){var i=0;if(l=e,typeof l=="function")fm(l)&&(i=1);else if(typeof l=="string")i=JS(e,n,sn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case Xc:return e=ut(31,n,t,o),e.elementType=Xc,e.lanes=a,e;case Uo:return jl(n.children,o,a,t);case Fp:i=8,o|=24;break;case jc:return e=ut(12,n,t,o|2),e.elementType=jc,e.lanes=a,e;case Qc:return e=ut(13,n,t,o),e.elementType=Qc,e.lanes=a,e;case kc:return e=ut(19,n,t,o),e.elementType=kc,e.lanes=a,e;case s1:case Zc:return e=o|32,e=ut(30,n,t,e),e.elementType=Zc,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case on:i=10;break e;case Pp:i=9;break e;case $f:i=11;break e;case Wf:i=14;break e;case Fn:i=16,l=null;break e}i=29,n=Error(_(130,e===null?"null":typeof e,"")),l=null}return t=ut(i,n,t,o),t.elementType=e,t.type=l,t.lanes=a,t}function jl(e,t,n,l){return e=ut(7,e,l,t),e.lanes=n,e}function Cc(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Uy(e){var t=ut(18,null,null,0);return t.stateNode=e,t}function Sc(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zh=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var n=zh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ch(t)},zh.set(e,t),t)}return{value:e,source:t,stack:ch(t)}}var jo=[],Qo=0,gu=null,gi=0,Dt=[],Ut=0,hl=null,rn=1,un="";function Tn(e,t){jo[Qo++]=gi,jo[Qo++]=gu,gu=e,gi=t}function Hy(e,t,n){Dt[Ut++]=rn,Dt[Ut++]=un,Dt[Ut++]=hl,hl=e;var l=rn;e=un;var o=32-St(l)-1;l&=~(1<<o),n+=1;var a=32-St(t)+o;if(30<a){var i=o-o%5;a=(l&(1<<i)-1).toString(32),l>>=i,o-=i,rn=1<<32-St(t)+o|n<<o|l,un=a+e}else rn=1<<a|n<<o|l,un=e}function Qu(e){e.return!==null&&(Tn(e,1),Hy(e,1,0))}function mm(e){for(;e===gu;)gu=jo[--Qo],jo[Qo]=null,gi=jo[--Qo],jo[Qo]=null;for(;e===hl;)hl=Dt[--Ut],Dt[Ut]=null,un=Dt[--Ut],Dt[Ut]=null,rn=Dt[--Ut],Dt[Ut]=null}function qy(e,t){Dt[Ut++]=rn,Dt[Ut++]=un,Dt[Ut++]=hl,rn=t.id,un=t.overflow,hl=e}var Le=null,de=null,Y=!1,il=null,Lt=!1,af=Error(_(519));function pl(e){var t=Error(_(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hi(qt(t,e)),af}function Dh(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Ge]=e,t[ft]=l,n){case"dialog":G("cancel",t),G("close",t);break;case"iframe":case"object":case"embed":G("load",t);break;case"video":case"audio":for(n=0;n<bi.length;n++)G(bi[n],t);break;case"source":G("error",t);break;case"img":case"image":case"link":G("error",t),G("load",t);break;case"details":G("toggle",t);break;case"input":G("invalid",t),my(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":G("invalid",t);break;case"textarea":G("invalid",t),gy(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||v0(t.textContent,n)?(l.popover!=null&&(G("beforetoggle",t),G("toggle",t)),l.onScroll!=null&&G("scroll",t),l.onScrollEnd!=null&&G("scrollend",t),l.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||pl(e,!0)}function hu(e){for(Le=e.return;Le;)switch(Le.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:Le=Le.return}}function No(e){if(e!==Le)return!1;if(!Y)return hu(e),Y=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||kf(e.type,e.memoizedProps)),n=!n),n&&de&&pl(e),hu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));de=Rp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));de=Rp(e)}else t===27?(t=de,Cl(e.type)?(e=Jf,Jf=null,de=e):de=t):de=Le?Bt(e.stateNode.nextSibling):null;return!0}function Zl(){de=Le=null,Y=!1}function Tc(){var e=il;return e!==null&&(it===null?it=e:it.push.apply(it,e),il=null),e}function hi(e){il===null?il=[e]:il.push(e)}var rf=mn(null),oo=null,En=null;function tl(e,t,n){ge(rf,t._currentValue),t._currentValue=n}function xn(e){e._currentValue=rf.current,je(rf)}function Kr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function uf(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var a=o.dependencies;if(a!==null){var i=o.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=o;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),Kr(a.return,n,e),l||(i=null);break e}a=r.next}}else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Kr(i,n,e),i=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Kr(o.return,n,e),i=o.child,i=i!==null?i.sibling:null):i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}}function Kl(e,t,n,l){e=null;for(var o=t,a=!1;o!==null;){if(!a){if((o.flags&524288)!==0)a=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var i=o.alternate;if(i===null)throw Error(_(387));if(i=i.memoizedProps,i!==null){var r=o.type;Et(o.pendingProps.value,i.value)||(e!==null?e.push(r):e=[r])}}else if(o===ru.current){if(i=o.alternate,i===null)throw Error(_(387));i.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(fa):e=[fa])}o=o.return}return e!==null&&uf(t,e,n,l),t.flags|=262144,e!==null}function pu(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){oo=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Ly(oo,e)}function Rr(e,t){return oo===null&&Jl(e),Ly(e,t)}function Ly(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},En===null){if(e===null)throw Error(_(308));En=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else En=En.next=t;return n}var TC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},EC=De.unstable_scheduleCallback,wC=De.unstable_NormalPriority,Ae={$$typeof:on,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dm(){return{controller:new TC,data:new Map,refCount:0}}function zi(e){e.refCount--,e.refCount===0&&EC(wC,function(){e.controller.abort()})}function Uh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Ia=null;function xC(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ei=null,sf=0,Il=0,Jo=null;function AC(e,t){if(ei===null){var n=ei=[];sf=0,Il=Vm(),Jo={status:"pending",value:void 0,then:function(l){n.push(l)}}}return sf++,t.then(Hh,Hh),t}function Hh(){if(--sf===0&&(Ia=null,ei!==null)){Jo!==null&&(Jo.status="fulfilled");var e=ei;ei=null,Il=0,Jo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function NC(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var qh=z.S;z.S=function(e,t){if(t0=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&AC(e,t),Ia!==null)for(var n=ua;n!==null;)Uh(n,Ia),n=n.next;if(n=e.types,n!==null){for(var l=ua;l!==null;)Uh(l,n),l=l.next;if(Il!==0){l=Ia,l===null&&(l=Ia=[]);for(var o=0;o<n.length;o++){var a=n[o];l.indexOf(a)===-1&&l.push(a)}}}qh!==null&&qh(e,t)};var Ql=mn(null);function gm(){var e=Ql.current;return e!==null?e:se.pooledCache}function Jr(e,t){t===null?ge(Ql,Ql.current):ge(Ql,t.pool)}function By(){var e=gm();return e===null?null:{parent:Ae._currentValue,pool:e}}var pa=Error(_(460)),hm=Error(_(474)),ku=Error(_(542)),yu={then:function(){}};function Lh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yy(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yh(e),e===void 0&&!("reason"in t)?Error(_(600)):e;default:if(typeof t.status=="string")t.then(an,an);else{if(e=se,e!==null&&100<e.shellSuspendCounter)throw Error(_(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yh(e),e}throw kl=t,pa}}function Ll(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(kl=n,pa):n}}var kl=null;function Bh(){if(kl===null)throw Error(_(459));var e=kl;return kl=null,e}function Yh(e){if(e===pa||e===ku)throw Error(_(483))}var Io=null,pi=0;function Or(e){var t=pi;return pi+=1,Io===null&&(Io=[]),Yy(Io,e,t)}function Kn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Mr(e,t){throw t.$$typeof===u1?Error(_(525)):(e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gy(e){function t(h,d){if(e){var p=h.deletions;p===null?(h.deletions=[d],h.flags|=16):p.push(d)}}function n(h,d){if(!e)return null;for(;d!==null;)t(h,d),d=d.sibling;return null}function l(h){for(var d=new Map;h!==null;)h.key===null?d.set(h.index,h):d.set(h.key,h),h=h.sibling;return d}function o(h,d){return h=wn(h,d),h.index=0,h.sibling=null,h}function a(h,d,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<d?(h.flags|=2,d):p):(h.flags|=134217730,d)):(h.flags|=1048576,d)}function i(h){return e&&h.alternate===null&&(h.flags|=134217730),h}function r(h,d,p,y){return d===null||d.tag!==6?(d=Cc(p,h.mode,y),d.return=h,d):(d=o(d,p),d.return=h,d)}function u(h,d,p,y){var C=p.type;return C===Uo?(h=m(h,d,p.props.children,y,p.key),Kn(h,p),h):d!==null&&(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Fn&&Ll(C)===d.type)?(d=o(d,p.props),Kn(d,p),d.return=h,d):(d=Zr(p.type,p.key,p.props,null,h.mode,y),Kn(d,p),d.return=h,d)}function s(h,d,p,y){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=Sc(p,h.mode,y),d.return=h,d):(d=o(d,p.children||[]),d.return=h,d)}function m(h,d,p,y,C){return d===null||d.tag!==7?(d=jl(p,h.mode,y,C),d.return=h,d):(d=o(d,p),d.return=h,d)}function f(h,d,p){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Cc(""+d,h.mode,p),d.return=h,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Cr:return p=Zr(d.type,d.key,d.props,null,h.mode,p),Kn(p,d),p.return=h,p;case Za:return d=Sc(d,h.mode,p),d.return=h,d;case Fn:return d=Ll(d),f(h,d,p)}if(Ka(d)||Ga(d))return d=jl(d,h.mode,p,null),d.return=h,d;if(typeof d.then=="function")return f(h,Or(d),p);if(d.$$typeof===on)return f(h,Rr(h,d),p);Mr(h,d)}return null}function c(h,d,p,y){var C=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return C!==null?null:r(h,d,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Cr:return p.key===C?u(h,d,p,y):null;case Za:return p.key===C?s(h,d,p,y):null;case Fn:return p=Ll(p),c(h,d,p,y)}if(Ka(p)||Ga(p))return C!==null?null:m(h,d,p,y,null);if(typeof p.then=="function")return c(h,d,Or(p),y);if(p.$$typeof===on)return c(h,d,Rr(h,p),y);Mr(h,p)}return null}function g(h,d,p,y,C){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return h=h.get(p)||null,r(d,h,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Cr:return h=h.get(y.key===null?p:y.key)||null,u(d,h,y,C);case Za:return h=h.get(y.key===null?p:y.key)||null,s(d,h,y,C);case Fn:return y=Ll(y),g(h,d,p,y,C)}if(Ka(y)||Ga(y))return h=h.get(p)||null,m(d,h,y,C,null);if(typeof y.then=="function")return g(h,d,p,Or(y),C);if(y.$$typeof===on)return g(h,d,p,Rr(d,y),C);Mr(d,y)}return null}function v(h,d,p,y){for(var C=null,A=null,E=d,x=d=0,L=null;E!==null&&x<p.length;x++){E.index>x?(L=E,E=null):L=E.sibling;var H=c(h,E,p[x],y);if(H===null){E===null&&(E=L);break}e&&E&&H.alternate===null&&t(h,E),d=a(H,d,x),A===null?C=H:A.sibling=H,A=H,E=L}if(x===p.length)return n(h,E),Y&&Tn(h,x),C;if(E===null){for(;x<p.length;x++)E=f(h,p[x],y),E!==null&&(d=a(E,d,x),A===null?C=E:A.sibling=E,A=E);return Y&&Tn(h,x),C}for(E=l(E);x<p.length;x++)L=g(E,h,x,p[x],y),L!==null&&(e&&(H=L.alternate,H!==null&&E.delete(H.key===null?x:H.key)),d=a(L,d,x),A===null?C=L:A.sibling=L,A=L);return e&&E.forEach(function(Ie){return t(h,Ie)}),Y&&Tn(h,x),C}function b(h,d,p,y){if(p==null)throw Error(_(151));for(var C=null,A=null,E=d,x=d=0,L=null,H=p.next();E!==null&&!H.done;x++,H=p.next()){E.index>x?(L=E,E=null):L=E.sibling;var Ie=c(h,E,H.value,y);if(Ie===null){E===null&&(E=L);break}e&&E&&Ie.alternate===null&&t(h,E),d=a(Ie,d,x),A===null?C=Ie:A.sibling=Ie,A=Ie,E=L}if(H.done)return n(h,E),Y&&Tn(h,x),C;if(E===null){for(;!H.done;x++,H=p.next())H=f(h,H.value,y),H!==null&&(d=a(H,d,x),A===null?C=H:A.sibling=H,A=H);return Y&&Tn(h,x),C}for(E=l(E);!H.done;x++,H=p.next())H=g(E,h,x,H.value,y),H!==null&&(e&&(L=H.alternate,L!==null&&E.delete(L.key===null?x:L.key)),d=a(H,d,x),A===null?C=H:A.sibling=H,A=H);return e&&E.forEach(function(O){return t(h,O)}),Y&&Tn(h,x),C}function S(h,d,p,y){if(typeof p=="object"&&p!==null&&p.type===Uo&&p.key===null&&p.props.ref===void 0&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Cr:e:{for(var C=p.key;d!==null;){if(d.key===C){if(C=p.type,C===Uo){if(d.tag===7){n(h,d.sibling),y=o(d,p.props.children),Kn(y,p),y.return=h,h=y;break e}}else if(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Fn&&Ll(C)===d.type){n(h,d.sibling),y=o(d,p.props),Kn(y,p),y.return=h,h=y;break e}n(h,d);break}else t(h,d);d=d.sibling}p.type===Uo?(y=jl(p.props.children,h.mode,y,p.key),Kn(y,p),y.return=h,h=y):(y=Zr(p.type,p.key,p.props,null,h.mode,y),Kn(y,p),y.return=h,h=y)}return i(h);case Za:e:{for(C=p.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(h,d.sibling),y=o(d,p.children||[]),y.return=h,h=y;break e}else{n(h,d);break}else t(h,d);d=d.sibling}y=Sc(p,h.mode,y),y.return=h,h=y}return i(h);case Fn:return p=Ll(p),S(h,d,p,y)}if(Ka(p))return v(h,d,p,y);if(Ga(p)){if(C=Ga(p),typeof C!="function")throw Error(_(150));return p=C.call(p),b(h,d,p,y)}if(typeof p.then=="function")return S(h,d,Or(p),y);if(p.$$typeof===on)return S(h,d,Rr(h,p),y);Mr(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,d!==null&&d.tag===6?(n(h,d.sibling),y=o(d,p),y.return=h,h=y):(n(h,d),y=Cc(p,h.mode,y),y.return=h,h=y),i(h)):n(h,d)}return function(h,d,p,y){try{pi=0;var C=S(h,d,p,y);return Io=null,C}catch(E){if(E===pa||E===ku)throw E;var A=ut(29,E,null,h.mode);return A.lanes=y,A.return=h,A}}}var Fl=Gy(!0),Vy=Gy(!1),Pn=!1;function pm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cf(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 rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ul(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(I&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=du(e),zy(e,null,n),t}return ju(e,l,t,n),du(e)}function ti(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,oy(e,n)}}function Ec(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?o=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ff=!1;function ni(){if(ff){var e=Jo;if(e!==null)throw e}}function li(e,t,n,l){ff=!1;var o=e.updateQueue;Pn=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,r=o.shared.pending;if(r!==null){o.shared.pending=null;var u=r,s=u.next;u.next=null,i===null?a=s:i.next=s,i=u;var m=e.alternate;m!==null&&(m=m.updateQueue,r=m.lastBaseUpdate,r!==i&&(r===null?m.firstBaseUpdate=s:r.next=s,m.lastBaseUpdate=u))}if(a!==null){var f=o.baseState;i=0,m=s=u=null,r=a;do{var c=r.lane&-536870913,g=c!==r.lane;if(g?(Q&c)===c:(l&c)===c){c!==0&&c===Il&&(ff=!0),m!==null&&(m=m.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var v=e,b=r;c=t;var S=n;switch(b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(S,f,c);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,c=typeof v=="function"?v.call(S,f,c):v,c==null)break e;f=ce({},f,c);break e;case 2:Pn=!0}}c=r.callback,c!==null&&(e.flags|=64,g&&(e.flags|=8192),g=o.callbacks,g===null?o.callbacks=[c]:g.push(c))}else g={lane:c,tag:r.tag,payload:r.payload,callback:r.callback,next:null},m===null?(s=m=g,u=f):m=m.next=g,i|=c;if(r=r.next,r===null){if(r=o.shared.pending,r===null)break;g=r,r=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);m===null&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=m,a===null&&(o.shared.lanes=0),bl|=i,e.lanes=i,e.memoizedState=f}}function jy(e,t){if(typeof e!="function")throw Error(_(191,e));e.call(t)}function Qy(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jy(n[e],t)}var yl=mn(null),vu=mn(0);function Gh(e,t){e=zn,ge(vu,e),ge(yl,t),zn=e|t.baseLanes}function mf(){ge(vu,zn),ge(yl,yl.current)}function ym(){zn=vu.current,je(yl),je(vu)}var Xe=mn(null),Je=null;function sl(e){var t=e.alternate;ge(Qe,Qe.current&1),ge(Xe,e),Je===null&&(t===null||yl.current!==null||t.memoizedState!==null)&&(Je=e)}function df(e){ge(Qe,Qe.current),ge(Xe,e),Je===null&&(Je=e)}function ky(e){e.tag===22?(ge(Qe,Qe.current),ge(Xe,e),Je===null&&(Je=e)):cl()}function cl(){ge(Qe,Qe.current),ge(Xe,Xe.current)}function yt(e){je(Xe),Je===e&&(Je=null),je(Qe)}var Qe=mn(0);function yi(e,t){ge(Xe,Xe.current),ge(Qe,t)}function vm(e){je(Qe),je(Xe),Je===e&&(Je=null)}function bu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kf(n)||Xm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 Rn=0,q=null,ie=null,xe=null,_u=!1,Fo=!1,Pl=!1,Cu=0,vi=0,Po=null,RC=0;function Se(){throw Error(_(321))}function bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function _m(e,t,n,l,o,a){return Rn=a,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Cv:Sv,Pl=!1,a=n(l,o),Pl=!1,Fo&&(a=Zy(t,n,l,o)),Xy(e),a}function Xy(e){z.H=Su;var t=ie!==null&&ie.next!==null;if(Rn=0,xe=ie=q=null,_u=!1,vi=0,Po=null,t)throw Error(_(300));e===null||Ne||(e=e.dependencies,e!==null&&pu(e)&&(Ne=!0))}function Zy(e,t,n,l){q=e;var o=0;do{if(Fo&&(Po=null),vi=0,Fo=!1,25<=o)throw Error(_(301));if(o+=1,xe=ie=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}z.H=LC,a=t(n,l)}while(Fo);return a}function OC(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Di(t):t,e=e.useState()[0],(ie!==null?ie.memoizedState:null)!==e&&(q.flags|=1024),t}function Cm(){var e=Cu!==0;return Cu=0,e}function Sm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Tm(e){if(_u){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_u=!1}Rn=0,xe=ie=q=null,Fo=!1,vi=Cu=0,Po=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xe===null?q.memoizedState=xe=e:xe=xe.next=e,xe}function we(){if(ie===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=xe===null?q.memoizedState:xe.next;if(t!==null)xe=t,ie=e;else{if(e===null)throw q.alternate===null?Error(_(467)):Error(_(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},xe===null?q.memoizedState=xe=e:xe=xe.next=e}return xe}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Di(e){var t=vi;return vi+=1,Po===null&&(Po=[]),e=Yy(Po,e,t),t=q,(xe===null?t.memoizedState:xe.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Cv:Sv),e}function Zu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Di(e);if(e.$$typeof===f1)return;if(e.$$typeof===on)return Ve(e)}throw Error(_(438,String(e)))}function Em(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=q.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Xu(),q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=c1;return t.index++,n}function On(e,t){return typeof t=="function"?t(e):t}function Ir(e){var t=we();return wm(t,ie,e)}function wm(e,t,n){var l=e.queue;if(l===null)throw Error(_(311));l.lastRenderedReducer=n;var o=e.baseQueue,a=l.pending;if(a!==null){if(o!==null){var i=o.next;o.next=a.next,a.next=i}t.baseQueue=o=a,l.pending=null}if(a=e.baseState,o===null)e.memoizedState=a;else{t=o.next;var r=i=null,u=null,s=t,m=!1;do{var f=s.lane&-536870913;if(f!==s.lane?(Q&f)===f:(Rn&f)===f){var c=s.revertLane;if(c===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),f===Il&&(m=!0);else if((Rn&c)===c){s=s.next,c===Il&&(m=!0);continue}else f={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=f,i=a):u=u.next=f,q.lanes|=c,bl|=c;f=s.action,Pl&&n(a,f),a=s.hasEagerState?s.eagerState:n(a,f)}else c={lane:f,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(r=u=c,i=a):u=u.next=c,q.lanes|=f,bl|=f;s=s.next}while(s!==null&&s!==t);if(u===null?i=a:u.next=r,!Et(a,e.memoizedState)&&(Ne=!0,m&&(n=Jo,n!==null)))throw n;e.memoizedState=a,e.baseState=i,e.baseQueue=u,l.lastRenderedState=a}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function wc(e){var t=we(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,a=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do a=e(a,i.action),i=i.next;while(i!==o);Et(a,t.memoizedState)||(Ne=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,l]}function Ky(e,t,n){var l=q,o=we(),a=Y;if(a){if(n===void 0)throw Error(_(407));n=n()}else n=t();var i=!Et((ie||o).memoizedState,n);if(i&&(o.memoizedState=n,Ne=!0),o=o.queue,xm(Fy.bind(null,l,o,e),[e]),e=o.getSnapshot!==t||i||xe!==null&&(xe.memoizedState.tag&1)!==0,oa(e?9:8,{destroy:void 0},Iy.bind(null,l,o,n,t),null),e){if(l.flags|=2048,se===null)throw Error(_(349));a||(Rn&127)!==0||Jy(l,t,n)}return n}function Jy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=Xu(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Iy(e,t,n,l){t.value=n,t.getSnapshot=l,Py(t)&&$y(e)}function Fy(e,t,n){return n(function(){Py(t)&&$y(e)})}function Py(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function $y(e){var t=lo(e,2);t!==null&&st(t,e,2)}function gf(e){var t=tt();if(typeof e=="function"){var n=e;if(e=n(),Pl){Wn(!0);try{n()}finally{Wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function Wy(e,t,n,l){return e.baseState=n,wm(e,ie,typeof l=="function"?l:On)}function MC(e,t,n,l,o){if(Ju(e))throw Error(_(485));if(e=t.action,e!==null){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){a.listeners.push(i)}};z.T!==null?n(!0):a.isTransition=!1,l(a),n=t.pending,n===null?(a.next=t.pending=a,ev(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ev(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var a=z.T,i={};i.types=a!==null?a.types:null,z.T=i;try{var r=n(o,l),u=z.S;u!==null&&u(i,r),Vh(e,t,r)}catch(s){hf(e,t,s)}finally{a!==null&&i.types!==null&&(a.types=i.types),z.T=a}}else try{a=n(o,l),Vh(e,t,a)}catch(s){hf(e,t,s)}}function Vh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){jh(e,t,l)},function(l){return hf(e,t,l)}):jh(e,t,n)}function jh(e,t,n){t.status="fulfilled",t.value=n,tv(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ev(e,n)))}function hf(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,tv(t),t=t.next;while(t!==l)}e.action=null}function tv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nv(e,t){return t}function Qh(e,t){if(Y){var n=se.formState;if(n!==null){e:{var l=q;if(Y){if(de){t:{for(var o=de,a=Lt;o.nodeType!==8;){if(!a){o=null;break t}if(o=Bt(o.nextSibling),o===null){o=null;break t}}a=o.data,o=a==="F!"||a==="F"?o:null}if(o){de=Bt(o.nextSibling),l=o.data==="F!";break e}}pl(l)}l=!1}l&&(t=n[0])}}return n=tt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nv,lastRenderedState:t},n.queue=l,n=vv.bind(null,q,l),l.dispatch=n,l=gf(!1),a=Om.bind(null,q,!1,l.queue),l=tt(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=MC.bind(null,q,o,a,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function kh(e){var t=we();return lv(t,ie,e)}function lv(e,t,n){if(t=wm(e,t,nv)[0],e=Ir(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Di(t)}catch(i){throw i===pa?ku:i}else l=t;t=we();var o=t.queue,a=o.dispatch;return n!==t.memoizedState&&(q.flags|=2048,oa(9,{destroy:void 0},zC.bind(null,o,n),null)),[l,a,e]}function zC(e,t){e.action=t}function Xh(e){var t=we(),n=ie;if(n!==null)return lv(t,n,e);we(),t=t.memoizedState,n=we();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function oa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=q.updateQueue,t===null&&(t=Xu(),q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function ov(){return we().memoizedState}function Fr(e,t,n,l){var o=tt();q.flags|=e,o.memoizedState=oa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ku(e,t,n,l){var o=we();l=l===void 0?null:l;var a=o.memoizedState.inst;ie!==null&&l!==null&&bm(l,ie.memoizedState.deps)?o.memoizedState=oa(t,a,n,l):(q.flags|=e,o.memoizedState=oa(1|t,a,n,l))}function Zh(e,t){Fr(8390656,8,e,t)}function xm(e,t){Ku(2048,8,e,t)}function DC(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=Xu(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function av(e){var t=we().memoizedState;return DC({ref:t,nextImpl:e}),function(){if((I&2)!==0)throw Error(_(440));return t.impl.apply(void 0,arguments)}}function iv(e,t){return Ku(4,2,e,t)}function rv(e,t){return Ku(4,4,e,t)}function uv(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 sv(e,t,n){n=n!=null?n.concat([e]):null,Ku(4,4,uv.bind(null,t,e),n)}function Am(){}function cv(e,t){var n=we();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&bm(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function fv(e,t){var n=we();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&bm(t,l[1]))return l[0];if(l=e(),Pl){Wn(!0);try{e()}finally{Wn(!1)}}return n.memoizedState=[l,t],l}function Nm(e,t,n){return n===void 0||(Rn&1073741824)!==0&&(Q&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=l0(),q.lanes|=e,bl|=e,n)}function mv(e,t,n,l){return Et(n,t)?n:yl.current!==null?(e=Nm(e,n,l),Et(e,t)||(Ne=!0),e):(Rn&106)===0||(Rn&1073741824)!==0&&(Q&261930)===0?(Ne=!0,e.memoizedState=n):(e=l0(),q.lanes|=e,bl|=e,t)}function dv(e,t,n,l,o){var a=F.p;F.p=a!==0&&8>a?a:8;var i=z.T,r={};r.types=i!==null?i.types:null,z.T=r,Om(e,!1,t,n);try{var u=o(),s=z.S;if(s!==null&&s(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var m=NC(u,l);oi(e,t,m,Tt(e))}else oi(e,t,l,Tt(e))}catch(f){oi(e,t,{then:function(){},status:"rejected",reason:f},Tt())}finally{F.p=a,i!==null&&r.types!==null&&(i.types=r.types),z.T=i}}function UC(){}function pf(e,t,n,l){if(e.tag!==5)throw Error(_(476));var o=gv(e).queue;dv(e,o,t,Vl,n===null?UC:function(){return hv(e),n(l)})}function gv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Vl,baseState:Vl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:Vl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hv(e){var t=gv(e);t.next===null&&(t=e.alternate.memoizedState),oi(e,t.next.queue,{},Tt())}function Rm(){return Ve(fa)}function pv(){return we().memoizedState}function yv(){return we().memoizedState}function HC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tt();e=rl(n);var l=ul(t,e,n);l!==null&&(st(l,t,n),ti(l,t,n)),t={cache:dm()},e.payload=t;return}t=t.return}}function qC(e,t,n){var l=Tt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ju(e)?bv(t,n):(n=cm(e,t,n,l),n!==null&&(st(n,e,l),_v(n,t,l)))}function vv(e,t,n){var l=Tt();oi(e,t,n,l)}function oi(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ju(e))bv(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,r=a(i,n);if(o.hasEagerState=!0,o.eagerState=r,Et(r,i))return ju(e,t,o,0),se===null&&Vu(),!1}catch{}if(n=cm(e,t,o,l),n!==null)return st(n,e,l),_v(n,t,l),!0}return!1}function Om(e,t,n,l){if(l={lane:2,revertLane:Vm(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ju(e)){if(t)throw Error(_(479))}else t=cm(e,n,l,2),t!==null&&st(t,e,2)}function Ju(e){var t=e.alternate;return e===q||t!==null&&t===q}function bv(e,t){Fo=_u=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _v(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,oy(e,n)}}var Su={readContext:Ve,use:Zu,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useLayoutEffect:Se,useInsertionEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useSyncExternalStore:Se,useId:Se,useHostTransitionStatus:Se,useFormState:Se,useActionState:Se,useOptimistic:Se,useMemoCache:Se,useCacheRefresh:Se,useEffectEvent:Se},Cv={readContext:Ve,use:Zu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fr(4194308,4,uv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){Fr(4,2,e,t)},useMemo:function(e,t){var n=tt();t=t===void 0?null:t;var l=e();if(Pl){Wn(!0);try{e()}finally{Wn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=tt();if(n!==void 0){var o=n(t);if(Pl){Wn(!0);try{n(t)}finally{Wn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=qC.bind(null,q,e),[l.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,n=vv.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Am,useDeferredValue:function(e,t){var n=tt();return Nm(n,e,t)},useTransition:function(){var e=gf(!1);return e=dv.bind(null,q,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=q,o=tt();if(Y){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),se===null)throw Error(_(349));(Q&127)!==0||Jy(l,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Zh(Fy.bind(null,l,a,e),[e]),l.flags|=2048,oa(9,{destroy:void 0},Iy.bind(null,l,a,n,t),null),n},useId:function(){var e=tt(),t=se.identifierPrefix;if(Y){var n=un,l=rn;n=(l&~(1<<32-St(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Cu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=RC++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rm,useFormState:Qh,useActionState:Qh,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Om.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:Em,useCacheRefresh:function(){return tt().memoizedState=HC.bind(null,q)},useEffectEvent:function(e){var t=tt(),n={impl:e};return t.memoizedState=n,function(){if((I&2)!==0)throw Error(_(440));return n.impl.apply(void 0,arguments)}}},Sv={readContext:Ve,use:Zu,useCallback:cv,useContext:Ve,useEffect:xm,useImperativeHandle:sv,useInsertionEffect:iv,useLayoutEffect:rv,useMemo:fv,useReducer:Ir,useRef:ov,useState:function(){return Ir(On)},useDebugValue:Am,useDeferredValue:function(e,t){var n=we();return mv(n,ie.memoizedState,e,t)},useTransition:function(){var e=Ir(On)[0],t=we().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Ky,useId:pv,useHostTransitionStatus:Rm,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var n=we();return Wy(n,ie,e,t)},useMemoCache:Em,useCacheRefresh:yv,useEffectEvent:av},LC={readContext:Ve,use:Zu,useCallback:cv,useContext:Ve,useEffect:xm,useImperativeHandle:sv,useInsertionEffect:iv,useLayoutEffect:rv,useMemo:fv,useReducer:wc,useRef:ov,useState:function(){return wc(On)},useDebugValue:Am,useDeferredValue:function(e,t){var n=we();return ie===null?Nm(n,e,t):mv(n,ie.memoizedState,e,t)},useTransition:function(){var e=wc(On)[0],t=we().memoizedState;return[typeof e=="boolean"?e:Di(e),t]},useSyncExternalStore:Ky,useId:pv,useHostTransitionStatus:Rm,useFormState:Xh,useActionState:Xh,useOptimistic:function(e,t){var n=we();return ie!==null?Wy(n,ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Em,useCacheRefresh:yv,useEffectEvent:av};function xc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var yf={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Tt(),o=rl(l);o.payload=t,n!=null&&(o.callback=n),t=ul(e,o,l),t!==null&&(st(t,e,l),ti(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Tt(),o=rl(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ul(e,o,l),t!==null&&(st(t,e,l),ti(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tt(),l=rl(n);l.tag=2,t!=null&&(l.callback=t),t=ul(e,l,n),t!==null&&(st(t,e,n),ti(t,e,n))}};function Kh(e,t,n,l,o,a,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,a,i):t.prototype&&t.prototype.isPureReactComponent?!di(n,l)||!di(o,a):!0}function Jh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&yf.enqueueReplaceState(t,t.state,null)}function $l(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=ce({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Tv(e){mu(e)}function Ev(e){console.error(e)}function wv(e){mu(e)}function Tu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ih(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function vf(e,t,n){return n=rl(n),n.tag=3,n.payload={element:null},n.callback=function(){Tu(e,t)},n}function xv(e){return e=rl(e),e.tag=3,e}function Av(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var a=l.value;e.payload=function(){return o(a)},e.callback=function(){Ih(t,n,l)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){Ih(t,n,l),typeof o!="function"&&(fl===null?fl=new Set([this]):fl.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function BC(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,o,!0),n=Xe.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Je===null?Mu():n.alternate===null&&Te===0&&(Te=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===yu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Dc(e,l,o)),!1;case 22:return n.flags|=65536,l===yu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Dc(e,l,o)),!1}throw Error(_(435,n.tag))}return Dc(e,l,o),Mu(),!1}if(Y)return t=Xe.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==af&&(e=Error(_(422),{cause:l}),hi(qt(e,n)))):(l!==af&&(t=Error(_(423),{cause:l}),hi(qt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=qt(l,n),o=vf(e.stateNode,l,o),Ec(e,o),Te!==4&&(Te=2)),!1;var a=Error(_(520),{cause:l});if(a=qt(a,n),ui===null?ui=[a]:ui.push(a),Te!==4&&(Te=2),t===null)return!0;l=qt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=vf(n.stateNode,l,e),Ec(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(fl===null||!fl.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,o=xv(o),Av(o,e,n,l),Ec(n,o),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mm=Error(_(461)),Ne=!1;function Me(e,t,n,l){t.child=e===null?Vy(t,null,n,l):Fl(t,e.child,n,l)}function Fh(e,t,n,l,o){n=n.render;var a=t.ref;if("ref"in l){var i={};for(var r in l)r!=="ref"&&(i[r]=l[r])}else i=l;return Jl(t),l=_m(e,t,n,i,a,o),r=Cm(),e!==null&&!Ne?(Sm(e,t,o),Mn(e,t,o)):(Y&&r&&Qu(t),t.flags|=1,Me(e,t,l,o),t.child)}function Ph(e,t,n,l,o){if(e===null){var a=n.type;return typeof a=="function"&&!fm(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Nv(e,t,a,l,o)):(e=Zr(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Dm(e,o)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:di,n(i,l)&&e.ref===t.ref)return Mn(e,t,o)}return t.flags|=1,e=wn(a,l),e.ref=t.ref,e.return=t,t.child=e}function Nv(e,t,n,l,o){if(e!==null){var a=e.memoizedProps;if(di(a,l)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=l=a,Dm(e,o))(e.flags&131072)!==0&&(Ne=!0);else return t.lanes=e.lanes,Mn(e,t,o)}return bf(e,t,n,l,o)}function Rv(e,t,n,l){var o=l.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~a}else l=0,t.child=null;return $h(e,t,a,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jr(t,a!==null?a.cachePool:null),a!==null?Gh(t,a):mf(),ky(t);else return l=t.lanes=536870912,$h(e,t,a!==null?a.baseLanes|n:n,n,l)}else a!==null?(Jr(t,a.cachePool),Gh(t,a),cl(),t.memoizedState=null):(e!==null&&Jr(t,null),mf(),cl());return Me(e,t,o,n),t.child}function ai(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $h(e,t,n,l,o){var a=gm();return a=a===null?null:{parent:Ae._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Jr(t,null),mf(),ky(t),e!==null&&Kl(e,t,l,!0),t.childLanes=o,null}function Pr(e,t){return t=Iu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wh(e,t,n){return Fl(t,e.child,null,n),e=Pr(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function YC(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Y){if(l.mode==="hidden")return e=Pr(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},ai(null,e);if(df(t),(e=de)?(e=R0(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=Uy(e),n.return=t,t.child=n,Le=t,de=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Pr(t,l)}var a=e.memoizedState;if(a!==null){var i=a.dehydrated;if(df(t),o)if(t.flags&256)t.flags&=-257,t=Wh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(_(558));else if(Ne||Kl(e,t,n,!1),o=(n&e.childLanes)!==0,Ne||o){if(yl.current===null){if(l=se,l!==null&&(i=ay(l,n),i!==0&&i!==a.retryLane))throw a.retryLane=i,lo(e,i),st(l,e,i),Mm;Mu()}t=Wh(e,t,n)}else e=a.treeContext,de=Bt(i.nextSibling),Le=t,Y=!0,il=null,Lt=!1,e!==null&&qy(t,e),t=Pr(t,l),t.flags|=134221824;return t}return e=wn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Oo(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(_(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bf(e,t,n,l,o){return Jl(t),n=_m(e,t,n,l,void 0,o),l=Cm(),e!==null&&!Ne?(Sm(e,t,o),Mn(e,t,o)):(Y&&l&&Qu(t),t.flags|=1,Me(e,t,n,o),t.child)}function ep(e,t,n,l,o,a){return Jl(t),t.updateQueue=null,n=Zy(t,l,n,o),Xy(e),l=Cm(),e!==null&&!Ne?(Sm(e,t,a),Mn(e,t,a)):(Y&&l&&Qu(t),t.flags|=1,Me(e,t,n,a),t.child)}function tp(e,t,n,l,o){if(Jl(t),t.stateNode===null){var a=Vo,i=n.contextType;typeof i=="object"&&i!==null&&(a=Ve(i)),a=new n(l,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=yf,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=l,a.state=t.memoizedState,a.refs={},pm(t),i=n.contextType,a.context=typeof i=="object"&&i!==null?Ve(i):Vo,a.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(xc(t,n,i,l),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(i=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),i!==a.state&&yf.enqueueReplaceState(a,a.state,null),li(t,l,a,o),ni(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=$l(n,r);a.props=u;var s=a.context,m=n.contextType;i=Vo,typeof m=="object"&&m!==null&&(i=Ve(m));var f=n.getDerivedStateFromProps;m=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,m||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||s!==i)&&Jh(t,a,l,i),Pn=!1;var c=t.memoizedState;a.state=c,li(t,l,a,o),ni(),s=t.memoizedState,r||c!==s||Pn?(typeof f=="function"&&(xc(t,n,f,l),s=t.memoizedState),(u=Pn||Kh(t,n,u,l,c,s,i))?(m||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=s),a.props=l,a.state=s,a.context=i,l=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{a=t.stateNode,cf(e,t),i=t.memoizedProps,m=$l(n,i),a.props=m,f=t.pendingProps,c=a.context,s=n.contextType,u=Vo,typeof s=="object"&&s!==null&&(u=Ve(s)),r=n.getDerivedStateFromProps,(s=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==f||c!==u)&&Jh(t,a,l,u),Pn=!1,c=t.memoizedState,a.state=c,li(t,l,a,o),ni();var g=t.memoizedState;i!==f||c!==g||Pn||e!==null&&e.dependencies!==null&&pu(e.dependencies)?(typeof r=="function"&&(xc(t,n,r,l),g=t.memoizedState),(m=Pn||Kh(t,n,m,l,c,g,u)||e!==null&&e.dependencies!==null&&pu(e.dependencies))?(s||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(l,g,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(l,g,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=g),a.props=l,a.state=g,a.context=u,l=m):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),l=!1)}return a=l,Oo(e,t),l=(t.flags&128)!==0,a||l?(a=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&l?(t.child=Fl(t,e.child,null,o),t.child=Fl(t,null,n,o)):Me(e,t,n,o),t.memoizedState=a.state,e=t.child):e=Mn(e,t,o),e}function np(e,t,n,l){return Zl(),t.flags|=256,Me(e,t,n,l),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cf(e){return{baseLanes:e,cachePool:By()}}function Sf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bt),e}function Ov(e,t,n){var l=t.pendingProps,o=!1,a=(t.flags&128)!==0,i;if((i=a)||(i=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),i&&(o=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Y){if(o?sl(t):cl(),(e=de)?(e=R0(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},n=Uy(e),n.return=t,t.child=n,Le=t,de=null)):e=null,e===null)throw pl(t);return Xm(e)?t.lanes=32:t.lanes=536870912,null}return a=l.children,l=l.fallback,o?(cl(),o=t.mode,a=Iu({mode:"hidden",children:a},o),l=jl(l,o,n,null),a.return=t,l.return=t,a.sibling=l,t.child=a,l=t.child,l.memoizedState=Cf(n),l.childLanes=Sf(e,i,n),t.memoizedState=_f,ai(null,l)):(sl(t),zm(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return GC(e,t,a,i,l,u,r,n)}return o?(cl(),o=l.fallback,a=t.mode,r=e.child,u=r.sibling,l=wn(r,{mode:"hidden",children:l.children}),l.subtreeFlags=r.subtreeFlags&1206910976,u!==null?o=wn(u,o):(o=jl(o,a,n,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,ai(null,l),l=t.child,o=e.child.memoizedState,o===null?o=Cf(n):(a=o.cachePool,a!==null?(r=Ae._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=By(),o={baseLanes:o.baseLanes|n,cachePool:a}),l.memoizedState=o,l.childLanes=Sf(e,i,n),t.memoizedState=_f,ai(e.child,l)):(sl(t),n=e.child,e=n.sibling,n=wn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function zm(e,t){return t=Iu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Iu(e,t){return e=ut(22,e,null,t),e.lanes=0,e}function zr(e,t,n){return Fl(t,e.child,null,n),e=zm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function GC(e,t,n,l,o,a,i,r){if(n)return t.flags&256?(sl(t),t.flags&=-257,zr(e,t,r)):t.memoizedState!==null?(cl(),t.child=e.child,t.flags|=128,null):(cl(),a=o.fallback,i=t.mode,o=Iu({mode:"visible",children:o.children},i),a=jl(a,i,r,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,Fl(t,e.child,null,r),o=t.child,o.memoizedState=Cf(r),o.childLanes=Sf(e,l,r),t.memoizedState=_f,ai(null,o));if(sl(t),Xm(a)){if(l=a.nextSibling&&a.nextSibling.dataset,l)var u=l.dgst;return l=u,l!==""&&(o=Error(_(419)),o.stack="",o.digest=l,hi({value:o,source:null,stack:null})),zr(e,t,r)}if(Ne||Kl(e,t,r,!1),l=(r&e.childLanes)!==0,Ne||l){if(yl.current!==null)return zr(e,t,r);if(l=se,l!==null&&(o=ay(l,r),o!==0&&o!==i.retryLane))throw i.retryLane=o,lo(e,o),st(l,e,o),Mm;return Kf(a)||Mu(),zr(e,t,r)}return Kf(a)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,de=Bt(a.nextSibling),Le=t,Y=!0,il=null,Lt=!1,e!==null&&qy(t,e),t=zm(t,o.children),t.flags|=134221824,t)}function lp(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Kr(e.return,t,n)}function op(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&bu(n)===null&&(t=e),e=e.sibling}return t}function Dr(e,t,n,l,o,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=l,i.tail=n,i.tailMode=o,i.treeForkCount=a)}function Ac(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Tf(e,t,n){var l=t.pendingProps,o=l.revealOrder,a=l.tail;l=l.children;var i=Qe.current;if(t.flags&128)return yi(t,i),null;var r=(i&2)!==0;if(r?(i=i&1|2,t.flags|=128):i&=1,yi(t,i),o==="backwards"&&e!==null?(Ac(e),Me(e,t,l,n),Ac(e)):Me(e,t,l,n),l=Y?gi:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(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(o){case"backwards":n=op(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null,Ac(t)),Dr(t,!0,o,null,a,l);break;case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&bu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Dr(t,!0,n,null,a,l);break;case"together":Dr(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=op(t.child),n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Dr(t,!1,o,n,a,l)}return t.child}function ap(e,t,n){var l=t.pendingProps;return tl(t,t.type,l.value),Me(e,t,l.children,n),t.child}function Mn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dm(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pu(e)))}function VC(e,t,n){switch(t.tag){case 3:uu(t,t.stateNode.containerInfo),tl(t,Ae,e.memoizedState.cache),Zl();break;case 27:case 5:Ic(t);break;case 4:uu(t,t.stateNode.containerInfo);break;case 10:tl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,df(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return sl(t),t.flags|=128,null;l=Kl(e,t,n,!1);var o=t.child.childLanes;return l||(n&o)!==0?Ov(e,t,n):(sl(t),e=Mn(e,t,n),e!==null?e.sibling:null)}sl(t);break;case 19:if(t.flags&128)return Tf(e,t,n);if(o=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(Kl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return Tf(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),yi(t,Qe.current),l)break;return null;case 22:return t.lanes=0,Rv(e,t,n,t.pendingProps);case 24:tl(t,Ae,e.memoizedState.cache)}return Mn(e,t,n)}function Mv(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ne=!0;else{if(!Dm(e,n)&&(t.flags&128)===0)return Ne=!1,VC(e,t,n);Ne=(e.flags&131072)!==0}else Ne=!1,Y&&(t.flags&1048576)!==0&&Hy(t,gi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ll(t.elementType),t.type=e,typeof e=="function")fm(e)?(l=$l(e,l),t.tag=1,t=tp(null,t,e,l,n)):(t.tag=0,t=bf(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===$f){t.tag=11,t=Fh(null,t,e,l,n);break e}else if(o===Wf){t.tag=14,t=Ph(null,t,e,l,n);break e}else if(o===on){t.tag=10,t.type=e,t=ap(null,t,n);break e}}throw t=Kc(e)||e,Error(_(306,t,""))}}return t;case 0:return bf(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=$l(l,t.pendingProps),tp(e,t,l,o,n);case 3:e:{if(uu(t,t.stateNode.containerInfo),e===null)throw Error(_(387));l=t.pendingProps;var a=t.memoizedState;o=a.element,cf(e,t),li(t,l,null,n);var i=t.memoizedState;if(l=i.cache,tl(t,Ae,l),l!==a.cache&&uf(t,[Ae],n,!0),ni(),l=i.element,a.isDehydrated)if(a={element:l,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=np(e,t,l,n);break e}else if(l!==o){o=qt(Error(_(424)),t),hi(o),t=np(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,de=Bt(e.firstChild),Le=t,Y=!0,il=null,Lt=!0,n=Vy(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Zl(),l===o){t=Mn(e,t,n);break e}Me(e,t,l,n)}t=t.child}return t;case 26:return Oo(e,t),e===null?(n=zp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Y||(t.stateNode=_0(t.type,t.pendingProps,al.current,t)):t.memoizedState=zp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ic(t),e===null&&Y&&(l=t.stateNode=O0(t.type,t.pendingProps,al.current),Le=t,Lt=!0,o=de,Cl(t.type)?(Jf=o,de=Bt(l.firstChild)):de=o),Me(e,t,t.pendingProps.children,n),Oo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Y&&((o=l=de)&&(l=DS(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,Le=t,de=Bt(l.firstChild),Lt=!1,o=!0):o=!1),o||pl(t)),Ic(t),o=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,l=a.children,kf(o,a)?l=null:i!==null&&kf(o,i)&&(t.flags|=32),t.memoizedState!==null&&(o=_m(e,t,OC,null,null,n),fa._currentValue=o),Oo(e,t),Me(e,t,l,n),t.child;case 6:return e===null&&Y&&((e=n=de)&&(n=US(n,t.pendingProps,Lt),n!==null?(t.stateNode=n,Le=t,de=null,e=!0):e=!1),e||pl(t)),null;case 13:return Ov(e,t,n);case 4:return uu(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fl(t,null,l,n):Me(e,t,l,n),t.child;case 11:return Fh(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,Oo(e,t),Me(e,t,l,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:return ap(e,t,n);case 9:return o=t.type._context,l=t.pendingProps.children,Jl(t),o=Ve(o),l=l(o),t.flags|=1,Me(e,t,l,n),t.child;case 14:return Ph(e,t,t.type,t.pendingProps,n);case 15:return Nv(e,t,t.type,t.pendingProps,n);case 19:return Tf(e,t,n);case 31:return YC(e,t,n);case 22:return Rv(e,t,n,t.pendingProps);case 24:return Jl(t),l=Ve(Ae),e===null?(o=gm(),o===null&&(o=se,a=dm(),o.pooledCache=a,a.refCount++,a!==null&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:l,cache:o},pm(t),tl(t,Ae,o)):((e.lanes&n)!==0&&(cf(e,t),li(t,null,null,n),ni()),o=e.memoizedState,a=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),tl(t,Ae,l)):(l=a.cache,tl(t,Ae,l),l!==o.cache&&uf(t,[Ae],n,!0))),Me(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:Y&&Qu(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:Oo(e,t),Me(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(_(156,t.tag))}function Sn(e){e.flags|=4}function Nc(e,t,n,l,o){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Hp(t,l):Hp(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(i0())e.flags|=8192;else throw kl=yu,hm}else e.flags&=-16777217}function ip(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!U0(t))if(i0())e.flags|=8192;else throw kl=yu,hm}function Ur(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ny():536870912,e.lanes|=t,aa|=t)}function ja(e,t){if(!Y)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&1206910976,l|=o.flags&1206910976,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function jC(e,t,n){var l=t.pendingProps;switch(mm(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return me(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),xn(Ae),ta(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(No(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tc())),me(t),null;case 26:var o=t.type,a=t.memoizedState;return e===null?(Sn(t),a!==null?(me(t),ip(t,a)):(me(t),Nc(t,o,null,l,n))):a?a!==e.memoizedState?(Sn(t),me(t),ip(t,a)):(me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),me(t),Nc(t,o,e,l,n)),null;case 27:if(su(t),n=al.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(_(166));return me(t),t.subtreeFlags&=-33554433,null}e=sn.current,No(t)?Dh(t,e):(e=O0(o,l,n),t.stateNode=e,Sn(t))}return me(t),t.subtreeFlags&=-33554433,null;case 5:if(su(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(_(166));return me(t),t.subtreeFlags&=-33554433,null}if(a=sn.current,No(t))Dh(t,a);else{var i=Ci(al.current);switch(a){case 1:a=i.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=i.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":a=i.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof l.is=="string"?i.createElement("select",{is:l.is}):i.createElement("select"),l.multiple?a.multiple=!0:l.size&&(a.size=l.size);break;default:a=typeof l.is=="string"?i.createElement(o,{is:l.is}):i.createElement(o)}}a[Ge]=t,a[ft]=l;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)a.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=a;e:switch(ke(a,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return me(t),t.subtreeFlags&=-33554433,Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(_(166));if(e=al.current,No(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=Le,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||v0(e.nodeValue,n)),e||pl(t,!0)}else e=Ci(e).createTextNode(l),e[Ge]=t,t.stateNode=e}return me(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=No(t),n!==null){if(e===null){if(!l)throw Error(_(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(557));e[Ge]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;me(t),e=!1}else n=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(_(558))}return me(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=No(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(_(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(_(317));o[Ge]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;me(t),o=!1}else o=Tc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ur(t,t.updateQueue),me(t),null);case 4:return ta(),e===null&&jm(t.stateNode.containerInfo),t.flags|=67108864,me(t),null;case 10:return xn(t.type),me(t),null;case 19:if(vm(t),l=t.memoizedState,l===null)return me(t),null;if(o=(t.flags&128)!==0,a=l.rendering,a===null)if(o)ja(l,!1);else{if(Te!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=bu(e),a!==null){for(t.flags|=128,ja(l,!1),e=a.updateQueue,t.updateQueue=e,Ur(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Dy(n,e),n=n.sibling;return yi(t,Qe.current&1|2),Y&&Tn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&_t()>Ru&&(t.flags|=128,o=!0,ja(l,!1),t.lanes=4194304)}else{if(!o)if(e=bu(a),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ur(t,e),ja(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!a.alternate&&!Y)return me(t),null}else 2*_t()-l.renderingStartTime>Ru&&n!==536870912&&(t.flags|=128,o=!0,ja(l,!1),t.lanes=4194304);l.isBackwards?(a.sibling=t.child,t.child=a):(e=l.last,e!==null?e.sibling=a:t.child=a,l.last=a)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=_t(),e.sibling=null,a=Qe.current,a=o?a&1|2:a&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||Y?yi(t,a):(n=a,ge(Xe,t),ge(Qe,n),Je===null&&(Je=t)),Y&&Tn(t,l.treeForkCount),e}return me(t),null;case 22:case 23:return yt(t),ym(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),n=t.updateQueue,n!==null&&Ur(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&je(Ql),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xn(Ae),me(t),null;case 25:return null;case 30:return t.flags|=33554432,me(t),null}throw Error(_(156,t.tag))}function QC(e,t){switch(mm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xn(Ae),ta(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return su(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(_(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vm(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ta(),null;case 10:return xn(t.type),null;case 22:case 23:return yt(t),ym(),e!==null&&je(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xn(Ae),null;case 25:return null;default:return null}}function zv(e,t){switch(mm(t),t.tag){case 3:xn(Ae),ta();break;case 26:case 27:case 5:su(t);break;case 4:ta();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:vm(t);break;case 10:xn(t.type);break;case 22:case 23:yt(t),ym(),e!==null&&je(Ql);break;case 24:xn(Ae)}}function Ui(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var a=n.create,i=n.inst;l=a(),i.destroy=l}n=n.next}while(n!==o)}}catch(r){te(t,t.return,r)}}function vl(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var a=o.next;l=a;do{if((l.tag&e)===e){var i=l.inst,r=i.destroy;if(r!==void 0){i.destroy=void 0,o=t;var u=n,s=r;try{s()}catch(m){te(o,u,m)}}}l=l.next}while(l!==a)}}catch(m){te(t,t.return,m)}}function Dv(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qy(t,n)}catch(l){te(e,e.return,l)}}}function Uv(e,t,n){n.props=$l(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){te(e,t,l)}}function nn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var o=e.stateNode,a=Nn(e.memoizedProps,o);(o.ref===null||o.ref.name!==a)&&(o.ref=E0(a)),l=o.ref;break;case 7:if(e.stateNode===null){var i=new wt(e);ct(e.child,!1,MS,i,void 0,void 0),e.stateNode=i}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(r){te(e,t,r)}}function Ye(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){te(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){te(e,t,o)}else n.current=null}function Eu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)N0(e.stateNode,t[n])}function rp(e){for(var t=e.return;t!==null&&(Hm(t)&&N0(e.stateNode,t.stateNode),!Um(t));)t=t.return}function ii(e){for(var t=e.return;t!==null&&(Hm(t)&&zS(e.stateNode,t.stateNode),!Um(t));)t=t.return}function Um(e){return e.tag===5||e.tag===3||e.tag===27}function Hm(e){return e&&e.tag===7&&e.stateNode!==null}function Ef(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){te(e,e.return,o)}}function Rc(e,t,n){try{var l=e.stateNode;dS(l,e.type,n,t),l[ft]=t}catch(o){te(e,e.return,o)}}function Hv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cl(e.type)||e.tag===4}function Oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(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&&Cl(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 wf(e,t,n,l){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(o,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(o),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an)),Eu(e,l),J=!0;else if(o!==4&&(o===27&&(Eu(e,l),l=null,Cl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(wf(e,t,n,l),e=e.sibling;e!==null;)wf(e,t,n,l),e=e.sibling}function wu(e,t,n,l){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?n.insertBefore(o,t):n.appendChild(o),Eu(e,l),J=!0;else if(o!==4&&(o===27&&(Eu(e,l),l=null,Cl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(wu(e,t,n,l),e=e.sibling;e!==null;)wu(e,t,n,l),e=e.sibling}function qv(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ke(t,l,n),t[Ge]=e,t[ft]=n}catch(a){te(e,e.return,a)}}var xu=!1,vt=null;function up(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(xu=!0)}var ln=null;function sp(){var e=ln;return ln=null,e}var rt=0;function ya(e,t,n,l,o){return rt=0,Lv(e.child,t,n,l,o)}function Lv(e,t,n,l,o){for(var a=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(l!==null){var r=Xf(i);l.push(r),r.view&&(a=!0)}else a||Xf(i).view&&(a=!0);xu=!0,C0(i,rt===0?t:t+"_"+rt,n),rt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o||Lv(e.child,t,n,l,o)&&(a=!0));e=e.sibling}return a}function fn(e,t){for(;e!==null;)e.tag===5?S0(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||fn(e.child,t)),e=e.sibling}function $r(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&($r(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(_(544));var n=t.name;t=Un(t.default,t.share),t!=="none"&&(ya(e,n,t,null,!1)||fn(e.child,!1))}e=e.sibling}}function xf(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,o=Nn(l,n),a=Un(l.default,n.paired?l.share:l.enter);a!=="none"?ya(e,o,a,null,!1)?($r(e),n.paired||t||ia(e,l.onEnter)):fn(e.child,!1):$r(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)xf(e,t),e=e.sibling;else $r(e)}function Af(e){if(vt!==null&&vt.size!==0){var t=vt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var o=t.get(l);if(o!==void 0){var a=Un(n.default,n.share);if(a!=="none"&&(ya(e,l,a,null,!1)?(a=e.stateNode,o.paired=a,a.paired=o,ia(e,n.onShare)):fn(e.child,!1)),t.delete(l),t.size===0)break}}}Af(e)}e=e.sibling}}}function Nf(e){if(e.tag===30){var t=e.memoizedProps,n=Nn(t,e.stateNode),l=vt!==null?vt.get(n):void 0,o=Un(t.default,l!==void 0?t.share:t.exit);o!=="none"&&(ya(e,n,o,null,!1)?l!==void 0?(o=e.stateNode,l.paired=o,o.paired=l,vt.delete(n),ia(e,t.onShare)):ia(e,t.onExit):fn(e.child,!1)),vt!==null&&Af(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Nf(e),e=e.sibling;else vt!==null&&Af(e)}function Bv(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Nn(t,e.stateNode);t=Un(t.default,t.update),e.flags&=-5,t!=="none"&&ya(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Bv(e);e=e.sibling}}function Rf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,fn(e.child,!1))}Rf(e)}e=e.sibling}}function Wr(e){if(e.tag===30)e.stateNode.paired=null,fn(e.child,!1),Rf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Wr(e),e=e.sibling;else Rf(e)}function Yv(e){for(e=e.child;e!==null;)e.tag===30?fn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Yv(e),e=e.sibling}function qm(e,t,n,l,o,a,i){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&rt<a.length){var s=a[rt],m=Xf(u);(s.view||m.view)&&(r=!0);var f;if(f=(e.flags&4)===0)if(m.clip)f=!0;else{f=s.rect;var c=m.rect;f=f.y!==c.y||f.x!==c.x||f.height!==c.height||f.width!==c.width}f&&(e.flags|=4),m.abs?m=!s.abs:(s=s.rect,m=m.rect,m=s.height!==m.height||s.width!==m.width),m&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&C0(u,rt===0?n:n+"_"+rt,o),r&&(e.flags&4)!==0||(ln===null&&(ln=[]),ln.push(u,rt===0?l:l+"_"+rt,t.memoizedProps)),rt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:qm(e,t.child,n,l,o,a,i)&&(r=!0));t=t.sibling}return r}function Gv(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,o=Nn(n,l),a=Un(n.default,n.update);if(t){l=l.clones;var i=l===null?null:l.map(bS)}else i=e.memoizedState,e.memoizedState=null;l=e;var r=e.child;rt=0,o=qm(l,r,o,o,a,i,!1),(e.flags&4)!==0&&o&&(t||ia(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Gv(e,t);e=e.sibling}}var Ue=!1,P=!1,Wt=!1,Mc=!1,cp=typeof WeakSet=="function"?WeakSet:Set,He=null,en=!1,Fa=!1,Au=!1,Of=!1;function kC(e,t,n){if(e=e.containerInfo,jf=ma,e=wy(e),um(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var r=0,u=-1,s=-1,m=0,f=0,c=e,g=null;t:for(;;){for(var v;c!==l||a!==0&&c.nodeType!==3||(u=r+a),c!==i||o!==0&&c.nodeType!==3||(s=r+o),c.nodeType===3&&(r+=c.nodeValue.length),(v=c.firstChild)!==null;)g=c,c=v;for(;;){if(c===e)break t;if(g===l&&++m===a&&(u=r),g===i&&++f===o&&(s=r),(v=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=v}l=u===-1||s===-1?null:{start:u,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(Qf={focusedElem:e,selectionRange:l},ma=!1,n=(n&335544064)===n,He=t,t=n?9270:1024;He!==null;){if(e=He,n&&(l=e.deletions,l!==null))for(a=0;a<l.length;a++)n&&Nf(l[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&up(e),Hr(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Nf(l),Hr(n);continue}else if(l!==null&&l.memoizedState!==null){n&&up(e),Hr(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,He=l):(n&&Bv(e),Hr(n))}}vt=null}function Hr(e){for(;He!==null;){var t=He,n=e,l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&l!==null){n=void 0,o=l.memoizedProps,l=l.memoizedState;var a=t.stateNode;try{var i=$l(t.type,o);n=a.getSnapshotBeforeUpdate(i,l),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){te(t,t.return,r)}}break;case 3:if((o&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)Zf(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Zf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=Nn(l.memoizedProps,l.stateNode),o=t.memoizedProps,o=Un(o.default,o.update),o!=="none"&&ya(l,n,o,l.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(_(163))}if(l=t.sibling,l!==null){l.return=t.return,He=l;break}He=t.return}}function Vv(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:tn(e,n),l&4&&Ui(5,n);break;case 1:if(tn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){te(n,n.return,i)}else{var o=$l(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){te(n,n.return,i)}}l&64&&Dv(n),l&512&&nn(n,n.return);break;case 3:if(tn(e,n),l&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{Qy(e,t)}catch(i){te(n,n.return,i)}}break;case 27:t===null&&l&4&&qv(n);case 26:case 5:tn(e,n),t===null&&l&4&&Ef(n),l&512&&nn(n,n.return);break;case 12:tn(e,n);break;case 31:tn(e,n),l&4&&Xv(e,n);break;case 13:tn(e,n),l&4&&Zv(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nS.bind(null,n),HS(e,n))));break;case 22:if(l=n.memoizedState!==null||Ue,!l){var a=t!==null&&t.memoizedState!==null||P;t=Ue,o=P,Ue=l,(P=a)&&!o?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),kt(e,n,l)):tn(e,n),Ue=t,P=o}break;case 30:tn(e,n),l&512&&nn(n,n.return);break;case 7:l&512&&nn(n,n.return);default:tn(e,n)}}function Mf(e,t){for(e=e.child;e!==null;)jv(e,t),e=e.sibling}function jv(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var o=e.stateNode,a=e.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null;o.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(u){te(e,e.return,u)}zf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,J=!0}catch(u){te(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?xp(r,!0):xp(e.stateNode,!1)}catch(u){te(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Mf(e,t);break;default:Mf(e,t)}}function zf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:jv(n,l);break e;case 22:n.memoizedState===null&&zf(n,l);break e;default:zf(n,l)}}e=e.sibling}}function Qv(e){var t=e.alternate;t!==null&&(e.alternate=null,Qv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Lu(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 ye=null,at=!1;function Qt(e,t,n){for(n=n.child;n!==null;)kv(e,t,n),n=n.sibling}function kv(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Ai,n)}catch{}switch(n.tag){case 26:P||Ye(n,t),Qt(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!P&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:P||Ye(n,t),ii(n);var l=ye,o=at;Cl(n.type)&&(ye=n.stateNode,at=!1),Qt(e,t,n),M0(n.stateNode,n.type,n.memoizedProps),ye=l,at=o;break;case 5:P||Ye(n,t),ii(n);case 6:if(n.tag===6&&ii(n),l=ye,o=at,ye=null,Qt(e,t,n),ye=l,at=o,ye!==null)if(at)try{(ye.nodeType===9?ye.body:ye.nodeName==="HTML"?ye.ownerDocument.body:ye).removeChild(n.stateNode),J=!0}catch(a){te(n,t,a)}else try{ye.removeChild(n.stateNode),J=!0}catch(a){te(n,t,a)}break;case 18:ye!==null&&(at?(e=ye,wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),da(e)):wp(ye,n.stateNode));break;case 4:l=ye,o=at,ye=n.stateNode.containerInfo,at=!0,Qt(e,t,n),ye=l,at=o;break;case 0:case 11:case 14:case 15:vl(2,n,t),P||vl(4,n,t),Qt(e,t,n);break;case 1:P||(Ye(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Uv(n,t,l)),Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:P=(l=P)||n.memoizedState!==null,Qt(e,t,n),P=l;break;case 30:Ye(n,t),Qt(e,t,n);break;case 7:P||Ye(n,t),Qt(e,t,n);break;default:Qt(e,t,n)}}function Xv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{da(e)}catch(n){te(t,t.return,n)}}}function Zv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{da(e)}catch(n){te(t,t.return,n)}}function XC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cp),t;default:throw Error(_(435,e.tag))}}function qr(e,t){var n=XC(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=lS.bind(null,e,l);l.then(o,o)}})}function We(e,t,n){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var a=l[o],i=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(Cl(u.type)){ye=u.stateNode,at=!1;break e}break;case 5:ye=u.stateNode,at=!1;break e;case 3:case 4:ye=u.stateNode.containerInfo,at=!0;break e}u=u.return}if(ye===null)throw Error(_(160));kv(i,r,a),ye=null,at=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kv(t,e,n),t=t.sibling}var Xt=null;function Kv(e,t,n){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var a=0;a<l.length;a++){var i=l[a];i.ref.impl=i.nextImpl}We(t,e,n),et(e),o&4&&(vl(3,e,e.return),Ui(3,e),vl(5,e,e.return));break;case 1:We(t,e,n),et(e),o&512&&(P||l===null||Ye(l,l.return)),o&64&&Ue&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=Xt,We(t,e,n),et(e),o&512&&(P||l===null||Ye(l,l.return)),o&4)if(o=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(Ue)e.stateNode=_0(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,o=a.ownerDocument||a;t:switch(t){case"title":l=o.getElementsByTagName("title")[0],(!l||l[Oi]||l[Ge]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=o.createElement(t),o.head.insertBefore(l,o.querySelector("head > title"))),ke(l,t,n),l[Ge]=e,qe(l),t=l;break e;case"link":if(a=Up("link","href",o).get(t+(n.href||""))){for(i=0;i<a.length;i++)if(l=a[i],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(i,1);break t}}l=o.createElement(t),ke(l,t,n),o.head.appendChild(l);break;case"meta":if(a=Up("meta","content",o).get(t+(n.content||""))){for(i=0;i<a.length;i++)if(l=a[i],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(i,1);break t}}l=o.createElement(t),ke(l,t,n),o.head.appendChild(l);break;default:throw Error(_(468,t))}l[Ge]=e,qe(l),t=l}e.stateNode=t}else Ue||If(a,e.type,e.stateNode);else e.stateNode=Dp(a,n,e.memoizedProps);else o!==n?(o===null?(t=l.stateNode,t===null||P||t.parentNode.removeChild(t)):o.count--,n===null?Ue||If(a,e.type,e.stateNode):Dp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Rc(e,e.memoizedProps,l.memoizedProps);break;case 27:We(t,e,n),et(e),o&512&&(P||l===null||Ye(l,l.return)),l!==null&&o&4&&Rc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(a=Wt,Wt=!1,We(t,e,n),Wt=a,et(e),o&512&&(P||l===null||Ye(l,l.return)),e.flags&32){t=e.stateNode;try{la(t,""),J=!0}catch(m){te(e,e.return,m)}}o&4&&e.stateNode!=null&&(t=e.memoizedProps,Rc(e,t,l!==null?l.memoizedProps:t)),o&1024&&(Mc=!0);break;case 6:if(We(t,e,n),et(e),o&4){if(e.stateNode===null)throw Error(_(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,J=!0}catch(m){te(e,e.return,m)}}break;case 3:if(J=!1,lu=null,a=Xt,Xt=Si(t.containerInfo),We(t,e,n),Xt=a,et(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{da(t.containerInfo)}catch(m){te(e,e.return,m)}Mc&&(Mc=!1,Jv(e)),J=!1;break;case 4:o=Wt,Wt=Ue,l=ph(),a=Xt,Xt=Si(e.stateNode.containerInfo),We(t,e,n),et(e),Xt=a,J&&Fa&&(Au=!0),J=l,Wt=o;break;case 12:We(t,e,n),et(e);break;case 31:We(t,e,n),et(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 13:We(t,e,n),et(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Fu=_t()),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 22:a=e.memoizedState!==null,i=l!==null&&l.memoizedState!==null;var r=Ue,u=P,s=Wt;Ue=r||a,Wt=s||a,P=u||i,We(t,e,n),P=u,Wt=s,Ue=r,et(e),o&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||l===null||i||Ue||P||(t=i||P,n=Ue,l=P,Ue=a||Ue,P=t,In(e,2),Ue=n,P=l),!a&&Wt||Mf(e,a)),o&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,qr(e,n))));break;case 19:We(t,e,n),et(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,qr(e,t)));break;case 30:o&512&&(P||l===null||Ye(l,l.return)),o=ph(),a=Fa,i=(n&335544064)===n,r=e.memoizedProps,Fa=i&&Un(r.default,r.update)!=="none",We(t,e,n),et(e),i&&l!==null&&J&&(e.flags|=4),Fa=a,J=o;break;case 21:break;case 7:o&512&&(P||l===null||Ye(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:We(t,e,n),et(e)}}function et(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(Hv(l)){n=l;break}l=l.return}l=null;for(var o=e.return;o!==null;){if(Hm(o)){var a=o.stateNode;l===null?l=[a]:l.push(a)}if(Um(o))break;o=o.return}var i=l;if(n==null)throw Error(_(160));switch(n.tag){case 27:var r=n.stateNode,u=Oc(e);wu(e,u,r,i);break;case 5:var s=n.stateNode;n.flags&32&&(la(s,""),n.flags&=-33);var m=Oc(e);wu(e,m,s,i);break;case 3:case 4:var f=n.stateNode.containerInfo,c=Oc(e);wf(e,c,f,i);break;default:throw Error(_(161))}}catch(g){te(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jv(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ma=!0,t.reset(),ma=!1),e=e.sibling}}function Ro(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Iv(t,e),t=t.sibling;else Gv(t,!1)}function Iv(e,t){var n=e.alternate;if(n===null)xf(e,!1);else switch(e.tag){case 3:if(Of=en=!1,sp(),Ro(t,e),!en&&!Au){if(e=ln,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var o=e[l+1];S0(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Of=!0}ln=null;break;case 5:Ro(t,e);break;case 4:l=en,en=!1,Ro(t,e),en&&(Au=!0),en=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?xf(e,!1):Ro(t,e));break;case 30:l=en,o=sp(),en=!1,Ro(t,e),en&&(e.flags|=4);var a=e.memoizedProps,i=e.stateNode;t=Nn(a,i),i=Nn(n.memoizedProps,i);var r=Un(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,rt=0,t=qm(e,n,t,i,r,a,!0),rt!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(ia(e,e.memoizedProps.onUpdate),ln=o):o!==null&&(o.push.apply(o,ln),ln=o),en=(e.flags&32)!==0?!0:l;break;default:Ro(t,e)}}function tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Vv(e,t.alternate,t),t=t.sibling}function In(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),In(n,l);break;case 1:Ye(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&Uv(n,n.return,o),In(n,l);break;case 27:(l&2)!==0&&M0(n.stateNode,n.type,n.memoizedProps);case 5:Ye(n,n.return),n.tag!==5&&n.tag!==27||ii(n),In(n,l);break;case 6:ii(n);break;case 26:Ye(n,n.return),o=n.stateNode,n.memoizedState!==null||o===null||P||o.parentNode.removeChild(o),In(n,l);break;case 22:n.memoizedState===null&&In(n,l);break;case 30:Ye(n,n.return),In(n,l);break;case 7:Ye(n,n.return);default:In(n,l)}e=e.sibling}}function kt(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,o=e,a=t,i=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:kt(o,a,n),Ui(4,a);break;case 1:if(kt(o,a,n),l=a,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(m){te(l,l.return,m)}if(l=a,o=l.updateQueue,o!==null){var u=l.stateNode;try{var s=o.shared.hiddenCallbacks;if(s!==null)for(o.shared.hiddenCallbacks=null,o=0;o<s.length;o++)jy(s[o],u)}catch(m){te(l,l.return,m)}}r&&i&64&&Dv(a),nn(a,a.return);break;case 27:(n&2)!==0&&qv(a);case 5:a.tag!==5&&a.tag!==27||rp(a),kt(o,a,n),r&&l===null&&i&4&&Ef(a),nn(a,a.return);break;case 6:rp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||Ue||If(Si(u.ownerDocument),a.type,u),kt(o,a,n),r&&l===null&&i&4&&Ef(a),nn(a,a.return);break;case 12:kt(o,a,n);break;case 31:kt(o,a,n),r&&i&4&&Xv(o,a);break;case 13:kt(o,a,n),r&&i&4&&Zv(o,a);break;case 22:a.memoizedState===null&&kt(o,a,n),nn(a,a.return);break;case 30:kt(o,a,n),nn(a,a.return);break;case 7:nn(a,a.return);default:kt(o,a,n)}t=t.sibling}}function Lm(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&&zi(n))}function Bm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zi(e))}function Mt(e,t,n,l){var o=(n&335544064)===n;if(t.subtreeFlags&(o?10262:10256))for(t=t.child;t!==null;)Fv(e,t,n,l),t=t.sibling;else o&&Yv(t)}function Fv(e,t,n,l){var o=(n&335544064)===n;o&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Wr(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,n,l),a&2048&&Ui(9,t);break;case 1:Mt(e,t,n,l);break;case 3:Mt(e,t,n,l),o&&Of&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&zi(a)));break;case 12:if(a&2048){Mt(e,t,n,l),a=t.stateNode;try{var i=t.memoizedProps,r=i.id,u=i.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(s){te(t,t.return,s)}}else Mt(e,t,n,l);break;case 31:Mt(e,t,n,l);break;case 13:Mt(e,t,n,l);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?(o&&r!==null&&r.memoizedState===null&&Wr(r),i._visibility&2?Mt(e,t,n,l):ri(e,t)):(o&&r!==null&&r.memoizedState!==null&&Wr(t),i._visibility&2?Mt(e,t,n,l):(i._visibility|=2,Mo(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Lm(r,t);break;case 24:Mt(e,t,n,l),a&2048&&Bm(t.alternate,t);break;case 30:o&&(a=t.alternate,a!==null&&(fn(a.child,!0),fn(t.child,!0))),Mt(e,t,n,l);break;default:Mt(e,t,n,l)}}function Mo(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,i=t,r=n,u=l,s=i.flags;switch(i.tag){case 0:case 11:case 15:Mo(a,i,r,u,o),Ui(8,i);break;case 23:break;case 22:var m=i.stateNode;i.memoizedState!==null?m._visibility&2?Mo(a,i,r,u,o):ri(a,i):(m._visibility|=2,Mo(a,i,r,u,o)),o&&s&2048&&Lm(i.alternate,i);break;case 24:Mo(a,i,r,u,o),o&&s&2048&&Bm(i.alternate,i);break;default:Mo(a,i,r,u,o)}t=t.sibling}}function ri(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:ri(n,l),o&2048&&Lm(l.alternate,l);break;case 24:ri(n,l),o&2048&&Bm(l.alternate,l);break;default:ri(n,l)}t=t.sibling}}var Bl=8192;function Hl(e,t,n){if(e.subtreeFlags&Bl)for(e=e.child;e!==null;)Pv(e,t,n),e=e.sibling}function Pv(e,t,n){switch(e.tag){case 26:Hl(e,t,n),e.flags&Bl&&(e.memoizedState!==null?IS(n,Xt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&qp(n,e)));break;case 5:Hl(e,t,n),e.flags&Bl&&(e=e.stateNode,(t&335544128)===t&&qp(n,e));break;case 3:case 4:var l=Xt;Xt=Si(e.stateNode.containerInfo),Hl(e,t,n),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Bl,Bl=16777216,Hl(e,t,n),Bl=l):Hl(e,t,n));break;case 30:if((e.flags&Bl)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var o=e.stateNode;o.paired=null,vt===null&&(vt=new Map),vt.set(l,o)}Hl(e,t,n);break;default:Hl(e,t,n)}}function $v(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 Qa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];He=l,e0(l,e)}$v(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wv(e),e=e.sibling}function Wv(e){switch(e.tag){case 0:case 11:case 15:Qa(e),e.flags&2048&&vl(9,e,e.return);break;case 3:Qa(e);break;case 12:Qa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eu(e)):Qa(e);break;default:Qa(e)}}function eu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];He=l,e0(l,e)}$v(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),eu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function e0(e,t){for(;He!==null;){var n=He;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:zi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,He=l;else e:for(n=e;He!==null;){l=He;var o=l.sibling,a=l.return;if(Qv(l),l===n){He=null;break e}if(o!==null){o.return=a,He=o;break e}He=a}}}var ZC={getCacheForType:function(e){var t=Ve(Ae),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ve(Ae).controller.signal}},KC=typeof WeakMap=="function"?WeakMap:Map,I=0,se=null,V=null,Q=0,W=0,ht=null,nl=!1,va=!1,Ym=!1,zn=0,Te=0,bl=0,Xl=0,Nu=0,bt=0,aa=0,ui=null,it=null,Df=!1,Fu=0,t0=0,Ru=1/0,Ou=null,fl=null,be=0,Kt=null,Wl=null,cn=0,Uf=0,Hf=null,n0=null,$o=null,Wo=null,ea=null,si=0,tu=null;function Tt(){return(I&2)!==0&&Q!==0?Q&-Q:z.T!==null?Vm():iy()}function l0(){if(bt===0)if((Q&536870912)===0||Y){var e=Tr;Tr<<=1,(Tr&3932160)===0&&(Tr=262144),bt=e}else bt=536870912;return e=Xe.current,e!==null&&(e.flags|=32),bt}function ia(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=E0(Nn(e.memoizedProps,n))),Wo===null&&(Wo=[]),Wo.push(t.bind(null,l))}}function st(e,t,n){(e===se&&(W===2||W===9)||e.cancelPendingCommit!==null)&&(ra(e,0),ll(e,Q,bt,!1)),Ri(e,n),((I&2)===0||e!==se)&&(e===se&&((I&2)===0&&(Xl|=n),Te===4&&ll(e,Q,bt,!1)),dn(e))}function o0(e,t,n){if((I&6)!==0)throw Error(_(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ni(e,t),o=l?FC(e,t):zc(e,t,!0),a=l;do{if(o===0){va&&!l&&ll(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!JC(n)){o=zc(e,t,!1),a=!1;continue}if(o===2){if(a=t,e.errorRecoveryDisabledLanes&a)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var r=e;o=ui;var u=r.current.memoizedState.isDehydrated;if(u&&(ra(r,i).flags|=256),i=zc(r,i,!1),i!==2&&i!==6){if(Ym&&!u){r.errorRecoveryDisabledLanes|=a,Xl|=a,o=4;break e}a=it,it=o,a!==null&&(it===null?it=a:it.push.apply(it,a))}o=i}if(a=!1,o!==2)continue}}if(o===1){ra(e,0),ll(e,t,0,!0);break}e:{switch(l=e,a=o,a){case 0:case 1:throw Error(_(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ll(l,t,bt,!nl);break e;case 2:it=null;break;case 3:case 5:break;default:throw Error(_(329))}if((t&62914560)===t&&(o=Fu+300-_t(),10<o)){if(ll(l,t,bt,!nl),qu(l,0,!0)!==0)break e;cn=t,l.timeoutHandle=Qm(fp.bind(null,l,n,it,Ou,Df,t,bt,Xl,aa,nl,a,"Throttled",-0,0),o);break e}fp(l,n,it,Ou,Df,t,bt,Xl,aa,nl,a,null,-0,0)}}break}while(!0);dn(e)}function fp(e,t,n,l,o,a,i,r,u,s,m,f,c,g){e.timeoutHandle=-1;var v=t.subtreeFlags,b=(a&335544064)===a;if(f=null,(b||v&8192||(v&16785408)===16785408)&&(f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},vt=null,Pv(t,a,f),b&&(v=f,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(v.count++,v.waitingForViewTransition=!0,v=Ti.bind(v),b.finished.then(v,v))),v=(a&62914560)===a?Fu-_t():(a&4194048)===a?t0-_t():0,v=FS(f,v),v!==null)){cn=a,e.cancelPendingCommit=v(dp.bind(null,e,t,a,n,l,o,i,r,u,s,m,f,null,c,g)),ll(e,a,i,!s);return}dp(e,t,a,n,l,o,i,r,u,s,m,f)}function JC(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 l=0;l<n.length;l++){var o=n[l],a=o.getSnapshot;o=o.value;try{if(!Et(a(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ll(e,t,n,l){t=ty(e,t),t&=~Nu,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var a=31-St(o),i=1<<a;l[a]=-1,o&=~i}n!==0&&ly(e,n,t)}function Pu(){return(I&6)===0?(Hi(0,!1),!1):!0}function Gm(){if(V!==null){if(W===0)var e=V.return;else e=V,En=oo=null,Tm(e),Io=null,pi=0,e=V;for(;e!==null;)zv(e.alternate,e),e=e.return;V=null}}function ra(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,pS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cn=0,Gm(),se=e,V=n=wn(e.current,null),Q=t,W=0,ht=null,nl=!1,va=Ni(e,t),Ym=!1,aa=bt=Nu=Xl=bl=Te=0,it=ui=null,Df=!1,zn=ty(e,t),Vu(),n}function a0(e,t){q=null,z.H=Su,t===pa||t===ku?(t=Bh(),W=3):t===hm?(t=Bh(),W=4):W=t===Mm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ht=t,V===null&&(Te=1,Tu(e,qt(t,e.current)))}function i0(){var e=Xe.current;return e===null?!0:(Q&4194048)===Q?Je===null:(Q&62914560)===Q||(Q&536870912)!==0?e===Je:!1}function r0(){var e=z.H;return z.H=Su,e===null?Su:e}function u0(){var e=z.A;return z.A=ZC,e}function Mu(){Te=4,nl||(Q&4194048)!==Q&&Xe.current!==null||(va=!0),(bl&134217727)===0&&(Xl&134217727)===0||se===null||ll(se,Q,bt,!1)}function zc(e,t,n){var l=I;I|=2;var o=r0(),a=u0();(se!==e||Q!==t)&&(Ou=null,ra(e,t)),t=!1;var i=Te;e:do try{if(W!==0&&V!==null){var r=V,u=ht;switch(W){case 8:Gm(),i=6;break e;case 3:case 2:case 9:case 6:Xe.current===null&&(t=!0);var s=W;if(W=0,ht=null,ko(e,r,u,s),n&&va){i=0;break e}break;default:s=W,W=0,ht=null,ko(e,r,u,s)}}IC(),i=Te;break}catch(m){a0(e,m)}while(!0);return t&&e.shellSuspendCounter++,En=oo=null,I=l,z.H=o,z.A=a,V===null&&(se=null,Q=0,Vu()),i}function IC(){for(;V!==null;)s0(V)}function FC(e,t){var n=I;I|=2;var l=r0(),o=u0();se!==e||Q!==t?(Ou=null,Ru=_t()+500,ra(e,t)):va=Ni(e,t);e:do try{if(W!==0&&V!==null){t=V;var a=ht;t:switch(W){case 1:W=0,ht=null,ko(e,t,a,1);break;case 2:case 9:if(Lh(a)){W=0,ht=null,mp(t);break}t=function(){W!==2&&W!==9||se!==e||(W=7),dn(e)},a.then(t,t);break e;case 3:W=7;break e;case 4:W=5;break e;case 7:Lh(a)?(W=0,ht=null,mp(t)):(W=0,ht=null,ko(e,t,a,7));break;case 5:var i=null;switch(V.tag){case 26:i=V.memoizedState;case 5:case 27:var r=V;if(i?U0(i):r.stateNode.complete){W=0,ht=null;var u=r.sibling;if(u!==null)V=u;else{var s=r.return;s!==null?(V=s,$u(s)):V=null}break t}}W=0,ht=null,ko(e,t,a,5);break;case 6:W=0,ht=null,ko(e,t,a,6);break;case 8:Gm(),Te=6;break e;default:throw Error(_(462))}}PC();break}catch(m){a0(e,m)}while(!0);return En=oo=null,z.H=l,z.A=o,I=n,V!==null?0:(se=null,Q=0,Vu(),Te)}function PC(){for(;V!==null&&!g1();)s0(V)}function s0(e){var t=Mv(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?$u(e):V=t}function mp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ep(n,t,t.pendingProps,t.type,void 0,Q);break;case 11:t=ep(n,t,t.pendingProps,t.type.render,t.ref,Q);break;case 5:Tm(t);var l=t;l===Le&&(Y?(hu(l),l.tag===5&&l.stateNode!=null&&(de=l.stateNode)):(hu(l),Y=!0));default:zv(n,t),t=V=Dy(t,zn),t=Mv(n,t,zn)}e.memoizedProps=e.pendingProps,t===null?$u(e):V=t}function ko(e,t,n,l){En=oo=null,Tm(t),Io=null,pi=0;var o=t.return;try{if(BC(e,o,t,n,Q)){Te=1,Tu(e,qt(n,e.current)),V=null;return}}catch(a){if(o!==null)throw V=o,a;Te=1,Tu(e,qt(n,e.current)),V=null;return}t.flags&32768?(Y||l===1?e=!0:va||(Q&536870912)!==0?e=!1:(nl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Xe.current,l!==null&&l.tag===13&&(l.flags|=16384))),c0(t,e)):$u(t)}function $u(e){var t=e;do{if((t.flags&32768)!==0){c0(t,nl);return}e=t.return;var n=jC(t.alternate,t,zn);if(n!==null){V=n;return}if(t=t.sibling,t!==null){V=t;return}V=t=e}while(t!==null);Te===0&&(Te=5)}function c0(e,t){do{var n=QC(e.alternate,e);if(n!==null){n.flags&=32767,V=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){V=e;return}V=e=n}while(e!==null);Te=6,V=null}function dp(e,t,n,l,o,a,i,r,u,s,m,f){e.cancelPendingCommit=null;do Wu();while(be!==0);if((I&6)!==0)throw Error(_(327));if(t!==null){if(t===e.current)throw Error(_(177));e===se&&(V=se=null,Q=0),Wl=t,Kt=e,cn=n,Hf=o,n0=l,$C(e,t,n,i,r,u,f)}}function $C(e,t,n,l,o,a,i){var r=t.lanes|t.childLanes;if(Uf=r,r|=sm,E1(e,n,r,l,o,a),Wo=null,(n&335544064)===n?(ea=xC(e),l=10262):(ea=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,oS(cu,function(){return Yf(),null})):(e.callbackNode=null,e.callbackPriority=0),xu=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=F.p,F.p=2,a=I,I|=4;try{kC(e,t,n)}finally{I=a,F.p=o,z.T=l}}be=1,xu?$o=SS(i,e.containerInfo,ea,qf,Lf,eS,Bf,Yf,WC,null,null):(qf(),Lf(),Bf())}function WC(e){if(be!==0){var t=Kt.onRecoverableError;t(e,{componentStack:null})}}function eS(){be===3&&(be=0,Iv(Wl,Kt),be=4)}function qf(){if(be===1){be=0;var e=Kt,t=Wl,n=cn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var o=F.p;F.p=2;var a=I;I|=4;try{Fa=Au=!1,Kv(t,e,n),n=Qf;var i=wy(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(i!==r&&r&&r.ownerDocument&&Ey(r.ownerDocument.documentElement,r)){if(u!==null&&um(r)){var s=u.start,m=u.end;if(m===void 0&&(m=s),"selectionStart"in r)r.selectionStart=s,r.selectionEnd=Math.min(m,r.value.length);else{var f=r.ownerDocument||document,c=f&&f.defaultView||window;if(c.getSelection){var g=c.getSelection(),v=r.textContent.length,b=Math.min(u.start,v),S=u.end===void 0?b:Math.min(u.end,v);!g.extend&&b>S&&(i=S,S=b,b=i);var h=Rh(r,b),d=Rh(r,S);if(h&&d&&(g.rangeCount!==1||g.anchorNode!==h.node||g.anchorOffset!==h.offset||g.focusNode!==d.node||g.focusOffset!==d.offset)){var p=f.createRange();p.setStart(h.node,h.offset),g.removeAllRanges(),b>S?(g.addRange(p),g.extend(d.node,d.offset)):(p.setEnd(d.node,d.offset),g.addRange(p))}}}}for(f=[],g=r;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<f.length;r++){var y=f[r];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}ma=!!jf,Qf=jf=null}finally{I=a,F.p=o,z.T=l}}e.current=t,be=2}}function Lf(){if(be===2){be=0;var e=Kt,t=Wl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=z.T,z.T=null;var l=F.p;F.p=2;var o=I;I|=4;try{Vv(e,t.alternate,t)}finally{I=o,F.p=l,z.T=n}}be=3}}function Bf(){if(be===4||be===3){be=0;var e=$o;$o=null,h1();var t=Kt,n=Wl,l=cn,o=n0,a=(l&335544064)===l?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?be=5:(be=0,Wl=Kt=null,f0(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(fl=null),nm(l),n=n.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Ai,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=z.T,a=F.p,F.p=2,z.T=null;try{for(var i=t.onRecoverableError,r=0;r<o.length;r++){var u=o[r];i(u.value,{componentStack:u.stack})}}finally{z.T=n,F.p=a}}if(o=Wo,i=ea,ea=null,o!==null&&(Wo=null,i===null&&(i=[]),e!==null))for(u=0;u<o.length;u++)n=(0,o[u])(i),n!==void 0&&e.finished.finally(n);(cn&3)!==0&&Wu(),dn(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===tu?si++:(si=0,tu=t):(si=0,tu=null),Hi(0,!1)}}function f0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function Wu(){return $o!==null&&($o.skipTransition(),$o=null),qf(),Lf(),Bf(),Yf()}function Yf(){if(be!==5)return!1;var e=Kt,t=Uf;Uf=0;var n=nm(cn),l=z.T,o=F.p;try{F.p=32>n?32:n,z.T=null,n=Hf,Hf=null;var a=Kt,i=cn;if(be=0,Wl=Kt=null,cn=0,(I&6)!==0)throw Error(_(331));var r=I;if(I|=4,Wv(a.current),Fv(a,a.current,i,n),I=r,Hi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Ai,a)}catch{}return!0}finally{F.p=o,z.T=l,f0(e,t)}}function gp(e,t,n){t=qt(n,t),t=vf(e.stateNode,t,2),e=ul(e,t,2),e!==null&&(Ri(e,2),dn(e))}function te(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(fl===null||!fl.has(l))){e=qt(n,e),n=xv(2),l=ul(t,n,2),l!==null&&(Av(n,l,t,e),Ri(l,2),dn(l));break}}t=t.return}}function Dc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new KC;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(Ym=!0,o.add(n),e=tS.bind(null,e,t,n),t.then(e,e))}function tS(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,se===e&&(Q&n)===n&&((Te===4||Te===3&&(Q&62914560)===Q&&300>_t()-Fu)&&(I&2)===0?ra(e,0):Nu|=n,aa===Q&&(aa=0)),dn(e)}function m0(e,t){t===0&&(t=ny()),e=lo(e,t),e!==null&&(Ri(e,t),dn(e))}function nS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),m0(e,n)}function lS(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(_(314))}l!==null&&l.delete(t),m0(e,n)}function oS(e,t){return em(e,t)}var ua=null,zo=null,Gf=!1,zu=!1,Uc=!1,ol=0;function dn(e){e!==zo&&e.next===null&&(zo===null?ua=zo=e:zo=zo.next=e),zu=!0,Gf||(Gf=!0,iS())}function Hi(e,t){if(!Uc&&zu){Uc=!0;do for(var n=!1,l=ua;l!==null;){if(!t)if(e!==0){var o=l.pendingLanes;if(o===0)var a=0;else{var i=l.suspendedLanes,r=l.pingedLanes;a=(1<<31-St(42|e)+1)-1,a&=o&~(i&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hp(l,a))}else a=Q,a=qu(l,l===se?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(a&3)===0||Ni(l,a)||(n=!0,hp(l,a));l=l.next}while(n);Uc=!1}}function aS(){d0()}function d0(){zu=Gf=!1;var e=0;ol!==0&&hS()&&(e=ol);for(var t=_t(),n=null,l=ua;l!==null;){var o=l.next,a=g0(l,t);a===0?(l.next=null,n===null?ua=o:n.next=o,o===null&&(zo=n)):(n=l,(e!==0||(a&3)!==0)&&(zu=!0)),l=o}be!==0&&be!==5||Hi(e,!1),ol!==0&&(ol=0)}function g0(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var i=31-St(a),r=1<<i,u=o[i];u===-1?((r&n)===0||(r&l)!==0)&&(o[i]=T1(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=se,n=Q,n=qu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(W===2||W===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&mc(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ni(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&mc(l),nm(n)){case 2:case 8:n=Wp;break;case 32:n=cu;break;case 268435456:n=ey;break;default:n=cu}return l=h0.bind(null,e),n=em(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&mc(l),e.callbackPriority=2,e.callbackNode=null,2}function h0(e,t){if(be!==0&&be!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var l=Q;return l=qu(e,e===se?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(o0(e,l,t),g0(e,_t()),e.callbackNode!=null&&e.callbackNode===n?h0.bind(null,e):null)}function hp(e,t){if(Wu())return null;o0(e,t,!0)}function iS(){yS(function(){(I&6)!==0?em($p,aS):d0()})}function Vm(){if(ol===0){var e=Il;e===0&&(e=Sr,Sr<<=1,(Sr&261888)===0&&(Sr=256)),ol=e}return ol}function pp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qr(e)}function rS(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var a=pp((o[ft]||null).action),i=l.submitter;i&&(t=(t=i[ft]||null)?pp(t.formAction):i.getAttribute("formAction"),t!==null&&(a=t,i=null));var r=new Bu("action","action",null,l,o);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ol!==0){var u=new FormData(o,i);pf(n,{pending:!0,data:u,method:o.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(o,i),pf(n,{pending:!0,data:u,method:o.method,action:a},a,u))},currentTarget:o}]})}}for(Lr=0;Lr<of.length;Lr++)Br=of[Lr],yp=Br.toLowerCase(),vp=Br[0].toUpperCase()+Br.slice(1),Jt(yp,"on"+vp);var Br,yp,vp,Lr;Jt(Ay,"onAnimationEnd");Jt(Ny,"onAnimationIteration");Jt(Ry,"onAnimationStart");Jt("dblclick","onDoubleClick");Jt("focusin","onFocus");Jt("focusout","onBlur");Jt(vC,"onTransitionRun");Jt(bC,"onTransitionStart");Jt(_C,"onTransitionCancel");Jt(Oy,"onTransitionEnd");na("onMouseEnter",["mouseout","mouseover"]);na("onMouseLeave",["mouseout","mouseover"]);na("onPointerEnter",["pointerout","pointerover"]);na("onPointerLeave",["pointerout","pointerover"]);to("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));to("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));to("onBeforeInput",["compositionend","keypress","textInput","paste"]);to("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));to("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));to("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),uS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function p0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var a=void 0;if(t)for(var i=l.length-1;0<=i;i--){var r=l[i],u=r.instance,s=r.currentTarget;if(r=r.listener,u!==a&&o.isPropagationStopped())break e;a=r,o.currentTarget=s;try{a(o)}catch(m){mu(m)}o.currentTarget=null,a=u}else for(i=0;i<l.length;i++){if(r=l[i],u=r.instance,s=r.currentTarget,r=r.listener,u!==a&&o.isPropagationStopped())break e;a=r,o.currentTarget=s;try{a(o)}catch(m){mu(m)}o.currentTarget=null,a=u}}}}function G(e,t){var n=t[mh];n===void 0&&(n=t[mh]=new Set);var l=e+"__bubble";n.has(l)||(y0(t,e,2,!1),n.add(l))}function Hc(e,t,n){var l=0;t&&(l|=4),y0(n,e,l,t)}var Yr="_reactListening"+Math.random().toString(36).slice(2);function jm(e){if(!e[Yr]){e[Yr]=!0,uy.forEach(function(n){n!=="selectionchange"&&(uS.has(n)||Hc(n,!1,e),Hc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yr]||(t[Yr]=!0,Hc("selectionchange",!1,t))}}function y0(e,t,n,l){switch(V0(t)){case 2:var o=eT;break;case 8:o=tT;break;default:o=Im}n=o.bind(null,t,n,e),o=void 0,!ef||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function qc(e,t,n,l,o){var a=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var i=l.tag;if(i===3||i===4){var r=l.stateNode.containerInfo;if(r===o)break;if(i===4)for(i=l.return;i!==null;){var u=i.tag;if((u===3||u===4)&&i.stateNode.containerInfo===o)return;i=i.return}for(;r!==null;){if(i=Yl(r),i===null)return;if(u=i.tag,u===5||u===6||u===26||u===27){l=a=i;continue e}r=r.parentNode}}l=l.return}py(function(){var s=a,m=om(n),f=[];e:{var c=My.get(e);if(c!==void 0){var g=Bu,v=e;switch(e){case"keypress":if(Xr(n)===0)break e;case"keydown":case"keyup":g=J1;break;case"focusin":v="focus",g=vc;break;case"focusout":v="blur",g=vc;break;case"beforeblur":case"afterblur":g=vc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=q1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=W1;break;case Ay:case Ny:case Ry:g=Y1;break;case Oy:g=tC;break;case"scroll":case"scrollend":g=U1;break;case"wheel":g=lC;break;case"copy":case"cut":case"paste":g=V1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Sh;break;case"submit":g=P1;break;case"toggle":case"beforetoggle":g=aC}var b=(t&4)!==0,S=!b&&(e==="scroll"||e==="scrollend"),h=b?c!==null?c+"Capture":null:c;b=[];for(var d=s,p;d!==null;){var y=d;if(p=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||p===null||h===null||(y=fi(d,h),y!=null&&b.push(_i(d,y,p))),S)break;d=d.return}0<b.length&&(c=new g(c,v,null,n,m),f.push({event:c,listeners:b}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",c=e==="mouseout"||e==="pointerout",g&&n!==Wc&&(v=n.relatedTarget||n.fromElement)&&(Yl(v)||v[ga]))break e;(c||g)&&(v=m.window===m?m:(g=m.ownerDocument)?g.defaultView||g.parentWindow:window,c?(g=n.relatedTarget||n.toElement,c=s,g=g?Yl(g):null,g!==null&&(S=xi(g),b=g.tag,g!==S||b!==5&&b!==27&&b!==6)&&(g=null)):(c=null,g=s),c!==g&&(b=_h,y="onMouseLeave",h="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(b=Sh,y="onPointerLeave",h="onPointerEnter",d="pointer"),S=c==null?v:Ja(c),p=g==null?v:Ja(g),v=new b(y,d+"leave",c,n,m),v.target=S,v.relatedTarget=p,y=null,Yl(m)===s&&(b=new b(h,d+"enter",g,n,m),b.target=p,b.relatedTarget=S,y=b),S=y,b=c&&g?Vc(c,g,sS):null,c!==null&&bp(f,v,c,b,!1),g!==null&&S!==null&&bp(f,S,g,b,!0)))}e:{if(c=s?Ja(s):window,g=c.nodeName&&c.nodeName.toLowerCase(),g==="select"||g==="input"&&c.type==="file")var C=xh;else if(wh(c))if(Sy)C=hC;else{C=dC;var A=mC}else g=c.nodeName,!g||g.toLowerCase()!=="input"||c.type!=="checkbox"&&c.type!=="radio"?s&&lm(s.elementType)&&(C=xh):C=gC;if(C&&(C=C(e,s))){Cy(f,C,n,m);break e}A&&A(e,c,s)}switch(A=s?Ja(s):window,e){case"focusin":(wh(A)||A.contentEditable==="true")&&(Bo=A,nf=s,Wa=null);break;case"focusout":Wa=nf=Bo=null;break;case"mousedown":lf=!0;break;case"contextmenu":case"mouseup":case"dragend":lf=!1,Oh(f,n,m);break;case"selectionchange":if(yC)break;case"keydown":case"keyup":Oh(f,n,m)}var E;if(rm)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Lo?by(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(vy&&n.locale!=="ko"&&(Lo||x!=="onCompositionStart"?x==="onCompositionEnd"&&Lo&&(E=yy()):(el=m,am="value"in el?el.value:el.textContent,Lo=!0)),A=Du(s,x),0<A.length&&(x=new Ch(x,e,null,n,m),f.push({event:x,listeners:A}),E?x.data=E:(E=_y(n),E!==null&&(x.data=E)))),(E=rC?uC(e,n):sC(e,n))&&(x=Du(s,"onBeforeInput"),0<x.length&&(A=new Ch("onBeforeInput","beforeinput",null,n,m),f.push({event:A,listeners:x}),A.data=E)),rS(f,e,s,n,m)}p0(f,t)})}function _i(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Du(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,a=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||a===null||(o=fi(e,n),o!=null&&l.unshift(_i(e,o,a)),o=fi(e,t),o!=null&&l.push(_i(e,o,a))),e.tag===3)return l;e=e.return}return[]}function sS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bp(e,t,n,l,o){for(var a=t._reactName,i=[];n!==null&&n!==l;){var r=n,u=r.alternate,s=r.stateNode;if(r=r.tag,u!==null&&u===l)break;r!==5&&r!==26&&r!==27||s===null||(u=s,o?(s=fi(n,a),s!=null&&i.unshift(_i(n,s,u))):o||(s=fi(n,a),s!=null&&i.push(_i(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var cS=/\r\n?/g,fS=/\u0000|\uFFFD/g;function _p(e){return(typeof e=="string"?e:""+e).replace(cS,`
|
|
9
|
+
`).replace(fS,"")}function v0(e,t){return t=_p(t),_p(e)===t}function ee(e,t,n,l,o,a){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||la(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&la(e,""+l);else return;break;case"className":wr(e,"class",l);break;case"tabIndex":wr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":wr(e,n,l);break;case"style":hy(e,l,a);return;case"data":if(t!=="object"){wr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Qr(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="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 a=="function"&&(n==="formAction"?(t!=="input"&&ee(e,t,"name",o.name,o,null),ee(e,t,"formEncType",o.formEncType,o,null),ee(e,t,"formMethod",o.formMethod,o,null),ee(e,t,"formTarget",o.formTarget,o,null)):(ee(e,t,"encType",o.encType,o,null),ee(e,t,"method",o.method,o,null),ee(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Qr(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=an);return;case"onScroll":l!=null&&G("scroll",e);return;case"onScrollEnd":l!=null&&G("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(_(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(_(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Qr(l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":G("beforetoggle",e),G("toggle",e),jr(e,"popover",l);break;case"xlinkActuate":Cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Cn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Cn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Cn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Cn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":jr(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=z1.get(n)||n,jr(e,n,l);else return}J=!0}function Vf(e,t,n,l,o,a){switch(n){case"style":hy(e,l,a);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(_(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(_(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")la(e,l);else if(typeof l=="number"||typeof l=="bigint")la(e,""+l);else return;break;case"onScroll":l!=null&&G("scroll",e);return;case"onScrollEnd":l!=null&&G("scrollend",e);return;case"onClick":l!=null&&(e.onclick=an);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!sy.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),a=n.slice(2,o?n.length-7:void 0),t=e[ft]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,o),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,l,o);break e}J=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):jr(e,n,l)}return}J=!0}function ke(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":G("error",e),G("load",e);var l=!1,o=!1,a;for(a in n)if(n.hasOwnProperty(a)){var i=n[a];if(i!=null)switch(a){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(_(137,t));default:ee(e,t,a,i,n,null)}}o&&ee(e,t,"srcSet",n.srcSet,n,null),l&&ee(e,t,"src",n.src,n,null);return;case"input":G("invalid",e);var r=a=i=o=null,u=null,s=null;for(l in n)if(n.hasOwnProperty(l)){var m=n[l];if(m!=null)switch(l){case"name":o=m;break;case"type":i=m;break;case"checked":u=m;break;case"defaultChecked":s=m;break;case"value":a=m;break;case"defaultValue":r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(_(137,t));break;default:ee(e,t,l,m,n,null)}}my(e,a,r,u,s,i,o,!1);return;case"select":G("invalid",e),l=i=a=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":a=r;break;case"defaultValue":i=r;break;case"multiple":l=r;default:ee(e,t,o,r,n,null)}t=a,n=i,e.multiple=!!l,t!=null?Zo(e,!!l,t,!1):n!=null&&Zo(e,!!l,n,!0);return;case"textarea":G("invalid",e),a=o=l=null;for(i in n)if(n.hasOwnProperty(i)&&(r=n[i],r!=null))switch(i){case"value":l=r;break;case"defaultValue":o=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(_(91));break;default:ee(e,t,i,r,n,null)}gy(e,l,o,a);return;case"option":for(u in n)n.hasOwnProperty(u)&&(l=n[u],l!=null)&&(u==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":ee(e,t,u,l,n,null));return;case"dialog":G("beforetoggle",e),G("toggle",e),G("cancel",e),G("close",e);break;case"iframe":case"object":G("load",e);break;case"video":case"audio":for(l=0;l<bi.length;l++)G(bi[l],e);break;case"image":G("error",e),G("load",e);break;case"details":G("toggle",e);break;case"embed":case"source":case"link":G("error",e),G("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(s in n)if(n.hasOwnProperty(s)&&(l=n[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(_(137,t));default:ee(e,t,s,l,n,null)}return;default:if(lm(t)){for(m in n)n.hasOwnProperty(m)&&(l=n[m],l!==void 0&&Vf(e,t,m,l,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(l=n[r],l!=null&&ee(e,t,r,l,n,null))}var mS={};function dS(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,i=null,r=null,u=null,s=null,m=null;for(g in n){var f=n[g];if(n.hasOwnProperty(g)&&f!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":u=f;default:l.hasOwnProperty(g)||ee(e,t,g,null,l,f)}}for(var c in l){var g=l[c];if(f=n[c],l.hasOwnProperty(c)&&(g!=null||f!=null))switch(c){case"type":g!==f&&(J=!0),a=g;break;case"name":g!==f&&(J=!0),o=g;break;case"checked":g!==f&&(J=!0),s=g;break;case"defaultChecked":g!==f&&(J=!0),m=g;break;case"value":g!==f&&(J=!0),i=g;break;case"defaultValue":g!==f&&(J=!0),r=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(_(137,t));break;default:g!==f&&ee(e,t,c,g,l,f)}}$c(e,i,r,u,s,m,a,o);return;case"select":g=i=r=c=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":g=u;default:l.hasOwnProperty(a)||ee(e,t,a,null,l,u)}for(o in l)if(a=l[o],u=n[o],l.hasOwnProperty(o)&&(a!=null||u!=null))switch(o){case"value":a!==u&&(J=!0),c=a;break;case"defaultValue":a!==u&&(J=!0),r=a;break;case"multiple":a!==u&&(J=!0),i=a;default:a!==u&&ee(e,t,o,a,l,u)}t=r,n=i,l=g,c!=null?Zo(e,!!n,c,!1):!!l!=!!n&&(t!=null?Zo(e,!!n,t,!0):Zo(e,!!n,n?[]:"",!1));return;case"textarea":g=c=null;for(r in n)if(o=n[r],n.hasOwnProperty(r)&&o!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:ee(e,t,r,null,l,o)}for(i in l)if(o=l[i],a=n[i],l.hasOwnProperty(i)&&(o!=null||a!=null))switch(i){case"value":o!==a&&(J=!0),c=o;break;case"defaultValue":o!==a&&(J=!0),g=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(_(91));break;default:o!==a&&ee(e,t,i,o,l,a)}dy(e,c,g);return;case"option":for(var v in n)c=n[v],n.hasOwnProperty(v)&&c!=null&&!l.hasOwnProperty(v)&&(v==="selected"?e.selected=!1:ee(e,t,v,null,l,c));for(u in l)c=l[u],g=n[u],l.hasOwnProperty(u)&&c!==g&&(c!=null||g!=null)&&(u==="selected"?(c!==g&&(J=!0),e.selected=c&&typeof c!="function"&&typeof c!="symbol"):ee(e,t,u,c,l,g));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)c=n[b],n.hasOwnProperty(b)&&c!=null&&!l.hasOwnProperty(b)&&ee(e,t,b,null,l,c);for(s in l)if(c=l[s],g=n[s],l.hasOwnProperty(s)&&c!==g&&(c!=null||g!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(_(137,t));break;default:ee(e,t,s,c,l,g)}return;default:if(lm(t)){for(var S in n)c=n[S],n.hasOwnProperty(S)&&c!==void 0&&!l.hasOwnProperty(S)&&Vf(e,t,S,void 0,l,c);for(m in l)c=l[m],g=n[m],!l.hasOwnProperty(m)||c===g||c===void 0&&g===void 0||Vf(e,t,m,c,l,g);return}}for(var h in n)c=n[h],n.hasOwnProperty(h)&&c!=null&&!l.hasOwnProperty(h)&&ee(e,t,h,null,l,c);for(f in l)c=l[f],g=n[f],!l.hasOwnProperty(f)||c===g||c==null&&g==null||ee(e,t,f,c,l,g)}function Cp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],a=o.transferSize,i=o.initiatorType,r=o.duration;if(a&&r&&Cp(i)){for(i=0,r=o.responseEnd,l+=1;l<n.length;l++){var u=n[l],s=u.startTime;if(s>r)break;var m=u.transferSize,f=u.initiatorType;m&&Cp(f)&&(u=u.responseEnd,i+=m*(u<r?1:(r-s)/(u-s)))}if(--l,t+=8*(a+i)/(o.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 jf=null,Qf=null;function Ci(e){return e.nodeType===9?e:e.ownerDocument}function Sp(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 b0(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 _0(e,t,n,l){return n=Ci(n).createElement(e),n[Ge]=l,n[ft]=t,ke(n,e,t),qe(n),n}function kf(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 Lc=null;function hS(){var e=window.event;return e&&e.type==="popstate"?e===Lc?!1:(Lc=e,!0):(Lc=null,!1)}var Qm=typeof setTimeout=="function"?setTimeout:void 0,pS=typeof clearTimeout=="function"?clearTimeout:void 0,Tp=typeof Promise=="function"?Promise:void 0,Ep=typeof requestAnimationFrame=="function"?requestAnimationFrame:Qm,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof Tp<"u"?function(e){return Tp.resolve(null).then(e).catch(vS)}:Qm;function vS(e){setTimeout(function(){throw e})}function Cl(e){return e==="head"}function wp(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),da(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Yc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Yc(n);for(var a=n.firstChild;a;){var i=a.nextSibling,r=a.nodeName;a[Oi]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=i}}else n==="body"&&Yc(e.ownerDocument.body);n=o}while(n);da(t)}function xp(e,t){var n=e;e=0;do{var l=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||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function C0(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var o=l=0;o<t.length;o++){var a=t[o];0<a.width&&0<a.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function S0(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function T0(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Xf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return T0(t,n,e)}function bS(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return T0(t,n,e)}function _S(e){return e.documentElement.clientHeight}function CS(e){this.addEventListener("load",e),this.addEventListener("error",e)}function SS(e,t,n,l,o,a,i,r,u){var s=t.nodeType===9?t:t.ownerDocument;try{var m=s.startViewTransition({update:function(){var c=s.defaultView,g=c.navigation&&c.navigation.transition,v=s.fonts.status;l();var b=[];if(v==="loaded"&&(_S(s),s.fonts.status==="loading"&&b.push(s.fonts.ready)),v=b.length,e!==null)for(var S=e.suspenseyImages,h=0,d=0;d<S.length;d++){var p=S[d];if(!p.complete){var y=p.getBoundingClientRect();if(0<y.bottom&&0<y.right&&y.top<c.innerHeight&&y.left<c.innerWidth){if(h+=H0(p),h>ou){b.length=v;break}p=new Promise(CS.bind(p)),b.push(p)}}}if(0<b.length)return c=Promise.race([Promise.all(b),new Promise(function(C){return setTimeout(C,500)})]).then(o,o),(g?Promise.allSettled([g.finished,c]):c).then(a,a);if(o(),g)return g.finished.then(a,a);a()},types:n});s.__reactViewTransition=m;var f=[];return m.ready.then(function(){for(var c=s.documentElement.getAnimations({subtree:!0}),g=0;g<c.length;g++){var v=c[g],b=v.effect,S=b.pseudoElement;if(S!=null&&S.startsWith("::view-transition")){f.push(v),v=b.getKeyframes();for(var h=S=void 0,d=!0,p=0;p<v.length;p++){var y=v[p],C=y.width;if(S===void 0)S=C;else if(S!==C){d=!1;break}if(C=y.height,h===void 0)h=C;else if(h!==C){d=!1;break}delete y.width,delete y.height,y.transform==="none"&&delete y.transform}d&&S!==void 0&&h!==void 0&&(b.setKeyframes(v),d=getComputedStyle(b.target,b.pseudoElement),d.width!==S||d.height!==h)&&(d=v[0],d.width=S,d.height=h,d=v[v.length-1],d.width=S,d.height=h,b.setKeyframes(v))}}i()},function(c){s.__reactViewTransition===m&&(s.__reactViewTransition=null);try{typeof c=="object"&&c!==null&&c.name==="InvalidStateError"&&(c.message==="View transition was skipped because document visibility state is hidden."||c.message==="Skipping view transition because document visibility state has become hidden."||c.message==="Skipping view transition because viewport size changed."||c.message==="Transition was aborted because of invalid state")&&(c=null),c!==null&&u(c)}finally{l(),o(),i()}}),m.finished.finally(function(){for(var c=0;c<f.length;c++)f[c].cancel();s.__reactViewTransition===m&&(s.__reactViewTransition=null),r()}),m}catch{return l(),o(),i(),null}}function Gl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Gl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:ce({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};Gl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],o=0;o<n.length;o++){var a=n[o].effect;a!==null&&a.target===e&&a.pseudoElement===t&&l.push(n[o])}return l};Gl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function E0(e){return{name:e,group:new Gl("group",e),imagePair:new Gl("image-pair",e),old:new Gl("old",e),new:new Gl("new",e)}}function wt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}wt.prototype.addEventListener=function(e,t,n){var l=null,o=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(w0(a,e,t,n)===-1){var i=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){i.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),l!==null&&(o=i.removeEventListener.bind(i,e,t,n),l.addEventListener("abort",o,{once:!0}),o=l.removeEventListener.bind(l,"abort",o)),l=sa(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:o}),ct(this._fragmentFiber.child,!1,TS,e,r,l)}this._eventListeners=a}};function TS(e,t,n,l){return ze(e).addEventListener(t,n,l),!1}wt.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=w0(l,e,t,n),t!==-1)){var o=l[t];n=o.attachedListener;var a=o.cleanup;o=sa(o.optionsOrUseCapture),ct(this._fragmentFiber.child,!1,ES,e,n,o),l.splice(t,1),a!==null&&a()}};function ES(e,t,n,l){return ze(e).removeEventListener(t,n,l),!1}function sa(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Ap(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function w0(e,t,n,l){if(e.length===0)return-1;l=Ap(l);for(var o=0;o<e.length;o++){var a=e[o];if(a.type===t&&a.listener===n&&Ap(a.optionsOrUseCapture)===l)return o}return-1}wt.prototype.dispatchEvent=function(e){var t=eo(this._fragmentFiber);if(t===null)return!0;t=ze(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var o=0;o<n.length;o++){var a=n[o];l.addEventListener(a.type,a.attachedListener,sa(a.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(o=0;o<n.length;o++)a=n[o],l.removeEventListener(a.type,a.attachedListener,sa(a.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)};wt.prototype.focus=function(e){ct(this._fragmentFiber.child,!0,x0,e,void 0,void 0)};function x0(e,t){return e.tag===6?!1:(e=ze(e),qS(e,t))}wt.prototype.focusLast=function(e){var t=[];ct(this._fragmentFiber.child,!0,km,t,void 0,void 0);for(var n=t.length-1;0<=n&&!x0(t[n],e);n--);};function km(e,t){return t.push(e),!1}wt.prototype.blur=function(){var e=eo(this._fragmentFiber);e!==null&&(e=ze(e),e=Ci(e).activeElement,e!==null&&ct(this._fragmentFiber.child,!1,wS,e,void 0,void 0))};function wS(e,t){return e.tag===6?!1:(e=ze(e),e===t||e.contains(t)?(t.blur(),!0):!1)}wt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),ct(this._fragmentFiber.child,!1,xS,e,void 0,void 0)};function xS(e,t){return e.tag===6||(e=ze(e),t.observe(e)),!1}wt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),ct(this._fragmentFiber.child,!1,AS,e,void 0,void 0);for(var n=t=0;n<Zt.length;n++){var l=Zt[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):Zt[t++]=l}Zt.length=t}};function AS(e,t){return e.tag===6||(e=ze(e),t.unobserve(e)),!1}var Zt=[],Bc=!1;function NS(e,t,n){Zt.push({fragmentInstance:e,observer:t,instance:n}),Bc||(Bc=!0,LS(function(){Bc=!1;var l=Zt;Zt=[];for(var o=0;o<l.length;o++){var a=l[o];a.observer.unobserve(a.instance)}}))}wt.prototype.getClientRects=function(){var e=[];return ct(this._fragmentFiber.child,!1,RS,e,void 0,void 0),e};function RS(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=ze(e),t.push.apply(t,e.getClientRects());return!1}wt.prototype.getRootNode=function(e){var t=eo(this._fragmentFiber);return t===null?this:ze(t).getRootNode(e)};wt.prototype.compareDocumentPosition=function(e){var t=eo(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];ct(this._fragmentFiber.child,!1,km,n,void 0,void 0);var l=ze(t);if(n.length===0){if(n=l,ih(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var o=l=n.compareDocumentPosition(e);return n===e?o=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Jp(t)[1],n===null?o=Node.DOCUMENT_POSITION_PRECEDING:(e=ze(n).compareDocumentPosition(e),o=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=ze(n[0]),o=ze(n[n.length-1]);var a=ih(this._fragmentFiber)?t.parentElement:l;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),r=o.compareDocumentPosition(e),u=i&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=l&&a&&i&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||a&&o===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!a&&o===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||OS(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function OS(e,t,n,l,o){var a=Yl(o);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=o.ownerDocument,o===a||o===a.documentElement||o===a.body;e:{for(a=t,t=eo(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=Vc(n,a,rh),t===null?t=!1:(ct(t,!0,i1,a,n),a=Do,Do=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===l)&&(t=Vc(l,a,rh),t===null?t=!1:(ct(t,!0,r1,a,l),a=Do,Gc=Do=null,t=a!==null)),t):!1}function Np(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}wt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(_(566));var t=[];ct(this._fragmentFiber.child,!1,km,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=Jp(this._fragmentFiber);if(l=n?l[1]||l[0]||eo(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=ze(l),Np(e,n);return}if(l=ze(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var o=t[l];o.tag===6?(o=ze(o),Np(o,n)):ze(o).scrollIntoView(e),l+=n?-1:1}};function MS(e,t){return e=ze(e),A0(e,t),!1}function A0(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function N0(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];e.addEventListener(o.type,o.attachedListener,sa(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var i=0,r=0;r<Zt.length;r++){var u=Zt[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(Zt[i++]=u)}Zt.length=i,a.observe(e)}),A0(e,t))}function zS(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];e.removeEventListener(o.type,o.attachedListener,sa(o.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?NS(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Zf(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":Zf(n),Lu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function DS(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Oi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function US(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Bt(e.nextSibling),e===null))return null;return e}function R0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function Kf(e){return e.data==="$?"||e.data==="$~"}function Xm(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function HS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(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 Jf=null;function Rp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Bt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Op(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 qS(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function LS(e){Ep(function(){Ep(function(t){return e(t)})})}function O0(e,t,n){switch(t=Ci(n),e){case"html":if(e=t.documentElement,!e)throw Error(_(452));return e;case"head":if(e=t.head,!e)throw Error(_(453));return e;case"body":if(e=t.body,!e)throw Error(_(454));return e;default:throw Error(_(451))}}function M0(e,t,n){for(var l in n){var o=n[l];n.hasOwnProperty(l)&&o!=null&&ee(e,t,l,null,mS,o)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===an&&(e.onclick=null),Lu(e)}function Yc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Lu(e)}var Yt=new Map,Mp=new Set;function Si(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Hn=F.d;F.d={f:BS,r:YS,D:GS,C:VS,L:jS,m:QS,X:XS,S:kS,M:ZS};function BS(){var e=Hn.f(),t=Pu();return e||t}function YS(e){var t=ha(e);t!==null&&t.tag===5&&t.type==="form"?hv(t):Hn.r(e)}var ba=typeof document>"u"?null:document;function z0(e,t,n){var l=ba;if(l&&typeof t=="string"&&t){var o=Ht(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Mp.has(o)||(Mp.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),ke(t,"link",e),qe(t),l.head.appendChild(t)))}}function GS(e){Hn.D(e),z0("dns-prefetch",e,null)}function VS(e,t){Hn.C(e,t),z0("preconnect",e,t)}function jS(e,t,n){Hn.L(e,t,n);var l=ba;if(l&&e&&t){var o='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Ht(n.imageSizes)+'"]')):o+='[href="'+Ht(e)+'"]';var a=o;switch(t){case"style":a=ca(e);break;case"script":a=_a(e)}if(!(Yt.has(a)||(e=ce({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Yt.set(a,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(qi(a))||t==="script"&&l.querySelector(Li(a))))){var i=l.createElement("link");ke(i,"link",e),t==="style"&&(i[fu]=!0,i.onload=i.onerror=function(){ry(i)}),qe(i),l.head.appendChild(i)}}}function QS(e,t){Hn.m(e,t);var n=ba;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ht(l)+'"][href="'+Ht(e)+'"]',a=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=_a(e)}if(!Yt.has(a)&&(e=ce({rel:"modulepreload",href:e},t),Yt.set(a,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Li(a)))return}l=n.createElement("link"),ke(l,"link",e),qe(l),n.head.appendChild(l)}}}function kS(e,t,n){Hn.S(e,t,n);var l=ba;if(l&&e){var o=Xo(l).hoistableStyles,a=ca(e);t=t||"default";var i=o.get(a);if(!i){var r={loading:0,preload:null};if(i=l.querySelector(qi(a)))r.loading=5;else{e=ce({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Yt.get(a))&&Zm(e,n);var u=i=l.createElement("link");qe(u),ke(u,"link",e),u._p=new Promise(function(s,m){u.onload=s,u.onerror=m}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,nu(i,t,l)}i={type:"stylesheet",instance:i,count:1,state:r},o.set(a,i)}}}function XS(e,t){Hn.X(e,t);var n=ba;if(n&&e){var l=Xo(n).hoistableScripts,o=_a(e),a=l.get(o);a||(a=n.querySelector(Li(o)),a||(e=ce({src:e,async:!0},t),(t=Yt.get(o))&&Km(e,t),a=n.createElement("script"),qe(a),ke(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},l.set(o,a))}}function ZS(e,t){Hn.M(e,t);var n=ba;if(n&&e){var l=Xo(n).hoistableScripts,o=_a(e),a=l.get(o);a||(a=n.querySelector(Li(o)),a||(e=ce({src:e,async:!0,type:"module"},t),(t=Yt.get(o))&&Km(e,t),a=n.createElement("script"),qe(a),ke(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},l.set(o,a))}}function zp(e,t,n,l){var o=(o=al.current)?Si(o):null;if(!o)throw Error(_(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ca(n.href),t=Xo(o).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ca(n.href);var a=Xo(o).hoistableStyles,i=a.get(e);if(i||(o=o.ownerDocument||o,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,i),(a=o.querySelector(qi(e)))?a._p||(i.instance=a,i.state.loading=5):(a=Yt.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Yt.set(e,a)),KS(o,e,a,i.state))),t&&l===null)throw Error(_(528,""));return i}if(t&&l!==null)throw Error(_(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=_a(n),t=Xo(o).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(_(444,e))}}function ca(e){return'href="'+Ht(e)+'"'}function qi(e){return'link[rel="stylesheet"]['+e+"]"}function D0(e){return ce({},e,{"data-precedence":e.precedence,precedence:null})}function KS(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[fu]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[fu]=!0,t.onload=t.onerror=ry.bind(null,t),ke(t,"link",n),qe(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function _a(e){return'[src="'+Ht(e)+'"]'}function Li(e){return"script[async]"+e}function Dp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(l)return t.instance=l,qe(l),l;var o=ce({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),qe(l),ke(l,"style",o),nu(l,n.precedence,e),t.instance=l;case"stylesheet":o=ca(n.href);var a=e.querySelector(qi(o));if(a)return t.state.loading|=4,t.instance=a,qe(a),a;l=D0(n),(o=Yt.get(o))&&Zm(l,o),a=(e.ownerDocument||e).createElement("link"),qe(a);var i=a;return i._p=new Promise(function(r,u){i.onload=r,i.onerror=u}),ke(a,"link",l),t.state.loading|=4,nu(a,n.precedence,e),t.instance=a;case"script":return a=_a(n.src),(o=e.querySelector(Li(a)))?(t.instance=o,qe(o),o):(l=n,(o=Yt.get(a))&&(l=ce({},n),Km(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),qe(o),ke(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(_(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,nu(l,n.precedence,e));return t.instance}function nu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,a=o,i=0;i<l.length;i++){var r=l[i];if(r.dataset.precedence===t)a=r;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Km(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lu=null;function Up(e,t,n){if(lu===null){var l=new Map,o=lu=new Map;o.set(n,l)}else o=lu,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[Oi]||a[Ge]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var i=a.getAttribute(t)||"";i=e+i;var r=l.get(i);r?r.push(a):l.set(i,[a])}}return l}function If(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function JS(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 Hp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function U0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function H0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function qp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=H0(t),e.suspenseyImages.push(t)),e=PS.bind(e),t.decode().then(e,e))}function IS(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ca(l.href),a=t.querySelector(qi(o));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ti.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,qe(a);return}a=t.ownerDocument||t,l=D0(l),(o=Yt.get(o))&&Zm(l,o),a=a.createElement("link"),qe(a);var i=a;i._p=new Promise(function(r,u){i.onload=r,i.onerror=u}),ke(a,"link",l),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ti.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ou=0;function FS(e,t){return e.stylesheets&&e.count===0&&au(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&au(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&ou===0&&(ou=62500*gS());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&au(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>ou?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function q0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)au(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Ti(){this.count--,q0(this)}function PS(){this.imgCount--,q0(this)}var Uu=null;function au(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Uu=new Map,t.forEach($S,e),Uu=null,Ti.call(e))}function $S(e,t){if(!(t.state.loading&4)){var n=Uu.get(e);if(n)var l=n.get(null);else{n=new Map,Uu.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<o.length;a++){var i=o[a];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),l=i)}l&&n.set(null,l)}o=t.instance,i=o.getAttribute("data-precedence"),a=n.get(i)||l,a===l&&n.set(null,o),n.set(i,o),this.count++,l=Ti.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),a?a.parentNode.insertBefore(o,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var fa={$$typeof:on,Provider:null,Consumer:null,_currentValue:Vl,_currentValue2:Vl,_threadCount:0};function WS(e,t,n,l,o,a,i,r,u){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=dc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dc(0),this.hiddenUpdates=dc(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function L0(e,t,n,l,o,a,i,r,u,s,m,f){return e=new WS(e,t,n,i,u,s,m,f,r),t=1,a===!0&&(t|=24),a=ut(3,null,null,t),e.current=a,a.stateNode=e,t=dm(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:l,isDehydrated:n,cache:t},pm(a),e}function B0(e){return e?(e=Vo,e):Vo}function Y0(e,t,n,l,o,a){o=B0(o),l.context===null?l.context=o:l.pendingContext=o,l=rl(t),l.payload={element:n},a=a===void 0?null:a,a!==null&&(l.callback=a),n=ul(e,l,t),n!==null&&(st(n,e,t),ti(n,e,t))}function Lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jm(e,t){Lp(e,t),(e=e.alternate)&&Lp(e,t)}function G0(e){if(e.tag===13||e.tag===31){var t=lo(e,67108864);t!==null&&st(t,e,67108864),Jm(e,67108864)}}function Bp(e){if(e.tag===13||e.tag===31){var t=Tt();t=tm(t);var n=lo(e,t);n!==null&&st(n,e,t),Jm(e,t)}}var ma=!0;function eT(e,t,n,l){var o=z.T;z.T=null;var a=F.p;try{F.p=2,Im(e,t,n,l)}finally{F.p=a,z.T=o}}function tT(e,t,n,l){var o=z.T;z.T=null;var a=F.p;try{F.p=8,Im(e,t,n,l)}finally{F.p=a,z.T=o}}function Im(e,t,n,l){if(ma){var o=Ff(l);if(o===null)qc(e,t,l,Hu,n),Yp(e,l);else if(lT(o,e,t,n,l))l.stopPropagation();else if(Yp(e,l),t&4&&-1<nT.indexOf(e)){for(;o!==null;){var a=ha(o);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var i=ql(a.pendingLanes);if(i!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var u=1<<31-St(i);r.entanglements[1]|=u,i&=~u}dn(a),(I&6)===0&&(Ru=_t()+500,Hi(0,!1))}}break;case 31:case 13:r=lo(a,2),r!==null&&st(r,a,2),Pu(),Jm(a,2)}if(a=Ff(l),a===null&&qc(e,t,l,Hu,n),a===o)break;o=a}o!==null&&l.stopPropagation()}else qc(e,t,l,null,n)}}function Ff(e){return e=om(e),Fm(e)}var Hu=null;function Fm(e){if(Hu=null,e=Yl(e),e!==null){var t=xi(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Xp(t),e!==null)return e;e=null}else if(n===31){if(e=Zp(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 Hu=e,null}function V0(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(p1()){case $p:return 2;case Wp:return 8;case cu:case y1:return 32;case ey:return 268435456;default:return 32}default:return 32}}var Pf=!1,ml=null,dl=null,gl=null,Ei=new Map,wi=new Map,$n=[],nT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yp(e,t){switch(e){case"focusin":case"focusout":ml=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":gl=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wi.delete(t.pointerId)}}function ka(e,t,n,l,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:a,targetContainers:[o]},t!==null&&(t=ha(t),t!==null&&G0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function lT(e,t,n,l,o){switch(t){case"focusin":return ml=ka(ml,e,t,n,l,o),!0;case"dragenter":return dl=ka(dl,e,t,n,l,o),!0;case"mouseover":return gl=ka(gl,e,t,n,l,o),!0;case"pointerover":var a=o.pointerId;return Ei.set(a,ka(Ei.get(a)||null,e,t,n,l,o)),!0;case"gotpointercapture":return a=o.pointerId,wi.set(a,ka(wi.get(a)||null,e,t,n,l,o)),!0}return!1}function j0(e){var t=Yl(e.target);if(t!==null){var n=xi(t);if(n!==null){if(t=n.tag,t===13){if(t=Xp(n),t!==null){e.blockedOn=t,fh(e.priority,function(){Bp(n)});return}}else if(t===31){if(t=Zp(n),t!==null){e.blockedOn=t,fh(e.priority,function(){Bp(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 iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ff(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Wc=l,n.target.dispatchEvent(l),Wc=null}else return t=ha(n),t!==null&&G0(t),e.blockedOn=n,!1;t.shift()}return!0}function Gp(e,t,n){iu(e)&&n.delete(t)}function oT(){Pf=!1,ml!==null&&iu(ml)&&(ml=null),dl!==null&&iu(dl)&&(dl=null),gl!==null&&iu(gl)&&(gl=null),Ei.forEach(Gp),wi.forEach(Gp)}function Gr(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,De.unstable_scheduleCallback(De.unstable_NormalPriority,oT)))}var Vr=null;function Vp(e){Vr!==e&&(Vr=e,De.unstable_scheduleCallback(De.unstable_NormalPriority,function(){Vr===e&&(Vr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Fm(l||n)===null)continue;break}var a=ha(n);a!==null&&(e.splice(t,3),t-=3,pf(a,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function da(e){function t(u){return Gr(u,e)}ml!==null&&Gr(ml,e),dl!==null&&Gr(dl,e),gl!==null&&Gr(gl,e),Ei.forEach(t),wi.forEach(t);for(var n=0;n<$n.length;n++){var l=$n[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)j0(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],a=n[l+1],i=o[ft]||null;if(typeof a=="function")i||Vp(n);else if(i){var r=null;if(a&&a.hasAttribute("formAction")){if(o=a,i=a[ft]||null)r=i.formAction;else if(Fm(o)!==null)continue}else r=i.action;typeof r=="function"?n[l+1]=r:(n.splice(l,3),l-=3),Vp(n)}}}function Q0(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(i){return o=i})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Pm(e){this._internalRoot=e}es.prototype.render=Pm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));var n=t.current,l=Tt();Y0(n,l,e,t,null,null)};es.prototype.unmount=Pm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Y0(e.current,2,null,e,null,null),Pu(),t[ga]=null}};function es(e){this._internalRoot=e}es.prototype.unstable_scheduleHydration=function(e){if(e){var t=iy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&j0(e)}};var jp=Qp.version;if(jp!=="19.3.1")throw Error(_(527,jp,"19.3.1"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=a1(t),e=e!==null?Kp(e):null,e=e===null?null:e.stateNode,e};var aT={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Xa=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Xa.isDisabled&&Xa.supportsFiber))try{Ai=Xa.inject(aT),Ct=Xa}catch{}var Xa;ts.createRoot=function(e,t){if(!kp(e))throw Error(_(299));var n=!1,l="",o=Tv,a=Ev,i=wv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=L0(e,1,!1,null,null,n,l,null,o,a,i,Q0),e[ga]=t.current,jm(e),new Pm(t)};ts.hydrateRoot=function(e,t,n){if(!kp(e))throw Error(_(299));var l=!1,o="",a=Tv,i=Ev,r=wv,u=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=L0(e,1,!0,t,n??null,l,o,u,a,i,r,Q0),t.context=B0(null),n=t.current,l=Tt(),l=tm(l),o=rl(l),o.callback=null,ul(n,o,l),n=l,t.current.lanes=n,Ri(t,n),dn(t),e[ga]=t.current,jm(e),new es(t)};ts.version="19.3.1"});var K0=Pt((y2,Z0)=>{"use strict";function X0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(e){console.error(e)}}X0(),Z0.exports=k0()});var he="g-comments",od="g-comments:auth",cs="gc_code",ad="gc_nonce";var Ki=/^[\w-]{8,64}$/;var vb=new Set(["invalid_key","not_logged_in","invalid_access","invalid_parameters","not_found","rate_limit","thread_conflict","page_not_allowed","invalid_url","no_category","thread_not_created","invalid_grant","user_not_allowed","submission_rejected","not_a_root_comment","pin_limit_reached"]),bb={400:"invalid_parameters",401:"invalid_key",403:"invalid_access",404:"not_found",409:"thread_conflict",422:"invalid_parameters",429:"rate_limit"},oe=class extends Error{name="CommentsError";type;status;errors;extras;waitSeconds;hint;serverType;constructor(t,n,l={}){super(n,l.cause===void 0?void 0:{cause:l.cause}),this.type=t,this.status=l.status??0,this.errors=l.errors??(n?[n]:[]),this.extras=l.extras,this.waitSeconds=l.waitSeconds,this.hint=l.hint,this.serverType=l.serverType}};function Al(e){return e instanceof oe}function rd(e,t,n){let l=typeof t?.error_type=="string"?t.error_type:void 0,o=l&&vb.has(l)?l:bb[e]??"unknown",a=Array.isArray(t?.errors)?t.errors.filter(r=>typeof r=="string"):[],i=t?.extras&&typeof t.extras=="object"?t.extras:void 0;return new oe(o,a[0]??`Request failed with status ${e}`,{status:e,errors:a,extras:i,serverType:l,waitSeconds:o==="rate_limit"?_b(i,n):void 0})}function _b(e,t){return id(e?.wait_seconds)??id(t?.get("Retry-After"))}function id(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?e:void 0;if(typeof e=="string"&&/^\s*\d+(\.\d+)?\s*$/.test(e))return Number(e)}function ud(e,t,n){let l=t?`this page's origin (${t})`:"this page's origin",o=[`${he} could not reach ${e}. Probable causes:`,`- ${l} is not allowed: add the host under Admin \u2192 Customize \u2192 Embedding on the forum, or to the discourse_comments_allowed_origins setting;`,"- the forum is behind HTTP basic auth, which rejects CORS preflight (OPTIONS) requests: let OPTIONS through without credentials;","- the discourse-comments plugin is disabled (discourse_comments_enabled);","- the forum URL is wrong or the forum is offline."].join(`
|
|
10
|
+
`);return new oe("unreachable",`Could not reach ${e}`,{status:0,errors:[],hint:o,cause:n})}var Gn=class{#t=new Set;get size(){return this.#t.size}on(t){return this.#t.add(t),()=>{this.#t.delete(t)}}emit(t){for(let n of[...this.#t])try{n(t)}catch(l){console.error(l)}}clear(){this.#t.clear()}};function ot(){return typeof window>"u"?void 0:window}function go(){return typeof document>"u"?void 0:document}function sd(){return ot()?.location.origin}function Ji(){let e=go()?.querySelector('link[rel="canonical"]');return e?.href?e.href:ot()?.location.href}function cd(){return go()?.title||void 0}function ho(){let e=ot()?.location;if(e)return e.href.split("#")[0]}function fs(){return go()?.hidden===!0}function fd(e){let t=go();return t?(t.addEventListener("visibilitychange",e),()=>t.removeEventListener("visibilitychange",e)):()=>{}}function Vn(e){let t;try{t=new URL(e)}catch{throw new TypeError(`${he}: "forum" must be an absolute URL, got "${e}"`)}if(t.protocol!=="https:"&&t.protocol!=="http:")throw new TypeError(`${he}: "forum" must be an http(s) URL, got "${e}"`);return{origin:t.origin,base:t.origin+t.pathname.replace(/\/+$/,"")}}function ms(e){if(!e)return"";let t=[];for(let[n,l]of Object.entries(e))if(l!=null)if(Array.isArray(l))for(let o of l)t.push(`${encodeURIComponent(n)}[]=${encodeURIComponent(String(o))}`);else t.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(l))}`);return t.join("&")}function At(e){return`/threads/${encodeURIComponent(e).replace(/%3A/gi,":")}`}function Ra(e){return typeof e=="object"&&e!==null&&e.name==="AbortError"}var Ii=class{forum;#t;#e;constructor(t){this.forum=t.forum,this.#t=t,this.#e=t.fetch??((n,l)=>globalThis.fetch(n,l))}get fetch(){return this.#e}url(t,n){let l=ms(n),o=`${this.forum.base}/comments${t}`;return l?`${o}?${l}`:o}async request(t,n,l={}){let o={Accept:"application/json",...this.#t.headers},a=Cb(this.#t.locale);a&&(o["Accept-Language"]=a);let i;l.json!==void 0?(o["Content-Type"]="application/json",i=JSON.stringify(l.json)):l.form&&(i=l.form);let r=l.anonymous?null:l.credentials??this.#t.credentials();r&&(o["User-Api-Key"]=r.key,o["User-Api-Client-Id"]=r.clientId);let u=this.url(n,l.query),s=l.detached?void 0:this.#t.lifetime;if(s?.aborted)throw new DOMException("The comments client was disposed","AbortError");let m=Sb(l.signal,s);this.#t.log(t,u);let f;try{f=await this.#e(u,{method:t,headers:o,body:i,credentials:"omit",mode:"cors",signal:m})}catch(S){throw m?.aborted||Ra(S)?S:ud(this.forum.base,sd(),S)}if(f.status===204)return;let c=await f.text(),g=Tb(c);if(f.ok){if(g===void 0)throw new oe("unknown","The forum returned a non-JSON response",{status:f.status});return g}let v=Eb(g)?g:null,b=rd(f.status,v,f.headers);throw f.status===401&&b.serverType==="invalid_key"&&r&&v?.degraded!==!0&&this.#t.onInvalidKey(r.key),b}};function Cb(e){let t=e?.replace(/_/g,"-");return t&&/^[0-9A-Za-z *,\-.;=]+$/.test(t)?t:void 0}function Sb(e,t){if(!e||!t)return e??t;if(typeof AbortSignal.any=="function")return AbortSignal.any([e,t]);let n=new AbortController,l=()=>n.abort();return(e.aborted||t.aborted)&&l(),e.addEventListener("abort",l,{once:!0}),t.addEventListener("abort",l,{once:!0}),n.signal}function Tb(e){if(!e)return null;try{return JSON.parse(e)}catch{return}}function Eb(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function md(e){let t="";for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function po(e){let t=new Uint8Array(e);return globalThis.crypto.getRandomValues(t),md(t)}async function dd(e){let t=globalThis.crypto?.subtle;if(!t)throw new Error("Signing in requires a secure context (https or localhost).");let n=await t.digest("SHA-256",new TextEncoder().encode(e));return md(new Uint8Array(n))}function wb(){let e=new Map;return{durable:!1,getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function gd(e){if(e.durable!==!1)return e;try{let t=globalThis.sessionStorage;if(t){let n="gc:probe";t.setItem(n,n);let l=t.getItem(n)===n;if(t.removeItem(n),l)return t}}catch{}return null}function hd(){try{let e=globalThis.localStorage;if(e){let t="gc:probe";return e.setItem(t,t),e.removeItem(t),{storage:e,isLocalStorage:!0}}}catch{}return{storage:wb(),isLocalStorage:!1}}function pd(e){try{return e===globalThis.localStorage}catch{return!1}}function ds(e,t){try{let n=e.getItem(t);return n?JSON.parse(n):null}catch{return null}}function Fi(e,t,n){try{e.setItem(t,JSON.stringify(n))}catch{}}function Pi(e,t){try{e.removeItem(t)}catch{}}var yd=15*6e4,xb="gc-auth",vd=520,bd=680,Ab=500,Nb=1e3,$i=class{clientId;#t;#e;#l;#n;#r=new Gn;#o=null;#i=null;#u=null;#f=0;constructor(t){this.#t=t;let n=`${"gc"}:${t.forum.base}`;this.#e={auth:`${n}:auth`,clientId:`${n}:client_id`,pending:`${n}:pending`},this.clientId=this.#S(t.clientId),this.#l=this.#T(),this.#n=Object.freeze({status:this.#l?"signed-in":"anonymous",user:this.#l?.user??null,degraded:!1,error:null});let l=ot();t.syncAcrossTabs&&l&&(l.addEventListener("storage",this.#p),this.#u=()=>l.removeEventListener("storage",this.#p))}get status(){return this.#n.status}get user(){return this.#n.user}get providers(){return this.#t.providers()}state(){return this.#n}onChange(t){return this.#r.on(t)}credentials(){return this.#l?{key:this.#l.key,clientId:this.#l.client_id}:null}signIn(t={}){if(this.#o){let S=this.#o.popup;if(S&&!S.closed)return S.focus(),this.#o.promise;this.#o.cancel(new oe("cancelled","Sign-in was restarted"))}let n=ot();if(!n)return Promise.reject(new oe("unknown","Signing in needs a browser window"));let l=this.#h(),o=l?.nonce??po(16),a=l?.verifier??po(32),i=(t.mode??"popup")==="popup"?Rb(n):null,r=i&&!i.closed?i:null,u=!1,s=null,m=()=>{},f=new Promise((S,h)=>{m=h});f.catch(()=>{});let c=()=>{},g=S=>this.#t.pendingStorage&&Fi(this.#t.pendingStorage,this.#e.pending,{nonce:o,verifier:a,mode:S,created_at:l?.created_at??Date.now()}),v=async()=>{let S=await dd(a);if(s)throw s;let h=this.#_(o,S,t.provider);if(r){if(r.closed)throw new oe("cancelled","The sign-in window was closed");g("popup"),u=Ob(r,h)}if(!u){if(!this.#t.pendingStorage)throw new oe("storage_unavailable","Signing in needs a popup or browser storage, and this page has neither. Allow popups for this site, or enable site data (localStorage/sessionStorage).");return g("redirect"),this.#t.log("popup unavailable, redirecting"),n.addEventListener("pageshow",this.#C),(this.#t.navigate??(p=>n.location.assign(p)))(h),null}let d=await this.#v(n,r,o,p=>{c=p});return d.kind==="user"?d.user:this.#m(d.code,a,o,()=>s)};this.#c({status:"signing-in",error:null});let b={popup:r,cancel:S=>{s=S,c(),m(S)},promise:Promise.race([v(),f]).then(S=>(this.#o===b&&(this.#o=null),S),S=>{let h=_d(S);throw r&&!u&&!r.closed&&r.close(),this.#o!==b||(this.#o=null,h.type!=="cancelled"&&this.#s(),this.#c({status:this.#l?"signed-in":"anonymous",error:h})),h})};return this.#o=b,b.promise}cancelSignIn(){this.#o?.cancel(new oe("cancelled","Sign-in was cancelled"))}async signOut(){if(this.#f++,this.cancelSignIn(),this.#s(),this.#l)try{await this.#t.http.request("POST","/auth/revoke")}catch(t){this.#t.log("revoke failed",t)}this.#N(),this.#c({status:"anonymous",user:null,degraded:!1,error:null})}handleRedirect(){return this.#i||(this.#i=this.#y(),this.#i.catch(()=>{})),this.#i}invalidate(t){if(!this.#l||this.#l.key!==t)return;let n=this.#T();if(n&&n.key!==t){this.#l=n,this.#c({status:"signed-in",user:n.user,error:null});return}this.#N(),this.#c({status:this.#o?"signing-in":"anonymous",user:null,degraded:!1,error:new oe("invalid_key","Your session has expired. Please sign in again.",{status:401})})}applyConfig(t){this.#l&&t.current_user&&(this.#l={...this.#l,user:t.current_user},Fi(this.#t.storage,this.#e.auth,this.#l)),this.#c({degraded:t.degraded===!0,user:this.#l?.user??null})}dispose(){this.#f++,this.cancelSignIn(),ot()?.removeEventListener("pageshow",this.#C),this.#u?.(),this.#u=null,this.#r.clear()}async#y(){let t=ot(),n=t?.location.hash??"";if(!t||!n.includes(`${cs}=`))return null;let l=new URLSearchParams(n.slice(1)),o=l.get(cs),a=l.get(ad),i=this.#h();if(!o||!a||!i||i.nonce!==a)return null;t.history.replaceState(t.history.state,"",t.location.pathname+t.location.search),this.#c({status:"signing-in",error:null});try{let r=await this.#m(o,i.verifier,a);return i.mode==="popup"&&t.close(),r}catch(r){let u=_d(r);throw u.type!=="cancelled"&&this.#s(),this.#c({status:this.#l?"signed-in":"anonymous",error:u}),u}}async#m(t,n,l,o=()=>null){let a=this.#f,i=this.#h()?.nonce===l,r=await this.#t.http.request("POST","/auth/exchange",{json:{code:t,client_id:this.clientId,code_verifier:n},anonymous:!0,detached:!0}),u=o()??(a!==this.#f?new oe("cancelled","Signed out while signing in"):null)??(i&&this.#h()?.nonce!==l?new oe("cancelled","The sign-in was abandoned"):null);if(u)throw this.#t.http.request("POST","/auth/revoke",{credentials:{key:r.key,clientId:r.client_id||this.clientId},detached:!0}).catch(()=>{}),u;let s={key:r.key,client_id:r.client_id||this.clientId,expires_at:r.expires_at??null,user:r.user};return this.#l=s,Fi(this.#t.storage,this.#e.auth,s),this.#s(),this.#c({status:"signed-in",user:s.user,degraded:!1,error:null}),s.user}#v(t,n,l,o){return new Promise((a,i)=>{let r=null,u=g=>{if(g.origin!==this.#t.forum.origin||g.source!==n)return;let v=g.data;!v||typeof v!="object"||v.type!==od||v.nonce!==l||typeof v.code!="string"||(c(),a({kind:"code",code:v.code}))},s=g=>{if(g.key!==this.#e.auth||!g.newValue)return;let v=this.#T();v&&(c(),a({kind:"user",user:v.user}))},m=setInterval(()=>{if(!n.closed||!go()?.hasFocus()){r=null;return}r??=Date.now(),Date.now()-r>=Nb&&(c(),i(new oe("cancelled","The sign-in window was closed")))},Ab),f=setTimeout(()=>{c(),i(new oe("cancelled","Sign-in timed out"))},yd),c=()=>{t.removeEventListener("message",u),t.removeEventListener("storage",s),clearInterval(m),clearTimeout(f)};t.addEventListener("message",u),this.#t.syncAcrossTabs&&t.addEventListener("storage",s),o(c)})}#_(t,n,l){let o=ms({origin:ot()?.location.origin,client_id:this.clientId,nonce:t,code_challenge:n,return_to:ho(),provider:l});return`${this.#t.forum.base}/comments/auth/start?${o}`}#C=t=>{t.persisted&&(ot()?.removeEventListener("pageshow",this.#C),!this.#o&&this.#n.status==="signing-in"&&this.#c({status:this.#l?"signed-in":"anonymous"}))};#s(){this.#t.pendingStorage&&Pi(this.#t.pendingStorage,this.#e.pending)}#h(){let t=this.#t.pendingStorage,n=t?ds(t,this.#e.pending):null;return!n||typeof n.nonce!="string"||typeof n.verifier!="string"||typeof n.created_at!="number"||Date.now()-n.created_at>yd?null:n}#p=t=>{if(t.key!==null&&t.key!==this.#e.auth)return;let n=this.#T();n?.key!==this.#l?.key&&(this.#l=n,this.#c({status:n?"signed-in":this.#o?"signing-in":"anonymous",user:n?.user??null,degraded:!1,error:null}))};#S(t){if(t!==void 0){if(!Ki.test(t))throw new TypeError(`${he}: "clientId" must match ${Ki}`);return t}let{storage:n}=this.#t,l=null;try{l=n.getItem(this.#e.clientId)}catch{l=null}if(l&&Ki.test(l))return l;let o=po(24);try{n.setItem(this.#e.clientId,o)}catch{}return o}#T(){let t=ds(this.#t.storage,this.#e.auth);return!t||typeof t.key!="string"||typeof t.client_id!="string"||!t.user||typeof t.user!="object"?null:t.expires_at&&Date.parse(t.expires_at)<=Date.now()?(Pi(this.#t.storage,this.#e.auth),null):t}#N(){this.#l=null,Pi(this.#t.storage,this.#e.auth)}#c(t){let n={...this.#n,...t};n.status===this.#n.status&&n.degraded===this.#n.degraded&&n.error===this.#n.error&&Mb(n.user,this.#n.user)||(this.#n=Object.freeze(n),this.#r.emit(this.#n))}};function Rb(e){let t=Math.round(e.screenX+Math.max(0,(e.outerWidth-vd)/2)),n=Math.round(e.screenY+Math.max(0,(e.outerHeight-bd)/2));try{return e.open("",xb,`popup=yes,width=${vd},height=${bd},left=${t},top=${n}`)}catch{return null}}function Ob(e,t){try{return e.location.replace(t),!0}catch{return!1}}function Mb(e,t){return e===t?!0:!e||!t?!1:JSON.stringify(e)===JSON.stringify(t)}function _d(e){return Al(e)?e:new oe("unknown",e instanceof Error?e.message:String(e),{cause:e})}function Oa(e){if("topicId"in e)return`t:${e.topicId}`;if("identifier"in e){let t=e.host??ot()?.location.host;if(!t)throw new TypeError("A count ref with an identifier needs a host outside the browser");return`id:${t}/${e.identifier}`}return`url:${e.url}`}var zb=4e3,Wi=class{#t;#e=[];#l=!1;constructor(t){this.#t=t}request(t){let n=t.map(Oa);return n.length===0?Promise.resolve({}):new Promise((l,o)=>{this.#e.push({keys:n,resolve:l,reject:o}),this.#l||(this.#l=!0,setTimeout(()=>{this.#n()},0))})}async#n(){let t=this.#e;this.#e=[],this.#l=!1;let n=[...new Set(t.flatMap(u=>u.keys))],l=[],o=[],a=0;for(let u of n){let s=encodeURIComponent(u).length+8;o.length>0&&(o.length>=50||a+s>zb)&&(l.push(o),o=[],a=0),o.push(u),a+=s}o.length>0&&l.push(o);let i=new Map,r=new Map;await Promise.all(l.map(async u=>{try{let s=await this.#t.request("GET","/counts",{query:{refs:u},anonymous:!0});for(let m of u)i.set(m,Number(s.counts?.[m]??0))}catch(s){for(let m of u)r.set(m,s)}}));for(let u of t){let s=u.keys.find(f=>r.has(f));if(s!==void 0){u.reject(r.get(s));continue}let m={};for(let f of u.keys)m[f]=i.get(f)??0;u.resolve(m)}}};function Cd(e){return e?(...t)=>console.debug(`[${he}]`,...t):()=>{}}var Db="/__status",hs=`\r
|
|
11
11
|
|\r
|
|
12
|
-
`,Tb=/\r\n\|\|\r\n/g,Eb=1e3,wb=15e3,xb=5e3,Ab=6e4;function Nb(e){let t=Math.min(xb*2**(e-1),Ab);return t/2+Math.random()*(t/2)}var Wi=class{clientId=fa(16);#t;#e=new Map;#l=new jn;#n="idle";#r=null;#a=null;#i=!1;#u=!1;#f=0;#y=0;constructor(t){this.#t=t}get status(){return this.#n}get url(){return`${this.#t.base}/message-bus/${this.clientId}/poll`}subscribe(t,n,l){let a=this.#e.get(t),o=a?pc(a):void 0;return a||(a=new Map,this.#e.set(t,a)),a.set(l,n),(o===void 0||n<o)&&this.#d(),{channel:t,advanceTo:i=>{let r=this.#e.get(t),u=r?.get(l);r&&u!==void 0&&i>u&&r.set(l,i)},unsubscribe:()=>{let i=this.#e.get(t);i?.delete(l)&&i.size===0&&(this.#e.delete(t),this.#d())}}}onStatus(t){return this.#l.on(t)}cursor(t){let n=this.#e.get(t);return n?pc(n):void 0}stop(){this.#u=!0,this.#e.clear(),this.#r?.abort(),this.#a?.(),this.#p("idle")}#d(){if(!this.#u){if(this.#r?.abort(),this.#a?.(),this.#e.size===0){this.#p("idle");return}this.#i||this.#v()}}async#v(){this.#i=!0;try{for(;!this.#u&&this.#e.size>0;){this.#n==="idle"&&this.#p("connecting");let t=new AbortController;this.#r=t;let n=Date.now(),l=0;try{let a=await this.#t.fetch(this.url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:this.#_(),credentials:"omit",mode:"cors",signal:t.signal});if(!a.ok)throw new Error(`MessageBus poll failed with status ${a.status}`);await Rb(a,o=>{l+=o.length,this.#C(o)})}catch(a){if(t.signal.aborted)continue;this.#f++,this.#t.log("message-bus poll failed",a),this.#f>=(this.#t.failureThreshold??2)&&this.#p("failed"),await this.#h(Nb(this.#f));continue}finally{this.#r===t&&(this.#r=null)}this.#f=0,this.#p("connected"),l===0&&Date.now()-n<Eb&&await this.#h(wb)}}finally{this.#i=!1}}#_(){let t=[];for(let[n,l]of this.#e)t.push(`${encodeURIComponent(n).replace(/%2F/gi,"/")}=${pc(l)}`);return t.push(`__seq=${++this.#y}`),t.join("&")}#C(t){for(let n of t){if(!n||typeof n!="object")continue;let l=n;if(l.channel===Sb){let o=l.data??{};for(let[i,r]of Object.entries(o)){let u=this.#e.get(i);u&&typeof r=="number"&&this.#c(u,r)}continue}let a=this.#e.get(l.channel);if(!(!a||typeof l.message_id!="number"))for(let[o,i]of[...a])i>=0&&l.message_id<=i||(a.set(o,l.message_id),yc(o,{kind:"message",data:l.data,message:l}))}}#c(t,n){for(let[l,a]of[...t])t.set(l,n),!(a===-1||n===a)&&(n>a?yc(l,{kind:"bump",lastId:n}):a>=0&&yc(l,{kind:"gap",lastId:n}))}#h(t){return new Promise(n=>{let l=()=>{clearTimeout(a),this.#a===l&&(this.#a=null),n()},a=setTimeout(l,t);this.#a=l})}#p(t){t!==this.#n&&(this.#n=t,this.#l.emit(t))}};function pc(e){return Math.min(...e.values())}function yc(e,t){try{e(t)}catch(n){console.error(n)}}async function Rb(e,t){let n="",l=r=>{let u=r.replace(Tb,hc).trim();if(!u)return;let c=JSON.parse(u);Array.isArray(c)&&t(c)},a=r=>{let u;for(;(u=n.indexOf(hc))!==-1;){let c=n.slice(0,u);n=n.slice(u+hc.length),l(c)}r&&(l(n),n="")},o=e.body?.getReader();if(!o){n=await e.text(),a(!0);return}let i=new TextDecoder;for(;;){let{done:r,value:u}=await o.read();if(r)break;n+=i.decode(u,{stream:!0}),a(!1)}n+=i.decode(),a(!0)}var er=class{#t;#e;#l;#n;#r;#a=null;#i=!1;#u=0;#f=null;constructor(t,n={}){this.#t=t,this.#e=n.baseMs??3e4,this.#l=n.maxMs??12e4,this.#n=this.#e}get active(){return this.#i}get intervalMs(){return this.#n}start(){this.#i||(this.#i=!0,this.#n=this.#e,this.#u=Date.now(),this.#f=sm(this.#v),this.#d())}stop(){this.#i=!1,clearTimeout(this.#r),this.#f?.(),this.#f=null}runNow(){return this.#a||(this.#a=this.#y().finally(()=>{this.#a=null,this.#d()})),this.#a}async#y(){clearTimeout(this.#r);let t=!1;try{t=await this.#t()}catch{t=!1}this.#u=Date.now(),this.#n=t?this.#e:Math.min(this.#n*2,this.#l)}#d(){clearTimeout(this.#r),!(!this.#i||this.#a||fc())&&(this.#r=setTimeout(()=>{this.runNow()},this.#n))}#v=()=>{this.#i&&(fc()?clearTimeout(this.#r):Date.now()-this.#u>=this.#n?this.runNow():this.#d())}};function At(e){return e.topic_id===null}function tr(e=Date.now){let t=null,n=0,l=-1/0,a=()=>({typingDurationMsecs:n,composerOpenDurationMsecs:t===null?0:Math.max(0,e()-t)});return{get started(){return t!==null},start(){t??=e()},typing(){t??=e();let o=e();o-l>=100&&(n+=100,l=o)},measure:a,stop(){let o=a();return t=null,n=0,l=-1/0,o}}}function ae(e,t){return bc(e,n=>n.id===t,0,[])}function vc(e,t){return bc(e,n=>n.number===t,0,[])}function bc(e,t,n,l){for(let a of e){let o=[...l,a.id];if(t(a))return{node:a,depth:n,path:o};if(a.children.length>0){let i=bc(a.children,t,n+1,o);if(i)return i}}return null}function da(e,t,n){return Cm(e,t,n)??e}function Cm(e,t,n){for(let l=0;l<e.length;l++){let a=e[l];if(a.id===t){let o=n(a);if(o===a)return null;let i=e.slice();return i[l]=o,i}if(a.children.length>0){let o=Cm(a.children,t,n);if(o){let i=e.slice();return i[l]={...a,children:o},i}}}return null}function _c(e,t){let n=Ob(e.children,t.children);return Date.parse(t.updated_at)<Date.parse(e.updated_at)||Mb(e,t)?n===e.children?e:{...e,children:n}:{...t,children:n}}function Ob(e,t){if(t.length===0)return e;let n=new Map(e.map(i=>[i.id,i])),l=t.map(i=>{let r=n.get(i.id);return r?_c(r,i):i}),a=new Set(t.map(i=>i.id));for(let i of e)a.has(i.id)||l.push(i);return l.length===e.length&&l.every((i,r)=>i===e[r])?e:l}function Mb(e,t){for(let n of Object.keys(t)){if(n==="children")continue;let l=e[n],a=t[n];if(l!==a&&(typeof l!="object"||typeof a!="object"||JSON.stringify(l)!==JSON.stringify(a)))return!1}return!0}function Nl(e,t){return da(e,t.id,n=>_c(n,t))}function Cc(e){return e.deleted&&e.html===""&&e.author===null?e:{...e,deleted:!0,html:"",author:null,likes:{...e.likes,can_like:!1},can:{...e.can,edit:!1,delete:!1,flag:!1}}}function Sc(e,t){return da(e,t,Cc)}function No(e,t,n){if(ae(e,t.id))return Nl(e,t);if(n==="end")return[...e,t];let l=0;for(;l<e.length&&e[l].pinned;)l++;return[...e.slice(0,l),t,...e.slice(l)]}function Ro(e,t,n,l,{bumpCounts:a}){if(ae(e,n.id))return Nl(e,n);let o=ae(e,t);if(!o)return null;let i=new Set(o.path);return Sm(e,i,r=>{let u=r.id===t,c=u?l==="start"?[n,...r.children]:[...r.children,n]:r.children;return a?{...r,children:c,direct_reply_count:u?r.direct_reply_count+1:r.direct_reply_count,total_descendant_count:r.total_descendant_count+1}:{...r,children:c}})}function Sm(e,t,n){return e.map(l=>{if(!t.has(l.id))return l;let a=l.children.some(o=>t.has(o.id))?Sm(l.children,t,n):l.children;return n(a===l.children?l:{...l,children:a})})}function Tm(e,t,n){let l=new Map(t.map(u=>[u.id,u])),a=!1,o=e.map(u=>{let c=l.get(u.id);if(!c)return u;let d=_c(u,c);return a||=d!==u,d}),i=new Set(e.map(u=>u.id)),r=t.filter(u=>!i.has(u.id)&&!ae(n,u.id));return!a&&r.length===0?e:[...o,...r]}function Em(e){let t=[],n=l=>{for(let a of l)a.deleted||t.push(a.id),n(a.children)};return n(e),t}function Xn(e){let t=0;for(let n of e)t=Math.max(t,n.number,Xn(n.children));return t}function wm(e,t){let n=new Set(t),l=e.map(i=>i.pinned===n.has(i.id)?i:{...i,pinned:n.has(i.id)}),a=new Map(t.map((i,r)=>[i,r]));return[...l.filter(i=>i.pinned).sort((i,r)=>(a.get(i.id)??0)-(a.get(r.id)??0)),...l.filter(i=>!i.pinned)]}function nr(e){return e==="oldest"?"end":"start"}function Tc(e){return e==="newest"?"start":"end"}var zb=4,Db=5,Ub=4,Hb=5,ar=class{composer=tr();#t;#e;#l=new jn;#n=[];#r=0;#a=0;#i=null;#u=[];#f=0;#y=new Map;#d=new Map;#v=null;#_=null;#C=null;#c;#h=null;#p=0;#S=new Map;#T=!1;#N=Promise.resolve();#s=0;#R;#q=null;#x=0;#O;#b=!1;constructor(t,n,l){this.#t=n,this.#e=Object.freeze({thread:t,virtual:At(t),comments:[],sort:l??t.sort,status:"idle",error:null,page:0,hasMore:!1,loadingMore:!1,pendingNew:0,branches:{},awaitingApproval:[],connection:"off"}),this.#c=new er(()=>this.#le())}get id(){return this.#e.thread.id}snapshot(){return this.#e}subscribe(t){return this.#l.on(t)}async load(){if(this.#b)return;let t=this.#e.thread;if(At(t)){if(this.#e.status==="ready"&&(await this.#z(),!this.#e.virtual))return;this.#o({status:"ready",comments:[],hasMore:!1,page:0}),this.#M();return}let n=++this.#a;this.#i?.abort();let l=new AbortController;this.#i=l,this.#u=[];let a=this.#m(),o=this.#e.sort;this.#o({status:"loading",error:null});try{let i=null;t.realtime==="poll"&&o!=="newest"&&(i=await this.#Z(t.id,l.signal));let r=await this.#t.http.request("GET",xt(t.id),{query:{sort:o,page:0},signal:l.signal});if(n!==this.#a||!this.#g(a))return;let u=r.comments.map(f=>this.#E(f,a)),c=r.sort??o,d=c==="newest"||!r.has_more;this.#h=i!==null?Math.max(i,Xn(u)):d?Xn(u):null,this.#n=this.#r===a.identity?this.#n.filter(f=>!ae(u,f.id)):[],this.#o({thread:r.thread,comments:u,sort:c,page:r.page??0,hasMore:r.has_more,loadingMore:!1,branches:{},pendingNew:this.#n.length,status:"ready",error:null}),this.#_?.advanceTo(r.thread.message_bus_last_id),this.#i=null,this.#ie(),this.#M()}catch(i){if(n!==this.#a||xo(i))return;this.#u=[];let r=Mo(i);throw this.#o({status:"error",error:r}),r}finally{this.#i===l&&(this.#i=null)}}async loadMore(){let t=this.#e;if(t.virtual||!t.hasMore||t.loadingMore||t.status!=="ready")return;let n=this.#a,l=this.#m();this.#o({loadingMore:!0});try{let a=await this.#t.http.request("GET",xt(t.thread.id),{query:{sort:t.sort,page:t.page+1}});if(n!==this.#a||!this.#g(l))return;let o=a.comments.map(c=>this.#E(c,l)),i=this.#e.comments,r=[];for(let c of o)ae(i,c.id)?i=Nl(i,c):r.push(c);let u=new Set(o.map(c=>c.id));this.#n=this.#n.filter(c=>!u.has(c.id)),this.#o({comments:r.length>0?[...i,...r]:i,page:a.page??t.page+1,hasMore:a.has_more,loadingMore:!1,pendingNew:this.#n.length})}catch(a){throw n===this.#a&&this.#o({loadingMore:!1}),Mo(a)}}async loadReplies(t){let n=ae(this.#e.comments,t);if(!n)throw Ec(t);let l=this.#e.branches[t];if(l?.loading)return;let a=(l?.page??-1)+1,o=this.#a,i=this.#m();this.#j(t,{page:l?.page??-1,loading:!0,hasMore:l?.hasMore??!0});try{let r=await this.#t.http.request("GET",`${xt(this.id)}/children/${n.node.number}`,{query:{sort:this.#e.sort,page:a,depth:n.depth+1}});if(o!==this.#a||!this.#g(i))return;let u=r.comments.map(f=>this.#E(f,i)),c=this.#e.comments,d=da(c,t,f=>{let s=Tm(f.children,u,c);return s===f.children?f:{...f,children:s}});for(let f of u){let s=ae(d,f.id);s&&s.path.at(-2)!==t&&(d=Nl(d,f))}this.#o({comments:d}),this.#j(t,{page:r.page??a,loading:!1,hasMore:r.has_more})}catch(r){throw o===this.#a&&this.#j(t,{page:l?.page??-1,loading:!1,hasMore:l?.hasMore??!0}),Mo(r)}}async setSort(t){t===this.#e.sort&&this.#e.status==="ready"||(this.#o({sort:t}),await this.load())}async post(t){let n=t.composer??this.composer,l=n.measure(),a=this.#e.thread,o={raw:t.body,reply_to_id:t.replyTo,typing_duration_msecs:t.typingDurationMsecs??l.typingDurationMsecs,composer_open_duration_msecs:t.composerOpenDurationMsecs??l.composerOpenDurationMsecs};if(At(a)){let{url:f,title:s,identifier:g}=this.#t.page;o.page={url:f,title:s,identifier:g}}let i=this.#m(),r=await this.#t.http.request("POST",`${xt(a.id)}/comments`,{json:o});n.stop();let u=this.#g(i);if("pending"in r)return u&&(this.#o({awaitingApproval:[...this.#e.awaitingApproval,r.pending]}),this.#l.emit({type:"comment.pending",pending:r.pending})),{type:"pending",pending:r.pending};let{comment:c}=r;if(!u)return{type:"created",comment:c};let d=this.#e.virtual;return d?this.#K(r.thread):this.#U(r.thread),this.#re(c,t.replyTo,i),this.#l.emit({type:"comment.posted",comment:c}),d&&r.thread.count>1&&this.load().catch(()=>{}),{type:"created",comment:c}}async edit(t,n){let l=this.#m(),a=await this.#t.http.request("PATCH",this.#A(t),{json:{raw:n}});return this.#g(l)&&(this.#w([a.comment],l,()=>!1),this.#l.emit({type:"comment.edited",comment:a.comment})),a.comment}async remove(t){let n=this.#m();if(await this.#t.http.request("DELETE",this.#A(t)),!this.#g(n))return;this.#V(t);let l=this.#m();try{let a=(await this.#H([t])).comments[0];a&&this.#w([a],l,()=>!1)}catch{}this.#l.emit({type:"comment.removed",id:t})}like(t){return this.#I(t,!0)}unlike(t){return this.#I(t,!1)}async flag(t,n){await this.#t.http.request("POST",`${this.#A(t)}/flag`,{json:{flag_type:n.type,message:n.message}})}async pin(t){await this.#P(t,"PUT")}async unpin(t){await this.#P(t,"DELETE")}async raw(t){let n=this.#m(),l=await this.#t.http.request("GET",`${this.#A(t)}/raw`);return this.#G(n),l.raw}showPending(){if(this.#n.length===0)return;let t=this.#e.comments,n=nr(this.#e.sort);for(let l of this.#n)t=No(t,l,n);this.#n=[],this.#o({comments:t,pendingNew:0})}async context(t){let n=this.#m(),l=ae(this.#e.comments,t)?.node.number;if(l===void 0&&(l=(await this.#H([t])).comments[0]?.number,this.#G(n)),l===void 0)throw Ec(t);let a=await this.#t.http.request("GET",`${xt(this.id)}/context/${l}`,{query:{sort:this.#e.sort}});this.#G(n);let o=a.ancestors.map(s=>this.#E(s,n)),i=this.#E(a.comment,n),r=[...o,i],u=this.#e.comments,[c,...d]=r;c&&!ae(u,c.id)&&(u=No(u,c,"start"));let f=c?.id;for(let s of d)f!==void 0&&!ae(u,s.id)&&(u=Ro(u,f,s,"start",{bumpCounts:!1})??u),f=s.id;return this.#n=this.#n.filter(s=>!r.some(g=>g.id===s.id)),this.#o({comments:u,pendingNew:this.#n.length}),{ancestors:o,ancestorsTruncated:a.ancestors_truncated,comment:i}}dispose(){this.#b||(this.#b=!0,this.#a++,this.#i?.abort(),clearTimeout(this.#R),clearTimeout(this.#O),this.#Q(),this.#l.clear(),this.#t.onDispose())}#F(t){return At(t)?`pending:${t.pending_channel}`:`${t.realtime}:${t.topic_id}`}#M(){let t=this.#e.thread,n=this.#F(t);if(this.#b||this.#v===n)return;this.#Q(),this.#v=n;let{realtime:l}=this.#t;if(At(t))this.#_=l.subscribe(t.pending_channel,-2,()=>{this.#z()});else if(t.realtime==="live")this.#_=l.subscribe(`/topic/${t.topic_id}`,t.message_bus_last_id,a=>this.#W(a));else{this.#L(!1);return}this.#C=l.onStatus(a=>this.#X(a)),this.#X(l.status)}#L(t){this.#o({connection:"interval"}),!this.#c.active&&(this.#c.start(),t&&this.#c.runNow())}#Q(){this.#_?.unsubscribe(),this.#_=null,this.#C?.(),this.#C=null,this.#c.stop(),this.#v=null,this.#o({connection:"off"})}#X(t){if(t==="failed"){this.#L(!0);return}let n=this.#c.active;this.#c.stop(),this.#o({connection:"live"}),n&&t==="connected"&&this.#c.runNow()}#W(t){if(t.kind==="gap"){this.#c.runNow();return}if(t.kind!=="message")return;let n=t.data;if(!n||typeof n!="object")return;let l=typeof n.id=="number"?n.id:null;switch(n.type){case"created":l!==null&&this.#B(l,!0);break;case"recovered":l!==null&&(this.#y.delete(l),this.#Y(),this.#B(l,!0));break;case"revised":case"rebaked":case"liked":case"unliked":l!==null&&this.#ee(l)&&this.#B(l,!1);break;case"deleted":case"destroyed":l!==null&&this.#V(l);break;case"stats":if(typeof n.posts_count=="number"&&!At(this.#e.thread)){let a=Math.max(n.posts_count-1,0);a!==this.#e.thread.count&&this.#o({thread:{...this.#e.thread,count:a}})}break}}#ee(t){return ae(this.#e.comments,t)!==null||ae(this.#n,t)!==null}#B(t,n){this.#S.set(t,(this.#S.get(t)??!1)||n),this.#R===void 0&&this.#k()}#k(){this.#T||(this.#T=!0,queueMicrotask(()=>{this.#N=this.#N.then(()=>this.#te())}))}async#te(){let t=new Map(this.#S);if(this.#S.clear(),this.#T=!1,this.#b||At(this.#e.thread)||t.size===0)return;let n=this.#m(),l=[...t.keys()];for(let a=0;a<l.length;a+=50)try{let o=await this.#H(l.slice(a,a+50));if(!this.#g(n))return;this.#s=0,this.#U(o.thread),this.#w(o.comments,n,i=>t.get(i.id)===!0)}catch(o){if(this.#b||xo(o))return;this.#t.log("refetch failed",o);for(let i of l.slice(a))this.#S.set(i,(this.#S.get(i)??!1)||t.get(i)===!0);this.#ne(o);return}}#ne(t){if(this.#s++,this.#s>zb){this.#s=0,this.#S.clear(),this.#c.runNow();return}let n=Al(t)?t.waitSeconds:void 0,l=n!==void 0?n*1e3:Math.min(1e3*2**this.#s,3e4);clearTimeout(this.#R),this.#R=setTimeout(()=>{this.#R=void 0,this.#k()},l)}async#le(){let t=this.#e.thread;if(At(t))return await this.#z(),!this.#e.virtual;let n=this.#m(),l=this.#a,a=()=>l!==this.#a||!this.#g(n),o=t.count,i=!1;if(this.#h===null){let r=await this.#Z(t.id);if(a())return!1;this.#h=Math.max(r,Xn(this.#e.comments),Xn(this.#n)),i=!0}else{let r=this.#h,u=r,c=[];for(let d=0;d<Hb;d++){let f=await this.#t.http.request("GET",xt(t.id),{query:{sort:"newest",page:d}});if(a())return!1;if(this.#U(f.thread),c.push(...f.comments),u=Math.max(u,Xn(f.comments)),!f.has_more||f.comments.some(s=>s.number<=r))break}this.#h=u,i=this.#w(c,n,d=>d.number>r)}return i=await this.#ae(n,a)||i,i||this.#e.thread.count!==o}async#ae(t,n){let l=Em(this.#e.comments);if(l.length===0)return!1;let a=this.#p%l.length,o=[...l.slice(a),...l.slice(0,a)].slice(0,50*Ub);this.#p=a+o.length;let i=!1;for(let r=0;r<o.length;r+=50){let u=o.slice(r,r+50),c=await this.#H(u);if(n())return i;this.#U(c.thread),i=this.#w(c.comments,t,()=>!1)||i;let d=new Set(c.comments.map(f=>f.id));for(let f of u)!d.has(f)&&ae(this.#e.comments,f)?.node.deleted===!1&&(this.#V(f),i=!0)}return i}async#Z(t,n){let l=await this.#t.http.request("GET",xt(t),{query:{sort:"newest",page:0},signal:n});return Xn(l.comments)}#z(){return this.#q??=(async()=>{let t=this.#m();try{let n=await this.#t.resolve();if(this.#b||!this.#e.virtual)return;if(!this.#g(t)){queueMicrotask(()=>{this.#z()});return}if(this.#x=0,clearTimeout(this.#O),At(n)){this.#o({thread:Oo(n,this.#e.thread)?this.#e.thread:n,error:null}),this.#M();return}this.#K(n),await this.load()}catch(n){if(this.#b||xo(n))return;this.#t.log("re-resolving the thread failed",n),this.#o({error:Mo(n)}),this.#oe()}finally{this.#q=null}})(),this.#q}#oe(){if(this.#x++,clearTimeout(this.#O),this.#x>Db){this.#x=0,this.#L(!1);return}this.#O=setTimeout(()=>{this.#z()},Math.min(2e3*2**(this.#x-1),3e4))}#K(t){clearTimeout(this.#O),this.#x=0,this.#o({thread:t,virtual:!1,status:"ready",error:null}),this.#M(),this.#l.emit({type:"thread.created",thread:t})}#m(){return{seq:this.#f,identity:this.#t.identity()}}#Y(){return++this.#f}#g(t){return!this.#b&&t.identity===this.#t.identity()}#G(t){if(!this.#g(t))throw new te("cancelled","The reader changed while this request was running")}#E(t,n){let l=t,a=this.#y.get(l.id);if(a!==void 0&&a>n.seq&&!l.deleted&&(l=Cc(l)),this.#d.has(l.id)){let o=ae(this.#e.comments,l.id)?.node.likes;o&&!Oo(o,l.likes)&&(l={...l,likes:o})}if(l.children.length>0){let o=l.children.map(i=>this.#E(i,n));o.some((i,r)=>i!==l.children[r])&&(l={...l,children:o})}return l}#w(t,n,l){if(!this.#g(n)||t.length===0)return!1;let a=t.map(f=>this.#E(f,n));this.#D({kind:"comments",comments:a,insertable:new Set(a.filter(l).map(f=>f.id)),ticket:n});let o=this.#e.comments,i=this.#n,r=[],u=this.#t.currentUserId(),c=this.#e.sort;for(let f of a){if(ae(o,f.id)){o=Nl(o,f);continue}if(ae(i,f.id)){i=Nl(i,f);continue}if(!l(f)||this.#y.has(f.id))continue;let s=f.reply_to?.number;if(s===void 0){u!==null&&f.author?.id===u?(o=No(o,f,nr(c)),r.push({comment:f,buffered:!1})):(i=[...i,f],r.push({comment:f,buffered:!0}));continue}let g=Tc(c),v=vc(o,s);if(v){o=Ro(o,v.node.id,f,g,{bumpCounts:!0})??o,r.push({comment:f,buffered:!1});continue}let b=vc(i,s);b&&(i=Ro(i,b.node.id,f,g,{bumpCounts:!0})??i)}let d=o!==this.#e.comments||i!==this.#n;i!==this.#n&&(this.#r=n.identity),this.#n=i,this.#o({comments:o,pendingNew:i.length});for(let f of r)this.#l.emit({type:"comment.received",...f});return d}#V(t){this.#y.set(t,this.#Y()),this.#D({kind:"tombstone",id:t}),this.#J(t)}#J(t){this.#n=Sc(this.#n.filter(n=>n.id!==t),t),this.#o({comments:Sc(this.#e.comments,t),pendingNew:this.#n.length})}#D(t){this.#i&&this.#u.push(t)}#ie(){let t=this.#u;this.#u=[];for(let n of t)n.kind==="tombstone"?this.#J(n.id):n.kind==="pins"?n.identity===this.#t.identity()&&this.#$(n.ids):this.#w(n.comments,n.ticket,l=>n.insertable.has(l.id))}#re(t,n,l){this.#D({kind:"comments",comments:[t],insertable:new Set([t.id]),ticket:l});let a=this.#e.sort,o=this.#e.comments;n!==void 0?o=Ro(o,n,t,Tc(a),{bumpCounts:!0})??o:o=No(o,t,nr(a)),this.#n=this.#n.filter(i=>i.id!==t.id),this.#o({comments:o,pendingNew:this.#n.length})}async#I(t,n){let l=ae(this.#e.comments,t)?.node;if(!l)throw Ec(t);let a=this.#m(),o=this.#Y(),i=this.#d.get(t)??{seq:o,confirmed:l.likes,chain:Promise.resolve()};i.seq=o,this.#d.set(t,i),l.likes.liked!==n&&this.#o({comments:da(this.#e.comments,t,u=>({...u,likes:{...u.likes,liked:n,count:Math.max(0,u.likes.count+(n?1:-1))}}))});let r=i.chain.catch(()=>{}).then(()=>this.#t.http.request(n?"PUT":"DELETE",`${this.#A(t)}/like`));i.chain=r;try{let u=await r;return this.#g(a)&&(i.confirmed=u.comment.likes,i.seq===o&&this.#d.delete(t),this.#w([u.comment],a,()=>!1)),u.comment}catch(u){throw this.#g(a)&&i.seq===o&&(this.#d.delete(t),this.#o({comments:da(this.#e.comments,t,c=>Oo(c.likes,i.confirmed)?c:{...c,likes:i.confirmed})})),Mo(u)}}async#P(t,n){let l=this.#m(),a=await this.#t.http.request(n,`${this.#A(t)}/pin`);this.#g(l)&&(this.#D({kind:"pins",ids:a.pinned_ids,identity:l.identity}),this.#$(a.pinned_ids))}#$(t){let n=this.#e.thread;At(n)||this.#o({thread:Oo(n.pinned_ids,t)?n:{...n,pinned_ids:t},comments:wm(this.#e.comments,t)})}#U(t){let n=this.#e.thread;if(At(n)||n.id!==t.id)return;let l={...t,sort:n.sort,message_bus_last_id:n.message_bus_last_id};Oo(l,n)||(this.#o({thread:l}),this.#v!==null&&l.realtime!==n.realtime&&this.#M())}#H(t){return this.#t.http.request("GET",xt(this.id),{query:{ids:t,sort:this.#e.sort}})}#A(t){return`${xt(this.id)}/comments/${t}`}#j(t,n){this.#o({branches:{...this.#e.branches,[t]:n}})}#o(t){let n=!1;for(let l of Object.keys(t))if(t[l]!==this.#e[l]){n=!0;break}!n||this.#b||(this.#e=Object.freeze({...this.#e,...t}),this.#l.emit({type:"change",snapshot:this.#e}))}};function Oo(e,t){return e===t||JSON.stringify(e)===JSON.stringify(t)}function Ec(e){return new te("not_found",`Comment ${e} is not loaded in this thread`,{status:404})}function Mo(e){return Al(e)?e:new te("unknown",e instanceof Error?e.message:String(e),{cause:e})}var qb=6e4,Lb=10*6e4,Bb=6;function xm(e){return Yb(e,{})}function Yb(e,t){let n=Qn(e.forum),l=_m(e.debug),{storage:a,syncAcrossTabs:o}=e.storage?{storage:e.storage,syncAcrossTabs:hm(e.storage)}:(()=>{let w=gm();return{storage:w.storage,syncAcrossTabs:w.isLocalStorage}})(),i=null,r=null,u=new Set,c=new AbortController,d=()=>new te("cancelled","The comments client was disposed"),f,s=new Ji({forum:n,fetch:e.fetch,headers:e.headers,locale:e.locale,credentials:()=>f.credentials(),onInvalidKey:w=>f.invalidate(w),log:l,lifetime:c.signal});f=new $i({http:s,forum:n,storage:a,pendingStorage:mm(a),syncAcrossTabs:o,clientId:e.clientId,log:l,providers:()=>i?.auth_providers??[],navigate:t.navigate});let g=t.realtime??new Wi({base:n.base,fetch:s.fetch,log:l}),v=new Fi(s),b=0,S,h=0;function m(){if(c.signal.aborted)return Promise.reject(d());if(!r){let w=b;r=s.request("GET","/config").then(K=>{if(c.signal.aborted)throw d();return w!==b?m():(i=K,f.applyConfig(K),clearTimeout(S),K.degraded?p():h=0,K)},K=>{throw w===b&&(r=null),K})}return r}function p(){if(c.signal.aborted||h>=Bb)return;let w=Math.min(qb*2**h,Lb);h++,clearTimeout(S),S=setTimeout(()=>{r=null,m().catch(()=>p())},w)}let y=f.user?.id??null,C=0,N=f.onChange(w=>{if(w.status==="signing-in")return;let K=w.status==="signed-in"?w.user?.id??null:null;if(K===y)return;y=K,C++;let be=r!==null;b++,r=null,be&&m().catch(()=>{});for(let _e of u)_e.load().catch(()=>{})});async function E(w={}){if(c.signal.aborted)throw d();let K=w.url??Ki();if(!K)throw new te("invalid_url","No page URL: pass `url` outside the browser");let be={url:K,title:w.title??cm(),identifier:w.identifier},_e=async()=>(await s.request("POST","/threads",{json:be})).thread,de=await _e();if(c.signal.aborted)throw d();let pe=new ar(de,{http:s,realtime:g,currentUserId:()=>f.user?.id??null,identity:()=>C,page:be,resolve:_e,log:l,onDispose:()=>u.delete(pe)},w.sort);return u.add(pe),await pe.load().catch(()=>{}),pe}async function A(w,K,be={}){let _e=new FormData,de=be.filename??K.name??"upload";return _e.append("file",K,de),be.pasted&&_e.append("pasted","true"),s.request("POST",`${xt(w)}/attachments`,{form:_e})}let B={forum:n.base,forumOrigin:n.origin,locale:e.locale,auth:f,threads:{open:E},attachments:{upload:A},config:m,counts:w=>v.request(w),count:async w=>(await v.request([w]))[Ao(w)]??0,preview:async w=>(await s.request("POST","/preview",{json:{raw:w}})).html,mentions:async(w,K)=>(await s.request("GET","/mentions",{query:{q:w,thread:K}})).users,dispose(){if(!c.signal.aborted){c.abort();for(let w of[...u])w.dispose();g.stop(),clearTimeout(S),N(),f.dispose()}}};return nt()&&f.handleRedirect(),B}function Gb(e=xm){let t=new Map;return{acquire(n){let l=Qn(n.forum).base,a=t.get(l);return a||(a=e(n),t.set(l,a)),a},get(n){return t.get(Qn(n).base)},clear(n){let l=n===void 0?[...t.keys()]:[Qn(n).base];for(let a of l)t.get(a)?.dispose(),t.delete(a)}}}var gn=Gb();var hn=D(Ue(),1);var a1={signIn:"Sign in",signInWith:"Continue with {provider}",signOut:"Sign out",signingIn:"Finish signing in in the window that opened.",signInCancel:"Cancel",sessionExpired:"Your session expired. Sign in again to comment.",joinConversation:"Join the conversation",joinConversationBody:"Sign in with your {forum} account to comment.",composerPlaceholder:"Add a comment\u2026",post:"Post",posting:"Posting\u2026",reply:"Reply",replyingTo:"Replying to @{username}",cancel:"Cancel",save:"Save",edit:"Edit",edited:"Edited",delete:"Delete",deleteConfirm:"Delete this comment?",deleted:"This comment was deleted.",hidden:"This comment was hidden after reports from the community.",like:"Like",unlike:"Remove like",likeCount:{zero:"No likes",one:"{count} like",other:"{count} likes"},report:"Report",reportTitle:"Why are you reporting this comment?","report.off_topic":"Off-topic","report.inappropriate":"Inappropriate","report.spam":"Spam","report.illegal":"Illegal","report.notify_moderators":"Something else",reportMessagePlaceholder:"Tell the moderators more (optional)",reportSent:"Thanks, the moderators will take a look.",pin:"Feature",unpin:"Unfeature",pinned:"Featured",pending:"Your comment was submitted and is awaiting approval.",loadMore:"Load more comments",loadReplies:{one:"View {count} reply",other:"View {count} replies"},continueThread:"Continue this thread",newComments:{one:"{count} new comment",other:"{count} new comments"},commentCount:{zero:"No comments yet",one:"{count} comment",other:"{count} comments"},sortBy:"Sort by","sort.best":"Best","sort.hot":"Hot","sort.newest":"Newest","sort.oldest":"Oldest",closed:"Comments are closed.",readOnly:"Comments are read-only right now.",guidelines:"Community guidelines",preview:"Preview",write:"Write",unavailable:"Comments are unavailable right now.",retry:"Try again",rateLimited:{one:"You're doing that too often. Try again in {count} second.",other:"You're doing that too often. Try again in {count} seconds."},genericError:"Something went wrong. Please try again.",copyLink:"Copy link",linkCopied:"Link copied",viewOnForum:"View on {forum}",staff:"Staff",upload:"Attach image",uploading:"Uploading\u2026",comments:"Comments",signedInAs:"Signed in as {username}",loadMoreReplies:{one:"View {count} more reply",other:"View {count} more replies"},backToAll:"Back to all comments",ancestorsTruncated:"Some earlier replies are not shown.",moreActions:"More actions",commentBy:"Comment by {name}",deletedComment:"Deleted comment",repliesTo:"Replies to {name}",replyPlaceholder:"Write a reply\u2026",editing:"Editing your comment",tooShort:"Comments need at least {min} characters.",tooLong:"Comments can have at most {max} characters.",formatting:"Formatting",bold:"Bold",italic:"Italic",insertLink:"Insert link",code:"Code",quote:"Quote",mentionSuggestions:"Mention suggestions",previewEmpty:"Nothing to preview yet.",loading:"Loading\u2026",cannotComment:"You can't comment on this page.",reportMessageRequired:"Tell the moderators what's wrong",close:"Close"},o1={signIn:"Entrar",signInWith:"Continuar com {provider}",signOut:"Sair",signingIn:"Conclua o login na janela que foi aberta.",signInCancel:"Cancelar",sessionExpired:"Sua sess\xE3o expirou. Entre novamente para comentar.",joinConversation:"Participe da conversa",joinConversationBody:"Entre com sua conta de {forum} para comentar.",composerPlaceholder:"Escreva um coment\xE1rio\u2026",post:"Publicar",posting:"Publicando\u2026",reply:"Responder",replyingTo:"Respondendo a @{username}",cancel:"Cancelar",save:"Salvar",edit:"Editar",edited:"Editado",delete:"Excluir",deleteConfirm:"Excluir este coment\xE1rio?",deleted:"Este coment\xE1rio foi exclu\xEDdo.",hidden:"Este coment\xE1rio foi ocultado ap\xF3s den\xFAncias da comunidade.",like:"Curtir",unlike:"Descurtir",likeCount:{zero:"Nenhuma curtida",one:"{count} curtida",other:"{count} curtidas"},report:"Denunciar",reportTitle:"Por que voc\xEA est\xE1 denunciando este coment\xE1rio?","report.off_topic":"Fora do assunto","report.inappropriate":"Inapropriado","report.spam":"Spam","report.illegal":"Ilegal","report.notify_moderators":"Outro motivo",reportMessagePlaceholder:"Conte mais aos moderadores (opcional)",reportSent:"Obrigado, os moderadores v\xE3o analisar.",pin:"Destacar",unpin:"Remover destaque",pinned:"Em destaque",pending:"Seu coment\xE1rio foi enviado e aguarda aprova\xE7\xE3o.",loadMore:"Carregar mais coment\xE1rios",loadReplies:{one:"Ver {count} resposta",other:"Ver {count} respostas"},continueThread:"Continuar esta conversa",newComments:{one:"{count} novo coment\xE1rio",other:"{count} novos coment\xE1rios"},commentCount:{zero:"Nenhum coment\xE1rio ainda",one:"{count} coment\xE1rio",other:"{count} coment\xE1rios"},sortBy:"Ordenar por","sort.best":"Melhores","sort.hot":"Em alta","sort.newest":"Mais recentes","sort.oldest":"Mais antigos",closed:"Os coment\xE1rios est\xE3o encerrados.",readOnly:"Os coment\xE1rios est\xE3o somente leitura no momento.",guidelines:"Diretrizes da comunidade",preview:"Pr\xE9-visualizar",write:"Escrever",unavailable:"Os coment\xE1rios est\xE3o indispon\xEDveis no momento.",retry:"Tentar novamente",rateLimited:{one:"Voc\xEA est\xE1 fazendo isso com muita frequ\xEAncia. Tente novamente em {count} segundo.",other:"Voc\xEA est\xE1 fazendo isso com muita frequ\xEAncia. Tente novamente em {count} segundos."},genericError:"Algo deu errado. Tente novamente.",copyLink:"Copiar link",linkCopied:"Link copiado",viewOnForum:"Ver em {forum}",staff:"Equipe",upload:"Anexar imagem",uploading:"Enviando\u2026",comments:"Coment\xE1rios",signedInAs:"Conectado como {username}",loadMoreReplies:{one:"Ver mais {count} resposta",other:"Ver mais {count} respostas"},backToAll:"Voltar para todos os coment\xE1rios",ancestorsTruncated:"Algumas respostas anteriores n\xE3o s\xE3o exibidas.",moreActions:"Mais a\xE7\xF5es",commentBy:"Coment\xE1rio de {name}",deletedComment:"Coment\xE1rio exclu\xEDdo",repliesTo:"Respostas a {name}",replyPlaceholder:"Escreva uma resposta\u2026",editing:"Editando seu coment\xE1rio",tooShort:"Coment\xE1rios precisam ter pelo menos {min} caracteres.",tooLong:"Coment\xE1rios podem ter no m\xE1ximo {max} caracteres.",formatting:"Formata\xE7\xE3o",bold:"Negrito",italic:"It\xE1lico",insertLink:"Inserir link",code:"C\xF3digo",quote:"Cita\xE7\xE3o",mentionSuggestions:"Sugest\xF5es de men\xE7\xE3o",previewEmpty:"Nada para pr\xE9-visualizar ainda.",loading:"Carregando\u2026",cannotComment:"Voc\xEA n\xE3o pode comentar nesta p\xE1gina.",reportMessageRequired:"Conte aos moderadores o que h\xE1 de errado",close:"Fechar"},i1={en:a1,"pt-BR":o1};function Rl(e){return e?.toLowerCase().startsWith("pt")?"pt-BR":"en"}function ha(e,t={}){let n=Rl(e),l={...i1[n],...t},a=new Intl.PluralRules(n);return(o,i)=>{let r=l[o],u;if(typeof r=="string")u=r;else{let c=Number(i?.count??0),d=a.select(c);u=(c===0?r.zero:void 0)??r[d]??r.other}return u.replace(/\{(\w+)\}/g,(c,d)=>i&&d in i?String(i[d]):c)}}var pa=D(Ue(),1);var rr=D(Ue(),1);var Vm=typeof window>"u"?rr.useEffect:rr.useLayoutEffect;function Ie(e){return Al(e)?e:new te("unknown",e instanceof Error?e.message:String(e),{cause:e})}function jm(){}function ur(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:e.ownerDocument}function Qm(){if(typeof window>"u")return!1;let e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e==="[::1]"||e.endsWith(".localhost")||e.endsWith(".test")}function Xm(e){try{return globalThis.localStorage?.getItem(e)??""}catch{return""}}function km(e,t){try{t.trim()===""?globalThis.localStorage?.removeItem(e):globalThis.localStorage?.setItem(e,t)}catch{}}var ir=new Set,zc;function Zm(e){return ir.add(e),zc??=setInterval(()=>{for(let t of[...ir])t()},6e4),()=>{ir.delete(e),ir.size===0&&(clearInterval(zc),zc=void 0)}}var r1=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];function Km(e,t,n){let l=Math.round((Date.parse(e)-t)/1e3),a=new Intl.RelativeTimeFormat(n,{numeric:"auto"});for(let[o,i]of r1)if(Math.abs(l)>=i)return a.format(Math.round(l/i),o);return a.format(0,"second")}function Dc(e,t){return new Intl.DateTimeFormat(t,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}var Uc=(0,pa.createContext)(null),u1=ha();function Jm(e){let t=Ol(e);if(!t)throw new Error(`${me}: render this inside <DiscourseComments forum="\u2026"> or pass a \`forum\` prop`);return t}function Ol(e){let t=(0,pa.useContext)(Uc);return(0,pa.useMemo)(()=>e===void 0||t&&Qn(e).base===t.client.forum?null:{client:gn.acquire({forum:e}),t:t?.t??u1,locale:t?.locale??Rl(void 0),messages:t?.messages,theme:t?.theme??"auto",appearance:t?.appearance,debug:t?.debug??!1,emit:t?.emit??jm},[e,t])??t}var Fm=D($(),1),f1=new Set(["cancelled","invalid_key"]);function zo(e){let{children:t,appearance:n,locale:l,messages:a,theme:o="auto",debug:i=!1,onEvent:r}=e,u=e.client,c=e.forum,d=e.forum===void 0?null:{forum:e.forum,fetch:e.fetch,headers:e.headers,storage:e.storage,clientId:e.clientId,locale:l,debug:i},f=(0,hn.useMemo)(()=>u??gn.acquire(d),[u,c]),s=a?JSON.stringify(a):"",g=(0,hn.useMemo)(()=>ha(l,a),[l,s]),v=(0,hn.useRef)(r);(0,hn.useEffect)(()=>{v.current=r});let b=(0,hn.useMemo)(()=>({client:f,t:g,locale:Rl(l),messages:a,theme:o,appearance:n,debug:i,emit:S=>v.current?.(S)}),[f,g,l,s,o,n,i]);return(0,hn.useEffect)(()=>{let S=f.auth.state();return f.auth.onChange(h=>{let m=S.status==="signed-in";h.status==="signed-in"&&h.user&&!m?v.current?.({type:"auth.signedIn",user:h.user}):h.status==="anonymous"&&m&&v.current?.({type:"auth.signedOut",expired:h.error?.type==="invalid_key"});let p=h.error;p&&p!==S.error&&!f1.has(p.type)&&v.current?.({type:"error",action:"signIn",error:p}),S=h})},[f]),(0,Fm.jsx)(Uc.Provider,{value:b,children:t})}var Ce=D(Ue(),1);function x(...e){return e.filter(Boolean).join(" ")}function Wm(...e){let t={},n={};for(let l of e)if(l){Object.assign(t,l.variables);for(let[a,o]of Object.entries(l.elements??{}))n[a]=x(n[a],o)||void 0}return{variables:t,elements:n}}function eg(e){let t={};for(let[n,l]of Object.entries(e??{}))l!==void 0&&l!==""&&(t[`--gc-${n.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`)}`]=l);return t}var X=D(Ue(),1);var k=D($(),1);function Gt({children:e}){return(0,k.jsx)("svg",{className:"gc-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:e})}function tg({filled:e=!1}){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{fill:e?"currentColor":"none",d:"M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z"})})}function ng(){return(0,k.jsxs)(Gt,{children:[(0,k.jsx)("path",{d:"M9 17 4 12l5-5"}),(0,k.jsx)("path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"})]})}function lg(){return(0,k.jsxs)(Gt,{children:[(0,k.jsx)("circle",{cx:"5",cy:"12",r:"1"}),(0,k.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,k.jsx)("circle",{cx:"19",cy:"12",r:"1"})]})}function ag(){return(0,k.jsxs)(Gt,{children:[(0,k.jsx)("path",{d:"M12 17v5"}),(0,k.jsx)("path",{d:"M9 10.8V4h6v6.8l2 3.2H7z"})]})}function og(){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z"})})}function ig(){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{d:"M19 4h-9M14 20H5M15 4 9 20"})})}function rg(){return(0,k.jsxs)(Gt,{children:[(0,k.jsx)("path",{d:"M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7"}),(0,k.jsx)("path",{d:"M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7"})]})}function ug(){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function cg(){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{d:"M3 21c3 0 7-1 7-8V5H3v7h4c0 3-1 5-4 6zM14 21c3 0 7-1 7-8V5h-7v7h4c0 3-1 5-4 6z"})})}function sg(){return(0,k.jsxs)(Gt,{children:[(0,k.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,k.jsx)("circle",{cx:"9",cy:"9",r:"2"}),(0,k.jsx)("path",{d:"m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"})]})}function fg(){return(0,k.jsx)(Gt,{children:(0,k.jsx)("path",{d:"m15 18-6-6 6-6"})})}var Q=D(Ue(),1);var kn=D(Ue(),1);var Ml=D(Ue(),1);var mg=new WeakMap;function dg(e){return{client:e,config:mg.get(e)??null,error:null}}function gg(e){let[t,n]=(0,Ml.useState)(()=>dg(e)),l=t;t.client!==e&&(l=dg(e),n(l));let[a,o]=(0,Ml.useState)(0);(0,Ml.useEffect)(()=>{let r=!0,u=f=>n(s=>r&&s.client===e?f(s):s),c=()=>e.config().then(f=>{mg.set(e,f),u(s=>s.config===f&&!s.error?s:{client:e,config:f,error:null})},f=>{u(s=>({...s,error:Ie(f)}))});c();let d=e.auth.onChange(()=>{c()});return()=>{r=!1,d()}},[e,a]);let i=(0,Ml.useCallback)(()=>o(r=>r+1),[]);return{config:l.config,error:l.error,reload:i}}function hg(e,t){let{auth:n}=e,l=(0,kn.useCallback)(u=>n.onChange(u),[n]),a=(0,kn.useCallback)(()=>n.state(),[n]),o=(0,kn.useSyncExternalStore)(l,a,a),i=(0,kn.useMemo)(()=>({signIn:u=>n.signIn(u),cancelSignIn:()=>n.cancelSignIn(),signOut:()=>n.signOut()}),[n]),r=t?.auth_providers??n.providers;return(0,kn.useMemo)(()=>({user:o.user,status:o.status,providers:r,degraded:o.degraded,error:o.error,...i}),[o,r,i])}var Pe=D(Ue(),1);function pg(e,{identifier:t,url:n,title:l,sort:a},o){let[i,r]=(0,Pe.useState)(0),[u,c]=(0,Pe.useState)({thread:null,error:null}),d=n===void 0?sa()??"":"",f=(0,Pe.useRef)({title:l,sort:a,onOpenError:o});f.current={title:l,sort:a,onOpenError:o};let s=(0,Pe.useRef)(a);(0,Pe.useEffect)(()=>{let m=!0,p=null;return c(y=>y.thread||y.error?{thread:null,error:null}:y),queueMicrotask(()=>{if(!m)return;let{title:y,sort:C}=f.current;s.current=C,e.threads.open({identifier:t,url:n,title:y,sort:C}).then(N=>{if(!m){N.dispose();return}p=N,c({thread:N,error:null})},N=>{if(m){let E=Ie(N);c({thread:null,error:E}),f.current.onOpenError?.(E)}})}),()=>{m=!1,p?.dispose()}},[e,t,n,d,i]);let{thread:g}=u;(0,Pe.useEffect)(()=>{g&&a!==void 0&&a!==s.current&&(s.current=a,g.setSort(a).catch(()=>{}))},[g,a]);let v=(0,Pe.useCallback)(m=>g?g.subscribe(m):()=>{},[g]),b=(0,Pe.useCallback)(()=>g?.snapshot()??null,[g]),S=(0,Pe.useSyncExternalStore)(v,b,b),h=(0,Pe.useCallback)(()=>{g?g.load().catch(()=>{}):r(m=>m+1)},[g]);return{thread:g,snapshot:S,error:u.error,retry:h}}var ya=D($(),1),yg=(0,Q.createContext)(null);function ne(e="This component"){let t=(0,Q.useContext)(yg);if(!t)throw new Error(`${me}: ${e} must be rendered inside <Comments.Root>`);return t}function Hc(e){return Ol(e.forum)?(0,ya.jsx)(d1,{...e}):(0,ya.jsx)("section",{className:x("gc-root","gc-root--unconfigured",e.className),"data-gc-unconfigured":"",children:(0,ya.jsx)("p",{className:"gc-notice",children:`${me}: render <Comments> inside <DiscourseComments forum="\u2026"> or pass a forum prop.`})})}function d1(e){let{forum:t,identifier:n,url:l,title:a,sort:o,maxDepth:i=2,signIn:r="inline",onSignInRequired:u,readOnly:c=!1,highlight:d,guidelinesUrl:f,onPosted:s,appearance:g,unstyled:v=!1,theme:b,locale:S,className:h,children:m}=e,p=Jm(t),{client:y,emit:C}=p,N=(0,Q.useRef)(null),E=(0,Q.useMemo)(()=>S?ha(S,p.messages):p.t,[S,p.messages,p.t]),A=S?Rl(S):p.locale,B=b??p.theme,{variables:w,elements:K}=(0,Q.useMemo)(()=>Wm(p.appearance,g),[p.appearance,g]),be=(0,Q.useRef)(void 0),_e=(0,Q.useCallback)((fe,Oe)=>C({type:"error",action:fe,error:Ie(Oe),threadId:be.current}),[C]),{thread:de,snapshot:pe,error:oa,retry:Dn}=pg(y,{identifier:n,url:l,title:a,sort:o},fe=>_e("open",fe));be.current=de?.id;let{config:ia,error:ra,reload:Yt}=gg(y),El=hg(y,ia),Hi=(0,Q.useCallback)(()=>{Dn(),ra&&Yt()},[Dn,ra,Yt]),Un=pe?.status==="error"?pe.error:null;(0,Q.useEffect)(()=>{Un&&_e("load",Un)},[Un,_e]);let bo=El.user?.id??null,[Hn,qi]=(0,Q.useState)({userId:bo,thread:null});Hn.userId!==bo&&qi({userId:bo,thread:pe?.thread??null});let qn=!!pe&&pe.thread!==Hn.thread,wl=El.status==="signed-in",_o=pe?.thread.closed??!1,Ln=!c&&!El.degraded,Bn=!!pe&&pe.status!=="error"&&Ln&&!_o,Yn=Bn&&wl&&qn&&!pe.thread.can_comment,Co=Bn&&!Yn&&(wl||r==="on-submit"),Li=Bn&&!Yn,[fn,xl]=(0,Q.useState)(null),Tt=(0,Q.useRef)(0),[nc,Gn]=(0,Q.useState)(null),Bi=(0,Q.useRef)(null),[,Yi]=(0,Q.useState)(0),dn=(0,Q.useCallback)((fe,Oe)=>{Bi.current={id:fe,scroll:Oe?.scroll??!1},Yi(Et=>Et+1)},[]);(0,Q.useEffect)(()=>{let fe=Bi.current,Oe=fe&&N.current?.querySelector(`#gc-${fe.id}`);!fe||!Oe||(Bi.current=null,fe.scroll&&Oe.scrollIntoView?.({block:"center"}),Oe.focus({preventScroll:fe.scroll}))}),(0,Q.useEffect)(()=>{Tt.current++,xl(null)},[de]);let st=(0,Q.useCallback)(async fe=>{if(!de)return;let Oe=++Tt.current;try{let Et=await de.context(fe);if(Oe!==Tt.current)return;xl({id:fe,ancestors:Et.ancestors,truncated:Et.ancestorsTruncated}),dn(fe)}catch(Et){Oe===Tt.current&&_e("context",Et)}},[de,dn,_e]),Gi=(0,Q.useCallback)(()=>{Tt.current++,fn&&dn(fn.id),xl(null)},[fn,dn]),Vi=m1(),Vn=d??Vi,ji=(0,Q.useRef)(null),ua=pe?.status==="ready";(0,Q.useEffect)(()=>{let fe=ji.current;if(!de||!ua||Vn===null||fe?.thread===de&&fe.id===Vn)return;ji.current={thread:de,id:Vn};let Oe=Vn,Et=++Tt.current;(async()=>{let Kt=ae(de.snapshot().comments,Oe);if(!Kt){try{await de.context(Oe)}catch(mn){Et===Tt.current&&_e("context",mn);return}Kt=ae(de.snapshot().comments,Oe)}if(!(!Kt||Et!==Tt.current)){if(Kt.depth>i){let mn=Kt.depth-i,Eo=de.snapshot().comments,rc=Kt.path.slice(0,mn).map(wo=>ae(Eo,wo)?.node).filter(wo=>wo!==void 0);xl({id:Kt.path[mn],ancestors:rc,truncated:!1})}else xl(null);Gn(Oe),dn(Oe,{scroll:!0})}})()},[de,ua,Vn,i,dn,_e]);let So=(0,Q.useRef)(u);So.current=u;let lc=r!=="manual"||u!==void 0,ac=(0,Q.useCallback)(()=>y.auth.status==="signed-in"?Promise.resolve(!0):r==="manual"?(So.current?.(),Promise.resolve(!1)):y.auth.signIn().then(fe=>fe!==null,()=>!1),[y,r]),To=pe?.thread.key,oc=(0,Q.useCallback)(fe=>To===void 0?null:`${"gc"}:${y.forum}:draft:${To}:${fe}`,[y.forum,To]),ic={client:y,t:E,locale:A,thread:de,snapshot:pe,openError:oa,retry:Hi,config:ia,configError:ra,commenter:El,maxDepth:i,signInMode:r,readOnly:c,guidelinesUrl:f??ia?.guidelines_url??null,debug:p.debug,elements:K,writable:Ln,canCompose:Co,commentingDenied:Yn,canReply:Li,canRequestSignIn:lc,focusView:fn,continueThread:st,closeFocusView:Gi,highlightId:nc,focusComment:dn,ensureSignedIn:ac,reportError:_e,emit:C,onPosted:s,draftKey:oc};return(0,ya.jsx)(yg.Provider,{value:ic,children:(0,ya.jsx)("section",{ref:N,className:x("gc-root",!v&&"gc-root--styled",K.root,h),"data-gc-theme":B==="inherit"?void 0:B,style:eg(w),"aria-label":E("comments"),"aria-busy":!pe&&!oa?!0:void 0,children:m})})}function m1(){let[e,t]=(0,Q.useState)(null);return(0,Q.useEffect)(()=>{let n=()=>{let l=/^#gc-(\d+)$/.exec(window.location.hash);t(l?Number(l[1]):null)};return n(),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}function vg(e,t,n,l){let a=e.slice(t,n);switch(l){case"bold":return qc(e,t,n,"**","**");case"italic":return qc(e,t,n,"*","*");case"code":return a.includes(`
|
|
13
|
-
|
|
12
|
+
`,Ub=/\r\n\|\|\r\n/g,Hb=1e3,qb=15e3,Lb=5e3,Bb=6e4;function Yb(e){let t=Math.min(Lb*2**(e-1),Bb);return t/2+Math.random()*(t/2)}var er=class{clientId=po(16);#t;#e=new Map;#l=new Gn;#n="idle";#r=null;#o=null;#i=!1;#u=!1;#f=0;#y=0;constructor(t){this.#t=t}get status(){return this.#n}get url(){return`${this.#t.base}/message-bus/${this.clientId}/poll`}subscribe(t,n,l){let o=this.#e.get(t),a=o?ps(o):void 0;return o||(o=new Map,this.#e.set(t,o)),o.set(l,n),(a===void 0||n<a)&&this.#m(),{channel:t,advanceTo:i=>{let r=this.#e.get(t),u=r?.get(l);r&&u!==void 0&&i>u&&r.set(l,i)},unsubscribe:()=>{let i=this.#e.get(t);i?.delete(l)&&i.size===0&&(this.#e.delete(t),this.#m())}}}onStatus(t){return this.#l.on(t)}cursor(t){let n=this.#e.get(t);return n?ps(n):void 0}stop(){this.#u=!0,this.#e.clear(),this.#r?.abort(),this.#o?.(),this.#p("idle")}#m(){if(!this.#u){if(this.#r?.abort(),this.#o?.(),this.#e.size===0){this.#p("idle");return}this.#i||this.#v()}}async#v(){this.#i=!0;try{for(;!this.#u&&this.#e.size>0;){this.#n==="idle"&&this.#p("connecting");let t=new AbortController;this.#r=t;let n=Date.now(),l=0;try{let o=await this.#t.fetch(this.url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:this.#_(),credentials:"omit",mode:"cors",signal:t.signal});if(!o.ok)throw new Error(`MessageBus poll failed with status ${o.status}`);await Gb(o,a=>{l+=a.length,this.#C(a)})}catch(o){if(t.signal.aborted)continue;this.#f++,this.#t.log("message-bus poll failed",o),this.#f>=(this.#t.failureThreshold??2)&&this.#p("failed"),await this.#h(Yb(this.#f));continue}finally{this.#r===t&&(this.#r=null)}this.#f=0,this.#p("connected"),l===0&&Date.now()-n<Hb&&await this.#h(qb)}}finally{this.#i=!1}}#_(){let t=[];for(let[n,l]of this.#e)t.push(`${encodeURIComponent(n).replace(/%2F/gi,"/")}=${ps(l)}`);return t.push(`__seq=${++this.#y}`),t.join("&")}#C(t){for(let n of t){if(!n||typeof n!="object")continue;let l=n;if(l.channel===Db){let a=l.data??{};for(let[i,r]of Object.entries(a)){let u=this.#e.get(i);u&&typeof r=="number"&&this.#s(u,r)}continue}let o=this.#e.get(l.channel);if(!(!o||typeof l.message_id!="number"))for(let[a,i]of[...o])i>=0&&l.message_id<=i||(o.set(a,l.message_id),ys(a,{kind:"message",data:l.data,message:l}))}}#s(t,n){for(let[l,o]of[...t])t.set(l,n),!(o===-1||n===o)&&(n>o?ys(l,{kind:"bump",lastId:n}):o>=0&&ys(l,{kind:"gap",lastId:n}))}#h(t){return new Promise(n=>{let l=()=>{clearTimeout(o),this.#o===l&&(this.#o=null),n()},o=setTimeout(l,t);this.#o=l})}#p(t){t!==this.#n&&(this.#n=t,this.#l.emit(t))}};function ps(e){return Math.min(...e.values())}function ys(e,t){try{e(t)}catch(n){console.error(n)}}async function Gb(e,t){let n="",l=r=>{let u=r.replace(Ub,hs).trim();if(!u)return;let s=JSON.parse(u);Array.isArray(s)&&t(s)},o=r=>{let u;for(;(u=n.indexOf(hs))!==-1;){let s=n.slice(0,u);n=n.slice(u+hs.length),l(s)}r&&(l(n),n="")},a=e.body?.getReader();if(!a){n=await e.text(),o(!0);return}let i=new TextDecoder;for(;;){let{done:r,value:u}=await a.read();if(r)break;n+=i.decode(u,{stream:!0}),o(!1)}n+=i.decode(),o(!0)}var tr=class{#t;#e;#l;#n;#r;#o=null;#i=!1;#u=0;#f=null;constructor(t,n={}){this.#t=t,this.#e=n.baseMs??3e4,this.#l=n.maxMs??12e4,this.#n=this.#e}get active(){return this.#i}get intervalMs(){return this.#n}start(){this.#i||(this.#i=!0,this.#n=this.#e,this.#u=Date.now(),this.#f=fd(this.#v),this.#m())}stop(){this.#i=!1,clearTimeout(this.#r),this.#f?.(),this.#f=null}runNow(){return this.#o||(this.#o=this.#y().finally(()=>{this.#o=null,this.#m()})),this.#o}async#y(){clearTimeout(this.#r);let t=!1;try{t=await this.#t()}catch{t=!1}this.#u=Date.now(),this.#n=t?this.#e:Math.min(this.#n*2,this.#l)}#m(){clearTimeout(this.#r),!(!this.#i||this.#o||fs())&&(this.#r=setTimeout(()=>{this.runNow()},this.#n))}#v=()=>{this.#i&&(fs()?clearTimeout(this.#r):Date.now()-this.#u>=this.#n?this.runNow():this.#m())}};function Nt(e){return e.topic_id===null}function nr(e=Date.now){let t=null,n=0,l=-1/0,o=()=>({typingDurationMsecs:n,composerOpenDurationMsecs:t===null?0:Math.max(0,e()-t)});return{get started(){return t!==null},start(){t??=e()},typing(){t??=e();let a=e();a-l>=100&&(n+=100,l=a)},measure:o,stop(){let a=o();return t=null,n=0,l=-1/0,a}}}function ue(e,t){return bs(e,n=>n.id===t,0,[])}function vs(e,t){return bs(e,n=>n.number===t,0,[])}function bs(e,t,n,l){for(let o of e){let a=[...l,o.id];if(t(o))return{node:o,depth:n,path:a};if(o.children.length>0){let i=bs(o.children,t,n+1,a);if(i)return i}}return null}function yo(e,t,n){return Sd(e,t,n)??e}function Sd(e,t,n){for(let l=0;l<e.length;l++){let o=e[l];if(o.id===t){let a=n(o);if(a===o)return null;let i=e.slice();return i[l]=a,i}if(o.children.length>0){let a=Sd(o.children,t,n);if(a){let i=e.slice();return i[l]={...o,children:a},i}}}return null}function _s(e,t){let n=Vb(e.children,t.children);return Date.parse(t.updated_at)<Date.parse(e.updated_at)||jb(e,t)?n===e.children?e:{...e,children:n}:{...t,children:n}}function Vb(e,t){if(t.length===0)return e;let n=new Map(e.map(i=>[i.id,i])),l=t.map(i=>{let r=n.get(i.id);return r?_s(r,i):i}),o=new Set(t.map(i=>i.id));for(let i of e)o.has(i.id)||l.push(i);return l.length===e.length&&l.every((i,r)=>i===e[r])?e:l}function jb(e,t){for(let n of Object.keys(t)){if(n==="children")continue;let l=e[n],o=t[n];if(l!==o&&(typeof l!="object"||typeof o!="object"||JSON.stringify(l)!==JSON.stringify(o)))return!1}return!0}function Nl(e,t){return yo(e,t.id,n=>_s(n,t))}function Cs(e){return e.deleted&&e.html===""&&e.author===null?e:{...e,deleted:!0,html:"",author:null,likes:{...e.likes,can_like:!1},can:{...e.can,edit:!1,delete:!1,flag:!1}}}function Ss(e,t){return yo(e,t,Cs)}function Ma(e,t,n){if(ue(e,t.id))return Nl(e,t);if(n==="end")return[...e,t];let l=0;for(;l<e.length&&e[l].pinned;)l++;return[...e.slice(0,l),t,...e.slice(l)]}function za(e,t,n,l,{bumpCounts:o}){if(ue(e,n.id))return Nl(e,n);let a=ue(e,t);if(!a)return null;let i=new Set(a.path);return Td(e,i,r=>{let u=r.id===t,s=u?l==="start"?[n,...r.children]:[...r.children,n]:r.children;return o?{...r,children:s,direct_reply_count:u?r.direct_reply_count+1:r.direct_reply_count,total_descendant_count:r.total_descendant_count+1}:{...r,children:s}})}function Td(e,t,n){return e.map(l=>{if(!t.has(l.id))return l;let o=l.children.some(a=>t.has(a.id))?Td(l.children,t,n):l.children;return n(o===l.children?l:{...l,children:o})})}function Ed(e,t,n){let l=new Map(t.map(u=>[u.id,u])),o=!1,a=e.map(u=>{let s=l.get(u.id);if(!s)return u;let m=_s(u,s);return o||=m!==u,m}),i=new Set(e.map(u=>u.id)),r=t.filter(u=>!i.has(u.id)&&!ue(n,u.id));return!o&&r.length===0?e:[...a,...r]}function wd(e){let t=[],n=l=>{for(let o of l)o.deleted||t.push(o.id),n(o.children)};return n(e),t}function jn(e){let t=0;for(let n of e)t=Math.max(t,n.number,jn(n.children));return t}function xd(e,t){let n=new Set(t),l=e.map(i=>i.pinned===n.has(i.id)?i:{...i,pinned:n.has(i.id)}),o=new Map(t.map((i,r)=>[i,r]));return[...l.filter(i=>i.pinned).sort((i,r)=>(o.get(i.id)??0)-(o.get(r.id)??0)),...l.filter(i=>!i.pinned)]}function lr(e){return e==="oldest"?"end":"start"}function Ts(e){return e==="newest"?"start":"end"}var Qb=4,kb=5,Xb=4,Zb=5,ar=class{composer=nr();#t;#e;#l=new Gn;#n=[];#r=0;#o=0;#i=null;#u=[];#f=0;#y=new Map;#m=new Map;#v=null;#_=null;#C=null;#s;#h=null;#p=0;#S=new Map;#T=!1;#N=Promise.resolve();#c=0;#R;#q=null;#x=0;#O;#b=!1;constructor(t,n,l){this.#t=n,this.#e=Object.freeze({thread:t,virtual:Nt(t),comments:[],sort:l??t.sort,status:"idle",error:null,page:0,hasMore:!1,loadingMore:!1,pendingNew:0,branches:{},awaitingApproval:[],connection:"off"}),this.#s=new tr(()=>this.#le())}get id(){return this.#e.thread.id}snapshot(){return this.#e}subscribe(t){return this.#l.on(t)}async load(){if(this.#b)return;let t=this.#e.thread;if(Nt(t)){if(this.#e.status==="ready"&&(await this.#z(),!this.#e.virtual))return;this.#a({status:"ready",comments:[],hasMore:!1,page:0}),this.#M();return}let n=++this.#o;this.#i?.abort();let l=new AbortController;this.#i=l,this.#u=[];let o=this.#d(),a=this.#e.sort;this.#a({status:"loading",error:null});try{let i=null;t.realtime==="poll"&&a!=="newest"&&(i=await this.#Z(t.id,l.signal));let r=await this.#t.http.request("GET",At(t.id),{query:{sort:a,page:0},signal:l.signal});if(n!==this.#o||!this.#g(o))return;let u=r.comments.map(f=>this.#E(f,o)),s=r.sort??a,m=s==="newest"||!r.has_more;this.#h=i!==null?Math.max(i,jn(u)):m?jn(u):null,this.#n=this.#r===o.identity?this.#n.filter(f=>!ue(u,f.id)):[],this.#a({thread:r.thread,comments:u,sort:s,page:r.page??0,hasMore:r.has_more,loadingMore:!1,branches:{},pendingNew:this.#n.length,status:"ready",error:null}),this.#_?.advanceTo(r.thread.message_bus_last_id),this.#i=null,this.#ie(),this.#M()}catch(i){if(n!==this.#o||Ra(i))return;this.#u=[];let r=Ua(i);throw this.#a({status:"error",error:r}),r}finally{this.#i===l&&(this.#i=null)}}async loadMore(){let t=this.#e;if(t.virtual||!t.hasMore||t.loadingMore||t.status!=="ready")return;let n=this.#o,l=this.#d();this.#a({loadingMore:!0});try{let o=await this.#t.http.request("GET",At(t.thread.id),{query:{sort:t.sort,page:t.page+1}});if(n!==this.#o||!this.#g(l))return;let a=o.comments.map(s=>this.#E(s,l)),i=this.#e.comments,r=[];for(let s of a)ue(i,s.id)?i=Nl(i,s):r.push(s);let u=new Set(a.map(s=>s.id));this.#n=this.#n.filter(s=>!u.has(s.id)),this.#a({comments:r.length>0?[...i,...r]:i,page:o.page??t.page+1,hasMore:o.has_more,loadingMore:!1,pendingNew:this.#n.length})}catch(o){throw n===this.#o&&this.#a({loadingMore:!1}),Ua(o)}}async loadReplies(t){let n=ue(this.#e.comments,t);if(!n)throw Es(t);let l=this.#e.branches[t];if(l?.loading)return;let o=(l?.page??-1)+1,a=this.#o,i=this.#d();this.#j(t,{page:l?.page??-1,loading:!0,hasMore:l?.hasMore??!0});try{let r=await this.#t.http.request("GET",`${At(this.id)}/children/${n.node.number}`,{query:{sort:this.#e.sort,page:o,depth:n.depth+1}});if(a!==this.#o||!this.#g(i))return;let u=r.comments.map(f=>this.#E(f,i)),s=this.#e.comments,m=yo(s,t,f=>{let c=Ed(f.children,u,s);return c===f.children?f:{...f,children:c}});for(let f of u){let c=ue(m,f.id);c&&c.path.at(-2)!==t&&(m=Nl(m,f))}this.#a({comments:m}),this.#j(t,{page:r.page??o,loading:!1,hasMore:r.has_more})}catch(r){throw a===this.#o&&this.#j(t,{page:l?.page??-1,loading:!1,hasMore:l?.hasMore??!0}),Ua(r)}}async setSort(t){t===this.#e.sort&&this.#e.status==="ready"||(this.#a({sort:t}),await this.load())}async post(t){let n=t.composer??this.composer,l=n.measure(),o=this.#e.thread,a={raw:t.body,reply_to_id:t.replyTo,typing_duration_msecs:t.typingDurationMsecs??l.typingDurationMsecs,composer_open_duration_msecs:t.composerOpenDurationMsecs??l.composerOpenDurationMsecs};if(Nt(o)){let{url:f,title:c,identifier:g}=this.#t.page;a.page={url:f,title:c,identifier:g}}let i=this.#d(),r=await this.#t.http.request("POST",`${At(o.id)}/comments`,{json:a});n.stop();let u=this.#g(i);if("pending"in r)return u&&(this.#a({awaitingApproval:[...this.#e.awaitingApproval,r.pending]}),this.#l.emit({type:"comment.pending",pending:r.pending})),{type:"pending",pending:r.pending};let{comment:s}=r;if(!u)return{type:"created",comment:s};let m=this.#e.virtual;return m?this.#K(r.thread):this.#U(r.thread),this.#re(s,t.replyTo,i),this.#l.emit({type:"comment.posted",comment:s}),m&&r.thread.count>1&&this.load().catch(()=>{}),{type:"created",comment:s}}async edit(t,n){let l=this.#d(),o=await this.#t.http.request("PATCH",this.#A(t),{json:{raw:n}});return this.#g(l)&&(this.#w([o.comment],l,()=>!1),this.#l.emit({type:"comment.edited",comment:o.comment})),o.comment}async remove(t){let n=this.#d();if(await this.#t.http.request("DELETE",this.#A(t)),!this.#g(n))return;this.#V(t);let l=this.#d();try{let o=(await this.#H([t])).comments[0];o&&this.#w([o],l,()=>!1)}catch{}this.#l.emit({type:"comment.removed",id:t})}like(t){return this.#I(t,!0)}unlike(t){return this.#I(t,!1)}async flag(t,n){await this.#t.http.request("POST",`${this.#A(t)}/flag`,{json:{flag_type:n.type,message:n.message}})}async pin(t){await this.#F(t,"PUT")}async unpin(t){await this.#F(t,"DELETE")}async raw(t){let n=this.#d(),l=await this.#t.http.request("GET",`${this.#A(t)}/raw`);return this.#G(n),l.raw}showPending(){if(this.#n.length===0)return;let t=this.#e.comments,n=lr(this.#e.sort);for(let l of this.#n)t=Ma(t,l,n);this.#n=[],this.#a({comments:t,pendingNew:0})}async context(t){let n=this.#d(),l=ue(this.#e.comments,t)?.node.number;if(l===void 0&&(l=(await this.#H([t])).comments[0]?.number,this.#G(n)),l===void 0)throw Es(t);let o=await this.#t.http.request("GET",`${At(this.id)}/context/${l}`,{query:{sort:this.#e.sort}});this.#G(n);let a=o.ancestors.map(c=>this.#E(c,n)),i=this.#E(o.comment,n),r=[...a,i],u=this.#e.comments,[s,...m]=r;s&&!ue(u,s.id)&&(u=Ma(u,s,"start"));let f=s?.id;for(let c of m)f!==void 0&&!ue(u,c.id)&&(u=za(u,f,c,"start",{bumpCounts:!1})??u),f=c.id;return this.#n=this.#n.filter(c=>!r.some(g=>g.id===c.id)),this.#a({comments:u,pendingNew:this.#n.length}),{ancestors:a,ancestorsTruncated:o.ancestors_truncated,comment:i}}dispose(){this.#b||(this.#b=!0,this.#o++,this.#i?.abort(),clearTimeout(this.#R),clearTimeout(this.#O),this.#Q(),this.#l.clear(),this.#t.onDispose())}#$(t){return Nt(t)?`pending:${t.pending_channel}`:`${t.realtime}:${t.topic_id}`}#M(){let t=this.#e.thread,n=this.#$(t);if(this.#b||this.#v===n)return;this.#Q(),this.#v=n;let{realtime:l}=this.#t;if(Nt(t))this.#_=l.subscribe(t.pending_channel,-2,()=>{this.#z()});else if(t.realtime==="live")this.#_=l.subscribe(`/topic/${t.topic_id}`,t.message_bus_last_id,o=>this.#W(o));else{this.#L(!1);return}this.#C=l.onStatus(o=>this.#k(o)),this.#k(l.status)}#L(t){this.#a({connection:"interval"}),!this.#s.active&&(this.#s.start(),t&&this.#s.runNow())}#Q(){this.#_?.unsubscribe(),this.#_=null,this.#C?.(),this.#C=null,this.#s.stop(),this.#v=null,this.#a({connection:"off"})}#k(t){if(t==="failed"){this.#L(!0);return}let n=this.#s.active;this.#s.stop(),this.#a({connection:"live"}),n&&t==="connected"&&this.#s.runNow()}#W(t){if(t.kind==="gap"){this.#s.runNow();return}if(t.kind!=="message")return;let n=t.data;if(!n||typeof n!="object")return;let l=typeof n.id=="number"?n.id:null;switch(n.type){case"created":l!==null&&this.#B(l,!0);break;case"recovered":l!==null&&(this.#y.delete(l),this.#Y(),this.#B(l,!0));break;case"revised":case"rebaked":case"liked":case"unliked":l!==null&&this.#ee(l)&&this.#B(l,!1);break;case"deleted":case"destroyed":l!==null&&this.#V(l);break;case"stats":if(typeof n.posts_count=="number"&&!Nt(this.#e.thread)){let o=Math.max(n.posts_count-1,0);o!==this.#e.thread.count&&this.#a({thread:{...this.#e.thread,count:o}})}break}}#ee(t){return ue(this.#e.comments,t)!==null||ue(this.#n,t)!==null}#B(t,n){this.#S.set(t,(this.#S.get(t)??!1)||n),this.#R===void 0&&this.#X()}#X(){this.#T||(this.#T=!0,queueMicrotask(()=>{this.#N=this.#N.then(()=>this.#te())}))}async#te(){let t=new Map(this.#S);if(this.#S.clear(),this.#T=!1,this.#b||Nt(this.#e.thread)||t.size===0)return;let n=this.#d(),l=[...t.keys()];for(let o=0;o<l.length;o+=50)try{let a=await this.#H(l.slice(o,o+50));if(!this.#g(n))return;this.#c=0,this.#U(a.thread),this.#w(a.comments,n,i=>t.get(i.id)===!0)}catch(a){if(this.#b||Ra(a))return;this.#t.log("refetch failed",a);for(let i of l.slice(o))this.#S.set(i,(this.#S.get(i)??!1)||t.get(i)===!0);this.#ne(a);return}}#ne(t){if(this.#c++,this.#c>Qb){this.#c=0,this.#S.clear(),this.#s.runNow();return}let n=Al(t)?t.waitSeconds:void 0,l=n!==void 0?n*1e3:Math.min(1e3*2**this.#c,3e4);clearTimeout(this.#R),this.#R=setTimeout(()=>{this.#R=void 0,this.#X()},l)}async#le(){let t=this.#e.thread;if(Nt(t))return await this.#z(),!this.#e.virtual;let n=this.#d(),l=this.#o,o=()=>l!==this.#o||!this.#g(n),a=t.count,i=!1;if(this.#h===null){let r=await this.#Z(t.id);if(o())return!1;this.#h=Math.max(r,jn(this.#e.comments),jn(this.#n)),i=!0}else{let r=this.#h,u=r,s=[];for(let m=0;m<Zb;m++){let f=await this.#t.http.request("GET",At(t.id),{query:{sort:"newest",page:m}});if(o())return!1;if(this.#U(f.thread),s.push(...f.comments),u=Math.max(u,jn(f.comments)),!f.has_more||f.comments.some(c=>c.number<=r))break}this.#h=u,i=this.#w(s,n,m=>m.number>r)}return i=await this.#oe(n,o)||i,i||this.#e.thread.count!==a}async#oe(t,n){let l=wd(this.#e.comments);if(l.length===0)return!1;let o=this.#p%l.length,a=[...l.slice(o),...l.slice(0,o)].slice(0,50*Xb);this.#p=o+a.length;let i=!1;for(let r=0;r<a.length;r+=50){let u=a.slice(r,r+50),s=await this.#H(u);if(n())return i;this.#U(s.thread),i=this.#w(s.comments,t,()=>!1)||i;let m=new Set(s.comments.map(f=>f.id));for(let f of u)!m.has(f)&&ue(this.#e.comments,f)?.node.deleted===!1&&(this.#V(f),i=!0)}return i}async#Z(t,n){let l=await this.#t.http.request("GET",At(t),{query:{sort:"newest",page:0},signal:n});return jn(l.comments)}#z(){return this.#q??=(async()=>{let t=this.#d();try{let n=await this.#t.resolve();if(this.#b||!this.#e.virtual)return;if(!this.#g(t)){queueMicrotask(()=>{this.#z()});return}if(this.#x=0,clearTimeout(this.#O),Nt(n)){this.#a({thread:Da(n,this.#e.thread)?this.#e.thread:n,error:null}),this.#M();return}this.#K(n),await this.load()}catch(n){if(this.#b||Ra(n))return;this.#t.log("re-resolving the thread failed",n),this.#a({error:Ua(n)}),this.#ae()}finally{this.#q=null}})(),this.#q}#ae(){if(this.#x++,clearTimeout(this.#O),this.#x>kb){this.#x=0,this.#L(!1);return}this.#O=setTimeout(()=>{this.#z()},Math.min(2e3*2**(this.#x-1),3e4))}#K(t){clearTimeout(this.#O),this.#x=0,this.#a({thread:t,virtual:!1,status:"ready",error:null}),this.#M(),this.#l.emit({type:"thread.created",thread:t})}#d(){return{seq:this.#f,identity:this.#t.identity()}}#Y(){return++this.#f}#g(t){return!this.#b&&t.identity===this.#t.identity()}#G(t){if(!this.#g(t))throw new oe("cancelled","The reader changed while this request was running")}#E(t,n){let l=t,o=this.#y.get(l.id);if(o!==void 0&&o>n.seq&&!l.deleted&&(l=Cs(l)),this.#m.has(l.id)){let a=ue(this.#e.comments,l.id)?.node.likes;a&&!Da(a,l.likes)&&(l={...l,likes:a})}if(l.children.length>0){let a=l.children.map(i=>this.#E(i,n));a.some((i,r)=>i!==l.children[r])&&(l={...l,children:a})}return l}#w(t,n,l){if(!this.#g(n)||t.length===0)return!1;let o=t.map(f=>this.#E(f,n));this.#D({kind:"comments",comments:o,insertable:new Set(o.filter(l).map(f=>f.id)),ticket:n});let a=this.#e.comments,i=this.#n,r=[],u=this.#t.currentUserId(),s=this.#e.sort;for(let f of o){if(ue(a,f.id)){a=Nl(a,f);continue}if(ue(i,f.id)){i=Nl(i,f);continue}if(!l(f)||this.#y.has(f.id))continue;let c=f.reply_to?.number;if(c===void 0){u!==null&&f.author?.id===u?(a=Ma(a,f,lr(s)),r.push({comment:f,buffered:!1})):(i=[...i,f],r.push({comment:f,buffered:!0}));continue}let g=Ts(s),v=vs(a,c);if(v){a=za(a,v.node.id,f,g,{bumpCounts:!0})??a,r.push({comment:f,buffered:!1});continue}let b=vs(i,c);b&&(i=za(i,b.node.id,f,g,{bumpCounts:!0})??i)}let m=a!==this.#e.comments||i!==this.#n;i!==this.#n&&(this.#r=n.identity),this.#n=i,this.#a({comments:a,pendingNew:i.length});for(let f of r)this.#l.emit({type:"comment.received",...f});return m}#V(t){this.#y.set(t,this.#Y()),this.#D({kind:"tombstone",id:t}),this.#J(t)}#J(t){this.#n=Ss(this.#n.filter(n=>n.id!==t),t),this.#a({comments:Ss(this.#e.comments,t),pendingNew:this.#n.length})}#D(t){this.#i&&this.#u.push(t)}#ie(){let t=this.#u;this.#u=[];for(let n of t)n.kind==="tombstone"?this.#J(n.id):n.kind==="pins"?n.identity===this.#t.identity()&&this.#P(n.ids):this.#w(n.comments,n.ticket,l=>n.insertable.has(l.id))}#re(t,n,l){this.#D({kind:"comments",comments:[t],insertable:new Set([t.id]),ticket:l});let o=this.#e.sort,a=this.#e.comments;n!==void 0?a=za(a,n,t,Ts(o),{bumpCounts:!0})??a:a=Ma(a,t,lr(o)),this.#n=this.#n.filter(i=>i.id!==t.id),this.#a({comments:a,pendingNew:this.#n.length})}async#I(t,n){let l=ue(this.#e.comments,t)?.node;if(!l)throw Es(t);let o=this.#d(),a=this.#Y(),i=this.#m.get(t)??{seq:a,confirmed:l.likes,chain:Promise.resolve()};i.seq=a,this.#m.set(t,i),l.likes.liked!==n&&this.#a({comments:yo(this.#e.comments,t,u=>({...u,likes:{...u.likes,liked:n,count:Math.max(0,u.likes.count+(n?1:-1))}}))});let r=i.chain.catch(()=>{}).then(()=>this.#t.http.request(n?"PUT":"DELETE",`${this.#A(t)}/like`));i.chain=r;try{let u=await r;return this.#g(o)&&(i.confirmed=u.comment.likes,i.seq===a&&this.#m.delete(t),this.#w([u.comment],o,()=>!1)),u.comment}catch(u){throw this.#g(o)&&i.seq===a&&(this.#m.delete(t),this.#a({comments:yo(this.#e.comments,t,s=>Da(s.likes,i.confirmed)?s:{...s,likes:i.confirmed})})),Ua(u)}}async#F(t,n){let l=this.#d(),o=await this.#t.http.request(n,`${this.#A(t)}/pin`);this.#g(l)&&(this.#D({kind:"pins",ids:o.pinned_ids,identity:l.identity}),this.#P(o.pinned_ids))}#P(t){let n=this.#e.thread;Nt(n)||this.#a({thread:Da(n.pinned_ids,t)?n:{...n,pinned_ids:t},comments:xd(this.#e.comments,t)})}#U(t){let n=this.#e.thread;if(Nt(n)||n.id!==t.id)return;let l={...t,sort:n.sort,message_bus_last_id:n.message_bus_last_id};Da(l,n)||(this.#a({thread:l}),this.#v!==null&&l.realtime!==n.realtime&&this.#M())}#H(t){return this.#t.http.request("GET",At(this.id),{query:{ids:t,sort:this.#e.sort}})}#A(t){return`${At(this.id)}/comments/${t}`}#j(t,n){this.#a({branches:{...this.#e.branches,[t]:n}})}#a(t){let n=!1;for(let l of Object.keys(t))if(t[l]!==this.#e[l]){n=!0;break}!n||this.#b||(this.#e=Object.freeze({...this.#e,...t}),this.#l.emit({type:"change",snapshot:this.#e}))}};function Da(e,t){return e===t||JSON.stringify(e)===JSON.stringify(t)}function Es(e){return new oe("not_found",`Comment ${e} is not loaded in this thread`,{status:404})}function Ua(e){return Al(e)?e:new oe("unknown",e instanceof Error?e.message:String(e),{cause:e})}var Kb=6e4,Jb=10*6e4,Ib=6;function Ad(e){return Fb(e,{})}function Fb(e,t){let n=Vn(e.forum),l=Cd(e.debug),{storage:o,syncAcrossTabs:a}=e.storage?{storage:e.storage,syncAcrossTabs:pd(e.storage)}:(()=>{let O=hd();return{storage:O.storage,syncAcrossTabs:O.isLocalStorage}})(),i=null,r=null,u=new Set,s=new AbortController,m=()=>new oe("cancelled","The comments client was disposed"),f,c=new Ii({forum:n,fetch:e.fetch,headers:e.headers,locale:e.locale,credentials:()=>f.credentials(),onInvalidKey:O=>f.invalidate(O),log:l,lifetime:s.signal});f=new $i({http:c,forum:n,storage:o,pendingStorage:gd(o),syncAcrossTabs:a,clientId:e.clientId,log:l,providers:()=>i?.auth_providers??[],navigate:t.navigate});let g=t.realtime??new er({base:n.base,fetch:c.fetch,log:l}),v=new Wi(c),b=0,S=null,h,d=0;function p(){if(s.signal.aborted)return Promise.reject(m());if(!r){let O=b;r=c.request("GET","/config").then(Z=>{if(s.signal.aborted)throw m();return O!==b?p():(i=Z,f.applyConfig(Z),clearTimeout(h),Z.degraded?y():d=0,Z)},Z=>{throw O===b&&(r=null),Z})}return r}function y(){if(s.signal.aborted||d>=Ib)return;let O=Math.min(Kb*2**d,Jb);d++,clearTimeout(h),h=setTimeout(()=>{r=null,p().catch(()=>y())},O)}let C=f.user?.id??null,A=0,E=f.onChange(O=>{if(O.status==="signing-in")return;let Z=O.status==="signed-in"?O.user?.id??null:null;if(Z===C)return;C=Z,A++;let ne=r!==null;b++,r=null,ne&&p().catch(()=>{});for(let re of u)re.load().catch(()=>{})});async function x(O={}){if(s.signal.aborted)throw m();let Z=O.url??Ji();if(!Z)throw new oe("invalid_url","No page URL: pass `url` outside the browser");let ne={url:Z,title:O.title??cd(),identifier:O.identifier},re=async()=>(await c.request("POST","/threads",{json:ne})).thread,It=await re();if(s.signal.aborted)throw m();let mt=new ar(It,{http:c,realtime:g,currentUserId:()=>f.user?.id??null,identity:()=>A,page:ne,resolve:re,log:l,onDispose:()=>u.delete(mt)},O.sort);return u.add(mt),await mt.load().catch(()=>{}),mt}async function L(O,Z,ne={}){let re=new FormData,It=ne.filename??Z.name??"upload";return re.append("file",Z,It),ne.pasted&&re.append("pasted","true"),c.request("POST",`${At(O)}/attachments`,{form:re})}function H(){return s.signal.aborted?Promise.reject(m()):(S??=c.request("GET","/theme").catch(O=>{throw S=null,O}),S)}let Ie={forum:n.base,forumOrigin:n.origin,locale:e.locale,auth:f,threads:{open:x},attachments:{upload:L},config:p,theme:H,counts:O=>v.request(O),count:async O=>(await v.request([O]))[Oa(O)]??0,preview:async O=>(await c.request("POST","/preview",{json:{raw:O}})).html,mentions:async(O,Z)=>(await c.request("GET","/mentions",{query:{q:O,thread:Z}})).users,dispose(){if(!s.signal.aborted){s.abort();for(let O of[...u])O.dispose();g.stop(),clearTimeout(h),E(),f.dispose()}}};return ot()&&f.handleRedirect(),Ie}function Pb(e=Ad){let t=new Map;return{acquire(n){let l=Vn(n.forum).base,o=t.get(l);return o||(o=e(n),t.set(l,o)),o},get(n){return t.get(Vn(n).base)},clear(n){let l=n===void 0?[...t.keys()]:[Vn(n).base];for(let o of l)t.get(o)?.dispose(),t.delete(o)}}}var yn=Pb();var vn=D(Oe(),1);var h_={signIn:"Sign in",signInWith:"Continue with {provider}",signOut:"Sign out",signingIn:"Finish signing in in the window that opened.",signInCancel:"Cancel",sessionExpired:"Your session expired. Sign in again to comment.",joinConversation:"Join the conversation",joinConversationBody:"Sign in with your {forum} account to comment.",composerPlaceholder:"Add a comment\u2026",post:"Post",posting:"Posting\u2026",reply:"Reply",replyingTo:"Replying to @{username}",cancel:"Cancel",save:"Save",edit:"Edit",edited:"Edited",delete:"Delete",deleteConfirm:"Delete this comment?",deleted:"This comment was deleted.",hidden:"This comment was hidden after reports from the community.",like:"Like",unlike:"Remove like",likeCount:{zero:"No likes",one:"{count} like",other:"{count} likes"},report:"Report",reportTitle:"Why are you reporting this comment?","report.off_topic":"Off-topic","report.inappropriate":"Inappropriate","report.spam":"Spam","report.illegal":"Illegal","report.notify_moderators":"Something else",reportMessagePlaceholder:"Tell the moderators more (optional)",reportSent:"Thanks, the moderators will take a look.",pin:"Feature",unpin:"Unfeature",pinned:"Featured",pending:"Your comment was submitted and is awaiting approval.",loadMore:"Load more comments",loadReplies:{one:"View {count} reply",other:"View {count} replies"},continueThread:"Continue this thread",newComments:{one:"{count} new comment",other:"{count} new comments"},commentCount:{zero:"No comments yet",one:"{count} comment",other:"{count} comments"},sortBy:"Sort by","sort.best":"Best","sort.hot":"Hot","sort.newest":"Newest","sort.oldest":"Oldest",closed:"Comments are closed.",readOnly:"Comments are read-only right now.",guidelines:"Community guidelines",preview:"Preview",write:"Write",unavailable:"Comments are unavailable right now.",retry:"Try again",rateLimited:{one:"You're doing that too often. Try again in {count} second.",other:"You're doing that too often. Try again in {count} seconds."},genericError:"Something went wrong. Please try again.",copyLink:"Copy link",linkCopied:"Link copied",viewOnForum:"View on {forum}",staff:"Staff",upload:"Attach image",uploading:"Uploading\u2026",comments:"Comments",signedInAs:"Signed in as {username}",loadMoreReplies:{one:"View {count} more reply",other:"View {count} more replies"},backToAll:"Back to all comments",ancestorsTruncated:"Some earlier replies are not shown.",moreActions:"More actions",commentBy:"Comment by {name}",deletedComment:"Deleted comment",repliesTo:"Replies to {name}",replyPlaceholder:"Write a reply\u2026",editing:"Editing your comment",tooShort:"Comments need at least {min} characters.",tooLong:"Comments can have at most {max} characters.",formatting:"Formatting",bold:"Bold",italic:"Italic",insertLink:"Insert link",code:"Code",quote:"Quote",mentionSuggestions:"Mention suggestions",previewEmpty:"Nothing to preview yet.",loading:"Loading\u2026",cannotComment:"You can't comment on this page.",reportMessageRequired:"Tell the moderators what's wrong",close:"Close"},p_={signIn:"Entrar",signInWith:"Continuar com {provider}",signOut:"Sair",signingIn:"Conclua o login na janela que foi aberta.",signInCancel:"Cancelar",sessionExpired:"Sua sess\xE3o expirou. Entre novamente para comentar.",joinConversation:"Participe da conversa",joinConversationBody:"Entre com sua conta de {forum} para comentar.",composerPlaceholder:"Escreva um coment\xE1rio\u2026",post:"Publicar",posting:"Publicando\u2026",reply:"Responder",replyingTo:"Respondendo a @{username}",cancel:"Cancelar",save:"Salvar",edit:"Editar",edited:"Editado",delete:"Excluir",deleteConfirm:"Excluir este coment\xE1rio?",deleted:"Este coment\xE1rio foi exclu\xEDdo.",hidden:"Este coment\xE1rio foi ocultado ap\xF3s den\xFAncias da comunidade.",like:"Curtir",unlike:"Descurtir",likeCount:{zero:"Nenhuma curtida",one:"{count} curtida",other:"{count} curtidas"},report:"Denunciar",reportTitle:"Por que voc\xEA est\xE1 denunciando este coment\xE1rio?","report.off_topic":"Fora do assunto","report.inappropriate":"Inapropriado","report.spam":"Spam","report.illegal":"Ilegal","report.notify_moderators":"Outro motivo",reportMessagePlaceholder:"Conte mais aos moderadores (opcional)",reportSent:"Obrigado, os moderadores v\xE3o analisar.",pin:"Destacar",unpin:"Remover destaque",pinned:"Em destaque",pending:"Seu coment\xE1rio foi enviado e aguarda aprova\xE7\xE3o.",loadMore:"Carregar mais coment\xE1rios",loadReplies:{one:"Ver {count} resposta",other:"Ver {count} respostas"},continueThread:"Continuar esta conversa",newComments:{one:"{count} novo coment\xE1rio",other:"{count} novos coment\xE1rios"},commentCount:{zero:"Nenhum coment\xE1rio ainda",one:"{count} coment\xE1rio",other:"{count} coment\xE1rios"},sortBy:"Ordenar por","sort.best":"Melhores","sort.hot":"Em alta","sort.newest":"Mais recentes","sort.oldest":"Mais antigos",closed:"Os coment\xE1rios est\xE3o encerrados.",readOnly:"Os coment\xE1rios est\xE3o somente leitura no momento.",guidelines:"Diretrizes da comunidade",preview:"Pr\xE9-visualizar",write:"Escrever",unavailable:"Os coment\xE1rios est\xE3o indispon\xEDveis no momento.",retry:"Tentar novamente",rateLimited:{one:"Voc\xEA est\xE1 fazendo isso com muita frequ\xEAncia. Tente novamente em {count} segundo.",other:"Voc\xEA est\xE1 fazendo isso com muita frequ\xEAncia. Tente novamente em {count} segundos."},genericError:"Algo deu errado. Tente novamente.",copyLink:"Copiar link",linkCopied:"Link copiado",viewOnForum:"Ver em {forum}",staff:"Equipe",upload:"Anexar imagem",uploading:"Enviando\u2026",comments:"Coment\xE1rios",signedInAs:"Conectado como {username}",loadMoreReplies:{one:"Ver mais {count} resposta",other:"Ver mais {count} respostas"},backToAll:"Voltar para todos os coment\xE1rios",ancestorsTruncated:"Algumas respostas anteriores n\xE3o s\xE3o exibidas.",moreActions:"Mais a\xE7\xF5es",commentBy:"Coment\xE1rio de {name}",deletedComment:"Coment\xE1rio exclu\xEDdo",repliesTo:"Respostas a {name}",replyPlaceholder:"Escreva uma resposta\u2026",editing:"Editando seu coment\xE1rio",tooShort:"Coment\xE1rios precisam ter pelo menos {min} caracteres.",tooLong:"Coment\xE1rios podem ter no m\xE1ximo {max} caracteres.",formatting:"Formata\xE7\xE3o",bold:"Negrito",italic:"It\xE1lico",insertLink:"Inserir link",code:"C\xF3digo",quote:"Cita\xE7\xE3o",mentionSuggestions:"Sugest\xF5es de men\xE7\xE3o",previewEmpty:"Nada para pr\xE9-visualizar ainda.",loading:"Carregando\u2026",cannotComment:"Voc\xEA n\xE3o pode comentar nesta p\xE1gina.",reportMessageRequired:"Conte aos moderadores o que h\xE1 de errado",close:"Fechar"},y_={en:h_,"pt-BR":p_};function Rl(e){return e?.toLowerCase().startsWith("pt")?"pt-BR":"en"}function _o(e,t={}){let n=Rl(e),l={...y_[n],...t},o=new Intl.PluralRules(n);return(a,i)=>{let r=l[a],u;if(typeof r=="string")u=r;else{let s=Number(i?.count??0),m=o.select(s);u=(s===0?r.zero:void 0)??r[m]??r.other}return u.replace(/\{(\w+)\}/g,(s,m)=>i&&m in i?String(i[m]):s)}}var So=D(Oe(),1);var ur=D(Oe(),1);var jd=typeof window>"u"?ur.useEffect:ur.useLayoutEffect;function Be(e){return Al(e)?e:new oe("unknown",e instanceof Error?e.message:String(e),{cause:e})}function Qd(){}function Co(e){let t=e.getRootNode();return t instanceof Document||t instanceof ShadowRoot?t:e.ownerDocument}function kd(){if(typeof window>"u")return!1;let e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e==="[::1]"||e.endsWith(".localhost")||e.endsWith(".test")}function Xd(e){try{return globalThis.localStorage?.getItem(e)??""}catch{return""}}function Zd(e,t){try{t.trim()===""?globalThis.localStorage?.removeItem(e):globalThis.localStorage?.setItem(e,t)}catch{}}var rr=new Set,zs;function Kd(e){return rr.add(e),zs??=setInterval(()=>{for(let t of[...rr])t()},6e4),()=>{rr.delete(e),rr.size===0&&(clearInterval(zs),zs=void 0)}}var v_=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60]];function Jd(e,t,n){let l=Math.round((Date.parse(e)-t)/1e3),o=new Intl.RelativeTimeFormat(n,{numeric:"auto"});for(let[a,i]of v_)if(Math.abs(l)>=i)return o.format(Math.round(l/i),a);return o.format(0,"second")}function Ds(e,t){return new Intl.DateTimeFormat(t,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e))}var Us=(0,So.createContext)(null),b_=_o();function Id(e){let t=Ol(e);if(!t)throw new Error(`${he}: render this inside <DiscourseComments forum="\u2026"> or pass a \`forum\` prop`);return t}function Ol(e){let t=(0,So.useContext)(Us);return(0,So.useMemo)(()=>e===void 0||t&&Vn(e).base===t.client.forum?null:{client:yn.acquire({forum:e}),t:t?.t??b_,locale:t?.locale??Rl(void 0),messages:t?.messages,theme:t?.theme??"auto",appearance:t?.appearance,debug:t?.debug??!1,emit:t?.emit??Qd},[e,t])??t}var Wd=D($(),1),S_=new Set(["cancelled","invalid_key"]);function Ha(e){let{children:t,appearance:n,locale:l,messages:o,theme:a="auto",debug:i=!1,onEvent:r}=e,u=e.client,s=e.forum,m=e.forum===void 0?null:{forum:e.forum,fetch:e.fetch,headers:e.headers,storage:e.storage,clientId:e.clientId,locale:l,debug:i},f=(0,vn.useMemo)(()=>u??yn.acquire(m),[u,s]),c=o?JSON.stringify(o):"",g=(0,vn.useMemo)(()=>_o(l,o),[l,c]),v=(0,vn.useRef)(r);(0,vn.useEffect)(()=>{v.current=r});let b=(0,vn.useMemo)(()=>({client:f,t:g,locale:Rl(l),messages:o,theme:a,appearance:n,debug:i,emit:S=>v.current?.(S)}),[f,g,l,c,a,n,i]);return(0,vn.useEffect)(()=>{let S=f.auth.state();return f.auth.onChange(h=>{let d=S.status==="signed-in";h.status==="signed-in"&&h.user&&!d?v.current?.({type:"auth.signedIn",user:h.user}):h.status==="anonymous"&&d&&v.current?.({type:"auth.signedOut",expired:h.error?.type==="invalid_key"});let p=h.error;p&&p!==S.error&&!S_.has(p.type)&&v.current?.({type:"error",action:"signIn",error:p}),S=h})},[f]),(0,Wd.jsx)(Us.Provider,{value:b,children:t})}var _e=D(Oe(),1);function w(...e){return e.filter(Boolean).join(" ")}function eg(...e){let t={},n={};for(let l of e)if(l){Object.assign(t,l.variables);for(let[o,a]of Object.entries(l.elements??{}))n[o]=w(n[o],a)||void 0}return{variables:t,elements:n}}function tg(e){let t={};for(let[n,l]of Object.entries(e??{}))l!==void 0&&l!==""&&(t[`--gc-${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}`]=l);return t}var X=D(Oe(),1);var K=D($(),1);function jt({children:e}){return(0,K.jsx)("svg",{className:"gc-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:e})}function ng({filled:e=!1}){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{fill:e?"currentColor":"none",d:"M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z"})})}function lg(){return(0,K.jsxs)(jt,{children:[(0,K.jsx)("path",{d:"M9 17 4 12l5-5"}),(0,K.jsx)("path",{d:"M20 18v-2a4 4 0 0 0-4-4H4"})]})}function og(){return(0,K.jsxs)(jt,{children:[(0,K.jsx)("circle",{cx:"5",cy:"12",r:"1"}),(0,K.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,K.jsx)("circle",{cx:"19",cy:"12",r:"1"})]})}function ag(){return(0,K.jsxs)(jt,{children:[(0,K.jsx)("path",{d:"M12 17v5"}),(0,K.jsx)("path",{d:"M9 10.8V4h6v6.8l2 3.2H7z"})]})}function ig(){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7H7zM7 12h7a3.5 3.5 0 0 1 0 7H7z"})})}function rg(){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{d:"M19 4h-9M14 20H5M15 4 9 20"})})}function ug(){return(0,K.jsxs)(jt,{children:[(0,K.jsx)("path",{d:"M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7"}),(0,K.jsx)("path",{d:"M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7"})]})}function sg(){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"})})}function cg(){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{d:"M3 21c3 0 7-1 7-8V5H3v7h4c0 3-1 5-4 6zM14 21c3 0 7-1 7-8V5h-7v7h4c0 3-1 5-4 6z"})})}function fg(){return(0,K.jsxs)(jt,{children:[(0,K.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,K.jsx)("circle",{cx:"9",cy:"9",r:"2"}),(0,K.jsx)("path",{d:"m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21"})]})}function mg(){return(0,K.jsx)(jt,{children:(0,K.jsx)("path",{d:"m15 18-6-6 6-6"})})}var j=D(Oe(),1);var dg='.gc-root[data-gc-theme="forum"]',T_='.gc-root--styled[data-gc-theme="forum"]',E_=[["fg","primary"],["fg-muted","primary-medium"],["bg","secondary"],["bg-subtle","primary-very-low"],["border","primary-low"],["accent","tertiary"],["accent-fg","secondary"],["danger","danger"]],vg=/^[\w-]+$/,bg=/^[^;{}<>]+$/,w_=/^[^"'\;{}<>]+$/,x_=/^url\("https?:\/\/[^"\s<>]+"\)(?:\s+format\("[\w-]+"\))?$|^local\("[^"\\<>]+"\)$/,A_=/^(?:[1-9]\d{0,2}|normal|bold)$/,N_=new Set(["light","dark"]),gg="data-gc-forum-theme",hg="data-gc-forum-fonts";function pg(e){let t="";for(let[n,l]of Object.entries(e.colors))vg.test(n)&&bg.test(l)&&(t+=`--gc-forum-${n}:${l};`);return N_.has(e.type)&&(t+=`color-scheme:${e.type};`),t}function R_(e){let t="";for(let[n,l]of Object.entries(e))l&&vg.test(n)&&bg.test(l.stack)&&(t+=`--gc-forum-font-${n}:${l.stack};`);return t}function O_(e){let t="";for(let[n,l]of E_)l in e.schemes.light.colors&&(t+=`--_gc-${n}:var(--gc-${n},var(--gc-forum-${l}));`);return e.fonts.body&&(t+="--_gc-font:var(--gc-font,var(--gc-forum-font-body));"),t}function M_(e){let{light:t,dark:n}=e.schemes,l=`${dg}{${pg(t)}${R_(e.fonts)}}
|
|
13
|
+
`;return l+=`${T_}{${O_(e)}}
|
|
14
|
+
`,n&&(l+=`@media (prefers-color-scheme: dark){${dg}{${pg(n)}}}
|
|
15
|
+
`),l}function z_(e){let t="",n=new Set;for(let l of Object.values(e.fonts))for(let o of l?.faces??[]){let a=String(o.weight),i=`@font-face{font-family:"${o.family}";src:${o.src};font-weight:${a};font-display:swap;}
|
|
16
|
+
`;w_.test(o.family)&&x_.test(o.src)&&A_.test(a)&&!n.has(i)&&(n.add(i),t+=i)}return t}function D_(e,t){let n=t.startsWith("https:"),l=[];for(let o of e.stylesheets){let a;try{a=new URL(o)}catch{continue}(a.protocol==="https:"||!n&&a.protocol==="http:")&&l.push(a.href)}return l}function U_(e,t){return`@layer gc-defaults, gc-forum;
|
|
17
|
+
${D_(e,t).map(l=>`@import url(${JSON.stringify(l)}) layer(gc-forum);
|
|
18
|
+
`).join("")}@layer gc-forum{
|
|
19
|
+
${M_(e)}}
|
|
20
|
+
`}function H_(e){return e.nodeType===9?e:e.ownerDocument}function yg(e,t,n,l,o){let a=!1;for(let i of e.querySelectorAll(`[${t}]`)){let r=i.getAttribute(t);r===l?a=!0:r?.startsWith(`${n}#`)&&i.remove()}a||e.append(...o())}function _g(e,t,n){let l=H_(e),o=e.nodeType===9?l.head:e,a=`${n}#${t.version}`;yg(o,gg,n,a,()=>{let r=l.createElement("style");return r.setAttribute(gg,a),r.textContent=U_(t,n),[r]});let i=z_(t);i&&yg(l.head,hg,n,a,()=>{let r=l.createElement("style");return r.setAttribute(hg,a),r.textContent=i,[r]})}var Qn=D(Oe(),1);var Ml=D(Oe(),1);var Sg=new WeakMap;function Cg(e){return{client:e,config:Sg.get(e)??null,error:null}}function Tg(e){let[t,n]=(0,Ml.useState)(()=>Cg(e)),l=t;t.client!==e&&(l=Cg(e),n(l));let[o,a]=(0,Ml.useState)(0);(0,Ml.useEffect)(()=>{let r=!0,u=f=>n(c=>r&&c.client===e?f(c):c),s=()=>e.config().then(f=>{Sg.set(e,f),u(c=>c.config===f&&!c.error?c:{client:e,config:f,error:null})},f=>{u(c=>({...c,error:Be(f)}))});s();let m=e.auth.onChange(()=>{s()});return()=>{r=!1,m()}},[e,o]);let i=(0,Ml.useCallback)(()=>a(r=>r+1),[]);return{config:l.config,error:l.error,reload:i}}function Eg(e,t){let{auth:n}=e,l=(0,Qn.useCallback)(u=>n.onChange(u),[n]),o=(0,Qn.useCallback)(()=>n.state(),[n]),a=(0,Qn.useSyncExternalStore)(l,o,o),i=(0,Qn.useMemo)(()=>({signIn:u=>n.signIn(u),cancelSignIn:()=>n.cancelSignIn(),signOut:()=>n.signOut()}),[n]),r=t?.auth_providers??n.providers;return(0,Qn.useMemo)(()=>({user:a.user,status:a.status,providers:r,degraded:a.degraded,error:a.error,...i}),[a,r,i])}var cr=D(Oe(),1);var xg=new WeakMap;function wg(e){return{client:e,theme:xg.get(e)??null,error:null}}function Ag(e,t){let[n,l]=(0,cr.useState)(()=>wg(e)),o=n;return n.client!==e&&(o=wg(e),l(o)),(0,cr.useEffect)(()=>{if(!t)return;let a=!0;return e.theme().then(i=>{xg.set(e,i),a&&l(r=>r.client===e&&r.theme!==i?{client:e,theme:i,error:null}:r)},i=>{a&&l(r=>r.client===e?{...r,error:Be(i)}:r)}),()=>{a=!1}},[e,t]),{theme:o.theme,error:o.error}}var Pe=D(Oe(),1);function Ng(e,{identifier:t,url:n,title:l,sort:o},a){let[i,r]=(0,Pe.useState)(0),[u,s]=(0,Pe.useState)({thread:null,error:null}),m=n===void 0?ho()??"":"",f=(0,Pe.useRef)({title:l,sort:o,onOpenError:a});f.current={title:l,sort:o,onOpenError:a};let c=(0,Pe.useRef)(o);(0,Pe.useEffect)(()=>{let d=!0,p=null;return s(y=>y.thread||y.error?{thread:null,error:null}:y),queueMicrotask(()=>{if(!d)return;let{title:y,sort:C}=f.current;c.current=C,e.threads.open({identifier:t,url:n,title:y,sort:C}).then(A=>{if(!d){A.dispose();return}p=A,s({thread:A,error:null})},A=>{if(d){let E=Be(A);s({thread:null,error:E}),f.current.onOpenError?.(E)}})}),()=>{d=!1,p?.dispose()}},[e,t,n,m,i]);let{thread:g}=u;(0,Pe.useEffect)(()=>{g&&o!==void 0&&o!==c.current&&(c.current=o,g.setSort(o).catch(()=>{}))},[g,o]);let v=(0,Pe.useCallback)(d=>g?g.subscribe(d):()=>{},[g]),b=(0,Pe.useCallback)(()=>g?.snapshot()??null,[g]),S=(0,Pe.useSyncExternalStore)(v,b,b),h=(0,Pe.useCallback)(()=>{g?g.load().catch(()=>{}):r(d=>d+1)},[g]);return{thread:g,snapshot:S,error:u.error,retry:h}}var To=D($(),1),Rg=(0,j.createContext)(null);function ae(e="This component"){let t=(0,j.useContext)(Rg);if(!t)throw new Error(`${he}: ${e} must be rendered inside <Comments.Root>`);return t}function Hs(e){return Ol(e.forum)?(0,To.jsx)(q_,{...e}):(0,To.jsx)("section",{className:w("gc-root","gc-root--unconfigured",e.className),"data-gc-unconfigured":"",children:(0,To.jsx)("p",{className:"gc-notice",children:`${he}: render <Comments> inside <DiscourseComments forum="\u2026"> or pass a forum prop.`})})}function q_(e){let{forum:t,identifier:n,url:l,title:o,sort:a,maxDepth:i=2,signIn:r="inline",onSignInRequired:u,readOnly:s=!1,highlight:m,guidelinesUrl:f,onPosted:c,appearance:g,unstyled:v=!1,theme:b,locale:S,className:h,children:d}=e,p=Id(t),{client:y,emit:C}=p,A=(0,j.useRef)(null),E=(0,j.useMemo)(()=>S?_o(S,p.messages):p.t,[S,p.messages,p.t]),x=S?Rl(S):p.locale,L=b??p.theme,{variables:H,elements:Ie}=(0,j.useMemo)(()=>eg(p.appearance,g),[p.appearance,g]),O=(0,j.useRef)(void 0),Z=(0,j.useCallback)((le,Re)=>C({type:"error",action:le,error:Be(Re),threadId:O.current}),[C]),{thread:ne,snapshot:re,error:It,retry:mt}=Ng(y,{identifier:n,url:l,title:o,sort:a},le=>Z("open",le));O.current=ne?.id;let{config:ao,error:io,reload:Gt}=Tg(y),Sl=Eg(y,ao),Tl=Ag(y,L==="forum");(0,j.useEffect)(()=>{let le=A.current;L==="forum"&&Tl.theme&&le&&_g(Co(le),Tl.theme,y.forum)},[L,Tl.theme,y.forum]);let qn=L==="forum"?Tl.error:null;(0,j.useEffect)(()=>{qn&&Z("theme",qn)},[qn,Z]);let ls=(0,j.useCallback)(()=>{mt(),io&&Gt()},[mt,io,Gt]),gn=re?.status==="error"?re.error:null;(0,j.useEffect)(()=>{gn&&Z("load",gn)},[gn,Z]);let ro=Sl.user?.id??null,[hn,uo]=(0,j.useState)({userId:ro,thread:null});hn.userId!==ro&&uo({userId:ro,thread:re?.thread??null});let Ea=!!re&&re.thread!==hn.thread,Ln=Sl.status==="signed-in",so=re?.thread.closed??!1,El=!s&&!Sl.degraded,wl=!!re&&re.status!=="error"&&El&&!so,co=wl&&Ln&&Ea&&!re.thread.can_comment,fo=wl&&!co&&(Ln||r==="on-submit"),os=wl&&!co,[Bn,xl]=(0,j.useState)(null),Fe=(0,j.useRef)(0),[td,Bi]=(0,j.useState)(null),wa=(0,j.useRef)(null),[,dt]=(0,j.useState)(0),Ft=(0,j.useCallback)((le,Re)=>{wa.current={id:le,scroll:Re?.scroll??!1},dt(lt=>lt+1)},[]);(0,j.useEffect)(()=>{let le=wa.current,Re=le&&A.current?.querySelector(`#gc-${le.id}`);!le||!Re||(wa.current=null,le.scroll&&Re.scrollIntoView?.({block:"center"}),Re.focus({preventScroll:le.scroll}))}),(0,j.useEffect)(()=>{Fe.current++,xl(null)},[ne]);let Yi=(0,j.useCallback)(async le=>{if(!ne)return;let Re=++Fe.current;try{let lt=await ne.context(le);if(Re!==Fe.current)return;xl({id:le,ancestors:lt.ancestors,truncated:lt.ancestorsTruncated}),Ft(le)}catch(lt){Re===Fe.current&&Z("context",lt)}},[ne,Ft,Z]),Gi=(0,j.useCallback)(()=>{Fe.current++,Bn&&Ft(Bn.id),xl(null)},[Bn,Ft]),as=L_(),pn=m??as,xa=(0,j.useRef)(null),Vi=re?.status==="ready";(0,j.useEffect)(()=>{let le=xa.current;if(!ne||!Vi||pn===null||le?.thread===ne&&le.id===pn)return;xa.current={thread:ne,id:pn};let Re=pn,lt=++Fe.current;(async()=>{let Vt=ue(ne.snapshot().comments,Re);if(!Vt){try{await ne.context(Re)}catch(mo){lt===Fe.current&&Z("context",mo);return}Vt=ue(ne.snapshot().comments,Re)}if(!(!Vt||lt!==Fe.current)){if(Vt.depth>i){let mo=Vt.depth-i,us=ne.snapshot().comments,Na=Vt.path.slice(0,mo).map(Yn=>ue(us,Yn)?.node).filter(Yn=>Yn!==void 0);xl({id:Vt.path[mo],ancestors:Na,truncated:!1})}else xl(null);Bi(Re),Ft(Re,{scroll:!0})}})()},[ne,Vi,pn,i,Ft,Z]);let ji=(0,j.useRef)(u);ji.current=u;let is=r!=="manual"||u!==void 0,rs=(0,j.useCallback)(()=>y.auth.status==="signed-in"?Promise.resolve(!0):r==="manual"?(ji.current?.(),Promise.resolve(!1)):y.auth.signIn().then(le=>le!==null,()=>!1),[y,r]),Aa=re?.thread.key,Qi=(0,j.useCallback)(le=>Aa===void 0?null:`${"gc"}:${y.forum}:draft:${Aa}:${le}`,[y.forum,Aa]),ki={client:y,t:E,locale:x,thread:ne,snapshot:re,openError:It,retry:ls,config:ao,configError:io,commenter:Sl,maxDepth:i,signInMode:r,readOnly:s,guidelinesUrl:f??ao?.guidelines_url??null,debug:p.debug,elements:Ie,writable:El,canCompose:fo,commentingDenied:co,canReply:os,canRequestSignIn:is,focusView:Bn,continueThread:Yi,closeFocusView:Gi,highlightId:td,focusComment:Ft,ensureSignedIn:rs,reportError:Z,emit:C,onPosted:c,draftKey:Qi};return(0,To.jsx)(Rg.Provider,{value:ki,children:(0,To.jsx)("section",{ref:A,className:w("gc-root",!v&&"gc-root--styled",Ie.root,h),"data-gc-theme":L==="inherit"?void 0:L,style:tg(H),"aria-label":E("comments"),"aria-busy":!re&&!It?!0:void 0,children:d})})}function L_(){let[e,t]=(0,j.useState)(null);return(0,j.useEffect)(()=>{let n=()=>{let l=/^#gc-(\d+)$/.exec(window.location.hash);t(l?Number(l[1]):null)};return n(),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}function Og(e,t,n,l){let o=e.slice(t,n);switch(l){case"bold":return qs(e,t,n,"**","**");case"italic":return qs(e,t,n,"*","*");case"code":return o.includes(`
|
|
21
|
+
`)?B_(e,t,n):qs(e,t,n,"`","`");case"link":{let a="https://",i=t+o.length+3;return{value:`${e.slice(0,t)}[${o}](${a})${e.slice(n)}`,selectionStart:i,selectionEnd:i+a.length}}case"quote":return Y_(e,t,n)}}function Ls(e,t,n,l){let o=t+l.length;return{value:e.slice(0,t)+l+e.slice(n),selectionStart:o,selectionEnd:o}}function Mg(e){let t=e.original_filename.replace(/\.[^.]+$/,"").replace(/[[\]|]/g,""),n=e.width&&e.height?`|${e.width}x${e.height}`:"";return``}function zg(e,t){let n=/(?:^|[\s([{])@([\w.-]{1,60})$/.exec(e.slice(0,t));if(!n)return null;let l=n[1];return{start:t-l.length-1,query:l}}function qs(e,t,n,l,o){return{value:e.slice(0,t)+l+e.slice(t,n)+o+e.slice(n),selectionStart:t+l.length,selectionEnd:n+l.length}}function B_(e,t,n){let o=`${t>0&&e[t-1]!==`
|
|
14
22
|
`?`
|
|
15
23
|
`:""}\`\`\`
|
|
16
|
-
`;return{value:e.slice(0,t)+
|
|
17
|
-
`,t-1)+1,
|
|
18
|
-
`),o
|
|
19
|
-
`);return{value:e.slice(0,l)+
|
|
24
|
+
`;return{value:e.slice(0,t)+o+e.slice(t,n)+"\n```\n"+e.slice(n),selectionStart:t+o.length,selectionEnd:n+o.length}}function Y_(e,t,n){let l=e.lastIndexOf(`
|
|
25
|
+
`,t-1)+1,o=e.slice(l,n).split(`
|
|
26
|
+
`),a=o.map(i=>`> ${i}`).join(`
|
|
27
|
+
`);return{value:e.slice(0,l)+a+e.slice(n),selectionStart:t+2,selectionEnd:n+2*o.length}}var kn=D(Oe(),1);var G_=150;function Dg(e){let{client:t,threadId:n,enabled:l,value:o,caret:a,onPick:i}=e,r=l?zg(o,a):null,[u,s]=(0,kn.useState)({query:"",users:[]}),[m,f]=(0,kn.useState)(0),[c,g]=(0,kn.useState)(null),v=r?`${r.start}:${r.query}`:null;(0,kn.useEffect)(()=>{if(!r)return;let d=!0,p=setTimeout(()=>{t.mentions(r.query,n).then(y=>{d&&(s({query:r.query,users:y}),f(0))},()=>{})},G_);return()=>{d=!1,clearTimeout(p)}},[t,n,r?.query]);let b=r!==null&&u.query===r.query&&u.users.length>0&&c!==v,S=(0,kn.useCallback)(d=>{let p=u.users[d];r&&p&&i(r,p.username)},[u.users,r,i]),h=d=>{if(!b)return!1;let p=u.users.length;switch(d.key){case"ArrowDown":f(y=>(y+1)%p);break;case"ArrowUp":f(y=>(y-1+p)%p);break;case"Enter":case"Tab":if(d.metaKey||d.ctrlKey)return!1;S(m);break;case"Escape":g(v);break;default:return!1}return d.preventDefault(),d.stopPropagation(),!0};return{open:b,users:u.users,active:m,setActive:f,onKeyDown:h,pick:S}}var M=D($(),1);function zl(e){let t=ae("Comments.Composer");return!t.thread||!t.snapshot||!Ug(t,e.editing)?null:(0,M.jsx)(j_,{...e,thread:t.thread})}function Ug(e,t){return t?e.writable&&e.commenter.status==="signed-in"&&t.can.edit:e.canCompose}var V_=[{format:"bold",label:"bold",icon:(0,M.jsx)(ig,{})},{format:"italic",label:"italic",icon:(0,M.jsx)(rg,{})},{format:"link",label:"insertLink",icon:(0,M.jsx)(ug,{})},{format:"code",label:"code",icon:(0,M.jsx)(sg,{})},{format:"quote",label:"quote",icon:(0,M.jsx)(cg,{})}];function j_({replyTo:e,editing:t,placeholder:n,autoFocus:l,onDone:o,className:a,thread:i}){let r=ae(),{t:u,client:s,config:m,commenter:f,elements:c}=r,g=(0,X.useId)(),v=(0,X.useRef)(null),b=(0,X.useRef)(null),S=(0,X.useRef)(null),[h]=(0,X.useState)(nr),d=t?null:r.draftKey(e?`reply:${e.id}`:"root"),[p,y]=(0,X.useState)(()=>d?Xd(d):""),C=(0,X.useRef)(p);C.current=p;let[A,E]=(0,X.useState)(0),[x,L]=(0,X.useState)(t?"loading":"loaded"),[H,Ie]=(0,X.useState)(0),[O,Z]=(0,X.useState)("write"),[ne,re]=(0,X.useState)({html:null,loading:!1,failed:!1}),It=(0,X.useRef)(0),[mt,ao]=(0,X.useState)(!1),[io,Gt]=(0,X.useState)(null),[Sl,Tl]=(0,X.useState)(0),[qn,ls]=k_(),gn=(0,X.useRef)(0),ro=(0,X.useRef)(!0);ro.current=Ug(r,t);let hn=(0,X.useCallback)((T,N)=>{C.current=T,y(T),d&&Zd(d,T),N&&(S.current=N)},[d]),uo=(0,X.useCallback)(T=>hn(T.value,[T.selectionStart,T.selectionEnd]),[hn]);jd(()=>{let T=S.current,N=v.current;T&&N&&(S.current=null,N.focus(),N.setSelectionRange(T[0],T[1]),E(T[1]))}),(0,X.useEffect)(()=>{let T=v.current;if(l&&!t&&T){let N=C.current.length;T.focus(),T.setSelectionRange(N,N),E(N)}},[l,t]),(0,X.useEffect)(()=>()=>{gn.current++},[i]);let Ea=t?.id;(0,X.useEffect)(()=>{if(Ea===void 0)return;let T=!0;return L("loading"),Gt(null),i.raw(Ea).then(N=>{T&&(hn(N,[N.length,N.length]),L("loaded"))},N=>{T&&(Gt(Be(N)),L("failed"))}),()=>{T=!1}},[i,Ea,hn,H]),(0,X.useEffect)(()=>{qn===0&&Gt(T=>T?.type==="rate_limit"?null:T)},[qn]);let Ln=f.status==="signed-in",so=f.status==="signing-in",El=Ln&&m?.features.uploads===!0,wl=Math.max(m?.limits.min_post_length??1,1),co=m?.limits.max_post_length??Number.POSITIVE_INFINITY,fo=p.trim().length,os=fo>0&&fo<wl,Bn=fo>co,xl=x==="loading",Fe=x==="loaded"&&!mt,Bi=!(mt||x!=="loaded"||Sl>0||qn>0||so)&&fo>=wl&&!Bn,wa=(0,X.useCallback)((T,N)=>uo(Ls(C.current,T.start,A,`@${N} `)),[uo,A]),dt=Dg({client:s,threadId:i.id,enabled:Ln&&m?.features.mentions!==!1&&O==="write"&&Fe,value:p,caret:A,onPick:wa});async function Ft(){if(!ro.current)return;let T=C.current;ao(!0),Gt(null);try{if(t){await i.edit(t.id,T),o?.();return}let N=await i.post({body:T,replyTo:e?.id,composer:h});C.current===T&&hn(""),Z("write"),N.type==="created"?(r.emit({type:"comment.posted",threadId:i.id,comment:N.comment}),e&&r.focusComment(N.comment.id)):r.emit({type:"comment.pending",threadId:i.id,pending:N.pending}),r.onPosted?.(N),o?.()}catch(N){let ve=Be(N);ve.type==="rate_limit"&&ve.waitSeconds&&ls(ve.waitSeconds),Gt(ve),r.reportError(t?"edit":"post",ve)}finally{ao(!1)}}function Yi(){if(Bi){if(Ln){Ft();return}if(r.signInMode==="on-submit"){let T=++gn.current;Gt(null),s.auth.signIn().then(N=>{N&&T===gn.current&&Ft()},N=>{let ve=Be(N);T===gn.current&&ve.type!=="cancelled"&&Gt(ve)})}}}function Gi(){gn.current++,o?.()}function as(T){let N=v.current,ve=N?.selectionStart??C.current.length,xt=N?.selectionEnd??ve;uo(Og(C.current,ve,xt,T))}async function pn(T,N=!1){for(let ve of T.filter(xt=>xt.type.startsWith("image/"))){Tl(xt=>xt+1);try{let xt=await s.attachments.upload(i.id,ve,{pasted:N}),nd=v.current,ss=C.current,Zi=nd?.selectionStart??ss.length,cb=nd?.selectionEnd??Zi,fb=Zi>0&&ss[Zi-1]!==`
|
|
20
28
|
`?`
|
|
21
|
-
`:"";
|
|
22
|
-
`))}catch(wt){Yt(Ie(wt)),r.reportError("upload",wt)}finally{Hi(wt=>wt-1)}}}function So(){_e("preview");let T=C.current,R=++oa.current;if(!T.trim()){pe({html:null,loading:!1,failed:!1});return}pe({html:null,loading:!0,failed:!1}),c.preview(T).then(ye=>{R===oa.current&&pe({html:ye,loading:!1,failed:!1})},ye=>{R===oa.current&&(pe({html:null,loading:!1,failed:!0}),r.reportError("preview",ye))})}function lc(T){h.typing(),qn(T.target.value),E(T.target.selectionStart)}function ac(T){st.onKeyDown(T)||(T.key==="Enter"&&(T.metaKey||T.ctrlKey)?(T.preventDefault(),Vi()):T.key==="Escape"&&(e||t)&&(T.preventDefault(),Vn()))}function To(T){let R=[...T.clipboardData.files];Yn&&Gn&&R.some(ye=>ye.type.startsWith("image/"))&&(T.preventDefault(),ua(R,!0))}function oc(T){Yn&&Gn&&T.dataTransfer.types.includes("Files")&&T.preventDefault()}function ic(T){let R=[...T.dataTransfer.files];Yn&&Gn&&R.length>0&&(T.preventDefault(),ua(R))}function fe(T){(T.key==="ArrowLeft"||T.key==="ArrowRight")&&(T.preventDefault(),be==="write"?So():_e("write"),ur(T.currentTarget).getElementById(`${g}-${be==="write"?"preview":"write"}-tab`)?.focus())}let Oe=t?u("editing"):e?u("replyingTo",{username:e.author?.username??""}):u("composerPlaceholder"),Et=`${g}-hint`,Kt=`${g}-error`,mn=`${g}-mentions`,Eo=ra?b1(ra,Un,u):[],rc=u(t?"save":e?"reply":"post"),wo=t?void 0:u(e?"replyPlaceholder":"composerPlaceholder"),uc=Tt?u("tooLong",{max:Li}):xl?u("tooShort",{min:Co}):null,Qi=Ln,Xi=!e&&!t;return(0,M.jsxs)("div",{className:x("gc-composer",e&&"gc-composer--replying",t&&"gc-composer--editing",s.composer,o),children:[Xi&&r.guidelinesUrl&&(0,M.jsx)("a",{className:"gc-composer__guidelines",href:r.guidelinesUrl,target:"_blank",rel:"noopener noreferrer",children:u("guidelines")}),!Xi&&(0,M.jsx)("p",{className:"gc-composer__context",children:Oe}),Qi&&(0,M.jsxs)("div",{className:"gc-composer__tabs",role:"tablist",children:[(0,M.jsx)("button",{type:"button",role:"tab",id:`${g}-write-tab`,className:"gc-composer__tab","aria-selected":be==="write","aria-controls":`${g}-write`,tabIndex:be==="write"?0:-1,onClick:()=>_e("write"),onKeyDown:fe,children:u("write")}),(0,M.jsx)("button",{type:"button",role:"tab",id:`${g}-preview-tab`,className:"gc-composer__tab","aria-selected":be==="preview","aria-controls":`${g}-preview`,tabIndex:be==="preview"?0:-1,onClick:So,onKeyDown:fe,children:u("preview")})]}),(0,M.jsxs)("div",{className:"gc-composer__panel",id:`${g}-write`,role:Qi?"tabpanel":void 0,"aria-labelledby":Qi?`${g}-write-tab`:void 0,hidden:be!=="write",children:[Ln&&(0,M.jsxs)("div",{className:x("gc-toolbar",s.toolbar),role:"group","aria-label":u("formatting"),children:[y1.map(({format:T,label:R,icon:ye})=>(0,M.jsx)("button",{type:"button",className:"gc-toolbar__button","aria-label":u(R),title:u(R),disabled:!Gn,onClick:()=>ji(T),children:ye},T)),Yn&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("button",{type:"button",className:"gc-toolbar__button","aria-label":u("upload"),title:u("upload"),disabled:!Gn,onClick:()=>b.current?.click(),children:(0,M.jsx)(sg,{})}),(0,M.jsx)("input",{ref:b,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:T=>{let R=[...T.target.files??[]];T.target.value="",ua(R)}})]})]}),(0,M.jsxs)("div",{className:"gc-composer__field",children:[(0,M.jsx)("textarea",{ref:v,className:x("gc-composer__input",s.textarea),value:p,placeholder:n??wo,"aria-label":Oe,"aria-describedby":x(uc&&Et,Eo.length>0&&Kt)||void 0,"aria-invalid":Tt||void 0,"aria-autocomplete":st.open?"list":void 0,"aria-controls":st.open?mn:void 0,"aria-activedescendant":st.open?`${mn}-${st.active}`:void 0,rows:Xi?3:2,disabled:A!=="loaded",readOnly:Dn,onChange:lc,onSelect:T=>E(T.currentTarget.selectionStart),onFocus:()=>h.start(),onKeyDown:ac,onPaste:To,onDragOver:oc,onDrop:ic}),st.open&&(0,M.jsx)("ul",{className:"gc-mentions",role:"listbox",id:mn,"aria-label":u("mentionSuggestions"),children:st.users.map((T,R)=>(0,M.jsxs)("li",{id:`${mn}-${R}`,role:"option","aria-selected":R===st.active,className:x("gc-mentions__option",R===st.active&&"gc-mentions__option--active"),onMouseDown:ye=>{ye.preventDefault(),st.pick(R)},onMouseEnter:()=>st.setActive(R),children:[(0,M.jsx)("img",{className:"gc-avatar gc-avatar--small",src:T.avatar_url,alt:""}),(0,M.jsxs)("span",{className:"gc-mentions__username",children:["@",T.username]}),T.name&&(0,M.jsx)("span",{className:"gc-mentions__name",children:T.name})]},T.id))})]})]}),Qi&&(0,M.jsx)("div",{className:"gc-composer__panel",id:`${g}-preview`,role:"tabpanel","aria-labelledby":`${g}-preview-tab`,"aria-busy":de.loading||void 0,hidden:be!=="preview",children:de.loading?(0,M.jsx)("p",{className:"gc-composer__status",children:u("loading")}):de.failed?(0,M.jsx)("p",{className:"gc-composer__status",children:u("genericError")}):de.html?(0,M.jsx)("div",{className:"gc-composer__preview gc-prose",dangerouslySetInnerHTML:{__html:de.html}}):(0,M.jsx)("p",{className:"gc-composer__status",children:u("previewEmpty")})}),(0,M.jsxs)("div",{className:"gc-composer__footer",children:[(0,M.jsxs)("div",{className:"gc-composer__messages","aria-live":"polite",children:[nc&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("loading")}),El>0&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("uploading")}),Bn&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("signingIn")}),uc&&(0,M.jsx)("p",{id:Et,className:"gc-composer__hint",children:uc}),Eo.length>0&&(0,M.jsx)("div",{id:Kt,className:"gc-composer__error",role:"alert",children:Eo.map(T=>(0,M.jsx)("p",{children:T},T))})]}),(0,M.jsxs)("div",{className:"gc-composer__buttons",children:[Bn&&(0,M.jsx)("button",{type:"button",className:x("gc-button",s.button),onClick:()=>c.auth.cancelSignIn(),children:u("signInCancel")}),A==="failed"&&(0,M.jsx)("button",{type:"button",className:x("gc-button",s.button),onClick:()=>K(T=>T+1),children:u("retry")}),!Xi&&!Bn&&(0,M.jsx)("button",{type:"button",className:x("gc-button",s.button),onClick:Vn,children:u("cancel")}),(0,M.jsx)("button",{type:"button",className:x("gc-button","gc-button--primary",s.button,s.primaryButton),disabled:!Yi,"aria-busy":Dn||void 0,onClick:Vi,children:Dn&&!t?u("posting"):rc})]})]})]})}function b1(e,t,n){switch(e.type){case"rate_limit":return t>0?[n("rateLimited",{count:t})]:e.errors.slice(0,1);case"invalid_key":case"not_logged_in":return[n("sessionExpired")];case"unreachable":case"unknown":case"cancelled":return[n("genericError")];default:return e.errors.length>0?e.errors:[n("genericError")]}}function _1(){let[e,t]=(0,X.useState)(0),[n,l]=(0,X.useState)(()=>Date.now());(0,X.useEffect)(()=>{if(e<=Date.now())return;let o=setInterval(()=>{let i=Date.now();l(i),i>=e&&clearInterval(o)},250);return()=>clearInterval(o)},[e]);let a=(0,X.useCallback)(o=>{let i=Date.now();l(i),t(i+o*1e3)},[]);return[Math.max(0,Math.ceil((e-n)/1e3)),a]}var sr=D(Ue(),1);var Bc=(0,sr.createContext)(null);function pn(e){let t=(0,sr.useContext)(Bc);if(!t)throw new Error(`${me}: ${e} must be rendered inside <Comments.Item>`);return t}var O=D($(),1);function fr({className:e}){let{comment:t}=pn("Comments.Avatar"),{elements:n}=ne("Comments.Avatar");return(0,O.jsx)(Yc,{user:t.author,className:x(n.avatar,e)})}function Yc({user:e,className:t}){if(e?.avatar_url)return(0,O.jsx)("img",{className:x("gc-avatar",t),src:e.avatar_url,alt:"",loading:"lazy",decoding:"async"});let n=(e?.name||e?.username||"").charAt(0).toUpperCase();return(0,O.jsx)("span",{className:x("gc-avatar","gc-avatar--placeholder",t),"aria-hidden":"true",children:n})}function dr({className:e}){let{comment:t}=pn("Comments.Meta"),{t:n,locale:l,client:a,elements:o}=ne("Comments.Meta"),i=t.author,r=i?i.name||i.username:null;return(0,O.jsxs)("div",{className:x("gc-comment__meta",o.meta,e),children:[r&&(i?.username?(0,O.jsx)("a",{className:"gc-comment__author",href:`${a.forum}/u/${encodeURIComponent(i.username)}`,target:"_blank",rel:"noopener noreferrer",children:r}):(0,O.jsx)("span",{className:"gc-comment__author",children:r})),i?.staff&&(0,O.jsx)("span",{className:"gc-badge gc-badge--staff",children:n("staff")}),t.pinned&&(0,O.jsxs)("span",{className:"gc-badge gc-badge--featured",children:[(0,O.jsx)(ag,{}),n("pinned")]}),(0,O.jsx)("a",{className:"gc-comment__time",href:`#gc-${t.id}`,children:(0,O.jsx)(C1,{iso:t.created_at,locale:l})}),t.edited&&(0,O.jsx)("span",{className:"gc-comment__edited",title:Dc(t.updated_at,l),children:n("edited")})]})}function C1({iso:e,locale:t}){let[n,l]=(0,Ce.useState)(Date.now);return(0,Ce.useEffect)(()=>Zm(()=>l(Date.now())),[]),(0,O.jsx)("time",{dateTime:e,title:Dc(e,t),children:Km(e,n,t)})}function mr({className:e}){let{comment:t,mode:n,setMode:l}=pn("Comments.Body"),{t:a,elements:o}=ne("Comments.Body"),i=x("gc-comment__body",o.body,e);return n==="edit"?(0,O.jsx)(zl,{editing:t,onDone:()=>l("view")}):t.deleted?(0,O.jsx)("p",{className:x(i,"gc-comment__body--removed"),children:a("deleted")}):t.hidden&&!t.html?(0,O.jsx)("p",{className:x(i,"gc-comment__body--removed"),children:a("hidden")}):(0,O.jsxs)(O.Fragment,{children:[t.hidden&&(0,O.jsx)("p",{className:"gc-comment__hidden-note",children:a("hidden")}),(0,O.jsx)("div",{className:x(i,"gc-prose"),dangerouslySetInnerHTML:{__html:t.html}})]})}function gr({className:e}){let t=ne("Comments.Actions"),{comment:n,depth:l,setMode:a,setNotice:o}=pn("Comments.Actions"),{t:i,thread:r,commenter:u,elements:c,writable:d}=t;if(!r||n.deleted)return null;let f=u.status==="signed-in",{likes:s,can:g}=n,v=!d||(f?!s.can_like&&!s.liked:!t.canRequestSignIn),b=x("gc-button","gc-button--ghost","gc-button--small",c.button),S=(y,C)=>{o({text:Gc(C,i),error:!0}),t.reportError(y,C)},h=()=>{o(null);let y=!s.liked;(f?Promise.resolve(!0):t.ensureSignedIn()).then(async N=>{if(N)try{let E=y?await r.like(n.id):await r.unlike(n.id);t.emit({type:"comment.liked",threadId:r.id,comment:E,liked:y})}catch(E){S("like",E)}})},m=y=>{let C=y.currentTarget;if(o(null),f||t.signInMode==="on-submit"){a("reply",C);return}t.ensureSignedIn().then(N=>N&&a("reply",C))},p=[{key:"copy",label:i("copyLink"),onSelect:()=>{let y=`${sa()??""}#gc-${n.id}`,C=typeof navigator>"u"?void 0:navigator.clipboard;if(!C){window.location.hash=`gc-${n.id}`;return}C.writeText(y).then(()=>o({text:i("linkCopied"),error:!1}),()=>{window.location.hash=`gc-${n.id}`})}}];return d&&g.edit&&p.push({key:"edit",label:i("edit"),onSelect:y=>a("edit",y)}),d&&g.pin&&l===0&&p.push({key:"pin",label:n.pinned?i("unpin"):i("pin"),onSelect:()=>{(n.pinned?r.unpin(n.id):r.pin(n.id)).catch(C=>S("pin",C))}}),d&&g.flag&&p.push({key:"report",label:i("report"),onSelect:y=>a("report",y)}),d&&g.delete&&p.push({key:"delete",label:i("delete"),danger:!0,onSelect:y=>a("delete",y)}),(0,O.jsxs)("div",{className:x("gc-actions",c.actions,e),children:[(0,O.jsxs)("button",{type:"button",className:x(b,"gc-actions__like",s.liked&&"gc-actions__like--active"),"aria-pressed":s.liked,"aria-label":`${i(s.liked?"unlike":"like")}, ${i("likeCount",{count:s.count})}`,disabled:v,onClick:h,children:[(0,O.jsx)(tg,{filled:s.liked}),(0,O.jsx)("span",{className:"gc-actions__count",children:s.count})]}),t.canReply&&(f||t.canRequestSignIn)&&(0,O.jsxs)("button",{type:"button",className:b,onClick:m,children:[(0,O.jsx)(ng,{}),i("reply")]}),(0,O.jsx)(S1,{items:p,label:i("moreActions"),buttonClass:b})]})}function S1({items:e,label:t,buttonClass:n}){let{elements:l}=ne(),[a,o]=(0,Ce.useState)(!1),i=(0,Ce.useId)(),r=(0,Ce.useRef)(null),u=(0,Ce.useRef)(null);(0,Ce.useEffect)(()=>{if(!a)return;u.current?.querySelector('[role="menuitem"]')?.focus();let f=s=>{let g=s.composedPath(),v=b=>b!==null&&g.includes(b);!v(u.current)&&!v(r.current)&&o(!1)};return document.addEventListener("pointerdown",f),()=>document.removeEventListener("pointerdown",f)},[a]);let c=f=>{o(!1),f&&r.current?.focus()},d=f=>{let s=[...u.current?.querySelectorAll('[role="menuitem"]')??[]],g=s.indexOf(ur(f.currentTarget).activeElement),v=b=>s[(b+s.length)%s.length]?.focus();switch(f.key){case"ArrowDown":v(g+1);break;case"ArrowUp":v(g-1);break;case"Home":v(0);break;case"End":v(s.length-1);break;case"Escape":c(!0);break;case"Tab":o(!1);return;default:return}f.preventDefault(),f.stopPropagation()};return(0,O.jsxs)("div",{className:"gc-menu",children:[(0,O.jsx)("button",{ref:r,type:"button",className:x(n,"gc-button--icon"),"aria-label":t,"aria-haspopup":"menu","aria-expanded":a,"aria-controls":a?i:void 0,onClick:()=>o(f=>!f),children:(0,O.jsx)(lg,{})}),a&&(0,O.jsx)("ul",{ref:u,id:i,role:"menu","aria-label":t,className:x("gc-menu__list",l.menu),onKeyDown:d,children:e.map(f=>(0,O.jsx)("li",{role:"none",children:(0,O.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:x("gc-menu__item",f.danger&&"gc-menu__item--danger"),onClick:()=>{c(!0),f.onSelect(r.current)},children:f.label})},f.key))})]})}var T1=["inappropriate","spam","illegal","off_topic","notify_moderators"],E1=new Set(["illegal","notify_moderators"]);function Tg({onClose:e}){let t=ne("Comments.Item"),{comment:n,setNotice:l}=pn("Comments.Item"),{t:a,thread:o,elements:i}=t,[r,u]=(0,Ce.useState)("inappropriate"),[c,d]=(0,Ce.useState)(""),[f,s]=(0,Ce.useState)(!1),[g,v]=(0,Ce.useState)(null),b=(0,Ce.useId)(),S=(0,Ce.useRef)(null),h=E1.has(r),m=a(h?"reportMessageRequired":"reportMessagePlaceholder");(0,Ce.useEffect)(()=>{S.current?.querySelector("input:checked")?.focus()},[]);let p=async y=>{if(y.preventDefault(),!(!o||!t.writable||!n.can.flag||h&&!c.trim())){s(!0),v(null);try{await o.flag(n.id,{type:r,message:c.trim()||void 0}),l({text:a("reportSent"),error:!1}),e()}catch(C){v(Gc(C,a)),t.reportError("flag",C),s(!1)}}};return(0,O.jsx)("div",{role:"dialog","aria-modal":"false","aria-labelledby":`${b}-title`,className:x("gc-report",i.dialog),onKeyDown:y=>{y.key==="Escape"&&(y.stopPropagation(),e())},children:(0,O.jsxs)("form",{ref:S,onSubmit:p,children:[(0,O.jsxs)("fieldset",{className:"gc-report__options",children:[(0,O.jsx)("legend",{id:`${b}-title`,className:"gc-report__title",children:a("reportTitle")}),T1.map(y=>(0,O.jsxs)("label",{className:"gc-report__option",children:[(0,O.jsx)("input",{type:"radio",name:`${b}-type`,value:y,checked:r===y,onChange:()=>u(y)}),a(`report.${y}`)]},y))]}),(0,O.jsx)("textarea",{className:"gc-report__message",value:c,placeholder:m,"aria-label":m,required:h,rows:2,onChange:y=>d(y.target.value)}),g&&(0,O.jsx)("p",{className:"gc-report__error",role:"alert",children:g}),(0,O.jsxs)("div",{className:"gc-report__buttons",children:[(0,O.jsx)("button",{type:"button",className:x("gc-button",i.button),onClick:e,children:a("cancel")}),(0,O.jsx)("button",{type:"submit",className:x("gc-button","gc-button--primary",i.button,i.primaryButton),disabled:f||h&&!c.trim(),children:a("report")})]})]})})}function Eg({onClose:e}){let t=ne("Comments.Item"),{comment:n,setNotice:l}=pn("Comments.Item"),{t:a,thread:o,elements:i}=t,[r,u]=(0,Ce.useState)(!1),c=(0,Ce.useId)(),d=(0,Ce.useRef)(null);(0,Ce.useEffect)(()=>d.current?.focus(),[]);let f=async()=>{if(!(!o||!t.writable||!n.can.delete)){u(!0);try{await o.remove(n.id)}catch(s){l({text:Gc(s,a),error:!0}),t.reportError("delete",s)}e()}};return(0,O.jsxs)("div",{role:"alertdialog","aria-modal":"false","aria-labelledby":c,className:x("gc-confirm",i.dialog),onKeyDown:s=>{s.key==="Escape"&&(s.stopPropagation(),e())},children:[(0,O.jsx)("p",{id:c,className:"gc-confirm__text",children:a("deleteConfirm")}),(0,O.jsxs)("div",{className:"gc-confirm__buttons",children:[(0,O.jsx)("button",{ref:d,type:"button",className:x("gc-button",i.button),onClick:e,children:a("cancel")}),(0,O.jsx)("button",{type:"button",className:x("gc-button","gc-button--danger",i.button),disabled:r,onClick:()=>{f()},children:a("delete")})]})]})}function Gc(e,t){let n=Ie(e);return n.type==="rate_limit"&&n.waitSeconds?t("rateLimited",{count:n.waitSeconds}):n.type==="invalid_key"||n.type==="not_logged_in"?t("sessionExpired"):n.type==="unreachable"||n.type==="unknown"||n.errors.length===0?t("genericError"):n.errors[0]}var j=D($(),1);function Vc({className:e}){let{client:t,openError:n,snapshot:l,configError:a,debug:o,commenter:i}=ne("Comments.DevPanel");if(!o&&!Qm())return null;let r=n??(l?.status==="error"?l.error:null)??a??null,u=typeof window>"u"?"":window.location.origin;if(!r)return!o||!l?null:(0,j.jsxs)("details",{className:x("gc-devpanel","gc-devpanel--ok",e),children:[(0,j.jsxs)("summary",{className:"gc-devpanel__title",children:[me," diagnostics"]}),(0,j.jsxs)("dl",{className:"gc-devpanel__details",children:[(0,j.jsx)("dt",{children:"Forum"}),(0,j.jsx)("dd",{children:t.forum}),(0,j.jsx)("dt",{children:"Thread"}),(0,j.jsxs)("dd",{children:[l.thread.id," ",l.virtual?"(not created yet)":""]}),(0,j.jsx)("dt",{children:"Key"}),(0,j.jsx)("dd",{children:l.thread.key}),(0,j.jsx)("dt",{children:"Updates"}),(0,j.jsx)("dd",{children:l.connection}),(0,j.jsx)("dt",{children:"Reader"}),(0,j.jsxs)("dd",{children:[i.status,i.degraded?" (degraded)":""]})]})]});let{summary:c,causes:d}=w1(r,t.forum,u);return(0,j.jsxs)("aside",{className:x("gc-devpanel",e),"aria-label":`${me} setup diagnostics`,children:[(0,j.jsxs)("p",{className:"gc-devpanel__title",children:[me," could not load comments"]}),(0,j.jsx)("p",{className:"gc-devpanel__summary",children:c}),d.length>0&&(0,j.jsx)("ol",{className:"gc-devpanel__causes",children:d.map(f=>(0,j.jsxs)("li",{children:[f.text,f.link&&(0,j.jsxs)(j.Fragment,{children:[" ",(0,j.jsx)("a",{href:f.link.href,target:"_blank",rel:"noopener noreferrer",children:f.link.label})]}),f.code&&(0,j.jsx)("pre",{className:"gc-devpanel__code",children:(0,j.jsx)("code",{children:f.code})})]},f.text))}),(0,j.jsxs)("dl",{className:"gc-devpanel__details",children:[(0,j.jsx)("dt",{children:"Forum"}),(0,j.jsx)("dd",{children:t.forum}),(0,j.jsx)("dt",{children:"Page origin"}),(0,j.jsx)("dd",{children:u}),(0,j.jsx)("dt",{children:"Error"}),(0,j.jsxs)("dd",{children:[(0,j.jsx)("code",{children:r.type})," (status ",r.status,"): ",r.message]})]}),(0,j.jsx)("p",{className:"gc-devpanel__note",children:"Shown on localhost or with debug. Readers see a short \u201CComments are unavailable\u201D notice."})]})}function w1(e,t,n){let l=n?new URL(n).host:"this site's host",a={href:`${t}/admin/customize/embedding`,label:"Open Admin \u2192 Customize \u2192 Embedding"},o=u=>({href:`${t}/admin/site_settings/category/all_results?filter=${u}`,label:`Open ${u}`}),i={text:`This page's origin (${n||"unknown"}) is not allowed: add ${l} as an embedding host, or add the origin to discourse_comments_allowed_origins.`,link:a},r={text:"The discourse-comments plugin is not installed or is disabled (discourse_comments_enabled).",link:o("discourse_comments_enabled")};switch(e.type){case"unreachable":return{summary:`The browser got no usable response from ${t}; CORS hides the reason, so check these in order.`,causes:[i,{text:"The forum is behind HTTP basic auth, which rejects CORS preflight (OPTIONS) requests. Let OPTIONS through without credentials and pass the credentials with the provider's headers prop, e.g. in nginx:",code:["location / {"," limit_except OPTIONS {",' auth_basic "Restricted";'," auth_basic_user_file /etc/nginx/.htpasswd;"," }","}"].join(`
|
|
23
|
-
`)},r,{text:"The forum URL is wrong or the forum is offline.",link:{href:t,label:"Open the forum"}}]};case"not_found":return{summary:"The comments API answered 404.",causes:[r]};case"page_not_allowed":return{summary:`${t} does not accept comments for this page.`,causes:[{text:`Add ${l} as an embedding host (check its allowed paths), or add this origin to discourse_comments_allowed_origins.`,link:a}]};case"no_category":return{summary:"The forum has no category for new comment threads.",causes:[{text:`Pick a category for ${l} under Embedding.`,link:a},{text:"Or set discourse_comments_default_category (and discourse_comments_default_author).",link:o("discourse_comments_default_category")}]};case"invalid_url":return{summary:"The forum rejected the page URL.",causes:[{text:'Pass an absolute http(s) url prop, or add a <link rel="canonical"> to the page.'}]};case"thread_conflict":return{summary:"The identifier and the URL already belong to different threads.",causes:[{text:"Pass the identifier this URL was first used with, or only one of the two."}]};case"invalid_access":return{summary:"The forum refused access to this thread.",causes:[{text:"The thread's category may not be visible to this reader; check the category's security settings."}]};default:return{summary:e.message,causes:[]}}}var wg=D(Ue(),1);var ft=D($(),1);function jc({children:e,className:t}){let{elements:n}=ne("Comments.Header");return(0,ft.jsx)("header",{className:x("gc-header",n.header,t),children:e??(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(Qc,{}),(0,ft.jsx)(Xc,{})]})})}function Qc({as:e="h2",render:t,className:n}){let{t:l,snapshot:a,elements:o}=ne("Comments.Count"),i=a?.thread.count;return(0,ft.jsx)(e,{className:x("gc-header__count",o.count,n),children:i===void 0?l("comments"):t?t(i):l("commentCount",{count:i})})}function Xc({className:e}){let{t,thread:n,snapshot:l,elements:a,reportError:o}=ne("Comments.Sort"),i=(0,wg.useId)();return!n||!l||l.thread.sorts.length<2?null:(0,ft.jsxs)("div",{className:x("gc-sort",a.sort,e),children:[(0,ft.jsx)("label",{className:"gc-sort__label",htmlFor:i,children:t("sortBy")}),(0,ft.jsx)("select",{id:i,className:"gc-sort__select",value:l.sort,disabled:l.status==="loading",onChange:r=>{n.setSort(r.target.value).catch(u=>o("load",u))},children:l.thread.sorts.map(r=>(0,ft.jsx)("option",{value:r,children:t(`sort.${r}`)},r))})]})}var Se=D(Ue(),1);var q=D($(),1),xg=(e,t)=>(0,q.jsx)(hr,{comment:e,depth:t}),kc=(0,Se.createContext)(xg);function Zc({children:e,className:t}){let n=ne("Comments.List"),l=e??xg,{snapshot:a,openError:o,t:i,elements:r,focusView:u}=n;if(o||a?.status==="error")return(0,q.jsxs)("div",{className:x("gc-notice","gc-notice--error",r.notice),role:"alert",children:[(0,q.jsx)("p",{className:"gc-notice__text",children:i("unavailable")}),(0,q.jsx)("button",{type:"button",className:x("gc-button",r.button),onClick:n.retry,children:i("retry")})]});if(!a||a.status==="loading"&&a.comments.length===0)return(0,q.jsx)("p",{className:"gc-list__status",role:"status",children:i("loading")});let c=x("gc-list",r.list,t);if(u){let d=a.comments,f=ae(d,u.id)?.node;return(0,q.jsx)(kc.Provider,{value:l,children:(0,q.jsxs)("div",{className:"gc-focus",children:[(0,q.jsxs)("button",{type:"button",className:x("gc-button","gc-button--link","gc-focus__back",r.button),onClick:n.closeFocusView,children:[(0,q.jsx)(fg,{}),i("backToAll")]}),u.truncated&&(0,q.jsx)("p",{className:"gc-focus__truncated",children:i("ancestorsTruncated")}),u.ancestors.length>0&&(0,q.jsx)("ol",{className:"gc-context",children:u.ancestors.map(s=>(0,q.jsx)(hr,{comment:ae(d,s.id)?.node??s,showReplies:!1},s.id))}),f&&(0,q.jsx)("ol",{className:c,children:l(f,0)})]})})}return a.comments.length===0?null:(0,q.jsx)(kc.Provider,{value:l,children:(0,q.jsx)("ol",{className:c,children:a.comments.map(d=>(0,q.jsx)(Se.Fragment,{children:l(d,0)},d.id))})})}function hr({comment:e,depth:t=0,children:n,showReplies:l=!0,className:a}){let o=ne("Comments.Item"),{t:i,elements:r}=o,[u,c]=(0,Se.useState)("view"),[d,f]=(0,Se.useState)(null),s=(0,Se.useRef)(null),g=(0,Se.useRef)(null),v=(0,Se.useRef)(!1),b=(0,Se.useCallback)((B,w)=>{B==="view"?v.current=!0:g.current=w??null,c(B)},[]);(0,Se.useEffect)(()=>{if(u!=="view"||!v.current)return;v.current=!1;let B=g.current;(B?.isConnected?B:s.current)?.focus()},[u]);let S=o.commenter.status==="signed-in",h=o.writable&&S,p={view:!0,reply:o.canCompose,edit:h&&e.can.edit,report:h&&e.can.flag,delete:h&&e.can.delete}[u],y=p?u:"view";(0,Se.useEffect)(()=>{p||b("view")},[p,b]),(0,Se.useEffect)(()=>{if(!d||d.error)return;let B=setTimeout(()=>f(null),3e3);return()=>clearTimeout(B)},[d]);let C=(0,Se.useMemo)(()=>({comment:e,depth:t,mode:y,setMode:b,notice:d,setNotice:f}),[e,t,y,b,d]),N=e.author?e.author.name||e.author.username:null,E=e.deleted||!N?i("deletedComment"):i("commentBy",{name:N}),A=()=>b("view");return(0,q.jsx)(Bc.Provider,{value:C,children:(0,q.jsxs)("li",{className:x("gc-comment",t>0&&"gc-comment--reply",e.pinned&&"gc-comment--pinned",e.deleted&&"gc-comment--deleted",o.highlightId===e.id&&"gc-comment--highlighted",r.comment,a),"data-depth":t,children:[(0,q.jsxs)("article",{ref:s,id:`gc-${e.id}`,className:"gc-comment__card",tabIndex:-1,"aria-label":E,children:[n??(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(fr,{}),(0,q.jsxs)("div",{className:"gc-comment__main",children:[(0,q.jsx)(dr,{}),(0,q.jsx)(mr,{}),(0,q.jsx)(gr,{})]})]}),y==="report"&&(0,q.jsx)(Tg,{onClose:A}),y==="delete"&&(0,q.jsx)(Eg,{onClose:A}),d&&(0,q.jsx)("p",{className:x("gc-comment__notice",d.error&&"gc-comment__notice--error"),role:d.error?"alert":"status",children:d.text})]}),y==="reply"&&(0,q.jsx)(zl,{replyTo:e,autoFocus:!0,onDone:A}),l&&(0,q.jsx)(x1,{})]})})}function x1(){let e=ne(),{comment:t,depth:n}=pn("Comments.Item"),l=(0,Se.useContext)(kc),{t:a,thread:o,snapshot:i,maxDepth:r,elements:u}=e;if(!o||!i)return null;let c=t.children,d=x("gc-button","gc-button--link",u.button);if(n>=r)return t.direct_reply_count===0&&c.length===0?null:(0,q.jsx)("button",{type:"button",className:x(d,"gc-comment__continue"),onClick:()=>{e.continueThread(t.id)},children:a("continueThread")});let f=i.branches[t.id],s=t.direct_reply_count-c.length,g=(f?.hasMore??!0)&&s>0,v=t.author?.name||t.author?.username||"",b=async()=>{let S=new Set(c.map(p=>p.id));try{await o.loadReplies(t.id)}catch(p){e.reportError("loadReplies",p);return}let m=(ae(o.snapshot().comments,t.id)?.node.children??[]).find(p=>!S.has(p.id));m&&e.focusComment(m.id)};return(0,q.jsxs)(q.Fragment,{children:[c.length>0&&(0,q.jsx)("ol",{className:"gc-replies","aria-label":a("repliesTo",{name:v}),children:c.map(S=>(0,q.jsx)(Se.Fragment,{children:l(S,n+1)},S.id))}),g&&(0,q.jsx)("button",{type:"button",className:x(d,"gc-comment__more"),disabled:f?.loading,"aria-busy":f?.loading||void 0,onClick:()=>{b()},children:c.length===0?a("loadReplies",{count:s}):a("loadMoreReplies",{count:s})})]})}var Ag=D(Ue(),1);var we=D($(),1);function Kc({children:e,className:t}){let n=ne("Comments.SignIn"),{t:l,commenter:a,elements:o,client:i,config:r,snapshot:u,signInMode:c}=n,d=(0,Ag.useId)();if(e)return(0,we.jsx)(we.Fragment,{children:e(a)});if(c==="manual")return null;let f=x("gc-button",o.button),s=x("gc-signin",o.signIn,t);if(a.status==="signed-in"&&a.user){let{user:h}=a;return(0,we.jsxs)("div",{className:x(s,"gc-signin--signed-in"),children:[(0,we.jsx)(Yc,{user:h,className:"gc-avatar--small"}),(0,we.jsx)("span",{className:"gc-signin__user",children:l("signedInAs",{username:`@${h.username}`})}),(0,we.jsx)("button",{type:"button",className:x(f,"gc-button--link"),onClick:()=>{a.signOut()},children:l("signOut")})]})}let g=u?.thread.closed??!1;if(c!=="inline"||!n.writable||g||!u)return null;let v=r?.forum.name??new URL(i.forum).host,b=a.status==="signing-in",S=a.error&&a.error.type!=="cancelled"?a.error.type==="invalid_key"?l("sessionExpired"):a.error.errors[0]??l("genericError"):null;return(0,we.jsxs)("div",{className:x(s,b&&"gc-signin--signing-in"),role:"group","aria-labelledby":d,children:[(0,we.jsx)("p",{id:d,className:"gc-signin__title",children:l("joinConversation")}),(0,we.jsxs)("div",{"aria-live":"polite",children:[b?(0,we.jsx)("p",{className:"gc-signin__body",children:l("signingIn")}):(0,we.jsx)("p",{className:"gc-signin__body",children:l("joinConversationBody",{forum:v})}),S&&!b&&(0,we.jsx)("p",{className:"gc-signin__error",role:"alert",children:S})]}),(0,we.jsx)("div",{className:"gc-signin__actions",children:b?(0,we.jsx)("button",{type:"button",className:f,onClick:()=>a.cancelSignIn(),children:l("signInCancel")}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)("button",{type:"button",className:x(f,"gc-button--primary",o.primaryButton),onClick:()=>{a.signIn().catch(()=>{})},children:l("signIn")}),a.providers.map(h=>(0,we.jsx)("button",{type:"button",className:f,onClick:()=>{a.signIn({provider:h.name}).catch(()=>{})},children:l("signInWith",{provider:h.title})},h.name))]})})]})}var Dl=D($(),1);function Jc({className:e}){let{t,snapshot:n,readOnly:l,commenter:a,commentingDenied:o,elements:i}=ne("Comments.Notice");if(!n||n.status==="error")return null;let r=null,u="";return l||a.degraded?(r=t("readOnly"),u="gc-notice--read-only"):n.thread.closed?(r=t("closed"),u="gc-notice--closed"):o&&(r=t("cannotComment"),u="gc-notice--denied"),r?(0,Dl.jsx)("p",{className:x("gc-notice",u,i.notice,e),role:"status",children:r}):null}function Ic({className:e}){let t=ne("Comments.NewComments"),{t:n,thread:l,snapshot:a,elements:o,focusView:i}=t,r=i?0:a?.pendingNew??0,u=()=>{if(!l)return;let c=new Set(l.snapshot().comments.map(f=>f.id));l.showPending();let d=l.snapshot().comments.find(f=>!c.has(f.id));d&&t.focusComment(d.id)};return(0,Dl.jsx)("div",{className:"gc-pill-region","aria-live":"polite",children:r>0&&(0,Dl.jsx)("button",{type:"button",className:x("gc-button","gc-pill",o.button,o.pill,e),onClick:u,children:n("newComments",{count:r})})})}function Pc({className:e}){let{t,snapshot:n,elements:l}=ne("Comments.AwaitingApproval"),a=n?.awaitingApproval??[];return(0,Dl.jsx)("div",{className:"gc-pending-region","aria-live":"polite",children:a.map((o,i)=>(0,Dl.jsx)("p",{className:x("gc-notice","gc-notice--pending",l.notice,e),children:o.message||t("pending")},o.reviewable_id??`pending-${i}`))})}function $c({className:e}){let t=ne("Comments.LoadMore"),{t:n,thread:l,snapshot:a,elements:o,focusView:i}=t;if(!l||!a?.hasMore||i||a.status!=="ready")return null;let r=async()=>{let u=new Set(l.snapshot().comments.map(d=>d.id));try{await l.loadMore()}catch(d){t.reportError("loadMore",d);return}let c=l.snapshot().comments.find(d=>!u.has(d.id));c&&!l.snapshot().hasMore&&t.focusComment(c.id)};return(0,Dl.jsx)("button",{type:"button",className:x("gc-button","gc-load-more",o.button,o.loadMore,e),disabled:a.loadingMore,"aria-busy":a.loadingMore||void 0,onClick:()=>{r()},children:a.loadingMore?n("loading"):n("loadMore")})}var Nt=D($(),1);function A1(e){return(0,Nt.jsxs)(Hc,{...e,children:[(0,Nt.jsx)(jc,{}),(0,Nt.jsx)(Vc,{}),(0,Nt.jsx)(Jc,{}),(0,Nt.jsx)(Kc,{}),(0,Nt.jsx)(zl,{}),(0,Nt.jsx)(Pc,{}),(0,Nt.jsx)(Ic,{}),(0,Nt.jsx)(Zc,{}),(0,Nt.jsx)($c,{})]})}var Fc=Object.assign(A1,{Root:Hc,Header:jc,Count:Qc,Sort:Xc,SignIn:Kc,Composer:zl,List:Zc,Item:hr,Avatar:fr,Meta:dr,Body:mr,Actions:gr,LoadMore:$c,NewComments:Ic,AwaitingApproval:Pc,Notice:Jc,DevPanel:Vc});var va=D(Ue(),1);function Ng(e,t={}){let n=Ol(t.forum)?.client,l=e?N1(e):null,a=(0,va.useRef)(e);a.current=e;let[o,i]=(0,va.useState)({key:null,count:null,error:null});return(0,va.useEffect)(()=>{let r=a.current;if(l===null||!r||!n)return;let u=!0;return n.count(r).then(c=>u&&i({key:l,count:c,error:null}),c=>u&&i({key:l,count:null,error:Ie(c)})),()=>{u=!1}},[n,l]),o.key===l?{count:o.count,error:o.error}:{count:null,error:null}}function N1(e){try{return Ao(e)}catch{return null}}var Rg=D($(),1);function Wc({identifier:e,host:t,url:n,topicId:l,forum:a,render:o,className:i}){let r=Ol(a),u=n??Ki(),c=l!==void 0?{topicId:l}:e!==void 0?{identifier:e,host:t}:u?{url:u}:null,{count:d}=Ng(c,{forum:a});if(!r)return null;let{t:f}=r;return(0,Rg.jsx)("span",{className:x("gc-count",i),"aria-busy":d===null||void 0,children:d===null?null:o?o(d):f("commentCount",{count:d})})}var k0=D(es(),1),Z0=D(H0(),1);function q0(e,t){if(t===null)return;if(e==="string")return t;let n=t.trim();if(e==="boolean")return n.toLowerCase()!=="false";if(e==="number"){let l=Number(n);return n!==""&&Number.isFinite(l)?l:void 0}return e.includes(n)?n:void 0}function qS(e,t){return t==null?null:e==="boolean"?t?"":null:String(t)}function L0(e,t){let n={};for(let[l,{prop:a,type:o}]of Object.entries(t)){let i=q0(o,e.getAttribute(l));i!==void 0&&(n[a]=i)}return n}function B0(e,t){for(let[n,{prop:l,type:a}]of Object.entries(t))l in e||Object.defineProperty(e,l,{configurable:!0,enumerable:!0,get(){let o=q0(a,this.getAttribute(n));return a==="boolean"?o===!0:o},set(o){let i=qS(a,o);i===null?this.removeAttribute(n):this.setAttribute(n,i)}})}function LS(e){let t=[];for(let n of e.classList)n.startsWith("gc-")&&t.push(n);return t.join(" ")}function tc(e){let t=LS(e);t===""?e.hasAttribute("part")&&e.removeAttribute("part"):e.getAttribute("part")!==t&&e.setAttribute("part",t)}function BS(e){if(e.nodeType===1){tc(e);for(let t of e.querySelectorAll("*"))tc(t)}}function Y0(e){for(let n of e.querySelectorAll("*"))tc(n);let t=new MutationObserver(n=>{for(let l of n)l.type==="attributes"?tc(l.target):l.addedNodes.forEach(BS)});return t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()}var G0=`/*
|
|
29
|
+
`:"";uo(Ls(ss,Zi,cb,`${fb}${Mg(xt)}
|
|
30
|
+
`))}catch(xt){Gt(Be(xt)),r.reportError("upload",xt)}finally{Tl(xt=>xt-1)}}}function xa(){Z("preview");let T=C.current,N=++It.current;if(!T.trim()){re({html:null,loading:!1,failed:!1});return}re({html:null,loading:!0,failed:!1}),s.preview(T).then(ve=>{N===It.current&&re({html:ve,loading:!1,failed:!1})},ve=>{N===It.current&&(re({html:null,loading:!1,failed:!0}),r.reportError("preview",ve))})}function Vi(T){h.typing(),hn(T.target.value),E(T.target.selectionStart)}function ji(T){dt.onKeyDown(T)||(T.key==="Enter"&&(T.metaKey||T.ctrlKey)?(T.preventDefault(),Yi()):T.key==="Escape"&&(e||t)&&(T.preventDefault(),Gi()))}function is(T){let N=[...T.clipboardData.files];El&&Fe&&N.some(ve=>ve.type.startsWith("image/"))&&(T.preventDefault(),pn(N,!0))}function rs(T){El&&Fe&&T.dataTransfer.types.includes("Files")&&T.preventDefault()}function Aa(T){let N=[...T.dataTransfer.files];El&&Fe&&N.length>0&&(T.preventDefault(),pn(N))}function Qi(T){(T.key==="ArrowLeft"||T.key==="ArrowRight")&&(T.preventDefault(),O==="write"?xa():Z("write"),Co(T.currentTarget).getElementById(`${g}-${O==="write"?"preview":"write"}-tab`)?.focus())}let ki=t?u("editing"):e?u("replyingTo",{username:e.author?.username??""}):u("composerPlaceholder"),le=`${g}-hint`,Re=`${g}-error`,lt=`${g}-mentions`,Vt=io?Q_(io,qn,u):[],mo=u(t?"save":e?"reply":"post"),us=t?void 0:u(e?"replyPlaceholder":"composerPlaceholder"),Na=Bn?u("tooLong",{max:co}):os?u("tooShort",{min:wl}):null,Yn=Ln,Xi=!e&&!t;return(0,M.jsxs)("div",{className:w("gc-composer",e&&"gc-composer--replying",t&&"gc-composer--editing",c.composer,a),children:[Xi&&r.guidelinesUrl&&(0,M.jsx)("a",{className:"gc-composer__guidelines",href:r.guidelinesUrl,target:"_blank",rel:"noopener noreferrer",children:u("guidelines")}),!Xi&&(0,M.jsx)("p",{className:"gc-composer__context",children:ki}),Yn&&(0,M.jsxs)("div",{className:"gc-composer__tabs",role:"tablist",children:[(0,M.jsx)("button",{type:"button",role:"tab",id:`${g}-write-tab`,className:"gc-composer__tab","aria-selected":O==="write","aria-controls":`${g}-write`,tabIndex:O==="write"?0:-1,onClick:()=>Z("write"),onKeyDown:Qi,children:u("write")}),(0,M.jsx)("button",{type:"button",role:"tab",id:`${g}-preview-tab`,className:"gc-composer__tab","aria-selected":O==="preview","aria-controls":`${g}-preview`,tabIndex:O==="preview"?0:-1,onClick:xa,onKeyDown:Qi,children:u("preview")})]}),(0,M.jsxs)("div",{className:"gc-composer__panel",id:`${g}-write`,role:Yn?"tabpanel":void 0,"aria-labelledby":Yn?`${g}-write-tab`:void 0,hidden:O!=="write",children:[Ln&&(0,M.jsxs)("div",{className:w("gc-toolbar",c.toolbar),role:"group","aria-label":u("formatting"),children:[V_.map(({format:T,label:N,icon:ve})=>(0,M.jsx)("button",{type:"button",className:"gc-toolbar__button","aria-label":u(N),title:u(N),disabled:!Fe,onClick:()=>as(T),children:ve},T)),El&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("button",{type:"button",className:"gc-toolbar__button","aria-label":u("upload"),title:u("upload"),disabled:!Fe,onClick:()=>b.current?.click(),children:(0,M.jsx)(fg,{})}),(0,M.jsx)("input",{ref:b,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:T=>{let N=[...T.target.files??[]];T.target.value="",pn(N)}})]})]}),(0,M.jsxs)("div",{className:"gc-composer__field",children:[(0,M.jsx)("textarea",{ref:v,className:w("gc-composer__input",c.textarea),value:p,placeholder:n??us,"aria-label":ki,"aria-describedby":w(Na&&le,Vt.length>0&&Re)||void 0,"aria-invalid":Bn||void 0,"aria-autocomplete":dt.open?"list":void 0,"aria-controls":dt.open?lt:void 0,"aria-activedescendant":dt.open?`${lt}-${dt.active}`:void 0,rows:Xi?3:2,disabled:x!=="loaded",readOnly:mt,onChange:Vi,onSelect:T=>E(T.currentTarget.selectionStart),onFocus:()=>h.start(),onKeyDown:ji,onPaste:is,onDragOver:rs,onDrop:Aa}),dt.open&&(0,M.jsx)("ul",{className:"gc-mentions",role:"listbox",id:lt,"aria-label":u("mentionSuggestions"),children:dt.users.map((T,N)=>(0,M.jsxs)("li",{id:`${lt}-${N}`,role:"option","aria-selected":N===dt.active,className:w("gc-mentions__option",N===dt.active&&"gc-mentions__option--active"),onMouseDown:ve=>{ve.preventDefault(),dt.pick(N)},onMouseEnter:()=>dt.setActive(N),children:[(0,M.jsx)("img",{className:"gc-avatar gc-avatar--small",src:T.avatar_url,alt:""}),(0,M.jsxs)("span",{className:"gc-mentions__username",children:["@",T.username]}),T.name&&(0,M.jsx)("span",{className:"gc-mentions__name",children:T.name})]},T.id))})]})]}),Yn&&(0,M.jsx)("div",{className:"gc-composer__panel",id:`${g}-preview`,role:"tabpanel","aria-labelledby":`${g}-preview-tab`,"aria-busy":ne.loading||void 0,hidden:O!=="preview",children:ne.loading?(0,M.jsx)("p",{className:"gc-composer__status",children:u("loading")}):ne.failed?(0,M.jsx)("p",{className:"gc-composer__status",children:u("genericError")}):ne.html?(0,M.jsx)("div",{className:"gc-composer__preview gc-prose",dangerouslySetInnerHTML:{__html:ne.html}}):(0,M.jsx)("p",{className:"gc-composer__status",children:u("previewEmpty")})}),(0,M.jsxs)("div",{className:"gc-composer__footer",children:[(0,M.jsxs)("div",{className:"gc-composer__messages","aria-live":"polite",children:[xl&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("loading")}),Sl>0&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("uploading")}),so&&(0,M.jsx)("p",{className:"gc-composer__status",children:u("signingIn")}),Na&&(0,M.jsx)("p",{id:le,className:"gc-composer__hint",children:Na}),Vt.length>0&&(0,M.jsx)("div",{id:Re,className:"gc-composer__error",role:"alert",children:Vt.map(T=>(0,M.jsx)("p",{children:T},T))})]}),(0,M.jsxs)("div",{className:"gc-composer__buttons",children:[so&&(0,M.jsx)("button",{type:"button",className:w("gc-button",c.button),onClick:()=>s.auth.cancelSignIn(),children:u("signInCancel")}),x==="failed"&&(0,M.jsx)("button",{type:"button",className:w("gc-button",c.button),onClick:()=>Ie(T=>T+1),children:u("retry")}),!Xi&&!so&&(0,M.jsx)("button",{type:"button",className:w("gc-button",c.button),onClick:Gi,children:u("cancel")}),(0,M.jsx)("button",{type:"button",className:w("gc-button","gc-button--primary",c.button,c.primaryButton),disabled:!Bi,"aria-busy":mt||void 0,onClick:Yi,children:mt&&!t?u("posting"):mo})]})]})]})}function Q_(e,t,n){switch(e.type){case"rate_limit":return t>0?[n("rateLimited",{count:t})]:e.errors.slice(0,1);case"invalid_key":case"not_logged_in":return[n("sessionExpired")];case"unreachable":case"unknown":case"cancelled":return[n("genericError")];default:return e.errors.length>0?e.errors:[n("genericError")]}}function k_(){let[e,t]=(0,X.useState)(0),[n,l]=(0,X.useState)(()=>Date.now());(0,X.useEffect)(()=>{if(e<=Date.now())return;let a=setInterval(()=>{let i=Date.now();l(i),i>=e&&clearInterval(a)},250);return()=>clearInterval(a)},[e]);let o=(0,X.useCallback)(a=>{let i=Date.now();l(i),t(i+a*1e3)},[]);return[Math.max(0,Math.ceil((e-n)/1e3)),o]}var fr=D(Oe(),1);var Bs=(0,fr.createContext)(null);function bn(e){let t=(0,fr.useContext)(Bs);if(!t)throw new Error(`${he}: ${e} must be rendered inside <Comments.Item>`);return t}var R=D($(),1);function mr({className:e}){let{comment:t}=bn("Comments.Avatar"),{elements:n}=ae("Comments.Avatar");return(0,R.jsx)(Ys,{user:t.author,className:w(n.avatar,e)})}function Ys({user:e,className:t}){if(e?.avatar_url)return(0,R.jsx)("img",{className:w("gc-avatar",t),src:e.avatar_url,alt:"",loading:"lazy",decoding:"async"});let n=(e?.name||e?.username||"").charAt(0).toUpperCase();return(0,R.jsx)("span",{className:w("gc-avatar","gc-avatar--placeholder",t),"aria-hidden":"true",children:n})}function dr({className:e}){let{comment:t}=bn("Comments.Meta"),{t:n,locale:l,client:o,elements:a}=ae("Comments.Meta"),i=t.author,r=i?i.name||i.username:null;return(0,R.jsxs)("div",{className:w("gc-comment__meta",a.meta,e),children:[r&&(i?.username?(0,R.jsx)("a",{className:"gc-comment__author",href:`${o.forum}/u/${encodeURIComponent(i.username)}`,target:"_blank",rel:"noopener noreferrer",children:r}):(0,R.jsx)("span",{className:"gc-comment__author",children:r})),i?.staff&&(0,R.jsx)("span",{className:"gc-badge gc-badge--staff",children:n("staff")}),t.pinned&&(0,R.jsxs)("span",{className:"gc-badge gc-badge--featured",children:[(0,R.jsx)(ag,{}),n("pinned")]}),(0,R.jsx)("a",{className:"gc-comment__time",href:`#gc-${t.id}`,children:(0,R.jsx)(X_,{iso:t.created_at,locale:l})}),t.edited&&(0,R.jsx)("span",{className:"gc-comment__edited",title:Ds(t.updated_at,l),children:n("edited")})]})}function X_({iso:e,locale:t}){let[n,l]=(0,_e.useState)(Date.now);return(0,_e.useEffect)(()=>Kd(()=>l(Date.now())),[]),(0,R.jsx)("time",{dateTime:e,title:Ds(e,t),children:Jd(e,n,t)})}function gr({className:e}){let{comment:t,mode:n,setMode:l}=bn("Comments.Body"),{t:o,elements:a}=ae("Comments.Body"),i=w("gc-comment__body",a.body,e);return n==="edit"?(0,R.jsx)(zl,{editing:t,onDone:()=>l("view")}):t.deleted?(0,R.jsx)("p",{className:w(i,"gc-comment__body--removed"),children:o("deleted")}):t.hidden&&!t.html?(0,R.jsx)("p",{className:w(i,"gc-comment__body--removed"),children:o("hidden")}):(0,R.jsxs)(R.Fragment,{children:[t.hidden&&(0,R.jsx)("p",{className:"gc-comment__hidden-note",children:o("hidden")}),(0,R.jsx)("div",{className:w(i,"gc-prose"),dangerouslySetInnerHTML:{__html:t.html}})]})}function hr({className:e}){let t=ae("Comments.Actions"),{comment:n,depth:l,setMode:o,setNotice:a}=bn("Comments.Actions"),{t:i,thread:r,commenter:u,elements:s,writable:m}=t;if(!r||n.deleted)return null;let f=u.status==="signed-in",{likes:c,can:g}=n,v=!m||(f?!c.can_like&&!c.liked:!t.canRequestSignIn),b=w("gc-button","gc-button--ghost","gc-button--small",s.button),S=(y,C)=>{a({text:Gs(C,i),error:!0}),t.reportError(y,C)},h=()=>{a(null);let y=!c.liked;(f?Promise.resolve(!0):t.ensureSignedIn()).then(async A=>{if(A)try{let E=y?await r.like(n.id):await r.unlike(n.id);t.emit({type:"comment.liked",threadId:r.id,comment:E,liked:y})}catch(E){S("like",E)}})},d=y=>{let C=y.currentTarget;if(a(null),f||t.signInMode==="on-submit"){o("reply",C);return}t.ensureSignedIn().then(A=>A&&o("reply",C))},p=[{key:"copy",label:i("copyLink"),onSelect:()=>{let y=`${ho()??""}#gc-${n.id}`,C=typeof navigator>"u"?void 0:navigator.clipboard;if(!C){window.location.hash=`gc-${n.id}`;return}C.writeText(y).then(()=>a({text:i("linkCopied"),error:!1}),()=>{window.location.hash=`gc-${n.id}`})}}];return m&&g.edit&&p.push({key:"edit",label:i("edit"),onSelect:y=>o("edit",y)}),m&&g.pin&&l===0&&p.push({key:"pin",label:n.pinned?i("unpin"):i("pin"),onSelect:()=>{(n.pinned?r.unpin(n.id):r.pin(n.id)).catch(C=>S("pin",C))}}),m&&g.flag&&p.push({key:"report",label:i("report"),onSelect:y=>o("report",y)}),m&&g.delete&&p.push({key:"delete",label:i("delete"),danger:!0,onSelect:y=>o("delete",y)}),(0,R.jsxs)("div",{className:w("gc-actions",s.actions,e),children:[(0,R.jsxs)("button",{type:"button",className:w(b,"gc-actions__like",c.liked&&"gc-actions__like--active"),"aria-pressed":c.liked,"aria-label":`${i(c.liked?"unlike":"like")}, ${i("likeCount",{count:c.count})}`,disabled:v,onClick:h,children:[(0,R.jsx)(ng,{filled:c.liked}),(0,R.jsx)("span",{className:"gc-actions__count",children:c.count})]}),t.canReply&&(f||t.canRequestSignIn)&&(0,R.jsxs)("button",{type:"button",className:b,onClick:d,children:[(0,R.jsx)(lg,{}),i("reply")]}),(0,R.jsx)(Z_,{items:p,label:i("moreActions"),buttonClass:b})]})}function Z_({items:e,label:t,buttonClass:n}){let{elements:l}=ae(),[o,a]=(0,_e.useState)(!1),i=(0,_e.useId)(),r=(0,_e.useRef)(null),u=(0,_e.useRef)(null);(0,_e.useEffect)(()=>{if(!o)return;u.current?.querySelector('[role="menuitem"]')?.focus();let f=c=>{let g=c.composedPath(),v=b=>b!==null&&g.includes(b);!v(u.current)&&!v(r.current)&&a(!1)};return document.addEventListener("pointerdown",f),()=>document.removeEventListener("pointerdown",f)},[o]);let s=f=>{a(!1),f&&r.current?.focus()},m=f=>{let c=[...u.current?.querySelectorAll('[role="menuitem"]')??[]],g=c.indexOf(Co(f.currentTarget).activeElement),v=b=>c[(b+c.length)%c.length]?.focus();switch(f.key){case"ArrowDown":v(g+1);break;case"ArrowUp":v(g-1);break;case"Home":v(0);break;case"End":v(c.length-1);break;case"Escape":s(!0);break;case"Tab":a(!1);return;default:return}f.preventDefault(),f.stopPropagation()};return(0,R.jsxs)("div",{className:"gc-menu",children:[(0,R.jsx)("button",{ref:r,type:"button",className:w(n,"gc-button--icon"),"aria-label":t,"aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?i:void 0,onClick:()=>a(f=>!f),children:(0,R.jsx)(og,{})}),o&&(0,R.jsx)("ul",{ref:u,id:i,role:"menu","aria-label":t,className:w("gc-menu__list",l.menu),onKeyDown:m,children:e.map(f=>(0,R.jsx)("li",{role:"none",children:(0,R.jsx)("button",{type:"button",role:"menuitem",tabIndex:-1,className:w("gc-menu__item",f.danger&&"gc-menu__item--danger"),onClick:()=>{s(!0),f.onSelect(r.current)},children:f.label})},f.key))})]})}var K_=["inappropriate","spam","illegal","off_topic","notify_moderators"],J_=new Set(["illegal","notify_moderators"]);function Hg({onClose:e}){let t=ae("Comments.Item"),{comment:n,setNotice:l}=bn("Comments.Item"),{t:o,thread:a,elements:i}=t,[r,u]=(0,_e.useState)("inappropriate"),[s,m]=(0,_e.useState)(""),[f,c]=(0,_e.useState)(!1),[g,v]=(0,_e.useState)(null),b=(0,_e.useId)(),S=(0,_e.useRef)(null),h=J_.has(r),d=o(h?"reportMessageRequired":"reportMessagePlaceholder");(0,_e.useEffect)(()=>{S.current?.querySelector("input:checked")?.focus()},[]);let p=async y=>{if(y.preventDefault(),!(!a||!t.writable||!n.can.flag||h&&!s.trim())){c(!0),v(null);try{await a.flag(n.id,{type:r,message:s.trim()||void 0}),l({text:o("reportSent"),error:!1}),e()}catch(C){v(Gs(C,o)),t.reportError("flag",C),c(!1)}}};return(0,R.jsx)("div",{role:"dialog","aria-modal":"false","aria-labelledby":`${b}-title`,className:w("gc-report",i.dialog),onKeyDown:y=>{y.key==="Escape"&&(y.stopPropagation(),e())},children:(0,R.jsxs)("form",{ref:S,onSubmit:p,children:[(0,R.jsxs)("fieldset",{className:"gc-report__options",children:[(0,R.jsx)("legend",{id:`${b}-title`,className:"gc-report__title",children:o("reportTitle")}),K_.map(y=>(0,R.jsxs)("label",{className:"gc-report__option",children:[(0,R.jsx)("input",{type:"radio",name:`${b}-type`,value:y,checked:r===y,onChange:()=>u(y)}),o(`report.${y}`)]},y))]}),(0,R.jsx)("textarea",{className:"gc-report__message",value:s,placeholder:d,"aria-label":d,required:h,rows:2,onChange:y=>m(y.target.value)}),g&&(0,R.jsx)("p",{className:"gc-report__error",role:"alert",children:g}),(0,R.jsxs)("div",{className:"gc-report__buttons",children:[(0,R.jsx)("button",{type:"button",className:w("gc-button",i.button),onClick:e,children:o("cancel")}),(0,R.jsx)("button",{type:"submit",className:w("gc-button","gc-button--primary",i.button,i.primaryButton),disabled:f||h&&!s.trim(),children:o("report")})]})]})})}function qg({onClose:e}){let t=ae("Comments.Item"),{comment:n,setNotice:l}=bn("Comments.Item"),{t:o,thread:a,elements:i}=t,[r,u]=(0,_e.useState)(!1),s=(0,_e.useId)(),m=(0,_e.useRef)(null);(0,_e.useEffect)(()=>m.current?.focus(),[]);let f=async()=>{if(!(!a||!t.writable||!n.can.delete)){u(!0);try{await a.remove(n.id)}catch(c){l({text:Gs(c,o),error:!0}),t.reportError("delete",c)}e()}};return(0,R.jsxs)("div",{role:"alertdialog","aria-modal":"false","aria-labelledby":s,className:w("gc-confirm",i.dialog),onKeyDown:c=>{c.key==="Escape"&&(c.stopPropagation(),e())},children:[(0,R.jsx)("p",{id:s,className:"gc-confirm__text",children:o("deleteConfirm")}),(0,R.jsxs)("div",{className:"gc-confirm__buttons",children:[(0,R.jsx)("button",{ref:m,type:"button",className:w("gc-button",i.button),onClick:e,children:o("cancel")}),(0,R.jsx)("button",{type:"button",className:w("gc-button","gc-button--danger",i.button),disabled:r,onClick:()=>{f()},children:o("delete")})]})]})}function Gs(e,t){let n=Be(e);return n.type==="rate_limit"&&n.waitSeconds?t("rateLimited",{count:n.waitSeconds}):n.type==="invalid_key"||n.type==="not_logged_in"?t("sessionExpired"):n.type==="unreachable"||n.type==="unknown"||n.errors.length===0?t("genericError"):n.errors[0]}var k=D($(),1);function Vs({className:e}){let{client:t,openError:n,snapshot:l,configError:o,debug:a,commenter:i}=ae("Comments.DevPanel");if(!a&&!kd())return null;let r=n??(l?.status==="error"?l.error:null)??o??null,u=typeof window>"u"?"":window.location.origin;if(!r)return!a||!l?null:(0,k.jsxs)("details",{className:w("gc-devpanel","gc-devpanel--ok",e),children:[(0,k.jsxs)("summary",{className:"gc-devpanel__title",children:[he," diagnostics"]}),(0,k.jsxs)("dl",{className:"gc-devpanel__details",children:[(0,k.jsx)("dt",{children:"Forum"}),(0,k.jsx)("dd",{children:t.forum}),(0,k.jsx)("dt",{children:"Thread"}),(0,k.jsxs)("dd",{children:[l.thread.id," ",l.virtual?"(not created yet)":""]}),(0,k.jsx)("dt",{children:"Key"}),(0,k.jsx)("dd",{children:l.thread.key}),(0,k.jsx)("dt",{children:"Updates"}),(0,k.jsx)("dd",{children:l.connection}),(0,k.jsx)("dt",{children:"Reader"}),(0,k.jsxs)("dd",{children:[i.status,i.degraded?" (degraded)":""]})]})]});let{summary:s,causes:m}=I_(r,t.forum,u);return(0,k.jsxs)("aside",{className:w("gc-devpanel",e),"aria-label":`${he} setup diagnostics`,children:[(0,k.jsxs)("p",{className:"gc-devpanel__title",children:[he," could not load comments"]}),(0,k.jsx)("p",{className:"gc-devpanel__summary",children:s}),m.length>0&&(0,k.jsx)("ol",{className:"gc-devpanel__causes",children:m.map(f=>(0,k.jsxs)("li",{children:[f.text,f.link&&(0,k.jsxs)(k.Fragment,{children:[" ",(0,k.jsx)("a",{href:f.link.href,target:"_blank",rel:"noopener noreferrer",children:f.link.label})]}),f.code&&(0,k.jsx)("pre",{className:"gc-devpanel__code",children:(0,k.jsx)("code",{children:f.code})})]},f.text))}),(0,k.jsxs)("dl",{className:"gc-devpanel__details",children:[(0,k.jsx)("dt",{children:"Forum"}),(0,k.jsx)("dd",{children:t.forum}),(0,k.jsx)("dt",{children:"Page origin"}),(0,k.jsx)("dd",{children:u}),(0,k.jsx)("dt",{children:"Error"}),(0,k.jsxs)("dd",{children:[(0,k.jsx)("code",{children:r.type})," (status ",r.status,"): ",r.message]})]}),(0,k.jsx)("p",{className:"gc-devpanel__note",children:"Shown on localhost or with debug. Readers see a short \u201CComments are unavailable\u201D notice."})]})}function I_(e,t,n){let l=n?new URL(n).host:"this site's host",o={href:`${t}/admin/customize/embedding`,label:"Open Admin \u2192 Customize \u2192 Embedding"},a=u=>({href:`${t}/admin/site_settings/category/all_results?filter=${u}`,label:`Open ${u}`}),i={text:`This page's origin (${n||"unknown"}) is not allowed: add ${l} as an embedding host, or add the origin to discourse_comments_allowed_origins.`,link:o},r={text:"The discourse-comments plugin is not installed or is disabled (discourse_comments_enabled).",link:a("discourse_comments_enabled")};switch(e.type){case"unreachable":return{summary:`The browser got no usable response from ${t}; CORS hides the reason, so check these in order.`,causes:[i,{text:"The forum is behind HTTP basic auth, which rejects CORS preflight (OPTIONS) requests. Let OPTIONS through without credentials and pass the credentials with the provider's headers prop, e.g. in nginx:",code:["location / {"," limit_except OPTIONS {",' auth_basic "Restricted";'," auth_basic_user_file /etc/nginx/.htpasswd;"," }","}"].join(`
|
|
31
|
+
`)},r,{text:"The forum URL is wrong or the forum is offline.",link:{href:t,label:"Open the forum"}}]};case"not_found":return{summary:"The comments API answered 404.",causes:[r]};case"page_not_allowed":return{summary:`${t} does not accept comments for this page.`,causes:[{text:`Add ${l} as an embedding host (check its allowed paths), or add this origin to discourse_comments_allowed_origins.`,link:o}]};case"no_category":return{summary:"The forum has no category for new comment threads.",causes:[{text:`Pick a category for ${l} under Embedding.`,link:o},{text:"Or set discourse_comments_default_category (and discourse_comments_default_author).",link:a("discourse_comments_default_category")}]};case"invalid_url":return{summary:"The forum rejected the page URL.",causes:[{text:'Pass an absolute http(s) url prop, or add a <link rel="canonical"> to the page.'}]};case"thread_conflict":return{summary:"The identifier and the URL already belong to different threads.",causes:[{text:"Pass the identifier this URL was first used with, or only one of the two."}]};case"invalid_access":return{summary:"The forum refused access to this thread.",causes:[{text:"The thread's category may not be visible to this reader; check the category's security settings."}]};default:return{summary:e.message,causes:[]}}}var Lg=D(Oe(),1);var gt=D($(),1);function js({children:e,className:t}){let{elements:n}=ae("Comments.Header");return(0,gt.jsx)("header",{className:w("gc-header",n.header,t),children:e??(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(Qs,{}),(0,gt.jsx)(ks,{})]})})}function Qs({as:e="h2",render:t,className:n}){let{t:l,snapshot:o,elements:a}=ae("Comments.Count"),i=o?.thread.count;return(0,gt.jsx)(e,{className:w("gc-header__count",a.count,n),children:i===void 0?l("comments"):t?t(i):l("commentCount",{count:i})})}function ks({className:e}){let{t,thread:n,snapshot:l,elements:o,reportError:a}=ae("Comments.Sort"),i=(0,Lg.useId)();return!n||!l||l.thread.sorts.length<2?null:(0,gt.jsxs)("div",{className:w("gc-sort",o.sort,e),children:[(0,gt.jsx)("label",{className:"gc-sort__label",htmlFor:i,children:t("sortBy")}),(0,gt.jsx)("select",{id:i,className:"gc-sort__select",value:l.sort,disabled:l.status==="loading",onChange:r=>{n.setSort(r.target.value).catch(u=>a("load",u))},children:l.thread.sorts.map(r=>(0,gt.jsx)("option",{value:r,children:t(`sort.${r}`)},r))})]})}var Ce=D(Oe(),1);var B=D($(),1),Bg=(e,t)=>(0,B.jsx)(pr,{comment:e,depth:t}),Xs=(0,Ce.createContext)(Bg);function Zs({children:e,className:t}){let n=ae("Comments.List"),l=e??Bg,{snapshot:o,openError:a,t:i,elements:r,focusView:u}=n;if(a||o?.status==="error")return(0,B.jsxs)("div",{className:w("gc-notice","gc-notice--error",r.notice),role:"alert",children:[(0,B.jsx)("p",{className:"gc-notice__text",children:i("unavailable")}),(0,B.jsx)("button",{type:"button",className:w("gc-button",r.button),onClick:n.retry,children:i("retry")})]});if(!o||o.status==="loading"&&o.comments.length===0)return(0,B.jsx)("p",{className:"gc-list__status",role:"status",children:i("loading")});let s=w("gc-list",r.list,t);if(u){let m=o.comments,f=ue(m,u.id)?.node;return(0,B.jsx)(Xs.Provider,{value:l,children:(0,B.jsxs)("div",{className:"gc-focus",children:[(0,B.jsxs)("button",{type:"button",className:w("gc-button","gc-button--link","gc-focus__back",r.button),onClick:n.closeFocusView,children:[(0,B.jsx)(mg,{}),i("backToAll")]}),u.truncated&&(0,B.jsx)("p",{className:"gc-focus__truncated",children:i("ancestorsTruncated")}),u.ancestors.length>0&&(0,B.jsx)("ol",{className:"gc-context",children:u.ancestors.map(c=>(0,B.jsx)(pr,{comment:ue(m,c.id)?.node??c,showReplies:!1},c.id))}),f&&(0,B.jsx)("ol",{className:s,children:l(f,0)})]})})}return o.comments.length===0?null:(0,B.jsx)(Xs.Provider,{value:l,children:(0,B.jsx)("ol",{className:s,children:o.comments.map(m=>(0,B.jsx)(Ce.Fragment,{children:l(m,0)},m.id))})})}function pr({comment:e,depth:t=0,children:n,showReplies:l=!0,className:o}){let a=ae("Comments.Item"),{t:i,elements:r}=a,[u,s]=(0,Ce.useState)("view"),[m,f]=(0,Ce.useState)(null),c=(0,Ce.useRef)(null),g=(0,Ce.useRef)(null),v=(0,Ce.useRef)(!1),b=(0,Ce.useCallback)((L,H)=>{L==="view"?v.current=!0:g.current=H??null,s(L)},[]);(0,Ce.useEffect)(()=>{if(u!=="view"||!v.current)return;v.current=!1;let L=g.current;(L?.isConnected?L:c.current)?.focus()},[u]);let S=a.commenter.status==="signed-in",h=a.writable&&S,p={view:!0,reply:a.canCompose,edit:h&&e.can.edit,report:h&&e.can.flag,delete:h&&e.can.delete}[u],y=p?u:"view";(0,Ce.useEffect)(()=>{p||b("view")},[p,b]),(0,Ce.useEffect)(()=>{if(!m||m.error)return;let L=setTimeout(()=>f(null),3e3);return()=>clearTimeout(L)},[m]);let C=(0,Ce.useMemo)(()=>({comment:e,depth:t,mode:y,setMode:b,notice:m,setNotice:f}),[e,t,y,b,m]),A=e.author?e.author.name||e.author.username:null,E=e.deleted||!A?i("deletedComment"):i("commentBy",{name:A}),x=()=>b("view");return(0,B.jsx)(Bs.Provider,{value:C,children:(0,B.jsxs)("li",{className:w("gc-comment",t>0&&"gc-comment--reply",e.pinned&&"gc-comment--pinned",e.deleted&&"gc-comment--deleted",a.highlightId===e.id&&"gc-comment--highlighted",r.comment,o),"data-depth":t,children:[(0,B.jsxs)("article",{ref:c,id:`gc-${e.id}`,className:"gc-comment__card",tabIndex:-1,"aria-label":E,children:[n??(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(mr,{}),(0,B.jsxs)("div",{className:"gc-comment__main",children:[(0,B.jsx)(dr,{}),(0,B.jsx)(gr,{}),(0,B.jsx)(hr,{})]})]}),y==="report"&&(0,B.jsx)(Hg,{onClose:x}),y==="delete"&&(0,B.jsx)(qg,{onClose:x}),m&&(0,B.jsx)("p",{className:w("gc-comment__notice",m.error&&"gc-comment__notice--error"),role:m.error?"alert":"status",children:m.text})]}),y==="reply"&&(0,B.jsx)(zl,{replyTo:e,autoFocus:!0,onDone:x}),l&&(0,B.jsx)(F_,{})]})})}function F_(){let e=ae(),{comment:t,depth:n}=bn("Comments.Item"),l=(0,Ce.useContext)(Xs),{t:o,thread:a,snapshot:i,maxDepth:r,elements:u}=e;if(!a||!i)return null;let s=t.children,m=w("gc-button","gc-button--link",u.button);if(n>=r)return t.direct_reply_count===0&&s.length===0?null:(0,B.jsx)("button",{type:"button",className:w(m,"gc-comment__continue"),onClick:()=>{e.continueThread(t.id)},children:o("continueThread")});let f=i.branches[t.id],c=t.direct_reply_count-s.length,g=(f?.hasMore??!0)&&c>0,v=t.author?.name||t.author?.username||"",b=async()=>{let S=new Set(s.map(p=>p.id));try{await a.loadReplies(t.id)}catch(p){e.reportError("loadReplies",p);return}let d=(ue(a.snapshot().comments,t.id)?.node.children??[]).find(p=>!S.has(p.id));d&&e.focusComment(d.id)};return(0,B.jsxs)(B.Fragment,{children:[s.length>0&&(0,B.jsx)("ol",{className:"gc-replies","aria-label":o("repliesTo",{name:v}),children:s.map(S=>(0,B.jsx)(Ce.Fragment,{children:l(S,n+1)},S.id))}),g&&(0,B.jsx)("button",{type:"button",className:w(m,"gc-comment__more"),disabled:f?.loading,"aria-busy":f?.loading||void 0,onClick:()=>{b()},children:s.length===0?o("loadReplies",{count:c}):o("loadMoreReplies",{count:c})})]})}var Yg=D(Oe(),1);var Ee=D($(),1);function Ks({children:e,className:t}){let n=ae("Comments.SignIn"),{t:l,commenter:o,elements:a,client:i,config:r,snapshot:u,signInMode:s}=n,m=(0,Yg.useId)();if(e)return(0,Ee.jsx)(Ee.Fragment,{children:e(o)});if(s==="manual")return null;let f=w("gc-button",a.button),c=w("gc-signin",a.signIn,t);if(o.status==="signed-in"&&o.user){let{user:h}=o;return(0,Ee.jsxs)("div",{className:w(c,"gc-signin--signed-in"),children:[(0,Ee.jsx)(Ys,{user:h,className:"gc-avatar--small"}),(0,Ee.jsx)("span",{className:"gc-signin__user",children:l("signedInAs",{username:`@${h.username}`})}),(0,Ee.jsx)("button",{type:"button",className:w(f,"gc-button--link"),onClick:()=>{o.signOut()},children:l("signOut")})]})}let g=u?.thread.closed??!1;if(s!=="inline"||!n.writable||g||!u)return null;let v=r?.forum.name??new URL(i.forum).host,b=o.status==="signing-in",S=o.error&&o.error.type!=="cancelled"?o.error.type==="invalid_key"?l("sessionExpired"):o.error.errors[0]??l("genericError"):null;return(0,Ee.jsxs)("div",{className:w(c,b&&"gc-signin--signing-in"),role:"group","aria-labelledby":m,children:[(0,Ee.jsx)("p",{id:m,className:"gc-signin__title",children:l("joinConversation")}),(0,Ee.jsxs)("div",{"aria-live":"polite",children:[b?(0,Ee.jsx)("p",{className:"gc-signin__body",children:l("signingIn")}):(0,Ee.jsx)("p",{className:"gc-signin__body",children:l("joinConversationBody",{forum:v})}),S&&!b&&(0,Ee.jsx)("p",{className:"gc-signin__error",role:"alert",children:S})]}),(0,Ee.jsx)("div",{className:"gc-signin__actions",children:b?(0,Ee.jsx)("button",{type:"button",className:f,onClick:()=>o.cancelSignIn(),children:l("signInCancel")}):(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsx)("button",{type:"button",className:w(f,"gc-button--primary",a.primaryButton),onClick:()=>{o.signIn().catch(()=>{})},children:l("signIn")}),o.providers.map(h=>(0,Ee.jsx)("button",{type:"button",className:f,onClick:()=>{o.signIn({provider:h.name}).catch(()=>{})},children:l("signInWith",{provider:h.title})},h.name))]})})]})}var Dl=D($(),1);function Js({className:e}){let{t,snapshot:n,readOnly:l,commenter:o,commentingDenied:a,elements:i}=ae("Comments.Notice");if(!n||n.status==="error")return null;let r=null,u="";return l||o.degraded?(r=t("readOnly"),u="gc-notice--read-only"):n.thread.closed?(r=t("closed"),u="gc-notice--closed"):a&&(r=t("cannotComment"),u="gc-notice--denied"),r?(0,Dl.jsx)("p",{className:w("gc-notice",u,i.notice,e),role:"status",children:r}):null}function Is({className:e}){let t=ae("Comments.NewComments"),{t:n,thread:l,snapshot:o,elements:a,focusView:i}=t,r=i?0:o?.pendingNew??0,u=()=>{if(!l)return;let s=new Set(l.snapshot().comments.map(f=>f.id));l.showPending();let m=l.snapshot().comments.find(f=>!s.has(f.id));m&&t.focusComment(m.id)};return(0,Dl.jsx)("div",{className:"gc-pill-region","aria-live":"polite",children:r>0&&(0,Dl.jsx)("button",{type:"button",className:w("gc-button","gc-pill",a.button,a.pill,e),onClick:u,children:n("newComments",{count:r})})})}function Fs({className:e}){let{t,snapshot:n,elements:l}=ae("Comments.AwaitingApproval"),o=n?.awaitingApproval??[];return(0,Dl.jsx)("div",{className:"gc-pending-region","aria-live":"polite",children:o.map((a,i)=>(0,Dl.jsx)("p",{className:w("gc-notice","gc-notice--pending",l.notice,e),children:a.message||t("pending")},a.reviewable_id??`pending-${i}`))})}function Ps({className:e}){let t=ae("Comments.LoadMore"),{t:n,thread:l,snapshot:o,elements:a,focusView:i}=t;if(!l||!o?.hasMore||i||o.status!=="ready")return null;let r=async()=>{let u=new Set(l.snapshot().comments.map(m=>m.id));try{await l.loadMore()}catch(m){t.reportError("loadMore",m);return}let s=l.snapshot().comments.find(m=>!u.has(m.id));s&&!l.snapshot().hasMore&&t.focusComment(s.id)};return(0,Dl.jsx)("button",{type:"button",className:w("gc-button","gc-load-more",a.button,a.loadMore,e),disabled:o.loadingMore,"aria-busy":o.loadingMore||void 0,onClick:()=>{r()},children:o.loadingMore?n("loading"):n("loadMore")})}var Rt=D($(),1);function P_(e){return(0,Rt.jsxs)(Hs,{...e,children:[(0,Rt.jsx)(js,{}),(0,Rt.jsx)(Vs,{}),(0,Rt.jsx)(Js,{}),(0,Rt.jsx)(Ks,{}),(0,Rt.jsx)(zl,{}),(0,Rt.jsx)(Fs,{}),(0,Rt.jsx)(Is,{}),(0,Rt.jsx)(Zs,{}),(0,Rt.jsx)(Ps,{})]})}var $s=Object.assign(P_,{Root:Hs,Header:js,Count:Qs,Sort:ks,SignIn:Ks,Composer:zl,List:Zs,Item:pr,Avatar:mr,Meta:dr,Body:gr,Actions:hr,LoadMore:Ps,NewComments:Is,AwaitingApproval:Fs,Notice:Js,DevPanel:Vs});var Eo=D(Oe(),1);function Gg(e,t={}){let n=Ol(t.forum)?.client,l=e?$_(e):null,o=(0,Eo.useRef)(e);o.current=e;let[a,i]=(0,Eo.useState)({key:null,count:null,error:null});return(0,Eo.useEffect)(()=>{let r=o.current;if(l===null||!r||!n)return;let u=!0;return n.count(r).then(s=>u&&i({key:l,count:s,error:null}),s=>u&&i({key:l,count:null,error:Be(s)})),()=>{u=!1}},[n,l]),a.key===l?{count:a.count,error:a.error}:{count:null,error:null}}function $_(e){try{return Oa(e)}catch{return null}}var Vg=D($(),1);function Ws({identifier:e,host:t,url:n,topicId:l,forum:o,render:a,className:i}){let r=Ol(o),u=n??Ji(),s=l!==void 0?{topicId:l}:e!==void 0?{identifier:e,host:t}:u?{url:u}:null,{count:m}=Gg(s,{forum:o});if(!r)return null;let{t:f}=r;return(0,Vg.jsx)("span",{className:w("gc-count",i),"aria-busy":m===null||void 0,children:m===null?null:a?a(m):f("commentCount",{count:m})})}var nb=D(ec(),1),lb=D(K0(),1);function J0(e,t){if(t===null)return;if(e==="string")return t;let n=t.trim();if(e==="boolean")return n.toLowerCase()!=="false";if(e==="number"){let l=Number(n);return n!==""&&Number.isFinite(l)?l:void 0}return e.includes(n)?n:void 0}function iT(e,t){return t==null?null:e==="boolean"?t?"":null:String(t)}function I0(e,t){let n={};for(let[l,{prop:o,type:a}]of Object.entries(t)){let i=J0(a,e.getAttribute(l));i!==void 0&&(n[o]=i)}return n}function F0(e,t){for(let[n,{prop:l,type:o}]of Object.entries(t))l in e||Object.defineProperty(e,l,{configurable:!0,enumerable:!0,get(){let a=J0(o,this.getAttribute(n));return o==="boolean"?a===!0:a},set(a){let i=iT(o,a);i===null?this.removeAttribute(n):this.setAttribute(n,i)}})}function rT(e){let t=[];for(let n of e.classList)n.startsWith("gc-")&&t.push(n);return t.join(" ")}function ns(e){let t=rT(e);t===""?e.hasAttribute("part")&&e.removeAttribute("part"):e.getAttribute("part")!==t&&e.setAttribute("part",t)}function uT(e){if(e.nodeType===1){ns(e);for(let t of e.querySelectorAll("*"))ns(t)}}function P0(e){for(let n of e.querySelectorAll("*"))ns(n);let t=new MutationObserver(n=>{for(let l of n)l.type==="attributes"?ns(l.target):l.addedNodes.forEach(uT)});return t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()}var $0=`/*
|
|
24
32
|
* g-comments default theme.
|
|
25
33
|
*
|
|
26
34
|
* Every rule is scoped to \`.gc-root--styled\` (the \`unstyled\` prop drops that
|
|
@@ -28,63 +36,58 @@ Error generating stack: `+l.message+`
|
|
|
28
36
|
* class selectors override it when loaded after this file. Nothing outside the
|
|
29
37
|
* widget root is touched.
|
|
30
38
|
*
|
|
39
|
+
* The rules live in the \`gc-defaults\` cascade layer, so any unlayered CSS of
|
|
40
|
+
* your own wins regardless of order or specificity; a forum theme
|
|
41
|
+
* (\`theme="forum"\`) sits in the \`gc-forum\` layer, above the defaults and
|
|
42
|
+
* below your CSS.
|
|
43
|
+
*
|
|
31
44
|
* Public tokens are \`--gc-*\`. Set them on the widget root (or through
|
|
32
45
|
* \`appearance.variables\`) or on any ancestor such as \`:root\`; whatever you set
|
|
33
46
|
* applies in every colour scheme. Unset tokens fall back to the defaults below,
|
|
34
47
|
* resolved into private \`--_gc-*\` variables.
|
|
35
48
|
*/
|
|
36
49
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
@layer gc-defaults, gc-forum;
|
|
51
|
+
|
|
52
|
+
@layer gc-defaults {
|
|
53
|
+
|
|
54
|
+
/* Tokens: light defaults */
|
|
55
|
+
|
|
56
|
+
.gc-root--styled {
|
|
57
|
+
--_gc-font: var(
|
|
58
|
+
--gc-font,
|
|
59
|
+
system-ui,
|
|
60
|
+
-apple-system,
|
|
61
|
+
"Segoe UI",
|
|
62
|
+
Roboto,
|
|
63
|
+
"Helvetica Neue",
|
|
64
|
+
Arial,
|
|
65
|
+
sans-serif,
|
|
66
|
+
"Apple Color Emoji",
|
|
67
|
+
"Segoe UI Emoji"
|
|
68
|
+
);
|
|
69
|
+
--_gc-fg: var(--gc-fg, #1f2328);
|
|
70
|
+
--_gc-fg-muted: var(--gc-fg-muted, #59636e);
|
|
71
|
+
--_gc-bg: var(--gc-bg, #ffffff);
|
|
72
|
+
--_gc-bg-subtle: var(--gc-bg-subtle, #f6f8fa);
|
|
73
|
+
--_gc-border: var(--gc-border, #d1d9e0);
|
|
74
|
+
--_gc-accent: var(--gc-accent, #0969da);
|
|
75
|
+
--_gc-accent-fg: var(--gc-accent-fg, #ffffff);
|
|
76
|
+
--_gc-danger: var(--gc-danger, #cf222e);
|
|
77
|
+
--_gc-radius: var(--gc-radius, 8px);
|
|
78
|
+
--_gc-shadow: var(--gc-shadow, 0 1px 2px rgb(31 35 40 / 0.08), 0 8px 24px rgb(66 74 83 / 0.12));
|
|
79
|
+
--_gc-space: var(--gc-space, 0.5rem);
|
|
80
|
+
--_gc-avatar-size: var(--gc-avatar-size, 2.25rem);
|
|
81
|
+
}
|
|
65
82
|
|
|
66
|
-
.gc-root--styled[data-gc-theme="light"],
|
|
67
|
-
.gc-root--styled[data-gc-theme="auto"] {
|
|
68
|
-
|
|
69
|
-
}
|
|
83
|
+
.gc-root--styled[data-gc-theme="light"],
|
|
84
|
+
.gc-root--styled[data-gc-theme="auto"] {
|
|
85
|
+
color-scheme: light;
|
|
86
|
+
}
|
|
70
87
|
|
|
71
|
-
/* Tokens: dark defaults */
|
|
72
|
-
|
|
73
|
-
.gc-root--styled[data-gc-theme="dark"] {
|
|
74
|
-
--_gc-fg: var(--gc-fg, #e6edf3);
|
|
75
|
-
--_gc-fg-muted: var(--gc-fg-muted, #9198a1);
|
|
76
|
-
--_gc-bg: var(--gc-bg, #0d1117);
|
|
77
|
-
--_gc-bg-subtle: var(--gc-bg-subtle, #151b23);
|
|
78
|
-
--_gc-border: var(--gc-border, #3d444d);
|
|
79
|
-
--_gc-accent: var(--gc-accent, #4493f8);
|
|
80
|
-
--_gc-accent-fg: var(--gc-accent-fg, #0d1117);
|
|
81
|
-
--_gc-danger: var(--gc-danger, #f85149);
|
|
82
|
-
--_gc-shadow: var(--gc-shadow, 0 1px 2px rgb(1 4 9 / 0.4), 0 8px 24px rgb(1 4 9 / 0.6));
|
|
83
|
-
color-scheme: dark;
|
|
84
|
-
}
|
|
88
|
+
/* Tokens: dark defaults */
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
.gc-root--styled[data-gc-theme="auto"] {
|
|
90
|
+
.gc-root--styled[data-gc-theme="dark"] {
|
|
88
91
|
--_gc-fg: var(--gc-fg, #e6edf3);
|
|
89
92
|
--_gc-fg-muted: var(--gc-fg-muted, #9198a1);
|
|
90
93
|
--_gc-bg: var(--gc-bg, #0d1117);
|
|
@@ -96,1076 +99,1091 @@ Error generating stack: `+l.message+`
|
|
|
96
99
|
--_gc-shadow: var(--gc-shadow, 0 1px 2px rgb(1 4 9 / 0.4), 0 8px 24px rgb(1 4 9 / 0.6));
|
|
97
100
|
color-scheme: dark;
|
|
98
101
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* theme="inherit": derive the neutrals from the page's own text colour. */
|
|
102
|
-
.gc-root--styled:not([data-gc-theme]) {
|
|
103
|
-
--_gc-fg: var(--gc-fg, currentColor);
|
|
104
|
-
--_gc-fg-muted: var(--gc-fg-muted, color-mix(in srgb, currentColor 68%, transparent));
|
|
105
|
-
--_gc-bg: var(--gc-bg, transparent);
|
|
106
|
-
--_gc-bg-subtle: var(--gc-bg-subtle, color-mix(in srgb, currentColor 6%, transparent));
|
|
107
|
-
--_gc-border: var(--gc-border, color-mix(in srgb, currentColor 22%, transparent));
|
|
108
|
-
}
|
|
109
102
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
-webkit-text-size-adjust: 100%;
|
|
125
|
-
text-size-adjust: 100%;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:where(.gc-root--styled),
|
|
129
|
-
:where(.gc-root--styled) *,
|
|
130
|
-
:where(.gc-root--styled) *::before,
|
|
131
|
-
:where(.gc-root--styled) *::after {
|
|
132
|
-
box-sizing: border-box;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:where(.gc-root--styled) :focus-visible {
|
|
136
|
-
outline: 2px solid var(--_gc-accent);
|
|
137
|
-
outline-offset: 2px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:where(.gc-root--styled) .gc-icon {
|
|
141
|
-
flex: none;
|
|
142
|
-
width: 1rem;
|
|
143
|
-
height: 1rem;
|
|
144
|
-
}
|
|
103
|
+
@media (prefers-color-scheme: dark) {
|
|
104
|
+
.gc-root--styled[data-gc-theme="auto"] {
|
|
105
|
+
--_gc-fg: var(--gc-fg, #e6edf3);
|
|
106
|
+
--_gc-fg-muted: var(--gc-fg-muted, #9198a1);
|
|
107
|
+
--_gc-bg: var(--gc-bg, #0d1117);
|
|
108
|
+
--_gc-bg-subtle: var(--gc-bg-subtle, #151b23);
|
|
109
|
+
--_gc-border: var(--gc-border, #3d444d);
|
|
110
|
+
--_gc-accent: var(--gc-accent, #4493f8);
|
|
111
|
+
--_gc-accent-fg: var(--gc-accent-fg, #0d1117);
|
|
112
|
+
--_gc-danger: var(--gc-danger, #f85149);
|
|
113
|
+
--_gc-shadow: var(--gc-shadow, 0 1px 2px rgb(1 4 9 / 0.4), 0 8px 24px rgb(1 4 9 / 0.6));
|
|
114
|
+
color-scheme: dark;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
145
117
|
|
|
146
|
-
/*
|
|
147
|
-
|
|
148
|
-
:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
min-height: 2.25rem;
|
|
155
|
-
margin: 0;
|
|
156
|
-
padding: 0 0.875rem;
|
|
157
|
-
border: 1px solid var(--_gc-border);
|
|
158
|
-
border-radius: var(--_gc-radius);
|
|
159
|
-
background: var(--_gc-bg);
|
|
160
|
-
color: var(--_gc-fg);
|
|
161
|
-
font: inherit;
|
|
162
|
-
font-size: 0.875rem;
|
|
163
|
-
font-weight: 600;
|
|
164
|
-
line-height: 1.2;
|
|
165
|
-
text-decoration: none;
|
|
166
|
-
white-space: nowrap;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
transition:
|
|
169
|
-
background-color 0.15s,
|
|
170
|
-
border-color 0.15s,
|
|
171
|
-
color 0.15s;
|
|
172
|
-
}
|
|
118
|
+
/* theme="inherit": derive the neutrals from the page's own text colour. */
|
|
119
|
+
.gc-root--styled:not([data-gc-theme]) {
|
|
120
|
+
--_gc-fg: var(--gc-fg, currentColor);
|
|
121
|
+
--_gc-fg-muted: var(--gc-fg-muted, color-mix(in srgb, currentColor 68%, transparent));
|
|
122
|
+
--_gc-bg: var(--gc-bg, transparent);
|
|
123
|
+
--_gc-bg-subtle: var(--gc-bg-subtle, color-mix(in srgb, currentColor 6%, transparent));
|
|
124
|
+
--_gc-border: var(--gc-border, color-mix(in srgb, currentColor 22%, transparent));
|
|
125
|
+
}
|
|
173
126
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
127
|
+
/* Root */
|
|
128
|
+
|
|
129
|
+
.gc-root--styled {
|
|
130
|
+
position: relative;
|
|
131
|
+
container: gc-root / inline-size;
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
gap: calc(var(--_gc-space) * 2);
|
|
135
|
+
min-width: 0;
|
|
136
|
+
font-family: var(--_gc-font);
|
|
137
|
+
font-size: 1rem;
|
|
138
|
+
line-height: 1.5;
|
|
139
|
+
color: var(--_gc-fg);
|
|
140
|
+
background: var(--_gc-bg);
|
|
141
|
+
-webkit-text-size-adjust: 100%;
|
|
142
|
+
text-size-adjust: 100%;
|
|
143
|
+
}
|
|
177
144
|
|
|
178
|
-
:where(.gc-root--styled)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
145
|
+
:where(.gc-root--styled),
|
|
146
|
+
:where(.gc-root--styled) *,
|
|
147
|
+
:where(.gc-root--styled) *::before,
|
|
148
|
+
:where(.gc-root--styled) *::after {
|
|
149
|
+
box-sizing: border-box;
|
|
150
|
+
}
|
|
182
151
|
|
|
183
|
-
:where(.gc-root--styled)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
152
|
+
:where(.gc-root--styled) :focus-visible {
|
|
153
|
+
outline: 2px solid var(--_gc-accent);
|
|
154
|
+
outline-offset: 2px;
|
|
155
|
+
}
|
|
188
156
|
|
|
189
|
-
:where(.gc-root--styled) .gc-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
157
|
+
:where(.gc-root--styled) .gc-icon {
|
|
158
|
+
flex: none;
|
|
159
|
+
width: 1rem;
|
|
160
|
+
height: 1rem;
|
|
161
|
+
}
|
|
193
162
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
163
|
+
/* Buttons */
|
|
164
|
+
|
|
165
|
+
:where(.gc-root--styled) .gc-button {
|
|
166
|
+
appearance: none;
|
|
167
|
+
display: inline-flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
gap: 0.375rem;
|
|
171
|
+
min-height: 2.25rem;
|
|
172
|
+
margin: 0;
|
|
173
|
+
padding: 0 0.875rem;
|
|
174
|
+
border: 1px solid var(--_gc-border);
|
|
175
|
+
border-radius: var(--_gc-radius);
|
|
176
|
+
background: var(--_gc-bg);
|
|
177
|
+
color: var(--_gc-fg);
|
|
178
|
+
font: inherit;
|
|
179
|
+
font-size: 0.875rem;
|
|
180
|
+
font-weight: 600;
|
|
181
|
+
line-height: 1.2;
|
|
182
|
+
text-decoration: none;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
transition:
|
|
186
|
+
background-color 0.15s,
|
|
187
|
+
border-color 0.15s,
|
|
188
|
+
color 0.15s;
|
|
189
|
+
}
|
|
199
190
|
|
|
200
|
-
:where(.gc-root--styled) .gc-button
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
191
|
+
:where(.gc-root--styled) .gc-button:hover:not(:disabled) {
|
|
192
|
+
background: var(--_gc-bg-subtle);
|
|
193
|
+
}
|
|
204
194
|
|
|
205
|
-
:where(.gc-root--styled) .gc-button
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
}
|
|
195
|
+
:where(.gc-root--styled) .gc-button:disabled {
|
|
196
|
+
opacity: 0.55;
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
}
|
|
210
199
|
|
|
211
|
-
:where(.gc-root--styled) .gc-button--
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
200
|
+
:where(.gc-root--styled) .gc-button--primary {
|
|
201
|
+
border-color: var(--_gc-accent);
|
|
202
|
+
background: var(--_gc-accent);
|
|
203
|
+
color: var(--_gc-accent-fg);
|
|
204
|
+
}
|
|
215
205
|
|
|
216
|
-
:where(.gc-root--styled) .gc-button--
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
206
|
+
:where(.gc-root--styled) .gc-button--primary:hover:not(:disabled) {
|
|
207
|
+
background: var(--_gc-accent);
|
|
208
|
+
background: color-mix(in srgb, var(--_gc-accent) 86%, var(--_gc-fg));
|
|
209
|
+
}
|
|
221
210
|
|
|
222
|
-
:where(.gc-root--styled) .gc-button--
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
211
|
+
:where(.gc-root--styled) .gc-button--danger {
|
|
212
|
+
border-color: var(--_gc-danger);
|
|
213
|
+
background: var(--_gc-danger);
|
|
214
|
+
color: #ffffff;
|
|
215
|
+
}
|
|
226
216
|
|
|
227
|
-
:where(.gc-root--styled) .gc-button--
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
background: none;
|
|
232
|
-
color: var(--_gc-accent);
|
|
233
|
-
}
|
|
217
|
+
:where(.gc-root--styled) .gc-button--danger:hover:not(:disabled) {
|
|
218
|
+
background: var(--_gc-danger);
|
|
219
|
+
background: color-mix(in srgb, var(--_gc-danger) 86%, var(--_gc-fg));
|
|
220
|
+
}
|
|
234
221
|
|
|
235
|
-
:where(.gc-root--styled) .gc-button--
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
222
|
+
:where(.gc-root--styled) .gc-button--ghost {
|
|
223
|
+
border-color: transparent;
|
|
224
|
+
background: transparent;
|
|
225
|
+
color: var(--_gc-fg-muted);
|
|
226
|
+
}
|
|
239
227
|
|
|
240
|
-
|
|
228
|
+
:where(.gc-root--styled) .gc-button--ghost:hover:not(:disabled) {
|
|
229
|
+
background: var(--_gc-bg-subtle);
|
|
230
|
+
color: var(--_gc-fg);
|
|
231
|
+
}
|
|
241
232
|
|
|
242
|
-
:where(.gc-root--styled) .gc-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
gap: var(--_gc-space);
|
|
248
|
-
padding-bottom: var(--_gc-space);
|
|
249
|
-
border-bottom: 1px solid var(--_gc-border);
|
|
250
|
-
}
|
|
233
|
+
:where(.gc-root--styled) .gc-button--small {
|
|
234
|
+
min-height: 2rem;
|
|
235
|
+
padding: 0 0.5rem;
|
|
236
|
+
font-size: 0.8125rem;
|
|
237
|
+
}
|
|
251
238
|
|
|
252
|
-
:where(.gc-root--styled) .gc-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
line-height: 1.3;
|
|
257
|
-
}
|
|
239
|
+
:where(.gc-root--styled) .gc-button--icon {
|
|
240
|
+
width: 2rem;
|
|
241
|
+
padding: 0;
|
|
242
|
+
}
|
|
258
243
|
|
|
259
|
-
:where(.gc-root--styled) .gc-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
244
|
+
:where(.gc-root--styled) .gc-button--link {
|
|
245
|
+
min-height: 0;
|
|
246
|
+
padding: 0.25rem 0;
|
|
247
|
+
border-color: transparent;
|
|
248
|
+
background: none;
|
|
249
|
+
color: var(--_gc-accent);
|
|
250
|
+
}
|
|
266
251
|
|
|
267
|
-
:where(.gc-root--styled) .gc-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
border-radius: var(--_gc-radius);
|
|
272
|
-
background: var(--_gc-bg);
|
|
273
|
-
color: var(--_gc-fg);
|
|
274
|
-
font: inherit;
|
|
275
|
-
}
|
|
252
|
+
:where(.gc-root--styled) .gc-button--link:hover:not(:disabled) {
|
|
253
|
+
background: none;
|
|
254
|
+
text-decoration: underline;
|
|
255
|
+
}
|
|
276
256
|
|
|
277
|
-
/*
|
|
257
|
+
/* Header */
|
|
278
258
|
|
|
279
|
-
:where(.gc-root--styled) .gc-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
259
|
+
:where(.gc-root--styled) .gc-header {
|
|
260
|
+
display: flex;
|
|
261
|
+
flex-wrap: wrap;
|
|
262
|
+
align-items: center;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
gap: var(--_gc-space);
|
|
265
|
+
padding-bottom: var(--_gc-space);
|
|
266
|
+
border-bottom: 1px solid var(--_gc-border);
|
|
267
|
+
}
|
|
287
268
|
|
|
288
|
-
:where(.gc-root--styled) .gc-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
269
|
+
:where(.gc-root--styled) .gc-header__count {
|
|
270
|
+
margin: 0;
|
|
271
|
+
font-size: 1.125rem;
|
|
272
|
+
font-weight: 700;
|
|
273
|
+
line-height: 1.3;
|
|
274
|
+
}
|
|
292
275
|
|
|
293
|
-
:where(.gc-root--styled) .gc-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
276
|
+
:where(.gc-root--styled) .gc-sort {
|
|
277
|
+
display: inline-flex;
|
|
278
|
+
align-items: center;
|
|
279
|
+
gap: 0.5rem;
|
|
280
|
+
font-size: 0.875rem;
|
|
281
|
+
color: var(--_gc-fg-muted);
|
|
282
|
+
}
|
|
298
283
|
|
|
299
|
-
:where(.gc-root--styled) .gc-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
284
|
+
:where(.gc-root--styled) .gc-sort__select {
|
|
285
|
+
min-height: 2rem;
|
|
286
|
+
padding: 0.25rem 0.5rem;
|
|
287
|
+
border: 1px solid var(--_gc-border);
|
|
288
|
+
border-radius: var(--_gc-radius);
|
|
289
|
+
background: var(--_gc-bg);
|
|
290
|
+
color: var(--_gc-fg);
|
|
291
|
+
font: inherit;
|
|
292
|
+
}
|
|
304
293
|
|
|
305
|
-
|
|
306
|
-
display: flex;
|
|
307
|
-
flex-wrap: wrap;
|
|
308
|
-
gap: var(--_gc-space);
|
|
309
|
-
}
|
|
294
|
+
/* Sign-in panel */
|
|
310
295
|
|
|
311
|
-
:where(.gc-root--styled) .gc-signin
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
font-size: 0.875rem;
|
|
320
|
-
}
|
|
296
|
+
:where(.gc-root--styled) .gc-signin {
|
|
297
|
+
display: grid;
|
|
298
|
+
gap: var(--_gc-space);
|
|
299
|
+
padding: calc(var(--_gc-space) * 2);
|
|
300
|
+
border: 1px solid var(--_gc-border);
|
|
301
|
+
border-radius: var(--_gc-radius);
|
|
302
|
+
background: var(--_gc-bg-subtle);
|
|
303
|
+
}
|
|
321
304
|
|
|
322
|
-
:where(.gc-root--styled) .gc-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
white-space: nowrap;
|
|
327
|
-
}
|
|
305
|
+
:where(.gc-root--styled) .gc-signin__title {
|
|
306
|
+
margin: 0;
|
|
307
|
+
font-weight: 700;
|
|
308
|
+
}
|
|
328
309
|
|
|
329
|
-
|
|
310
|
+
:where(.gc-root--styled) .gc-signin__body {
|
|
311
|
+
margin: 0;
|
|
312
|
+
color: var(--_gc-fg-muted);
|
|
313
|
+
font-size: 0.9375rem;
|
|
314
|
+
}
|
|
330
315
|
|
|
331
|
-
:where(.gc-root--styled) .gc-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
316
|
+
:where(.gc-root--styled) .gc-signin__error {
|
|
317
|
+
margin: 0.25rem 0 0;
|
|
318
|
+
color: var(--_gc-danger);
|
|
319
|
+
font-size: 0.875rem;
|
|
320
|
+
}
|
|
335
321
|
|
|
336
|
-
:where(.gc-root--styled) .gc-
|
|
337
|
-
:
|
|
338
|
-
|
|
339
|
-
|
|
322
|
+
:where(.gc-root--styled) .gc-signin__actions {
|
|
323
|
+
display: flex;
|
|
324
|
+
flex-wrap: wrap;
|
|
325
|
+
gap: var(--_gc-space);
|
|
326
|
+
}
|
|
340
327
|
|
|
341
|
-
:where(.gc-root--styled) .gc-
|
|
342
|
-
|
|
343
|
-
|
|
328
|
+
:where(.gc-root--styled) .gc-signin--signed-in {
|
|
329
|
+
display: flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
gap: var(--_gc-space);
|
|
332
|
+
padding: 0;
|
|
333
|
+
border: 0;
|
|
334
|
+
background: none;
|
|
335
|
+
color: var(--_gc-fg-muted);
|
|
336
|
+
font-size: 0.875rem;
|
|
337
|
+
}
|
|
344
338
|
|
|
345
|
-
:where(.gc-root--styled) .gc-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
339
|
+
:where(.gc-root--styled) .gc-signin__user {
|
|
340
|
+
min-width: 0;
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
text-overflow: ellipsis;
|
|
343
|
+
white-space: nowrap;
|
|
344
|
+
}
|
|
350
345
|
|
|
351
|
-
|
|
352
|
-
margin: 0;
|
|
353
|
-
color: var(--_gc-fg-muted);
|
|
354
|
-
font-size: 0.8125rem;
|
|
355
|
-
}
|
|
346
|
+
/* Composer */
|
|
356
347
|
|
|
357
|
-
:where(.gc-root--styled) .gc-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
348
|
+
:where(.gc-root--styled) .gc-composer {
|
|
349
|
+
display: grid;
|
|
350
|
+
gap: var(--_gc-space);
|
|
351
|
+
}
|
|
362
352
|
|
|
363
|
-
:where(.gc-root--styled) .gc-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
border: 0;
|
|
368
|
-
border-bottom: 2px solid transparent;
|
|
369
|
-
background: none;
|
|
370
|
-
color: var(--_gc-fg-muted);
|
|
371
|
-
font: inherit;
|
|
372
|
-
font-size: 0.875rem;
|
|
373
|
-
cursor: pointer;
|
|
374
|
-
}
|
|
353
|
+
:where(.gc-root--styled) .gc-composer--replying,
|
|
354
|
+
:where(.gc-root--styled) .gc-composer--editing {
|
|
355
|
+
margin-top: var(--_gc-space);
|
|
356
|
+
}
|
|
375
357
|
|
|
376
|
-
:where(.gc-root--styled) .gc-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
font-weight: 600;
|
|
380
|
-
}
|
|
358
|
+
:where(.gc-root--styled) .gc-comment > .gc-composer {
|
|
359
|
+
margin-inline-start: calc(var(--_gc-avatar-size) + var(--_gc-space) * 1.5);
|
|
360
|
+
}
|
|
381
361
|
|
|
382
|
-
:where(.gc-root--styled) .gc-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
362
|
+
:where(.gc-root--styled) .gc-composer__guidelines {
|
|
363
|
+
justify-self: start;
|
|
364
|
+
color: var(--_gc-fg-muted);
|
|
365
|
+
font-size: 0.8125rem;
|
|
366
|
+
}
|
|
386
367
|
|
|
387
|
-
:where(.gc-root--styled) .gc-
|
|
388
|
-
|
|
389
|
-
|
|
368
|
+
:where(.gc-root--styled) .gc-composer__context {
|
|
369
|
+
margin: 0;
|
|
370
|
+
color: var(--_gc-fg-muted);
|
|
371
|
+
font-size: 0.8125rem;
|
|
372
|
+
}
|
|
390
373
|
|
|
391
|
-
:where(.gc-root--styled) .gc-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
374
|
+
:where(.gc-root--styled) .gc-composer__tabs {
|
|
375
|
+
display: flex;
|
|
376
|
+
gap: 0.25rem;
|
|
377
|
+
border-bottom: 1px solid var(--_gc-border);
|
|
378
|
+
}
|
|
396
379
|
|
|
397
|
-
:where(.gc-root--styled) .gc-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
cursor: pointer;
|
|
410
|
-
}
|
|
380
|
+
:where(.gc-root--styled) .gc-composer__tab {
|
|
381
|
+
appearance: none;
|
|
382
|
+
margin: 0 0 -1px;
|
|
383
|
+
padding: 0.375rem 0.625rem;
|
|
384
|
+
border: 0;
|
|
385
|
+
border-bottom: 2px solid transparent;
|
|
386
|
+
background: none;
|
|
387
|
+
color: var(--_gc-fg-muted);
|
|
388
|
+
font: inherit;
|
|
389
|
+
font-size: 0.875rem;
|
|
390
|
+
cursor: pointer;
|
|
391
|
+
}
|
|
411
392
|
|
|
412
|
-
:where(.gc-root--styled) .gc-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
393
|
+
:where(.gc-root--styled) .gc-composer__tab[aria-selected="true"] {
|
|
394
|
+
border-bottom-color: var(--_gc-accent);
|
|
395
|
+
color: var(--_gc-fg);
|
|
396
|
+
font-weight: 600;
|
|
397
|
+
}
|
|
416
398
|
|
|
417
|
-
:where(.gc-root--styled) .gc-
|
|
418
|
-
|
|
419
|
-
|
|
399
|
+
:where(.gc-root--styled) .gc-composer__panel {
|
|
400
|
+
display: grid;
|
|
401
|
+
gap: 0.25rem;
|
|
402
|
+
}
|
|
420
403
|
|
|
421
|
-
:where(.gc-root--styled) .gc-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
min-height: 5.5rem;
|
|
425
|
-
max-height: 24rem;
|
|
426
|
-
margin: 0;
|
|
427
|
-
padding: 0.625rem 0.75rem;
|
|
428
|
-
border: 1px solid var(--_gc-border);
|
|
429
|
-
border-radius: var(--_gc-radius);
|
|
430
|
-
background: var(--_gc-bg);
|
|
431
|
-
color: var(--_gc-fg);
|
|
432
|
-
font: inherit;
|
|
433
|
-
line-height: 1.5;
|
|
434
|
-
resize: vertical;
|
|
435
|
-
field-sizing: content;
|
|
436
|
-
}
|
|
404
|
+
:where(.gc-root--styled) .gc-composer__panel[hidden] {
|
|
405
|
+
display: none;
|
|
406
|
+
}
|
|
437
407
|
|
|
438
|
-
:where(.gc-root--styled) .gc-
|
|
439
|
-
:
|
|
440
|
-
|
|
441
|
-
|
|
408
|
+
:where(.gc-root--styled) .gc-toolbar {
|
|
409
|
+
display: flex;
|
|
410
|
+
flex-wrap: wrap;
|
|
411
|
+
gap: 2px;
|
|
412
|
+
}
|
|
442
413
|
|
|
443
|
-
:where(.gc-root--styled) .gc-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
414
|
+
:where(.gc-root--styled) .gc-toolbar__button {
|
|
415
|
+
appearance: none;
|
|
416
|
+
display: inline-grid;
|
|
417
|
+
place-items: center;
|
|
418
|
+
width: 2rem;
|
|
419
|
+
height: 2rem;
|
|
420
|
+
margin: 0;
|
|
421
|
+
padding: 0;
|
|
422
|
+
border: 0;
|
|
423
|
+
border-radius: calc(var(--_gc-radius) / 2);
|
|
424
|
+
background: none;
|
|
425
|
+
color: var(--_gc-fg-muted);
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
}
|
|
447
428
|
|
|
448
|
-
:where(.gc-root--styled) .gc-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}
|
|
429
|
+
:where(.gc-root--styled) .gc-toolbar__button:hover:not(:disabled) {
|
|
430
|
+
background: var(--_gc-bg-subtle);
|
|
431
|
+
color: var(--_gc-fg);
|
|
432
|
+
}
|
|
452
433
|
|
|
453
|
-
:where(.gc-root--styled) .gc-
|
|
454
|
-
|
|
455
|
-
}
|
|
434
|
+
:where(.gc-root--styled) .gc-composer__field {
|
|
435
|
+
position: relative;
|
|
436
|
+
}
|
|
456
437
|
|
|
457
|
-
:where(.gc-root--styled) .gc-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
438
|
+
:where(.gc-root--styled) .gc-composer__input {
|
|
439
|
+
display: block;
|
|
440
|
+
width: 100%;
|
|
441
|
+
min-height: 5.5rem;
|
|
442
|
+
max-height: 24rem;
|
|
443
|
+
margin: 0;
|
|
444
|
+
padding: 0.625rem 0.75rem;
|
|
445
|
+
border: 1px solid var(--_gc-border);
|
|
446
|
+
border-radius: var(--_gc-radius);
|
|
447
|
+
background: var(--_gc-bg);
|
|
448
|
+
color: var(--_gc-fg);
|
|
449
|
+
font: inherit;
|
|
450
|
+
line-height: 1.5;
|
|
451
|
+
resize: vertical;
|
|
452
|
+
field-sizing: content;
|
|
453
|
+
}
|
|
463
454
|
|
|
464
|
-
:where(.gc-root--styled) .gc-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
justify-content: space-between;
|
|
469
|
-
gap: var(--_gc-space);
|
|
470
|
-
}
|
|
455
|
+
:where(.gc-root--styled) .gc-composer--replying .gc-composer__input,
|
|
456
|
+
:where(.gc-root--styled) .gc-composer--editing .gc-composer__input {
|
|
457
|
+
min-height: 4rem;
|
|
458
|
+
}
|
|
471
459
|
|
|
472
|
-
:where(.gc-root--styled) .gc-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
460
|
+
:where(.gc-root--styled) .gc-composer__input::placeholder {
|
|
461
|
+
color: var(--_gc-fg-muted);
|
|
462
|
+
opacity: 1;
|
|
463
|
+
}
|
|
477
464
|
|
|
478
|
-
:where(.gc-root--styled) .gc-
|
|
479
|
-
|
|
480
|
-
|
|
465
|
+
:where(.gc-root--styled) .gc-composer__input:focus-visible {
|
|
466
|
+
border-color: var(--_gc-accent);
|
|
467
|
+
outline-offset: 0;
|
|
468
|
+
}
|
|
481
469
|
|
|
482
|
-
:where(.gc-root--styled) .gc-
|
|
483
|
-
:
|
|
484
|
-
|
|
485
|
-
color: var(--_gc-fg-muted);
|
|
486
|
-
}
|
|
470
|
+
:where(.gc-root--styled) .gc-composer__input:disabled {
|
|
471
|
+
opacity: 0.7;
|
|
472
|
+
}
|
|
487
473
|
|
|
488
|
-
:where(.gc-root--styled) .gc-
|
|
489
|
-
|
|
490
|
-
|
|
474
|
+
:where(.gc-root--styled) .gc-composer__preview {
|
|
475
|
+
min-height: 5.5rem;
|
|
476
|
+
padding: 0.625rem 0.75rem;
|
|
477
|
+
border: 1px dashed var(--_gc-border);
|
|
478
|
+
border-radius: var(--_gc-radius);
|
|
479
|
+
}
|
|
491
480
|
|
|
492
|
-
:where(.gc-root--styled) .gc-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
481
|
+
:where(.gc-root--styled) .gc-composer__footer {
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-wrap: wrap;
|
|
484
|
+
align-items: flex-start;
|
|
485
|
+
justify-content: space-between;
|
|
486
|
+
gap: var(--_gc-space);
|
|
487
|
+
}
|
|
498
488
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
top: calc(100% + 4px);
|
|
505
|
-
inset-inline-start: 0.5rem;
|
|
506
|
-
min-width: min(14rem, calc(100% - 1rem));
|
|
507
|
-
max-width: calc(100% - 1rem);
|
|
508
|
-
max-height: 15rem;
|
|
509
|
-
margin: 0;
|
|
510
|
-
padding: 0.25rem;
|
|
511
|
-
overflow-y: auto;
|
|
512
|
-
list-style: none;
|
|
513
|
-
border: 1px solid var(--_gc-border);
|
|
514
|
-
border-radius: var(--_gc-radius);
|
|
515
|
-
background: var(--_gc-bg);
|
|
516
|
-
box-shadow: var(--_gc-shadow);
|
|
517
|
-
}
|
|
489
|
+
:where(.gc-root--styled) .gc-composer__messages {
|
|
490
|
+
flex: 1 1 12rem;
|
|
491
|
+
min-width: 0;
|
|
492
|
+
font-size: 0.8125rem;
|
|
493
|
+
}
|
|
518
494
|
|
|
519
|
-
:where(.gc-root--styled) .gc-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
gap: 0.5rem;
|
|
523
|
-
padding: 0.375rem 0.5rem;
|
|
524
|
-
border-radius: calc(var(--_gc-radius) / 2);
|
|
525
|
-
font-size: 0.875rem;
|
|
526
|
-
cursor: pointer;
|
|
527
|
-
}
|
|
495
|
+
:where(.gc-root--styled) .gc-composer__messages p {
|
|
496
|
+
margin: 0;
|
|
497
|
+
}
|
|
528
498
|
|
|
529
|
-
:where(.gc-root--styled) .gc-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
499
|
+
:where(.gc-root--styled) .gc-composer__hint,
|
|
500
|
+
:where(.gc-root--styled) .gc-composer__status {
|
|
501
|
+
margin: 0;
|
|
502
|
+
color: var(--_gc-fg-muted);
|
|
503
|
+
}
|
|
533
504
|
|
|
534
|
-
:where(.gc-root--styled) .gc-
|
|
535
|
-
|
|
536
|
-
}
|
|
505
|
+
:where(.gc-root--styled) .gc-composer__error {
|
|
506
|
+
color: var(--_gc-danger);
|
|
507
|
+
}
|
|
537
508
|
|
|
538
|
-
:where(.gc-root--styled) .gc-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}
|
|
509
|
+
:where(.gc-root--styled) .gc-composer__buttons {
|
|
510
|
+
display: flex;
|
|
511
|
+
flex-wrap: wrap;
|
|
512
|
+
gap: var(--_gc-space);
|
|
513
|
+
margin-inline-start: auto;
|
|
514
|
+
}
|
|
545
515
|
|
|
546
|
-
/*
|
|
547
|
-
|
|
548
|
-
:where(.gc-root--styled) .gc-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
516
|
+
/* Mention suggestions */
|
|
517
|
+
|
|
518
|
+
:where(.gc-root--styled) .gc-mentions {
|
|
519
|
+
position: absolute;
|
|
520
|
+
z-index: 10;
|
|
521
|
+
top: calc(100% + 4px);
|
|
522
|
+
inset-inline-start: 0.5rem;
|
|
523
|
+
min-width: min(14rem, calc(100% - 1rem));
|
|
524
|
+
max-width: calc(100% - 1rem);
|
|
525
|
+
max-height: 15rem;
|
|
526
|
+
margin: 0;
|
|
527
|
+
padding: 0.25rem;
|
|
528
|
+
overflow-y: auto;
|
|
529
|
+
list-style: none;
|
|
530
|
+
border: 1px solid var(--_gc-border);
|
|
531
|
+
border-radius: var(--_gc-radius);
|
|
532
|
+
background: var(--_gc-bg);
|
|
533
|
+
box-shadow: var(--_gc-shadow);
|
|
534
|
+
}
|
|
561
535
|
|
|
562
|
-
:where(.gc-root--styled) .gc-
|
|
563
|
-
|
|
564
|
-
|
|
536
|
+
:where(.gc-root--styled) .gc-mentions__option {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
gap: 0.5rem;
|
|
540
|
+
padding: 0.375rem 0.5rem;
|
|
541
|
+
border-radius: calc(var(--_gc-radius) / 2);
|
|
542
|
+
font-size: 0.875rem;
|
|
543
|
+
cursor: pointer;
|
|
544
|
+
}
|
|
565
545
|
|
|
566
|
-
:where(.gc-root--styled) .gc-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
padding: 0 0.375rem;
|
|
571
|
-
border: 1px solid var(--_gc-border);
|
|
572
|
-
border-radius: 999px;
|
|
573
|
-
color: var(--_gc-fg-muted);
|
|
574
|
-
font-size: 0.75rem;
|
|
575
|
-
font-weight: 600;
|
|
576
|
-
line-height: 1.25rem;
|
|
577
|
-
}
|
|
546
|
+
:where(.gc-root--styled) .gc-mentions__option--active {
|
|
547
|
+
background: var(--_gc-bg-subtle);
|
|
548
|
+
background: color-mix(in srgb, var(--_gc-accent) 16%, transparent);
|
|
549
|
+
}
|
|
578
550
|
|
|
579
|
-
:where(.gc-root--styled) .gc-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
551
|
+
:where(.gc-root--styled) .gc-mentions__username {
|
|
552
|
+
font-weight: 600;
|
|
553
|
+
}
|
|
583
554
|
|
|
584
|
-
:where(.gc-root--styled) .gc-
|
|
585
|
-
:
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
555
|
+
:where(.gc-root--styled) .gc-mentions__name {
|
|
556
|
+
min-width: 0;
|
|
557
|
+
overflow: hidden;
|
|
558
|
+
color: var(--_gc-fg-muted);
|
|
559
|
+
text-overflow: ellipsis;
|
|
560
|
+
white-space: nowrap;
|
|
561
|
+
}
|
|
589
562
|
|
|
590
|
-
/*
|
|
563
|
+
/* Avatars and badges */
|
|
564
|
+
|
|
565
|
+
:where(.gc-root--styled) .gc-avatar {
|
|
566
|
+
flex: none;
|
|
567
|
+
display: inline-grid;
|
|
568
|
+
place-items: center;
|
|
569
|
+
width: var(--_gc-avatar-size);
|
|
570
|
+
height: var(--_gc-avatar-size);
|
|
571
|
+
border-radius: 50%;
|
|
572
|
+
background: var(--_gc-bg-subtle);
|
|
573
|
+
color: var(--_gc-fg-muted);
|
|
574
|
+
font-size: calc(var(--_gc-avatar-size) * 0.42);
|
|
575
|
+
font-weight: 700;
|
|
576
|
+
object-fit: cover;
|
|
577
|
+
}
|
|
591
578
|
|
|
592
|
-
:where(.gc-root--styled) .gc-
|
|
593
|
-
:
|
|
594
|
-
|
|
595
|
-
margin: 0;
|
|
596
|
-
padding: 0;
|
|
597
|
-
list-style: none;
|
|
598
|
-
}
|
|
579
|
+
:where(.gc-root--styled) .gc-avatar--small {
|
|
580
|
+
--_gc-avatar-size: 1.5rem;
|
|
581
|
+
}
|
|
599
582
|
|
|
600
|
-
:where(.gc-root--styled) .gc-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
583
|
+
:where(.gc-root--styled) .gc-badge {
|
|
584
|
+
display: inline-flex;
|
|
585
|
+
align-items: center;
|
|
586
|
+
gap: 0.25rem;
|
|
587
|
+
padding: 0 0.375rem;
|
|
588
|
+
border: 1px solid var(--_gc-border);
|
|
589
|
+
border-radius: 999px;
|
|
590
|
+
color: var(--_gc-fg-muted);
|
|
591
|
+
font-size: 0.75rem;
|
|
592
|
+
font-weight: 600;
|
|
593
|
+
line-height: 1.25rem;
|
|
594
|
+
}
|
|
604
595
|
|
|
605
|
-
:where(.gc-root--styled) .gc-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
596
|
+
:where(.gc-root--styled) .gc-badge .gc-icon {
|
|
597
|
+
width: 0.75rem;
|
|
598
|
+
height: 0.75rem;
|
|
599
|
+
}
|
|
609
600
|
|
|
610
|
-
:where(.gc-root--styled) .gc-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
padding-inline-start: calc(var(--_gc-avatar-size) / 2 + var(--_gc-space));
|
|
616
|
-
border-inline-start: 2px solid var(--_gc-border);
|
|
617
|
-
}
|
|
601
|
+
:where(.gc-root--styled) .gc-badge--staff,
|
|
602
|
+
:where(.gc-root--styled) .gc-badge--featured {
|
|
603
|
+
border-color: var(--_gc-accent);
|
|
604
|
+
color: var(--_gc-accent);
|
|
605
|
+
}
|
|
618
606
|
|
|
619
|
-
|
|
620
|
-
min-width: 0;
|
|
621
|
-
}
|
|
607
|
+
/* Comment tree */
|
|
622
608
|
|
|
623
|
-
:where(.gc-root--styled) .gc-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
609
|
+
:where(.gc-root--styled) .gc-list,
|
|
610
|
+
:where(.gc-root--styled) .gc-replies,
|
|
611
|
+
:where(.gc-root--styled) .gc-context {
|
|
612
|
+
margin: 0;
|
|
613
|
+
padding: 0;
|
|
614
|
+
list-style: none;
|
|
615
|
+
}
|
|
631
616
|
|
|
632
|
-
:where(.gc-root--styled) .gc-
|
|
633
|
-
|
|
634
|
-
|
|
617
|
+
:where(.gc-root--styled) .gc-list {
|
|
618
|
+
display: grid;
|
|
619
|
+
gap: calc(var(--_gc-space) * 3);
|
|
620
|
+
}
|
|
635
621
|
|
|
636
|
-
:where(.gc-root--styled) .gc-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}
|
|
622
|
+
:where(.gc-root--styled) .gc-list__status {
|
|
623
|
+
margin: 0;
|
|
624
|
+
color: var(--_gc-fg-muted);
|
|
625
|
+
}
|
|
640
626
|
|
|
641
|
-
:where(.gc-root--styled) .gc-
|
|
642
|
-
|
|
643
|
-
|
|
627
|
+
:where(.gc-root--styled) .gc-replies {
|
|
628
|
+
display: grid;
|
|
629
|
+
gap: calc(var(--_gc-space) * 2);
|
|
630
|
+
margin-top: calc(var(--_gc-space) * 2);
|
|
631
|
+
margin-inline-start: calc(var(--_gc-avatar-size) / 2 - 1px);
|
|
632
|
+
padding-inline-start: calc(var(--_gc-avatar-size) / 2 + var(--_gc-space));
|
|
633
|
+
border-inline-start: 2px solid var(--_gc-border);
|
|
634
|
+
}
|
|
644
635
|
|
|
645
|
-
:where(.gc-root--styled) .gc-
|
|
646
|
-
|
|
647
|
-
}
|
|
636
|
+
:where(.gc-root--styled) .gc-comment {
|
|
637
|
+
min-width: 0;
|
|
638
|
+
}
|
|
648
639
|
|
|
649
|
-
:where(.gc-root--styled) .gc-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
640
|
+
:where(.gc-root--styled) .gc-comment__card {
|
|
641
|
+
display: grid;
|
|
642
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
643
|
+
align-items: start;
|
|
644
|
+
column-gap: calc(var(--_gc-space) * 1.5);
|
|
645
|
+
border-radius: var(--_gc-radius);
|
|
646
|
+
scroll-margin-block: 4rem;
|
|
647
|
+
}
|
|
654
648
|
|
|
655
|
-
:where(.gc-root--styled) .gc-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
align-items: center;
|
|
659
|
-
gap: 0.25rem 0.5rem;
|
|
660
|
-
color: var(--_gc-fg-muted);
|
|
661
|
-
font-size: 0.875rem;
|
|
662
|
-
}
|
|
649
|
+
:where(.gc-root--styled) .gc-comment__card > * {
|
|
650
|
+
grid-column: 2;
|
|
651
|
+
}
|
|
663
652
|
|
|
664
|
-
:where(.gc-root--styled) .gc-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}
|
|
653
|
+
:where(.gc-root--styled) .gc-comment__card > .gc-avatar {
|
|
654
|
+
grid-row: 1;
|
|
655
|
+
grid-column: 1;
|
|
656
|
+
}
|
|
669
657
|
|
|
670
|
-
:where(.gc-root--styled) .gc-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
658
|
+
:where(.gc-root--styled) .gc-comment__card:focus:not(:focus-visible) {
|
|
659
|
+
outline: none;
|
|
660
|
+
}
|
|
674
661
|
|
|
675
|
-
:where(.gc-root--styled) .gc-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
}
|
|
662
|
+
:where(.gc-root--styled) .gc-comment__card:focus-visible {
|
|
663
|
+
outline-offset: 4px;
|
|
664
|
+
}
|
|
679
665
|
|
|
680
|
-
:where(.gc-root--styled) .gc-
|
|
681
|
-
:
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
666
|
+
:where(.gc-root--styled) .gc-comment__main {
|
|
667
|
+
display: grid;
|
|
668
|
+
gap: 0.25rem;
|
|
669
|
+
min-width: 0;
|
|
670
|
+
}
|
|
686
671
|
|
|
687
|
-
:where(.gc-root--styled) .gc-
|
|
688
|
-
|
|
689
|
-
|
|
672
|
+
:where(.gc-root--styled) .gc-comment__meta {
|
|
673
|
+
display: flex;
|
|
674
|
+
flex-wrap: wrap;
|
|
675
|
+
align-items: center;
|
|
676
|
+
gap: 0.25rem 0.5rem;
|
|
677
|
+
color: var(--_gc-fg-muted);
|
|
678
|
+
font-size: 0.875rem;
|
|
679
|
+
}
|
|
690
680
|
|
|
691
|
-
:where(.gc-root--styled) .gc-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
681
|
+
:where(.gc-root--styled) .gc-comment__author {
|
|
682
|
+
color: var(--_gc-fg);
|
|
683
|
+
font-weight: 600;
|
|
684
|
+
text-decoration: none;
|
|
685
|
+
}
|
|
696
686
|
|
|
697
|
-
:where(.gc-root--styled) .gc-
|
|
698
|
-
|
|
699
|
-
|
|
687
|
+
:where(.gc-root--styled) .gc-comment__time {
|
|
688
|
+
color: inherit;
|
|
689
|
+
text-decoration: none;
|
|
690
|
+
}
|
|
700
691
|
|
|
701
|
-
:where(.gc-root--styled) .gc-
|
|
702
|
-
:where(.gc-root--styled) .gc-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
font-size: 0.875rem;
|
|
706
|
-
}
|
|
692
|
+
:where(.gc-root--styled) .gc-comment__author:hover,
|
|
693
|
+
:where(.gc-root--styled) .gc-comment__time:hover {
|
|
694
|
+
text-decoration: underline;
|
|
695
|
+
}
|
|
707
696
|
|
|
708
|
-
:where(.gc-root--styled) .gc-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
697
|
+
:where(.gc-root--styled) .gc-comment__body--removed,
|
|
698
|
+
:where(.gc-root--styled) .gc-comment__hidden-note {
|
|
699
|
+
margin: 0;
|
|
700
|
+
color: var(--_gc-fg-muted);
|
|
701
|
+
font-style: italic;
|
|
702
|
+
}
|
|
713
703
|
|
|
714
|
-
:where(.gc-root--styled) .gc-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
box-shadow: 0 0 0 var(--_gc-space) color-mix(in srgb, var(--_gc-accent) 10%, transparent);
|
|
718
|
-
}
|
|
704
|
+
:where(.gc-root--styled) .gc-comment__hidden-note {
|
|
705
|
+
font-size: 0.8125rem;
|
|
706
|
+
}
|
|
719
707
|
|
|
720
|
-
|
|
708
|
+
:where(.gc-root--styled) .gc-comment__notice {
|
|
709
|
+
margin: 0.25rem 0 0;
|
|
710
|
+
color: var(--_gc-fg-muted);
|
|
711
|
+
font-size: 0.8125rem;
|
|
712
|
+
}
|
|
721
713
|
|
|
722
|
-
:where(.gc-root--styled) .gc-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
align-items: center;
|
|
726
|
-
gap: 0.25rem;
|
|
727
|
-
margin-inline-start: -0.5rem;
|
|
728
|
-
}
|
|
714
|
+
:where(.gc-root--styled) .gc-comment__notice--error {
|
|
715
|
+
color: var(--_gc-danger);
|
|
716
|
+
}
|
|
729
717
|
|
|
730
|
-
:where(.gc-root--styled) .gc-
|
|
731
|
-
|
|
732
|
-
|
|
718
|
+
:where(.gc-root--styled) .gc-comment__more,
|
|
719
|
+
:where(.gc-root--styled) .gc-comment__continue {
|
|
720
|
+
margin-top: var(--_gc-space);
|
|
721
|
+
margin-inline-start: calc(var(--_gc-avatar-size) + var(--_gc-space) * 1.5);
|
|
722
|
+
font-size: 0.875rem;
|
|
723
|
+
}
|
|
733
724
|
|
|
734
|
-
:where(.gc-root--styled) .gc-
|
|
735
|
-
|
|
736
|
-
|
|
725
|
+
:where(.gc-root--styled) .gc-comment--pinned > .gc-comment__card {
|
|
726
|
+
padding: var(--_gc-space);
|
|
727
|
+
background: var(--_gc-bg-subtle);
|
|
728
|
+
box-shadow: inset 3px 0 0 var(--_gc-accent);
|
|
729
|
+
}
|
|
737
730
|
|
|
738
|
-
:where(.gc-root--styled) .gc-
|
|
739
|
-
|
|
740
|
-
|
|
731
|
+
:where(.gc-root--styled) .gc-comment--highlighted > .gc-comment__card {
|
|
732
|
+
background: var(--_gc-bg-subtle);
|
|
733
|
+
background: color-mix(in srgb, var(--_gc-accent) 10%, transparent);
|
|
734
|
+
box-shadow: 0 0 0 var(--_gc-space) color-mix(in srgb, var(--_gc-accent) 10%, transparent);
|
|
735
|
+
}
|
|
741
736
|
|
|
742
|
-
|
|
743
|
-
position: absolute;
|
|
744
|
-
z-index: 20;
|
|
745
|
-
top: calc(100% + 4px);
|
|
746
|
-
inset-inline-end: 0;
|
|
747
|
-
min-width: 10rem;
|
|
748
|
-
margin: 0;
|
|
749
|
-
padding: 0.25rem;
|
|
750
|
-
list-style: none;
|
|
751
|
-
border: 1px solid var(--_gc-border);
|
|
752
|
-
border-radius: var(--_gc-radius);
|
|
753
|
-
background: var(--_gc-bg);
|
|
754
|
-
box-shadow: var(--_gc-shadow);
|
|
755
|
-
}
|
|
737
|
+
/* Actions and menu */
|
|
756
738
|
|
|
757
|
-
:where(.gc-root--styled) .gc-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
background: none;
|
|
765
|
-
color: var(--_gc-fg);
|
|
766
|
-
font: inherit;
|
|
767
|
-
font-size: 0.875rem;
|
|
768
|
-
text-align: start;
|
|
769
|
-
cursor: pointer;
|
|
770
|
-
}
|
|
739
|
+
:where(.gc-root--styled) .gc-actions {
|
|
740
|
+
display: flex;
|
|
741
|
+
flex-wrap: wrap;
|
|
742
|
+
align-items: center;
|
|
743
|
+
gap: 0.25rem;
|
|
744
|
+
margin-inline-start: -0.5rem;
|
|
745
|
+
}
|
|
771
746
|
|
|
772
|
-
:where(.gc-root--styled) .gc-
|
|
773
|
-
:
|
|
774
|
-
|
|
775
|
-
}
|
|
747
|
+
:where(.gc-root--styled) .gc-actions__like--active {
|
|
748
|
+
color: var(--_gc-danger);
|
|
749
|
+
}
|
|
776
750
|
|
|
777
|
-
:where(.gc-root--styled) .gc-
|
|
778
|
-
|
|
779
|
-
}
|
|
751
|
+
:where(.gc-root--styled) .gc-actions__count {
|
|
752
|
+
font-variant-numeric: tabular-nums;
|
|
753
|
+
}
|
|
780
754
|
|
|
781
|
-
:where(.gc-root--styled) .gc-
|
|
782
|
-
|
|
783
|
-
}
|
|
755
|
+
:where(.gc-root--styled) .gc-menu {
|
|
756
|
+
position: relative;
|
|
757
|
+
}
|
|
784
758
|
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
:
|
|
788
|
-
:
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
759
|
+
:where(.gc-root--styled) .gc-menu__list {
|
|
760
|
+
position: absolute;
|
|
761
|
+
z-index: 20;
|
|
762
|
+
top: calc(100% + 4px);
|
|
763
|
+
inset-inline-end: 0;
|
|
764
|
+
min-width: 10rem;
|
|
765
|
+
margin: 0;
|
|
766
|
+
padding: 0.25rem;
|
|
767
|
+
list-style: none;
|
|
768
|
+
border: 1px solid var(--_gc-border);
|
|
769
|
+
border-radius: var(--_gc-radius);
|
|
770
|
+
background: var(--_gc-bg);
|
|
771
|
+
box-shadow: var(--_gc-shadow);
|
|
772
|
+
}
|
|
798
773
|
|
|
799
|
-
:where(.gc-root--styled) .gc-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
774
|
+
:where(.gc-root--styled) .gc-menu__item {
|
|
775
|
+
display: block;
|
|
776
|
+
width: 100%;
|
|
777
|
+
margin: 0;
|
|
778
|
+
padding: 0.5rem 0.625rem;
|
|
779
|
+
border: 0;
|
|
780
|
+
border-radius: calc(var(--_gc-radius) / 2);
|
|
781
|
+
background: none;
|
|
782
|
+
color: var(--_gc-fg);
|
|
783
|
+
font: inherit;
|
|
784
|
+
font-size: 0.875rem;
|
|
785
|
+
text-align: start;
|
|
786
|
+
cursor: pointer;
|
|
787
|
+
}
|
|
803
788
|
|
|
804
|
-
:where(.gc-root--styled) .gc-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
padding: 0;
|
|
809
|
-
border: 0;
|
|
810
|
-
}
|
|
789
|
+
:where(.gc-root--styled) .gc-menu__item:hover,
|
|
790
|
+
:where(.gc-root--styled) .gc-menu__item:focus {
|
|
791
|
+
background: var(--_gc-bg-subtle);
|
|
792
|
+
}
|
|
811
793
|
|
|
812
|
-
:where(.gc-root--styled) .gc-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
font-weight: 600;
|
|
816
|
-
}
|
|
794
|
+
:where(.gc-root--styled) .gc-menu__item:focus-visible {
|
|
795
|
+
outline-offset: -2px;
|
|
796
|
+
}
|
|
817
797
|
|
|
818
|
-
:where(.gc-root--styled) .gc-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
gap: 0.5rem;
|
|
822
|
-
font-size: 0.9375rem;
|
|
823
|
-
cursor: pointer;
|
|
824
|
-
}
|
|
798
|
+
:where(.gc-root--styled) .gc-menu__item--danger {
|
|
799
|
+
color: var(--_gc-danger);
|
|
800
|
+
}
|
|
825
801
|
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
802
|
+
/* Report and delete panels */
|
|
803
|
+
|
|
804
|
+
:where(.gc-root--styled) .gc-report,
|
|
805
|
+
:where(.gc-root--styled) .gc-confirm {
|
|
806
|
+
display: grid;
|
|
807
|
+
gap: var(--_gc-space);
|
|
808
|
+
margin-top: var(--_gc-space);
|
|
809
|
+
padding: calc(var(--_gc-space) * 1.5);
|
|
810
|
+
border: 1px solid var(--_gc-border);
|
|
811
|
+
border-radius: var(--_gc-radius);
|
|
812
|
+
background: var(--_gc-bg);
|
|
813
|
+
box-shadow: var(--_gc-shadow);
|
|
814
|
+
}
|
|
830
815
|
|
|
831
|
-
:where(.gc-root--styled) .gc-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
border: 1px solid var(--_gc-border);
|
|
836
|
-
border-radius: var(--_gc-radius);
|
|
837
|
-
background: var(--_gc-bg);
|
|
838
|
-
color: var(--_gc-fg);
|
|
839
|
-
font: inherit;
|
|
840
|
-
resize: vertical;
|
|
841
|
-
}
|
|
816
|
+
:where(.gc-root--styled) .gc-report form {
|
|
817
|
+
display: grid;
|
|
818
|
+
gap: var(--_gc-space);
|
|
819
|
+
}
|
|
842
820
|
|
|
843
|
-
:where(.gc-root--styled) .gc-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
821
|
+
:where(.gc-root--styled) .gc-report__options {
|
|
822
|
+
display: grid;
|
|
823
|
+
gap: 0.25rem;
|
|
824
|
+
margin: 0;
|
|
825
|
+
padding: 0;
|
|
826
|
+
border: 0;
|
|
827
|
+
}
|
|
848
828
|
|
|
849
|
-
:where(.gc-root--styled) .gc-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
829
|
+
:where(.gc-root--styled) .gc-report__title {
|
|
830
|
+
margin-bottom: 0.25rem;
|
|
831
|
+
padding: 0;
|
|
832
|
+
font-weight: 600;
|
|
833
|
+
}
|
|
853
834
|
|
|
854
|
-
:where(.gc-root--styled) .gc-
|
|
855
|
-
:
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
}
|
|
835
|
+
:where(.gc-root--styled) .gc-report__option {
|
|
836
|
+
display: flex;
|
|
837
|
+
align-items: center;
|
|
838
|
+
gap: 0.5rem;
|
|
839
|
+
font-size: 0.9375rem;
|
|
840
|
+
cursor: pointer;
|
|
841
|
+
}
|
|
861
842
|
|
|
862
|
-
|
|
843
|
+
:where(.gc-root--styled) .gc-report__option input {
|
|
844
|
+
margin: 0;
|
|
845
|
+
accent-color: var(--_gc-accent);
|
|
846
|
+
}
|
|
863
847
|
|
|
864
|
-
:where(.gc-root--styled) .gc-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
848
|
+
:where(.gc-root--styled) .gc-report__message {
|
|
849
|
+
width: 100%;
|
|
850
|
+
margin: 0;
|
|
851
|
+
padding: 0.5rem 0.625rem;
|
|
852
|
+
border: 1px solid var(--_gc-border);
|
|
853
|
+
border-radius: var(--_gc-radius);
|
|
854
|
+
background: var(--_gc-bg);
|
|
855
|
+
color: var(--_gc-fg);
|
|
856
|
+
font: inherit;
|
|
857
|
+
resize: vertical;
|
|
858
|
+
}
|
|
873
859
|
|
|
874
|
-
:where(.gc-root--styled) .gc-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
gap: var(--_gc-space);
|
|
880
|
-
color: var(--_gc-fg);
|
|
881
|
-
}
|
|
860
|
+
:where(.gc-root--styled) .gc-report__error {
|
|
861
|
+
margin: 0;
|
|
862
|
+
color: var(--_gc-danger);
|
|
863
|
+
font-size: 0.875rem;
|
|
864
|
+
}
|
|
882
865
|
|
|
883
|
-
:where(.gc-root--styled) .gc-
|
|
884
|
-
|
|
885
|
-
|
|
866
|
+
:where(.gc-root--styled) .gc-confirm__text {
|
|
867
|
+
margin: 0;
|
|
868
|
+
font-weight: 600;
|
|
869
|
+
}
|
|
886
870
|
|
|
887
|
-
:where(.gc-root--styled) .gc-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
871
|
+
:where(.gc-root--styled) .gc-report__buttons,
|
|
872
|
+
:where(.gc-root--styled) .gc-confirm__buttons {
|
|
873
|
+
display: flex;
|
|
874
|
+
flex-wrap: wrap;
|
|
875
|
+
justify-content: flex-end;
|
|
876
|
+
gap: var(--_gc-space);
|
|
877
|
+
}
|
|
891
878
|
|
|
892
|
-
|
|
893
|
-
display: grid;
|
|
894
|
-
gap: var(--_gc-space);
|
|
895
|
-
}
|
|
879
|
+
/* Notices, new-comments pill, load more */
|
|
896
880
|
|
|
897
|
-
|
|
898
|
-
:
|
|
899
|
-
:
|
|
900
|
-
|
|
901
|
-
|
|
881
|
+
:where(.gc-root--styled) .gc-notice {
|
|
882
|
+
margin: 0;
|
|
883
|
+
padding: var(--_gc-space) calc(var(--_gc-space) * 1.5);
|
|
884
|
+
border: 1px solid var(--_gc-border);
|
|
885
|
+
border-radius: var(--_gc-radius);
|
|
886
|
+
background: var(--_gc-bg-subtle);
|
|
887
|
+
color: var(--_gc-fg-muted);
|
|
888
|
+
font-size: 0.9375rem;
|
|
889
|
+
}
|
|
902
890
|
|
|
903
|
-
:where(.gc-root--styled) .gc-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
891
|
+
:where(.gc-root--styled) .gc-notice--error {
|
|
892
|
+
display: flex;
|
|
893
|
+
flex-wrap: wrap;
|
|
894
|
+
align-items: center;
|
|
895
|
+
justify-content: space-between;
|
|
896
|
+
gap: var(--_gc-space);
|
|
897
|
+
color: var(--_gc-fg);
|
|
898
|
+
}
|
|
910
899
|
|
|
911
|
-
:where(.gc-root--styled) .gc-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
background: var(--_gc-accent);
|
|
915
|
-
color: var(--_gc-accent-fg);
|
|
916
|
-
box-shadow: var(--_gc-shadow);
|
|
917
|
-
}
|
|
900
|
+
:where(.gc-root--styled) .gc-notice__text {
|
|
901
|
+
margin: 0;
|
|
902
|
+
}
|
|
918
903
|
|
|
919
|
-
:where(.gc-root--styled) .gc-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
}
|
|
904
|
+
:where(.gc-root--styled) .gc-notice--pending {
|
|
905
|
+
border-color: var(--_gc-accent);
|
|
906
|
+
color: var(--_gc-fg);
|
|
907
|
+
}
|
|
923
908
|
|
|
924
|
-
:where(.gc-root--styled) .gc-
|
|
925
|
-
|
|
926
|
-
|
|
909
|
+
:where(.gc-root--styled) .gc-pending-region {
|
|
910
|
+
display: grid;
|
|
911
|
+
gap: var(--_gc-space);
|
|
912
|
+
}
|
|
927
913
|
|
|
928
|
-
/*
|
|
914
|
+
/* Empty live regions stay in the accessibility tree but take no space. */
|
|
915
|
+
:where(.gc-root--styled) .gc-pill-region:empty,
|
|
916
|
+
:where(.gc-root--styled) .gc-pending-region:empty {
|
|
917
|
+
position: absolute;
|
|
918
|
+
}
|
|
929
919
|
|
|
930
|
-
:where(.gc-root--styled) .gc-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
920
|
+
:where(.gc-root--styled) .gc-pill-region {
|
|
921
|
+
position: sticky;
|
|
922
|
+
z-index: 5;
|
|
923
|
+
top: 0.75rem;
|
|
924
|
+
display: flex;
|
|
925
|
+
justify-content: center;
|
|
926
|
+
}
|
|
934
927
|
|
|
935
|
-
:where(.gc-root--styled) .gc-
|
|
936
|
-
|
|
937
|
-
|
|
928
|
+
:where(.gc-root--styled) .gc-pill {
|
|
929
|
+
border-color: var(--_gc-accent);
|
|
930
|
+
border-radius: 999px;
|
|
931
|
+
background: var(--_gc-accent);
|
|
932
|
+
color: var(--_gc-accent-fg);
|
|
933
|
+
box-shadow: var(--_gc-shadow);
|
|
934
|
+
}
|
|
938
935
|
|
|
939
|
-
:where(.gc-root--styled) .gc-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}
|
|
936
|
+
:where(.gc-root--styled) .gc-pill:hover:not(:disabled) {
|
|
937
|
+
background: var(--_gc-accent);
|
|
938
|
+
background: color-mix(in srgb, var(--_gc-accent) 86%, var(--_gc-fg));
|
|
939
|
+
}
|
|
944
940
|
|
|
945
|
-
:where(.gc-root--styled) .gc-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
padding-inline-start: calc(var(--_gc-space) * 1.5);
|
|
949
|
-
border-inline-start: 2px dashed var(--_gc-border);
|
|
950
|
-
}
|
|
941
|
+
:where(.gc-root--styled) .gc-load-more {
|
|
942
|
+
align-self: center;
|
|
943
|
+
}
|
|
951
944
|
|
|
952
|
-
/*
|
|
945
|
+
/* Focused branch ("Continue this thread") */
|
|
953
946
|
|
|
954
|
-
:where(.gc-root--styled) .gc-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
border: 1px dashed var(--_gc-danger);
|
|
959
|
-
border-radius: var(--_gc-radius);
|
|
960
|
-
background: var(--_gc-bg-subtle);
|
|
961
|
-
font-size: 0.875rem;
|
|
962
|
-
}
|
|
947
|
+
:where(.gc-root--styled) .gc-focus {
|
|
948
|
+
display: grid;
|
|
949
|
+
gap: calc(var(--_gc-space) * 2);
|
|
950
|
+
}
|
|
963
951
|
|
|
964
|
-
:where(.gc-root--styled) .gc-
|
|
965
|
-
|
|
966
|
-
}
|
|
952
|
+
:where(.gc-root--styled) .gc-focus__back {
|
|
953
|
+
justify-self: start;
|
|
954
|
+
}
|
|
967
955
|
|
|
968
|
-
:where(.gc-root--styled) .gc-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
956
|
+
:where(.gc-root--styled) .gc-focus__truncated {
|
|
957
|
+
margin: 0;
|
|
958
|
+
color: var(--_gc-fg-muted);
|
|
959
|
+
font-size: 0.875rem;
|
|
960
|
+
}
|
|
972
961
|
|
|
973
|
-
:where(.gc-root--styled) .gc-
|
|
974
|
-
|
|
975
|
-
|
|
962
|
+
:where(.gc-root--styled) .gc-context {
|
|
963
|
+
display: grid;
|
|
964
|
+
gap: calc(var(--_gc-space) * 1.5);
|
|
965
|
+
padding-inline-start: calc(var(--_gc-space) * 1.5);
|
|
966
|
+
border-inline-start: 2px dashed var(--_gc-border);
|
|
967
|
+
}
|
|
976
968
|
|
|
977
|
-
|
|
978
|
-
:where(.gc-root--styled) .gc-devpanel__note {
|
|
979
|
-
margin: 0;
|
|
980
|
-
}
|
|
969
|
+
/* Developer diagnostics */
|
|
981
970
|
|
|
982
|
-
:where(.gc-root--styled) .gc-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
971
|
+
:where(.gc-root--styled) .gc-devpanel {
|
|
972
|
+
display: grid;
|
|
973
|
+
gap: var(--_gc-space);
|
|
974
|
+
padding: calc(var(--_gc-space) * 1.5) calc(var(--_gc-space) * 2);
|
|
975
|
+
border: 1px dashed var(--_gc-danger);
|
|
976
|
+
border-radius: var(--_gc-radius);
|
|
977
|
+
background: var(--_gc-bg-subtle);
|
|
978
|
+
font-size: 0.875rem;
|
|
979
|
+
}
|
|
986
980
|
|
|
987
|
-
:where(.gc-root--styled) .gc-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
margin: 0;
|
|
991
|
-
padding-inline-start: 1.25rem;
|
|
992
|
-
}
|
|
981
|
+
:where(.gc-root--styled) .gc-devpanel--ok {
|
|
982
|
+
border-color: var(--_gc-border);
|
|
983
|
+
}
|
|
993
984
|
|
|
994
|
-
:where(.gc-root--styled) .gc-
|
|
995
|
-
|
|
996
|
-
|
|
985
|
+
:where(.gc-root--styled) .gc-devpanel__title {
|
|
986
|
+
margin: 0;
|
|
987
|
+
font-weight: 700;
|
|
988
|
+
}
|
|
997
989
|
|
|
998
|
-
:where(.gc-root--styled) .gc-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
overflow-x: auto;
|
|
1002
|
-
border-radius: calc(var(--_gc-radius) / 2);
|
|
1003
|
-
background: var(--_gc-bg);
|
|
1004
|
-
font-size: 0.8125rem;
|
|
1005
|
-
}
|
|
990
|
+
:where(.gc-root--styled) .gc-devpanel--ok .gc-devpanel__title {
|
|
991
|
+
cursor: pointer;
|
|
992
|
+
}
|
|
1006
993
|
|
|
1007
|
-
:where(.gc-root--styled) .gc-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
margin: 0;
|
|
1012
|
-
}
|
|
994
|
+
:where(.gc-root--styled) .gc-devpanel__summary,
|
|
995
|
+
:where(.gc-root--styled) .gc-devpanel__note {
|
|
996
|
+
margin: 0;
|
|
997
|
+
}
|
|
1013
998
|
|
|
1014
|
-
:where(.gc-root--styled) .gc-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
}
|
|
999
|
+
:where(.gc-root--styled) .gc-devpanel__note {
|
|
1000
|
+
color: var(--_gc-fg-muted);
|
|
1001
|
+
font-size: 0.8125rem;
|
|
1002
|
+
}
|
|
1018
1003
|
|
|
1019
|
-
:where(.gc-root--styled) .gc-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1004
|
+
:where(.gc-root--styled) .gc-devpanel__causes {
|
|
1005
|
+
display: grid;
|
|
1006
|
+
gap: 0.375rem;
|
|
1007
|
+
margin: 0;
|
|
1008
|
+
padding-inline-start: 1.25rem;
|
|
1009
|
+
}
|
|
1023
1010
|
|
|
1024
|
-
|
|
1011
|
+
:where(.gc-root--styled) .gc-devpanel a {
|
|
1012
|
+
color: var(--_gc-accent);
|
|
1013
|
+
}
|
|
1025
1014
|
|
|
1026
|
-
:where(.gc-root--styled) .gc-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1015
|
+
:where(.gc-root--styled) .gc-devpanel__code {
|
|
1016
|
+
margin: 0.375rem 0 0;
|
|
1017
|
+
padding: 0.5rem 0.625rem;
|
|
1018
|
+
overflow-x: auto;
|
|
1019
|
+
border-radius: calc(var(--_gc-radius) / 2);
|
|
1020
|
+
background: var(--_gc-bg);
|
|
1021
|
+
font-size: 0.8125rem;
|
|
1022
|
+
}
|
|
1030
1023
|
|
|
1031
|
-
:where(.gc-root--styled) .gc-
|
|
1032
|
-
|
|
1033
|
-
|
|
1024
|
+
:where(.gc-root--styled) .gc-devpanel__details {
|
|
1025
|
+
display: grid;
|
|
1026
|
+
grid-template-columns: max-content minmax(0, 1fr);
|
|
1027
|
+
gap: 0.25rem 0.75rem;
|
|
1028
|
+
margin: 0;
|
|
1029
|
+
}
|
|
1034
1030
|
|
|
1035
|
-
:where(.gc-root--styled) .gc-
|
|
1036
|
-
|
|
1037
|
-
|
|
1031
|
+
:where(.gc-root--styled) .gc-devpanel__details dt {
|
|
1032
|
+
color: var(--_gc-fg-muted);
|
|
1033
|
+
font-weight: 600;
|
|
1034
|
+
}
|
|
1038
1035
|
|
|
1039
|
-
:where(.gc-root--styled) .gc-
|
|
1040
|
-
|
|
1041
|
-
|
|
1036
|
+
:where(.gc-root--styled) .gc-devpanel__details dd {
|
|
1037
|
+
margin: 0;
|
|
1038
|
+
overflow-wrap: anywhere;
|
|
1039
|
+
}
|
|
1042
1040
|
|
|
1043
|
-
|
|
1044
|
-
margin: 1em 0 0.5em;
|
|
1045
|
-
font-size: 1.05em;
|
|
1046
|
-
line-height: 1.3;
|
|
1047
|
-
}
|
|
1041
|
+
/* Cooked comment HTML */
|
|
1048
1042
|
|
|
1049
|
-
:where(.gc-root--styled) .gc-prose
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1043
|
+
:where(.gc-root--styled) .gc-prose {
|
|
1044
|
+
line-height: 1.6;
|
|
1045
|
+
overflow-wrap: anywhere;
|
|
1046
|
+
}
|
|
1054
1047
|
|
|
1055
|
-
:where(.gc-root--styled) .gc-prose :
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1048
|
+
:where(.gc-root--styled) .gc-prose > :first-child {
|
|
1049
|
+
margin-top: 0;
|
|
1050
|
+
}
|
|
1058
1051
|
|
|
1059
|
-
:where(.gc-root--styled) .gc-prose
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
border-inline-start: 3px solid var(--_gc-border);
|
|
1063
|
-
color: var(--_gc-fg-muted);
|
|
1064
|
-
}
|
|
1052
|
+
:where(.gc-root--styled) .gc-prose > :last-child {
|
|
1053
|
+
margin-bottom: 0;
|
|
1054
|
+
}
|
|
1065
1055
|
|
|
1066
|
-
:where(.gc-root--styled) .gc-prose
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
background: var(--_gc-bg-subtle);
|
|
1070
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1071
|
-
font-size: 0.875em;
|
|
1072
|
-
}
|
|
1056
|
+
:where(.gc-root--styled) .gc-prose :is(p, ul, ol, blockquote, pre, table, aside, details) {
|
|
1057
|
+
margin: 0 0 0.75em;
|
|
1058
|
+
}
|
|
1073
1059
|
|
|
1074
|
-
:where(.gc-root--styled) .gc-prose
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
1060
|
+
:where(.gc-root--styled) .gc-prose :is(h1, h2, h3, h4, h5, h6) {
|
|
1061
|
+
margin: 1em 0 0.5em;
|
|
1062
|
+
font-size: 1.05em;
|
|
1063
|
+
line-height: 1.3;
|
|
1064
|
+
}
|
|
1080
1065
|
|
|
1081
|
-
:where(.gc-root--styled) .gc-prose
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1066
|
+
:where(.gc-root--styled) .gc-prose a {
|
|
1067
|
+
color: var(--_gc-accent);
|
|
1068
|
+
text-decoration: underline;
|
|
1069
|
+
text-underline-offset: 2px;
|
|
1070
|
+
}
|
|
1085
1071
|
|
|
1086
|
-
:where(.gc-root--styled) .gc-prose
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
border-radius: calc(var(--_gc-radius) / 2);
|
|
1090
|
-
}
|
|
1072
|
+
:where(.gc-root--styled) .gc-prose :is(ul, ol) {
|
|
1073
|
+
padding-inline-start: 1.5em;
|
|
1074
|
+
}
|
|
1091
1075
|
|
|
1092
|
-
:where(.gc-root--styled) .gc-prose
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
}
|
|
1076
|
+
:where(.gc-root--styled) .gc-prose blockquote {
|
|
1077
|
+
margin-inline: 0;
|
|
1078
|
+
padding: 0.25em 0 0.25em 1em;
|
|
1079
|
+
border-inline-start: 3px solid var(--_gc-border);
|
|
1080
|
+
color: var(--_gc-fg-muted);
|
|
1081
|
+
}
|
|
1098
1082
|
|
|
1099
|
-
:where(.gc-root--styled) .gc-prose
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1083
|
+
:where(.gc-root--styled) .gc-prose code {
|
|
1084
|
+
padding: 0.1em 0.35em;
|
|
1085
|
+
border-radius: 4px;
|
|
1086
|
+
background: var(--_gc-bg-subtle);
|
|
1087
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1088
|
+
font-size: 0.875em;
|
|
1089
|
+
}
|
|
1104
1090
|
|
|
1105
|
-
:where(.gc-root--styled) .gc-prose
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
}
|
|
1091
|
+
:where(.gc-root--styled) .gc-prose pre {
|
|
1092
|
+
padding: 0.75em 1em;
|
|
1093
|
+
overflow-x: auto;
|
|
1094
|
+
border-radius: var(--_gc-radius);
|
|
1095
|
+
background: var(--_gc-bg-subtle);
|
|
1096
|
+
}
|
|
1111
1097
|
|
|
1112
|
-
:where(.gc-root--styled) .gc-prose
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}
|
|
1098
|
+
:where(.gc-root--styled) .gc-prose pre code {
|
|
1099
|
+
padding: 0;
|
|
1100
|
+
background: none;
|
|
1101
|
+
}
|
|
1116
1102
|
|
|
1117
|
-
:where(.gc-root--styled) .gc-prose
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1103
|
+
:where(.gc-root--styled) .gc-prose img {
|
|
1104
|
+
max-width: 100%;
|
|
1105
|
+
height: auto;
|
|
1106
|
+
border-radius: calc(var(--_gc-radius) / 2);
|
|
1107
|
+
}
|
|
1122
1108
|
|
|
1123
|
-
:where(.gc-root--styled) .gc-prose .
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
}
|
|
1109
|
+
:where(.gc-root--styled) .gc-prose img.emoji {
|
|
1110
|
+
width: 1.25em;
|
|
1111
|
+
height: 1.25em;
|
|
1112
|
+
border-radius: 0;
|
|
1113
|
+
vertical-align: text-bottom;
|
|
1114
|
+
}
|
|
1130
1115
|
|
|
1131
|
-
:where(.gc-root--styled) .gc-prose
|
|
1132
|
-
|
|
1133
|
-
|
|
1116
|
+
:where(.gc-root--styled) .gc-prose hr {
|
|
1117
|
+
margin: 1em 0;
|
|
1118
|
+
border: 0;
|
|
1119
|
+
border-top: 1px solid var(--_gc-border);
|
|
1120
|
+
}
|
|
1134
1121
|
|
|
1135
|
-
|
|
1122
|
+
:where(.gc-root--styled) .gc-prose table {
|
|
1123
|
+
display: block;
|
|
1124
|
+
max-width: 100%;
|
|
1125
|
+
overflow-x: auto;
|
|
1126
|
+
border-collapse: collapse;
|
|
1127
|
+
}
|
|
1136
1128
|
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1129
|
+
:where(.gc-root--styled) .gc-prose :is(th, td) {
|
|
1130
|
+
padding: 0.25em 0.5em;
|
|
1131
|
+
border: 1px solid var(--_gc-border);
|
|
1140
1132
|
}
|
|
1141
1133
|
|
|
1142
|
-
:where(.gc-root--styled) .gc-
|
|
1143
|
-
|
|
1134
|
+
:where(.gc-root--styled) .gc-prose aside.onebox {
|
|
1135
|
+
padding: 0.75em 1em;
|
|
1136
|
+
border: 1px solid var(--_gc-border);
|
|
1137
|
+
border-radius: var(--_gc-radius);
|
|
1144
1138
|
}
|
|
1145
1139
|
|
|
1146
|
-
:where(.gc-root--styled) .gc-
|
|
1147
|
-
|
|
1148
|
-
|
|
1140
|
+
:where(.gc-root--styled) .gc-prose .mention {
|
|
1141
|
+
padding: 0 0.2em;
|
|
1142
|
+
border-radius: 4px;
|
|
1143
|
+
background: var(--_gc-bg-subtle);
|
|
1144
|
+
font-weight: 600;
|
|
1145
|
+
text-decoration: none;
|
|
1149
1146
|
}
|
|
1150
1147
|
|
|
1151
|
-
:where(.gc-root--styled) .gc-
|
|
1152
|
-
|
|
1153
|
-
:where(.gc-root--styled) .gc-comment > .gc-composer {
|
|
1154
|
-
margin-inline-start: 0;
|
|
1148
|
+
:where(.gc-root--styled) .gc-prose .lightbox-wrapper .meta {
|
|
1149
|
+
display: none;
|
|
1155
1150
|
}
|
|
1156
1151
|
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1152
|
+
/* Narrow containers (phones, sidebars): tighter avatars and indentation. */
|
|
1153
|
+
|
|
1154
|
+
@container gc-root (max-width: 30rem) {
|
|
1155
|
+
:where(.gc-root--styled) :is(.gc-list, .gc-focus, .gc-composer) {
|
|
1156
|
+
--_gc-avatar-size: var(--gc-avatar-size, 2rem);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
:where(.gc-root--styled) .gc-comment__card {
|
|
1160
|
+
column-gap: var(--_gc-space);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
:where(.gc-root--styled) .gc-replies {
|
|
1164
|
+
margin-inline-start: 0;
|
|
1165
|
+
padding-inline-start: calc(var(--_gc-space) * 1.5);
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
:where(.gc-root--styled) .gc-comment__more,
|
|
1169
|
+
:where(.gc-root--styled) .gc-comment__continue,
|
|
1170
|
+
:where(.gc-root--styled) .gc-comment > .gc-composer {
|
|
1171
|
+
margin-inline-start: 0;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
:where(.gc-root--styled) .gc-composer__buttons {
|
|
1175
|
+
width: 100%;
|
|
1176
|
+
justify-content: flex-end;
|
|
1177
|
+
}
|
|
1160
1178
|
}
|
|
1161
|
-
}
|
|
1162
1179
|
|
|
1163
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1164
|
-
|
|
1165
|
-
|
|
1180
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1181
|
+
:where(.gc-root--styled) * {
|
|
1182
|
+
transition: none !important;
|
|
1183
|
+
}
|
|
1166
1184
|
}
|
|
1167
1185
|
}
|
|
1168
|
-
`;var
|
|
1186
|
+
`;var W0=$0,eb=":host{display:block}:host([hidden]){display:none}";function tb(e,t){let n=e.ownerDocument.createElement("style");n.textContent=t,e.append(n)}var cT=typeof HTMLElement>"u"?class{}:HTMLElement,Ca=class extends cT{static schema={};static get observedAttributes(){return Object.keys(this.schema)}static reflect(){F0(this.prototype,this.schema)}#t;#e=null;#l=null;#n=!1;constructor(t,n){super();let l=this.attachShadow({mode:"open"});for(let o of n)tb(l,o);this.#t=this.ownerDocument.createElement(t),this.#t.title="",l.append(this.#t)}connectedCallback(){if(this.#l??=P0(this.shadowRoot),this.#e){this.#r();return}this.#e=(0,lb.createRoot)(this.#t),(0,nb.flushSync)(()=>this.#r())}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||this.#o()})}attributeChangedCallback(){this.requestRender()}requestRender(){!this.#e||this.#n||(this.#n=!0,queueMicrotask(()=>{this.#n=!1,this.#e&&this.#r()}))}props(){return I0(this,this.constructor.schema)}emit(t,n){this.dispatchEvent(new CustomEvent(`gc:${t}`,{detail:n,bubbles:!0,composed:!0}))}#r(){this.#e?.render(this.render(this.props()))}#o(){this.#e?.unmount(),this.#e=null,this.#l?.(),this.#l=null}};var $m=D($(),1),fT=["best","hot","newest","oldest"],mT=["inline","on-submit","manual"],dT=["auto","light","dark","inherit","forum"],ob={forum:{prop:"forum",type:"string"},identifier:{prop:"identifier",type:"string"},url:{prop:"url",type:"string"},title:{prop:"title",type:"string"},sort:{prop:"sort",type:fT},"sign-in":{prop:"signIn",type:mT},theme:{prop:"theme",type:dT},locale:{prop:"locale",type:"string"},"max-depth":{prop:"maxDepth",type:"number"},"read-only":{prop:"readOnly",type:"boolean"},highlight:{prop:"highlight",type:"number"},"guidelines-url":{prop:"guidelinesUrl",type:"string"},unstyled:{prop:"unstyled",type:"boolean"},debug:{prop:"debug",type:"boolean"}},Sa=class extends Ca{static schema=ob;#t=null;#e=!1;constructor(){super("div",[eb,W0])}get client(){if(this.#t)return this.#t;let t=this.forum;return t?yn.get(t)??yn.acquire({forum:t,locale:this.locale,debug:this.debug}):null}set client(t){this.#t=t,this.requestRender()}render(t){let{forum:n,theme:l,locale:o,debug:a,signIn:i,...r}=t,u=this.#t;return!u&&!n?(this.#l(),null):(0,$m.jsx)(Ha,{...u?{client:u}:{forum:n},theme:l,locale:o,debug:a,onEvent:m=>this.emit(m.type,m),children:(0,$m.jsx)($s,{...r,signIn:i,onSignInRequired:i==="manual"?()=>this.emit("sign-in-required"):void 0})})}#l(){this.#e||(this.#e=!0,console.error(`${he}: <${this.localName}> needs a \`forum\` attribute or a \`client\` property`))}};Sa.reflect();var Wm=D($(),1),gT=["text","number"],ab={forum:{prop:"forum",type:"string"},identifier:{prop:"identifier",type:"string"},host:{prop:"host",type:"string"},url:{prop:"url",type:"string"},"topic-id":{prop:"topicId",type:"number"},format:{prop:"format",type:gT}},Ta=class extends Ca{static schema=ab;#t=null;#e=!1;constructor(){super("span",[])}get client(){return this.#t?this.#t:this.forum?yn.acquire({forum:this.forum}):null}set client(t){this.#t=t,this.requestRender()}render(t){let{forum:n,format:l,...o}=t,a=this.#t;return!a&&!n?(this.#l(),null):(0,Wm.jsx)(Ha,{...a?{client:a}:{forum:n},children:(0,Wm.jsx)(Ws,{...o,render:l==="number"?r=>r:void 0})})}#l(){this.#e||(this.#e=!0,console.error(`${he}: <${this.localName}> needs a \`forum\` attribute or a \`client\` property`))}};Ta.reflect();var ub="discourse-comments",sb="discourse-comment-count",ib=new WeakSet;function rb(e,t){customElements.get(e)||(customElements.define(e,ib.has(t)?class extends t{}:t),ib.add(t))}function ed({comments:e=ub,count:t=sb}={}){typeof customElements>"u"||(rb(e,Sa),rb(t,Ta))}ed();export{ob as COMMENTS_ATTRIBUTES,ub as COMMENTS_TAG,ab as COUNT_ATTRIBUTES,sb as COUNT_TAG,Ta as DiscourseCommentCountElement,Sa as DiscourseCommentsElement,ed as defineElements};
|
|
1169
1187
|
/*! Bundled license information:
|
|
1170
1188
|
|
|
1171
1189
|
react/cjs/react.production.js:
|