semantic-golfer 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))u(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&u(v)}).observe(document,{childList:!0,subtree:!0});function r(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(h){if(h.ep)return;h.ep=!0;const m=r(h);fetch(h.href,m)}})();function hp(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ac={exports:{}},Nl={};var Zm;function k1(){if(Zm)return Nl;Zm=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(u,h,m){var v=null;if(m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),"key"in h){m={};for(var g in h)g!=="key"&&(m[g]=h[g])}else m=h;return h=m.ref,{$$typeof:s,type:u,key:v,ref:h!==void 0?h:null,props:m}}return Nl.Fragment=n,Nl.jsx=r,Nl.jsxs=r,Nl}var Km;function N1(){return Km||(Km=1,ac.exports=k1()),ac.exports}var f=N1(),ic={exports:{}},pe={};var Jm;function _1(){if(Jm)return pe;Jm=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),D=Symbol.for("react.view_transition"),M=Symbol.iterator;function C(T){return T===null||typeof T!="object"?null:(T=M&&T[M]||T["@@iterator"],typeof T=="function"?T:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function Q(T,Y,P){this.props=T,this.context=Y,this.refs=H,this.updater=P||q}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,Y,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function F(){}F.prototype=Q.prototype;function $(T,Y,P){this.props=T,this.context=Y,this.refs=H,this.updater=P||q}var V=$.prototype=new F;V.constructor=$,O(V,Q.prototype),V.isPureReactComponent=!0;var B=Array.isArray;function G(){}var L={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ue(T,Y,P){var ie=P.ref;return{$$typeof:s,type:T,key:Y,ref:ie!==void 0?ie:null,props:P}}function K(T,Y){return ue(T.type,Y,T.props)}function Z(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function le(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(P){return Y[P]})}var W=/\/+/g;function se(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?le(""+T.key):Y.toString(36)}function X(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(G,G):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function I(T,Y,P,ie,ye){var Te=typeof T;(Te==="undefined"||Te==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(Te){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case s:case n:Se=!0;break;case b:return Se=T._init,I(Se(T._payload),Y,P,ie,ye)}}if(Se)return ye=ye(T),Se=ie===""?"."+se(T,0):ie,B(ye)?(P="",Se!=null&&(P=Se.replace(W,"$&/")+"/"),I(ye,Y,P,"",function(pt){return pt})):ye!=null&&(Z(ye)&&(ye=K(ye,P+(ye.key==null||T&&T.key===ye.key?"":(""+ye.key).replace(W,"$&/")+"/")+Se)),Y.push(ye)),1;Se=0;var ne=ie===""?".":ie+":";if(B(T))for(var he=0;he<T.length;he++)ie=T[he],Te=ne+se(ie,he),Se+=I(ie,Y,P,Te,ye);else if(he=C(T),typeof he=="function")for(T=he.call(T),he=0;!(ie=T.next()).done;)ie=ie.value,Te=ne+se(ie,he++),Se+=I(ie,Y,P,Te,ye);else if(Te==="object"){if(typeof T.then=="function")return I(X(T),Y,P,ie,ye);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Se}function te(T,Y,P){if(T==null)return T;var ie=[],ye=0;return I(T,ie,"","",function(Te){return Y.call(P,Te,ye++)}),ie}function ke(T){if(T._status===-1){var Y=T._result,P=Y();P.then(function(ie){(T._status===0||T._status===-1)&&(T._status=1,T._result=ie,P.status===void 0&&(P.status="fulfilled",P.value=ie))},function(ie){(T._status===0||T._status===-1)&&(T._status=2,T._result=ie,P.status===void 0&&(P.status="rejected",P.reason=ie))}),T._status===-1&&(T._status=0,T._result=P)}if(T._status===1)return T._result.default;throw T._result}var ge=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Le(T){var Y=L.T,P={};P.types=Y!==null?Y.types:null,L.T=P;try{var ie=T(),ye=L.S;ye!==null&&ye(P,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(G,ge)}catch(Te){ge(Te)}finally{Y!==null&&P.types!==null&&(Y.types=P.types),L.T=Y}}function Xe(T){var Y=L.T;if(Y!==null){var P=Y.types;P===null?Y.types=[T]:P.indexOf(T)===-1&&P.push(T)}else Le(Xe.bind(null,T))}var tt={map:te,forEach:function(T,Y,P){te(T,function(){Y.apply(this,arguments)},P)},count:function(T){var Y=0;return te(T,function(){Y++}),Y},toArray:function(T){return te(T,function(Y){return Y})||[]},only:function(T){if(!Z(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=p,pe.Children=tt,pe.Component=Q,pe.Fragment=r,pe.Profiler=h,pe.PureComponent=$,pe.StrictMode=u,pe.Suspense=S,pe.ViewTransition=D,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return L.H.useMemoCache(T)}},pe.addTransitionType=Xe,pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,Y,P){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ie=O({},T.props),ye=T.key;if(Y!=null)for(Te in Y.key!==void 0&&(ye=""+Y.key),Y)!ee.call(Y,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&Y.ref===void 0||(ie[Te]=Y[Te]);var Te=arguments.length-2;if(Te===1)ie.children=P;else if(1<Te){for(var Se=Array(Te),ne=0;ne<Te;ne++)Se[ne]=arguments[ne+2];ie.children=Se}return ue(T.type,ye,ie)},pe.createContext=function(T){return T={$$typeof:v,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},pe.createElement=function(T,Y,P){var ie,ye={},Te=null;if(Y!=null)for(ie in Y.key!==void 0&&(Te=""+Y.key),Y)ee.call(Y,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ye[ie]=Y[ie]);var Se=arguments.length-2;if(Se===1)ye.children=P;else if(1<Se){for(var ne=Array(Se),he=0;he<Se;he++)ne[he]=arguments[he+2];ye.children=ne}if(T&&T.defaultProps)for(ie in Se=T.defaultProps,Se)ye[ie]===void 0&&(ye[ie]=Se[ie]);return ue(T,Te,ye)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:g,render:T}},pe.isValidElement=Z,pe.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ke}},pe.memo=function(T,Y){return{$$typeof:E,type:T,compare:Y===void 0?null:Y}},pe.startTransition=Le,pe.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},pe.use=function(T){return L.H.use(T)},pe.useActionState=function(T,Y,P){return L.H.useActionState(T,Y,P)},pe.useCallback=function(T,Y){return L.H.useCallback(T,Y)},pe.useContext=function(T){return L.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,Y){return L.H.useDeferredValue(T,Y)},pe.useEffect=function(T,Y){return L.H.useEffect(T,Y)},pe.useEffectEvent=function(T){return L.H.useEffectEvent(T)},pe.useId=function(){return L.H.useId()},pe.useImperativeHandle=function(T,Y,P){return L.H.useImperativeHandle(T,Y,P)},pe.useInsertionEffect=function(T,Y){return L.H.useInsertionEffect(T,Y)},pe.useLayoutEffect=function(T,Y){return L.H.useLayoutEffect(T,Y)},pe.useMemo=function(T,Y){return L.H.useMemo(T,Y)},pe.useOptimistic=function(T,Y){return L.H.useOptimistic(T,Y)},pe.useReducer=function(T,Y,P){return L.H.useReducer(T,Y,P)},pe.useRef=function(T){return L.H.useRef(T)},pe.useState=function(T){return L.H.useState(T)},pe.useSyncExternalStore=function(T,Y,P){return L.H.useSyncExternalStore(T,Y,P)},pe.useTransition=function(){return L.H.useTransition()},pe.version="19.3.0",pe}var $m;function bs(){return $m||($m=1,ic.exports=_1()),ic.exports}var re=bs();const E1=hp(re);var nc={exports:{}},_l={},lc={exports:{}},oc={};var Fm;function j1(){return Fm||(Fm=1,(function(s){function n(X,I){var te=X.length;X.push(I);e:for(;0<te;){var ke=te-1>>>1,ge=X[ke];if(0<h(ge,I))X[ke]=I,X[te]=ge,te=ke;else break e}}function r(X){return X.length===0?null:X[0]}function u(X){if(X.length===0)return null;var I=X[0],te=X.pop();if(te!==I){X[0]=te;e:for(var ke=0,ge=X.length,Le=ge>>>1;ke<Le;){var Xe=2*(ke+1)-1,tt=X[Xe],T=Xe+1,Y=X[T];if(0>h(tt,te))T<ge&&0>h(Y,tt)?(X[ke]=Y,X[T]=te,ke=T):(X[ke]=tt,X[Xe]=te,ke=Xe);else if(T<ge&&0>h(Y,te))X[ke]=Y,X[T]=te,ke=T;else break e}}return I}function h(X,I){var te=X.sortIndex-I.sortIndex;return te!==0?te:X.id-I.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();s.unstable_now=function(){return v.now()-g}}var S=[],E=[],b=1,p=null,D=3,M=!1,C=!1,q=!1,O=!1,H=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function $(X){for(var I=r(E);I!==null;){if(I.callback===null)u(E);else if(I.startTime<=X)u(E),I.sortIndex=I.expirationTime,n(S,I);else break;I=r(E)}}function V(X){if(q=!1,$(X),!C)if(r(S)!==null)C=!0,B||(B=!0,Z());else{var I=r(E);I!==null&&se(V,I.startTime-X)}}var B=!1,G=-1,L=5,ee=-1;function ue(){return O?!0:!(s.unstable_now()-ee<L)}function K(){if(O=!1,B){var X=s.unstable_now();ee=X;var I=!0;try{e:{C=!1,q&&(q=!1,Q(G),G=-1),M=!0;var te=D;try{t:{for($(X),p=r(S);p!==null&&!(p.expirationTime>X&&ue());){var ke=p.callback;if(typeof ke=="function"){p.callback=null,D=p.priorityLevel;var ge=ke(p.expirationTime<=X);if(X=s.unstable_now(),typeof ge=="function"){p.callback=ge,$(X),I=!0;break t}p===r(S)&&u(S),$(X)}else u(S);p=r(S)}if(p!==null)I=!0;else{var Le=r(E);Le!==null&&se(V,Le.startTime-X),I=!1}}break e}finally{p=null,D=te,M=!1}I=void 0}}finally{I?Z():B=!1}}}var Z;if(typeof F=="function")Z=function(){F(K)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,W=le.port2;le.port1.onmessage=K,Z=function(){W.postMessage(null)}}else Z=function(){H(K,0)};function se(X,I){G=H(function(){X(s.unstable_now())},I)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(X){X.callback=null},s.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<X?Math.floor(1e3/X):5},s.unstable_getCurrentPriorityLevel=function(){return D},s.unstable_next=function(X){switch(D){case 1:case 2:case 3:var I=3;break;default:I=D}var te=D;D=I;try{return X()}finally{D=te}},s.unstable_requestPaint=function(){O=!0},s.unstable_runWithPriority=function(X,I){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var te=D;D=X;try{return I()}finally{D=te}},s.unstable_scheduleCallback=function(X,I,te){var ke=s.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ke+te:ke):te=ke,X){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=te+ge,X={id:b++,callback:I,priorityLevel:X,startTime:te,expirationTime:ge,sortIndex:-1},te>ke?(X.sortIndex=te,n(E,X),r(S)===null&&X===r(E)&&(q?(Q(G),G=-1):q=!0,se(V,te-ke))):(X.sortIndex=ge,n(S,X),C||M||(C=!0,B||(B=!0,Z()))),X},s.unstable_shouldYield=ue,s.unstable_wrapCallback=function(X){var I=D;return function(){var te=D;D=I;try{return X.apply(this,arguments)}finally{D=te}}}})(oc)),oc}var Wm;function q1(){return Wm||(Wm=1,lc.exports=j1()),lc.exports}var sc={exports:{}},mt={};var Im;function z1(){if(Im)return mt;Im=1;var s=bs();function n(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)p+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),v=Symbol.for("react.optimistic_key");function g(b,p,D){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:M==null?null:M===v?v:""+M,children:b,containerInfo:p,implementation:D}}var S=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.browser=function(b){return{$$typeof:m,_reason:b}},mt.createPortal=function(b,p){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return g(b,p,null,D)},mt.flushSync=function(b){var p=S.T,D=u.p;try{if(S.T=null,u.p=2,b)return b()}finally{S.T=p,u.p=D,u.d.f()}},mt.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(b,p))},mt.prefetchDNS=function(b){typeof b=="string"&&u.d.D(b)},mt.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var D=p.as,M=E(D,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;D==="style"?u.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:M,integrity:C,fetchPriority:q}):D==="script"&&u.d.X(b,{crossOrigin:M,integrity:C,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},mt.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var D=E(p.as,p.crossOrigin);u.d.M(b,{crossOrigin:D,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&u.d.M(b)},mt.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var D=p.as,M=E(D,p.crossOrigin);u.d.L(b,D,{crossOrigin:M,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},mt.preloadModule=function(b,p){if(typeof b=="string")if(p){var D=E(p.as,p.crossOrigin);u.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:D,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else u.d.m(b)},mt.requestFormReset=function(b){u.d.r(b)},mt.unstable_batchedUpdates=function(b,p){return b(p)},mt.useFormState=function(b,p,D){return S.H.useFormState(b,p,D)},mt.useFormStatus=function(){return S.H.useHostTransitionStatus()},mt.version="19.3.0",mt}var Pm;function dp(){if(Pm)return sc.exports;Pm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),sc.exports=z1(),sc.exports}var ep;function M1(){if(ep)return _l;ep=1;var s=q1(),n=bs(),r=dp();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(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 S(e){if(m(e)!==e)throw Error(u(188))}function E(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,i=t;;){var l=a.return;if(l===null)break;var o=l.alternate;if(o===null){if(i=l.return,i!==null){a=i;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===a)return S(l),e;if(o===i)return S(l),t;o=o.sibling}throw Error(u(188))}if(a.return!==i.return)a=l,i=o;else{for(var c=!1,d=l.child;d;){if(d===a){c=!0,a=l,i=o;break}if(d===i){c=!0,i=l,a=o;break}d=d.sibling}if(!c){for(d=o.child;d;){if(d===a){c=!0,a=o,i=l;break}if(d===i){c=!0,i=o,a=l;break}d=d.sibling}if(!c)throw Error(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}function p(e,t,a,i,l,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,l,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,a,i,l,o))return!0;e=e.sibling}return!1}function D(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 M(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 C(e){var t=[null,null],a=D(e);return a===null||q(t,e,a.child,{foundSelf:!1}),t}function q(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&q(e,t,a.child,i))return!0;a=a.sibling}return!1}function O(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(u(559))}}var H=null,Q=null;function F(e,t,a){return e===a?!0:e===t?(H=e,!0):!1}function $(e,t,a){return e===a?(Q=e,!1):e===t?(Q!==null&&(H=e),!0):!1}function V(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 B(e,t,a){for(var i=0,l=e;l;l=a(l))i++;l=0;for(var o=t;o;o=a(o))l++;for(;0<i-l;)e=a(e),i--;for(;0<l-i;)t=a(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var G=Object.assign,L=Symbol.for("react.element"),ee=Symbol.for("react.transitional.element"),ue=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),se=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),Xe=Symbol.for("react.legacy_hidden"),tt=Symbol.for("react.memo_cache_sentinel"),T=Symbol.for("react.view_transition"),Y=Symbol.for("react.recoverable"),P=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function Te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case le:return"Profiler";case Z:return"StrictMode";case I:return"Suspense";case te:return"SuspenseList";case Le:return"Activity";case T:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ue:return"Portal";case se:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case ge:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}var Se=Array.isArray,ne=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pt={pending:!1,data:null,method:null,action:null},na=[],Wt=-1;function Tt(e){return{current:e}}function Qe(e){0>Wt||(e.current=na[Wt],na[Wt]=null,Wt--)}function qe(e,t){Wt++,na[Wt]=e.current,e.current=t}var St=Tt(null),la=Tt(null),va=Tt(null),Rl=Tt(null);function Ul(e,t){switch(qe(va,t),qe(la,e),qe(St,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tm(t),e=am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Qe(St),qe(St,e)}function Bi(){Qe(St),Qe(la),Qe(va)}function Ss(e){var t=e.memoizedState;t!==null&&(_n._currentValue=t.memoizedState,qe(Rl,e)),t=St.current;var a=am(t,e.type);t!==a&&(qe(la,e),qe(St,a))}function Hl(e){la.current===e&&(Qe(St),Qe(la)),Rl.current===e&&(Qe(Rl),_n._currentValue=pt)}var Ds,Tc;function Ca(e){if(Ds===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",Tc=-1<a.stack.indexOf(`
|
|
1
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))u(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&u(v)}).observe(document,{childList:!0,subtree:!0});function r(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(h){if(h.ep)return;h.ep=!0;const m=r(h);fetch(h.href,m)}})();function hp(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var ac={exports:{}},Nl={};var Zm;function k1(){if(Zm)return Nl;Zm=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(u,h,m){var v=null;if(m!==void 0&&(v=""+m),h.key!==void 0&&(v=""+h.key),"key"in h){m={};for(var g in h)g!=="key"&&(m[g]=h[g])}else m=h;return h=m.ref,{$$typeof:s,type:u,key:v,ref:h!==void 0?h:null,props:m}}return Nl.Fragment=n,Nl.jsx=r,Nl.jsxs=r,Nl}var Km;function N1(){return Km||(Km=1,ac.exports=k1()),ac.exports}var f=N1(),ic={exports:{}},pe={};var Jm;function _1(){if(Jm)return pe;Jm=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),A=Symbol.for("react.view_transition"),M=Symbol.iterator;function C(T){return T===null||typeof T!="object"?null:(T=M&&T[M]||T["@@iterator"],typeof T=="function"?T:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,H={};function L(T,G,ee){this.props=T,this.context=G,this.refs=H,this.updater=ee||q}L.prototype.isReactComponent={},L.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},L.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function $(){}$.prototype=L.prototype;function J(T,G,ee){this.props=T,this.context=G,this.refs=H,this.updater=ee||q}var Q=J.prototype=new $;Q.constructor=J,O(Q,L.prototype),Q.isPureReactComponent=!0;var Y=Array.isArray;function B(){}var V={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(T,G,ee){var ie=ee.ref;return{$$typeof:s,type:T,key:G,ref:ie!==void 0?ie:null,props:ee}}function K(T,G){return le(T.type,G,T.props)}function Z(T){return typeof T=="object"&&T!==null&&T.$$typeof===s}function oe(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ee){return G[ee]})}var I=/\/+/g;function ue(T,G){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):G.toString(36)}function X(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(B,B):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function P(T,G,ee,ie,ye){var Te=typeof T;(Te==="undefined"||Te==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(Te){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case s:case n:Se=!0;break;case b:return Se=T._init,P(Se(T._payload),G,ee,ie,ye)}}if(Se)return ye=ye(T),Se=ie===""?"."+ue(T,0):ie,Y(ye)?(ee="",Se!=null&&(ee=Se.replace(I,"$&/")+"/"),P(ye,G,ee,"",function(pt){return pt})):ye!=null&&(Z(ye)&&(ye=K(ye,ee+(ye.key==null||T&&T.key===ye.key?"":(""+ye.key).replace(I,"$&/")+"/")+Se)),G.push(ye)),1;Se=0;var ne=ie===""?".":ie+":";if(Y(T))for(var he=0;he<T.length;he++)ie=T[he],Te=ne+ue(ie,he),Se+=P(ie,G,ee,Te,ye);else if(he=C(T),typeof he=="function")for(T=he.call(T),he=0;!(ie=T.next()).done;)ie=ie.value,Te=ne+ue(ie,he++),Se+=P(ie,G,ee,Te,ye);else if(Te==="object"){if(typeof T.then=="function")return P(X(T),G,ee,ie,ye);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Se}function te(T,G,ee){if(T==null)return T;var ie=[],ye=0;return P(T,ie,"","",function(Te){return G.call(ee,Te,ye++)}),ie}function ke(T){if(T._status===-1){var G=T._result,ee=G();ee.then(function(ie){(T._status===0||T._status===-1)&&(T._status=1,T._result=ie,ee.status===void 0&&(ee.status="fulfilled",ee.value=ie))},function(ie){(T._status===0||T._status===-1)&&(T._status=2,T._result=ie,ee.status===void 0&&(ee.status="rejected",ee.reason=ie))}),T._status===-1&&(T._status=0,T._result=ee)}if(T._status===1)return T._result.default;throw T._result}var ge=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function Le(T){var G=V.T,ee={};ee.types=G!==null?G.types:null,V.T=ee;try{var ie=T(),ye=V.S;ye!==null&&ye(ee,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(B,ge)}catch(Te){ge(Te)}finally{G!==null&&ee.types!==null&&(G.types=ee.types),V.T=G}}function Xe(T){var G=V.T;if(G!==null){var ee=G.types;ee===null?G.types=[T]:ee.indexOf(T)===-1&&ee.push(T)}else Le(Xe.bind(null,T))}var tt={map:te,forEach:function(T,G,ee){te(T,function(){G.apply(this,arguments)},ee)},count:function(T){var G=0;return te(T,function(){G++}),G},toArray:function(T){return te(T,function(G){return G})||[]},only:function(T){if(!Z(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return pe.Activity=p,pe.Children=tt,pe.Component=L,pe.Fragment=r,pe.Profiler=h,pe.PureComponent=J,pe.StrictMode=u,pe.Suspense=S,pe.ViewTransition=A,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,pe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return V.H.useMemoCache(T)}},pe.addTransitionType=Xe,pe.cache=function(T){return function(){return T.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(T,G,ee){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ie=O({},T.props),ye=T.key;if(G!=null)for(Te in G.key!==void 0&&(ye=""+G.key),G)!W.call(G,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&G.ref===void 0||(ie[Te]=G[Te]);var Te=arguments.length-2;if(Te===1)ie.children=ee;else if(1<Te){for(var Se=Array(Te),ne=0;ne<Te;ne++)Se[ne]=arguments[ne+2];ie.children=Se}return le(T.type,ye,ie)},pe.createContext=function(T){return T={$$typeof:v,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},pe.createElement=function(T,G,ee){var ie,ye={},Te=null;if(G!=null)for(ie in G.key!==void 0&&(Te=""+G.key),G)W.call(G,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ye[ie]=G[ie]);var Se=arguments.length-2;if(Se===1)ye.children=ee;else if(1<Se){for(var ne=Array(Se),he=0;he<Se;he++)ne[he]=arguments[he+2];ye.children=ne}if(T&&T.defaultProps)for(ie in Se=T.defaultProps,Se)ye[ie]===void 0&&(ye[ie]=Se[ie]);return le(T,Te,ye)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(T){return{$$typeof:g,render:T}},pe.isValidElement=Z,pe.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:ke}},pe.memo=function(T,G){return{$$typeof:E,type:T,compare:G===void 0?null:G}},pe.startTransition=Le,pe.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},pe.use=function(T){return V.H.use(T)},pe.useActionState=function(T,G,ee){return V.H.useActionState(T,G,ee)},pe.useCallback=function(T,G){return V.H.useCallback(T,G)},pe.useContext=function(T){return V.H.useContext(T)},pe.useDebugValue=function(){},pe.useDeferredValue=function(T,G){return V.H.useDeferredValue(T,G)},pe.useEffect=function(T,G){return V.H.useEffect(T,G)},pe.useEffectEvent=function(T){return V.H.useEffectEvent(T)},pe.useId=function(){return V.H.useId()},pe.useImperativeHandle=function(T,G,ee){return V.H.useImperativeHandle(T,G,ee)},pe.useInsertionEffect=function(T,G){return V.H.useInsertionEffect(T,G)},pe.useLayoutEffect=function(T,G){return V.H.useLayoutEffect(T,G)},pe.useMemo=function(T,G){return V.H.useMemo(T,G)},pe.useOptimistic=function(T,G){return V.H.useOptimistic(T,G)},pe.useReducer=function(T,G,ee){return V.H.useReducer(T,G,ee)},pe.useRef=function(T){return V.H.useRef(T)},pe.useState=function(T){return V.H.useState(T)},pe.useSyncExternalStore=function(T,G,ee){return V.H.useSyncExternalStore(T,G,ee)},pe.useTransition=function(){return V.H.useTransition()},pe.version="19.3.0",pe}var $m;function bs(){return $m||($m=1,ic.exports=_1()),ic.exports}var re=bs();const E1=hp(re);var nc={exports:{}},_l={},lc={exports:{}},oc={};var Fm;function q1(){return Fm||(Fm=1,(function(s){function n(X,P){var te=X.length;X.push(P);e:for(;0<te;){var ke=te-1>>>1,ge=X[ke];if(0<h(ge,P))X[ke]=P,X[te]=ge,te=ke;else break e}}function r(X){return X.length===0?null:X[0]}function u(X){if(X.length===0)return null;var P=X[0],te=X.pop();if(te!==P){X[0]=te;e:for(var ke=0,ge=X.length,Le=ge>>>1;ke<Le;){var Xe=2*(ke+1)-1,tt=X[Xe],T=Xe+1,G=X[T];if(0>h(tt,te))T<ge&&0>h(G,tt)?(X[ke]=G,X[T]=te,ke=T):(X[ke]=tt,X[Xe]=te,ke=Xe);else if(T<ge&&0>h(G,te))X[ke]=G,X[T]=te,ke=T;else break e}}return P}function h(X,P){var te=X.sortIndex-P.sortIndex;return te!==0?te:X.id-P.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();s.unstable_now=function(){return v.now()-g}}var S=[],E=[],b=1,p=null,A=3,M=!1,C=!1,q=!1,O=!1,H=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function J(X){for(var P=r(E);P!==null;){if(P.callback===null)u(E);else if(P.startTime<=X)u(E),P.sortIndex=P.expirationTime,n(S,P);else break;P=r(E)}}function Q(X){if(q=!1,J(X),!C)if(r(S)!==null)C=!0,Y||(Y=!0,Z());else{var P=r(E);P!==null&&ue(Q,P.startTime-X)}}var Y=!1,B=-1,V=5,W=-1;function le(){return O?!0:!(s.unstable_now()-W<V)}function K(){if(O=!1,Y){var X=s.unstable_now();W=X;var P=!0;try{e:{C=!1,q&&(q=!1,L(B),B=-1),M=!0;var te=A;try{t:{for(J(X),p=r(S);p!==null&&!(p.expirationTime>X&&le());){var ke=p.callback;if(typeof ke=="function"){p.callback=null,A=p.priorityLevel;var ge=ke(p.expirationTime<=X);if(X=s.unstable_now(),typeof ge=="function"){p.callback=ge,J(X),P=!0;break t}p===r(S)&&u(S),J(X)}else u(S);p=r(S)}if(p!==null)P=!0;else{var Le=r(E);Le!==null&&ue(Q,Le.startTime-X),P=!1}}break e}finally{p=null,A=te,M=!1}P=void 0}}finally{P?Z():Y=!1}}}var Z;if(typeof $=="function")Z=function(){$(K)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,I=oe.port2;oe.port1.onmessage=K,Z=function(){I.postMessage(null)}}else Z=function(){H(K,0)};function ue(X,P){B=H(function(){X(s.unstable_now())},P)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(X){X.callback=null},s.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<X?Math.floor(1e3/X):5},s.unstable_getCurrentPriorityLevel=function(){return A},s.unstable_next=function(X){switch(A){case 1:case 2:case 3:var P=3;break;default:P=A}var te=A;A=P;try{return X()}finally{A=te}},s.unstable_requestPaint=function(){O=!0},s.unstable_runWithPriority=function(X,P){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var te=A;A=X;try{return P()}finally{A=te}},s.unstable_scheduleCallback=function(X,P,te){var ke=s.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ke+te:ke):te=ke,X){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=te+ge,X={id:b++,callback:P,priorityLevel:X,startTime:te,expirationTime:ge,sortIndex:-1},te>ke?(X.sortIndex=te,n(E,X),r(S)===null&&X===r(E)&&(q?(L(B),B=-1):q=!0,ue(Q,te-ke))):(X.sortIndex=ge,n(S,X),C||M||(C=!0,Y||(Y=!0,Z()))),X},s.unstable_shouldYield=le,s.unstable_wrapCallback=function(X){var P=A;return function(){var te=A;A=P;try{return X.apply(this,arguments)}finally{A=te}}}})(oc)),oc}var Wm;function j1(){return Wm||(Wm=1,lc.exports=q1()),lc.exports}var sc={exports:{}},mt={};var Im;function z1(){if(Im)return mt;Im=1;var s=bs();function n(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)p+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),v=Symbol.for("react.optimistic_key");function g(b,p,A){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:M==null?null:M===v?v:""+M,children:b,containerInfo:p,implementation:A}}var S=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.browser=function(b){return{$$typeof:m,_reason:b}},mt.createPortal=function(b,p){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return g(b,p,null,A)},mt.flushSync=function(b){var p=S.T,A=u.p;try{if(S.T=null,u.p=2,b)return b()}finally{S.T=p,u.p=A,u.d.f()}},mt.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(b,p))},mt.prefetchDNS=function(b){typeof b=="string"&&u.d.D(b)},mt.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var A=p.as,M=E(A,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;A==="style"?u.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:M,integrity:C,fetchPriority:q}):A==="script"&&u.d.X(b,{crossOrigin:M,integrity:C,fetchPriority:q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},mt.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var A=E(p.as,p.crossOrigin);u.d.M(b,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&u.d.M(b)},mt.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var A=p.as,M=E(A,p.crossOrigin);u.d.L(b,A,{crossOrigin:M,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},mt.preloadModule=function(b,p){if(typeof b=="string")if(p){var A=E(p.as,p.crossOrigin);u.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else u.d.m(b)},mt.requestFormReset=function(b){u.d.r(b)},mt.unstable_batchedUpdates=function(b,p){return b(p)},mt.useFormState=function(b,p,A){return S.H.useFormState(b,p,A)},mt.useFormStatus=function(){return S.H.useHostTransitionStatus()},mt.version="19.3.0",mt}var Pm;function dp(){if(Pm)return sc.exports;Pm=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),sc.exports=z1(),sc.exports}var ep;function M1(){if(ep)return _l;ep=1;var s=j1(),n=bs(),r=dp();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(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 S(e){if(m(e)!==e)throw Error(u(188))}function E(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,i=t;;){var l=a.return;if(l===null)break;var o=l.alternate;if(o===null){if(i=l.return,i!==null){a=i;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===a)return S(l),e;if(o===i)return S(l),t;o=o.sibling}throw Error(u(188))}if(a.return!==i.return)a=l,i=o;else{for(var c=!1,d=l.child;d;){if(d===a){c=!0,a=l,i=o;break}if(d===i){c=!0,i=l,a=o;break}d=d.sibling}if(!c){for(d=o.child;d;){if(d===a){c=!0,a=o,i=l;break}if(d===i){c=!0,i=o,a=l;break}d=d.sibling}if(!c)throw Error(u(189))}}if(a.alternate!==i)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}function p(e,t,a,i,l,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,i,l,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,a,i,l,o))return!0;e=e.sibling}return!1}function A(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 M(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 C(e){var t=[null,null],a=A(e);return a===null||q(t,e,a.child,{foundSelf:!1}),t}function q(e,t,a,i){for(;a!==null;){if(a===t)i.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(i.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&q(e,t,a.child,i))return!0;a=a.sibling}return!1}function O(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(u(559))}}var H=null,L=null;function $(e,t,a){return e===a?!0:e===t?(H=e,!0):!1}function J(e,t,a){return e===a?(L=e,!1):e===t?(L!==null&&(H=e),!0):!1}function Q(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 Y(e,t,a){for(var i=0,l=e;l;l=a(l))i++;l=0;for(var o=t;o;o=a(o))l++;for(;0<i-l;)e=a(e),i--;for(;0<l-i;)t=a(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var B=Object.assign,V=Symbol.for("react.element"),W=Symbol.for("react.transitional.element"),le=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),oe=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),Xe=Symbol.for("react.legacy_hidden"),tt=Symbol.for("react.memo_cache_sentinel"),T=Symbol.for("react.view_transition"),G=Symbol.for("react.recoverable"),ee=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function Te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case oe:return"Profiler";case Z:return"StrictMode";case P:return"Suspense";case te:return"SuspenseList";case Le:return"Activity";case T:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case le:return"Portal";case ue:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case ge:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}var Se=Array.isArray,ne=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pt={pending:!1,data:null,method:null,action:null},na=[],Wt=-1;function Tt(e){return{current:e}}function Qe(e){0>Wt||(e.current=na[Wt],na[Wt]=null,Wt--)}function je(e,t){Wt++,na[Wt]=e.current,e.current=t}var St=Tt(null),la=Tt(null),va=Tt(null),Rl=Tt(null);function Ul(e,t){switch(je(va,t),je(la,e),je(St,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tm(t),e=am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Qe(St),je(St,e)}function Gi(){Qe(St),Qe(la),Qe(va)}function Ss(e){var t=e.memoizedState;t!==null&&(En._currentValue=t.memoizedState,je(Rl,e)),t=St.current;var a=am(t,e.type);t!==a&&(je(la,e),je(St,a))}function Hl(e){la.current===e&&(Qe(St),Qe(la)),Rl.current===e&&(Qe(Rl),En._currentValue=pt)}var Ds,Tc;function Ca(e){if(Ds===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ds=t&&t[1]||"",Tc=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Ds+e+Tc}var As=!1;function xs(e,t){if(!e||As)return"";As=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(
|
|
3
|
+
`+Ds+e+Tc}var As=!1;function xs(e,t){if(!e||As)return"";As=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(F){var D=F}Reflect.construct(e,[],U)}else{try{U.call()}catch(F){D=F}U=!1;try{var _=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),U=!0,new e}finally{U&&(_!==void 0?Object.defineProperty(e.prototype,"props",_):delete e.prototype.props)}}}else{try{throw Error()}catch(F){D=F}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(F){if(F&&D&&typeof F.stack=="string")return[F.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),c=o[0],d=o[1];if(c&&d){var y=c.split(`
|
|
4
4
|
`),k=d.split(`
|
|
5
5
|
`);for(l=i=0;i<y.length&&!y[i].includes("DetermineComponentFrameRoot");)i++;for(;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;if(i===y.length||l===k.length)for(i=y.length-1,l=k.length-1;1<=i&&0<=l&&y[i]!==k[l];)l--;for(;1<=i&&0<=l;i--,l--)if(y[i]!==k[l]){if(i!==1||l!==1)do if(i--,l--,0>l||y[i]!==k[l]){var j=`
|
|
6
|
-
`+y[i].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=i&&0<=l);break}}}finally{As=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ca(a):""}function
|
|
6
|
+
`+y[i].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=i&&0<=l);break}}}finally{As=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ca(a):""}function qp(e,t){switch(e.tag){case 26:case 27:case 5:return Ca(e.type);case 16:return Ca("Lazy");case 13:return e.child!==t&&t!==null?Ca("Suspense Fallback"):Ca("Suspense");case 19:return Ca("SuspenseList");case 0:case 15:return xs(e.type,!1);case 11:return xs(e.type.render,!1);case 1:return xs(e.type,!0);case 31:return Ca("Activity");case 30:return Ca("ViewTransition");default:return""}}function Sc(e){try{var t="",a=null;do t+=qp(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var ks=Object.prototype.hasOwnProperty,Ns=s.unstable_scheduleCallback,_s=s.unstable_cancelCallback,qp=s.unstable_shouldYield,zp=s.unstable_requestPaint,Et=s.unstable_now,Mp=s.unstable_getCurrentPriorityLevel,Dc=s.unstable_ImmediatePriority,Ac=s.unstable_UserBlockingPriority,Yl=s.unstable_NormalPriority,Cp=s.unstable_LowPriority,xc=s.unstable_IdlePriority,Op=s.log,Rp=s.unstable_setDisableYieldValue,Cn=null,jt=null;function Oa(e){if(typeof Op=="function"&&Rp(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Cn,e)}catch{}}var qt=Math.clz32?Math.clz32:Yp,Up=Math.log,Hp=Math.LN2;function Yp(e){return e>>>=0,e===0?32:31-(Up(e)/Hp|0)|0}var Bl=256,Gl=262144,Ll=4194304;function fi(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 Ql(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var l=0,o=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=i&134217727;return d!==0?(i=d&~o,i!==0?l=fi(i):(c&=d,c!==0?l=fi(c):a||(a=d&~e,a!==0&&(l=fi(a))))):(d=i&~o,d!==0?l=fi(d):c!==0?l=fi(c):a||(a=i&~e,a!==0&&(l=fi(a)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:l}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kc(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-qt(a),l=1<<i;t|=e[i],a&=~l}return t}function Bp(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 Nc(){var e=Ll;return Ll<<=1,(Ll&62914560)===0&&(Ll=4194304),e}function Es(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gp(e,t,a,i,l,o){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,k=e.hiddenUpdates;for(a=c&~a;0<a;){var j=31-qt(a),U=1<<j;d[j]=0,y[j]=-1;var A=k[j];if(A!==null)for(k[j]=null,j=0;j<A.length;j++){var _=A[j];_!==null&&(_.lane&=-536870913)}a&=~U}i!==0&&_c(e,i,0),o!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=o&~(c&~t))}function _c(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Ec(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-qt(a),l=1<<i;l&t|e[i]&t&&(e[i]|=t),a&=~l}}function jc(e,t){var a=t&-t;return a=(a&42)!==0?1:js(a),(a&(e.suspendedLanes|t))!==0?0:a}function js(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 qs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qc(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:Ym(e.type))}function zc(e,t){var a=he.p;try{return he.p=e,t()}finally{he.p=a}}var ba=Math.random().toString(36).slice(2),rt="__reactFiber$"+ba,Dt="__reactProps$"+ba,Gi="__reactContainer$"+ba,Mc="__reactEvents$"+ba,Lp="__reactListeners$"+ba,Qp="__reactHandles$"+ba,Cc="__reactResources$"+ba,Un="__reactMarker$"+ba,Vl="__reactLoad$"+ba;function Xl(e){delete e[rt],delete e[Dt],delete e[Lp],delete e[Qp]}function hi(e){var t;if(t=e[rt])return t;for(var a=e.parentNode;a;){if(t=a[Gi]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=bm(e);e!==null;){if(a=e[rt])return a;e=bm(e)}return t}e=a,a=e.parentNode}return null}function Li(e){if(e=e[rt]||e[Gi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Qi(e){var t=e[Cc];return t||(t=e[Cc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Un]=!0}function Oc(e){e[Vl]=void 0}var Rc=new Set,Uc={};function di(e,t){Vi(e,t),Vi(e+"Capture",t)}function Vi(e,t){for(Uc[e]=t,e=0;e<t.length;e++)Rc.add(t[e])}var Vp=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]*$"),Hc={},Yc={};function Xp(e){return ks.call(Yc,e)?!0:ks.call(Hc,e)?!1:Vp.test(e)?Yc[e]=!0:(Hc[e]=!0,!1)}var je=!1;function Bc(){var e=je;return je=!1,e}function Zl(e,t,a){if(Xp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Kl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function wa(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,i)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zp(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(c){a=""+c,o.call(this,c)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){if(!e._valueTracker){var t=Gc(e)?"checked":"value";e._valueTracker=Zp(e,t,""+e[t])}}function Lc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Gc(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}var Kp=/[\n"\\]/g;function Gt(e){return e.replace(Kp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ms(e,t,a,i,l,o,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?c==="number"&&e.value==t?Cs(e,zt(e.value)):Cs(e,zt(t)):a!=null?Cs(e,zt(a)):i!=null&&e.removeAttribute("value"),l==null&&o!=null&&(e.defaultChecked=!!o),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+zt(d):e.removeAttribute("name")}function Qc(e,t,a,i,l,o,c,d){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){zs(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=d?e.checked:!!i,e.defaultChecked=!!i,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),zs(e)}function Cs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Xi(e,t,a,i){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&i&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Vc(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function Xc(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(u(92));if(Se(i)){if(1<i.length)throw Error(u(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),zs(e)}function Zi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Jp=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 Zc(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Jp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Kc(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",je=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&a[l]!==i&&(Zc(e,l,i),je=!0)}else for(var o in t)t.hasOwnProperty(o)&&Zc(e,o,t[o])}function Os(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 $p=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"]]),Fp=/^[\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 Jl(e){return Fp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Rs=null;function Us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ki=null,Ji=null;function Jc(e){var t=Li(e);if(t&&(e=t.stateNode)){var a=e[Dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ms(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var l=i[Dt]||null;if(!l)throw Error(u(90));Ms(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Lc(i)}break e;case"textarea":Vc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Xi(e,!!a.multiple,t,!1)}}}var Hs=!1;function $c(e,t,a){if(Hs)return e(t,a);Hs=!0;try{var i=e(t);return i}finally{if(Hs=!1,(Ki!==null||Ji!==null)&&($o(),Ki&&(t=Ki,e=Ji,Ji=Ki=null,Jc(t),e)))for(t=0;t<e.length;t++)Jc(e[t])}}function Yn(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Dt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Ta)try{var Bn={};Object.defineProperty(Bn,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch{Ys=!1}var Ra=null,Bs=null,$l=null;function Fc(){if($l)return $l;var e,t=Bs,a=t.length,i,l="value"in Ra?Ra.value:Ra.textContent,o=l.length;for(e=0;e<a&&t[e]===l[e];e++);var c=a-e;for(i=1;i<=c&&t[a-i]===l[o-i];i++);return $l=l.slice(e,1<i?1-i:void 0)}function Fl(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 Wl(){return!0}function Wc(){return!1}function yt(e){function t(a,i,l,o,c){this._reactName=a,this._targetInst=l,this.type=i,this.nativeEvent=o,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(o):o[d]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Wl:Wc,this.isPropagationStopped=Wc,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Il=yt(Ua),Gn=G({},Ua,{view:0,detail:0}),Wp=yt(Gn),Gs,Ls,Ln,Pl=G({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Ln&&(Ln&&e.type==="mousemove"?(Gs=e.screenX-Ln.screenX,Ls=e.screenY-Ln.screenY):Ls=Gs=0,Ln=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Ls}}),Ic=yt(Pl),Ip=G({},Pl,{dataTransfer:0}),Pp=yt(Ip),eg=G({},Gn,{relatedTarget:0}),Qs=yt(eg),tg=G({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),ag=yt(tg),ig=G({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ng=yt(ig),lg=G({},Ua,{data:0}),Pc=yt(lg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sg={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"},rg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rg[e])?!!t[e]:!1}function Vs(){return ug}var cg=G({},Gn,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fg=yt(cg),hg=G({},Pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ef=yt(hg),dg=G({},Ua,{submitter:0}),mg=yt(dg),pg=G({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),gg=yt(pg),yg=G({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),vg=yt(yg),bg=G({},Pl,{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}),wg=yt(bg),Tg=G({},Ua,{newState:0,oldState:0,source:0}),Sg=yt(Tg),Dg=[9,13,27,32],Xs=Ta&&"CompositionEvent"in window,Qn=null;Ta&&"documentMode"in document&&(Qn=document.documentMode);var Ag=Ta&&"TextEvent"in window&&!Qn,tf=Ta&&(!Xs||Qn&&8<Qn&&11>=Qn),af=" ",nf=!1;function lf(e,t){switch(e){case"keyup":return Dg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $i=!1;function xg(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(nf=!0,af);case"textInput":return e=t.data,e===af&&nf?null:e;default:return null}}function kg(e,t){if($i)return e==="compositionend"||!Xs&&lf(e,t)?(e=Fc(),$l=Bs=Ra=null,$i=!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 tf&&t.locale!=="ko"?null:t.data;default:return null}}var Ng={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 sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ng[e.type]:t==="textarea"}function rf(e,t,a,i){Ki?Ji?Ji.push(i):Ji=[i]:Ki=i,t=ts(t,"onChange"),0<t.length&&(a=new Il("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Vn=null,Xn=null;function _g(e){$d(e,0)}function eo(e){var t=Hn(e);if(Lc(t))return e}function uf(e,t){if(e==="change")return t}var cf=!1;if(Ta){var Zs;if(Ta){var Ks="oninput"in document;if(!Ks){var ff=document.createElement("div");ff.setAttribute("oninput","return;"),Ks=typeof ff.oninput=="function"}Zs=Ks}else Zs=!1;cf=Zs&&(!document.documentMode||9<document.documentMode)}function hf(){Vn&&(Vn.detachEvent("onpropertychange",df),Xn=Vn=null)}function df(e){if(e.propertyName==="value"&&eo(Xn)){var t=[];rf(t,Xn,e,Us(e)),$c(_g,t)}}function Eg(e,t,a){e==="focusin"?(hf(),Vn=t,Xn=a,Vn.attachEvent("onpropertychange",df)):e==="focusout"&&hf()}function jg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(Xn)}function qg(e,t){if(e==="click")return eo(t)}function zg(e,t){if(e==="input"||e==="change")return eo(t)}function Mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:Mg;function Zn(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var l=a[i];if(!ks.call(t,l)||!Mt(e[l],t[l]))return!1}return!0}function Js(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 mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var a=mf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mf(a)}}function gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Js(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Js(e.document)}return t}function $s(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 Cg=Ta&&"documentMode"in document&&11>=document.documentMode,Fi=null,Fs=null,Kn=null,Ws=!1;function vf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ws||Fi==null||Fi!==Js(i)||(i=Fi,"selectionStart"in i&&$s(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Kn&&Zn(Kn,i)||(Kn=i,i=ts(Fs,"onSelect"),0<i.length&&(t=new Il("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Fi)))}function mi(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Wi={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},Is={},bf={};Ta&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete Wi.animationend.animation,delete Wi.animationiteration.animation,delete Wi.animationstart.animation),"TransitionEvent"in window||delete Wi.transitionend.transition);function pi(e){if(Is[e])return Is[e];if(!Wi[e])return e;var t=Wi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bf)return Is[e]=t[a];return e}var wf=pi("animationend"),Tf=pi("animationiteration"),Sf=pi("animationstart"),Og=pi("transitionrun"),Rg=pi("transitionstart"),Ug=pi("transitioncancel"),Df=pi("transitionend"),Af=new Map,Ps="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(" ");Ps.push("scrollEnd");function It(e,t){Af.set(e,t),di(t,[e])}var Hg=0;function Sa(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=aa.identifierPrefix;var a=Hg++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function xf(e){if(e==null||typeof e=="string")return e;var t=null,a=vn;if(a!==null)for(var i=0;i<a.length;i++){var l=e[a[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function Da(e,t){return e=xf(e),t=xf(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var to=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)},Lt=[],Ii=0,er=0;function ao(){for(var e=Ii,t=er=Ii=0;t<e;){var a=Lt[t];Lt[t++]=null;var i=Lt[t];Lt[t++]=null;var l=Lt[t];Lt[t++]=null;var o=Lt[t];if(Lt[t++]=null,i!==null&&l!==null){var c=i.pending;c===null?l.next=l:(l.next=c.next,c.next=l),i.pending=l}o!==0&&kf(a,l,o)}}function io(e,t,a,i){Lt[Ii++]=e,Lt[Ii++]=t,Lt[Ii++]=a,Lt[Ii++]=i,er|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function tr(e,t,a,i){return io(e,t,a,i),no(e)}function gi(e,t){return io(e,null,null,t),no(e)}function kf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var l=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(l=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,l&&t!==null&&(l=31-qt(a),e=o.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=a|536870912),o):null}function no(e){if(50<pl)throw pl=0,Jo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pi={};function Yg(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,i){return new Yg(e,t,a,i)}function ar(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Aa(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Nf(e,t){e.flags&=1206910978;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lo(e,t,a,i,l,o){var c=0;if(i=e,typeof i=="function")ar(i)&&(c=1);else if(typeof i=="string")c=d1(e,a,St.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Le:return e=At(31,a,t,l),e.elementType=Le,e.lanes=o,e;case K:return yi(a.children,l,o,t);case Z:c=8,l|=24;break;case le:return e=At(12,a,t,l|2),e.elementType=le,e.lanes=o,e;case I:return e=At(13,a,t,l),e.elementType=I,e.lanes=o,e;case te:return e=At(19,a,t,l),e.elementType=te,e.lanes=o,e;case Xe:case T:return e=l|32,e=At(30,a,t,e),e.elementType=T,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case se:c=10;break e;case W:c=9;break e;case X:c=11;break e;case ke:c=14;break e;case ge:c=16,i=null;break e}c=29,a=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=At(c,a,t,l),t.elementType=e,t.type=i,t.lanes=o,t}function yi(e,t,a,i){return e=At(7,e,i,t),e.lanes=a,e}function ir(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function _f(e){var t=At(18,null,null,0);return t.stateNode=e,t}function nr(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ef=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var a=Ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Sc(t)},Ef.set(e,t),t)}return{value:e,source:t,stack:Sc(t)}}var en=[],tn=0,oo=null,Jn=0,Vt=[],Xt=0,Ha=null,sa=1,ra="";function xa(e,t){en[tn++]=Jn,en[tn++]=oo,oo=e,Jn=t}function jf(e,t,a){Vt[Xt++]=sa,Vt[Xt++]=ra,Vt[Xt++]=Ha,Ha=e;var i=sa;e=ra;var l=32-qt(i)-1;i&=~(1<<l),a+=1;var o=32-qt(t)+l;if(30<o){var c=l-l%5;o=(i&(1<<c)-1).toString(32),i>>=c,l-=c,sa=1<<32-qt(t)+l|a<<l|i,ra=o+e}else sa=1<<o|a<<l|i,ra=e}function so(e){e.return!==null&&(xa(e,1),jf(e,1,0))}function lr(e){for(;e===oo;)oo=en[--tn],en[tn]=null,Jn=en[--tn],en[tn]=null;for(;e===Ha;)Ha=Vt[--Xt],Vt[Xt]=null,ra=Vt[--Xt],Vt[Xt]=null,sa=Vt[--Xt],Vt[Xt]=null}function qf(e,t){Vt[Xt++]=sa,Vt[Xt++]=ra,Vt[Xt++]=Ha,sa=t.id,ra=t.overflow,Ha=e}var lt=null,Be=null,De=!1,Ya=null,Zt=!1,or=Error(u(519));function Ba(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $n(Qt(t,e)),or}function zf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[rt]=e,t[Dt]=i,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<yl.length;a++)xe(yl[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Qc(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Xc(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Pd(t.textContent,a)?(i.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),i.onScroll!=null&&xe("scroll",t),i.onScrollEnd!=null&&xe("scrollend",t),i.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||Ba(e,!0)}function ro(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:lt=lt.return}}function an(e){if(e!==lt)return!1;if(!De)return ro(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ru(e.type,e.memoizedProps)),a=!a),a&&Be&&Ba(e),ro(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=vm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=vm(e)}else t===27?(t=Be,ai(e.type)?(e=Xu,Xu=null,Be=e):Be=t):Be=lt?Jt(e.stateNode.nextSibling):null;return!0}function vi(){Be=lt=null,De=!1}function sr(){var e=Ya;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Ya=null),e}function $n(e){Ya===null?Ya=[e]:Ya.push(e)}var rr=Tt(null),bi=null,ka=null;function Ga(e,t,a){qe(rr,t._currentValue),t._currentValue=a}function Na(e){e._currentValue=rr.current,Qe(rr)}function uo(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function ur(e,t,a,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var o=l.dependencies;if(o!==null){var c=l.child;o=o.firstContext;e:for(;o!==null;){var d=o;o=l;for(var y=0;y<t.length;y++)if(d.context===t[y]){o.lanes|=a,d=o.alternate,d!==null&&(d.lanes|=a),uo(o.return,a,e),i||(c=null);break e}o=d.next}}else if(l.tag===18){if(c=l.return,c===null)throw Error(u(341));c.lanes|=a,o=c.alternate,o!==null&&(o.lanes|=a),uo(c,a,e),c=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),uo(l.return,a,e),c=l.child,c=c!==null?c.sibling:null):c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===e){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}}function wi(e,t,a,i){e=null;for(var l=t,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var c=l.alternate;if(c===null)throw Error(u(387));if(c=c.memoizedProps,c!==null){var d=l.type;Mt(l.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(l===Rl.current){if(c=l.alternate,c===null)throw Error(u(387));c.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(_n):e=[_n])}l=l.return}return e!==null&&ur(t,e,a,i),t.flags|=262144,e!==null}function co(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ti(e){bi=e,ka=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Mf(bi,e)}function fo(e,t){return bi===null&&Ti(e),Mf(e,t)}function Mf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ka===null){if(e===null)throw Error(u(308));ka=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ka=ka.next=t;return a}var Bg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Gg=s.unstable_scheduleCallback,Lg=s.unstable_NormalPriority,Fe={$$typeof:se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cr(){return{controller:new Bg,data:new Map,refCount:0}}function Fn(e){e.refCount--,e.refCount===0&&Gg(Lg,function(){e.controller.abort()})}function Cf(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];a.indexOf(i)===-1&&a.push(i)}}}var Wn=null;function Qg(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var In=null,fr=0,Si=0,nn=null;function Vg(e,t){if(In===null){var a=In=[];fr=0,Si=Nu(),nn={status:"pending",value:void 0,then:function(i){a.push(i)}}}return fr++,t.then(Of,Of),t}function Of(){if(--fr===0&&(Wn=null,In!==null)){nn!==null&&(nn.status="fulfilled");var e=In;In=null,Si=0,nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xg(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),i}var Rf=ne.S;ne.S=function(e,t){if(_d=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vg(e,t),Wn!==null)for(var a=Sn;a!==null;)Cf(a,Wn),a=a.next;if(a=e.types,a!==null){for(var i=Sn;i!==null;)Cf(i,a),i=i.next;if(Si!==0){i=Wn,i===null&&(i=Wn=[]);for(var l=0;l<a.length;l++){var o=a[l];i.indexOf(o)===-1&&i.push(o)}}}Rf!==null&&Rf(e,t)};var Di=Tt(null);function hr(){var e=Di.current;return e!==null?e:Ye.pooledCache}function ho(e,t){t===null?qe(Di,Di.current):qe(Di,t.pool)}function Uf(){var e=hr();return e===null?null:{parent:Fe._currentValue,pool:e}}var ln=Error(u(460)),dr=Error(u(474)),mo=Error(u(542)),po={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(oa,oa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e===void 0&&!("reason"in t)?Error(u(600)):e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e}throw xi=t,ln}}function Ai(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xi=a,ln):a}}var xi=null;function Bf(){if(xi===null)throw Error(u(459));var e=xi;return xi=null,e}function Gf(e){if(e===ln||e===mo)throw Error(u(483))}var on=null,Pn=0;function go(e){var t=Pn;return Pn+=1,on===null&&(on=[]),Yf(on,e,t)}function La(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yo(e,t){throw t.$$typeof===L?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lf(e){function t(x,w){if(e){var N=x.deletions;N===null?(x.deletions=[w],x.flags|=16):N.push(w)}}function a(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function i(x){for(var w=new Map;x!==null;)x.key===null?w.set(x.index,x):w.set(x.key,x),x=x.sibling;return w}function l(x,w){return x=Aa(x,w),x.index=0,x.sibling=null,x}function o(x,w,N){return x.index=N,e?(N=x.alternate,N!==null?(N=N.index,N<w?(x.flags|=2,w):N):(x.flags|=134217730,w)):(x.flags|=1048576,w)}function c(x){return e&&x.alternate===null&&(x.flags|=134217730),x}function d(x,w,N,R){return w===null||w.tag!==6?(w=ir(N,x.mode,R),w.return=x,w):(w=l(w,N),w.return=x,w)}function y(x,w,N,R){var ae=N.type;return ae===K?(x=j(x,w,N.props.children,R,N.key),La(x,N),x):w!==null&&(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ge&&Ai(ae)===w.type)?(w=l(w,N.props),La(w,N),w.return=x,w):(w=lo(N.type,N.key,N.props,null,x.mode,R),La(w,N),w.return=x,w)}function k(x,w,N,R){return w===null||w.tag!==4||w.stateNode.containerInfo!==N.containerInfo||w.stateNode.implementation!==N.implementation?(w=nr(N,x.mode,R),w.return=x,w):(w=l(w,N.children||[]),w.return=x,w)}function j(x,w,N,R,ae){return w===null||w.tag!==7?(w=yi(N,x.mode,R,ae),w.return=x,w):(w=l(w,N),w.return=x,w)}function U(x,w,N){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ir(""+w,x.mode,N),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ee:return N=lo(w.type,w.key,w.props,null,x.mode,N),La(N,w),N.return=x,N;case ue:return w=nr(w,x.mode,N),w.return=x,w;case ge:return w=Ai(w),U(x,w,N)}if(Se(w)||ie(w))return w=yi(w,x.mode,N,null),w.return=x,w;if(typeof w.then=="function")return U(x,go(w),N);if(w.$$typeof===se)return U(x,fo(x,w),N);yo(x,w)}return null}function A(x,w,N,R){var ae=w!==null?w.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ae!==null?null:d(x,w,""+N,R);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ee:return N.key===ae?y(x,w,N,R):null;case ue:return N.key===ae?k(x,w,N,R):null;case ge:return N=Ai(N),A(x,w,N,R)}if(Se(N)||ie(N))return ae!==null?null:j(x,w,N,R,null);if(typeof N.then=="function")return A(x,w,go(N),R);if(N.$$typeof===se)return A(x,w,fo(x,N),R);yo(x,N)}return null}function _(x,w,N,R,ae){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return x=x.get(N)||null,d(w,x,""+R,ae);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case ee:return x=x.get(R.key===null?N:R.key)||null,y(w,x,R,ae);case ue:return x=x.get(R.key===null?N:R.key)||null,k(w,x,R,ae);case ge:return R=Ai(R),_(x,w,N,R,ae)}if(Se(R)||ie(R))return x=x.get(N)||null,j(w,x,R,ae,null);if(typeof R.then=="function")return _(x,w,N,go(R),ae);if(R.$$typeof===se)return _(x,w,N,fo(w,R),ae);yo(w,R)}return null}function J(x,w,N,R){for(var ae=null,_e=null,ce=w,me=w=0,Pe=null;ce!==null&&me<N.length;me++){ce.index>me?(Pe=ce,ce=null):Pe=ce.sibling;var Ee=A(x,ce,N[me],R);if(Ee===null){ce===null&&(ce=Pe);break}e&&ce&&Ee.alternate===null&&t(x,ce),w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee,ce=Pe}if(me===N.length)return a(x,ce),De&&xa(x,me),ae;if(ce===null){for(;me<N.length;me++)ce=U(x,N[me],R),ce!==null&&(w=o(ce,w,me),_e===null?ae=ce:_e.sibling=ce,_e=ce);return De&&xa(x,me),ae}for(ce=i(ce);me<N.length;me++)Pe=_(ce,x,me,N[me],R),Pe!==null&&(e&&(Ee=Pe.alternate,Ee!==null&&ce.delete(Ee.key===null?me:Ee.key)),w=o(Pe,w,me),_e===null?ae=Pe:_e.sibling=Pe,_e=Pe);return e&&ce.forEach(function(si){return t(x,si)}),De&&xa(x,me),ae}function oe(x,w,N,R){if(N==null)throw Error(u(151));for(var ae=null,_e=null,ce=w,me=w=0,Pe=null,Ee=N.next();ce!==null&&!Ee.done;me++,Ee=N.next()){ce.index>me?(Pe=ce,ce=null):Pe=ce.sibling;var si=A(x,ce,Ee.value,R);if(si===null){ce===null&&(ce=Pe);break}e&&ce&&si.alternate===null&&t(x,ce),w=o(si,w,me),_e===null?ae=si:_e.sibling=si,_e=si,ce=Pe}if(Ee.done)return a(x,ce),De&&xa(x,me),ae;if(ce===null){for(;!Ee.done;me++,Ee=N.next())Ee=U(x,Ee.value,R),Ee!==null&&(w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee);return De&&xa(x,me),ae}for(ce=i(ce);!Ee.done;me++,Ee=N.next())Ee=_(ce,x,me,Ee.value,R),Ee!==null&&(e&&(Pe=Ee.alternate,Pe!==null&&ce.delete(Pe.key===null?me:Pe.key)),w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee);return e&&ce.forEach(function(x1){return t(x,x1)}),De&&xa(x,me),ae}function we(x,w,N,R){if(typeof N=="object"&&N!==null&&N.type===K&&N.key===null&&N.props.ref===void 0&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case ee:e:{for(var ae=N.key;w!==null;){if(w.key===ae){if(ae=N.type,ae===K){if(w.tag===7){a(x,w.sibling),R=l(w,N.props.children),La(R,N),R.return=x,x=R;break e}}else if(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ge&&Ai(ae)===w.type){a(x,w.sibling),R=l(w,N.props),La(R,N),R.return=x,x=R;break e}a(x,w);break}else t(x,w);w=w.sibling}N.type===K?(R=yi(N.props.children,x.mode,R,N.key),La(R,N),R.return=x,x=R):(R=lo(N.type,N.key,N.props,null,x.mode,R),La(R,N),R.return=x,x=R)}return c(x);case ue:e:{for(ae=N.key;w!==null;){if(w.key===ae)if(w.tag===4&&w.stateNode.containerInfo===N.containerInfo&&w.stateNode.implementation===N.implementation){a(x,w.sibling),R=l(w,N.children||[]),R.return=x,x=R;break e}else{a(x,w);break}else t(x,w);w=w.sibling}R=nr(N,x.mode,R),R.return=x,x=R}return c(x);case ge:return N=Ai(N),we(x,w,N,R)}if(Se(N))return J(x,w,N,R);if(ie(N)){if(ae=ie(N),typeof ae!="function")throw Error(u(150));return N=ae.call(N),oe(x,w,N,R)}if(typeof N.then=="function")return we(x,w,go(N),R);if(N.$$typeof===se)return we(x,w,fo(x,N),R);yo(x,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,w!==null&&w.tag===6?(a(x,w.sibling),R=l(w,N),R.return=x,x=R):(a(x,w),R=ir(N,x.mode,R),R.return=x,x=R),c(x)):a(x,w)}return function(x,w,N,R){try{Pn=0;var ae=we(x,w,N,R);return on=null,ae}catch(ce){if(ce===ln||ce===mo)throw ce;var _e=At(29,ce,null,x.mode);return _e.lanes=R,_e.return=x,_e}}}var ki=Lf(!0),Qf=Lf(!1),Qa=!1;function mr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pr(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 Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=no(e),kf(e,null,a),t}return io(e,i,t,a),no(e)}function el(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ec(e,a)}}function gr(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var l=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?l=o=c:o=o.next=c,a=a.next}while(a!==null);o===null?l=o=t:o=o.next=t}else l=o=t;a={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yr=!1;function tl(){if(yr){var e=nn;if(e!==null)throw e}}function al(e,t,a,i){yr=!1;var l=e.updateQueue;Qa=!1;var o=l.firstBaseUpdate,c=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var y=d,k=y.next;y.next=null,c===null?o=k:c.next=k,c=y;var j=e.alternate;j!==null&&(j=j.updateQueue,d=j.lastBaseUpdate,d!==c&&(d===null?j.firstBaseUpdate=k:d.next=k,j.lastBaseUpdate=y))}if(o!==null){var U=l.baseState;c=0,j=k=y=null,d=o;do{var A=d.lane&-536870913,_=A!==d.lane;if(_?(Ne&A)===A:(i&A)===A){A!==0&&A===Si&&(yr=!0),j!==null&&(j=j.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,oe=d;A=t;var we=a;switch(oe.tag){case 1:if(J=oe.payload,typeof J=="function"){U=J.call(we,U,A);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=oe.payload,A=typeof J=="function"?J.call(we,U,A):J,A==null)break e;U=G({},U,A);break e;case 2:Qa=!0}}A=d.callback,A!==null&&(e.flags|=64,_&&(e.flags|=8192),_=l.callbacks,_===null?l.callbacks=[A]:_.push(A))}else _={lane:A,tag:d.tag,payload:d.payload,callback:d.callback,next:null},j===null?(k=j=_,y=U):j=j.next=_,c|=A;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;_=d,d=_.next,_.next=null,l.lastBaseUpdate=_,l.shared.pending=null}}while(!0);j===null&&(y=U),l.baseState=y,l.firstBaseUpdate=k,l.lastBaseUpdate=j,o===null&&(l.shared.lanes=0),Ia|=c,e.lanes=c,e.memoizedState=U}}function Vf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Xf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Vf(a[e],t)}var Za=Tt(null),vo=Tt(0);function Zf(e,t){e=za,qe(vo,e),qe(Za,t),za=e|t.baseLanes}function vr(){qe(vo,za),qe(Za,Za.current)}function br(){za=vo.current,Qe(Za),Qe(vo)}var ct=Tt(null),gt=null;function Ka(e){var t=e.alternate;qe(ft,ft.current&1),qe(ct,e),gt===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(gt=e)}function wr(e){qe(ft,ft.current),qe(ct,e),gt===null&&(gt=e)}function Kf(e){e.tag===22?(qe(ft,ft.current),qe(ct,e),gt===null&&(gt=e)):Ja()}function Ja(){qe(ft,ft.current),qe(ct,ct.current)}function Ct(e){Qe(ct),gt===e&&(gt=null),Qe(ft)}var ft=Tt(0);function il(e,t){qe(ct,ct.current),qe(ft,t)}function Tr(e){Qe(ft),Qe(ct),gt===e&&(gt=null)}function bo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qu(a)||Vu(a)))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 _a=0,be=null,He=null,We=null,wo=!1,sn=!1,Ni=!1,To=0,nl=0,rn=null,Zg=0;function Ke(){throw Error(u(321))}function Sr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Mt(e[a],t[a]))return!1;return!0}function Dr(e,t,a,i,l,o){return _a=o,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ne.H=e===null||e.memoizedState===null?jh:qh,Ni=!1,o=a(i,l),Ni=!1,sn&&(o=$f(t,a,i,l)),Jf(e),o}function Jf(e){ne.H=_o;var t=He!==null&&He.next!==null;if(_a=0,We=He=be=null,wo=!1,nl=0,rn=null,t)throw Error(u(300));e===null||Ie||(e=e.dependencies,e!==null&&co(e)&&(Ie=!0))}function $f(e,t,a,i){be=e;var l=0;do{if(sn&&(rn=null),nl=0,sn=!1,25<=l)throw Error(u(301));if(l+=1,We=He=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ne.H=ey,o=t(a,i)}while(sn);return o}function Kg(){var e=ne.H,t=e.useState()[0];return t=typeof t.then=="function"?ll(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(be.flags|=1024),t}function Ar(){var e=To!==0;return To=0,e}function xr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function kr(e){if(wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wo=!1}_a=0,We=He=be=null,sn=!1,nl=To=0,rn=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?be.memoizedState=We=e:We=We.next=e,We}function $e(){if(He===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?be.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw be.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?be.memoizedState=We=e:We=We.next=e}return We}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ll(e){var t=nl;return nl+=1,rn===null&&(rn=[]),e=Yf(rn,e,t),t=be,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,ne.H=t===null||t.memoizedState===null?jh:qh),e}function Do(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ll(e);if(e.$$typeof===Y)return;if(e.$$typeof===se)return ut(e)}throw Error(u(438,String(e)))}function Nr(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=So(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=tt;return t.index++,a}function Ea(e,t){return typeof t=="function"?t(e):t}function Ao(e){var t=$e();return _r(t,He,e)}function _r(e,t,a){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=a;var l=e.baseQueue,o=i.pending;if(o!==null){if(l!==null){var c=l.next;l.next=o.next,o.next=c}t.baseQueue=l=o,i.pending=null}if(o=e.baseState,l===null)e.memoizedState=o;else{t=l.next;var d=c=null,y=null,k=t,j=!1;do{var U=k.lane&-536870913;if(U!==k.lane?(Ne&U)===U:(_a&U)===U){var A=k.revertLane;if(A===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),U===Si&&(j=!0);else if((_a&A)===A){k=k.next,A===Si&&(j=!0);continue}else U={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},y===null?(d=y=U,c=o):y=y.next=U,be.lanes|=A,Ia|=A;U=k.action,Ni&&a(o,U),o=k.hasEagerState?k.eagerState:a(o,U)}else A={lane:U,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},y===null?(d=y=A,c=o):y=y.next=A,be.lanes|=U,Ia|=U;k=k.next}while(k!==null&&k!==t);if(y===null?c=o:y.next=d,!Mt(o,e.memoizedState)&&(Ie=!0,j&&(a=nn,a!==null)))throw a;e.memoizedState=o,e.baseState=c,e.baseQueue=y,i.lastRenderedState=o}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Er(e){var t=$e(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var i=a.dispatch,l=a.pending,o=t.memoizedState;if(l!==null){a.pending=null;var c=l=l.next;do o=e(o,c.action),c=c.next;while(c!==l);Mt(o,t.memoizedState)||(Ie=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function Ff(e,t,a){var i=be,l=$e(),o=De;if(o){if(a===void 0)throw Error(u(407));a=a()}else a=t();var c=!Mt((He||l).memoizedState,a);if(c&&(l.memoizedState=a,Ie=!0),l=l.queue,zr(Pf.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||c||We!==null&&(We.memoizedState.tag&1)!==0,un(e?9:8,{destroy:void 0},If.bind(null,i,l,a,t),null),e){if(i.flags|=2048,Ye===null)throw Error(u(349));o||(_a&127)!==0||Wf(i,t,a)}return a}function Wf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=So(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function If(e,t,a,i){t.value=a,t.getSnapshot=i,eh(t)&&th(e)}function Pf(e,t,a){return a(function(){eh(t)&&th(e)})}function eh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Mt(e,a)}catch{return!0}}function th(e){var t=gi(e,2);t!==null&&_t(t,e,2)}function jr(e){var t=vt();if(typeof e=="function"){var a=e;if(e=a(),Ni){Oa(!0);try{a()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t}function ah(e,t,a,i){return e.baseState=a,_r(e,He,typeof i=="function"?i:Ea)}function Jg(e,t,a,i,l){if(No(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};ne.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,ih(t,o)):(o.next=a.next,t.pending=a.next=o)}}function ih(e,t){var a=t.action,i=t.payload,l=e.state;if(t.isTransition){var o=ne.T,c={};c.types=o!==null?o.types:null,ne.T=c;try{var d=a(l,i),y=ne.S;y!==null&&y(c,d),nh(e,t,d)}catch(k){qr(e,t,k)}finally{o!==null&&c.types!==null&&(o.types=c.types),ne.T=o}}else try{o=a(l,i),nh(e,t,o)}catch(k){qr(e,t,k)}}function nh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){lh(e,t,i)},function(i){return qr(e,t,i)}):lh(e,t,a)}function lh(e,t,a){t.status="fulfilled",t.value=a,oh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ih(e,a)))}function qr(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,oh(t),t=t.next;while(t!==i)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function rh(e,t){if(De){var a=Ye.formState;if(a!==null){e:{var i=be;if(De){if(Be){t:{for(var l=Be,o=Zt;l.nodeType!==8;){if(!o){l=null;break t}if(l=Jt(l.nextSibling),l===null){l=null;break t}}o=l.data,l=o==="F!"||o==="F"?l:null}if(l){Be=Jt(l.nextSibling),i=l.data==="F!";break e}}Ba(i)}i=!1}i&&(t=a[0])}}return a=vt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},a.queue=i,a=Nh.bind(null,be,i),i.dispatch=a,i=jr(!1),o=Ur.bind(null,be,!1,i.queue),i=vt(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,a=Jg.bind(null,be,l,o,a),l.dispatch=a,i.memoizedState=e,[t,a,!1]}function uh(e){var t=$e();return ch(t,He,e)}function ch(e,t,a){if(t=_r(e,t,sh)[0],e=Ao(Ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ll(t)}catch(c){throw c===ln?mo:c}else i=t;t=$e();var l=t.queue,o=l.dispatch;return a!==t.memoizedState&&(be.flags|=2048,un(9,{destroy:void 0},$g.bind(null,l,a),null)),[i,o,e]}function $g(e,t){e.action=t}function fh(e){var t=$e(),a=He;if(a!==null)return ch(t,a,e);$e(),t=t.memoizedState,a=$e();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function un(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=So(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function hh(){return $e().memoizedState}function xo(e,t,a,i){var l=vt();be.flags|=e,l.memoizedState=un(1|t,{destroy:void 0},a,i===void 0?null:i)}function ko(e,t,a,i){var l=$e();i=i===void 0?null:i;var o=l.memoizedState.inst;He!==null&&i!==null&&Sr(i,He.memoizedState.deps)?l.memoizedState=un(t,o,a,i):(be.flags|=e,l.memoizedState=un(1|t,o,a,i))}function dh(e,t){xo(8390656,8,e,t)}function zr(e,t){ko(2048,8,e,t)}function Fg(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=So(),be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function mh(e){var t=$e().memoizedState;return Fg({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function ph(e,t){return ko(4,2,e,t)}function gh(e,t){return ko(4,4,e,t)}function yh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,a){a=a!=null?a.concat([e]):null,ko(4,4,yh.bind(null,t,e),a)}function Mr(){}function bh(e,t){var a=$e();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Sr(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function wh(e,t){var a=$e();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Sr(t,i[1]))return i[0];if(i=e(),Ni){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[i,t],i}function Cr(e,t,a){return a===void 0||(_a&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=jd(),be.lanes|=e,Ia|=e,a)}function Th(e,t,a,i){return Mt(a,t)?a:Za.current!==null?(e=Cr(e,a,i),Mt(e,t)||(Ie=!0),e):(_a&106)===0||(_a&1073741824)!==0&&(Ne&261930)===0?(Ie=!0,e.memoizedState=a):(e=jd(),be.lanes|=e,Ia|=e,t)}function Sh(e,t,a,i,l){var o=he.p;he.p=o!==0&&8>o?o:8;var c=ne.T,d={};d.types=c!==null?c.types:null,ne.T=d,Ur(e,!1,t,a);try{var y=l(),k=ne.S;if(k!==null&&k(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var j=Xg(y,i);ol(e,t,j,Ht(e))}else ol(e,t,i,Ht(e))}catch(U){ol(e,t,{then:function(){},status:"rejected",reason:U},Ht())}finally{he.p=o,c!==null&&d.types!==null&&(c.types=d.types),ne.T=c}}function Wg(){}function Or(e,t,a,i){if(e.tag!==5)throw Error(u(476));var l=Dh(e).queue;Sh(e,l,t,pt,a===null?Wg:function(){return Ah(e),a(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pt,baseState:pt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:pt},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),ol(e,t.next.queue,{},Ht())}function Rr(){return ut(_n)}function xh(){return $e().memoizedState}function kh(){return $e().memoizedState}function Ig(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ht();e=Va(a);var i=Xa(t,e,a);i!==null&&(_t(i,t,a),el(i,t,a)),t={cache:cr()},e.payload=t;return}t=t.return}}function Pg(e,t,a){var i=Ht();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},No(e)?_h(t,a):(a=tr(e,t,a,i),a!==null&&(_t(a,e,i),Eh(a,t,i)))}function Nh(e,t,a){var i=Ht();ol(e,t,a,i)}function ol(e,t,a,i){var l={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(No(e))_h(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var c=t.lastRenderedState,d=o(c,a);if(l.hasEagerState=!0,l.eagerState=d,Mt(d,c))return io(e,t,l,0),Ye===null&&ao(),!1}catch{}if(a=tr(e,t,l,i),a!==null)return _t(a,e,i),Eh(a,t,i),!0}return!1}function Ur(e,t,a,i){if(i={lane:2,revertLane:Nu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},No(e)){if(t)throw Error(u(479))}else t=tr(e,a,i,2),t!==null&&_t(t,e,2)}function No(e){var t=e.alternate;return e===be||t!==null&&t===be}function _h(e,t){sn=wo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Eh(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ec(e,a)}}var _o={readContext:ut,use:Do,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke,useEffectEvent:Ke},jh={readContext:ut,use:Do,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:dh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,xo(4194308,4,yh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){xo(4,2,e,t)},useMemo:function(e,t){var a=vt();t=t===void 0?null:t;var i=e();if(Ni){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=vt();if(a!==void 0){var l=a(t);if(Ni){Oa(!0);try{a(t)}finally{Oa(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=Pg.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=jr(e);var t=e.queue,a=Nh.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Mr,useDeferredValue:function(e,t){var a=vt();return Cr(a,e,t)},useTransition:function(){var e=jr(!1);return e=Sh.bind(null,be,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=be,l=vt();if(De){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ye===null)throw Error(u(349));(Ne&127)!==0||Wf(i,t,a)}l.memoizedState=a;var o={value:a,getSnapshot:t};return l.queue=o,dh(Pf.bind(null,i,o,e),[e]),i.flags|=2048,un(9,{destroy:void 0},If.bind(null,i,o,a,t),null),a},useId:function(){var e=vt(),t=Ye.identifierPrefix;if(De){var a=ra,i=sa;a=(i&~(1<<32-qt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=To++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Zg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rr,useFormState:rh,useActionState:rh,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ur.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nr,useCacheRefresh:function(){return vt().memoizedState=Ig.bind(null,be)},useEffectEvent:function(e){var t=vt(),a={impl:e};return t.memoizedState=a,function(){if((ze&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},qh={readContext:ut,use:Do,useCallback:bh,useContext:ut,useEffect:zr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:gh,useMemo:wh,useReducer:Ao,useRef:hh,useState:function(){return Ao(Ea)},useDebugValue:Mr,useDeferredValue:function(e,t){var a=$e();return Th(a,He.memoizedState,e,t)},useTransition:function(){var e=Ao(Ea)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:ll(e),t]},useSyncExternalStore:Ff,useId:xh,useHostTransitionStatus:Rr,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var a=$e();return ah(a,He,e,t)},useMemoCache:Nr,useCacheRefresh:kh,useEffectEvent:mh},ey={readContext:ut,use:Do,useCallback:bh,useContext:ut,useEffect:zr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:gh,useMemo:wh,useReducer:Er,useRef:hh,useState:function(){return Er(Ea)},useDebugValue:Mr,useDeferredValue:function(e,t){var a=$e();return He===null?Cr(a,e,t):Th(a,He.memoizedState,e,t)},useTransition:function(){var e=Er(Ea)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:ll(e),t]},useSyncExternalStore:Ff,useId:xh,useHostTransitionStatus:Rr,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var a=$e();return He!==null?ah(a,He,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nr,useCacheRefresh:kh,useEffectEvent:mh};function Hr(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:G({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yr={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Ht(),l=Va(i);l.payload=t,a!=null&&(l.callback=a),t=Xa(e,l,i),t!==null&&(_t(t,e,i),el(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Ht(),l=Va(i);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Xa(e,l,i),t!==null&&(_t(t,e,i),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ht(),i=Va(a);i.tag=2,t!=null&&(i.callback=t),t=Xa(e,i,a),t!==null&&(_t(t,e,a),el(t,e,a))}};function zh(e,t,a,i,l,o,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,c):t.prototype&&t.prototype.isPureReactComponent?!Zn(a,i)||!Zn(l,o):!0}function Mh(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Yr.enqueueReplaceState(t,t.state,null)}function _i(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=G({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ch(e){to(e)}function Oh(e){console.error(e)}function Rh(e){to(e)}function Eo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Uh(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Br(e,t,a){return a=Va(a),a.tag=3,a.payload={element:null},a.callback=function(){Eo(e,t)},a}function Hh(e){return e=Va(e),e.tag=3,e}function Yh(e,t,a,i){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var o=i.value;e.payload=function(){return l(o)},e.callback=function(){Uh(t,a,i)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Uh(t,a,i),typeof l!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var d=i.stack;this.componentDidCatch(i.value,{componentStack:d!==null?d:""})})}function ty(e,t,a,i,l){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&wi(t,a,l,!0),a=ct.current,a!==null){switch(a.tag){case 31:case 13:case 19:return gt===null?Fo():a.alternate===null&&Je===0&&(Je=3),a.flags&=-257,a.flags|=65536,a.lanes=l,i===po?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Au(e,i,l)),!1;case 22:return a.flags|=65536,i===po?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Au(e,i,l)),!1}throw Error(u(435,a.tag))}return Au(e,i,l),Fo(),!1}if(De)return t=ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==or&&(e=Error(u(422),{cause:i}),$n(Qt(e,a)))):(i!==or&&(t=Error(u(423),{cause:i}),$n(Qt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=Qt(i,a),l=Br(e.stateNode,i,l),gr(e,l),Je!==4&&(Je=2)),!1;var o=Error(u(520),{cause:i});if(o=Qt(o,a),ml===null?ml=[o]:ml.push(o),Je!==4&&(Je=2),t===null)return!0;i=Qt(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Br(a.stateNode,i,e),gr(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pa===null||!Pa.has(o))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Hh(l),Yh(l,e,a,i),gr(a,l),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var Gr=Error(u(461)),Ie=!1;function at(e,t,a,i){t.child=e===null?Qf(t,null,a,i):ki(t,e.child,a,i)}function Bh(e,t,a,i,l){a=a.render;var o=t.ref;if("ref"in i){var c={};for(var d in i)d!=="ref"&&(c[d]=i[d])}else c=i;return Ti(t),i=Dr(e,t,a,c,o,l),d=Ar(),e!==null&&!Ie?(xr(e,t,l),ja(e,t,l)):(De&&d&&so(t),t.flags|=1,at(e,t,i,l),t.child)}function Gh(e,t,a,i,l){if(e===null){var o=a.type;return typeof o=="function"&&!ar(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,Lh(e,t,o,i,l)):(e=lo(a.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!$r(e,l)){var c=o.memoizedProps;if(a=a.compare,a=a!==null?a:Zn,a(c,i)&&e.ref===t.ref)return ja(e,t,l)}return t.flags|=1,e=Aa(o,i),e.ref=t.ref,e.return=t,t.child=e}function Lh(e,t,a,i,l){if(e!==null){var o=e.memoizedProps;if(Zn(o,i)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=i=o,$r(e,l))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,ja(e,t,l)}return Lr(e,t,a,i,l)}function Qh(e,t,a,i){var l=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~o}else i=0,t.child=null;return Vh(e,t,o,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(t,o!==null?o.cachePool:null),o!==null?Zf(t,o):vr(),Kf(t);else return i=t.lanes=536870912,Vh(e,t,o!==null?o.baseLanes|a:a,a,i)}else o!==null?(ho(t,o.cachePool),Zf(t,o),Ja(),t.memoizedState=null):(e!==null&&ho(t,null),vr(),Ja());return at(e,t,l,a),t.child}function sl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,a,i,l){var o=hr();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&ho(t,null),vr(),Kf(t),e!==null&&wi(e,t,i,!0),t.childLanes=l,null}function jo(e,t){return t=qo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,a){return ki(t,e.child,null,a),e=jo(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function ay(e,t,a){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(i.mode==="hidden")return e=jo(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},sl(null,e);if(wr(t),(e=Be)?(e=ym(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=_f(e),a.return=t,t.child=a,lt=t,Be=null)):e=null,e===null)throw Ba(t);return t.lanes=536870912,null}return jo(t,i)}var o=e.memoizedState;if(o!==null){var c=o.dehydrated;if(wr(t),l)if(t.flags&256)t.flags&=-257,t=Xh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Ie||wi(e,t,a,!1),l=(a&e.childLanes)!==0,Ie||l){if(Za.current===null){if(i=Ye,i!==null&&(c=jc(i,a),c!==0&&c!==o.retryLane))throw o.retryLane=c,gi(e,c),_t(i,e,c),Gr;Fo()}t=Xh(e,t,a)}else e=o.treeContext,Be=Jt(c.nextSibling),lt=t,De=!0,Ya=null,Zt=!1,e!==null&&qf(t,e),t=jo(t,i),t.flags|=134221824;return t}return e=Aa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cn(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Lr(e,t,a,i,l){return Ti(t),a=Dr(e,t,a,i,void 0,l),i=Ar(),e!==null&&!Ie?(xr(e,t,l),ja(e,t,l)):(De&&i&&so(t),t.flags|=1,at(e,t,a,l),t.child)}function Zh(e,t,a,i,l,o){return Ti(t),t.updateQueue=null,a=$f(t,i,a,l),Jf(e),i=Ar(),e!==null&&!Ie?(xr(e,t,o),ja(e,t,o)):(De&&i&&so(t),t.flags|=1,at(e,t,a,o),t.child)}function Kh(e,t,a,i,l){if(Ti(t),t.stateNode===null){var o=Pi,c=a.contextType;typeof c=="object"&&c!==null&&(o=ut(c)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Yr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},mr(t),c=a.contextType,o.context=typeof c=="object"&&c!==null?ut(c):Pi,o.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(Hr(t,a,c,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(c=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),c!==o.state&&Yr.enqueueReplaceState(o,o.state,null),al(t,i,o,l),tl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var d=t.memoizedProps,y=_i(a,d);o.props=y;var k=o.context,j=a.contextType;c=Pi,typeof j=="object"&&j!==null&&(c=ut(j));var U=a.getDerivedStateFromProps;j=typeof U=="function"||typeof o.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d||k!==c)&&Mh(t,o,i,c),Qa=!1;var A=t.memoizedState;o.state=A,al(t,i,o,l),tl(),k=t.memoizedState,d||A!==k||Qa?(typeof U=="function"&&(Hr(t,a,U,i),k=t.memoizedState),(y=Qa||zh(t,a,y,i,A,k,c))?(j||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=i,t.memoizedState=k),o.props=i,o.state=k,o.context=c,i=y):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,pr(e,t),c=t.memoizedProps,j=_i(a,c),o.props=j,U=t.pendingProps,A=o.context,k=a.contextType,y=Pi,typeof k=="object"&&k!==null&&(y=ut(k)),d=a.getDerivedStateFromProps,(k=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==U||A!==y)&&Mh(t,o,i,y),Qa=!1,A=t.memoizedState,o.state=A,al(t,i,o,l),tl();var _=t.memoizedState;c!==U||A!==_||Qa||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof d=="function"&&(Hr(t,a,d,i),_=t.memoizedState),(j=Qa||zh(t,a,j,i,A,_,y)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,_,y),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,_,y)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=_),o.props=i,o.state=_,o.context=y,i=j):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,cn(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ki(t,e.child,null,l),t.child=ki(t,null,a,l)):at(e,t,a,l),t.memoizedState=o.state,e=t.child):e=ja(e,t,l),e}function Jh(e,t,a,i){return vi(),t.flags|=256,at(e,t,a,i),t.child}var Qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vr(e){return{baseLanes:e,cachePool:Uf()}}function Xr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ut),e}function $h(e,t,a){var i=t.pendingProps,l=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),c&&(l=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(l?Ka(t):Ja(),(e=Be)?(e=ym(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=_f(e),a.return=t,t.child=a,lt=t,Be=null)):e=null,e===null)throw Ba(t);return Vu(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,l?(Ja(),l=t.mode,o=qo({mode:"hidden",children:o},l),i=yi(i,l,a,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=Vr(a),i.childLanes=Xr(e,c,a),t.memoizedState=Qr,sl(null,i)):(Ka(t),Zr(t,o))}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(y!==null)return iy(e,t,o,c,i,y,d,a)}return l?(Ja(),l=i.fallback,o=t.mode,d=e.child,y=d.sibling,i=Aa(d,{mode:"hidden",children:i.children}),i.subtreeFlags=d.subtreeFlags&1206910976,y!==null?l=Aa(y,l):(l=yi(l,o,a,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,sl(null,i),i=t.child,l=e.child.memoizedState,l===null?l=Vr(a):(o=l.cachePool,o!==null?(d=Fe._currentValue,o=o.parent!==d?{parent:d,pool:d}:o):o=Uf(),l={baseLanes:l.baseLanes|a,cachePool:o}),i.memoizedState=l,i.childLanes=Xr(e,c,a),t.memoizedState=Qr,sl(e.child,i)):(Ka(t),a=e.child,e=a.sibling,a=Aa(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function Zr(e,t){return t=qo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qo(e,t){return e=At(22,e,null,t),e.lanes=0,e}function zo(e,t,a){return ki(t,e.child,null,a),e=Zr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iy(e,t,a,i,l,o,c,d){if(a)return t.flags&256?(Ka(t),t.flags&=-257,zo(e,t,d)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,null):(Ja(),o=l.fallback,c=t.mode,l=qo({mode:"visible",children:l.children},c),o=yi(o,c,d,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,ki(t,e.child,null,d),l=t.child,l.memoizedState=Vr(d),l.childLanes=Xr(e,i,d),t.memoizedState=Qr,sl(null,l));if(Ka(t),Vu(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var y=i.dgst;return i=y,i!==""&&(l=Error(u(419)),l.stack="",l.digest=i,$n({value:l,source:null,stack:null})),zo(e,t,d)}if(Ie||wi(e,t,d,!1),i=(d&e.childLanes)!==0,Ie||i){if(Za.current!==null)return zo(e,t,d);if(i=Ye,i!==null&&(l=jc(i,d),l!==0&&l!==c.retryLane))throw c.retryLane=l,gi(e,l),_t(i,e,l),Gr;return Qu(o)||Fo(),zo(e,t,d)}return Qu(o)?(t.flags|=192,t.child=e.child,null):(e=c.treeContext,Be=Jt(o.nextSibling),lt=t,De=!0,Ya=null,Zt=!1,e!==null&&qf(t,e),t=Zr(t,l.children),t.flags|=134221824,t)}function Fh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),uo(e.return,t,a)}function Wh(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&bo(a)===null&&(t=e),e=e.sibling}return t}function Mo(e,t,a,i,l,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:l,treeForkCount:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=a,c.tailMode=l,c.treeForkCount=o)}function Kr(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Jr(e,t,a){var i=t.pendingProps,l=i.revealOrder,o=i.tail;i=i.children;var c=ft.current;if(t.flags&128)return il(t,c),null;var d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,il(t,c),l==="backwards"&&e!==null?(Kr(e),at(e,t,i,a),Kr(e)):at(e,t,i,a),i=De?Jn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fh(e,a,t);else if(e.tag===19)Fh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":a=Wh(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null,Kr(t)),Mo(t,!0,l,null,o,i);break;case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&bo(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Mo(t,!0,a,null,o,i);break;case"together":Mo(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:a=Wh(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Mo(t,!1,l,a,o,i)}return t.child}function Ih(e,t,a){var i=t.pendingProps;return Ga(t,t.type,i.value),at(e,t,i.children,a),t.child}function ja(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=Aa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Aa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function $r(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function ny(e,t,a){switch(t.tag){case 3:Ul(t,t.stateNode.containerInfo),Ga(t,Fe,e.memoizedState.cache),vi();break;case 27:case 5:Ss(t);break;case 4:Ul(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wr(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ka(t),t.flags|=128,null;i=wi(e,t,a,!1);var l=t.child.childLanes;return i||(a&l)!==0?$h(e,t,a):(Ka(t),e=ja(e,t,a),e!==null?e.sibling:null)}Ka(t);break;case 19:if(t.flags&128)return Jr(e,t,a);if(l=(e.flags&128)!==0,i=(a&t.childLanes)!==0,i||(wi(e,t,a,!1),i=(a&t.childLanes)!==0),l){if(i)return Jr(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),il(t,ft.current),i)break;return null;case 22:return t.lanes=0,Qh(e,t,a,t.pendingProps);case 24:Ga(t,Fe,e.memoizedState.cache)}return ja(e,t,a)}function Ph(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!$r(e,a)&&(t.flags&128)===0)return Ie=!1,ny(e,t,a);Ie=(e.flags&131072)!==0}else Ie=!1,De&&(t.flags&1048576)!==0&&jf(t,Jn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ai(t.elementType),t.type=e,typeof e=="function")ar(e)?(i=_i(e,i),t.tag=1,t=Kh(null,t,e,i,a)):(t.tag=0,t=Lr(null,t,e,i,a));else{if(e!=null){var l=e.$$typeof;if(l===X){t.tag=11,t=Bh(null,t,e,i,a);break e}else if(l===ke){t.tag=14,t=Gh(null,t,e,i,a);break e}else if(l===se){t.tag=10,t.type=e,t=Ih(null,t,a);break e}}throw t=Te(e)||e,Error(u(306,t,""))}}return t;case 0:return Lr(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,l=_i(i,t.pendingProps),Kh(e,t,i,l,a);case 3:e:{if(Ul(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var o=t.memoizedState;l=o.element,pr(e,t),al(t,i,null,a);var c=t.memoizedState;if(i=c.cache,Ga(t,Fe,i),i!==o.cache&&ur(t,[Fe],a,!0),tl(),i=c.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Jh(e,t,i,a);break e}else if(i!==l){l=Qt(Error(u(424)),t),$n(l),t=Jh(e,t,i,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Be=Jt(e.firstChild),lt=t,De=!0,Ya=null,Zt=!0,a=Qf(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(vi(),i===l){t=ja(e,t,a);break e}at(e,t,i,a)}t=t.child}return t;case 26:return cn(e,t),e===null?(a=Am(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(t.stateNode=im(t.type,t.pendingProps,va.current,t)):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ss(t),e===null&&De&&(i=t.stateNode=wm(t.type,t.pendingProps,va.current),lt=t,Zt=!0,l=Be,ai(t.type)?(Xu=l,Be=Jt(i.firstChild)):Be=l),at(e,t,t.pendingProps.children,a),cn(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((l=i=Be)&&(i=Iy(i,t.type,t.pendingProps,Zt),i!==null?(t.stateNode=i,lt=t,Be=Jt(i.firstChild),Zt=!1,l=!0):l=!1),l||Ba(t)),Ss(t),l=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,i=o.children,Ru(l,o)?i=null:c!==null&&Ru(l,c)&&(t.flags|=32),t.memoizedState!==null&&(l=Dr(e,t,Kg,null,null,a),_n._currentValue=l),cn(e,t),at(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=Be)&&(a=Py(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,lt=t,Be=null,e=!0):e=!1),e||Ba(t)),null;case 13:return $h(e,t,a);case 4:return Ul(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ki(t,null,i,a):at(e,t,i,a),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,a);case 7:return i=t.pendingProps,cn(e,t),at(e,t,i,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return Ih(e,t,a);case 9:return l=t.type._context,i=t.pendingProps.children,Ti(t),l=ut(l),i=i(l),t.flags|=1,at(e,t,i,a),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,a);case 15:return Lh(e,t,t.type,t.pendingProps,a);case 19:return Jr(e,t,a);case 31:return ay(e,t,a);case 22:return Qh(e,t,a,t.pendingProps);case 24:return Ti(t),i=ut(Fe),e===null?(l=hr(),l===null&&(l=Ye,o=cr(),l.pooledCache=o,o.refCount++,o!==null&&(l.pooledCacheLanes|=a),l=o),t.memoizedState={parent:i,cache:l},mr(t),Ga(t,Fe,l)):((e.lanes&a)!==0&&(pr(e,t),al(t,null,null,a),tl()),l=e.memoizedState,o=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ga(t,Fe,i)):(i=o.cache,Ga(t,Fe,i),i!==l.cache&&ur(t,[Fe],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:De&&so(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:cn(e,t),at(e,t,i.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function qa(e){e.flags|=4}function Fr(e,t,a,i,l){var o;if((o=(e.mode&32)!==0)&&(o=a===null?_m(t,i):_m(t,i)&&(i.src!==a.src||i.srcSet!==a.srcSet)),o){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Cd())e.flags|=8192;else throw xi=po,dr}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Cd())e.flags|=8192;else throw xi=po,dr}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nc():536870912,e.lanes|=t,pn|=t)}function rl(e,t){if(!De)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function ly(e,t,a){var i=t.pendingProps;switch(lr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Na(Fe),Bi(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(an(t)?qa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sr())),Ge(t),null;case 26:var l=t.type,o=t.memoizedState;return e===null?(qa(t),o!==null?(Ge(t),ed(t,o)):(Ge(t),Fr(t,l,null,i,a))):o?o!==e.memoizedState?(qa(t),Ge(t),ed(t,o)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&qa(t),Ge(t),Fr(t,l,e,i,a)),null;case 27:if(Hl(t),a=va.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qa(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),t.subtreeFlags&=-33554433,null}e=St.current,an(t)?zf(t):(e=wm(l,i,a),t.stateNode=e,qa(t))}return Ge(t),t.subtreeFlags&=-33554433,null;case 5:if(Hl(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qa(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),t.subtreeFlags&=-33554433,null}if(o=St.current,an(t))zf(t);else{var c=bl(va.current);switch(o){case 1:o=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:o=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":o=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":o=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":o=c.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?c.createElement(l,{is:i.is}):c.createElement(l)}}o[rt]=t,o[Dt]=i;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=o;e:switch(dt(o,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&qa(t)}}return Ge(t),t.subtreeFlags&=-33554433,Fr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&qa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=va.current,an(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,l=lt,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Pd(e.nodeValue,a)),e||Ba(t,!0)}else e=bl(e).createTextNode(i),e[rt]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=an(t),a!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[rt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ge(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=an(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[rt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),l=!1}else l=sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Co(t,t.updateQueue),Ge(t),null);case 4:return Bi(),e===null&&qu(t.stateNode.containerInfo),t.flags|=67108864,Ge(t),null;case 10:return Na(t.type),Ge(t),null;case 19:if(Tr(t),i=t.memoizedState,i===null)return Ge(t),null;if(l=(t.flags&128)!==0,o=i.rendering,o===null)if(l)rl(i,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,rl(i,!1),e=o.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Nf(a,e),a=a.sibling;return il(t,ft.current&1|2),De&&xa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Zo&&(t.flags|=128,l=!0,rl(i,!1),t.lanes=4194304)}else{if(!l)if(e=bo(o),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),rl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!De)return Ge(t),null}else 2*Et()-i.renderingStartTime>Zo&&a!==536870912&&(t.flags|=128,l=!0,rl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,o=ft.current,o=l?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!a||De?il(t,o):(a=o,qe(ct,t),qe(ft,a),gt===null&&(gt=t)),De&&xa(t,i.treeForkCount),e}return Ge(t),null;case 22:case 23:return Ct(t),br(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&Co(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Qe(Di),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Na(Fe),Ge(t),null;case 25:return null;case 30:return t.flags|=33554432,Ge(t),null}throw Error(u(156,t.tag))}function oy(e,t){switch(lr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(Fe),Bi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Hl(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(u(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tr(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 Bi(),null;case 10:return Na(t.type),null;case 22:case 23:return Ct(t),br(),e!==null&&Qe(Di),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Na(Fe),null;case 25:return null;default:return null}}function td(e,t){switch(lr(t),t.tag){case 3:Na(Fe),Bi();break;case 26:case 27:case 5:Hl(t);break;case 4:Bi();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:Tr(t);break;case 10:Na(t.type);break;case 22:case 23:Ct(t),br(),e!==null&&Qe(Di);break;case 24:Na(Fe)}}function ul(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var l=i.next;a=l;do{if((a.tag&e)===e){i=void 0;var o=a.create,c=a.inst;i=o(),c.destroy=i}a=a.next}while(a!==l)}}catch(d){Oe(t,t.return,d)}}function $a(e,t,a){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var o=l.next;i=o;do{if((i.tag&e)===e){var c=i.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,l=t;var y=a,k=d;try{k()}catch(j){Oe(l,y,j)}}}i=i.next}while(i!==o)}}catch(j){Oe(t,t.return,j)}}function ad(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Xf(t,a)}catch(i){Oe(e,e.return,i)}}}function id(e,t,a){a.props=_i(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Oe(e,t,i)}}function ua(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,o=Sa(e.memoizedProps,l);(l.ref===null||l.ref.name!==o)&&(l.ref=cm(o)),i=l.ref;break;case 7:if(e.stateNode===null){var c=new Yt(e);p(e.child,!1,Fy,c,void 0,void 0),e.stateNode=c}i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(d){Oe(e,t,d)}}function ht(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(l){Oe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Oe(e,t,l)}else a.current=null}function Oo(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)gm(e.stateNode,t[a])}function nd(e){for(var t=e.return;t!==null&&(Ir(t)&&gm(e.stateNode,t.stateNode),!Wr(t));)t=t.return}function cl(e){for(var t=e.return;t!==null&&(Ir(t)&&Wy(e.stateNode,t.stateNode),!Wr(t));)t=t.return}function Wr(e){return e.tag===5||e.tag===3||e.tag===27}function Ir(e){return e&&e.tag===7&&e.stateNode!==null}function Pr(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(l){Oe(e,e.return,l)}}function eu(e,t,a){try{var i=e.stateNode;zy(i,e.type,a,t),i[Dt]=t}catch(l){Oe(e,e.return,l)}}function ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ld(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&&ai(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 au(e,t,a,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(l,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(l),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=oa)),Oo(e,i),je=!0;else if(l!==4&&(l===27&&(Oo(e,i),i=null,ai(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(au(e,t,a,i),e=e.sibling;e!==null;)au(e,t,a,i),e=e.sibling}function Ro(e,t,a,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?a.insertBefore(l,t):a.appendChild(l),Oo(e,i),je=!0;else if(l!==4&&(l===27&&(Oo(e,i),i=null,ai(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Ro(e,t,a,i),e=e.sibling;e!==null;)Ro(e,t,a,i),e=e.sibling}function od(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,a),t[rt]=e,t[Dt]=a}catch(o){Oe(e,e.return,o)}}var Uo=!1,Ot=null;function sd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Uo=!0)}var ca=null;function rd(){var e=ca;return ca=null,e}var xt=0;function fn(e,t,a,i,l){return xt=0,ud(e.child,t,a,i,l)}function ud(e,t,a,i,l){for(var o=!1;e!==null;){if(e.tag===5){var c=e.stateNode;if(i!==null){var d=Yu(c);i.push(d),d.view&&(o=!0)}else o||Yu(c).view&&(o=!0);Uo=!0,rm(c,xt===0?t:t+"_"+xt,a),xt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||ud(e.child,t,a,i,l)&&(o=!0));e=e.sibling}return o}function fa(e,t){for(;e!==null;)e.tag===5?um(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||fa(e.child,t)),e=e.sibling}function Ho(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ho(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(u(544));var a=t.name;t=Da(t.default,t.share),t!=="none"&&(fn(e,a,t,null,!1)||fa(e.child,!1))}e=e.sibling}}function iu(e,t){if(e.tag===30){var a=e.stateNode,i=e.memoizedProps,l=Sa(i,a),o=Da(i.default,a.paired?i.share:i.enter);o!=="none"?fn(e,l,o,null,!1)?(Ho(e),a.paired||t||bn(e,i.onEnter)):fa(e.child,!1):Ho(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)iu(e,t),e=e.sibling;else Ho(e)}function nu(e){if(Ot!==null&&Ot.size!==0){var t=Ot;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 a=e.memoizedProps,i=a.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var o=Da(a.default,a.share);if(o!=="none"&&(fn(e,i,o,null,!1)?(o=e.stateNode,l.paired=o,o.paired=l,bn(e,a.onShare)):fa(e.child,!1)),t.delete(i),t.size===0)break}}}nu(e)}e=e.sibling}}}function lu(e){if(e.tag===30){var t=e.memoizedProps,a=Sa(t,e.stateNode),i=Ot!==null?Ot.get(a):void 0,l=Da(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(fn(e,a,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,Ot.delete(a),bn(e,t.onShare)):bn(e,t.onExit):fa(e.child,!1)),Ot!==null&&nu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)lu(e),e=e.sibling;else Ot!==null&&nu(e)}function cd(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Sa(t,e.stateNode);t=Da(t.default,t.update),e.flags&=-5,t!=="none"&&fn(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&cd(e);e=e.sibling}}function ou(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,fa(e.child,!1))}ou(e)}e=e.sibling}}function Yo(e){if(e.tag===30)e.stateNode.paired=null,fa(e.child,!1),ou(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Yo(e),e=e.sibling;else ou(e)}function fd(e){for(e=e.child;e!==null;)e.tag===30?fa(e.child,!1):(e.subtreeFlags&33554432)!==0&&fd(e),e=e.sibling}function su(e,t,a,i,l,o,c){for(var d=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(o!==null&&xt<o.length){var k=o[xt],j=Yu(y);(k.view||j.view)&&(d=!0);var U;if(U=(e.flags&4)===0)if(j.clip)U=!0;else{U=k.rect;var A=j.rect;U=U.y!==A.y||U.x!==A.x||U.height!==A.height||U.width!==A.width}U&&(e.flags|=4),j.abs?j=!k.abs:(k=k.rect,j=j.rect,j=k.height!==j.height||k.width!==j.width),j&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&rm(y,xt===0?a:a+"_"+xt,l),d&&(e.flags&4)!==0||(ca===null&&(ca=[]),ca.push(y,xt===0?i:i+"_"+xt,t.memoizedProps)),xt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&c?e.flags|=t.flags&32:su(e,t.child,a,i,l,o,c)&&(d=!0));t=t.sibling}return d}function hd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,i=e.stateNode,l=Sa(a,i),o=Da(a.default,a.update),c;c=e.memoizedState,e.memoizedState=null,i=e;var d=e.child;xt=0,l=su(i,d,l,l,o,c,!1),(e.flags&4)!==0&&l&&bn(e,a.onUpdate)}else(e.subtreeFlags&33554432)!==0&&hd(e);e=e.sibling}}var ot=!1,Me=!1,ha=!1,ru=!1,dd=typeof WeakSet=="function"?WeakSet:Set,st=null,da=!1,fl=!1,Bo=!1,uu=!1;function sy(e,t,a){if(e=e.containerInfo,Cu=En,e=yf(e),$s(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var d=0,y=-1,k=-1,j=0,U=0,A=e,_=null;t:for(;;){for(var J;A!==i||o!==0&&A.nodeType!==3||(y=d+o),A!==c||l!==0&&A.nodeType!==3||(k=d+l),A.nodeType===3&&(d+=A.nodeValue.length),(J=A.firstChild)!==null;)_=A,A=J;for(;;){if(A===e)break t;if(_===i&&++j===o&&(y=d),_===c&&++U===l&&(k=d),(J=A.nextSibling)!==null)break;A=_,_=A.parentNode}A=J}i=y===-1||k===-1?null:{start:y,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ou={focusedElem:e,selectionRange:i},En=!1,a=(a&335544064)===a,st=t,t=a?9270:1024;st!==null;){if(e=st,a&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)a&&lu(i[o]);if(e.alternate===null&&(e.flags&2)!==0)a&&sd(e),Go(a);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&a&&lu(i),Go(a);continue}else if(i!==null&&i.memoizedState!==null){a&&sd(e),Go(a);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,st=i):(a&&cd(e),Go(a))}}Ot=null}function Go(e){for(;st!==null;){var t=st,a=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){a=void 0,l=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var c=_i(t.type,l);a=o.getSnapshotBeforeUpdate(c,i),o.__reactInternalSnapshotBeforeUpdate=a}catch(d){Oe(t,t.return,d)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,a=i.nodeType,a===9)Lu(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Lu(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&i!==null&&(a=Sa(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=Da(l.default,l.update),l!=="none"&&fn(i,a,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(u(163))}if(i=t.sibling,i!==null){i.return=t.return,st=i;break}st=t.return}}function md(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ma(e,a),i&4&&ul(5,a);break;case 1:if(ma(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Oe(a,a.return,c)}else{var l=_i(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Oe(a,a.return,c)}}i&64&&ad(a),i&512&&ua(a,a.return);break;case 3:if(ma(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Xf(e,t)}catch(c){Oe(a,a.return,c)}}break;case 27:t===null&&i&4&&od(a);case 26:case 5:ma(e,a),t===null&&i&4&&Pr(a),i&512&&ua(a,a.return);break;case 12:ma(e,a);break;case 31:ma(e,a),i&4&&vd(e,a);break;case 13:ma(e,a),i&4&&bd(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=by.bind(null,a),e1(e,a))));break;case 22:if(i=a.memoizedState!==null||ot,!i){var o=t!==null&&t.memoizedState!==null||Me;t=ot,l=Me,ot=i,(Me=o)&&!l?(i=2,(a.subtreeFlags&8772)!==0&&(i|=1),ta(e,a,i)):ma(e,a),ot=t,Me=l}break;case 30:ma(e,a),i&512&&ua(a,a.return);break;case 7:i&512&&ua(a,a.return);default:ma(e,a)}}function cu(e,t){for(e=e.child;e!==null;)pd(e,t),e=e.sibling}function pd(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var i=a.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,o=e.memoizedProps.style,c=o!=null&&o.hasOwnProperty("display")?o.display:null;l.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}}catch(y){Oe(e,e.return,y)}fu(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,je=!0}catch(y){Oe(e,e.return,y)}break;case 18:try{var d=e.stateNode;t?sm(d,!0):sm(e.stateNode,!1)}catch(y){Oe(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&cu(e,t);break;default:cu(e,t)}}function fu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,i=t;switch(a.tag){case 4:pd(a,i);break e;case 22:a.memoizedState===null&&fu(a,i);break e;default:fu(a,i)}}e=e.sibling}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xl(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 Ve=null,kt=!1;function Pt(e,t,a){for(a=a.child;a!==null;)yd(e,t,a),a=a.sibling}function yd(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Cn,a)}catch{}switch(a.tag){case 26:Me||ht(a,t),Pt(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Me&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Me||ht(a,t),cl(a);var i=Ve,l=kt;ai(a.type)&&(Ve=a.stateNode,kt=!1),Pt(e,t,a),Tm(a.stateNode,a.type,a.memoizedProps),Ve=i,kt=l;break;case 5:Me||ht(a,t),cl(a);case 6:if(a.tag===6&&cl(a),i=Ve,l=kt,Ve=null,Pt(e,t,a),Ve=i,kt=l,Ve!==null)if(kt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode),je=!0}catch(o){Oe(a,t,o)}else try{Ve.removeChild(a.stateNode),je=!0}catch(o){Oe(a,t,o)}break;case 18:Ve!==null&&(kt?(e=Ve,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),jn(e)):om(Ve,a.stateNode));break;case 4:i=Ve,l=kt,Ve=a.stateNode.containerInfo,kt=!0,Pt(e,t,a),Ve=i,kt=l;break;case 0:case 11:case 14:case 15:$a(2,a,t),Me||$a(4,a,t),Pt(e,t,a);break;case 1:Me||(ht(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&id(a,t,i)),Pt(e,t,a);break;case 21:Pt(e,t,a);break;case 22:Me=(i=Me)||a.memoizedState!==null,Pt(e,t,a),Me=i;break;case 30:ht(a,t),Pt(e,t,a);break;case 7:Me||ht(a,t),Pt(e,t,a);break;default:Pt(e,t,a)}}function vd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jn(e)}catch(a){Oe(t,t.return,a)}}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jn(e)}catch(a){Oe(t,t.return,a)}}function ry(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dd),t;default:throw Error(u(435,e.tag))}}function Lo(e,t){var a=ry(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var l=wy.bind(null,e,i);i.then(l,l)}})}function bt(e,t,a){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(ai(y.type)){Ve=y.stateNode,kt=!1;break e}break;case 5:Ve=y.stateNode,kt=!1;break e;case 3:case 4:Ve=y.stateNode.containerInfo,kt=!0;break e}y=y.return}if(Ve===null)throw Error(u(160));yd(c,d,o),Ve=null,kt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wd(t,e,a),t=t.sibling}var ea=null;function wd(e,t,a){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var c=i[o];c.ref.impl=c.nextImpl}bt(t,e,a),wt(e),l&4&&($a(3,e,e.return),ul(3,e),$a(5,e,e.return));break;case 1:bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),l&64&&ot&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(o=ea,bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,a=e.memoizedState,i===null)if(a===null)if(e.stateNode===null)if(ot)e.stateNode=im(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,l=o.ownerDocument||o;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Un]||i[rt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,a),i[rt]=e,nt(i),t=i;break e;case"link":if(o=Nm("link","href",l).get(t+(a.href||""))){for(c=0;c<o.length;c++)if(i=o[c],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(c,1);break t}}i=l.createElement(t),dt(i,t,a),l.head.appendChild(i);break;case"meta":if(o=Nm("meta","content",l).get(t+(a.content||""))){for(c=0;c<o.length;c++)if(i=o[c],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(c,1);break t}}i=l.createElement(t),dt(i,t,a),l.head.appendChild(i);break;default:throw Error(u(468,t))}i[rt]=e,nt(i),t=i}e.stateNode=t}else ot||$u(o,e.type,e.stateNode);else e.stateNode=km(o,a,e.memoizedProps);else l!==a?(l===null?(t=i.stateNode,t===null||Me||t.parentNode.removeChild(t)):l.count--,a===null?ot||$u(o,e.type,e.stateNode):km(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&eu(e,e.memoizedProps,i.memoizedProps);break;case 27:bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),i!==null&&l&4&&eu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=ha,ha=!1,bt(t,e,a),ha=o,wt(e),l&512&&(Me||i===null||ht(i,i.return)),e.flags&32){t=e.stateNode;try{Zi(t,""),je=!0}catch(j){Oe(e,e.return,j)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,eu(e,t,i!==null?i.memoizedProps:t)),l&1024&&(ru=!0);break;case 6:if(bt(t,e,a),wt(e),l&4){if(e.stateNode===null)throw Error(u(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,je=!0}catch(j){Oe(e,e.return,j)}}break;case 3:if(je=!1,is=null,o=ea,ea=wl(t.containerInfo),bt(t,e,a),ea=o,wt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{jn(t.containerInfo)}catch(j){Oe(e,e.return,j)}ru&&(ru=!1,Td(e)),je=!1;break;case 4:l=ha,ha=ot,i=Bc(),o=ea,ea=wl(e.stateNode.containerInfo),bt(t,e,a),wt(e),ea=o,je&&fl&&(Bo=!0),je=i,ha=l;break;case 12:bt(t,e,a),wt(e);break;case 31:bt(t,e,a),wt(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 13:bt(t,e,a),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Xo=Et()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 22:o=e.memoizedState!==null,c=i!==null&&i.memoizedState!==null;var d=ot,y=Me,k=ha;ot=d||o,ha=k||o,Me=y||c,bt(t,e,a),Me=y,ha=k,ot=d,wt(e),l&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||c||ot||Me||(t=c||Me,a=ot,i=Me,ot=o||ot,Me=t,Fa(e,2),ot=a,Me=i),!o&&ha||cu(e,o)),l&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Lo(e,a))));break;case 19:bt(t,e,a),wt(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 30:l&512&&(Me||i===null||ht(i,i.return)),l=Bc(),o=fl,c=(a&335544064)===a,d=e.memoizedProps,fl=c&&Da(d.default,d.update)!=="none",bt(t,e,a),wt(e),c&&i!==null&&je&&(e.flags|=4),fl=o,je=l;break;case 21:break;case 7:l&512&&(Me||i===null||ht(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:bt(t,e,a),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(ld(i)){a=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Ir(l)){var o=l.stateNode;i===null?i=[o]:i.push(o)}if(Wr(l))break;l=l.return}var c=i;if(a==null)throw Error(u(160));switch(a.tag){case 27:var d=a.stateNode,y=tu(e);Ro(e,y,d,c);break;case 5:var k=a.stateNode;a.flags&32&&(Zi(k,""),a.flags&=-33);var j=tu(e);Ro(e,j,k,c);break;case 3:case 4:var U=a.stateNode.containerInfo,A=tu(e);au(e,A,U,c);break;default:throw Error(u(161))}}catch(_){Oe(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Td(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,En=!0,t.reset(),En=!1),e=e.sibling}}function hn(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Sd(t,e),t=t.sibling;else hd(t)}function Sd(e,t){var a=e.alternate;if(a===null)iu(e,!1);else switch(e.tag){case 3:if(uu=da=!1,rd(),hn(t,e),!da&&!Bo){if(e=ca,e!==null)for(var i=0;i<e.length;i+=3){a=e[i];var l=e[i+1];um(a,e[i+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}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"})),uu=!0}ca=null;break;case 5:hn(t,e);break;case 4:i=da,da=!1,hn(t,e),da&&(Bo=!0),da=i;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?iu(e,!1):hn(t,e));break;case 30:i=da,l=rd(),da=!1,hn(t,e),da&&(e.flags|=4);var o=e.memoizedProps,c=e.stateNode;t=Sa(o,c),c=Sa(a.memoizedProps,c);var d=Da(o.default,o.update);d==="none"?t=!1:(o=a.memoizedState,a.memoizedState=null,a=e.child,xt=0,t=su(e,a,t,c,d,o,!0),xt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(bn(e,e.memoizedProps.onUpdate),ca=l):l!==null&&(l.push.apply(l,ca),ca=l),da=(e.flags&32)!==0?!0:i;break;default:hn(t,e)}}function ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)md(e,t.alternate,t),t=t.sibling}function Fa(e,t){for(e=e.child;e!==null;){var a=e,i=t;switch(a.tag){case 0:case 11:case 14:case 15:$a(4,a,a.return),Fa(a,i);break;case 1:ht(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&id(a,a.return,l),Fa(a,i);break;case 27:(i&2)!==0&&Tm(a.stateNode,a.type,a.memoizedProps);case 5:ht(a,a.return),a.tag!==5&&a.tag!==27||cl(a),Fa(a,i);break;case 6:cl(a);break;case 26:ht(a,a.return),l=a.stateNode,a.memoizedState!==null||l===null||Me||l.parentNode.removeChild(l),Fa(a,i);break;case 22:a.memoizedState===null&&Fa(a,i);break;case 30:ht(a,a.return),Fa(a,i);break;case 7:ht(a,a.return);default:Fa(a,i)}e=e.sibling}}function ta(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var i=t.alternate,l=e,o=t,c=o.flags,d=(a&1)!==0;switch(o.tag){case 0:case 11:case 15:ta(l,o,a),ul(4,o);break;case 1:if(ta(l,o,a),i=o,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(j){Oe(i,i.return,j)}if(i=o,l=i.updateQueue,l!==null){var y=i.stateNode;try{var k=l.shared.hiddenCallbacks;if(k!==null)for(l.shared.hiddenCallbacks=null,l=0;l<k.length;l++)Vf(k[l],y)}catch(j){Oe(i,i.return,j)}}d&&c&64&&ad(o),ua(o,o.return);break;case 27:(a&2)!==0&&od(o);case 5:o.tag!==5&&o.tag!==27||nd(o),ta(l,o,a),d&&i===null&&c&4&&Pr(o),ua(o,o.return);break;case 6:nd(o);break;case 26:y=o.stateNode,o.memoizedState!==null||y===null||ot||$u(wl(y.ownerDocument),o.type,y),ta(l,o,a),d&&i===null&&c&4&&Pr(o),ua(o,o.return);break;case 12:ta(l,o,a);break;case 31:ta(l,o,a),d&&c&4&&vd(l,o);break;case 13:ta(l,o,a),d&&c&4&&bd(l,o);break;case 22:o.memoizedState===null&&ta(l,o,a),ua(o,o.return);break;case 30:ta(l,o,a),ua(o,o.return);break;case 7:ua(o,o.return);default:ta(l,o,a)}t=t.sibling}}function hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Fn(a))}function du(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fn(e))}function Kt(e,t,a,i){var l=(a&335544064)===a;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)Dd(e,t,a,i),t=t.sibling;else l&&fd(t)}function Dd(e,t,a,i){var l=(a&335544064)===a;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yo(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,i),o&2048&&ul(9,t);break;case 1:Kt(e,t,a,i);break;case 3:Kt(e,t,a,i),l&&uu&&(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&&Fn(o)));break;case 12:if(o&2048){Kt(e,t,a,i),o=t.stateNode;try{var c=t.memoizedProps,d=c.id,y=c.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(k){Oe(t,t.return,k)}}else Kt(e,t,a,i);break;case 31:Kt(e,t,a,i);break;case 13:Kt(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?(l&&d!==null&&d.memoizedState===null&&Yo(d),c._visibility&2?Kt(e,t,a,i):hl(e,t)):(l&&d!==null&&d.memoizedState!==null&&Yo(t),c._visibility&2?Kt(e,t,a,i):(c._visibility|=2,dn(e,t,a,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&hu(d,t);break;case 24:Kt(e,t,a,i),o&2048&&du(t.alternate,t);break;case 30:l&&(o=t.alternate,o!==null&&(fa(o.child,!0),fa(t.child,!0))),Kt(e,t,a,i);break;default:Kt(e,t,a,i)}}function dn(e,t,a,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,c=t,d=a,y=i,k=c.flags;switch(c.tag){case 0:case 11:case 15:dn(o,c,d,y,l),ul(8,c);break;case 23:break;case 22:var j=c.stateNode;c.memoizedState!==null?j._visibility&2?dn(o,c,d,y,l):hl(o,c):(j._visibility|=2,dn(o,c,d,y,l)),l&&k&2048&&hu(c.alternate,c);break;case 24:dn(o,c,d,y,l),l&&k&2048&&du(c.alternate,c);break;default:dn(o,c,d,y,l)}t=t.sibling}}function hl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,l=i.flags;switch(i.tag){case 22:hl(a,i),l&2048&&hu(i.alternate,i);break;case 24:hl(a,i),l&2048&&du(i.alternate,i);break;default:hl(a,i)}t=t.sibling}}var Ei=8192;function ji(e,t,a){if(e.subtreeFlags&Ei)for(e=e.child;e!==null;)Ad(e,t,a),e=e.sibling}function Ad(e,t,a){switch(e.tag){case 26:ji(e,t,a),e.flags&Ei&&(e.memoizedState!==null?m1(a,ea,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&qm(a,e)));break;case 5:ji(e,t,a),e.flags&Ei&&(e=e.stateNode,(t&335544128)===t&&qm(a,e));break;case 3:case 4:var i=ea;ea=wl(e.stateNode.containerInfo),ji(e,t,a),ea=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ei,Ei=16777216,ji(e,t,a),Ei=i):ji(e,t,a));break;case 30:if((e.flags&Ei)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,Ot===null&&(Ot=new Map),Ot.set(i,l)}ji(e,t,a);break;default:ji(e,t,a)}}function xd(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 dl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];st=i,Nd(i,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kd(e),e=e.sibling}function kd(e){switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&$a(9,e,e.return);break;case 3:dl(e);break;case 12:dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qo(e)):dl(e);break;default:dl(e)}}function Qo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];st=i,Nd(i,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),Qo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Qo(t));break;default:Qo(t)}e=e.sibling}}function Nd(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:$a(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Fn(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,st=i;else e:for(a=e;st!==null;){i=st;var l=i.sibling,o=i.return;if(gd(i),i===a){st=null;break e}if(l!==null){l.return=o,st=l;break e}st=o}}}var uy={getCacheForType:function(e){var t=ut(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ut(Fe).controller.signal}},cy=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ye=null,Ae=null,Ne=0,Ce=0,Rt=null,Wa=!1,mn=!1,mu=!1,za=0,Je=0,Ia=0,qi=0,Vo=0,Ut=0,pn=0,ml=null,Nt=null,pu=!1,Xo=0,_d=0,Zo=1/0,Ko=null,Pa=null,Ze=0,aa=null,zi=null,pa=0,gu=0,yu=null,Ed=null,gn=null,yn=null,vn=null,pl=0,Jo=null;function Ht(){return(ze&2)!==0&&Ne!==0?Ne&-Ne:ne.T!==null?Nu():qc()}function jd(){if(Ut===0)if((Ne&536870912)===0||De){var e=Gl;Gl<<=1,(Gl&3932160)===0&&(Gl=262144),Ut=e}else Ut=536870912;return e=ct.current,e!==null&&(e.flags|=32),Ut}function bn(e,t){if(t!=null){var a=e.stateNode,i=a.ref;i===null&&(i=a.ref=cm(Sa(e.memoizedProps,a))),yn===null&&(yn=[]),yn.push(t.bind(null,i))}}function _t(e,t,a){(e===Ye&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(wn(e,0),ei(e,Ne,Ut,!1)),Rn(e,a),((ze&2)===0||e!==Ye)&&(e===Ye&&((ze&2)===0&&(qi|=a),Je===4&&ei(e,Ne,Ut,!1)),ga(e))}function qd(e,t,a){if((ze&6)!==0)throw Error(u(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||On(e,t),l=i?dy(e,t):bu(e,t,!0),o=i;do{if(l===0){mn&&!i&&ei(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!fy(a)){l=bu(e,t,!1),o=!1;continue}if(l===2){if(o=t,e.errorRecoveryDisabledLanes&o)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;l=ml;var y=d.current.memoizedState.isDehydrated;if(y&&(wn(d,c).flags|=256),c=bu(d,c,!1),c!==2&&c!==6){if(mu&&!y){d.errorRecoveryDisabledLanes|=o,qi|=o,l=4;break e}o=Nt,Nt=l,o!==null&&(Nt===null?Nt=o:Nt.push.apply(Nt,o))}l=c}if(o=!1,l!==2)continue}}if(l===1){wn(e,0),ei(e,t,0,!0);break}e:{switch(i=e,o=l,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ei(i,t,Ut,!Wa);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(l=Xo+300-Et(),10<l)){if(ei(i,t,Ut,!Wa),Ql(i,0,!0)!==0)break e;pa=t,i.timeoutHandle=Hu(zd.bind(null,i,a,Nt,Ko,pu,t,Ut,qi,pn,Wa,o,"Throttled",-0,0),l);break e}zd(i,a,Nt,Ko,pu,t,Ut,qi,pn,Wa,o,null,-0,0)}}break}while(!0);ga(e)}function zd(e,t,a,i,l,o,c,d,y,k,j,U,A,_){e.timeoutHandle=-1;var J=t.subtreeFlags,oe=(o&335544064)===o;if(U=null,(oe||J&8192||(J&16785408)===16785408)&&(U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},Ot=null,Ad(t,o,U),oe&&(J=U,oe=e.containerInfo,oe=(oe.nodeType===9?oe:oe.ownerDocument).__reactViewTransition,oe!=null&&(J.count++,J.waitingForViewTransition=!0,J=Dl.bind(J),oe.finished.then(J,J))),J=(o&62914560)===o?Xo-Et():(o&4194048)===o?_d-Et():0,J=p1(U,J),J!==null)){pa=o,e.cancelPendingCommit=J(Bd.bind(null,e,t,o,a,i,l,c,d,y,k,j,U,null,A,_)),ei(e,o,c,!k);return}Bd(e,t,o,a,i,l,c,d,y,k,j,U)}function fy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var l=a[i],o=l.getSnapshot;l=l.value;try{if(!Mt(o(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ei(e,t,a,i){t=kc(e,t),t&=~Vo,t&=~qi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var o=31-qt(l),c=1<<o;i[o]=-1,l&=~c}a!==0&&_c(e,a,t)}function $o(){return(ze&6)===0?(gl(0),!1):!0}function vu(){if(Ae!==null){if(Ce===0)var e=Ae.return;else e=Ae,ka=bi=null,kr(e),on=null,Pn=0,e=Ae;for(;e!==null;)td(e.alternate,e),e=e.return;Ae=null}}function wn(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,Oy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pa=0,vu(),Ye=e,Ae=a=Aa(e.current,null),Ne=t,Ce=0,Rt=null,Wa=!1,mn=On(e,t),mu=!1,pn=Ut=Vo=qi=Ia=Je=0,Nt=ml=null,pu=!1,za=kc(e,t),ao(),a}function Md(e,t){be=null,ne.H=_o,t===ln||t===mo?(t=Bf(),Ce=3):t===dr?(t=Bf(),Ce=4):Ce=t===Gr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,Ae===null&&(Je=1,Eo(e,Qt(t,e.current)))}function Cd(){var e=ct.current;return e===null?!0:(Ne&4194048)===Ne?gt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===gt:!1}function Od(){var e=ne.H;return ne.H=_o,e===null?_o:e}function Rd(){var e=ne.A;return ne.A=uy,e}function Fo(){Je=4,Wa||(Ne&4194048)!==Ne&&ct.current!==null||(mn=!0),(Ia&134217727)===0&&(qi&134217727)===0||Ye===null||ei(Ye,Ne,Ut,!1)}function bu(e,t,a){var i=ze;ze|=2;var l=Od(),o=Rd();(Ye!==e||Ne!==t)&&(Ko=null,wn(e,t)),t=!1;var c=Je;e:do try{if(Ce!==0&&Ae!==null){var d=Ae,y=Rt;switch(Ce){case 8:vu(),c=6;break e;case 3:case 2:case 9:case 6:ct.current===null&&(t=!0);var k=Ce;if(Ce=0,Rt=null,Tn(e,d,y,k),a&&mn){c=0;break e}break;default:k=Ce,Ce=0,Rt=null,Tn(e,d,y,k)}}hy(),c=Je;break}catch(j){Md(e,j)}while(!0);return t&&e.shellSuspendCounter++,ka=bi=null,ze=i,ne.H=l,ne.A=o,Ae===null&&(Ye=null,Ne=0,ao()),c}function hy(){for(;Ae!==null;)Ud(Ae)}function dy(e,t){var a=ze;ze|=2;var i=Od(),l=Rd();Ye!==e||Ne!==t?(Ko=null,Zo=Et()+500,wn(e,t)):mn=On(e,t);e:do try{if(Ce!==0&&Ae!==null){t=Ae;var o=Rt;t:switch(Ce){case 1:Ce=0,Rt=null,Tn(e,t,o,1);break;case 2:case 9:if(Hf(o)){Ce=0,Rt=null,Hd(t);break}t=function(){Ce!==2&&Ce!==9||Ye!==e||(Ce=7),ga(e)},o.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Hf(o)?(Ce=0,Rt=null,Hd(t)):(Ce=0,Rt=null,Tn(e,t,o,7));break;case 5:var c=null;switch(Ae.tag){case 26:c=Ae.memoizedState;case 5:case 27:var d=Ae;if(c?Em(c):d.stateNode.complete){Ce=0,Rt=null;var y=d.sibling;if(y!==null)Ae=y;else{var k=d.return;k!==null?(Ae=k,Wo(k)):Ae=null}break t}}Ce=0,Rt=null,Tn(e,t,o,5);break;case 6:Ce=0,Rt=null,Tn(e,t,o,6);break;case 8:vu(),Je=6;break e;default:throw Error(u(462))}}my();break}catch(j){Md(e,j)}while(!0);return ka=bi=null,ne.H=i,ne.A=l,ze=a,Ae!==null?0:(Ye=null,Ne=0,ao(),Je)}function my(){for(;Ae!==null&&!qp();)Ud(Ae)}function Ud(e){var t=Ph(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?Wo(e):Ae=t}function Hd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Zh(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Zh(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:kr(t);var i=t;i===lt&&(De?(ro(i),i.tag===5&&i.stateNode!=null&&(Be=i.stateNode)):(ro(i),De=!0));default:td(a,t),t=Ae=Nf(t,za),t=Ph(a,t,za)}e.memoizedProps=e.pendingProps,t===null?Wo(e):Ae=t}function Tn(e,t,a,i){ka=bi=null,kr(t),on=null,Pn=0;var l=t.return;try{if(ty(e,l,t,a,Ne)){Je=1,Eo(e,Qt(a,e.current)),Ae=null;return}}catch(o){if(l!==null)throw Ae=l,o;Je=1,Eo(e,Qt(a,e.current)),Ae=null;return}t.flags&32768?(De||i===1?e=!0:mn||(Ne&536870912)!==0?e=!1:(Wa=e=!0,(i===2||i===9||i===3||i===6)&&(i=ct.current,i!==null&&i.tag===13&&(i.flags|=16384))),Yd(t,e)):Wo(t)}function Wo(e){var t=e;do{if((t.flags&32768)!==0){Yd(t,Wa);return}e=t.return;var a=ly(t.alternate,t,za);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Je===0&&(Je=5)}function Yd(e,t){do{var a=oy(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);Je=6,Ae=null}function Bd(e,t,a,i,l,o,c,d,y,k,j,U){e.cancelPendingCommit=null;do Io();while(Ze!==0);if((ze&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));e===Ye&&(Ae=Ye=null,Ne=0),zi=t,aa=e,pa=a,yu=l,Ed=i,py(e,t,a,c,d,y,U)}}function py(e,t,a,i,l,o,c){var d=t.lanes|t.childLanes;if(gu=d,d|=er,Gp(e,a,d,i,l,o),yn=null,(a&335544064)===a?(vn=Qg(e),i=10262):(vn=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Ty(Yl,function(){return Du(),null})):(e.callbackNode=null,e.callbackPriority=0),Uo=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=ne.T,ne.T=null,l=he.p,he.p=2,o=ze,ze|=4;try{sy(e,t,a)}finally{ze=o,he.p=l,ne.T=i}}Ze=1,Uo?gn=Gy(c,e.containerInfo,vn,wu,Tu,yy,Su,Du,gy):(wu(),Tu(),Su())}function gy(e){if(Ze!==0){var t=aa.onRecoverableError;t(e,{componentStack:null})}}function yy(){Ze===3&&(Ze=0,Sd(zi,aa),Ze=4)}function wu(){if(Ze===1){Ze=0;var e=aa,t=zi,a=pa,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=ne.T,ne.T=null;var l=he.p;he.p=2;var o=ze;ze|=4;try{fl=Bo=!1,wd(t,e,a),a=Ou;var c=yf(e.containerInfo),d=a.focusedElem,y=a.selectionRange;if(c!==d&&d&&d.ownerDocument&&gf(d.ownerDocument.documentElement,d)){if(y!==null&&$s(d)){var k=y.start,j=y.end;if(j===void 0&&(j=k),"selectionStart"in d)d.selectionStart=k,d.selectionEnd=Math.min(j,d.value.length);else{var U=d.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var _=A.getSelection(),J=d.textContent.length,oe=Math.min(y.start,J),we=y.end===void 0?oe:Math.min(y.end,J);!_.extend&&oe>we&&(c=we,we=oe,oe=c);var x=pf(d,oe),w=pf(d,we);if(x&&w&&(_.rangeCount!==1||_.anchorNode!==x.node||_.anchorOffset!==x.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var N=U.createRange();N.setStart(x.node,x.offset),_.removeAllRanges(),oe>we?(_.addRange(N),_.extend(w.node,w.offset)):(N.setEnd(w.node,w.offset),_.addRange(N))}}}}for(U=[],_=d;_=_.parentNode;)_.nodeType===1&&U.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var R=U[d];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}En=!!Cu,Ou=Cu=null}finally{ze=o,he.p=l,ne.T=i}}e.current=t,Ze=2}}function Tu(){if(Ze===2){Ze=0;var e=aa,t=zi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ne.T,ne.T=null;var i=he.p;he.p=2;var l=ze;ze|=4;try{md(e,t.alternate,t)}finally{ze=l,he.p=i,ne.T=a}}Ze=3}}function Su(){if(Ze===4||Ze===3){Ze=0;var e=gn;gn=null,zp();var t=aa,a=zi,i=pa,l=Ed,o=(i&335544064)===i?10262:10256;if((a.subtreeFlags&o)!==0||(a.flags&o)!==0?Ze=5:(Ze=0,zi=aa=null,Gd(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pa=null),qs(i),a=a.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Cn,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=ne.T,o=he.p,he.p=2,ne.T=null;try{for(var c=t.onRecoverableError,d=0;d<l.length;d++){var y=l[d];c(y.value,{componentStack:y.stack})}}finally{ne.T=a,he.p=o}}if(l=yn,c=vn,vn=null,l!==null&&(yn=null,c===null&&(c=[]),e!==null))for(y=0;y<l.length;y++)a=(0,l[y])(c),a!==void 0&&e.finished.finally(a);(pa&3)!==0&&Io(),ga(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===Jo?pl++:(pl=0,Jo=t):(pl=0,Jo=null),gl(0)}}function Gd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fn(t)))}function Io(){return gn!==null&&(gn.skipTransition(),gn=null),wu(),Tu(),Su(),Du()}function Du(){if(Ze!==5)return!1;var e=aa,t=gu;gu=0;var a=qs(pa),i=ne.T,l=he.p;try{he.p=32>a?32:a,ne.T=null,a=yu,yu=null;var o=aa,c=pa;if(Ze=0,zi=aa=null,pa=0,(ze&6)!==0)throw Error(u(331));var d=ze;if(ze|=4,kd(o.current),Dd(o,o.current,c,a),ze=d,gl(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Cn,o)}catch{}return!0}finally{he.p=l,ne.T=i,Gd(e,t)}}function Ld(e,t,a){t=Qt(a,t),t=Br(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(Rn(e,2),ga(e))}function Oe(e,t,a){if(e.tag===3)Ld(e,e,a);else for(;t!==null;){if(t.tag===3){Ld(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pa===null||!Pa.has(i))){e=Qt(a,e),a=Hh(2),i=Xa(t,a,2),i!==null&&(Yh(a,i,t,e),Rn(i,2),ga(i));break}}t=t.return}}function Au(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new cy;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(a)||(mu=!0,l.add(a),e=vy.bind(null,e,t,a),t.then(e,e))}function vy(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ye===e&&(Ne&a)===a&&((Je===4||Je===3&&(Ne&62914560)===Ne&&300>Et()-Xo)&&(ze&2)===0?wn(e,0):Vo|=a,pn===Ne&&(pn=0)),ga(e)}function Qd(e,t){t===0&&(t=Nc()),e=gi(e,t),e!==null&&(Rn(e,t),ga(e))}function by(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Qd(e,a)}function wy(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Qd(e,a)}function Ty(e,t){return Ns(e,t)}var Sn=null,Dn=null,xu=!1,Po=!1,ku=!1,ti=0;function ga(e){e!==Dn&&e.next===null&&(Dn===null?Sn=Dn=e:Dn=Dn.next=e),Po=!0,xu||(xu=!0,Dy())}function gl(e,t){if(!ku&&Po){ku=!0;do for(var a=!1,i=Sn;i!==null;){if(e!==0){var l=i.pendingLanes;if(l===0)var o=0;else{var c=i.suspendedLanes,d=i.pingedLanes;o=(1<<31-qt(42|e)+1)-1,o&=l&~(c&~d),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Kd(i,o))}else o=Ne,o=Ql(i,i===Ye?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||On(i,o)||(a=!0,Kd(i,o));i=i.next}while(a);ku=!1}}function Sy(){Vd()}function Vd(){Po=xu=!1;var e=0;ti!==0&&Cy()&&(e=ti);for(var t=Et(),a=null,i=Sn;i!==null;){var l=i.next,o=Xd(i,t);o===0?(i.next=null,a===null?Sn=l:a.next=l,l===null&&(Dn=a)):(a=i,(e!==0||(o&3)!==0)&&(Po=!0)),i=l}Ze!==0&&Ze!==5||gl(e),ti!==0&&(ti=0)}function Xd(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var c=31-qt(o),d=1<<c,y=l[c];y===-1?((d&a)===0||(d&i)!==0)&&(l[c]=Bp(d,t)):y<=t&&(e.expiredLanes|=d),o&=~d}if(t=Ye,a=Ne,a=Ql(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&_s(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||On(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&_s(i),qs(a)){case 2:case 8:a=Ac;break;case 32:a=Yl;break;case 268435456:a=xc;break;default:a=Yl}return i=Zd.bind(null,e),a=Ns(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&_s(i),e.callbackPriority=2,e.callbackNode=null,2}function Zd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Io()&&e.callbackNode!==a)return null;var i=Ne;return i=Ql(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(qd(e,i,t),Xd(e,Et()),e.callbackNode!=null&&e.callbackNode===a?Zd.bind(null,e):null)}function Kd(e,t){if(Io())return null;qd(e,t,!0)}function Dy(){Ry(function(){(ze&6)!==0?Ns(Dc,Sy):Vd()})}function Nu(){if(ti===0){var e=Si;e===0&&(e=Bl,Bl<<=1,(Bl&261888)===0&&(Bl=256)),ti=e}return ti}function Jd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jl(e)}function Ay(e,t,a,i,l){if(t==="submit"&&a&&a.stateNode===l){var o=Jd((l[Dt]||null).action),c=i.submitter;c&&(t=(t=c[Dt]||null)?Jd(t.formAction):c.getAttribute("formAction"),t!==null&&(o=t,c=null));var d=new Il("action","action",null,i,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ti!==0){var y=new FormData(l,c);Or(a,{pending:!0,data:y,method:l.method,action:o},null,y)}}else typeof o=="function"&&(d.preventDefault(),y=new FormData(l,c),Or(a,{pending:!0,data:y,method:l.method,action:o},o,y))},currentTarget:l}]})}}for(var _u=0;_u<Ps.length;_u++){var Eu=Ps[_u],xy=Eu.toLowerCase(),ky=Eu[0].toUpperCase()+Eu.slice(1);It(xy,"on"+ky)}It(wf,"onAnimationEnd"),It(Tf,"onAnimationIteration"),It(Sf,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(Og,"onTransitionRun"),It(Rg,"onTransitionStart"),It(Ug,"onTransitionCancel"),It(Df,"onTransitionEnd"),Vi("onMouseEnter",["mouseout","mouseover"]),Vi("onMouseLeave",["mouseout","mouseover"]),Vi("onPointerEnter",["pointerout","pointerover"]),Vi("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="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(" "),Ny=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function $d(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],l=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var c=i.length-1;0<=c;c--){var d=i[c],y=d.instance,k=d.currentTarget;if(d=d.listener,y!==o&&l.isPropagationStopped())break e;o=d,l.currentTarget=k;try{o(l)}catch(j){to(j)}l.currentTarget=null,o=y}else for(c=0;c<i.length;c++){if(d=i[c],y=d.instance,k=d.currentTarget,d=d.listener,y!==o&&l.isPropagationStopped())break e;o=d,l.currentTarget=k;try{o(l)}catch(j){to(j)}l.currentTarget=null,o=y}}}}function xe(e,t){var a=t[Mc];a===void 0&&(a=t[Mc]=new Set);var i=e+"__bubble";a.has(i)||(Fd(t,e,2,!1),a.add(i))}function ju(e,t,a){var i=0;t&&(i|=4),Fd(a,e,i,t)}var es="_reactListening"+Math.random().toString(36).slice(2);function qu(e){if(!e[es]){e[es]=!0,Rc.forEach(function(a){a!=="selectionchange"&&(Ny.has(a)||ju(a,!1,e),ju(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[es]||(t[es]=!0,ju("selectionchange",!1,t))}}function Fd(e,t,a,i){switch(Ym(t)){case 2:var l=b1;break;case 8:l=w1;break;default:l=Wu}a=l.bind(null,t,a,e),l=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function zu(e,t,a,i,l){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var c=i.tag;if(c===3||c===4){var d=i.stateNode.containerInfo;if(d===l)break;if(c===4)for(c=i.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===l)return;c=c.return}for(;d!==null;){if(c=hi(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){i=o=c;continue e}d=d.parentNode}}i=i.return}$c(function(){var k=o,j=Us(a),U=[];e:{var A=Af.get(e);if(A!==void 0){var _=Il,J=e;switch(e){case"keypress":if(Fl(a)===0)break e;case"keydown":case"keyup":_=fg;break;case"focusin":J="focus",_=Qs;break;case"focusout":J="blur",_=Qs;break;case"beforeblur":case"afterblur":_=Qs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=gg;break;case wf:case Tf:case Sf:_=ag;break;case Df:_=vg;break;case"scroll":case"scrollend":_=Wp;break;case"wheel":_=wg;break;case"copy":case"cut":case"paste":_=ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=ef;break;case"submit":_=mg;break;case"toggle":case"beforetoggle":_=Sg}var oe=(t&4)!==0,we=!oe&&(e==="scroll"||e==="scrollend"),x=oe?A!==null?A+"Capture":null:A;oe=[];for(var w=k,N;w!==null;){var R=w;if(N=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||N===null||x===null||(R=Yn(w,x),R!=null&&oe.push(vl(w,R,N))),we)break;w=w.return}0<oe.length&&(A=new _(A,J,null,a,j),U.push({event:A,listeners:oe}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",_&&a!==Rs&&(J=a.relatedTarget||a.fromElement)&&(hi(J)||J[Gi]))break e;(A||_)&&(J=j.window===j?j:(_=j.ownerDocument)?_.defaultView||_.parentWindow:window,A?(_=a.relatedTarget||a.toElement,A=k,_=_?hi(_):null,_!==null&&(we=m(_),oe=_.tag,_!==we||oe!==5&&oe!==27&&oe!==6)&&(_=null)):(A=null,_=k),A!==_&&(oe=Ic,R="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(oe=ef,R="onPointerLeave",x="onPointerEnter",w="pointer"),we=A==null?J:Hn(A),N=_==null?J:Hn(_),J=new oe(R,w+"leave",A,a,j),J.target=we,J.relatedTarget=N,R=null,hi(j)===k&&(oe=new oe(x,w+"enter",_,a,j),oe.target=N,oe.relatedTarget=we,R=oe),we=R,oe=A&&_?B(A,_,_y):null,A!==null&&Wd(U,J,A,oe,!1),_!==null&&we!==null&&Wd(U,we,_,oe,!0)))}e:{if(A=k?Hn(k):window,_=A.nodeName&&A.nodeName.toLowerCase(),_==="select"||_==="input"&&A.type==="file")var ae=uf;else if(sf(A))if(cf)ae=zg;else{ae=jg;var _e=Eg}else _=A.nodeName,!_||_.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?k&&Os(k.elementType)&&(ae=uf):ae=qg;if(ae&&(ae=ae(e,k))){rf(U,ae,a,j);break e}_e&&_e(e,A,k)}switch(_e=k?Hn(k):window,e){case"focusin":(sf(_e)||_e.contentEditable==="true")&&(Fi=_e,Fs=k,Kn=null);break;case"focusout":Kn=Fs=Fi=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,vf(U,a,j);break;case"selectionchange":if(Cg)break;case"keydown":case"keyup":vf(U,a,j)}var ce;if(Xs)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else $i?lf(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(tf&&a.locale!=="ko"&&($i||me!=="onCompositionStart"?me==="onCompositionEnd"&&$i&&(ce=Fc()):(Ra=j,Bs="value"in Ra?Ra.value:Ra.textContent,$i=!0)),_e=ts(k,me),0<_e.length&&(me=new Pc(me,e,null,a,j),U.push({event:me,listeners:_e}),ce?me.data=ce:(ce=of(a),ce!==null&&(me.data=ce)))),(ce=Ag?xg(e,a):kg(e,a))&&(me=ts(k,"onBeforeInput"),0<me.length&&(_e=new Pc("onBeforeInput","beforeinput",null,a,j),U.push({event:_e,listeners:me}),_e.data=ce)),Ay(U,e,k,a,j)}$d(U,t)})}function vl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ts(e,t){for(var a=t+"Capture",i=[];e!==null;){var l=e,o=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=Yn(e,a),l!=null&&i.unshift(vl(e,l,o)),l=Yn(e,t),l!=null&&i.push(vl(e,l,o))),e.tag===3)return i;e=e.return}return[]}function _y(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wd(e,t,a,i,l){for(var o=t._reactName,c=[];a!==null&&a!==i;){var d=a,y=d.alternate,k=d.stateNode;if(d=d.tag,y!==null&&y===i)break;d!==5&&d!==26&&d!==27||k===null||(y=k,l?(k=Yn(a,o),k!=null&&c.unshift(vl(a,k,y))):l||(k=Yn(a,o),k!=null&&c.push(vl(a,k,y)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var Ey=/\r\n?/g,jy=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(Ey,`
|
|
9
|
-
`).replace(jy,"")}function Pd(e,t){return t=Id(t),Id(e)===t}function Re(e,t,a,i,l,o){switch(a){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Zi(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Zi(e,""+i);else return;break;case"className":Kl(e,"class",i);break;case"tabIndex":Kl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Kl(e,a,i);break;case"style":Kc(e,i,o);return;case"data":if(t!=="object"){Kl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Jl(i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",l.name,l,null),Re(e,t,"formEncType",l.formEncType,l,null),Re(e,t,"formMethod",l.formMethod,l,null),Re(e,t,"formTarget",l.formTarget,l,null)):(Re(e,t,"encType",l.encType,l,null),Re(e,t,"method",l.method,l,null),Re(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Jl(i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=oa);return;case"onScroll":i!=null&&xe("scroll",e);return;case"onScrollEnd":i!=null&&xe("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(l.children!=null)throw Error(u(60));o?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Jl(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Zl(e,"popover",i);break;case"xlinkActuate":wa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":wa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":wa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":wa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":wa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":wa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":wa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":wa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":wa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Zl(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=$p.get(a)||a,Zl(e,a,i);else return}je=!0}function Mu(e,t,a,i,l,o){switch(a){case"style":Kc(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(l.children!=null)throw Error(u(60));o?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof i=="string")Zi(e,i);else if(typeof i=="number"||typeof i=="bigint")Zi(e,""+i);else return;break;case"onScroll":i!=null&&xe("scroll",e);return;case"onScrollEnd":i!=null&&xe("scrollend",e);return;case"onClick":i!=null&&(e.onclick=oa);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Uc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),o=a.slice(2,l?a.length-7:void 0),t=e[Dt]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(o,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(o,i,l);break e}je=!0,a in e?e[a]=i:i===!0?e.setAttribute(a,""):Zl(e,a,i)}return}je=!0}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var i=!1,l=!1,o;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Re(e,t,o,c,a,null)}}l&&Re(e,t,"srcSet",a.srcSet,a,null),i&&Re(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var d=o=c=l=null,y=null,k=null;for(i in a)if(a.hasOwnProperty(i)){var j=a[i];if(j!=null)switch(i){case"name":l=j;break;case"type":c=j;break;case"checked":y=j;break;case"defaultChecked":k=j;break;case"value":o=j;break;case"defaultValue":d=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:Re(e,t,i,j,a,null)}}Qc(e,o,d,y,k,c,l,!1);return;case"select":xe("invalid",e),i=c=o=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":o=d;break;case"defaultValue":c=d;break;case"multiple":i=d;default:Re(e,t,l,d,a,null)}t=o,a=c,e.multiple=!!i,t!=null?Xi(e,!!i,t,!1):a!=null&&Xi(e,!!i,a,!0);return;case"textarea":xe("invalid",e),o=l=i=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":i=d;break;case"defaultValue":l=d;break;case"children":o=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(u(91));break;default:Re(e,t,c,d,a,null)}Xc(e,i,l,o);return;case"option":for(y in a)a.hasOwnProperty(y)&&(i=a[y],i!=null)&&(y==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Re(e,t,y,i,a,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(i=0;i<yl.length;i++)xe(yl[i],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(k in a)if(a.hasOwnProperty(k)&&(i=a[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Re(e,t,k,i,a,null)}return;default:if(Os(t)){for(j in a)a.hasOwnProperty(j)&&(i=a[j],i!==void 0&&Mu(e,t,j,i,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(i=a[d],i!=null&&Re(e,t,d,i,a,null))}var qy={};function zy(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,c=null,d=null,y=null,k=null,j=null;for(_ in a){var U=a[_];if(a.hasOwnProperty(_)&&U!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=U;default:i.hasOwnProperty(_)||Re(e,t,_,null,i,U)}}for(var A in i){var _=i[A];if(U=a[A],i.hasOwnProperty(A)&&(_!=null||U!=null))switch(A){case"type":_!==U&&(je=!0),o=_;break;case"name":_!==U&&(je=!0),l=_;break;case"checked":_!==U&&(je=!0),k=_;break;case"defaultChecked":_!==U&&(je=!0),j=_;break;case"value":_!==U&&(je=!0),c=_;break;case"defaultValue":_!==U&&(je=!0),d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:_!==U&&Re(e,t,A,_,i,U)}}Ms(e,c,d,y,k,j,o,l);return;case"select":_=c=d=A=null;for(o in a)if(y=a[o],a.hasOwnProperty(o)&&y!=null)switch(o){case"value":break;case"multiple":_=y;default:i.hasOwnProperty(o)||Re(e,t,o,null,i,y)}for(l in i)if(o=i[l],y=a[l],i.hasOwnProperty(l)&&(o!=null||y!=null))switch(l){case"value":o!==y&&(je=!0),A=o;break;case"defaultValue":o!==y&&(je=!0),d=o;break;case"multiple":o!==y&&(je=!0),c=o;default:o!==y&&Re(e,t,l,o,i,y)}t=d,a=c,i=_,A!=null?Xi(e,!!a,A,!1):!!i!=!!a&&(t!=null?Xi(e,!!a,t,!0):Xi(e,!!a,a?[]:"",!1));return;case"textarea":_=A=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!i.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Re(e,t,d,null,i,l)}for(c in i)if(l=i[c],o=a[c],i.hasOwnProperty(c)&&(l!=null||o!=null))switch(c){case"value":l!==o&&(je=!0),A=l;break;case"defaultValue":l!==o&&(je=!0),_=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(u(91));break;default:l!==o&&Re(e,t,c,l,i,o)}Vc(e,A,_);return;case"option":for(var J in a)A=a[J],a.hasOwnProperty(J)&&A!=null&&!i.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Re(e,t,J,null,i,A));for(y in i)A=i[y],_=a[y],i.hasOwnProperty(y)&&A!==_&&(A!=null||_!=null)&&(y==="selected"?(A!==_&&(je=!0),e.selected=A&&typeof A!="function"&&typeof A!="symbol"):Re(e,t,y,A,i,_));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 oe in a)A=a[oe],a.hasOwnProperty(oe)&&A!=null&&!i.hasOwnProperty(oe)&&Re(e,t,oe,null,i,A);for(k in i)if(A=i[k],_=a[k],i.hasOwnProperty(k)&&A!==_&&(A!=null||_!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(u(137,t));break;default:Re(e,t,k,A,i,_)}return;default:if(Os(t)){for(var we in a)A=a[we],a.hasOwnProperty(we)&&A!==void 0&&!i.hasOwnProperty(we)&&Mu(e,t,we,void 0,i,A);for(j in i)A=i[j],_=a[j],!i.hasOwnProperty(j)||A===_||A===void 0&&_===void 0||Mu(e,t,j,A,i,_);return}}for(var x in a)A=a[x],a.hasOwnProperty(x)&&A!=null&&!i.hasOwnProperty(x)&&Re(e,t,x,null,i,A);for(U in i)A=i[U],_=a[U],!i.hasOwnProperty(U)||A===_||A==null&&_==null||Re(e,t,U,A,i,_)}function em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function My(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var l=a[i],o=l.transferSize,c=l.initiatorType,d=l.duration;if(o&&d&&em(c)){for(c=0,d=l.responseEnd,i+=1;i<a.length;i++){var y=a[i],k=y.startTime;if(k>d)break;var j=y.transferSize,U=y.initiatorType;j&&em(U)&&(y=y.responseEnd,c+=j*(y<d?1:(d-k)/(y-k)))}if(--i,t+=8*(o+c)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cu=null,Ou=null;function bl(e){return e.nodeType===9?e:e.ownerDocument}function tm(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 am(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 im(e,t,a,i){return a=bl(a).createElement(e),a[rt]=i,a[Dt]=t,dt(a,e,t),nt(a),a}function Ru(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 Uu=null;function Cy(){var e=window.event;return e&&e.type==="popstate"?e===Uu?!1:(Uu=e,!0):(Uu=null,!1)}var Hu=typeof setTimeout=="function"?setTimeout:void 0,Oy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,lm=typeof requestAnimationFrame=="function"?requestAnimationFrame:Hu,Ry=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Uy)}:Hu;function Uy(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function om(e,t){var a=t,i=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(l),jn(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Zu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Zu(a);for(var o=a.firstChild;o;){var c=o.nextSibling,d=o.nodeName;o[Un]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=c}}else a==="body"&&Zu(e.ownerDocument.body);a=l}while(a);jn(t)}function sm(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function rm(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var o=t[l];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function um(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Hy(e,t,a){return a=a.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<=a.innerHeight&&e.left<=a.innerWidth}}function Yu(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return Hy(t,a,e)}function Yy(e){return e.documentElement.clientHeight}function By(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Gy(e,t,a,i,l,o,c,d,y){var k=t.nodeType===9?t:t.ownerDocument;try{var j=k.startViewTransition({update:function(){var A=k.defaultView,_=A.navigation&&A.navigation.transition,J=k.fonts.status;i();var oe=[];if(J==="loaded"&&(Yy(k),k.fonts.status==="loading"&&oe.push(k.fonts.ready)),J=oe.length,e!==null)for(var we=e.suspenseyImages,x=0,w=0;w<we.length;w++){var N=we[w];if(!N.complete){var R=N.getBoundingClientRect();if(0<R.bottom&&0<R.right&&R.top<A.innerHeight&&R.left<A.innerWidth){if(x+=jm(N),x>ns){oe.length=J;break}N=new Promise(By.bind(N)),oe.push(N)}}}if(0<oe.length)return A=Promise.race([Promise.all(oe),new Promise(function(ae){return setTimeout(ae,500)})]).then(l,l),(_?Promise.allSettled([_.finished,A]):A).then(o,o);if(l(),_)return _.finished.then(o,o);o()},types:a});k.__reactViewTransition=j;var U=[];return j.ready.then(function(){for(var A=k.documentElement.getAnimations({subtree:!0}),_=0;_<A.length;_++){var J=A[_],oe=J.effect,we=oe.pseudoElement;if(we!=null&&we.startsWith("::view-transition")){U.push(J),J=oe.getKeyframes();for(var x=we=void 0,w=!0,N=0;N<J.length;N++){var R=J[N],ae=R.width;if(we===void 0)we=ae;else if(we!==ae){w=!1;break}if(ae=R.height,x===void 0)x=ae;else if(x!==ae){w=!1;break}delete R.width,delete R.height,R.transform==="none"&&delete R.transform}w&&we!==void 0&&x!==void 0&&(oe.setKeyframes(J),w=getComputedStyle(oe.target,oe.pseudoElement),w.width!==we||w.height!==x)&&(w=J[0],w.width=we,w.height=x,w=J[J.length-1],w.width=we,w.height=x,oe.setKeyframes(J))}}c()},function(A){k.__reactViewTransition===j&&(k.__reactViewTransition=null);try{typeof A=="object"&&A!==null&&A.name==="InvalidStateError"&&(A.message==="View transition was skipped because document visibility state is hidden."||A.message==="Skipping view transition because document visibility state has become hidden."||A.message==="Skipping view transition because viewport size changed."||A.message==="Transition was aborted because of invalid state")&&(A=null),A!==null&&y(A)}finally{i(),l(),c()}}),j.finished.finally(function(){for(var A=0;A<U.length;A++)U[A].cancel();k.__reactViewTransition===j&&(k.__reactViewTransition=null),d()}),j}catch{return i(),l(),c(),null}}function Mi(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Mi.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:G({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Mi.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),i=[],l=0;l<a.length;l++){var o=a[l].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(a[l])}return i},Mi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function cm(e){return{name:e,group:new Mi("group",e),imagePair:new Mi("image-pair",e),old:new Mi("old",e),new:new Mi("new",e)}}function Yt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Yt.prototype.addEventListener=function(e,t,a){var i=null,l=null;if(!(a!=null&&typeof a!="boolean"&&(i=a.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(hm(o,e,t,a)===-1){var c=this,d=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(d=function(y){c.removeEventListener(e,t,a),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),i!==null&&(l=c.removeEventListener.bind(c,e,t,a),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=An(a),o.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:d,cleanup:l}),p(this._fragmentFiber.child,!1,Ly,e,d,i)}this._eventListeners=o}};function Ly(e,t,a,i){return O(e).addEventListener(t,a,i),!1}Yt.prototype.removeEventListener=function(e,t,a){var i=this._eventListeners;if(i!==null&&(t=hm(i,e,t,a),t!==-1)){var l=i[t];a=l.attachedListener;var o=l.cleanup;l=An(l.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Qy,e,a,l),i.splice(t,1),o!==null&&o()}};function Qy(e,t,a,i){return O(e).removeEventListener(t,a,i),!1}function An(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function fm(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function hm(e,t,a,i){if(e.length===0)return-1;i=fm(i);for(var l=0;l<e.length;l++){var o=e[l];if(o.type===t&&o.listener===a&&fm(o.optionsOrUseCapture)===i)return l}return-1}Yt.prototype.dispatchEvent=function(e){var t=D(this._fragmentFiber);if(t===null)return!0;t=O(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var l=0;l<a.length;l++){var o=a[l];i.addEventListener(o.type,o.attachedListener,An(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),a)for(l=0;l<a.length;l++)o=a[l],i.removeEventListener(o.type,o.attachedListener,An(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)},Yt.prototype.focus=function(e){p(this._fragmentFiber.child,!0,dm,e,void 0,void 0)};function dm(e,t){return e.tag===6?!1:(e=O(e),t1(e,t))}Yt.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Bu,t,void 0,void 0);for(var a=t.length-1;0<=a&&!dm(t[a],e);a--);};function Bu(e,t){return t.push(e),!1}Yt.prototype.blur=function(){var e=D(this._fragmentFiber);e!==null&&(e=O(e),e=bl(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Vy,e,void 0,void 0))};function Vy(e,t){return e.tag===6?!1:(e=O(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Yt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Xy,e,void 0,void 0)};function Xy(e,t){return e.tag===6||(e=O(e),t.observe(e)),!1}Yt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Zy,e,void 0,void 0);for(var a=t=0;a<ia.length;a++){var i=ia[a];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):ia[t++]=i}ia.length=t}};function Zy(e,t){return e.tag===6||(e=O(e),t.unobserve(e)),!1}var ia=[],Gu=!1;function Ky(e,t,a){ia.push({fragmentInstance:e,observer:t,instance:a}),Gu||(Gu=!0,a1(function(){Gu=!1;var i=ia;ia=[];for(var l=0;l<i.length;l++){var o=i[l];o.observer.unobserve(o.instance)}}))}Yt.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Jy,e,void 0,void 0),e};function Jy(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=O(e),t.push.apply(t,e.getClientRects());return!1}Yt.prototype.getRootNode=function(e){var t=D(this._fragmentFiber);return t===null?this:O(t).getRootNode(e)},Yt.prototype.compareDocumentPosition=function(e){var t=D(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];p(this._fragmentFiber.child,!1,Bu,a,void 0,void 0);var i=O(t);if(a.length===0){if(a=i,M(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&&(a=t)}t=this._fragmentFiber;var l=i=a.compareDocumentPosition(e);return a===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=C(t)[1],a===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=O(a).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=O(a[0]),l=O(a[a.length-1]);var o=M(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var c=t.compareDocumentPosition(e),d=l.compareDocumentPosition(e),y=c&Node.DOCUMENT_POSITION_CONTAINED_BY||d&Node.DOCUMENT_POSITION_CONTAINED_BY;return d=i&&o&&c&Node.DOCUMENT_POSITION_FOLLOWING&&d&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&l===e||y||d?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:c,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$y(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $y(e,t,a,i,l){var o=hi(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){a=!0;break e}o=o.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=l.ownerDocument,l===o||l===o.documentElement||l===o.body;e:{for(o=t,t=D(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===a)&&(t=B(a,o,V),t===null?t=!1:(p(t,!0,F,o,a),o=H,H=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=B(i,o,V),t===null?t=!1:(p(t,!0,$,o,i),o=H,Q=H=null,t=o!==null)),t):!1}function mm(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Yt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(u(566));var t=[];p(this._fragmentFiber.child,!1,Bu,t,void 0,void 0);var a=e!==!1;if(t.length===0){var i=C(this._fragmentFiber);if(i=a?i[1]||i[0]||D(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=O(i),mm(e,a);return}if(i=O(i),i.nodeType!==9){if(i.nodeType===11){a="host"in i?i.host:null,a!==null&&a.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=a?t.length-1:0;i!==(a?-1:t.length);){var l=t[i];l.tag===6?(l=O(l),mm(l,a)):O(l).scrollIntoView(e),i+=a?-1:1}};function Fy(e,t){return e=O(e),pm(e,t),!1}function pm(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function gm(e,t){var a=t._eventListeners;if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];e.addEventListener(l.type,l.attachedListener,An(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(o){for(var c=0,d=0;d<ia.length;d++){var y=ia[d];(y.fragmentInstance!==t||y.observer!==o||y.instance!==e)&&(ia[c++]=y)}ia.length=c,o.observe(e)}),pm(e,t))}function Wy(e,t){var a=t._eventListeners;if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];e.removeEventListener(l.type,l.attachedListener,An(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(o){typeof o.rootMargin=="string"?Ky(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Lu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lu(a),Xl(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Iy(e,t,a,i){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Un])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!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function Py(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Jt(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function Qu(e){return e.data==="$?"||e.data==="$~"}function Vu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function e1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Jt(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 Xu=null;function vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function t1(e,t){function a(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return i}function a1(e){lm(function(){lm(function(t){return e(t)})})}function wm(e,t,a){switch(t=bl(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Tm(e,t,a){for(var i in a){var l=a[i];a.hasOwnProperty(i)&&l!=null&&Re(e,t,i,null,qy,l)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===oa&&(e.onclick=null),Xl(e)}function Zu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xl(e)}var $t=new Map,Sm=new Set;function wl(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 Ma=he.d;he.d={f:i1,r:n1,D:l1,C:o1,L:s1,m:r1,X:c1,S:u1,M:f1};function i1(){var e=Ma.f(),t=$o();return e||t}function n1(e){var t=Li(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Ma.r(e)}var xn=typeof document>"u"?null:document;function Dm(e,t,a){var i=xn;if(i&&typeof t=="string"&&t){var l=Gt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Sm.has(l)||(Sm.add(l),e={rel:e,crossOrigin:a,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),nt(t),i.head.appendChild(t)))}}function l1(e){Ma.D(e),Dm("dns-prefetch",e,null)}function o1(e,t){Ma.C(e,t),Dm("preconnect",e,t)}function s1(e,t,a){Ma.L(e,t,a);var i=xn;if(i&&e&&t){var l='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Gt(a.imageSizes)+'"]')):l+='[href="'+Gt(e)+'"]';var o=l;switch(t){case"style":o=kn(e);break;case"script":o=Nn(e)}if(!($t.has(o)||(e=G({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(o,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(Tl(o))||t==="script"&&i.querySelector(Sl(o))))){var c=i.createElement("link");dt(c,"link",e),t==="style"&&(c[Vl]=!0,c.onload=c.onerror=function(){Oc(c)}),nt(c),i.head.appendChild(c)}}}function r1(e,t){Ma.m(e,t);var a=xn;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Gt(i)+'"][href="'+Gt(e)+'"]',o=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Nn(e)}if(!$t.has(o)&&(e=G({rel:"modulepreload",href:e},t),$t.set(o,e),a.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Sl(o)))return}i=a.createElement("link"),dt(i,"link",e),nt(i),a.head.appendChild(i)}}}function u1(e,t,a){Ma.S(e,t,a);var i=xn;if(i&&e){var l=Qi(i).hoistableStyles,o=kn(e);t=t||"default";var c=l.get(o);if(!c){var d={loading:0,preload:null};if(c=i.querySelector(Tl(o)))d.loading=5;else{e=G({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(o))&&Ku(e,a);var y=c=i.createElement("link");nt(y),dt(y,"link",e),y._p=new Promise(function(k,j){y.onload=k,y.onerror=j}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,as(c,t,i)}c={type:"stylesheet",instance:c,count:1,state:d},l.set(o,c)}}}function c1(e,t){Ma.X(e,t);var a=xn;if(a&&e){var i=Qi(a).hoistableScripts,l=Nn(e),o=i.get(l);o||(o=a.querySelector(Sl(l)),o||(e=G({src:e,async:!0},t),(t=$t.get(l))&&Ju(e,t),o=a.createElement("script"),nt(o),dt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(l,o))}}function f1(e,t){Ma.M(e,t);var a=xn;if(a&&e){var i=Qi(a).hoistableScripts,l=Nn(e),o=i.get(l);o||(o=a.querySelector(Sl(l)),o||(e=G({src:e,async:!0,type:"module"},t),(t=$t.get(l))&&Ju(e,t),o=a.createElement("script"),nt(o),dt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(l,o))}}function Am(e,t,a,i){var l=(l=va.current)?wl(l):null;if(!l)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=kn(a.href),t=Qi(l).hoistableStyles,i=t.get(a),i||(i={type:"style",instance:null,count:0,state:null},t.set(a,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=kn(a.href);var o=Qi(l).hoistableStyles,c=o.get(e);if(c||(l=l.ownerDocument||l,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,c),(o=l.querySelector(Tl(e)))?o._p||(c.instance=o,c.state.loading=5):(o=$t.get(e),o||(o={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,o)),h1(l,e,o,c.state))),t&&i===null)throw Error(u(528,""));return c}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Nn(a),t=Qi(l).hoistableScripts,i=t.get(a),i||(i={type:"script",instance:null,count:0,state:null},t.set(a,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function kn(e){return'href="'+Gt(e)+'"'}function Tl(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return G({},e,{"data-precedence":e.precedence,precedence:null})}function h1(e,t,a,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Vl]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[Vl]=!0,t.onload=t.onerror=Oc.bind(null,t),dt(t,"link",a),nt(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Nn(e){return'[src="'+Gt(e)+'"]'}function Sl(e){return"script[async]"+e}function km(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(i)return t.instance=i,nt(i),i;var l=G({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),nt(i),dt(i,"style",l),as(i,a.precedence,e),t.instance=i;case"stylesheet":l=kn(a.href);var o=e.querySelector(Tl(l));if(o)return t.state.loading|=4,t.instance=o,nt(o),o;i=xm(a),(l=$t.get(l))&&Ku(i,l),o=(e.ownerDocument||e).createElement("link"),nt(o);var c=o;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),dt(o,"link",i),t.state.loading|=4,as(o,a.precedence,e),t.instance=o;case"script":return o=Nn(a.src),(l=e.querySelector(Sl(o)))?(t.instance=l,nt(l),l):(i=a,(l=$t.get(o))&&(i=G({},a),Ju(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),nt(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,as(i,a.precedence,e));return t.instance}function as(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,o=l,c=0;c<i.length;c++){var d=i[c];if(d.dataset.precedence===t)o=d;else if(o!==l)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var is=null;function Nm(e,t,a){if(is===null){var i=new Map,l=is=new Map;l.set(a,i)}else l=is,i=l.get(a),i||(i=new Map,l.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var o=a[l];if(!(o[Un]||o[rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var c=o.getAttribute(t)||"";c=e+c;var d=i.get(c);d?d.push(o):i.set(c,[o])}}return i}function $u(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function d1(e,t,a){if(a===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 _m(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function qm(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=jm(t),e.suspenseyImages.push(t)),e=g1.bind(e),t.decode().then(e,e))}function m1(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=kn(i.href),o=t.querySelector(Tl(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dl.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,nt(o);return}o=t.ownerDocument||t,i=xm(i),(l=$t.get(l))&&Ku(i,l),o=o.createElement("link"),nt(o);var c=o;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),dt(o,"link",i),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Dl.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ns=0;function p1(e,t){return e.stylesheets&&e.count===0&&os(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&os(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ns===0&&(ns=62500*My());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&os(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ns?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function zm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)os(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Dl(){this.count--,zm(this)}function g1(){this.imgCount--,zm(this)}var ls=null;function os(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ls=new Map,t.forEach(y1,e),ls=null,Dl.call(e))}function y1(e,t){if(!(t.state.loading&4)){var a=ls.get(e);if(a)var i=a.get(null);else{a=new Map,ls.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var c=l[o];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),i=c)}i&&a.set(null,i)}l=t.instance,c=l.getAttribute("data-precedence"),o=a.get(c)||i,o===i&&a.set(null,l),a.set(c,l),this.count++,i=Dl.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),o?o.parentNode.insertBefore(l,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var _n={$$typeof:se,Provider:null,Consumer:null,_currentValue:pt,_currentValue2:pt,_threadCount:0};function v1(e,t,a,i,l,o,c,d,y){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=Es(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Es(0),this.hiddenUpdates=Es(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function Mm(e,t,a,i,l,o,c,d,y,k,j,U){return e=new v1(e,t,a,c,y,k,j,U,d),t=1,o===!0&&(t|=24),o=At(3,null,null,t),e.current=o,o.stateNode=e,t=cr(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},mr(o),e}function Cm(e){return e?(e=Pi,e):Pi}function Om(e,t,a,i,l,o){l=Cm(l),i.context===null?i.context=l:i.pendingContext=l,i=Va(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=Xa(e,i,t),a!==null&&(_t(a,e,t),el(a,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fu(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=gi(e,67108864);t!==null&&_t(t,e,67108864),Fu(e,67108864)}}function Hm(e){if(e.tag===13||e.tag===31){var t=Ht();t=js(t);var a=gi(e,t);a!==null&&_t(a,e,t),Fu(e,t)}}var En=!0;function b1(e,t,a,i){var l=ne.T;ne.T=null;var o=he.p;try{he.p=2,Wu(e,t,a,i)}finally{he.p=o,ne.T=l}}function w1(e,t,a,i){var l=ne.T;ne.T=null;var o=he.p;try{he.p=8,Wu(e,t,a,i)}finally{he.p=o,ne.T=l}}function Wu(e,t,a,i){if(En){var l=Iu(i);if(l===null)zu(e,t,i,ss,a),Bm(e,i);else if(S1(l,e,t,a,i))i.stopPropagation();else if(Bm(e,i),t&4&&-1<T1.indexOf(e)){for(;l!==null;){var o=Li(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var c=fi(o.pendingLanes);if(c!==0){var d=o;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-qt(c);d.entanglements[1]|=y,c&=~y}ga(o),(ze&6)===0&&(Zo=Et()+500,gl(0))}}break;case 31:case 13:d=gi(o,2),d!==null&&_t(d,o,2),$o(),Fu(o,2)}if(o=Iu(i),o===null&&zu(e,t,i,ss,a),o===l)break;l=o}l!==null&&i.stopPropagation()}else zu(e,t,i,null,a)}}function Iu(e){return e=Us(e),Pu(e)}var ss=null;function Pu(e){if(ss=null,e=hi(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ss=e,null}function Ym(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(Mp()){case Dc:return 2;case Ac:return 8;case Yl:case Cp:return 32;case xc:return 268435456;default:return 32}default:return 32}}var ec=!1,ii=null,ni=null,li=null,Al=new Map,xl=new Map,oi=[],T1="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 Bm(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(t.pointerId)}}function kl(e,t,a,i,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Li(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function S1(e,t,a,i,l){switch(t){case"focusin":return ii=kl(ii,e,t,a,i,l),!0;case"dragenter":return ni=kl(ni,e,t,a,i,l),!0;case"mouseover":return li=kl(li,e,t,a,i,l),!0;case"pointerover":var o=l.pointerId;return Al.set(o,kl(Al.get(o)||null,e,t,a,i,l)),!0;case"gotpointercapture":return o=l.pointerId,xl.set(o,kl(xl.get(o)||null,e,t,a,i,l)),!0}return!1}function Gm(e){var t=hi(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,zc(e.priority,function(){Hm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,zc(e.priority,function(){Hm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Iu(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Rs=i,a.target.dispatchEvent(i),Rs=null}else return t=Li(a),t!==null&&Um(t),e.blockedOn=a,!1;t.shift()}return!0}function Lm(e,t,a){rs(e)&&a.delete(t)}function D1(){ec=!1,ii!==null&&rs(ii)&&(ii=null),ni!==null&&rs(ni)&&(ni=null),li!==null&&rs(li)&&(li=null),Al.forEach(Lm),xl.forEach(Lm)}function us(e,t){e.blockedOn===t&&(e.blockedOn=null,ec||(ec=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,D1)))}var cs=null;function Qm(e){cs!==e&&(cs=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){cs===e&&(cs=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Pu(i||a)===null)continue;break}var o=Li(a);o!==null&&(e.splice(t,3),t-=3,Or(o,{pending:!0,data:l,method:a.method,action:i},i,l))}}))}function jn(e){function t(y){return us(y,e)}ii!==null&&us(ii,e),ni!==null&&us(ni,e),li!==null&&us(li,e),Al.forEach(t),xl.forEach(t);for(var a=0;a<oi.length;a++){var i=oi[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<oi.length&&(a=oi[0],a.blockedOn===null);)Gm(a),a.blockedOn===null&&oi.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var l=a[i],o=a[i+1],c=l[Dt]||null;if(typeof o=="function")c||Qm(a);else if(c){var d=null;if(o&&o.hasAttribute("formAction")){if(l=o,c=o[Dt]||null)d=c.formAction;else if(Pu(l)!==null)continue}else d=c.action;typeof d=="function"?a[i+1]=d:(a.splice(i,3),i-=3),Qm(a)}}}function Vm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(c){return l=c})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(a,20)}function a(){if(!i&&!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 i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function tc(e){this._internalRoot=e}fs.prototype.render=tc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,i=Ht();Om(a,i,e,t,null,null)},fs.prototype.unmount=tc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),$o(),t[Gi]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=qc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<oi.length&&t!==0&&t<oi[a].priority;a++);oi.splice(a,0,e),a===0&&Gm(e)}};var Xm=n.version;if(Xm!=="19.3.0")throw Error(u(527,Xm,"19.3.0"));he.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=E(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var A1={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ne,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Cn=hs.inject(A1),jt=hs}catch{}}return _l.createRoot=function(e,t){if(!h(e))throw Error(u(299));var a=!1,i="",l=Ch,o=Oh,c=Rh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Mm(e,1,!1,null,null,a,i,null,l,o,c,Vm),e[Gi]=t.current,qu(e),new tc(t)},_l.hydrateRoot=function(e,t,a){if(!h(e))throw Error(u(299));var i=!1,l="",o=Ch,c=Oh,d=Rh,y=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=Mm(e,1,!0,t,a??null,i,l,y,o,c,d,Vm),t.context=Cm(null),a=t.current,i=Ht(),i=js(i),l=Va(i),l.callback=null,Xa(a,l,i),a=i,t.current.lanes=a,Rn(t,a),ga(t),e[Gi]=t.current,qu(e),new fs(t)},_l.version="19.3.0",_l}var tp;function C1(){if(tp)return nc.exports;tp=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),nc.exports=M1(),nc.exports}var O1=C1();const R1=hp(O1);var rc={exports:{}},uc={};var ap;function U1(){if(ap)return uc;ap=1;var s=bs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return uc.c=function(n){return s.H.useMemoCache(n)},uc}var ip;function H1(){return ip||(ip=1,rc.exports=U1()),rc.exports}var ve=H1();function et(s,n){const r=ve.c(8);let u;r[0]!==n||r[1]!==s.state?(u=()=>n==null?s.state:n(s.state),r[0]=n,r[1]=s.state,r[2]=u):u=r[2];const[h,m]=re.useState(u);let v;r[3]!==n||r[4]!==s?(v=()=>s.createChangeListener(S=>{m(n==null?S:n(S))},!0).dispose,r[3]=n,r[4]=s,r[5]=v):v=r[5];let g;return r[6]!==s?(g=[s],r[6]=s,r[7]=g):g=r[7],re.useEffect(v,g),h}const Ci=Symbol();class mp{_map=new Map;_keys=new Map;constructor(n){if(n!=null)for(const[r,u]of n)this.set(r,u)}set(n,r){let u=this._map;for(let m=0;m<n.length;m++){const v=n[m];let g=u.get(v);g==null&&(g=new Map,u.set(v,g)),u=g}const h=u.has(Ci)?u.get(Ci):n.slice();return this._keys.set(h,r),u.set(Ci,h),this}get(n){let r=this._map;for(let h=0;h<n.length&&r!=null;h++)r=r.get(n[h]);if(r==null)return;const u=r.get(Ci);if(u!=null)return this._keys.get(u)}has(n){let r=this._map;for(let u=0;u<n.length&&r!=null;u++)r=r.get(n[u]);return r!=null&&r.has(Ci)}delete(n){let r=this._map;const u=[];for(let m=0;m<n.length&&r!=null;m++)u.push([r,n[m]]),r=r.get(n[m]);if(r==null)return!1;const h=r.get(Ci);if(h==null)return!1;r.delete(Ci),this._keys.delete(h);for(let m=u.length-1;m>=0;m--){const[v,g]=u[m];if(r.size!==0)break;v.delete(g),r=v}return!0}clear(){this._map.clear(),this._keys.clear()}get size(){return this._keys.size}*entries(){for(const[n,r]of this._keys)yield[n.slice(),r]}*keys(){for(const n of this._keys.keys())yield n.slice()}*values(){for(const n of this._keys.values())yield n}forEach(n,r){for(const[u,h]of this.entries())r!==void 0?n.call(r,h,u,this):n.call(this,h,u,this)}[Symbol.iterator](){return this.entries()}}class ps{_items;_head=0;_compactAt;constructor(n,r){this._compactAt=r?.compactAt??4096,n instanceof ps?this._items=n._items.slice(n._head):this._items=n==null?[]:Array.from(n)}get length(){return this._items.length-this._head}get isEmpty(){return this._head===this._items.length}get first(){if(this._head!==this._items.length)return this._items[this._head]}get last(){if(this._head!==this._items.length)return this._items[this._items.length-1]}push(n){this._items.push(n)}shift(){if(this._head===this._items.length)return;const n=this._items[this._head];return this._items[this._head]=null,this._head++,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),n}enqueue(n){return this.push(n)}dequeue(){return this.shift()}peek(){return this.first}at(n){if(n=Math.trunc(n)||0,n<0&&(n+=this.length),!(n<0||n>=this.length))return this._items[this._head+n]}delete(n,r){const u=this.length;if(n=Math.trunc(n)||0,n<0?n=Math.max(u+n,0):n=Math.min(n,u),r==null?r=Math.min(n+1,u):(r=Math.trunc(r)||0,r<0?r=Math.max(u+r,0):r=Math.min(r,u)),r<=n)return 0;const h=r-n;return h===u?(this._items=[],this._head=0,h):n===0?(this._items.fill(null,this._head,this._head+h),this._head+=h,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),h):r===u?(this._items.length=this._head+n,h):(this._items.splice(this._head+n,h),h)}indexOf(n,r=0){const u=this.length;if(u===0||(r=Math.trunc(r)||0,r>=u))return-1;r<0&&(r=Math.max(u+r,0));const h=this._items.indexOf(n,this._head+r);return h<0?-1:h-this._head}lastIndexOf(n,r){const u=this.length;if(u===0||(r==null?r=u-1:r=Math.trunc(r)||0,r>=0?r=Math.min(r,u-1):r+=u,r<0))return-1;const h=this._items.lastIndexOf(n,this._head+r);return h<this._head?-1:h-this._head}*entries(){let n=0;for(;n<this.length;)yield[n,this._items[this._head+n]],n++}*values(){let n=0;for(;n<this.length;)yield this._items[this._head+n],n++}toArray(){return this._items.slice(this._head)}clear(){this._items=[],this._head=0}[Symbol.iterator](){return this.values()}}const fc=new mp;async function Y1(s,n,r){let u;if(n instanceof AbortSignal?u=n:n!=null&&(r=n),r==null)throw new Error("callback is required");if(u?.aborted)throw u.reason;const h=s.slice();let m=fc.get(h);m!=null?await G1(m[0],u,m):(m=[new ps,new ps],fc.set(h,m));try{return await r()}finally{B1(h,m)}}function B1(s,n){const r=n[0];if(!r.isEmpty){const h=r.first;return typeof h=="function"?(r.shift(),void h()):void pp(n)}fc.delete(s);const u=n[1];for(const h of u.values())h();u.clear()}function pp(s){const n=s[0];let r=0;for(const u of n.values()){if(typeof u=="function")break;r++,u[0]()}s[2]=(s[2]??0)+r,n.delete(0,r)}function G1(s,n,r){return n==null?new Promise(u=>{s.push(u)}):new Promise((u,h)=>{function m(){n.removeEventListener("abort",g),u()}const v=s.length;function g(){const S=s.lastIndexOf(m,v);S>=0&&(s.delete(S),r!=null&&S===0&&r[2]!=null&&!s.isEmpty&&typeof s.first!="function"&&pp(r)),n.removeEventListener("abort",g),h(n.reason)}s.push(m),n.addEventListener("abort",g)})}const np=2147483647;class jl{_callback;_startTime;_delay;_timeout;constructor(n,r){this._callback=n,this._delay=r,this._startTime=Date.now(),this._onTimeout=this._onTimeout.bind(this),this._timeout=setTimeout(this._onTimeout,Math.floor(Math.max(0,Math.min(r,np))))}dispose(){this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=void 0)}[Symbol.dispose](){this.dispose()}get disposed(){return this._timeout==null}_onTimeout(){const r=Date.now()-this._startTime,u=this._delay-r;u<=0?(this._timeout=void 0,this._callback()):this._timeout=setTimeout(this._onTimeout,Math.min(u,np))}}class L1 extends Promise{constructor(n,r){r==null||typeof n=="function"?super(n):super((u,h)=>{if(n?.aborted){h(n.reason);return}let m=!1,v=!1,g,S=!1;function E(D){m||(m=!0,v=!0,n?.removeEventListener("abort",b),u(D),g==null?S=!0:g(v))}function b(D){m||(m=!0,n.removeEventListener("abort",b),h(n.reason),g==null?S=!0:g(v))}function p(D){m||(m=!0,n?.removeEventListener("abort",b),h(D),g==null?S=!0:g(v))}n?.addEventListener("abort",b);try{g=r(E,p)}catch(D){p(D);return}S&&g?.(v)})}static all(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.all(r))):this.resolve(Promise.all(n))}static race(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.race(r))):this.resolve(Promise.race(n))}static any(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.any(r))):this.resolve(Promise.any(n))}static allSettled(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.allSettled(r))):this.resolve(Promise.allSettled(n))}static withSignal(n,r){return n==null?r:n.aborted?(r.catch(Q1),this.reject(n.reason)):new this(n,(u,h)=>{r.then(u,h)})}static sleep(n,r){return r==null||typeof n=="number"?new this(u=>{new jl(u,n)}):n?.aborted?this.reject(n.reason):new this(n,u=>{const h=new jl(u,r);return h.dispose.bind(h)})}}function Q1(){}const ds=new mp;function gp(s,n,r){let u;if(n instanceof AbortSignal?u=n:n!=null&&(r=n),r==null)return Promise.reject(new Error("callback is required"));if(u?.aborted)return Promise.reject(u.reason);let h=ds.get(s);if(h==null){const m=new AbortController,v=s.slice(),[g,S]=V1();h=[g,m,1,v],ds.set(v,h);const E=Y1(v,u==null?void 0:m.signal,()=>r(m.signal));h[0]=E;const b=()=>{h[2]!==0&&(h[2]=0,ds.delete(h[3]))};E.then(b,b),g.catch(X1),S(E)}else h[2]++;return u==null?h[0]:u.aborted?(lp(h,u),Promise.reject(u.reason)):Promise.resolve(new L1(u,(m,v)=>(h[0].then(m,v),g=>{!g&&u.aborted&&lp(h,u)})))}function lp(s,n){const r=s[2];r===1?(s[2]=0,ds.delete(s[3]),s[1].abort(n.reason)):r!==0&&(s[2]=r-1)}function V1(){let s;return[new Promise(r=>{s=r}),s]}function X1(){}class ya{_queueEvents;_listenerCallbacks;_state;_changeEventMicrotaskQueued;constructor(n,{queueEvents:r=!0}={}){this._queueEvents=r,this._listenerCallbacks=new Map,this._state=n,this._changeEventMicrotaskQueued=!1,this.createChangeListener=this.createChangeListener.bind(this),this.clearChangeListeners=this.clearChangeListeners.bind(this)}get state(){return this._state}set state(n){this._state!==n&&(this._state=n,this._queueEvents?this._changeEventMicrotaskQueued||(this._changeEventMicrotaskQueued=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{this._changeEventMicrotaskQueued=!1,this._dispatchChangeEvent(this._state)})):this._dispatchChangeEvent(this._state))}createChangeListener(n,r=!1){if(this._listenerCallbacks.set(n,this._state),r)try{n(this._state,void 0)}catch(u){console.error(u)}return gs._create(()=>{this._listenerCallbacks.delete(n)})}clearChangeListeners(){this._listenerCallbacks.clear()}get changeListenerCount(){return this._listenerCallbacks.size}_dispatchChangeEvent(n){for(const[r,u]of Array.from(this._listenerCallbacks.entries()))if(u!==n){this._listenerCallbacks.has(r)&&this._listenerCallbacks.set(r,n);try{r(n,u)}catch(h){console.error(h)}}}static createCombinedChangeListener(n,r,{callInstantlyWithCurrentState:u=!1,queueEvents:h=!0}={}){let m=!1;const v=()=>n.map(p=>p.state);let g=v();const S=(p=!0,D=!0)=>{const M=v(),C=g;if(!(p&&M.every((q,O)=>q===C[O]))){g=M;try{r(M,D?C:C.map(()=>{}))}catch(q){console.error(q)}}},E=()=>{m||(h?(m=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{m=!1,S()})):S())},b=n.map(p=>p.createChangeListener(E,!1));return u&&S(!1,!1),gs._create(()=>b.forEach(p=>p.dispose()))}}class gs{_dispose;constructor(n){this._dispose=n,this.dispose=this.dispose.bind(this),this[Symbol.dispose]=this[Symbol.dispose].bind(this)}dispose(){this._dispose!=null&&(this._dispose(),this._dispose=null)}[Symbol.dispose](){this.dispose()}get disposed(){return this._dispose==null}static _create(n){return new gs(n)}}new FinalizationRegistry(Z1);const op=new WeakSet;async function Z1([s,n]){if(s instanceof Promise)try{s=await s}catch(r){op.delete(n),console.error(r);return}try{if(s==null)return;typeof s=="function"?await s():Symbol.asyncDispose!=null&&Symbol.asyncDispose in s&&typeof s[Symbol.asyncDispose]=="function"?await s[Symbol.asyncDispose]():Symbol.dispose!=null&&Symbol.dispose in s&&typeof s[Symbol.dispose]=="function"?s[Symbol.dispose]():"dispose"in s&&typeof s.dispose=="function"&&await s.dispose()}catch(r){console.error(r)}finally{op.delete(n)}}const K1={models:{},localModels:[],scores:[]};function J1(s){const n=Object.values(s.models).flatMap(u=>u?.download==null?[]:[u.download]),r=n.reduce((u,h)=>u+h.totalSize,0);return{count:n.length,progress:r>0&&n.every(u=>u.totalSize>0)?n.reduce((u,h)=>u+h.downloadedSize,0)/r:void 0}}const Bt=new ya(K1);function de(s,n,r,u,...h){return{id:s,title:n,limit:r,brief:u,goalCount:h.length,labels:h.map(([m])=>m),questions:h.map(([m,v,g])=>typeof v=="string"?{type:"choice",instruction:v,criteria:["This detail is absent or contradicted.",g??m]}:v)}}const $1=[{id:1,title:"Small messages",skill:"Give a simple message three useful jobs",estimatedDuration:"2-3 min",rounds:[de("1-1","A small emergency",120,"Name an animal, ask for help, and make it urgent",["Name an animal",{type:"noul",instruction:"Does the text contain an actual animal name? A category label is not an animal name.",criteria:["An animal name like cat, dog, or fox appears in the text.","No animal name appears in the text."]}],["Ask for help",{type:"noul",instruction:"Does the writer ask someone for help? Answer yes if the writer requests assistance or asks someone to help. Answer no otherwise.",criteria:["Yes","No"]}],["Call for immediate action",{type:"noul",instruction:"Does the text explicitly call for immediate action? Answer yes if the message requests action now, immediately, or describes an emergency. Answer no otherwise.",criteria:["Yes","No"]}]),de("1-2","Share the ride",120,"Ask for a lift, say where you need to go, and offer to pay for fuel",["Ask for a lift",{type:"noul",instruction:"Does the writer ask someone for a ride?",criteria:["",""]}],["Name your destination",{type:"choice",instruction:"What does the message establish?",criteria:["No destination is given; requesting a ride alone does not name one.","The message gives somewhere to travel to, such as a station, library, home, or another destination."]}],["Offer to pay for fuel",{type:"noul",instruction:"Does the writer offer to cover the fuel cost?",criteria:["The writer offers to pay for fuel.","This is not stated in the text."]}]),de("1-3","One spare cookie",120,"Offer a cookie, name its flavor, and say you baked it yourself",["Offer a cookie","Does the writer offer someone a cookie?","The writer offers the reader a cookie."],["Name its flavor","Does the text name the flavor of a cookie?","A cookie flavor is named."],["Say you baked it yourself",{type:"noul",instruction:"Does the writer say they baked the cookies themselves?",criteria:["",""]}])]},{id:2,title:"Make it useful",skill:"Give someone enough information to act",estimatedDuration:"3-5 min",rounds:[de("2-1","Parcel patrol",140,"Tell a neighbor you have their parcel, where to collect it, and when",["Say you have their parcel",{type:"noul",instruction:"Does the message say the writer has a delivery for the recipient?",criteria:["The writer has received or is holding the recipient's parcel or package, including wording like got your package or your delivery is at mine.","The message does not say the writer has the recipient's delivery."]}],["Give a pickup location",{type:"noul",instruction:"Does the message itself identify a pickup place?",criteria:["Words in the message name or describe a pickup place, including relative places such as my home, at mine, the porch, or a cafe.","No pickup place is written. A pickup time or saying I have your package does not by itself specify a place."]}],["Give a pickup time",{type:"noul",instruction:"Is any pickup timing provided in the message? Answer yes if: A time or window for pickup is given: a clock time, day, morning, after work, or similar timing. Answer no if: There is no timing for pickup.",criteria:["",""]}]),de("2-2","A book worth borrowing",140,"Recommend a book, give a reason to read it, and offer to lend your copy",["Recommend a book","Does the writer recommend a particular book by title?","The writer recommends a book by title."],["Give a reason to read it","Does the writer give a specific reason to read the recommended book?","The writer gives a specific reason the book is good."],["Offer to lend your copy","Does the writer offer to lend a book?","The writer offers to lend a book."]),de("2-3","The missing tool",140,"Ask to borrow a screwdriver, say what it is for, and promise to return it",["Ask for a screwdriver","Does the writer ask to borrow a screwdriver?","The writer asks to borrow a screwdriver."],["Explain what you need it for",{type:"noul",instruction:"Does the message explain a use for the borrowed screwdriver?",criteria:["A task for the screwdriver is named, such as tightening a door handle, fixing a hinge, or assembling furniture.","No task for the screwdriver is described; simply asking to borrow it is insufficient."]}],["Promise to return it","Does the writer commit to returning the borrowed screwdriver?","The writer promises to return the screwdriver."])]},{id:3,title:"Give it a reason",skill:"Connect a problem to a useful next step",estimatedDuration:"4-6 min",rounds:[de("3-1","Different directions",175,"Say the bridge is closed. Give another route, a landmark, and one hazard to watch for.",["Explain the bridge closure","Does the message say the bridge is closed?","The message says the bridge is closed."],["Suggest another route","Does the message name an alternative route to the closed bridge?","An alternative route to the closed bridge is suggested."],["Name a landmark to follow","Does the message name a landmark along the alternative route?","A landmark along the alternative route is named."],["Warn about a hazard","Does the message warn about a specific hazard on the alternative route?","A specific hazard on the alternative route is identified."]),de("3-2","A thirsty fern",175,"Ask someone to water your fern, say you are away, specify how much water, and thank them",["Ask them to water the fern","Does the writer ask the reader to water a fern?","The writer asks someone to water a fern."],["Say you are away",{type:"noul",instruction:"Does the writer say they are away from home?",criteria:["They say they are away from home.","They are at home, or no absence is stated."]}],["Specify how much water",{type:"noul",instruction:"Is an amount of water described, even approximately?",criteria:["A measure is given, including a cup of water (one cup), a splash, a spoonful, or a numeric quantity.","There is no measure of water at all; only watering is mentioned."]}],["Thank them for the favor","Does the text include an expression of gratitude?","The writer expresses gratitude."]),de("3-3","One more chapter",175,"Ask to keep a library book longer, name it, say you have not finished it, and give a return day",["Ask for more borrowing time",{type:"noul",instruction:"Does the writer ask to extend a library book loan?",criteria:["The writer asks for a longer library book loan.","This detail is absent or contradicted."]}],["Say you are still reading",{type:"noul",instruction:"Is there still some of the book left for the writer to read? Answer yes if: The writer has not finished reading, including saying that chapters or pages remain. Answer no if: Nothing says that any reading remains unfinished.",criteria:["",""]}],["Give a return day","Does the writer state a day they will return the book?","The writer states a day they will return the book."],["Name the book",{type:"choice",instruction:"Does the message contain the title of a book?",criteria:["No","Yes"]}])]},{id:4,title:"Plan a little",skill:"Turn a loose idea into an easy plan",estimatedDuration:"5-8 min",rounds:[de("4-1","Rain check",185,"Move a rooftop film indoors because of rain, name the new place, and keep the original time",["Move the rooftop screening",{type:"noul",instruction:"Does the writer propose moving a rooftop film screening indoors?",criteria:["",""]}],["Explain that rain is the reason","Does the message say rain is the reason for changing the film location?","Rain is given as the reason for moving the film screening."],["Name a new indoor venue","Does the message name a specific indoor place for the film screening?","A particular indoor venue is proposed for the screening."],["Keep the same start time",{type:"choice",instruction:"Does the message explicitly say the film will start at its original time?",criteria:["No","Yes"]}]),de("4-2","The cake relay",185,"Ask someone to collect a cake, name the bakery, give a collection time, and say who it is for",["Ask for cake collection","Does the writer ask someone to collect a cake?","The writer asks the reader to collect a cake."],["Name the bakery","Does the message name the bakery where the cake is to be collected?","The bakery where the cake can be collected is named."],["Give a collection time","Does the message give a time to collect the cake?","A time to collect the cake is stated."],["Name the recipient","Does the message identify who the cake is for?","The person the cake is for is identified."]),de("4-3","A key detail",185,"Tell a guest where the spare key is, how to open the door, where to leave the key, and wish them a good stay",["Say where to find the key",{type:"choice",instruction:"What location information is given for the key?",criteria:["No key location is given","An initial place to find the key is given, possibly with later return instructions","Only a place to return the key afterward is given"]}],["Explain how to open the door","Does the message explain an action needed to open the door?","An action to open or unlock the door is explained."],["Say where to leave the key",{type:"noul",instruction:"Does the message say where the guest should leave the key after using it?",criteria:["The message says where to leave the key after use.","This detail is absent or contradicted."]}],["Welcome the guest","Does the writer wish the guest a pleasant stay?","The writer wishes the guest a pleasant stay."]),de("4-4","Quiet rehearsal",185,"Suggest a place and time to rehearse, ask someone to bring an instrument, and offer to bring the sheet music",["Suggest a rehearsal place","Does the message name a place to rehearse music?","A place to rehearse music is proposed."],["Suggest a rehearsal time",{type:"noul",instruction:"Does the message specify a time for the music rehearsal?",criteria:["",""]}],["Ask them to bring an instrument",{type:"noul",instruction:"Does the writer ask someone to bring a particular musical instrument?",criteria:["",""]}],["Offer to bring sheet music","Does the writer offer to bring the sheet music?","The writer offers to bring the sheet music."])]},{id:5,title:"Turn it around",skill:"Make a small setback easier to fix",estimatedDuration:"6-10 min",rounds:[de("5-1","Wrong sandwich",200,"Say which sandwich you ordered and what arrived, ask for the right one, and thank the server",["Describe your original order",{type:"noul",instruction:"Does the writer name the filling they originally ordered or asked for? Answer yes if: A named sandwich filling is connected to the original order or request, such as I ordered cheese or I asked for ham. Answer no if: The original filling is not named. Mentioning what arrived or saying the one I ordered does not identify the original filling.",criteria:["",""]}],["Say what actually arrived",{type:"noul",instruction:"Does the message identify the food that arrived?",criteria:["The message says what the writer received, including a filling named after got or received.","It does not say what arrived. Naming only the order or requested replacement is insufficient."]}],["Ask for a replacement","Does the writer ask for the sandwich they ordered to replace the incorrect one?","The writer asks to replace the incorrect sandwich."],["Thank the server",{type:"choice",instruction:"Does the message thank the recipient?",criteria:["It contains no expression of thanks or appreciation.","It includes thanks, thank you, appreciation, or another expression of gratitude."]}]),de("5-2","A soggy notebook",200,"Admit spilling water on a borrowed notebook, apologize, offer a new one, and offer to copy the notes",["Admit spilling the water","Does the writer say they spilled water on the notebook?","The writer admits spilling water on the recipient's notebook."],["Apologize","Does the writer apologize for the damaged notebook?","The writer apologizes for the damage."],["Offer a new notebook","Does the writer offer to replace the damaged notebook?","The writer offers to replace the damaged notebook."],["Offer to restore the notes","Does the writer offer to copy the notes into a replacement notebook?","The writer offers to copy the notes into the replacement."]),de("5-3","Wrong room",200,"Correct a meeting room, name the new room, keep the same time, and ask people to tell anyone missing the message",["Rule out the old room",{type:"noul",instruction:"Does the message explicitly say the meeting will not be in its previously announced room?",criteria:["The message explicitly rules out the previously announced meeting room.","This detail is absent or contradicted."]}],["Name the new room",{type:"noul",instruction:"Is the room to use for the meeting identified?",criteria:["The message gives the new or replacement room, by name or number.","No room to use is identified; only ruling out the old room is insufficient."]}],["Keep the timing unchanged",{type:"choice",instruction:"Is the meeting's previous time kept?",criteria:["An unchanged meeting time is not stated; a room change alone is not enough.","The message says the time stays the same, including same time, still at a stated time, or no change to when it starts."]}],["Ask them to pass the news on","Does the writer ask recipients to tell people who may not see this message about the change?","Recipients are asked to tell people who may miss this message about the change."]),de("5-4","Restart, then reply",200,"Suggest restarting a frozen app, ask them to report what happens, offer more help, and acknowledge the hassle",["Suggest a restart",{type:"noul",instruction:"Does the writer suggest restarting an app?",criteria:["",""]}],["Ask what happens afterward","Does the writer ask the reader to report what happens after trying the suggested fix?","The reader is asked to report what happens after the restart."],["Offer more help","Does the writer offer to help further with the app problem?","The writer offers more help fixing the app problem."],["Acknowledge the frustration","Does the writer acknowledge that the app problem is frustrating or inconvenient?","The writer acknowledges that the app problem is frustrating or inconvenient."])]},{id:6,title:"Help them choose",skill:"Put options and their useful differences into words",estimatedDuration:"8-12 min",rounds:[de("6-1","Two routes to town",225,"Offer a bus and a walk, compare their cost, say which is faster, and ask which they prefer",["Offer the bus option","Does the writer offer taking a bus as a travel option?","Taking a bus is offered as a travel option."],["Offer the walking option","Does the writer offer walking as a travel option?","Walking is offered as a travel option."],["Compare the costs","Does the message compare the cost of taking the bus with walking?","The cost of the bus is compared with the cost of walking."],["Compare journey times",{type:"choice",instruction:"Can the reader tell which journey is quicker from the message?",criteria:["Journey times are not compared and both durations are not given. Cost alone does not show which is quicker.","The message says which is faster, or gives different durations for both the bus and the walk so they can be compared."]}],["Ask which they prefer","Does the writer ask the reader which travel option they prefer?","The reader is asked which travel option they prefer."]),de("6-2","A desk with a catch",225,"Recommend a desk, praise its storage, mention its size drawback, give its price, and suggest measuring first",["Recommend a desk","Does the writer recommend buying a desk?","The writer recommends buying the desk."],["Praise its storage",{type:"noul",instruction:"Does the message praise the desk's storage space?",criteria:["",""]}],["Explain a size drawback",{type:"choice",instruction:"What does the message say about the desk's size?",criteria:["No problem with its size is stated.","It is too big or too small for the available space."]}],["State the price",{type:"noul",instruction:"Does the message state the desk's price?",criteria:["A price is stated for the desk.","This detail is absent or contradicted."]}],["Suggest measuring before buying","Does the writer recommend measuring the available space before buying the desk?","The writer advises measuring the available space before buying the desk."]),de("6-3","The lunch vote",225,"Offer soup or pasta for lunch, name a vegetarian option, offer to cook, and ask the group to vote",["Offer soup",{type:"noul",instruction:"Does the writer suggest having soup for lunch?",criteria:["The message satisfies this requirement: Soup offered.","This requirement is not met by the message."]}],["Offer pasta",{type:"noul",instruction:"Does the writer suggest having pasta as a lunch option?",criteria:["Pasta is suggested as a lunch option.","This detail is absent or contradicted."]}],["Identify a vegetarian option","Does the message explicitly identify one of the proposed dishes as vegetarian?","One proposed dish is explicitly described as vegetarian."],["Offer to cook","Does the writer offer to cook the proposed lunch?","The writer offers to cook lunch."],["Ask the group to vote","Does the writer ask the group to vote for a lunch option?","The group is asked to vote for a lunch option."]),de("6-4","A gift for a reader",225,"Offer a named book or a bookshop voucher, praise a feature of the book, explain the voucher's benefit, and ask which they prefer",["Suggest a book as a gift",{type:"noul",instruction:"Does the writer name a book they could give as a gift?",criteria:["",""]}],["Offer a bookshop voucher","Does the writer offer a bookshop voucher as an alternative gift?","A bookshop voucher is offered as an alternative gift."],["Explain why to choose the book","Does the message describe an appealing feature of the book itself?","The book's writing, illustrations, or another feature is praised."],["Explain why to choose the voucher","Does the message say why the recipient might prefer a bookshop voucher?","A benefit of the voucher, such as choosing a book themselves, is stated."],["Ask which they prefer",{type:"noul",instruction:"Does the writer ask which gift the recipient prefers?",criteria:["The message satisfies this requirement: The recipient decides.","This requirement is not met by the message."]}])]},{id:7,title:"Make the handoff",skill:"Give the next person what they need to take over",estimatedDuration:"10-16 min",rounds:[de("7-1","Cat-sitting notes",245,"Explain your cat's food, feeding time, hiding spot, water needs, and how to contact you",["Say what the cat eats",{type:"noul",instruction:"Does the message identify food for the cat?",criteria:["A food type or name is given, such as dry food, wet food, kibble, or a brand.","No food type or name is given. Just saying feed the cat is insufficient."]}],["Say when to feed the cat",{type:"noul",instruction:"Does the message specify when to feed the cat?",criteria:["",""]}],["Say where the cat hides","Does the message identify a place where the cat hides?","The place where the cat hides is described."],["Explain how to care for its water","Does the message tell the reader to provide or refresh the cat's water?","The reader is asked to provide or refresh water for the cat."],["Give a way to reach you",{type:"noul",instruction:"Does the writer say how the reader can contact them?",criteria:["",""]}]),de("7-2","The repair handoff",245,"Describe a broken lamp, say what you tried, name a part to check, give its location, and ask for an update",["Describe the lamp problem","Does the message describe what is wrong with a lamp?","A fault with the lamp is described."],["Say what fix you already tried","Does the writer name something they already tried to fix the lamp?","The writer names a fix already tried on the lamp."],["Name a part to inspect",{type:"choice",instruction:"Does the writer ask for a particular lamp part to be checked?",criteria:["This detail is absent or contradicted.","A particular lamp part is identified for inspection."]}],["Say where the lamp is",{type:"choice",instruction:"Does the message identify a physical place where the lamp is?",criteria:["No place for the lamp is stated. Mentioning a lamp part or attempted repair is not its location.","A place for the lamp is stated, such as on my desk, on a table, in a room, or another described spot."]}],["Ask for an update","Does the writer ask to hear the result of the lamp inspection?","The writer asks to hear what the lamp inspection finds."]),de("7-3","Market stall shift",245,"Say what the stall sells, give a price, explain payment, name the next volunteer, and give handover time",["Name the product","Does the message name what the market stall sells?","A product sold at the market stall is named."],["Give a selling price","Does the message give a price for a product at the stall?","A selling price for the product is stated."],["Explain how to take payment",{type:"noul",instruction:"Does the message say how customers can pay?",criteria:["",""]}],["Name who takes over","Does the message name the person taking over the stall?","The person taking over the stall is named."],["Say when to hand over",{type:"noul",instruction:"Does the message give a time for the stall handover?",criteria:["A time for the stall handover is stated.","This detail is absent or contradicted."]}]),de("7-4","Read and compare",245,"Name a book and a page goal, set a discussion day and place, and ask your friend to bring notes",["Name a book","Does the message identify a book by title?","A book title is stated."],["Set a page target","Does the message specify a number of pages to read?","A number of pages to read is stated."],["Set a discussion day","Does the message say which day to discuss the book?","A day for discussing the book is given."],["Name a meeting place",{type:"noul",instruction:"Does the message specify where to meet for the book discussion? Judge the meaning; ordinary paraphrases and pronouns count. Do not assume missing information.",criteria:["",""]}],["Ask them to bring notes",{type:"noul",instruction:"Does the writer ask the reader to bring notes?",criteria:["",""]}]),de("7-5","A recipe rescue",245,"Name a missing ingredient, suggest a substitute, give its amount, explain its effect, and say when to add it",["Name a missing ingredient",{type:"choice",instruction:"What ingredient problem does the text describe?",criteria:["No missing ingredient is identified.","The writer has run out of a named ingredient."]}],["Name a substitute",{type:"noul",instruction:"Does the writer suggest a particular substitute for the missing ingredient? Judge only the words actually written. If the text does not say this, answer no.",criteria:["",""]}],["Specify how much substitute",{type:"noul",instruction:"Does the message give a quantity of the substitute ingredient?",criteria:["An amount for the replacement ingredient is given, such as two tablespoons, a cup, grams, or a ratio.","No amount of the substitute is given."]}],["Explain its effect on the food","Does the message explain how the substitute changes the finished food?","The effect of the substitution on the finished dish is described."],["Say when to add it","Does the message say which cooking step comes before or after adding the substitute?","The text states when to add the replacement ingredient."])]},{id:8,title:"Make room for both",skill:"Find a practical plan for two different needs",estimatedDuration:"12-18 min",rounds:[de("8-1","Window diplomacy",255,"One person wants fresh air; another is cold. Acknowledge both, propose airing briefly, give a duration, and offer to close it.",["Explain the need for fresh air","Does the message acknowledge someone wants fresh air?","The message acknowledges that someone wants fresh air."],["Acknowledge someone is cold",{type:"noul",instruction:"Does the message acknowledge someone is feeling cold?",criteria:["",""]}],["Propose a brief airing","Does the writer suggest opening a window temporarily?","Opening a window temporarily is proposed."],["Say how long to air the room",{type:"noul",instruction:"Does the message specify how long to keep the window open?",criteria:["",""]}],["Offer to close the window","Does the writer offer to close the window afterward?","The writer offers to close the window afterward."]),de("8-2","The shared shelf",255,"Acknowledge two people need shelf space, suggest a split, offer to move your things, and ask for agreement",["Explain your storage need","Does the writer state that they need shelf space for their belongings?","The writer says they need shelf space for their belongings."],["Acknowledge their storage need","Does the message acknowledge the other person needs shelf space?","The other person's need for shelf space is acknowledged."],["Propose a specific division","Does the writer propose a specific division of the shelf space?","A specific division of shelf space is proposed."],["Offer to move your things","Does the writer offer to move their own belongings to make the shelf plan work?","The writer offers to move their own things to make space."],["Ask for their agreement",{type:"noul",instruction:"Does the writer ask whether the proposed shelf arrangement is acceptable? Judge only the words actually written. If the text does not say this, answer no.",criteria:["",""]}]),de("8-3","The weekend trade",255,"Ask to swap shifts, name both shifts, mention your other commitment, and thank them",["Ask to swap shifts","Does the writer ask to swap work shifts?","The writer requests a work shift swap."],["Identify your shift",{type:"choice",instruction:"When does the writer need their shift covered?",criteria:["No day is stated for the shift they need covered.","The writer requests cover on a stated day."]}],["Offer a shift in return","Does the writer offer to cover a specific shift for the other person in return?","A specific shift is offered in return."],["Mention your other commitment","Does the writer mention a personal event or commitment they need to attend?","A personal event or commitment the writer needs to attend is named."],["Thank them",{type:"choice",instruction:"Does the message thank the recipient?",criteria:["It contains no expression of thanks or appreciation.","It includes thanks, thank you, appreciation, or another expression of gratitude."]}]),de("8-4","Game night for everyone",255,"Suggest a game, explain how a beginner can join, include an experienced player, set a length, and invite everyone",["Name a game","Does the writer propose playing a specific game?","A particular game is proposed."],["Explain how beginners can join","Does the message propose concrete help for a beginner to participate?","A concrete way to help beginners participate is described."],["Give an experienced player a role","Does the message propose a specific role for an experienced player?","A specific role for an experienced player is proposed."],["Set a session length",{type:"noul",instruction:"Does the message give a length of time for playing?",criteria:["A session duration is stated, such as half an hour, an hour, or a number of minutes.","No playing duration is stated. A start time alone is not a duration."]}],["Invite everyone",{type:"choice",instruction:"Is the group invited to play?",criteria:["No","Yes"]}]),de("8-5","The photo exchange",255,"Ask for a group photo, explain your use, offer one of yours, say how to send it, and ask before posting theirs publicly",["Ask for a group photo","Does the writer ask the reader for a group photo?","The writer asks for a group photo."],["Explain its intended use",{type:"choice",instruction:"Does the writer explain what they want the group photo for?",criteria:["This detail is absent or contradicted.","The writer explains what they want the group photo for."]}],["Offer a photo in return","Does the writer offer a photo in return?","The writer offers a photo in return."],["Suggest a transfer method",{type:"choice",instruction:"Does the message specify a way to send the photos?",criteria:["This detail is absent or contradicted.","A method of sending the photos is specified."]}],["Ask for permission to post it",{type:"choice",instruction:"What permission does the writer request for the recipient's photo?",criteria:["No permission to publish the photo is requested.","Permission to post the photo publicly is requested."]}])]},{id:9,title:"Six useful details",skill:"Fit a complete small project into one message",estimatedDuration:"15-24 min",rounds:[de("9-1","A tiny exhibition",290,"Invite someone to a photo show: name its theme, venue, date, entry price, and a reason to visit",["Invite them to the show","Does the writer invite the reader to a photo exhibition?","The reader is invited to a photo exhibition."],["Name an exhibition theme",{type:"noul",instruction:"Does the message say what the photographs show?",criteria:["A subject or theme is named, such as wildlife, portraits, city life, landscapes, or another topic.","No subject of the photographs is given."]}],["Name a venue","Does the message name where the photo exhibition takes place?","The exhibition's venue is stated."],["Set a date","Does the message give a day or date for the photo exhibition?","A day or date for the exhibition is given."],["State the entry price","Does the message state the admission price or that admission is free?","The admission price or free entry is stated."],["Give a reason to visit","Does the message give a specific reason the reader might enjoy visiting the exhibition?","A specific reason to visit the exhibition is offered."]),de("9-2","A garden from scraps",290,"Propose a herb garden, choose a reused container, name a herb and location, offer a task, and ask for help",["Propose a garden","Does the writer propose starting a herb garden?","Starting a herb garden is proposed."],["Choose a reused container","Does the message propose repurposing an existing object as a planting container?","An existing object is to be reused as a planter."],["Name a herb to grow","Does the message name a specific herb to grow?","A specific herb to grow is named."],["Suggest a growing location","Does the message say where the herbs will grow?","A place to grow the herbs is stated."],["Offer to take on a task","Does the writer say which gardening task they will do?","The writer states a specific gardening task they will do."],["Ask for their help","Does the writer ask the other person to help with the herb garden?","The writer asks someone else to help with the garden."]),de("9-3","The almost-perfect stay",290,"Review a stay: praise the bed and host, name a problem, its impact, a fix, and whether you would return",["Praise the bed's comfort",{type:"noul",instruction:"Does the review say the bed was comfortable?",criteria:["The bed is described as comfortable.","This detail is absent or contradicted."]}],["Praise something the host did","Does the review praise something the host did?","Something the host did is praised."],["Describe a concrete problem","Does the writer describe a problem with the room or its contents?","A concrete fault with the room is identified."],["Explain its effect on you","Does the reviewer explain how the problem affected them?","The reviewer describes how the problem affected them."],["Propose an improvement",{type:"noul",instruction:"Does the reviewer suggest a specific improvement addressing the problem?",criteria:["A specific improvement addressing the problem is suggested.","This detail is absent or contradicted."]}],["Say whether you would return",{type:"noul",instruction:"Does the reviewer explicitly say whether they would stay there again?",criteria:["The message satisfies this requirement: A return decision.","This requirement is not met by the message."]}]),de("9-4","A local history hunt",290,"Suggest a history walk past a station and clock tower, name a feature to notice at each, and ask a friend to lead part",["Propose a history walk",{type:"noul",instruction:"Does the writer suggest taking a walk to explore local history?",criteria:["",""]}],["Include a station stop","Does the writer propose visiting a station on the history walk?","Visiting a station is proposed."],["Include a clock tower stop","Does the writer propose visiting a clock tower on the history walk?","Visiting a clock tower is proposed."],["Name a station feature",{type:"noul",instruction:"Does the message name something to notice at the station?",criteria:["Yes","No"]}],["Name a clock tower feature",{type:"noul",instruction:"Does the message name a historical feature to look for at the clock tower?",criteria:["",""]}],["Invite a friend to lead part","Does the writer ask the friend to lead part of the walk?","The reader is invited to lead part of the walk."]),de("9-5","A repair cafe",290,"Invite neighbors to a repair cafe, name an item to bring, give place and time, offer a skill, and ask for volunteers",["Invite the neighbors","Does the writer invite neighbors to a repair cafe or community repair event?","Neighbors are invited to a community repair event."],["Say what to bring","Does the writer name something people can bring to be repaired?","A kind of broken item to bring is named."],["Name a repair venue","Does the message give a place for the repair event?","The repair event's venue is named."],["Set a repair time","Does the message specify when the repair event takes place?","A time for the repair event is given."],["Offer a skill","Does the writer offer a specific repair skill of their own?","The writer offers a specific repair skill of their own."],["Ask for volunteers","Does the writer ask for volunteers to help run the repair event?","Volunteers are asked to help with the repair event."]),de("9-6","A birthday without stuff",290,"Propose an experience as a birthday gift, tailor it to a hobby, give its cost, offer to organize, suggest a date, and ask for approval",["Suggest an experience gift","Does the writer propose an activity as a birthday present?","An activity is proposed as a birthday gift."],["Link it to their interest","Does the message connect the proposed birthday activity to the recipient's existing interest?","The birthday activity is connected to the recipient's interests."],["State the cost",{type:"noul",instruction:"Does the message give the cost of the birthday experience?",criteria:["A cost for the birthday activity is given.","This detail is absent or contradicted."]}],["Offer to organize it","Does the writer offer to organize or book the birthday experience?","The writer offers to arrange the birthday activity."],["Suggest a date","Does the message specify when the birthday activity could take place?","A day or date for the birthday activity is proposed."],["Ask for their approval","Does the writer ask whether the birthday plan suits the recipient?","The recipient is asked whether the birthday plan suits them."])]},{id:10,title:"Make a little go far",skill:"Solve a practical constraint with a compact proposal",estimatedDuration:"18-30 min",rounds:[de("10-1","A bench on a budget",305,"Set a bench budget, price an oak and a pine option, choose one you can afford, praise a useful feature, and offer to collect it",["Set a spending limit",{type:"noul",instruction:"Does the message state how much money is available to spend?",criteria:["",""]}],["Give an oak bench price",{type:"noul",instruction:"Does the message give the price of an oak bench?",criteria:["An oak bench's price is stated.","This detail is absent or contradicted."]}],["Give a pine bench price","Does the message give the price of a pine bench?","A pine bench's price is stated."],["Choose an affordable option","Does the writer choose an option within their stated budget?","The writer chooses a bench within their stated budget."],["Praise a useful feature","Does the writer name a practical advantage of the bench they chose?","A useful feature of the chosen bench is explained."],["Offer to collect it","Does the writer offer to collect the chosen bench?","The writer offers to collect the bench."]),de("10-2","A workshop in half the time",305,"Shorten a workshop: keep its main exercise, cut a slideshow that repeats the notes, offer the notes, and ask for feedback",["Explain that less time is available",{type:"noul",instruction:"Does the writer say there is less time available for the workshop?",criteria:["",""]}],["Name an activity to keep",{type:"noul",instruction:"Does the writer say which workshop activity to keep?",criteria:["",""]}],["Name an activity to remove","Does the writer identify a workshop activity to remove?","The slideshow is to be removed from the workshop."],["Explain the cut","Does the message say the slideshow repeats information available elsewhere?","The slideshow repeats information already in the notes or handout."],["Offer the notes","Does the writer offer participants notes or a handout?","The writer offers participants notes or a handout."],["Ask for feedback","Does the writer ask for feedback on the shorter workshop plan?","The writer asks for feedback on the shorter workshop plan."]),de("10-3","A menu for two needs",305,"Plan a meal for a vegetarian and someone avoiding gluten: name both needs, suggest a dish, explain both fits, and offer to cook",["Acknowledge the vegetarian guest",{type:"noul",instruction:"Does the message explicitly mention a guest is vegetarian?",criteria:["",""]}],["Acknowledge the gluten-free guest",{type:"choice",instruction:"Does the message say someone avoids gluten?",criteria:["This detail is absent or contradicted.","A guest is described as avoiding gluten."]}],["Propose a meal","Does the writer propose a specific dish to serve?","A particular dish is proposed for the meal."],["Explain why it is vegetarian",{type:"noul",instruction:"Does the message explicitly explain that the proposed dish contains no meat?",criteria:["The proposed dish is explicitly described as containing no meat.","This detail is absent or contradicted."]}],["Explain why it avoids gluten",{type:"noul",instruction:"Does the message explicitly explain that the proposed dish is gluten-free?",criteria:["",""]}],["Offer to cook","Does the writer offer to cook the proposed meal?","The writer offers to cook the meal."]),de("10-4","A project worth trying",305,"Pitch a tool-sharing shelf: explain the idea, its benefit, where it goes, one rule, a trial length, and how to judge it",["Explain the sharing idea","Does the writer propose a shelf where people can borrow shared tools?","A shelf for lending shared tools is proposed."],["Describe a benefit","Does the message explain a benefit of sharing tools?","A benefit of sharing tools is explained."],["Name a location","Does the message name a place for the tool-sharing shelf?","A place for the tool shelf is named."],["Set a borrowing rule",{type:"choice",instruction:"Does the message state a concrete rule for borrowing the tools?",criteria:["This detail is absent or contradicted.","A concrete tool-borrowing rule is stated."]}],["Set a trial duration",{type:"choice",instruction:"Does the message specify how long to trial the tool-sharing scheme?",criteria:["No","Yes"]}],["Define a measure of success","Does the message propose a concrete way to assess whether the tool-sharing trial works?","A concrete measure for judging the trial's success is proposed."]),de("10-5","Room for a beginner",305,"Invite a novice to a hike, name the route, explain why it suits them, set a pace, offer equipment, and plan a rest stop",["Invite a novice","Does the writer invite a beginner to go hiking?","A beginner is invited on a hike."],["Name a route",{type:"choice",instruction:"Does the message name the path or trail for the hike?",criteria:["No","Yes"]}],["Explain why the route suits them","Does the message give a reason the proposed hike is suitable for a beginner?","A reason the hike suits a beginner is explained."],["Suggest a manageable pace","Does the writer propose a pace intended to suit the beginner?","A pace suitable for the beginner is proposed."],["Offer equipment","Does the writer offer to lend the beginner specific hiking equipment?","The writer offers to lend particular hiking equipment."],["Plan a rest stop","Does the message propose a specific rest stop during the hike?","A specific rest stop is proposed."]),de("10-6","The book swap",305,"Propose a book swap, give place and time, explain what to bring, say how books are exchanged, and offer leftover books to charity",["Propose a book swap","Does the writer propose a book swap event?","A book swap event is proposed."],["Name a swap location",{type:"choice",instruction:"Does the message name where the book swap happens?",criteria:["The swap has no named venue.","A venue such as a hall, house, library, or other place is named for the swap."]}],["Set a swap time","Does the message give a time for the book swap?","A time for the book swap is given."],["Say what to bring","Does the message ask people to bring books they have finished reading?","People are asked to bring books they have finished reading."],["Explain how the swap works","Does the message state a concrete rule for exchanging books?","A concrete rule for exchanging the books is stated."],["Offer to donate leftover books","Does the writer propose giving leftover books to charity?","Leftover books are to be donated to charity."])]},{id:11,title:"The final edit",skill:"Eight new briefs; seven goals each. Find the shortest complete version.",estimatedDuration:"25-40 min",rounds:[de("11-1","A cinema for one night",370,"Plan a community film night: film, venue, date, ticket price, an accessibility feature, snacks, and a request for helpers",["Choose a film","Does the message identify a movie that will be shown?","A film to screen is named."],["Name a venue",{type:"choice",instruction:"Does the message identify a venue for the film night?",criteria:["No actual venue is named. A film title, screen, ticket price, or accessibility statement alone is not a venue.","A place for watching the film is named, separately from the movie title. For example, at the hall or in a house names a venue."]}],["Set a date",{type:"noul",instruction:"Does the message give a date or day for the film screening?",criteria:["",""]}],["State the ticket price or free entry",{type:"noul",instruction:"Does the message say how much tickets cost or that the screening is free?",criteria:["Ticket prices or free admission are explained.","This detail is absent or contradicted."]}],["Describe an accessibility feature","Does the message state a specific accessibility feature at the film event?","A specific accessibility feature is mentioned."],["Plan the snacks",{type:"choice",instruction:"Does the message mention food for the film night?",criteria:["No","Yes"]}],["Ask for help","Does the writer ask for helpers for the film event?","The writer asks for help with the film event."]),de("11-2","A little shop online",370,"Pitch a local shop's website: products, customers, a benefit, ordering, collection, launch day, and an invitation to try it",["Say what is sold",{type:"noul",instruction:"Does the message identify what the shop offers for sale?",criteria:["A product type is named, including in a phrase such as candle website, book shop, or a similar description.","No product or type of goods is identified."]}],["Describe who it is for",{type:"choice",instruction:"Does the message identify the shop's customers?",criteria:["No intended customer group is identified.","The intended customers are named, described, or addressed directly, such as local gift shoppers."]}],["Explain why to use it","Does the message explain a benefit of using the shop website?","A benefit of using the shop website is explained."],["Explain how to order","Does the message explain how to place an order?","The way to place an order is explained."],["Explain how to collect","Does the message explain how customers receive or collect an order?","The way to receive or collect an order is explained."],["Say when it opens",{type:"noul",instruction:"Does the message state a launch day or date for the website?",criteria:["A launch day or date is stated.","This detail is absent or contradicted."]}],["Invite people to try it","Does the writer invite the reader to try the shop website?","The reader is invited to try the website."]),de("11-3","The neighborhood time bank",370,"Propose swapping skills: your offer, what you need, equal time in return, a meeting place, a time, and an invitation to join",["Propose swapping skills","Does the writer propose exchanging skills or services with neighbors?","Exchanging skills or services with neighbors is proposed."],["Offer your skill","Does the writer offer a specific skill they can teach or provide?","The writer offers a specific skill or service."],["Say what skill you need","Does the writer name a skill or service they would like in return?","The writer names a skill or service they need."],["Propose an equal-time exchange",{type:"noul",instruction:"Does the message propose exchanging equal amounts of time?",criteria:["The message satisfies this requirement: An exchange rule.","This requirement is not met by the message."]}],["Name a meeting place","Does the message name a place to meet for the skill exchange?","A place to meet for the exchange is stated."],["Set a meeting time","Does the message specify when to meet for the skill exchange?","A time to meet for the exchange is given."],["Invite others to join","Does the writer invite other people to join the skill exchange?","Others are invited to join the skill exchange."]),de("11-4","The science club challenge",370,"Plan an experiment: duration, one condition kept equal, prediction, materials, method, measurement, and a partner invitation",["Set a test duration",{type:"noul",instruction:"Does the message say how long to run the experiment?",criteria:["A duration for the experiment is stated.","This detail is absent or contradicted."]}],["Name a condition to keep equal","Does the message name a condition kept the same for both experimental groups?","A particular condition is kept the same for both groups."],["Make a prediction","Does the writer predict the outcome of the experiment?","The writer predicts the experiment's result."],["Name the materials","Does the message name materials needed for the experiment?","Materials for the experiment are named."],["Describe a test method","Does the message describe how to test the experimental question?","The method for testing the question is described."],["Say what to measure","Does the message specify what to measure in the experiment?","Something to measure in the experiment is specified."],["Invite a partner","Does the writer invite someone to take part in the experiment?","Someone is invited to join the experiment."]),de("11-5","A pop-up museum",370,"Plan a museum of everyday objects: theme, one exhibit, its story, venue, visiting time, entry cost, and a request for contributions",["Name a museum theme","Does the message name a theme for the proposed museum display?","A theme for the museum display is given."],["Name an exhibit","Does the message name a specific object to exhibit?","An object to exhibit is named."],["Tell its story",{type:"noul",instruction:"Does the message tell something that happened in the exhibit object's past?",criteria:["A specific past use, memory, or history is given, including a length of time the object was used.","No specific past use, memory, or history is described. Only calling an object old, or saying it is mine, is insufficient."]}],["Name a display venue","Does the message name a place for the museum display?","A venue for the display is named."],["Set visiting hours",{type:"choice",instruction:"Does the message say when people can visit the museum?",criteria:["This detail is absent or contradicted.","Visiting times are stated."]}],["State the entry cost","Does the message specify the cost of admission or that admission is free?","The cost of entry or free admission is stated."],["Ask for contributions","Does the writer ask others to contribute objects to the display?","Others are asked to contribute objects to the display."]),de("11-6","The two-stop escape",370,"Plan a day trip: town or city, transport, a railway museum and city walls, a reason to visit each, and a return time",["Name a destination","Does the message name a town or city for the day trip?","The town or city to visit is named."],["Explain how to get there","Does the message name transport for reaching the day-trip destination?","Transport to reach the destination is specified."],["Include a railway museum visit","Does the writer propose visiting a railway museum on the trip?","Visiting a railway museum is proposed."],["Explain why to visit the museum","Does the message give a reason to visit the railway museum?","A reason to visit the railway museum is given."],["Include a city walls visit","Does the writer propose visiting city walls on the trip?","Visiting city walls is proposed."],["Explain why to visit the walls","Does the message give a reason to visit the city walls?","A reason to visit the city walls is given."],["Say when to return",{type:"choice",instruction:"What does the message establish?",criteria:["No return time is stated.","A return time is given, including back at six, home at a stated time, or similar wording."]}]),de("11-7","A club that lasts",370,"Start a drawing club: audience, place, schedule, materials, beginner support, cost, and a way to join",["Describe who the club is for","Does the message identify who the drawing club is intended for?","The drawing club's intended audience is described."],["Name a club venue","Does the message name a meeting place for the drawing club?","A meeting venue is named."],["Set a regular schedule","Does the message give a recurring meeting schedule for the drawing club?","A recurring schedule for the drawing club is given."],["Explain what materials are needed","Does the message say what drawing materials to bring or what will be provided?","Drawing materials to bring or available materials are specified."],["Explain how beginners get help","Does the message explain a concrete way beginners will be helped at the drawing club?","A concrete form of help for beginners is explained."],["State the membership cost","Does the message specify the cost of joining the drawing club or that it is free?","Membership costs or free membership are stated."],["Explain how to join","Does the message tell people how to join the drawing club?","A way to sign up for the club is given."]),de("11-8","A good idea made real",370,"Pitch a street library: purpose, location, book rule, weather protection, your task, an opening date, and a request for help",["Explain the library's purpose","Does the message explain that the street library lets people share books?","Sharing books with neighbors is the purpose of the street library."],["Name a library location",{type:"noul",instruction:"Does the message name a location for the street library? Judge the meaning; ordinary paraphrases and pronouns count. Do not assume missing information.",criteria:["",""]}],["Set a book-sharing rule","Does the message state a concrete rule for using the street library?","A concrete book-sharing rule is given."],["Plan protection from the weather","Does the message propose how to protect the street library books from the weather?","A way to protect the books from weather is proposed."],["Offer your contribution","Does the writer commit to a specific task to create the street library?","The writer offers to do a specific setup task."],["Set an opening date",{type:"noul",instruction:"Does the message give a day or date to open the street library?",criteria:["An opening day or date is proposed.","This detail is absent or contradicted."]}],["Ask for help with a setup task",{type:"noul",instruction:"Does the writer request help with a specific task for the street library?",criteria:["The writer asks someone else to help set up the library.","This detail is absent or contradicted."]}])]}],z={entitlement:["Entitlement","The writer claims personal superiority or an automatic right to special treatment.","No claim of superiority or automatic entitlement is made."],threat:["Threats for refusing","The writer threatens to punish or retaliate against the recipient for refusing a request.","No retaliation is threatened. A practical limit on time, money, or capacity is not a threat."],guilt:["Guilt trips",{type:"choice",instruction:"How does the writer treat refusal?",criteria:["Refusal is acceptable","Refusal means not caring"]}],insult:["Personal attacks","The writer attacks a person's intelligence, character, or worth.","Nobody is personally insulted."],blame:["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["",""]}],excuse:["Excuses","The writer makes an excuse","The writer accepts fault","How is the mistake explained?"],minimize:["Minimizing harm","The writer dismisses it as trivial, harmless, exaggerated, or not worth worrying about.","The writer takes it seriously rather than dismissing it.","How does the writer treat the problem or concern?"],guarantee:["False certainty","The writer guarantees an uncertain outcome or claims a known unresolved issue is already fixed.","No uncertain result is guaranteed. Offering an action, a status update, or a conditional plan is not an outcome guarantee."],apology:["Apologizing","The writer explicitly says sorry or apologizes.","The writer does not apologize. Thanks, empathy, and a polite refusal are not apologies."],accusation:["Assumed motives","The writer claims someone deliberately meant to deceive, annoy, or hurt another person.","Nobody is accused of bad intentions. A concrete problem may be described without assuming its motive."],promise:["Promises beyond the limits","An unconditional promise beyond the stated limits.","An offer within stated limits or conditional on agreement.","Does the writer's offer exceed the limits stated in the message?"],sales:["Sales pressure",{type:"noul",instruction:"Does the text use urgency, scarcity, or fear of missing out to pressure the recipient to agree?",criteria:["Yes","No"]}],pity:["Pity or patronizing",{type:"noul",instruction:"Does the text treat the recipient as helpless or incapable of deciding for themselves?",criteria:["Yes","No"]}],deflect:["Dodging the issue","The writer dodges the concern with vague praise, process language, or a demand to move on.","The writer directly addresses the specific concern.","Does the writer address the concrete concern?"],credit:["Taking all the credit","The writer claims other people's contributions as their own.","The writer acknowledges other people's contributions and keeps their own credit accurate.","How does the writer assign credit after any correction?"],coercion:["Assumed consent",{type:"choice",instruction:"Is consent assumed anywhere in this message?",criteria:["No action is taken or permission assumed without an affirmative response","At least one action or agreement is assumed, including treating silence as consent, even if the writer also asks politely","The message has no request, offer, or decision needing consent"]}],stigma:["Stigma","The writer labels a person or group as inferior, dangerous, irresponsible, or untrustworthy because of their identity or personal circumstances.","The writer discusses behavior or needs without stereotyping or stigmatizing anyone.","Does the writer judge someone by their identity or private circumstances?"],spin:["Positive spin","An exciting improvement","A regrettable reduction","How is the loss of service presented?"],pressure:["Pressure to disclose","The writer demands private reasons, personal history, diagnosis, or proof before offering help or participation.","The writer does not require personal disclosures; support or participation does not depend on them.","Is help or participation conditional on disclosing private information?"],tradeoff:["Claiming no drawbacks","Claims there are no costs or drawbacks","Costs or limitations are stated","Which description fits the tradeoffs in the proposal?"]};function fe(s,n,r,u,h,...m){return{id:s,title:n,limit:r,brief:u,goalCount:h.length,labels:[...h,...m].map(([v])=>v),questions:[...h.map(([,v,g,S])=>typeof v!="string"?v:{type:"noul",instruction:v,criteria:[g??"",S??""]}),...m.map(([,v,g,S])=>typeof v!="string"?v:{type:"choice",instruction:S??"Classify only the actual quoted message. Do not invent missing words or assume unstated details.",criteria:[g??"Does not fulfill the requirement.",v,"No relevant request, conflict, mistake, or claim to assess."]})]}}const F1=[{id:1,title:"Ask without leaning",skill:"Make a clear request without making it hard to say no",estimatedDuration:"2-3 min",rounds:[fe("1-1","Borrow, don't demand",150,"Ask to borrow a charger and thank the other person. Make it a request, without claiming you are entitled to it or threatening them.",[["Ask to borrow a charger","Does the writer ask to borrow a charger?"],["Thank them","Does the message express thanks?"]],z.entitlement,z.threat),fe("1-2","A favor with an exit",150,"Ask a friend to help with one specific moving task. Offer a concrete alternative if they cannot help, without using friendship or obligation to pressure them.",[["Ask for a specific moving task","Does the message ask for help moving?","The writer asks for help with a particular moving task, such as carrying furniture or packing belongings.","No help with a specific moving task is requested."],["Offer a fallback for moving",{type:"choice",instruction:"What is the fallback if the friend cannot help?",criteria:["No fallback for the moving task is stated","Another way to complete the moving task is given"]}]],["Guilt trips",{type:"choice",instruction:"Does the writer imply that refusing would make the friend uncaring or disloyal?",criteria:["There is no moral judgment for refusing. Offering another way to finish the move does not imply the friend is uncaring.","Refusing the moving request is framed as proof of not caring or being a bad friend."]}],z.threat),fe("1-3","Volume, not virtue",150,"Ask a neighbor to keep the noise down at a specific time. Explain its effect on you without insulting them or assuming they are doing it deliberately.",[["Ask for less noise","Does the writer ask someone to reduce noise?"],["Specify a time for quiet","Does the quoted Text explicitly contain all of the following? The writer requests lower noise at a stated clock time or defined period. Read only the text, without completing missing details."],["Explain the effect on you","Does the message explain why the noise bothers the writer?"]],z.insult,z.accusation)]},{id:2,title:"Kind friction",skill:"Be direct about a problem while preserving the relationship",estimatedDuration:"3-6 min",rounds:[fe("2-1","Useful, not brutal",190,"You want to help fix a colleague's chart. Name what works, identify a specific readability problem, and ask for the editable source file. No personal criticism, empty flattery, or dismissal of the problem.",[["Praise something that works",{type:"noul",instruction:"Does the writer say what works well in the chart? Answer yes if: A specific feature is praised, such as useful colors, clear coding, or another helpful feature. Answer no if: No particular feature is praised. Criticism alone does not name something that works.",criteria:["",""]}],["Identify a readability problem","Does the writer identify a specific part of the chart that is hard to read?"],["Ask for the editable source",{type:"noul",instruction:"Does the writer ask for the editable chart file?",criteria:["The message satisfies this requirement: The editable source requested.","This requirement is not met by the message."]}]],z.insult,z.deflect,z.minimize),fe("2-2","No with an open door",190,"Decline a dinner invitation and thank the host for including you. Offer a different way to connect without giving an excuse, apologizing, applying pressure, or assuming their agreement.",[["Decline the dinner invitation",{type:"choice",instruction:"What does the writer say about attending dinner?",criteria:["They accept the dinner invitation","They explicitly decline the dinner invitation","They do not say whether they will attend dinner. Declining lunch or another activity alone does not state a dinner decision."]}],["Thank them for the invitation",{type:"noul",instruction:"Does the writer thank the host for inviting them?",criteria:["The message satisfies this requirement: Thanks for the invitation.","This requirement is not met by the message."]}],["Suggest another way to connect","Does the writer propose a replacement plan?","The writer offers a specific way to meet or talk instead of dinner, such as a call or a walk together.","No alternative activity or way to keep in touch is proposed."]],z.apology,z.guilt,z.coercion,["Excuse for declining",{type:"noul",instruction:"Does the writer give a reason why they cannot attend dinner?",criteria:["",""]}]),fe("2-3","The missing invoice",190,"An invoice was due Friday and is still unpaid. Ask for a payment date and offer to resend the invoice. Describe the status without accusing the client of dishonesty, threatening them, or excusing the overdue payment.",[["State that the invoice is overdue","Does the message say the invoice due Friday is still unpaid?"],["Ask for a payment date",{type:"noul",instruction:"Does the writer ask when payment will happen?",criteria:["They ask when money will be sent or received, including When can I expect it? where it refers to the payment.","They do not ask when payment will happen. Merely saying the invoice is overdue is insufficient."]}],["Offer to resend the invoice",{type:"noul",instruction:"Does the writer offer to resend the invoice?",criteria:["They offer to send the invoice or payment details again, including asking whether resending would help.","They do not offer to resend the invoice or its details."]}]],z.accusation,z.threat,z.minimize)]},{id:3,title:"Own the awkward bit",skill:"Take responsibility without becoming defensive or overpromising",estimatedDuration:"9-15 min",rounds:[fe("3-1","The broken mug",250,"You broke a borrowed mug. Apologize and take responsibility, then let its owner choose a replacement or reimbursement. Do not blame the mug, explain away the accident, or call it insignificant.",[["Admit breaking the mug","Does the writer admit they broke the recipient's mug?"],["Apologize",{type:"choice",instruction:"Does the message contain an apology?",criteria:["The writer may admit damage or offer a remedy but does not apologize.","The writer says sorry or offers an apology."]}],["Offer a replacement",{type:"choice",instruction:"Does the writer offer a replacement mug?",criteria:["No","Yes"]}],["Offer repayment",{type:"choice",instruction:"Does the writer offer to compensate the mug's owner with money?",criteria:["No money is offered. An apology or a replacement mug alone is not reimbursement.","They offer reimbursement, repayment, or paying the owner back for the mug."]}],["Let the owner choose","Does the writer let the mug's owner choose the remedy?","The owner can choose between the proposed remedies.","The writer decides the remedy without giving the owner a choice."]],["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["The message satisfies this requirement: Blame shifting.","This requirement is not met by the message."]}],z.excuse,z.minimize),fe("3-2","Credit where it belongs",250,"You presented a team result and forgot to credit Jo, who designed the method. Correct the omission in a message to the team, explain your own role in testing it, and offer to fix the presentation. No blame, excuses, or taking sole credit.",[["Credit Jo with the design",{type:"noul",instruction:"Does the text explicitly say Jo designed the method?",criteria:["The message satisfies this requirement: Jo designed the method.","This requirement is not met by the message."]}],["Describe your testing contribution","Did the writer test the method?","The writer says they tested the method.","The writer does not say they did the testing."],["Own the credit omission",{type:"noul",instruction:"Does the writer admit their own credit omission?",criteria:["",""]}],["Offer to correct the presentation","Does the writer offer to correct the presentation's credits?","The writer offers to update the presentation or slides to give the missing credit.","No correction to the presentation is offered."]],z.credit,z.blame,["Excuses",{type:"noul",instruction:"Does the writer give an excuse to avoid responsibility for their mistake?",criteria:["",""]}]),fe("3-3","Late, but honest",250,"Your report will miss today's deadline; you do not yet know when it will be finished. Tell the recipient, offer the completed summary now, and promise an update tomorrow. Do not invent a finish date, blame others, or minimize the delay.",[["Say today's deadline will be missed","Will the report be late?","The writer says the report will not meet today's deadline.","The message does not say today's report deadline will be missed."],["Say the finish date is unknown",{type:"choice",instruction:"What does the writer say about the completion date of the full report?",criteria:["A definite completion date is given","The writer explicitly says they do not know the completion date yet","No statement is made about whether the completion date is known"]}],["Offer the summary now","Does the writer offer the completed summary now?"],["Promise an update tomorrow","Will the writer give an update tomorrow?","The writer promises an update tomorrow.","No update tomorrow is offered."]],["An invented finish date",{type:"noul",instruction:"Does the writer give a definite completion date for the full report?",criteria:["",""]}],z.blame,z.minimize)]},{id:4,title:"Boundaries that help",skill:"Protect a real limit and still give the other person a useful route",estimatedDuration:"20-32 min",rounds:[fe("4-1","Two urgent things",310,"Your manager asks for a new analysis today, but today is already allocated to the launch. Ask them to choose which takes priority and say the other will move to tomorrow. Stay constructive without apologizing, blaming, or threatening to stop work.",[["Say only one task fits today",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["The message does not state that only one task fits today.","The writer says either the analysis or the launch can fit today, but not both."]}],["Ask the manager to set priority",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["The message does not ask for a choice between the tasks.","The writer asks the manager which of the two tasks should take priority."]}],["Defer the other task to tomorrow","Does the message explicitly fulfill the requirement below?","The task not chosen for today is explicitly deferred to tomorrow.","The message does not say the other task will move to tomorrow."]],z.apology,z.blame,z.threat),fe("4-2","A refund with edges",310,"A customer wants a cash refund outside the 30-day window. You can offer store credit or a repair, but cannot authorize cash. Acknowledge their frustration and offer those two options without blaming the customer, belittling the issue, or promising an exception.",[["Acknowledge the frustration","Does the writer say they understand the customer's frustration?"],["State the cash-refund boundary",{type:"noul",instruction:"Does the writer say they cannot authorize a cash refund outside 30 days?",criteria:["The message satisfies this requirement: The cash-refund boundary.","This requirement is not met by the message."]}],["Offer store credit","Does the writer offer store credit?"],["Offer a repair","Does the writer offer a repair?"]],z.blame,z.minimize,["Unauthorized refund",{type:"noul",instruction:"Does the writer offer a cash refund outside the 30-day window?",criteria:["",""]}]),fe("4-3","Helpful, not on call",310,"A colleague keeps asking for evening help. Say you will answer work questions during office hours, offer a 15-minute slot tomorrow morning, and ask them to bring one priority question. Do not apologize, shame them, or imply that refusing the slot has a penalty.",[["Set an office-hours boundary","Does the message explicitly fulfill the requirement below?","The writer explicitly limits help to office hours and excludes evenings.","There is no boundary excluding evening help."],["Offer 15 minutes tomorrow morning",{type:"noul",instruction:"Does the writer propose meeting for fifteen minutes tomorrow morning?",criteria:["",""]}],["Ask for one priority question",{type:"choice",instruction:"Does the message ask for one main question?",criteria:["No request to bring a priority question is made.","The recipient is asked to bring a priority, top, or most important question."]}]],z.apology,z.guilt,z.threat),fe("4-4","Disagree without digging in",310,"A teammate proposes skipping tests to ship faster. Disagree, explain a specific risk, and propose testing the payment path before shipping. Invite their view without attacking their competence, claiming certainty about failure, or taking over the decision.",[["Describe a specific payment risk","Does the writer describe a particular way a payment could go wrong?","A concrete payment failure is described, such as duplicate charges, a failed purchase, or an incorrect amount.","No actual payment failure is described. Merely mentioning testing, risk, or payments is insufficient."],["Propose payment tests before shipping","Does the writer propose testing payments before release?"],["Invite their view","Does the writer ask for the teammate's opinion?"]],z.insult,z.guarantee,z.coercion)]},{id:5,title:"Confidence with limits",skill:"Give people something useful without pretending uncertainty has vanished",estimatedDuration:"24-40 min",rounds:[fe("5-1","The service is coming back",360,"Logins are working again, but some reports remain delayed and the cause is under investigation. Tell customers both facts, offer an export as a workaround, and promise another status update at 16:00. No claim that everything is fixed, blame, or cheerful spin.",[["Say logins work again","Can users log in again?"],["Say reports are still delayed","Does the message say reports remain delayed?"],["Say the cause is being investigated","Does the message say the cause is still under investigation?"],["Offer an export workaround","Does the writer offer an export as a workaround?"],["Promise a 16:00 update",{type:"noul",instruction:"Does the writer commit to another status update at 16:00?",criteria:["The message satisfies this requirement: A 16:00 update.","This requirement is not met by the message."]}]],["A premature all-clear",{type:"noul",instruction:"Does the writer claim that every service problem is now fixed?",criteria:["",""]}],z.blame,z.spin),fe("5-2","Promising is not proven",360,"A pilot cut average queue time from ten minutes to eight across 20 visits. Recommend a larger trial and name a measurement to track. Do not claim the pilot proves the change works for everyone, hide the small sample, or pressure people to adopt it now.",[["Report the ten-to-eight-minute average",{type:"noul",instruction:"Does the text report average queue time falling from ten minutes to eight?",criteria:["The message satisfies this requirement: The measured change.","This requirement is not met by the message."]}],["Mention the sample of 20 visits","Does the text say the pilot result is based on 20 visits?"],["Propose a larger trial","Does the writer propose a larger trial?"],["Name a measurement to track","Does the message explicitly fulfill the requirement below?","The writer names a concrete measurement to track in the next trial, such as waiting time or complaints.","No measurement is proposed for the next trial."]],["A broad proof claim",{type:"noul",instruction:"Does the writer claim the small pilot proves the change works for everyone?",criteria:["",""]}],z.sales),fe("5-3","Reassurance without a diagnosis",360,"A friend is worried about an unfamiliar test result. Acknowledge the worry, suggest discussing the result with their clinician, and offer a practical form of support. Do not diagnose them, promise the result is harmless, minimize their fear, or demand private details.",[["Acknowledge the worry","Does the quoted Text explicitly contain all of the following? The writer explicitly acknowledges that the result feels worrying or uncertain to the recipient."],["Suggest a clinician's explanation","Does the quoted Text explicitly contain all of the following? The writer suggests discussing the result with a doctor or clinician.","","The writer does not recommend discussing the result with a clinician."],["Offer practical support","Does the writer offer practical help?","A particular action is offered, such as accompanying the recipient, taking notes, or preparing questions.","No concrete support action is offered."]],z.guarantee,z.minimize,z.pressure,["Giving a diagnosis",{type:"noul",instruction:"Does the writer say what medical condition the test result means the recipient has?",criteria:["",""]}]),fe("5-4","The honest recommendation",360,"Recommend a quiet café for conversation while disclosing that it closes at six and has no step-free entrance. Suggest an accessible alternative if that matters to the recipient, without deciding their needs, hiding a drawback, or pressuring them.",[["Recommend a quiet place to talk","Does the writer recommend a quiet café for conversation?"],["Mention the six o'clock closing","Does the writer disclose that the café closes at six?"],["Mention the entrance steps",{type:"noul",instruction:"Does the text mention steps or a lack of step-free access at the original café entrance?",criteria:["",""]}],["Offer an accessible alternative","Does the writer offer an accessible alternative if the recipient needs one?"]],z.pity,z.tradeoff,z.sales)]},{id:6,title:"Negotiate the shape",skill:"Trade scope, time, and cost instead of just asking for less",estimatedDuration:"40-60 min",rounds:[fe("6-1","The budget has corners",430,"A designer quotes $600 for six pages. Your budget is $400. Propose fewer pages now with remaining pages priced separately later, and ask whether that scope is feasible. Keep their rate intact; no discount demand, entitlement, pressure, or commitment without agreement.",[["Acknowledge the original quote","Does the writer acknowledge a $600 quote for six pages?"],["State your $400 budget","How much can the writer spend?","The writer states a budget of $400.","A $400 budget is not stated."],["Reduce scope, not the rate",{type:"choice",instruction:"How does the writer propose fitting the project to the smaller budget?",criteria:["The rate is reduced, or no adjustment is proposed","Fewer pages now, with the normal rate preserved","Pay for the full project in installments"]}],["Price the rest separately","Does the writer propose pricing the remaining pages as a separate later phase?"],["Ask what is feasible","Does the text include a question about feasibility?"]],z.entitlement,z.sales,z.guilt,z.coercion,["A discount demand",{type:"noul",instruction:"Does the writer ask the designer to lower their rate?",criteria:["",""]}]),fe("6-2","A deadline with a lever",430,"A client wants a full report Friday; it needs until Monday. Offer the full report Monday, or the core findings Friday without the optional appendix. Ask them to choose before changing scope. Do not promise the full report Friday, hide the missing appendix, blame the client, or treat silence as consent.",[["Offer the full report on Monday","Does the message say the full report needs until Monday?"],["Offer Friday without the appendix","Does the writer offer a Friday report without the optional appendix?","The writer offers Friday delivery of the core findings, explicitly leaving out the optional appendix.","No Friday alternative excluding the appendix is offered."],["Ask the client to choose first","Does the text ask for the client's choice?","The client is directly asked to select or state a preference between the plans.","The plans are described, but no request for the client's choice is made."]],["An impossible Friday promise",{type:"noul",instruction:"Does the writer promise the full report on Friday?",criteria:["",""]}],z.tradeoff,z.blame,z.coercion),fe("6-3","The noisy compromise",430,"Neighbors want to rehearse from seven to ten for a performance on Saturday; you need quiet after nine. Offer two alternatives: rehearsing tomorrow afternoon, or moving the last hour to another room away from your wall. Acknowledge the upcoming performance and ask whether either alternative works. No blanket ban, guilt trip, insult, or claim that everyone agrees with you.",[["Acknowledge Saturday's performance","Does the message mention a performance on Saturday?"],["Request quiet after nine","Does the writer explain their need for quiet after nine?"],["Suggest tomorrow afternoon instead",{type:"noul",instruction:"Does the writer propose rehearsing tomorrow afternoon as an alternative?",criteria:["The message satisfies this requirement: Tomorrow afternoon instead.","This requirement is not met by the message."]}],["Propose moving the last hour","Does the writer offer moving the nine-to-ten hour away from the shared wall as another option?"],["Invite agreement","Does the writer ask whether the proposed compromise works for the recipient?"]],["A blanket ban",{type:"noul",instruction:"Does the writer demand an end to all rehearsals?",criteria:["",""]}],z.guilt,z.insult,["Claimed consensus",{type:"noul",instruction:"Does the writer claim that everybody has already agreed?",criteria:["",""]}]),fe("6-4","Support without a blank cheque",430,"A friend asks to borrow $500. You can give $100 but cannot lend the rest. Offer help finding another option if wanted. Make the gift clear, without demanding an explanation, judging their spending, apologizing for the limit, or expecting a favor in return.",[["Offer a $100 gift","Does the writer offer $100 as a gift with no repayment?"],["Decline the $500 loan",{type:"choice",instruction:"Does the writer refuse the requested loan beyond the gift?",criteria:["No lending limit is stated. Offering a $100 gift alone does not refuse the rest.","They say they cannot lend $500 or cannot lend the remaining $400 after offering a $100 gift."]}],["Offer optional practical help","Does the writer offer to help find another source of support if wanted?"]],z.pressure,z.insult,z.apology,["A return favor",{type:"noul",instruction:"Does the writer require a favor in return for the gift?",criteria:["",""]}]),fe("6-5","A raise, not a ransom",430,"Ask your manager for a raise and name a concrete contribution or responsibility supporting the request. Invite discussion without claiming you are owed money, making them feel guilty, or threatening to leave.",[["Give a work-related reason",{type:"noul",instruction:"Does the message match this description? A concrete task or achievement is named, such as training staff or leading a team",criteria:["",""]}],["Ask politely for a raise","Does the writer politely ask for a pay raise?"]],["Entitlement",{type:"choice",instruction:"Does the message express entitlement?",criteria:["No automatic entitlement or superiority is claimed. Asking to discuss fair compensation for a contribution is not entitlement.","The writer claims they are automatically owed special treatment, or superior to others."]}],z.guilt,z.threat)]},{id:7,title:"Say enough, keep trust",skill:"Make a useful message without exposing what is not yours to share",estimatedDuration:"45-70 min",rounds:[fe("7-1","Cover without disclosure",490,"Alex is away for a private reason. Tell the team that you cover approvals through Friday and urgent requests go to Sam after that. Do not reveal or speculate about Alex's reason, imply Alex is unreliable, promise their return, or invite questions about their private life.",[["Say Alex is away","Does the message say Alex is away?"],["Offer coverage through Friday","Does the writer say they will cover approvals through Friday?"],["Redirect urgent requests afterward",{type:"noul",instruction:"Does the message direct urgent requests after Friday to Sam?",criteria:["The message satisfies this requirement: Urgent requests afterward.","This requirement is not met by the message."]}]],z.accusation,["Questioning reliability",{type:"noul",instruction:"Does the writer describe Alex as unreliable?",criteria:["",""]}],z.guarantee,z.pressure,["Private details",{type:"noul",instruction:"Does the text name or speculate about the actual reason for Alex's absence?",criteria:["",""]}]),fe("7-2","A concern, not a culprit",490,"An anonymous colleague reported interruptions in meetings. Ask the team to try a speaking queue for two weeks and then review participation. Describe the behavior without identifying the reporter, guessing the interrupter's motives, shaming anyone, or promising it will solve everything.",[["Describe the reported behavior","Have interruptions in meetings been reported?"],["Propose a speaking queue","Does the writer propose using a speaking queue?"],["Set a two-week trial","Does the writer propose trying the change for two weeks?"],["Plan to review participation",{type:"choice",instruction:"What happens after the speaking-queue trial?",criteria:["No later review is described","Participation will be reviewed","Only the trial itself is described"]}]],z.accusation,z.insult,z.guarantee,z.coercion,["Identifying the reporter","The writer names the reporter or gives personal details that identify who complained.","The reporter remains anonymous; no identifying clue is shared."]),fe("7-3","The reference boundary",490,"A prospective employer asks why a former colleague left. You can confirm their dates and describe work you personally saw, but do not know the reason for departure. Offer those facts without speculation, hints of misconduct, private details, or endorsing work you did not see.",[["Say the reason is unknown","Does the writer say they do not know why the colleague left?"],["Offer employment dates",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["No employment dates are offered.","The writer offers to confirm the colleague's employment dates."]}],["Offer firsthand work observations","Does the writer offer to describe work they personally observed?"]],z.accusation,["Secondhand claims","The writer repeats rumors, speculation, or assessments of work they did not personally observe.","Only firsthand observations or an offer to provide them are given."],["Private personal details",{type:"noul",instruction:"Does the writer disclose private facts about the former employee's health, family, or personal life?",criteria:["Private personal circumstances beyond professional work information are disclosed.","Only employment dates or firsthand professional observations are offered; no private personal circumstances are disclosed."]}],["Hints of misconduct",{type:"noul",instruction:"Does the writer imply the former colleague did something wrong?",criteria:["",""]}]),fe("7-4","The surprise stays a surprise",490,"A colleague asks about a confidential launch. Decline to share its date or features, but point them to the public newsletter for confirmed announcements. Stay friendly without confirming guesses, inventing a release date, teasing secret knowledge, or making them feel excluded.",[["Decline to share launch details","Does the writer decline to share confidential launch details?"],["Point to the public newsletter","Does the writer direct the recipient to the public newsletter for confirmed announcements?"]],z.guarantee,z.pity,["Insider teasing",{type:"noul",instruction:"Does the writer tease the recipient about knowing secrets they do not know?",criteria:["",""]}],z.insult,["Leaking by hint",{type:"noul",instruction:"Does the message reveal the actual launch date or describe an unreleased feature?",criteria:["A date, feature, or clue about the launch","No date, feature, or clue is revealed"]}]),fe("7-5","Help without the backstory",490,"A student requests a quieter room. Offer a quiet desk or a different session and let them choose. Explain that you do not need their diagnosis or personal history. Do not speculate about a condition, treat them as incapable, ask for proof, or decide for them.",[["Offer a quiet desk","Does the writer offer a quiet desk?"],["Offer another session",{type:"noul",instruction:"Does the message offer attending another session as an option?",criteria:["",""]}],["Let the student choose","Does the writer ask the student which option they prefer?"],["Say no private history is required","Does the writer explicitly say a diagnosis or personal history is not needed?"]],z.pity,z.stigma,z.pressure,["Assumed consent",{type:"noul",instruction:"Does any part of the message treat silence as consent or decide for the recipient?",criteria:["",""]}],["Speculative diagnosis","The writer labels or guesses the student's medical or psychological condition.","No diagnosis is stated or guessed."])]},{id:8,title:"One message, two audiences",skill:"Keep the message fair when different readers need different things",estimatedDuration:"50-90 min",rounds:[fe("8-1","The closure notice",550,"A library room will close Tuesday for repairs. Write one notice for readers and staff: apologize for the disruption, direct readers to the downstairs room, and tell staff to move bookings there. Access stays free. Do not blame staff, celebrate the closure, promise repairs will finish Tuesday, or suggest readers caused it.",[["Announce Tuesday's closure","Does the notice say the library room closes Tuesday for repairs?"],["Apologize","Does the writer apologize for the disruption?"],["Direct readers downstairs","Does the quoted Text explicitly contain all of the following? The notice tells readers to use the downstairs room.","","Readers are not directed downstairs. Instructions to staff about bookings alone do not tell readers where to go."],["Say access remains free",{type:"choice",instruction:"Does the message state that readers do not have to pay?",criteria:["Free access is not stated.","Library access is described as free or free of charge."]}],["Offer to move the bookings","Does the notice ask staff to move affected bookings to the downstairs room?"]],z.blame,z.spin,z.guarantee,z.accusation,z.minimize),fe("8-2","A pilot is not a pay cut",550,"Propose a four-week rota trial to staff and managers. It must preserve contracted hours while inviting staff to submit preferred shifts through a private form. Explain that not all preferences can be met and invite feedback before a decision. Avoid pretending everyone benefits, implying a final decision, blaming staff, or making refusal shameful.",[["Propose a four-week rota trial","Does the writer propose a four-week rota trial?"],["Protect contracted hours","Does the message explicitly fulfill the requirement below?","The writer explicitly says contracted hours will be preserved.","The message does not say contracted hours are protected."],["Request shifts through a private form","Does the writer ask staff to submit preferred shifts through a private form?"],["Acknowledge limits on preferences","Does the writer acknowledge that not every shift preference can be met?","The message acknowledges that not every shift preference can be met.","The limit on meeting shift preferences is not acknowledged."],["Invite feedback before deciding","Does the writer ask for feedback before deciding on the rota trial?"]],z.tradeoff,z.coercion,z.blame,z.guilt,z.spin),fe("8-3","Thanks without an endorsement",550,"A company donated chairs to your community event. Thank them for the chairs, credit the volunteers who set up, and state that the donation does not buy influence over the program. Be warm without endorsing the company's products, insulting the donor, claiming all credit, or implying future funding is guaranteed.",[["Thank them for the chairs","Does the writer thank the company for donating chairs?"],["Credit the volunteers","Does the writer credit volunteers for setting up?"],["Rule out influence over the program",{type:"noul",instruction:"Does the message explicitly deny giving the donor control over the program? Answer yes if: It says the donation gives no control or influence over the program, or that program decisions remain independent. Answer no if: It does not state that the donor lacks control over program decisions.",criteria:["",""]}]],z.insult,z.credit,z.guarantee,["Product endorsement","The writer recommends the donor's products or treats the donation as proof of product quality.","The donation is acknowledged without recommending products or asserting their quality."]),fe("8-4","A correction without a repeat",550,"Yesterday you wrote that bookings were open. They open Friday instead. Correct your own error, give the right opening day and the public booking page, and acknowledge the inconvenience. Do not blame the reader, imply seats are reserved, use scarcity pressure, or turn the error into good news.",[["Own the wrong announcement","Does the writer admit their earlier statement that bookings were open was wrong?"],["State that opening day is Friday","Do bookings open on Friday?","The message states that bookings open Friday.","The Friday opening day is not stated."],["Point to the public booking page","Does the writer direct readers to the public booking page?"],["Acknowledge the inconvenience","Does the writer acknowledge the inconvenience caused by the error?"]],["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["",""]}],z.spin,z.sales,["Promised seats",{type:"noul",instruction:"Does the message say any seats are already reserved for the recipient?",criteria:["",""]}],z.minimize),fe("8-5","A rule with a welcome",550,"A workshop cannot admit late arrivals once machinery starts. Invite newcomers to arrive ten minutes early for a safety briefing; offer the next session if they miss it. Explain a concrete danger from entering while machines run, without calling late people careless, threatening them, hiding the restriction, or promising an exception.",[["Welcome newcomers","Does the writer welcome newcomers to the workshop?"],["Ask them to arrive ten minutes early","Does the writer ask participants to arrive ten minutes early for a safety briefing?"],["Explain the entry restriction","Does the message prohibit entering once the machinery starts?","The message explicitly states that people cannot enter after machines start running.","No entry restriction tied to running machinery is stated. A safety warning or early-arrival request alone is insufficient."],["Explain the safety reason",{type:"noul",instruction:"Does the message name an accident or injury that could happen to late arrivals?",criteria:["A specific physical hazard is described, such as being injured by blades or walking into moving parts.","No injury or accident mechanism is described. A safety briefing and an entry ban alone do not explain the hazard."]}],["Offer the next session","Does the writer offer the next session to anyone who misses the briefing?"]],z.insult,["Threats for refusing",{type:"noul",instruction:"Does the message match this description? The writer threatens to punish or retaliate against the recipient for refusing a request.",criteria:["",""]}],["An entry exception",{type:"noul",instruction:"Does the writer offer to admit someone after the machinery starts?",criteria:["",""]}],z.minimize)]},{id:9,title:"Plans that survive reality",skill:"Write contingencies that are actionable without overstepping",estimatedDuration:"60-120 min",rounds:[fe("9-1","Rain, rooms, and consent",630,"A park picnic is planned for Saturday at noon. Check the forecast at nine; if heavy rain is forecast, propose the hall at noon. If the hall is unavailable, offer postponing to Sunday. The hall costs $40 split equally only among those who agree. Ask for explicit agreement before booking it. No assumed consent, guaranteed weather, hidden cost, pressure, or claim the hall is already booked.",[["Plan a forecast check at nine","Does the writer propose checking the forecast at nine on Saturday?"],["Explain the rainy-day plan","Does the text specify meeting in the hall at noon if heavy rain is forecast?","The writer proposes meeting in the hall at noon if heavy rain is forecast.","No such rainy-day plan is stated. Hall costs or booking alone do not state a plan to meet there at noon."],["Offer a Sunday fallback","Does the writer offer postponing the picnic to Sunday if the hall is unavailable?"],["State the $40 cost",{type:"noul",instruction:"Does the writer state that the hall costs $40?",criteria:["The message satisfies this requirement: The $40 cost.","This requirement is not met by the message."]}],["Seek agreement on an equal split",{type:"noul",instruction:"Does the writer propose splitting the hall cost equally only among those who agree?",criteria:["The message satisfies this requirement: An agreed equal split.","This requirement is not met by the message."]}],["Ask for permission before booking",{type:"noul",instruction:"Does the writer explicitly request agreement before booking the hall?",criteria:["",""]}]],z.coercion,z.guarantee,z.tradeoff,z.guilt,["Premature booking",{type:"noul",instruction:"Does the writer say they have already booked the hall?",criteria:["",""]}]),fe("9-2","A delivery with a fallback",630,"A replacement part may arrive Thursday. If it arrives, offer installation Friday; if it does not, offer an update Friday and a temporary workaround. Ask the customer before applying the workaround, which disables one optional feature. No arrival guarantee, silent changes, hidden loss, blame, or claim the repair is complete.",[["Make installation depend on arrival","Does the writer make Friday installation conditional on the part arriving Thursday?"],["Promise an update if delayed","Does the writer offer a Friday update if the part does not arrive?","The writer offers a Friday update if the part has not arrived.","A Friday update for a delayed part is not offered."],["Disclose the lost feature","Does the writer disclose that the workaround disables an optional feature?"],["Seek permission for the change","Will the workaround wait for the customer's agreement?","The writer asks the customer to agree before applying the workaround.","The writer does not seek agreement before applying the workaround."]],z.guarantee,z.coercion,z.tradeoff,z.blame,["Premature completion",{type:"noul",instruction:"Does the writer claim the repair is already complete?",criteria:["",""]}]),fe("9-3","Two queues, one team",630,"A team has capacity for either a security review or a feature launch today, not both. If the review finds a critical issue, fix it before launching; otherwise propose launching tomorrow. Ask the lead to approve the priority. No certainty about review results, blaming security, treating silence as consent, hiding delay, or promising both today.",[["State today's capacity",{type:"noul",instruction:"Does the writer say only the security review or feature launch fits today, not both?",criteria:["The message satisfies this requirement: Today's capacity.","This requirement is not met by the message."]}],["Prioritize critical fixes",{type:"noul",instruction:"Does the plan require critical findings to be fixed before launch?",criteria:["The message satisfies this requirement: Fix critical findings first.","This requirement is not met by the message."]}],["Propose tomorrow's launch if clear",{type:"choice",instruction:"Does the writer propose launching tomorrow if the review finds no critical problem?",criteria:["No","Yes"]}],["Seek the lead's approval",{type:"choice",instruction:"Does the writer ask the lead to approve the priority?",criteria:["The writer does not ask for approval. Stating a proposal alone is insufficient.","The writer directly requests the lead's approval before proceeding."]}]],z.guarantee,z.blame,z.coercion,["Claiming no drawbacks",{type:"noul",instruction:"Does the writer claim their proposal has no costs or drawbacks?",criteria:["",""]}],["Overcommitting today",{type:"noul",instruction:"Does the writer promise to complete both the security review and the feature launch today?",criteria:["",""]}]),fe("9-4","A fair waitlist",630,"There are two workshop seats and five people waiting. Propose offering seats in signup order, with a 24-hour response window, then moving to the next person. Offer everyone the next session too. Do not favor donors, treat silence as acceptance, shame slow replies, imply a guaranteed seat, or hide the two-seat limit.",[["State two seats for five people","How many seats and waiting people are there?","There are two seats and five people waiting.","The message does not state both two seats and five waiting people."],["Use signup order","Does the writer propose offering seats in signup order?"],["Allow 24 hours to respond",{type:"noul",instruction:"Does the writer give each person 24 hours to respond?",criteria:["The message satisfies this requirement: A 24-hour response window.","This requirement is not met by the message."]}],["Move on if there is no reply",{type:"noul",instruction:"Does the writer say the offer moves to the next person if there is no reply?",criteria:["The message satisfies this requirement: Move to the next person.","This requirement is not met by the message."]}],["Offer another session to everyone","Does the writer offer everyone a place at the next session as an alternative?","All waiting people are invited to consider the next session.","The next session is not offered to everyone waiting."]],z.coercion,["Reply shaming",{type:"noul",instruction:"Does the writer shame people who take time to reply?",criteria:["",""]}],z.guarantee,z.tradeoff,["Preferential access","The writer gives donors, friends, or favored people priority over signup order.","The same signup-order rule applies to everyone."]),fe("9-5","A reversible trial",630,"Propose a two-week software trial with volunteers only. Keep the existing tool available; stop if data exports fail; review export reliability and time saved afterward. Say no one must move permanently before the review. No assumed consent, guaranteed savings, hiding rollback, pressure, or claiming the trial is already approved.",[["Propose a two-week trial","Does the writer propose a two-week software trial?"],["Invite volunteers only","Is participation in the software trial voluntary?","Only volunteers take part in the trial.","The message does not limit the trial to volunteers. Delaying permanent adoption alone does not make the trial voluntary."],["Keep the existing tool available","Does the writer keep the existing tool available during the trial?"],["Set an export-failure stop rule","Does the writer propose stopping the trial if data exports fail?"],["Plan to review export reliability",{type:"choice",instruction:"Does the writer propose a later review of export reliability?",criteria:["No post-trial review of export reliability is stated. A stop rule for failed exports alone is insufficient.","Export reliability is explicitly included in the post-trial review."]}],["Plan to measure time saved","Does the writer propose reviewing time saved during the trial?"],["Defer any permanent switch","Does the writer explicitly defer any required permanent move until after the review?","No one is required to move permanently until after the review.","The message does not explicitly defer any required permanent move until after the review."]],z.coercion,z.guarantee,["Claiming no drawbacks",{type:"noul",instruction:"Does the writer claim there are no risks or drawbacks to the proposed trial?",criteria:["",""]}],z.guilt,["Presumed approval",{type:"noul",instruction:"Does the writer claim the trial has already been approved?",criteria:["",""]}]),fe("9-6","The shared bill",630,"Three friends have each paid $30 for a $90 booking. A fourth wants to join. Work out an equal four-way split and explain the new payment and each refund. Ask everyone to agree before changing the booking; refund the original payers only after the newcomer pays. No guaranteed payment, shame, hidden cost, or charging the newcomer more.",[["State the newcomer's payment",{type:"noul",instruction:"Does the quoted Text explicitly contain all of the following? The newcomer is asked to pay $22.50.",criteria:["The message satisfies this requirement: The newcomer's payment.","This requirement is not met by the message."]}],["Offer three $7.50 refunds",{type:"choice",instruction:"Does each original payer get $7.50 back?",criteria:["A $7.50 refund for each original payer is not offered.","The message refunds $7.50 to each of the three people who originally paid $30."]}],["Seek everyone's agreement first","Does the writer ask all four people to agree before changing the booking?"],["Require payment before refunds","Does the writer make refunds conditional on receiving the newcomer's payment?"]],["Assumed consent",{type:"choice",instruction:"How is permission obtained for changing the booking?",criteria:["Each person must explicitly agree before the booking changes","Permission is assumed, including from silence","No condition for consent is stated"]}],z.guarantee,z.guilt,z.tradeoff,["Unequal charging",{type:"noul",instruction:"Is the proposed final cost per person unequal?",criteria:["",""]}])]},{id:10,title:"The narrow path",skill:"Correct, persuade, and protect trust without convenient evasions",estimatedDuration:"75-150 min",rounds:[fe("10-1","A claim smaller than the headline",710,"Your team advertised “twice as fast” after one ten-person test of a single task. Publicly narrow the claim to that test, acknowledge that the headline overstated the evidence, and propose a larger test across different tasks. Do not blame readers, imply broad proof, hide the small sample, use sales pressure, or claim the test already happened.",[["Own the overstated headline","Does the text explicitly mention a mistake in the original headline?"],["Limit the claim to one task",{type:"choice",instruction:"According to the text alone, how many tasks produced the twice-as-fast result?",criteria:["The number of tasks is not stated","Only one task","Multiple tasks"]}],["State that only ten people took part",{type:"choice",instruction:"Is the ten-person sample stated?",criteria:["The number of people in the test is not given as ten.","The message says ten people or ten participants took part in the test."]}],["Propose a larger study",{type:"choice",instruction:"Does the writer propose testing more participants than before?",criteria:["No larger study is proposed. A next study with different tasks alone does not say the sample will be larger.","The writer proposes a larger study or sample before broadening the claim."]}],["Include different tasks","Does the writer explicitly propose testing different tasks?"]],z.blame,z.guarantee,["A broad proof claim",{type:"noul",instruction:"Does the writer present the small test as proof of a general speed improvement?",criteria:["",""]}],z.sales,["Pretend validation",{type:"noul",instruction:"Does the writer claim the larger study has already been completed?",criteria:["",""]}]),fe("10-2","The apology without a bargain",710,"You shared a private message without permission. Apologize, say you removed your copy from the shared channel, and offer to ask recipients to delete theirs if the owner wants. Acknowledge you cannot guarantee deletion. Do not repeat the private content, excuse yourself, blame the owner, ask forgiveness as a condition, or promise complete erasure.",[["Admit the disclosure","Does the writer admit sharing a private message without permission?"],["Apologize","Does the writer apologize?"],["Say you removed the shared copy","Does the writer say they removed their copy from the shared channel?"],["Offer to ask others to delete it","Does the writer offer to ask recipients to delete their copies?"],["Let the owner decide on contact",{type:"noul",instruction:"Does the owner choose whether other recipients are asked to delete their copies? Answer yes if: Contacting the recipients is offered only if the owner wants it, including if you'd like or if you want me to. Answer no if: The writer does not leave that choice to the owner.",criteria:["",""]}],["Say deletion is not guaranteed",{type:"noul",instruction:'Does the text contain "cannot guarantee deletion" or wording with the same meaning?',criteria:["",""]}]],z.excuse,z.blame,["Guilt trips",{type:"noul",instruction:"Does the writer use personal obligation or guilt to obtain forgiveness or agreement from the owner?",criteria:["The writer implies that refusing would make the owner uncaring or a bad friend.","No refusal is morally judged. Admitting the privacy breach and offering repairs do not make forgiveness obligatory."]}],z.guarantee,["Repeating the disclosure",{type:"noul",instruction:"Does the text reveal what the original private message said?",criteria:["",""]}]),fe("10-3","A principled no with a route",710,"A sponsor offers funding if they can choose which speaker is excluded. Decline that condition, explain that program decisions use the same published criteria for everyone, and offer an unrestricted donation or public feedback route. Do not insult the sponsor, bargain over a named speaker, imply a private exception, threaten them, or promise special influence over future decisions.",[["Decline funding with a veto","Does the writer refuse funding with control over speaker selection?","The writer refuses to accept funding conditional on excluding a speaker.","The exclusion condition is not refused."],["Apply the same published criteria","Does the writer state that speaker decisions use the same published criteria for everyone?"],["Offer an unrestricted route","Is a route without control over the speakers offered?","The writer offers an unrestricted donation or a public feedback route without control over speaker selection.","No unrestricted donation or public feedback route is offered."]],z.insult,z.threat,["A speaker bargain",{type:"noul",instruction:"Does the writer offer to exclude a named speaker in return for funding?",criteria:["",""]}],["Promised program control",{type:"noul",instruction:"Does any sentence promise the recipient decision-making power over future programs, including a conditional or later offer? Ordinary public feedback does not count as control.",criteria:["The recipient is offered control over future program or speaker choices.","No such control is offered."]}],["Private exception","The writer offers or hints at a private exception to the published selection criteria.","No exception or back-channel influence is offered."]),fe("10-4","A warning without a culprit",710,"Duplicate charges are reported but their cause is unconfirmed. Tell users to check their statements, send transaction IDs through the private support form, and expect a status update at noon. Distinguish reports from confirmed findings. Do not name a culprit, request card numbers, guarantee refunds, call the reports harmless, or claim a fix exists.",[["Report charges; say the cause is unknown",{type:"noul",instruction:"Does the message say duplicate charges were reported and the cause is not yet confirmed?",criteria:["",""]}],["Ask users to check statements","Does the writer ask users to check their statements?"],["Request transaction IDs privately","Does the writer ask for transaction IDs through the private support form?"],["Promise a noon status update","Does the writer commit to a status update at noon?"]],["Naming a culprit",{type:"noul",instruction:"Does the writer blame any person or system for the duplicate charges?",criteria:["",""]}],z.guarantee,z.minimize,["A premature fix",{type:"noul",instruction:"Does the writer claim the duplicate-charge problem has been fixed?",criteria:["",""]}],["Sensitive data request","The writer asks users to send card numbers, passwords, or payment details in public or through support.","Only transaction IDs are requested through a private support route."]),fe("10-5","Opportunity without unpaid debt",710,"Invite a junior colleague to present a project they helped build. Credit their contribution, make declining safe, and offer paid preparation time or co-presenting. Do not offer exposure instead of payment, imply refusal harms their career, take their credit, assume agreement, or demand personal reasons.",[["Credit their contribution","Does the writer give the recipient credit for helping build the project?"],["Invite them to present","Does the writer invite the recipient to present the project?"],["Rule out penalties for declining",{type:"choice",instruction:"Which description fits the message?",criteria:["There is no assurance that declining is acceptable.","The message explicitly says the recipient can decline without penalty."]}],["Offer concrete support","Does the writer offer paid preparation time or co-presenting as support?"]],z.guilt,z.credit,z.coercion,z.pressure,["Exposure as payment",{type:"noul",instruction:"Does the writer offer publicity or exposure instead of payment for the work?",criteria:["",""]}]),fe("10-6","The review that leaves room",710,"A pilot improved speed but produced two accessibility complaints. Recommend extending it only if those issues are addressed, keep the old route available, and ask affected users how to test the changes. Do not dismiss two complaints as too few, guarantee accessibility, force disclosure, imply everyone agrees, or hide the benefit.",[["Acknowledge the speed benefit","Does the writer acknowledge that the pilot improved speed?"],["Report two accessibility complaints","Does the text explicitly say there were two accessibility complaints?","Two accessibility complaints are reported.","The number of complaints is not given, or it is not two."],["Require fixes before extending","Does the quoted Text explicitly contain all of the following? The writer makes extending the pilot conditional on addressing the accessibility complaints."],["Keep the old route available",{type:"noul",instruction:"Does the writer keep the old route available?",criteria:["The message satisfies this requirement: Retain the old route.","This requirement is not met by the message."]}],["Ask affected users how to test","Does the writer ask affected users how the changes should be tested?"]],z.minimize,z.guarantee,z.pressure,z.coercion,["Claimed consensus",{type:"noul",instruction:"Does the writer claim that everybody has already agreed?",criteria:["",""]}])]},{id:11,title:"The full balancing act",skill:"Reconcile evidence, consent, fairness, uncertainty, and a usable plan",estimatedDuration:"2-4 hr",rounds:[fe("11-1","The raise after a freeze",850,"Pay is frozen this quarter. You now lead training previously done by a manager. Ask for a documented pay review next quarter tied to that responsibility; propose agreeing review criteria now. Acknowledge the freeze without withdrawing the request. Avoid entitlement, threats, coworker comparisons, a guaranteed raise, or volunteering indefinite unpaid extra duties.",[["Acknowledge this quarter's freeze","Does the writer acknowledge that pay is frozen this quarter?"],["Describe the new training role","Does the writer say they now lead training previously done by a manager?"],["Request a documented review next quarter","Does the writer request a documented pay review next quarter tied to the training responsibility?"],["Propose agreeing review criteria now","Does the writer propose agreeing the review criteria now?"]],z.entitlement,z.threat,z.guarantee,["Coworker comparison","The writer argues for their raise by disparaging coworkers or claiming to be worth more than them.","The case is based on the writer's responsibilities, not comparisons with coworkers."],["Indefinite unpaid commitment","The writer agrees to keep the extra duties indefinitely without a review or limit.","The extra responsibility is connected to a concrete future review, not an indefinite unpaid commitment."]),fe("11-2","An incident without a scapegoat",850,"A service outage lasted 40 minutes; access is restored, some exports are still queued, and the cause is unconfirmed. Apologize, tell users not to resubmit exports, offer the private support route for urgent cases, and promise an update at 18:00. No culprit, complete-fix claim, finish-time guarantee, sensitive-data request, or minimizing the impact.",[["Report the 40-minute outage",{type:"noul",instruction:"Does the message state the outage lasted 40 minutes?",criteria:["The message satisfies this requirement: The 40-minute outage.","This requirement is not met by the message."]}],["Say access is restored","Does the message say access is restored?"],["Say exports remain queued","Does the message say some exports are still queued?"],["Say the cause is unconfirmed",{type:"noul",instruction:"Does the message say the cause is unconfirmed?",criteria:["The message satisfies this requirement: The cause is unconfirmed.","This requirement is not met by the message."]}],["Apologize","Does the writer apologize for the outage?"],["Tell users not to resubmit exports","Does the writer tell users not to resubmit exports?"],["Offer private support for urgent cases","Does the writer offer private support for urgent cases?"],["Promise an 18:00 update","Does the writer commit to another update at 18:00?"]],["Naming a culprit",{type:"noul",instruction:"Does the writer blame any person or system for the outage?",criteria:["",""]}],["A premature all-clear",{type:"noul",instruction:"Does the writer claim that all problems from the outage are now resolved?",criteria:["",""]}],z.guarantee,z.minimize,["Unsafe data collection","The writer asks users to post credentials, private files, or sensitive details publicly.","Urgent cases go through private support without requesting public sensitive data."]),fe("11-3","Two reasonable sides",850,"Two neighbors share a room: one needs a quiet call at six, the other has booked music practice from five to seven. Propose keeping practice five to six and moving six to seven elsewhere only if both agree; offer another call location as a fallback. Acknowledge the booking and quiet need. No imposed decision, blame, guilt, guaranteed room availability, or erasing either person's hour.",[["Acknowledge the music booking","Does the writer acknowledge music practice booked from five to seven?"],["Acknowledge the quiet call at six",{type:"choice",instruction:"Does the writer explicitly describe a need for a quiet call at six?",criteria:["No quiet call at six is described; mentioning practice from five to seven or another call location is insufficient","A neighbor needs quiet for a call at six"]}],["Propose moving only the last hour",{type:"noul",instruction:"Does the proposed plan keep music practice here from five to six and move the six-to-seven hour elsewhere?",criteria:["",""]}],["Require both people's agreement","Does the writer make the proposed change conditional on both neighbors agreeing?"],["Offer a fallback location for the call","Does the writer offer another location for the call if moving practice cannot work?"]],z.coercion,z.blame,z.guilt,z.guarantee,z.tradeoff),fe("11-4","A launch with a stop rule",850,"A launch has passed functional tests; accessibility review is scheduled for Monday. Propose a voluntary limited pilot after that review, retain the existing service, and stop the pilot if payment errors appear. Review completion times and support requests after one week before deciding on expansion. No full-launch promise, assumed consent, hidden review gap, pressure on testers, or certainty that no errors will occur.",[["Say functional tests passed","Does the writer state that functional tests have passed?"],["Mention Monday's accessibility review","Does the writer say accessibility review is scheduled for Monday?"],["Propose a limited pilot after review",{type:"choice",instruction:"Does the message suggest a small pilot after the accessibility review?",criteria:["No","Yes"]}],["Make participation voluntary",{type:"choice",instruction:"Does the message explicitly say the pilot is voluntary?",criteria:["Voluntary participation is not stated. A limited pilot alone does not establish consent.","Participation is described as voluntary or limited to volunteers."]}],["Keep the existing service available","Does the writer keep the existing service available during the pilot?"],["Set payment errors as a stop rule",{type:"noul",instruction:"Do payment errors stop the pilot under this plan? Answer yes if: The proposal stops the pilot if payment errors appear, including we stop for payment errors. Answer no if: No stop condition tied to payment errors is given.",criteria:["",""]}],["Plan a review before expanding","Does the writer propose reviewing the pilot after one week before deciding whether to expand?"],["Plan to review completion times","Does the message propose reviewing completion times?"],["Plan to review support requests","Does the message propose reviewing support requests?"]],z.promise,z.coercion,["Pretend clearance",{type:"noul",instruction:"Does the writer claim the accessibility review has already passed?",criteria:["",""]}],z.guilt,z.guarantee),fe("11-5","Funding without favoritism",850,"A donor offers $2,000 for a youth program if their child gets priority. Decline the priority condition while welcoming an unrestricted donation. Explain that all places use the public signup order, offer the same waitlist route, and avoid disclosing other children's details. No shaming, backroom exception, seat guarantee, pressure to donate, or identifying another applicant.",[["Decline priority for funding","Does the writer decline priority for the donor's child in exchange for $2,000?","The writer refuses priority for the donor's child in return for $2,000.","The priority-for-funding condition is not refused."],["Welcome an unrestricted gift","Does the writer welcome an unrestricted donation?"],["Apply public signup order","Does the text state that signup order determines who gets places?","The writer states that places follow public signup order.","The writer may offer a waitlist but does not state that places follow signup order."],["Offer the normal waitlist","Is the usual waitlist offered to the child?","The writer offers the donor's child the same waitlist route as other applicants.","No normal waitlist route is offered."]],z.insult,z.sales,z.guarantee,["Hidden exception","Special treatment for the donation","Normal signup and waitlist rules","How will the donor's child be admitted?"],["Applicant disclosure","The writer reveals identifying information or private circumstances of another child or applicant.","No other applicant's identity or private circumstances are revealed."]),fe("11-6","Correct the record, keep the person",850,"A public post wrongly credited you alone for a tool: Priya designed it, you tested it, and Lee wrote the guide. Correct the credit, own that you approved the post, and offer to update both the post and guide credits. Invite each contributor to confirm wording before you change it. No excuse, blame, sole-credit claim, assumed consent, or erasing your real contribution.",[["Credit Priya with the design","Did Priya design the tool?"],["Describe your testing role",{type:"choice",instruction:"Does the writer say they tested the tool?",criteria:["The writer's testing contribution is not stated. Credit to other people alone is insufficient.","The writer states that they tested the tool."]}],["Credit Lee with the guide",{type:"choice",instruction:"What does the text say Lee did?",criteria:["Lee is not mentioned or no work by Lee is described","Lee wrote the guide"]}],["Own approving the wrong post","Does the writer admit approving the inaccurate sole-credit post?"],["Offer to correct the post credits",{type:"choice",instruction:"Which documents does the writer offer to update?",criteria:["Only the guide","The public post, with or without an update to the guide","Neither document"]}],["Offer to correct the guide credits",{type:"noul",instruction:"Does the message propose correcting the guide's credits?",criteria:["",""]}],["Ask contributors to confirm first","Does the writer ask contributors to confirm the wording before it is changed?"]],z.excuse,z.blame,z.credit,z.coercion,["Erasing your contribution","The writer denies doing the testing or transfers all of their actual testing contribution to someone else.","The writer retains accurate credit for testing while recognizing others."]),fe("11-7","A hard change without a soft lie",850,"A community class must move from free weekly sessions to two free sessions a month because funding fell by half. Explain the loss plainly, invite feedback before choosing the dates, and offer the free practice materials between sessions. Do not call it an upgrade, blame participants, imply donations buy access, promise funding will recover, or ask people to disclose hardship.",[["Say funding fell by half","Does the writer explain that funding fell by half?"],["Explain the reduced session frequency","Does the writer say free weekly classes will become two free sessions a month?"],["Invite feedback before choosing dates","Does the writer invite feedback before choosing session dates?"],["Offer free materials between sessions","Does the writer offer free practice materials between sessions?"]],z.spin,z.blame,z.guarantee,z.pressure,["Paying for priority","The writer implies donating or paying will secure priority access to the free sessions.","Access to the free sessions is not conditional on donating."]),fe("11-8","The last responsible word",850,"A trial of a new booking system cut median waiting from ten minutes to seven across 30 users, but two could not complete checkout with a keyboard. Recommend no wider rollout yet. Propose fixing keyboard checkout and keeping the old route. Invite volunteers to sign up for retesting through a form, and pay participants for their time. Plan a two-week review before rollout, measuring satisfaction ratings and support requests. Do not erase the speed gain, minimize the exclusion, guarantee success, assume consent, or request diagnoses.",[["Report the ten-to-seven-minute median","Does the writer report median waiting time falling from ten minutes to seven?"],["State the sample of 30 users","Does the writer say the trial involved 30 users?"],["Report two keyboard checkout failures","Does the writer report that two users could not complete checkout with a keyboard?"],["Propose fixing keyboard checkout",{type:"noul",instruction:"Does the writer explicitly propose repairing keyboard checkout?",criteria:["",""]}],["Keep the old route available",{type:"noul",instruction:"Does the writer keep the old booking route available?",criteria:["The message satisfies this requirement: Keep the old route.","This requirement is not met by the message."]}],["Offer to pay for participants' time","Does the writer offer to pay retest participants for their time?"],["Invite volunteers through a form","Does the writer invite volunteers to sign up for retesting through a form?"],["Plan a review after two weeks","Does the writer propose a two-week review before deciding on rollout?"],["Plan to review satisfaction ratings","Does the message propose reviewing satisfaction ratings?"],["Plan to review support requests","Does the message propose reviewing support requests?"]],z.minimize,z.guarantee,["Mandatory retesting",{type:"choice",instruction:"What does the writer say about participating in retesting?",criteria:["Participants can choose whether to retest","Everyone must take part","Participation requirements are not stated"]}],z.pressure)]}],Cl=.7,ci={min:Cl,other:.6},it={lock:{name:"Semantic Golfing",description:"Solve everyday writing challenges with as few characters as possible",levels:$1},signalMixing:{name:"Signal Mixing",description:"Find the words that get your point across without crossing the line",levels:F1}};function Ri(s){return Array.from(s).length}function pc(s,n,r){const u=n.questions.map(h=>({...h,document:`Text: ${JSON.stringify(r)}`}));return{modelId:s,input:u[0],...u.length>1?{additionalInputs:u.slice(1)}:{}}}function gc(s){return s==null?[]:[s.answer,...s.additionalAnswers??[]].map(n=>n.type==="noul"?n.value:n.type==="choice"?n.probabilities[1]??0:0)}function ws(s,n,r,u){return!r.trim()||Ri(r)>n.limit||u.length!==n.labels.length||u.some(h=>!Number.isFinite(h)||h<0||h>1)?!1:u.every((h,m)=>m<n.goalCount?h>=(s==="lock"?Cl:ci.min):h<ci.other)}function yp(s,n){if(!Number.isInteger(n)||n<1||n>s.limit)throw new Error("The answer must fit the round's character limit.");return Math.max(1,Math.round(1e3*(1-n/s.limit)))}function W1(s,n){if(n.length!==s.rounds.length)throw new Error("Finish every round before saving a level score.");return s.rounds.reduce((r,u,h)=>r+yp(u,n[h]),0)}function I1(){let s,n;return{promise:new Promise((r,u)=>{s=r,n=u}),resolve:s,reject:n}}const P1=Math.random.bind(Math),ev="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function tv(s=21){let n="",r=s;for(;r--;)n+=ev[P1()*64|0];return n}const av=6e4,vp=s=>s,iv=vp,{clearTimeout:sp,setTimeout:nv}=globalThis;function lv(s,n){const{post:r,on:u,off:h=()=>{},eventNames:m=[],serialize:v=vp,deserialize:g=iv,resolver:S,bind:E="rpc",timeout:b=av,proxify:p=!0}=n;let D=!1;const M=new Map;let C,q;async function O(V,B,G,L){if(D)throw new Error(`[birpc] rpc is closed, cannot call "${V}"`);const ee={m:V,a:B,t:"q"};L&&(ee.o=!0);const ue=async I=>r(v(I));if(G){await ue(ee);return}if(C)try{await C}finally{C=void 0}let{promise:K,resolve:Z,reject:le}=I1();const W=tv();ee.i=W;let se;async function X(I=ee){return b>=0&&(se=nv(()=>{try{if(n.onTimeoutError?.call(q,V,B)!==!0)throw new Error(`[birpc] timeout on calling "${V}"`)}catch(te){le(te)}M.delete(W)},b),typeof se=="object"&&(se=se.unref?.())),M.set(W,{resolve:Z,reject:le,timeoutId:se,method:V}),await ue(I),K}try{n.onRequest?await n.onRequest.call(q,ee,X,Z):await X()}catch(I){if(n.onGeneralError?.call(q,I)!==!0)throw I;return}finally{sp(se),M.delete(W)}return K}const H={$call:(V,...B)=>O(V,B,!1),$callOptional:(V,...B)=>O(V,B,!1,!0),$callEvent:(V,...B)=>O(V,B,!0),$callRaw:V=>O(V.method,V.args,V.event,V.optional),$rejectPendingCalls:F,get $closed(){return D},get $meta(){return n.meta},$close:Q,$functions:s};p?q=new Proxy({},{get(V,B){if(Object.hasOwn(H,B))return H[B];if(B==="then"&&!m.includes("then")&&!("then"in s))return;const G=(...ee)=>O(B,ee,!0);if(m.includes(B))return G.asEvent=G,G;const L=(...ee)=>O(B,ee,!1);return L.asEvent=G,L}}):q=H;function Q(V){D=!0,M.forEach(({reject:B,method:G})=>{const L=new Error(`[birpc] rpc is closed, cannot call "${G}"`);if(V)return V.cause??=L,B(V);B(L)}),M.clear(),h($)}function F(V){const B=Array.from(M.values()).map(({method:G,reject:L})=>V?V({method:G,reject:L}):L(new Error(`[birpc]: rejected pending call "${G}".`)));return M.clear(),B}async function $(V,...B){let G;try{G=g(V)}catch(L){if(n.onGeneralError?.call(q,L)!==!0)throw L;return}if(G.t==="q"){const{m:L,a:ee,o:ue}=G;let K,Z,le=await(S?S.call(q,L,s[L]):s[L]);if(ue&&(le||=()=>{}),!le)Z=new Error(`[birpc] function "${L}" not found`);else try{K=await le.apply(E==="rpc"?q:s,ee)}catch(W){Z=W}if(G.i){if(Z&&n.onFunctionError&&n.onFunctionError.call(q,Z,L,ee)===!0)return;if(!Z)try{await r(v({t:"s",i:G.i,r:K}),...B);return}catch(W){if(Z=W,n.onGeneralError?.call(q,W,L,ee)!==!0)throw W}try{await r(v({t:"s",i:G.i,e:Z}),...B)}catch(W){if(n.onGeneralError?.call(q,W,L,ee)!==!0)throw W}}}else{const{i:L,r:ee,e:ue}=G,K=M.get(L);K&&(sp(K.timeoutId),ue?K.reject(ue):K.resolve(ee)),M.delete(L)}}return C=u($),q}function ov(s,n,r){return lv(r,{timeout:-1,post:u=>window.ipcRenderer.send(n,u),on:u=>window.ipcRenderer.on(s,(h,m)=>{u(m)}),serialize:u=>JSON.stringify(u,(h,m)=>m instanceof Error?String(m):m),deserialize:u=>JSON.parse(u)})}const sv={updateState(s){Bt.state=s}},Ft=ov("llmRpc","llmRpc",sv);Ft.getState().then(s=>{Bt.state=s}).catch(s=>{Bt.state={...Bt.state,error:"Could not connect to the app: "+String(s)}});const rv={document:"",answers:[]},Oi=new ya("play",{queueEvents:!1}),Ue=new ya({screen:"games",game:"lock",level:1,drafts:{}},{queueEvents:!1});function Yi(s,n,r,u){return s[`${n}/${r}/${u}`]??rv}function Ui(s,n,r,u){Ue.state={...Ue.state,drafts:{...Ue.state.drafts,[`${s}/${n}/${r}`]:{...Yi(Ue.state.drafts,s,n,r),...u}}}}function bp(s,n){Ue.state={...Ue.state,screen:"round",game:s,level:n}}function uv(s,n,r,u){const h=Yi(Ue.state.drafts,s,n,r),m=it[n].levels.find(({id:g})=>g===r),v=m.rounds[h.answers.length];v==null||u.error!=null||u.result==null||JSON.stringify(u.result.request)!==JSON.stringify(pc(s,v,h.document))||!ws(n,v,h.document,gc(u.result))||(Ui(s,n,r,{answers:[...h.answers,h.document],document:"",startedAt:void 0}),h.answers.length+1===m.rounds.length&&wp(s,n,r))}async function wp(s,n,r){const u=Yi(Ue.state.drafts,s,n,r);if(!(u.saving||u.completion!=null)){Ui(s,n,r,{saving:!0,error:void 0});try{const h=await Ft.saveLevelScore({modelId:s,game:n,level:r,characters:u.answers.map(Ri)});Ui(s,n,r,{completion:h,saving:!1})}catch(h){Ui(s,n,r,{error:String(h),saving:!1})}}}var qn=dp();const cv=s=>re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"semanticGolferIcon",width:1024,height:1024,viewBox:"0 0 1024 1024",...s},re.createElement("style",null,`
|
|
8
|
+
`+i.stack}}var ks=Object.prototype.hasOwnProperty,Ns=s.unstable_scheduleCallback,_s=s.unstable_cancelCallback,jp=s.unstable_shouldYield,zp=s.unstable_requestPaint,Et=s.unstable_now,Mp=s.unstable_getCurrentPriorityLevel,Dc=s.unstable_ImmediatePriority,Ac=s.unstable_UserBlockingPriority,Yl=s.unstable_NormalPriority,Cp=s.unstable_LowPriority,xc=s.unstable_IdlePriority,Op=s.log,Rp=s.unstable_setDisableYieldValue,Cn=null,qt=null;function Oa(e){if(typeof Op=="function"&&Rp(e),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Cn,e)}catch{}}var jt=Math.clz32?Math.clz32:Yp,Up=Math.log,Hp=Math.LN2;function Yp(e){return e>>>=0,e===0?32:31-(Up(e)/Hp|0)|0}var Bl=256,Gl=262144,Ll=4194304;function fi(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 Ql(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var l=0,o=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=i&134217727;return d!==0?(i=d&~o,i!==0?l=fi(i):(c&=d,c!==0?l=fi(c):a||(a=d&~e,a!==0&&(l=fi(a))))):(d=i&~o,d!==0?l=fi(d):c!==0?l=fi(c):a||(a=i&~e,a!==0&&(l=fi(a)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:l}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kc(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-jt(a),l=1<<i;t|=e[i],a&=~l}return t}function Bp(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 Nc(){var e=Ll;return Ll<<=1,(Ll&62914560)===0&&(Ll=4194304),e}function Es(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Rn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gp(e,t,a,i,l,o){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,k=e.hiddenUpdates;for(a=c&~a;0<a;){var j=31-jt(a),U=1<<j;d[j]=0,y[j]=-1;var D=k[j];if(D!==null)for(k[j]=null,j=0;j<D.length;j++){var _=D[j];_!==null&&(_.lane&=-536870913)}a&=~U}i!==0&&_c(e,i,0),o!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=o&~(c&~t))}function _c(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-jt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Ec(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-jt(a),l=1<<i;l&t|e[i]&t&&(e[i]|=t),a&=~l}}function qc(e,t){var a=t&-t;return a=(a&42)!==0?1:qs(a),(a&(e.suspendedLanes|t))!==0?0:a}function qs(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 js(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jc(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:Ym(e.type))}function zc(e,t){var a=he.p;try{return he.p=e,t()}finally{he.p=a}}var ba=Math.random().toString(36).slice(2),rt="__reactFiber$"+ba,Dt="__reactProps$"+ba,Li="__reactContainer$"+ba,Mc="__reactEvents$"+ba,Lp="__reactListeners$"+ba,Qp="__reactHandles$"+ba,Cc="__reactResources$"+ba,Un="__reactMarker$"+ba,Vl="__reactLoad$"+ba;function Xl(e){delete e[rt],delete e[Dt],delete e[Lp],delete e[Qp]}function hi(e){var t;if(t=e[rt])return t;for(var a=e.parentNode;a;){if(t=a[Li]||a[rt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=bm(e);e!==null;){if(a=e[rt])return a;e=bm(e)}return t}e=a,a=e.parentNode}return null}function Qi(e){if(e=e[rt]||e[Li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Vi(e){var t=e[Cc];return t||(t=e[Cc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[Un]=!0}function Oc(e){e[Vl]=void 0}var Rc=new Set,Uc={};function di(e,t){Xi(e,t),Xi(e+"Capture",t)}function Xi(e,t){for(Uc[e]=t,e=0;e<t.length;e++)Rc.add(t[e])}var Vp=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]*$"),Hc={},Yc={};function Xp(e){return ks.call(Yc,e)?!0:ks.call(Hc,e)?!1:Vp.test(e)?Yc[e]=!0:(Hc[e]=!0,!1)}var qe=!1;function Bc(){var e=qe;return qe=!1,e}function Zl(e,t,a){if(Xp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function Kl(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function wa(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,i)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zp(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(c){a=""+c,o.call(this,c)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){if(!e._valueTracker){var t=Gc(e)?"checked":"value";e._valueTracker=Zp(e,t,""+e[t])}}function Lc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Gc(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}var Kp=/[\n"\\]/g;function Gt(e){return e.replace(Kp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ms(e,t,a,i,l,o,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?c==="number"&&e.value==t?Cs(e,zt(e.value)):Cs(e,zt(t)):a!=null?Cs(e,zt(a)):i!=null&&e.removeAttribute("value"),l==null&&o!=null&&(e.defaultChecked=!!o),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+zt(d):e.removeAttribute("name")}function Qc(e,t,a,i,l,o,c,d){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){zs(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=d?e.checked:!!i,e.defaultChecked=!!i,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),zs(e)}function Cs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Zi(e,t,a,i){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&i&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Vc(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function Xc(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(u(92));if(Se(i)){if(1<i.length)throw Error(u(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),zs(e)}function Ki(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Jp=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 Zc(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||Jp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Kc(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",qe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&a[l]!==i&&(Zc(e,l,i),qe=!0)}else for(var o in t)t.hasOwnProperty(o)&&Zc(e,o,t[o])}function Os(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 $p=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"]]),Fp=/^[\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 Jl(e){return Fp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function oa(){}var Rs=null;function Us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ji=null,$i=null;function Jc(e){var t=Qi(e);if(t&&(e=t.stateNode)){var a=e[Dt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ms(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var l=i[Dt]||null;if(!l)throw Error(u(90));Ms(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Lc(i)}break e;case"textarea":Vc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Zi(e,!!a.multiple,t,!1)}}}var Hs=!1;function $c(e,t,a){if(Hs)return e(t,a);Hs=!0;try{var i=e(t);return i}finally{if(Hs=!1,(Ji!==null||$i!==null)&&($o(),Ji&&(t=Ji,e=$i,$i=Ji=null,Jc(t),e)))for(t=0;t<e.length;t++)Jc(e[t])}}function Yn(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Dt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Ta)try{var Bn={};Object.defineProperty(Bn,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch{Ys=!1}var Ra=null,Bs=null,$l=null;function Fc(){if($l)return $l;var e,t=Bs,a=t.length,i,l="value"in Ra?Ra.value:Ra.textContent,o=l.length;for(e=0;e<a&&t[e]===l[e];e++);var c=a-e;for(i=1;i<=c&&t[a-i]===l[o-i];i++);return $l=l.slice(e,1<i?1-i:void 0)}function Fl(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 Wl(){return!0}function Wc(){return!1}function yt(e){function t(a,i,l,o,c){this._reactName=a,this._targetInst=l,this.type=i,this.nativeEvent=o,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(o):o[d]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Wl:Wc,this.isPropagationStopped=Wc,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Il=yt(Ua),Gn=B({},Ua,{view:0,detail:0}),Wp=yt(Gn),Gs,Ls,Ln,Pl=B({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Ln&&(Ln&&e.type==="mousemove"?(Gs=e.screenX-Ln.screenX,Ls=e.screenY-Ln.screenY):Ls=Gs=0,Ln=e),Gs)},movementY:function(e){return"movementY"in e?e.movementY:Ls}}),Ic=yt(Pl),Ip=B({},Pl,{dataTransfer:0}),Pp=yt(Ip),eg=B({},Gn,{relatedTarget:0}),Qs=yt(eg),tg=B({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),ag=yt(tg),ig=B({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ng=yt(ig),lg=B({},Ua,{data:0}),Pc=yt(lg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sg={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"},rg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rg[e])?!!t[e]:!1}function Vs(){return ug}var cg=B({},Gn,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fg=yt(cg),hg=B({},Pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ef=yt(hg),dg=B({},Ua,{submitter:0}),mg=yt(dg),pg=B({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),gg=yt(pg),yg=B({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),vg=yt(yg),bg=B({},Pl,{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}),wg=yt(bg),Tg=B({},Ua,{newState:0,oldState:0,source:0}),Sg=yt(Tg),Dg=[9,13,27,32],Xs=Ta&&"CompositionEvent"in window,Qn=null;Ta&&"documentMode"in document&&(Qn=document.documentMode);var Ag=Ta&&"TextEvent"in window&&!Qn,tf=Ta&&(!Xs||Qn&&8<Qn&&11>=Qn),af=" ",nf=!1;function lf(e,t){switch(e){case"keyup":return Dg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fi=!1;function xg(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(nf=!0,af);case"textInput":return e=t.data,e===af&&nf?null:e;default:return null}}function kg(e,t){if(Fi)return e==="compositionend"||!Xs&&lf(e,t)?(e=Fc(),$l=Bs=Ra=null,Fi=!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 tf&&t.locale!=="ko"?null:t.data;default:return null}}var Ng={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 sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ng[e.type]:t==="textarea"}function rf(e,t,a,i){Ji?$i?$i.push(i):$i=[i]:Ji=i,t=ts(t,"onChange"),0<t.length&&(a=new Il("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Vn=null,Xn=null;function _g(e){$d(e,0)}function eo(e){var t=Hn(e);if(Lc(t))return e}function uf(e,t){if(e==="change")return t}var cf=!1;if(Ta){var Zs;if(Ta){var Ks="oninput"in document;if(!Ks){var ff=document.createElement("div");ff.setAttribute("oninput","return;"),Ks=typeof ff.oninput=="function"}Zs=Ks}else Zs=!1;cf=Zs&&(!document.documentMode||9<document.documentMode)}function hf(){Vn&&(Vn.detachEvent("onpropertychange",df),Xn=Vn=null)}function df(e){if(e.propertyName==="value"&&eo(Xn)){var t=[];rf(t,Xn,e,Us(e)),$c(_g,t)}}function Eg(e,t,a){e==="focusin"?(hf(),Vn=t,Xn=a,Vn.attachEvent("onpropertychange",df)):e==="focusout"&&hf()}function qg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(Xn)}function jg(e,t){if(e==="click")return eo(t)}function zg(e,t){if(e==="input"||e==="change")return eo(t)}function Mg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:Mg;function Zn(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var l=a[i];if(!ks.call(t,l)||!Mt(e[l],t[l]))return!1}return!0}function Js(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 mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var a=mf(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mf(a)}}function gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Js(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Js(e.document)}return t}function $s(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 Cg=Ta&&"documentMode"in document&&11>=document.documentMode,Wi=null,Fs=null,Kn=null,Ws=!1;function vf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ws||Wi==null||Wi!==Js(i)||(i=Wi,"selectionStart"in i&&$s(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Kn&&Zn(Kn,i)||(Kn=i,i=ts(Fs,"onSelect"),0<i.length&&(t=new Il("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Wi)))}function mi(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Ii={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},Is={},bf={};Ta&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function pi(e){if(Is[e])return Is[e];if(!Ii[e])return e;var t=Ii[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bf)return Is[e]=t[a];return e}var wf=pi("animationend"),Tf=pi("animationiteration"),Sf=pi("animationstart"),Og=pi("transitionrun"),Rg=pi("transitionstart"),Ug=pi("transitioncancel"),Df=pi("transitionend"),Af=new Map,Ps="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(" ");Ps.push("scrollEnd");function It(e,t){Af.set(e,t),di(t,[e])}var Hg=0;function Sa(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=aa.identifierPrefix;var a=Hg++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function xf(e){if(e==null||typeof e=="string")return e;var t=null,a=bn;if(a!==null)for(var i=0;i<a.length;i++){var l=e[a[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function Da(e,t){return e=xf(e),t=xf(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var to=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)},Lt=[],Pi=0,er=0;function ao(){for(var e=Pi,t=er=Pi=0;t<e;){var a=Lt[t];Lt[t++]=null;var i=Lt[t];Lt[t++]=null;var l=Lt[t];Lt[t++]=null;var o=Lt[t];if(Lt[t++]=null,i!==null&&l!==null){var c=i.pending;c===null?l.next=l:(l.next=c.next,c.next=l),i.pending=l}o!==0&&kf(a,l,o)}}function io(e,t,a,i){Lt[Pi++]=e,Lt[Pi++]=t,Lt[Pi++]=a,Lt[Pi++]=i,er|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function tr(e,t,a,i){return io(e,t,a,i),no(e)}function gi(e,t){return io(e,null,null,t),no(e)}function kf(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var l=!1,o=e.return;o!==null;)o.childLanes|=a,i=o.alternate,i!==null&&(i.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(l=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,l&&t!==null&&(l=31-jt(a),e=o.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=a|536870912),o):null}function no(e){if(50<pl)throw pl=0,Jo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var en={};function Yg(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,i){return new Yg(e,t,a,i)}function ar(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Aa(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Nf(e,t){e.flags&=1206910978;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lo(e,t,a,i,l,o){var c=0;if(i=e,typeof i=="function")ar(i)&&(c=1);else if(typeof i=="string")c=d1(e,a,St.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Le:return e=At(31,a,t,l),e.elementType=Le,e.lanes=o,e;case K:return yi(a.children,l,o,t);case Z:c=8,l|=24;break;case oe:return e=At(12,a,t,l|2),e.elementType=oe,e.lanes=o,e;case P:return e=At(13,a,t,l),e.elementType=P,e.lanes=o,e;case te:return e=At(19,a,t,l),e.elementType=te,e.lanes=o,e;case Xe:case T:return e=l|32,e=At(30,a,t,e),e.elementType=T,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ue:c=10;break e;case I:c=9;break e;case X:c=11;break e;case ke:c=14;break e;case ge:c=16,i=null;break e}c=29,a=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=At(c,a,t,l),t.elementType=e,t.type=i,t.lanes=o,t}function yi(e,t,a,i){return e=At(7,e,i,t),e.lanes=a,e}function ir(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function _f(e){var t=At(18,null,null,0);return t.stateNode=e,t}function nr(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ef=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var a=Ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Sc(t)},Ef.set(e,t),t)}return{value:e,source:t,stack:Sc(t)}}var tn=[],an=0,oo=null,Jn=0,Vt=[],Xt=0,Ha=null,sa=1,ra="";function xa(e,t){tn[an++]=Jn,tn[an++]=oo,oo=e,Jn=t}function qf(e,t,a){Vt[Xt++]=sa,Vt[Xt++]=ra,Vt[Xt++]=Ha,Ha=e;var i=sa;e=ra;var l=32-jt(i)-1;i&=~(1<<l),a+=1;var o=32-jt(t)+l;if(30<o){var c=l-l%5;o=(i&(1<<c)-1).toString(32),i>>=c,l-=c,sa=1<<32-jt(t)+l|a<<l|i,ra=o+e}else sa=1<<o|a<<l|i,ra=e}function so(e){e.return!==null&&(xa(e,1),qf(e,1,0))}function lr(e){for(;e===oo;)oo=tn[--an],tn[an]=null,Jn=tn[--an],tn[an]=null;for(;e===Ha;)Ha=Vt[--Xt],Vt[Xt]=null,ra=Vt[--Xt],Vt[Xt]=null,sa=Vt[--Xt],Vt[Xt]=null}function jf(e,t){Vt[Xt++]=sa,Vt[Xt++]=ra,Vt[Xt++]=Ha,sa=t.id,ra=t.overflow,Ha=e}var lt=null,Be=null,De=!1,Ya=null,Zt=!1,or=Error(u(519));function Ba(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $n(Qt(t,e)),or}function zf(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[rt]=e,t[Dt]=i,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<yl.length;a++)xe(yl[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Qc(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Xc(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Pd(t.textContent,a)?(i.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),i.onScroll!=null&&xe("scroll",t),i.onScrollEnd!=null&&xe("scrollend",t),i.onClick!=null&&(t.onclick=oa),t=!0):t=!1,t||Ba(e,!0)}function ro(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:lt=lt.return}}function nn(e){if(e!==lt)return!1;if(!De)return ro(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ru(e.type,e.memoizedProps)),a=!a),a&&Be&&Ba(e),ro(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=vm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Be=vm(e)}else t===27?(t=Be,ai(e.type)?(e=Xu,Xu=null,Be=e):Be=t):Be=lt?Jt(e.stateNode.nextSibling):null;return!0}function vi(){Be=lt=null,De=!1}function sr(){var e=Ya;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Ya=null),e}function $n(e){Ya===null?Ya=[e]:Ya.push(e)}var rr=Tt(null),bi=null,ka=null;function Ga(e,t,a){je(rr,t._currentValue),t._currentValue=a}function Na(e){e._currentValue=rr.current,Qe(rr)}function uo(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function ur(e,t,a,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var o=l.dependencies;if(o!==null){var c=l.child;o=o.firstContext;e:for(;o!==null;){var d=o;o=l;for(var y=0;y<t.length;y++)if(d.context===t[y]){o.lanes|=a,d=o.alternate,d!==null&&(d.lanes|=a),uo(o.return,a,e),i||(c=null);break e}o=d.next}}else if(l.tag===18){if(c=l.return,c===null)throw Error(u(341));c.lanes|=a,o=c.alternate,o!==null&&(o.lanes|=a),uo(c,a,e),c=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),uo(l.return,a,e),c=l.child,c=c!==null?c.sibling:null):c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===e){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}}function wi(e,t,a,i){e=null;for(var l=t,o=!1;l!==null;){if(!o){if((l.flags&524288)!==0)o=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var c=l.alternate;if(c===null)throw Error(u(387));if(c=c.memoizedProps,c!==null){var d=l.type;Mt(l.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(l===Rl.current){if(c=l.alternate,c===null)throw Error(u(387));c.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(En):e=[En])}l=l.return}return e!==null&&ur(t,e,a,i),t.flags|=262144,e!==null}function co(e){for(e=e.firstContext;e!==null;){if(!Mt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ti(e){bi=e,ka=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return Mf(bi,e)}function fo(e,t){return bi===null&&Ti(e),Mf(e,t)}function Mf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ka===null){if(e===null)throw Error(u(308));ka=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ka=ka.next=t;return a}var Bg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Gg=s.unstable_scheduleCallback,Lg=s.unstable_NormalPriority,Fe={$$typeof:ue,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cr(){return{controller:new Bg,data:new Map,refCount:0}}function Fn(e){e.refCount--,e.refCount===0&&Gg(Lg,function(){e.controller.abort()})}function Cf(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];a.indexOf(i)===-1&&a.push(i)}}}var Wn=null;function Qg(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var In=null,fr=0,Si=0,ln=null;function Vg(e,t){if(In===null){var a=In=[];fr=0,Si=Nu(),ln={status:"pending",value:void 0,then:function(i){a.push(i)}}}return fr++,t.then(Of,Of),t}function Of(){if(--fr===0&&(Wn=null,In!==null)){ln!==null&&(ln.status="fulfilled");var e=In;In=null,Si=0,ln=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xg(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),i}var Rf=ne.S;ne.S=function(e,t){if(_d=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Vg(e,t),Wn!==null)for(var a=Dn;a!==null;)Cf(a,Wn),a=a.next;if(a=e.types,a!==null){for(var i=Dn;i!==null;)Cf(i,a),i=i.next;if(Si!==0){i=Wn,i===null&&(i=Wn=[]);for(var l=0;l<a.length;l++){var o=a[l];i.indexOf(o)===-1&&i.push(o)}}}Rf!==null&&Rf(e,t)};var Di=Tt(null);function hr(){var e=Di.current;return e!==null?e:Ye.pooledCache}function ho(e,t){t===null?je(Di,Di.current):je(Di,t.pool)}function Uf(){var e=hr();return e===null?null:{parent:Fe._currentValue,pool:e}}var on=Error(u(460)),dr=Error(u(474)),mo=Error(u(542)),po={then:function(){}};function Hf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(oa,oa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e===void 0&&!("reason"in t)?Error(u(600)):e;default:if(typeof t.status=="string")t.then(oa,oa);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Gf(e),e}throw xi=t,on}}function Ai(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xi=a,on):a}}var xi=null;function Bf(){if(xi===null)throw Error(u(459));var e=xi;return xi=null,e}function Gf(e){if(e===on||e===mo)throw Error(u(483))}var sn=null,Pn=0;function go(e){var t=Pn;return Pn+=1,sn===null&&(sn=[]),Yf(sn,e,t)}function La(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yo(e,t){throw t.$$typeof===V?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lf(e){function t(x,w){if(e){var N=x.deletions;N===null?(x.deletions=[w],x.flags|=16):N.push(w)}}function a(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function i(x){for(var w=new Map;x!==null;)x.key===null?w.set(x.index,x):w.set(x.key,x),x=x.sibling;return w}function l(x,w){return x=Aa(x,w),x.index=0,x.sibling=null,x}function o(x,w,N){return x.index=N,e?(N=x.alternate,N!==null?(N=N.index,N<w?(x.flags|=2,w):N):(x.flags|=134217730,w)):(x.flags|=1048576,w)}function c(x){return e&&x.alternate===null&&(x.flags|=134217730),x}function d(x,w,N,R){return w===null||w.tag!==6?(w=ir(N,x.mode,R),w.return=x,w):(w=l(w,N),w.return=x,w)}function y(x,w,N,R){var ae=N.type;return ae===K?(x=j(x,w,N.props.children,R,N.key),La(x,N),x):w!==null&&(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ge&&Ai(ae)===w.type)?(w=l(w,N.props),La(w,N),w.return=x,w):(w=lo(N.type,N.key,N.props,null,x.mode,R),La(w,N),w.return=x,w)}function k(x,w,N,R){return w===null||w.tag!==4||w.stateNode.containerInfo!==N.containerInfo||w.stateNode.implementation!==N.implementation?(w=nr(N,x.mode,R),w.return=x,w):(w=l(w,N.children||[]),w.return=x,w)}function j(x,w,N,R,ae){return w===null||w.tag!==7?(w=yi(N,x.mode,R,ae),w.return=x,w):(w=l(w,N),w.return=x,w)}function U(x,w,N){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ir(""+w,x.mode,N),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case W:return N=lo(w.type,w.key,w.props,null,x.mode,N),La(N,w),N.return=x,N;case le:return w=nr(w,x.mode,N),w.return=x,w;case ge:return w=Ai(w),U(x,w,N)}if(Se(w)||ie(w))return w=yi(w,x.mode,N,null),w.return=x,w;if(typeof w.then=="function")return U(x,go(w),N);if(w.$$typeof===ue)return U(x,fo(x,w),N);yo(x,w)}return null}function D(x,w,N,R){var ae=w!==null?w.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ae!==null?null:d(x,w,""+N,R);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case W:return N.key===ae?y(x,w,N,R):null;case le:return N.key===ae?k(x,w,N,R):null;case ge:return N=Ai(N),D(x,w,N,R)}if(Se(N)||ie(N))return ae!==null?null:j(x,w,N,R,null);if(typeof N.then=="function")return D(x,w,go(N),R);if(N.$$typeof===ue)return D(x,w,fo(x,N),R);yo(x,N)}return null}function _(x,w,N,R,ae){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return x=x.get(N)||null,d(w,x,""+R,ae);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case W:return x=x.get(R.key===null?N:R.key)||null,y(w,x,R,ae);case le:return x=x.get(R.key===null?N:R.key)||null,k(w,x,R,ae);case ge:return R=Ai(R),_(x,w,N,R,ae)}if(Se(R)||ie(R))return x=x.get(N)||null,j(w,x,R,ae,null);if(typeof R.then=="function")return _(x,w,N,go(R),ae);if(R.$$typeof===ue)return _(x,w,N,fo(w,R),ae);yo(w,R)}return null}function F(x,w,N,R){for(var ae=null,_e=null,ce=w,me=w=0,Pe=null;ce!==null&&me<N.length;me++){ce.index>me?(Pe=ce,ce=null):Pe=ce.sibling;var Ee=D(x,ce,N[me],R);if(Ee===null){ce===null&&(ce=Pe);break}e&&ce&&Ee.alternate===null&&t(x,ce),w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee,ce=Pe}if(me===N.length)return a(x,ce),De&&xa(x,me),ae;if(ce===null){for(;me<N.length;me++)ce=U(x,N[me],R),ce!==null&&(w=o(ce,w,me),_e===null?ae=ce:_e.sibling=ce,_e=ce);return De&&xa(x,me),ae}for(ce=i(ce);me<N.length;me++)Pe=_(ce,x,me,N[me],R),Pe!==null&&(e&&(Ee=Pe.alternate,Ee!==null&&ce.delete(Ee.key===null?me:Ee.key)),w=o(Pe,w,me),_e===null?ae=Pe:_e.sibling=Pe,_e=Pe);return e&&ce.forEach(function(si){return t(x,si)}),De&&xa(x,me),ae}function se(x,w,N,R){if(N==null)throw Error(u(151));for(var ae=null,_e=null,ce=w,me=w=0,Pe=null,Ee=N.next();ce!==null&&!Ee.done;me++,Ee=N.next()){ce.index>me?(Pe=ce,ce=null):Pe=ce.sibling;var si=D(x,ce,Ee.value,R);if(si===null){ce===null&&(ce=Pe);break}e&&ce&&si.alternate===null&&t(x,ce),w=o(si,w,me),_e===null?ae=si:_e.sibling=si,_e=si,ce=Pe}if(Ee.done)return a(x,ce),De&&xa(x,me),ae;if(ce===null){for(;!Ee.done;me++,Ee=N.next())Ee=U(x,Ee.value,R),Ee!==null&&(w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee);return De&&xa(x,me),ae}for(ce=i(ce);!Ee.done;me++,Ee=N.next())Ee=_(ce,x,me,Ee.value,R),Ee!==null&&(e&&(Pe=Ee.alternate,Pe!==null&&ce.delete(Pe.key===null?me:Pe.key)),w=o(Ee,w,me),_e===null?ae=Ee:_e.sibling=Ee,_e=Ee);return e&&ce.forEach(function(x1){return t(x,x1)}),De&&xa(x,me),ae}function we(x,w,N,R){if(typeof N=="object"&&N!==null&&N.type===K&&N.key===null&&N.props.ref===void 0&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case W:e:{for(var ae=N.key;w!==null;){if(w.key===ae){if(ae=N.type,ae===K){if(w.tag===7){a(x,w.sibling),R=l(w,N.props.children),La(R,N),R.return=x,x=R;break e}}else if(w.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===ge&&Ai(ae)===w.type){a(x,w.sibling),R=l(w,N.props),La(R,N),R.return=x,x=R;break e}a(x,w);break}else t(x,w);w=w.sibling}N.type===K?(R=yi(N.props.children,x.mode,R,N.key),La(R,N),R.return=x,x=R):(R=lo(N.type,N.key,N.props,null,x.mode,R),La(R,N),R.return=x,x=R)}return c(x);case le:e:{for(ae=N.key;w!==null;){if(w.key===ae)if(w.tag===4&&w.stateNode.containerInfo===N.containerInfo&&w.stateNode.implementation===N.implementation){a(x,w.sibling),R=l(w,N.children||[]),R.return=x,x=R;break e}else{a(x,w);break}else t(x,w);w=w.sibling}R=nr(N,x.mode,R),R.return=x,x=R}return c(x);case ge:return N=Ai(N),we(x,w,N,R)}if(Se(N))return F(x,w,N,R);if(ie(N)){if(ae=ie(N),typeof ae!="function")throw Error(u(150));return N=ae.call(N),se(x,w,N,R)}if(typeof N.then=="function")return we(x,w,go(N),R);if(N.$$typeof===ue)return we(x,w,fo(x,N),R);yo(x,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,w!==null&&w.tag===6?(a(x,w.sibling),R=l(w,N),R.return=x,x=R):(a(x,w),R=ir(N,x.mode,R),R.return=x,x=R),c(x)):a(x,w)}return function(x,w,N,R){try{Pn=0;var ae=we(x,w,N,R);return sn=null,ae}catch(ce){if(ce===on||ce===mo)throw ce;var _e=At(29,ce,null,x.mode);return _e.lanes=R,_e.return=x,_e}}}var ki=Lf(!0),Qf=Lf(!1),Qa=!1;function mr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pr(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 Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=no(e),kf(e,null,a),t}return io(e,i,t,a),no(e)}function el(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ec(e,a)}}function gr(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var l=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?l=o=c:o=o.next=c,a=a.next}while(a!==null);o===null?l=o=t:o=o.next=t}else l=o=t;a={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var yr=!1;function tl(){if(yr){var e=ln;if(e!==null)throw e}}function al(e,t,a,i){yr=!1;var l=e.updateQueue;Qa=!1;var o=l.firstBaseUpdate,c=l.lastBaseUpdate,d=l.shared.pending;if(d!==null){l.shared.pending=null;var y=d,k=y.next;y.next=null,c===null?o=k:c.next=k,c=y;var j=e.alternate;j!==null&&(j=j.updateQueue,d=j.lastBaseUpdate,d!==c&&(d===null?j.firstBaseUpdate=k:d.next=k,j.lastBaseUpdate=y))}if(o!==null){var U=l.baseState;c=0,j=k=y=null,d=o;do{var D=d.lane&-536870913,_=D!==d.lane;if(_?(Ne&D)===D:(i&D)===D){D!==0&&D===Si&&(yr=!0),j!==null&&(j=j.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var F=e,se=d;D=t;var we=a;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){U=F.call(we,U,D);break e}U=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,D=typeof F=="function"?F.call(we,U,D):F,D==null)break e;U=B({},U,D);break e;case 2:Qa=!0}}D=d.callback,D!==null&&(e.flags|=64,_&&(e.flags|=8192),_=l.callbacks,_===null?l.callbacks=[D]:_.push(D))}else _={lane:D,tag:d.tag,payload:d.payload,callback:d.callback,next:null},j===null?(k=j=_,y=U):j=j.next=_,c|=D;if(d=d.next,d===null){if(d=l.shared.pending,d===null)break;_=d,d=_.next,_.next=null,l.lastBaseUpdate=_,l.shared.pending=null}}while(!0);j===null&&(y=U),l.baseState=y,l.firstBaseUpdate=k,l.lastBaseUpdate=j,o===null&&(l.shared.lanes=0),Ia|=c,e.lanes=c,e.memoizedState=U}}function Vf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Xf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Vf(a[e],t)}var Za=Tt(null),vo=Tt(0);function Zf(e,t){e=za,je(vo,e),je(Za,t),za=e|t.baseLanes}function vr(){je(vo,za),je(Za,Za.current)}function br(){za=vo.current,Qe(Za),Qe(vo)}var ct=Tt(null),gt=null;function Ka(e){var t=e.alternate;je(ft,ft.current&1),je(ct,e),gt===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(gt=e)}function wr(e){je(ft,ft.current),je(ct,e),gt===null&&(gt=e)}function Kf(e){e.tag===22?(je(ft,ft.current),je(ct,e),gt===null&&(gt=e)):Ja()}function Ja(){je(ft,ft.current),je(ct,ct.current)}function Ct(e){Qe(ct),gt===e&&(gt=null),Qe(ft)}var ft=Tt(0);function il(e,t){je(ct,ct.current),je(ft,t)}function Tr(e){Qe(ft),Qe(ct),gt===e&&(gt=null)}function bo(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qu(a)||Vu(a)))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 _a=0,be=null,He=null,We=null,wo=!1,rn=!1,Ni=!1,To=0,nl=0,un=null,Zg=0;function Ke(){throw Error(u(321))}function Sr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Mt(e[a],t[a]))return!1;return!0}function Dr(e,t,a,i,l,o){return _a=o,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ne.H=e===null||e.memoizedState===null?qh:jh,Ni=!1,o=a(i,l),Ni=!1,rn&&(o=$f(t,a,i,l)),Jf(e),o}function Jf(e){ne.H=_o;var t=He!==null&&He.next!==null;if(_a=0,We=He=be=null,wo=!1,nl=0,un=null,t)throw Error(u(300));e===null||Ie||(e=e.dependencies,e!==null&&co(e)&&(Ie=!0))}function $f(e,t,a,i){be=e;var l=0;do{if(rn&&(un=null),nl=0,rn=!1,25<=l)throw Error(u(301));if(l+=1,We=He=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ne.H=ey,o=t(a,i)}while(rn);return o}function Kg(){var e=ne.H,t=e.useState()[0];return t=typeof t.then=="function"?ll(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(be.flags|=1024),t}function Ar(){var e=To!==0;return To=0,e}function xr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function kr(e){if(wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wo=!1}_a=0,We=He=be=null,rn=!1,nl=To=0,un=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?be.memoizedState=We=e:We=We.next=e,We}function $e(){if(He===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?be.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw be.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?be.memoizedState=We=e:We=We.next=e}return We}function So(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ll(e){var t=nl;return nl+=1,un===null&&(un=[]),e=Yf(un,e,t),t=be,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,ne.H=t===null||t.memoizedState===null?qh:jh),e}function Do(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ll(e);if(e.$$typeof===G)return;if(e.$$typeof===ue)return ut(e)}throw Error(u(438,String(e)))}function Nr(e){var t=null,a=be.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=So(),be.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=tt;return t.index++,a}function Ea(e,t){return typeof t=="function"?t(e):t}function Ao(e){var t=$e();return _r(t,He,e)}function _r(e,t,a){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=a;var l=e.baseQueue,o=i.pending;if(o!==null){if(l!==null){var c=l.next;l.next=o.next,o.next=c}t.baseQueue=l=o,i.pending=null}if(o=e.baseState,l===null)e.memoizedState=o;else{t=l.next;var d=c=null,y=null,k=t,j=!1;do{var U=k.lane&-536870913;if(U!==k.lane?(Ne&U)===U:(_a&U)===U){var D=k.revertLane;if(D===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),U===Si&&(j=!0);else if((_a&D)===D){k=k.next,D===Si&&(j=!0);continue}else U={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},y===null?(d=y=U,c=o):y=y.next=U,be.lanes|=D,Ia|=D;U=k.action,Ni&&a(o,U),o=k.hasEagerState?k.eagerState:a(o,U)}else D={lane:U,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},y===null?(d=y=D,c=o):y=y.next=D,be.lanes|=U,Ia|=U;k=k.next}while(k!==null&&k!==t);if(y===null?c=o:y.next=d,!Mt(o,e.memoizedState)&&(Ie=!0,j&&(a=ln,a!==null)))throw a;e.memoizedState=o,e.baseState=c,e.baseQueue=y,i.lastRenderedState=o}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Er(e){var t=$e(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var i=a.dispatch,l=a.pending,o=t.memoizedState;if(l!==null){a.pending=null;var c=l=l.next;do o=e(o,c.action),c=c.next;while(c!==l);Mt(o,t.memoizedState)||(Ie=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,i]}function Ff(e,t,a){var i=be,l=$e(),o=De;if(o){if(a===void 0)throw Error(u(407));a=a()}else a=t();var c=!Mt((He||l).memoizedState,a);if(c&&(l.memoizedState=a,Ie=!0),l=l.queue,zr(Pf.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||c||We!==null&&(We.memoizedState.tag&1)!==0,cn(e?9:8,{destroy:void 0},If.bind(null,i,l,a,t),null),e){if(i.flags|=2048,Ye===null)throw Error(u(349));o||(_a&127)!==0||Wf(i,t,a)}return a}function Wf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=be.updateQueue,t===null?(t=So(),be.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function If(e,t,a,i){t.value=a,t.getSnapshot=i,eh(t)&&th(e)}function Pf(e,t,a){return a(function(){eh(t)&&th(e)})}function eh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Mt(e,a)}catch{return!0}}function th(e){var t=gi(e,2);t!==null&&_t(t,e,2)}function qr(e){var t=vt();if(typeof e=="function"){var a=e;if(e=a(),Ni){Oa(!0);try{a()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t}function ah(e,t,a,i){return e.baseState=a,_r(e,He,typeof i=="function"?i:Ea)}function Jg(e,t,a,i,l){if(No(e))throw Error(u(485));if(e=t.action,e!==null){var o={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){o.listeners.push(c)}};ne.T!==null?a(!0):o.isTransition=!1,i(o),a=t.pending,a===null?(o.next=t.pending=o,ih(t,o)):(o.next=a.next,t.pending=a.next=o)}}function ih(e,t){var a=t.action,i=t.payload,l=e.state;if(t.isTransition){var o=ne.T,c={};c.types=o!==null?o.types:null,ne.T=c;try{var d=a(l,i),y=ne.S;y!==null&&y(c,d),nh(e,t,d)}catch(k){jr(e,t,k)}finally{o!==null&&c.types!==null&&(o.types=c.types),ne.T=o}}else try{o=a(l,i),nh(e,t,o)}catch(k){jr(e,t,k)}}function nh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){lh(e,t,i)},function(i){return jr(e,t,i)}):lh(e,t,a)}function lh(e,t,a){t.status="fulfilled",t.value=a,oh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ih(e,a)))}function jr(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,oh(t),t=t.next;while(t!==i)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sh(e,t){return t}function rh(e,t){if(De){var a=Ye.formState;if(a!==null){e:{var i=be;if(De){if(Be){t:{for(var l=Be,o=Zt;l.nodeType!==8;){if(!o){l=null;break t}if(l=Jt(l.nextSibling),l===null){l=null;break t}}o=l.data,l=o==="F!"||o==="F"?l:null}if(l){Be=Jt(l.nextSibling),i=l.data==="F!";break e}}Ba(i)}i=!1}i&&(t=a[0])}}return a=vt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sh,lastRenderedState:t},a.queue=i,a=Nh.bind(null,be,i),i.dispatch=a,i=qr(!1),o=Ur.bind(null,be,!1,i.queue),i=vt(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,a=Jg.bind(null,be,l,o,a),l.dispatch=a,i.memoizedState=e,[t,a,!1]}function uh(e){var t=$e();return ch(t,He,e)}function ch(e,t,a){if(t=_r(e,t,sh)[0],e=Ao(Ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ll(t)}catch(c){throw c===on?mo:c}else i=t;t=$e();var l=t.queue,o=l.dispatch;return a!==t.memoizedState&&(be.flags|=2048,cn(9,{destroy:void 0},$g.bind(null,l,a),null)),[i,o,e]}function $g(e,t){e.action=t}function fh(e){var t=$e(),a=He;if(a!==null)return ch(t,a,e);$e(),t=t.memoizedState,a=$e();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function cn(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=be.updateQueue,t===null&&(t=So(),be.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function hh(){return $e().memoizedState}function xo(e,t,a,i){var l=vt();be.flags|=e,l.memoizedState=cn(1|t,{destroy:void 0},a,i===void 0?null:i)}function ko(e,t,a,i){var l=$e();i=i===void 0?null:i;var o=l.memoizedState.inst;He!==null&&i!==null&&Sr(i,He.memoizedState.deps)?l.memoizedState=cn(t,o,a,i):(be.flags|=e,l.memoizedState=cn(1|t,o,a,i))}function dh(e,t){xo(8390656,8,e,t)}function zr(e,t){ko(2048,8,e,t)}function Fg(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=So(),be.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function mh(e){var t=$e().memoizedState;return Fg({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function ph(e,t){return ko(4,2,e,t)}function gh(e,t){return ko(4,4,e,t)}function yh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,a){a=a!=null?a.concat([e]):null,ko(4,4,yh.bind(null,t,e),a)}function Mr(){}function bh(e,t){var a=$e();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Sr(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function wh(e,t){var a=$e();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Sr(t,i[1]))return i[0];if(i=e(),Ni){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[i,t],i}function Cr(e,t,a){return a===void 0||(_a&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=qd(),be.lanes|=e,Ia|=e,a)}function Th(e,t,a,i){return Mt(a,t)?a:Za.current!==null?(e=Cr(e,a,i),Mt(e,t)||(Ie=!0),e):(_a&106)===0||(_a&1073741824)!==0&&(Ne&261930)===0?(Ie=!0,e.memoizedState=a):(e=qd(),be.lanes|=e,Ia|=e,t)}function Sh(e,t,a,i,l){var o=he.p;he.p=o!==0&&8>o?o:8;var c=ne.T,d={};d.types=c!==null?c.types:null,ne.T=d,Ur(e,!1,t,a);try{var y=l(),k=ne.S;if(k!==null&&k(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var j=Xg(y,i);ol(e,t,j,Ht(e))}else ol(e,t,i,Ht(e))}catch(U){ol(e,t,{then:function(){},status:"rejected",reason:U},Ht())}finally{he.p=o,c!==null&&d.types!==null&&(c.types=d.types),ne.T=c}}function Wg(){}function Or(e,t,a,i){if(e.tag!==5)throw Error(u(476));var l=Dh(e).queue;Sh(e,l,t,pt,a===null?Wg:function(){return Ah(e),a(i)})}function Dh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pt,baseState:pt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:pt},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Dh(e);t.next===null&&(t=e.alternate.memoizedState),ol(e,t.next.queue,{},Ht())}function Rr(){return ut(En)}function xh(){return $e().memoizedState}function kh(){return $e().memoizedState}function Ig(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ht();e=Va(a);var i=Xa(t,e,a);i!==null&&(_t(i,t,a),el(i,t,a)),t={cache:cr()},e.payload=t;return}t=t.return}}function Pg(e,t,a){var i=Ht();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},No(e)?_h(t,a):(a=tr(e,t,a,i),a!==null&&(_t(a,e,i),Eh(a,t,i)))}function Nh(e,t,a){var i=Ht();ol(e,t,a,i)}function ol(e,t,a,i){var l={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(No(e))_h(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var c=t.lastRenderedState,d=o(c,a);if(l.hasEagerState=!0,l.eagerState=d,Mt(d,c))return io(e,t,l,0),Ye===null&&ao(),!1}catch{}if(a=tr(e,t,l,i),a!==null)return _t(a,e,i),Eh(a,t,i),!0}return!1}function Ur(e,t,a,i){if(i={lane:2,revertLane:Nu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},No(e)){if(t)throw Error(u(479))}else t=tr(e,a,i,2),t!==null&&_t(t,e,2)}function No(e){var t=e.alternate;return e===be||t!==null&&t===be}function _h(e,t){rn=wo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Eh(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Ec(e,a)}}var _o={readContext:ut,use:Do,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke,useEffectEvent:Ke},qh={readContext:ut,use:Do,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:dh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,xo(4194308,4,yh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return xo(4194308,4,e,t)},useInsertionEffect:function(e,t){xo(4,2,e,t)},useMemo:function(e,t){var a=vt();t=t===void 0?null:t;var i=e();if(Ni){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=vt();if(a!==void 0){var l=a(t);if(Ni){Oa(!0);try{a(t)}finally{Oa(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=Pg.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=qr(e);var t=e.queue,a=Nh.bind(null,be,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Mr,useDeferredValue:function(e,t){var a=vt();return Cr(a,e,t)},useTransition:function(){var e=qr(!1);return e=Sh.bind(null,be,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=be,l=vt();if(De){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ye===null)throw Error(u(349));(Ne&127)!==0||Wf(i,t,a)}l.memoizedState=a;var o={value:a,getSnapshot:t};return l.queue=o,dh(Pf.bind(null,i,o,e),[e]),i.flags|=2048,cn(9,{destroy:void 0},If.bind(null,i,o,a,t),null),a},useId:function(){var e=vt(),t=Ye.identifierPrefix;if(De){var a=ra,i=sa;a=(i&~(1<<32-jt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=To++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Zg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rr,useFormState:rh,useActionState:rh,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ur.bind(null,be,!0,a),a.dispatch=t,[e,t]},useMemoCache:Nr,useCacheRefresh:function(){return vt().memoizedState=Ig.bind(null,be)},useEffectEvent:function(e){var t=vt(),a={impl:e};return t.memoizedState=a,function(){if((ze&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},jh={readContext:ut,use:Do,useCallback:bh,useContext:ut,useEffect:zr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:gh,useMemo:wh,useReducer:Ao,useRef:hh,useState:function(){return Ao(Ea)},useDebugValue:Mr,useDeferredValue:function(e,t){var a=$e();return Th(a,He.memoizedState,e,t)},useTransition:function(){var e=Ao(Ea)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:ll(e),t]},useSyncExternalStore:Ff,useId:xh,useHostTransitionStatus:Rr,useFormState:uh,useActionState:uh,useOptimistic:function(e,t){var a=$e();return ah(a,He,e,t)},useMemoCache:Nr,useCacheRefresh:kh,useEffectEvent:mh},ey={readContext:ut,use:Do,useCallback:bh,useContext:ut,useEffect:zr,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:gh,useMemo:wh,useReducer:Er,useRef:hh,useState:function(){return Er(Ea)},useDebugValue:Mr,useDeferredValue:function(e,t){var a=$e();return He===null?Cr(a,e,t):Th(a,He.memoizedState,e,t)},useTransition:function(){var e=Er(Ea)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:ll(e),t]},useSyncExternalStore:Ff,useId:xh,useHostTransitionStatus:Rr,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var a=$e();return He!==null?ah(a,He,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Nr,useCacheRefresh:kh,useEffectEvent:mh};function Hr(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:B({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yr={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Ht(),l=Va(i);l.payload=t,a!=null&&(l.callback=a),t=Xa(e,l,i),t!==null&&(_t(t,e,i),el(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Ht(),l=Va(i);l.tag=1,l.payload=t,a!=null&&(l.callback=a),t=Xa(e,l,i),t!==null&&(_t(t,e,i),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ht(),i=Va(a);i.tag=2,t!=null&&(i.callback=t),t=Xa(e,i,a),t!==null&&(_t(t,e,a),el(t,e,a))}};function zh(e,t,a,i,l,o,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,c):t.prototype&&t.prototype.isPureReactComponent?!Zn(a,i)||!Zn(l,o):!0}function Mh(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Yr.enqueueReplaceState(t,t.state,null)}function _i(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=B({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ch(e){to(e)}function Oh(e){console.error(e)}function Rh(e){to(e)}function Eo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Uh(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Br(e,t,a){return a=Va(a),a.tag=3,a.payload={element:null},a.callback=function(){Eo(e,t)},a}function Hh(e){return e=Va(e),e.tag=3,e}function Yh(e,t,a,i){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var o=i.value;e.payload=function(){return l(o)},e.callback=function(){Uh(t,a,i)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Uh(t,a,i),typeof l!="function"&&(Pa===null?Pa=new Set([this]):Pa.add(this));var d=i.stack;this.componentDidCatch(i.value,{componentStack:d!==null?d:""})})}function ty(e,t,a,i,l){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&wi(t,a,l,!0),a=ct.current,a!==null){switch(a.tag){case 31:case 13:case 19:return gt===null?Fo():a.alternate===null&&Je===0&&(Je=3),a.flags&=-257,a.flags|=65536,a.lanes=l,i===po?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Au(e,i,l)),!1;case 22:return a.flags|=65536,i===po?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),Au(e,i,l)),!1}throw Error(u(435,a.tag))}return Au(e,i,l),Fo(),!1}if(De)return t=ct.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==or&&(e=Error(u(422),{cause:i}),$n(Qt(e,a)))):(i!==or&&(t=Error(u(423),{cause:i}),$n(Qt(t,a))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=Qt(i,a),l=Br(e.stateNode,i,l),gr(e,l),Je!==4&&(Je=2)),!1;var o=Error(u(520),{cause:i});if(o=Qt(o,a),ml===null?ml=[o]:ml.push(o),Je!==4&&(Je=2),t===null)return!0;i=Qt(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Br(a.stateNode,i,e),gr(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pa===null||!Pa.has(o))))return a.flags|=65536,l&=-l,a.lanes|=l,l=Hh(l),Yh(l,e,a,i),gr(a,l),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var Gr=Error(u(461)),Ie=!1;function at(e,t,a,i){t.child=e===null?Qf(t,null,a,i):ki(t,e.child,a,i)}function Bh(e,t,a,i,l){a=a.render;var o=t.ref;if("ref"in i){var c={};for(var d in i)d!=="ref"&&(c[d]=i[d])}else c=i;return Ti(t),i=Dr(e,t,a,c,o,l),d=Ar(),e!==null&&!Ie?(xr(e,t,l),qa(e,t,l)):(De&&d&&so(t),t.flags|=1,at(e,t,i,l),t.child)}function Gh(e,t,a,i,l){if(e===null){var o=a.type;return typeof o=="function"&&!ar(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,Lh(e,t,o,i,l)):(e=lo(a.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!$r(e,l)){var c=o.memoizedProps;if(a=a.compare,a=a!==null?a:Zn,a(c,i)&&e.ref===t.ref)return qa(e,t,l)}return t.flags|=1,e=Aa(o,i),e.ref=t.ref,e.return=t,t.child=e}function Lh(e,t,a,i,l){if(e!==null){var o=e.memoizedProps;if(Zn(o,i)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=i=o,$r(e,l))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,qa(e,t,l)}return Lr(e,t,a,i,l)}function Qh(e,t,a,i){var l=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~o}else i=0,t.child=null;return Vh(e,t,o,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(t,o!==null?o.cachePool:null),o!==null?Zf(t,o):vr(),Kf(t);else return i=t.lanes=536870912,Vh(e,t,o!==null?o.baseLanes|a:a,a,i)}else o!==null?(ho(t,o.cachePool),Zf(t,o),Ja(),t.memoizedState=null):(e!==null&&ho(t,null),vr(),Ja());return at(e,t,l,a),t.child}function sl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vh(e,t,a,i,l){var o=hr();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&ho(t,null),vr(),Kf(t),e!==null&&wi(e,t,i,!0),t.childLanes=l,null}function qo(e,t){return t=jo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xh(e,t,a){return ki(t,e.child,null,a),e=qo(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function ay(e,t,a){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(i.mode==="hidden")return e=qo(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},sl(null,e);if(wr(t),(e=Be)?(e=ym(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=_f(e),a.return=t,t.child=a,lt=t,Be=null)):e=null,e===null)throw Ba(t);return t.lanes=536870912,null}return qo(t,i)}var o=e.memoizedState;if(o!==null){var c=o.dehydrated;if(wr(t),l)if(t.flags&256)t.flags&=-257,t=Xh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Ie||wi(e,t,a,!1),l=(a&e.childLanes)!==0,Ie||l){if(Za.current===null){if(i=Ye,i!==null&&(c=qc(i,a),c!==0&&c!==o.retryLane))throw o.retryLane=c,gi(e,c),_t(i,e,c),Gr;Fo()}t=Xh(e,t,a)}else e=o.treeContext,Be=Jt(c.nextSibling),lt=t,De=!0,Ya=null,Zt=!1,e!==null&&jf(t,e),t=qo(t,i),t.flags|=134221824;return t}return e=Aa(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fn(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Lr(e,t,a,i,l){return Ti(t),a=Dr(e,t,a,i,void 0,l),i=Ar(),e!==null&&!Ie?(xr(e,t,l),qa(e,t,l)):(De&&i&&so(t),t.flags|=1,at(e,t,a,l),t.child)}function Zh(e,t,a,i,l,o){return Ti(t),t.updateQueue=null,a=$f(t,i,a,l),Jf(e),i=Ar(),e!==null&&!Ie?(xr(e,t,o),qa(e,t,o)):(De&&i&&so(t),t.flags|=1,at(e,t,a,o),t.child)}function Kh(e,t,a,i,l){if(Ti(t),t.stateNode===null){var o=en,c=a.contextType;typeof c=="object"&&c!==null&&(o=ut(c)),o=new a(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Yr,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},mr(t),c=a.contextType,o.context=typeof c=="object"&&c!==null?ut(c):en,o.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(Hr(t,a,c,i),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(c=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),c!==o.state&&Yr.enqueueReplaceState(o,o.state,null),al(t,i,o,l),tl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var d=t.memoizedProps,y=_i(a,d);o.props=y;var k=o.context,j=a.contextType;c=en,typeof j=="object"&&j!==null&&(c=ut(j));var U=a.getDerivedStateFromProps;j=typeof U=="function"||typeof o.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,j||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(d||k!==c)&&Mh(t,o,i,c),Qa=!1;var D=t.memoizedState;o.state=D,al(t,i,o,l),tl(),k=t.memoizedState,d||D!==k||Qa?(typeof U=="function"&&(Hr(t,a,U,i),k=t.memoizedState),(y=Qa||zh(t,a,y,i,D,k,c))?(j||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=i,t.memoizedState=k),o.props=i,o.state=k,o.context=c,i=y):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,pr(e,t),c=t.memoizedProps,j=_i(a,c),o.props=j,U=t.pendingProps,D=o.context,k=a.contextType,y=en,typeof k=="object"&&k!==null&&(y=ut(k)),d=a.getDerivedStateFromProps,(k=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(c!==U||D!==y)&&Mh(t,o,i,y),Qa=!1,D=t.memoizedState,o.state=D,al(t,i,o,l),tl();var _=t.memoizedState;c!==U||D!==_||Qa||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof d=="function"&&(Hr(t,a,d,i),_=t.memoizedState),(j=Qa||zh(t,a,j,i,D,_,y)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,_,y),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,_,y)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=_),o.props=i,o.state=_,o.context=y,i=j):(typeof o.componentDidUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,fn(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ki(t,e.child,null,l),t.child=ki(t,null,a,l)):at(e,t,a,l),t.memoizedState=o.state,e=t.child):e=qa(e,t,l),e}function Jh(e,t,a,i){return vi(),t.flags|=256,at(e,t,a,i),t.child}var Qr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vr(e){return{baseLanes:e,cachePool:Uf()}}function Xr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Ut),e}function $h(e,t,a){var i=t.pendingProps,l=!1,o=(t.flags&128)!==0,c;if((c=o)||(c=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),c&&(l=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(l?Ka(t):Ja(),(e=Be)?(e=ym(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=_f(e),a.return=t,t.child=a,lt=t,Be=null)):e=null,e===null)throw Ba(t);return Vu(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,l?(Ja(),l=t.mode,o=jo({mode:"hidden",children:o},l),i=yi(i,l,a,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=Vr(a),i.childLanes=Xr(e,c,a),t.memoizedState=Qr,sl(null,i)):(Ka(t),Zr(t,o))}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(y!==null)return iy(e,t,o,c,i,y,d,a)}return l?(Ja(),l=i.fallback,o=t.mode,d=e.child,y=d.sibling,i=Aa(d,{mode:"hidden",children:i.children}),i.subtreeFlags=d.subtreeFlags&1206910976,y!==null?l=Aa(y,l):(l=yi(l,o,a,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,sl(null,i),i=t.child,l=e.child.memoizedState,l===null?l=Vr(a):(o=l.cachePool,o!==null?(d=Fe._currentValue,o=o.parent!==d?{parent:d,pool:d}:o):o=Uf(),l={baseLanes:l.baseLanes|a,cachePool:o}),i.memoizedState=l,i.childLanes=Xr(e,c,a),t.memoizedState=Qr,sl(e.child,i)):(Ka(t),a=e.child,e=a.sibling,a=Aa(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function Zr(e,t){return t=jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jo(e,t){return e=At(22,e,null,t),e.lanes=0,e}function zo(e,t,a){return ki(t,e.child,null,a),e=Zr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iy(e,t,a,i,l,o,c,d){if(a)return t.flags&256?(Ka(t),t.flags&=-257,zo(e,t,d)):t.memoizedState!==null?(Ja(),t.child=e.child,t.flags|=128,null):(Ja(),o=l.fallback,c=t.mode,l=jo({mode:"visible",children:l.children},c),o=yi(o,c,d,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,ki(t,e.child,null,d),l=t.child,l.memoizedState=Vr(d),l.childLanes=Xr(e,i,d),t.memoizedState=Qr,sl(null,l));if(Ka(t),Vu(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var y=i.dgst;return i=y,i!==""&&(l=Error(u(419)),l.stack="",l.digest=i,$n({value:l,source:null,stack:null})),zo(e,t,d)}if(Ie||wi(e,t,d,!1),i=(d&e.childLanes)!==0,Ie||i){if(Za.current!==null)return zo(e,t,d);if(i=Ye,i!==null&&(l=qc(i,d),l!==0&&l!==c.retryLane))throw c.retryLane=l,gi(e,l),_t(i,e,l),Gr;return Qu(o)||Fo(),zo(e,t,d)}return Qu(o)?(t.flags|=192,t.child=e.child,null):(e=c.treeContext,Be=Jt(o.nextSibling),lt=t,De=!0,Ya=null,Zt=!1,e!==null&&jf(t,e),t=Zr(t,l.children),t.flags|=134221824,t)}function Fh(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),uo(e.return,t,a)}function Wh(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&bo(a)===null&&(t=e),e=e.sibling}return t}function Mo(e,t,a,i,l,o){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:l,treeForkCount:o}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=i,c.tail=a,c.tailMode=l,c.treeForkCount=o)}function Kr(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function Jr(e,t,a){var i=t.pendingProps,l=i.revealOrder,o=i.tail;i=i.children;var c=ft.current;if(t.flags&128)return il(t,c),null;var d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,il(t,c),l==="backwards"&&e!==null?(Kr(e),at(e,t,i,a),Kr(e)):at(e,t,i,a),i=De?Jn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fh(e,a,t);else if(e.tag===19)Fh(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":a=Wh(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null,Kr(t)),Mo(t,!0,l,null,o,i);break;case"unstable_legacy-backwards":for(a=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&bo(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Mo(t,!0,a,null,o,i);break;case"together":Mo(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:a=Wh(t.child),a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Mo(t,!1,l,a,o,i)}return t.child}function Ih(e,t,a){var i=t.pendingProps;return Ga(t,t.type,i.value),at(e,t,i.children,a),t.child}function qa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=Aa(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Aa(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function $r(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function ny(e,t,a){switch(t.tag){case 3:Ul(t,t.stateNode.containerInfo),Ga(t,Fe,e.memoizedState.cache),vi();break;case 27:case 5:Ss(t);break;case 4:Ul(t,t.stateNode.containerInfo);break;case 10:Ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wr(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ka(t),t.flags|=128,null;i=wi(e,t,a,!1);var l=t.child.childLanes;return i||(a&l)!==0?$h(e,t,a):(Ka(t),e=qa(e,t,a),e!==null?e.sibling:null)}Ka(t);break;case 19:if(t.flags&128)return Jr(e,t,a);if(l=(e.flags&128)!==0,i=(a&t.childLanes)!==0,i||(wi(e,t,a,!1),i=(a&t.childLanes)!==0),l){if(i)return Jr(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),il(t,ft.current),i)break;return null;case 22:return t.lanes=0,Qh(e,t,a,t.pendingProps);case 24:Ga(t,Fe,e.memoizedState.cache)}return qa(e,t,a)}function Ph(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!$r(e,a)&&(t.flags&128)===0)return Ie=!1,ny(e,t,a);Ie=(e.flags&131072)!==0}else Ie=!1,De&&(t.flags&1048576)!==0&&qf(t,Jn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ai(t.elementType),t.type=e,typeof e=="function")ar(e)?(i=_i(e,i),t.tag=1,t=Kh(null,t,e,i,a)):(t.tag=0,t=Lr(null,t,e,i,a));else{if(e!=null){var l=e.$$typeof;if(l===X){t.tag=11,t=Bh(null,t,e,i,a);break e}else if(l===ke){t.tag=14,t=Gh(null,t,e,i,a);break e}else if(l===ue){t.tag=10,t.type=e,t=Ih(null,t,a);break e}}throw t=Te(e)||e,Error(u(306,t,""))}}return t;case 0:return Lr(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,l=_i(i,t.pendingProps),Kh(e,t,i,l,a);case 3:e:{if(Ul(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var o=t.memoizedState;l=o.element,pr(e,t),al(t,i,null,a);var c=t.memoizedState;if(i=c.cache,Ga(t,Fe,i),i!==o.cache&&ur(t,[Fe],a,!0),tl(),i=c.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Jh(e,t,i,a);break e}else if(i!==l){l=Qt(Error(u(424)),t),$n(l),t=Jh(e,t,i,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Be=Jt(e.firstChild),lt=t,De=!0,Ya=null,Zt=!0,a=Qf(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(vi(),i===l){t=qa(e,t,a);break e}at(e,t,i,a)}t=t.child}return t;case 26:return fn(e,t),e===null?(a=Am(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(t.stateNode=im(t.type,t.pendingProps,va.current,t)):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ss(t),e===null&&De&&(i=t.stateNode=wm(t.type,t.pendingProps,va.current),lt=t,Zt=!0,l=Be,ai(t.type)?(Xu=l,Be=Jt(i.firstChild)):Be=l),at(e,t,t.pendingProps.children,a),fn(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((l=i=Be)&&(i=Iy(i,t.type,t.pendingProps,Zt),i!==null?(t.stateNode=i,lt=t,Be=Jt(i.firstChild),Zt=!1,l=!0):l=!1),l||Ba(t)),Ss(t),l=t.type,o=t.pendingProps,c=e!==null?e.memoizedProps:null,i=o.children,Ru(l,o)?i=null:c!==null&&Ru(l,c)&&(t.flags|=32),t.memoizedState!==null&&(l=Dr(e,t,Kg,null,null,a),En._currentValue=l),fn(e,t),at(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=Be)&&(a=Py(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,lt=t,Be=null,e=!0):e=!1),e||Ba(t)),null;case 13:return $h(e,t,a);case 4:return Ul(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ki(t,null,i,a):at(e,t,i,a),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,a);case 7:return i=t.pendingProps,fn(e,t),at(e,t,i,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return Ih(e,t,a);case 9:return l=t.type._context,i=t.pendingProps.children,Ti(t),l=ut(l),i=i(l),t.flags|=1,at(e,t,i,a),t.child;case 14:return Gh(e,t,t.type,t.pendingProps,a);case 15:return Lh(e,t,t.type,t.pendingProps,a);case 19:return Jr(e,t,a);case 31:return ay(e,t,a);case 22:return Qh(e,t,a,t.pendingProps);case 24:return Ti(t),i=ut(Fe),e===null?(l=hr(),l===null&&(l=Ye,o=cr(),l.pooledCache=o,o.refCount++,o!==null&&(l.pooledCacheLanes|=a),l=o),t.memoizedState={parent:i,cache:l},mr(t),Ga(t,Fe,l)):((e.lanes&a)!==0&&(pr(e,t),al(t,null,null,a),tl()),l=e.memoizedState,o=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ga(t,Fe,i)):(i=o.cache,Ga(t,Fe,i),i!==l.cache&&ur(t,[Fe],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:De&&so(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:fn(e,t),at(e,t,i.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ja(e){e.flags|=4}function Fr(e,t,a,i,l){var o;if((o=(e.mode&32)!==0)&&(o=a===null?_m(t,i):_m(t,i)&&(i.src!==a.src||i.srcSet!==a.srcSet)),o){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Cd())e.flags|=8192;else throw xi=po,dr}else e.flags&=-16777217}function ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Em(t))if(Cd())e.flags|=8192;else throw xi=po,dr}function Co(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nc():536870912,e.lanes|=t,gn|=t)}function rl(e,t){if(!De)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var l=e.child;l!==null;)a|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function ly(e,t,a){var i=t.pendingProps;switch(lr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Na(Fe),Gi(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(nn(t)?ja(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sr())),Ge(t),null;case 26:var l=t.type,o=t.memoizedState;return e===null?(ja(t),o!==null?(Ge(t),ed(t,o)):(Ge(t),Fr(t,l,null,i,a))):o?o!==e.memoizedState?(ja(t),Ge(t),ed(t,o)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ja(t),Ge(t),Fr(t,l,e,i,a)),null;case 27:if(Hl(t),a=va.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),t.subtreeFlags&=-33554433,null}e=St.current,nn(t)?zf(t):(e=wm(l,i,a),t.stateNode=e,ja(t))}return Ge(t),t.subtreeFlags&=-33554433,null;case 5:if(Hl(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Ge(t),t.subtreeFlags&=-33554433,null}if(o=St.current,nn(t))zf(t);else{var c=bl(va.current);switch(o){case 1:o=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:o=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":o=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":o=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":o=c.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?c.createElement("select",{is:i.is}):c.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?c.createElement(l,{is:i.is}):c.createElement(l)}}o[rt]=t,o[Dt]=i;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)o.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=o;e:switch(dt(o,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ja(t)}}return Ge(t),t.subtreeFlags&=-33554433,Fr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ja(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=va.current,nn(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,l=lt,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Pd(e.nodeValue,a)),e||Ba(t,!0)}else e=bl(e).createTextNode(i),e[rt]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=nn(t),a!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[rt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ge(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=nn(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(u(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(u(317));l[rt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),l=!1}else l=sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Co(t,t.updateQueue),Ge(t),null);case 4:return Gi(),e===null&&ju(t.stateNode.containerInfo),t.flags|=67108864,Ge(t),null;case 10:return Na(t.type),Ge(t),null;case 19:if(Tr(t),i=t.memoizedState,i===null)return Ge(t),null;if(l=(t.flags&128)!==0,o=i.rendering,o===null)if(l)rl(i,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,rl(i,!1),e=o.updateQueue,t.updateQueue=e,Co(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Nf(a,e),a=a.sibling;return il(t,ft.current&1|2),De&&xa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Zo&&(t.flags|=128,l=!0,rl(i,!1),t.lanes=4194304)}else{if(!l)if(e=bo(o),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Co(t,e),rl(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!De)return Ge(t),null}else 2*Et()-i.renderingStartTime>Zo&&a!==536870912&&(t.flags|=128,l=!0,rl(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,o=ft.current,o=l?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!a||De?il(t,o):(a=o,je(ct,t),je(ft,a),gt===null&&(gt=t)),De&&xa(t,i.treeForkCount),e}return Ge(t),null;case 22:case 23:return Ct(t),br(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&Co(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Qe(Di),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Na(Fe),Ge(t),null;case 25:return null;case 30:return t.flags|=33554432,Ge(t),null}throw Error(u(156,t.tag))}function oy(e,t){switch(lr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Na(Fe),Gi(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Hl(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(u(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Tr(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 Gi(),null;case 10:return Na(t.type),null;case 22:case 23:return Ct(t),br(),e!==null&&Qe(Di),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Na(Fe),null;case 25:return null;default:return null}}function td(e,t){switch(lr(t),t.tag){case 3:Na(Fe),Gi();break;case 26:case 27:case 5:Hl(t);break;case 4:Gi();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:Tr(t);break;case 10:Na(t.type);break;case 22:case 23:Ct(t),br(),e!==null&&Qe(Di);break;case 24:Na(Fe)}}function ul(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var l=i.next;a=l;do{if((a.tag&e)===e){i=void 0;var o=a.create,c=a.inst;i=o(),c.destroy=i}a=a.next}while(a!==l)}}catch(d){Oe(t,t.return,d)}}function $a(e,t,a){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var o=l.next;i=o;do{if((i.tag&e)===e){var c=i.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,l=t;var y=a,k=d;try{k()}catch(j){Oe(l,y,j)}}}i=i.next}while(i!==o)}}catch(j){Oe(t,t.return,j)}}function ad(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Xf(t,a)}catch(i){Oe(e,e.return,i)}}}function id(e,t,a){a.props=_i(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Oe(e,t,i)}}function ua(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,o=Sa(e.memoizedProps,l);(l.ref===null||l.ref.name!==o)&&(l.ref=cm(o)),i=l.ref;break;case 7:if(e.stateNode===null){var c=new Yt(e);p(e.child,!1,Fy,c,void 0,void 0),e.stateNode=c}i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(d){Oe(e,t,d)}}function ht(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(l){Oe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Oe(e,t,l)}else a.current=null}function Oo(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)gm(e.stateNode,t[a])}function nd(e){for(var t=e.return;t!==null&&(Ir(t)&&gm(e.stateNode,t.stateNode),!Wr(t));)t=t.return}function cl(e){for(var t=e.return;t!==null&&(Ir(t)&&Wy(e.stateNode,t.stateNode),!Wr(t));)t=t.return}function Wr(e){return e.tag===5||e.tag===3||e.tag===27}function Ir(e){return e&&e.tag===7&&e.stateNode!==null}function Pr(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(l){Oe(e,e.return,l)}}function eu(e,t,a){try{var i=e.stateNode;zy(i,e.type,a,t),i[Dt]=t}catch(l){Oe(e,e.return,l)}}function ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ai(e.type)||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ld(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&&ai(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 au(e,t,a,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(l,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(l),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=oa)),Oo(e,i),qe=!0;else if(l!==4&&(l===27&&(Oo(e,i),i=null,ai(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(au(e,t,a,i),e=e.sibling;e!==null;)au(e,t,a,i),e=e.sibling}function Ro(e,t,a,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?a.insertBefore(l,t):a.appendChild(l),Oo(e,i),qe=!0;else if(l!==4&&(l===27&&(Oo(e,i),i=null,ai(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(Ro(e,t,a,i),e=e.sibling;e!==null;)Ro(e,t,a,i),e=e.sibling}function od(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,a),t[rt]=e,t[Dt]=a}catch(o){Oe(e,e.return,o)}}var Uo=!1,Ot=null;function sd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Uo=!0)}var ca=null;function rd(){var e=ca;return ca=null,e}var xt=0;function hn(e,t,a,i,l){return xt=0,ud(e.child,t,a,i,l)}function ud(e,t,a,i,l){for(var o=!1;e!==null;){if(e.tag===5){var c=e.stateNode;if(i!==null){var d=Yu(c);i.push(d),d.view&&(o=!0)}else o||Yu(c).view&&(o=!0);Uo=!0,rm(c,xt===0?t:t+"_"+xt,a),xt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||ud(e.child,t,a,i,l)&&(o=!0));e=e.sibling}return o}function fa(e,t){for(;e!==null;)e.tag===5?um(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||fa(e.child,t)),e=e.sibling}function Ho(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ho(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(u(544));var a=t.name;t=Da(t.default,t.share),t!=="none"&&(hn(e,a,t,null,!1)||fa(e.child,!1))}e=e.sibling}}function iu(e,t){if(e.tag===30){var a=e.stateNode,i=e.memoizedProps,l=Sa(i,a),o=Da(i.default,a.paired?i.share:i.enter);o!=="none"?hn(e,l,o,null,!1)?(Ho(e),a.paired||t||wn(e,i.onEnter)):fa(e.child,!1):Ho(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)iu(e,t),e=e.sibling;else Ho(e)}function nu(e){if(Ot!==null&&Ot.size!==0){var t=Ot;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 a=e.memoizedProps,i=a.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var o=Da(a.default,a.share);if(o!=="none"&&(hn(e,i,o,null,!1)?(o=e.stateNode,l.paired=o,o.paired=l,wn(e,a.onShare)):fa(e.child,!1)),t.delete(i),t.size===0)break}}}nu(e)}e=e.sibling}}}function lu(e){if(e.tag===30){var t=e.memoizedProps,a=Sa(t,e.stateNode),i=Ot!==null?Ot.get(a):void 0,l=Da(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(hn(e,a,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,Ot.delete(a),wn(e,t.onShare)):wn(e,t.onExit):fa(e.child,!1)),Ot!==null&&nu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)lu(e),e=e.sibling;else Ot!==null&&nu(e)}function cd(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=Sa(t,e.stateNode);t=Da(t.default,t.update),e.flags&=-5,t!=="none"&&hn(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&cd(e);e=e.sibling}}function ou(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,fa(e.child,!1))}ou(e)}e=e.sibling}}function Yo(e){if(e.tag===30)e.stateNode.paired=null,fa(e.child,!1),ou(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Yo(e),e=e.sibling;else ou(e)}function fd(e){for(e=e.child;e!==null;)e.tag===30?fa(e.child,!1):(e.subtreeFlags&33554432)!==0&&fd(e),e=e.sibling}function su(e,t,a,i,l,o,c){for(var d=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(o!==null&&xt<o.length){var k=o[xt],j=Yu(y);(k.view||j.view)&&(d=!0);var U;if(U=(e.flags&4)===0)if(j.clip)U=!0;else{U=k.rect;var D=j.rect;U=U.y!==D.y||U.x!==D.x||U.height!==D.height||U.width!==D.width}U&&(e.flags|=4),j.abs?j=!k.abs:(k=k.rect,j=j.rect,j=k.height!==j.height||k.width!==j.width),j&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&rm(y,xt===0?a:a+"_"+xt,l),d&&(e.flags&4)!==0||(ca===null&&(ca=[]),ca.push(y,xt===0?i:i+"_"+xt,t.memoizedProps)),xt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&c?e.flags|=t.flags&32:su(e,t.child,a,i,l,o,c)&&(d=!0));t=t.sibling}return d}function hd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,i=e.stateNode,l=Sa(a,i),o=Da(a.default,a.update),c;c=e.memoizedState,e.memoizedState=null,i=e;var d=e.child;xt=0,l=su(i,d,l,l,o,c,!1),(e.flags&4)!==0&&l&&wn(e,a.onUpdate)}else(e.subtreeFlags&33554432)!==0&&hd(e);e=e.sibling}}var ot=!1,Me=!1,ha=!1,ru=!1,dd=typeof WeakSet=="function"?WeakSet:Set,st=null,da=!1,fl=!1,Bo=!1,uu=!1;function sy(e,t,a){if(e=e.containerInfo,Cu=qn,e=yf(e),$s(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var d=0,y=-1,k=-1,j=0,U=0,D=e,_=null;t:for(;;){for(var F;D!==i||o!==0&&D.nodeType!==3||(y=d+o),D!==c||l!==0&&D.nodeType!==3||(k=d+l),D.nodeType===3&&(d+=D.nodeValue.length),(F=D.firstChild)!==null;)_=D,D=F;for(;;){if(D===e)break t;if(_===i&&++j===o&&(y=d),_===c&&++U===l&&(k=d),(F=D.nextSibling)!==null)break;D=_,_=D.parentNode}D=F}i=y===-1||k===-1?null:{start:y,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ou={focusedElem:e,selectionRange:i},qn=!1,a=(a&335544064)===a,st=t,t=a?9270:1024;st!==null;){if(e=st,a&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)a&&lu(i[o]);if(e.alternate===null&&(e.flags&2)!==0)a&&sd(e),Go(a);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&a&&lu(i),Go(a);continue}else if(i!==null&&i.memoizedState!==null){a&&sd(e),Go(a);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,st=i):(a&&cd(e),Go(a))}}Ot=null}function Go(e){for(;st!==null;){var t=st,a=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){a=void 0,l=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var c=_i(t.type,l);a=o.getSnapshotBeforeUpdate(c,i),o.__reactInternalSnapshotBeforeUpdate=a}catch(d){Oe(t,t.return,d)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,a=i.nodeType,a===9)Lu(i);else if(a===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Lu(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&i!==null&&(a=Sa(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=Da(l.default,l.update),l!=="none"&&hn(i,a,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(u(163))}if(i=t.sibling,i!==null){i.return=t.return,st=i;break}st=t.return}}function md(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:ma(e,a),i&4&&ul(5,a);break;case 1:if(ma(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Oe(a,a.return,c)}else{var l=_i(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Oe(a,a.return,c)}}i&64&&ad(a),i&512&&ua(a,a.return);break;case 3:if(ma(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Xf(e,t)}catch(c){Oe(a,a.return,c)}}break;case 27:t===null&&i&4&&od(a);case 26:case 5:ma(e,a),t===null&&i&4&&Pr(a),i&512&&ua(a,a.return);break;case 12:ma(e,a);break;case 31:ma(e,a),i&4&&vd(e,a);break;case 13:ma(e,a),i&4&&bd(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=by.bind(null,a),e1(e,a))));break;case 22:if(i=a.memoizedState!==null||ot,!i){var o=t!==null&&t.memoizedState!==null||Me;t=ot,l=Me,ot=i,(Me=o)&&!l?(i=2,(a.subtreeFlags&8772)!==0&&(i|=1),ta(e,a,i)):ma(e,a),ot=t,Me=l}break;case 30:ma(e,a),i&512&&ua(a,a.return);break;case 7:i&512&&ua(a,a.return);default:ma(e,a)}}function cu(e,t){for(e=e.child;e!==null;)pd(e,t),e=e.sibling}function pd(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var i=a.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,o=e.memoizedProps.style,c=o!=null&&o.hasOwnProperty("display")?o.display:null;l.style.display=c==null||typeof c=="boolean"?"":(""+c).trim()}}catch(y){Oe(e,e.return,y)}fu(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,qe=!0}catch(y){Oe(e,e.return,y)}break;case 18:try{var d=e.stateNode;t?sm(d,!0):sm(e.stateNode,!1)}catch(y){Oe(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&cu(e,t);break;default:cu(e,t)}}function fu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,i=t;switch(a.tag){case 4:pd(a,i);break e;case 22:a.memoizedState===null&&fu(a,i);break e;default:fu(a,i)}}e=e.sibling}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xl(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 Ve=null,kt=!1;function Pt(e,t,a){for(a=a.child;a!==null;)yd(e,t,a),a=a.sibling}function yd(e,t,a){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Cn,a)}catch{}switch(a.tag){case 26:Me||ht(a,t),Pt(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!Me&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Me||ht(a,t),cl(a);var i=Ve,l=kt;ai(a.type)&&(Ve=a.stateNode,kt=!1),Pt(e,t,a),Tm(a.stateNode,a.type,a.memoizedProps),Ve=i,kt=l;break;case 5:Me||ht(a,t),cl(a);case 6:if(a.tag===6&&cl(a),i=Ve,l=kt,Ve=null,Pt(e,t,a),Ve=i,kt=l,Ve!==null)if(kt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(a.stateNode),qe=!0}catch(o){Oe(a,t,o)}else try{Ve.removeChild(a.stateNode),qe=!0}catch(o){Oe(a,t,o)}break;case 18:Ve!==null&&(kt?(e=Ve,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),jn(e)):om(Ve,a.stateNode));break;case 4:i=Ve,l=kt,Ve=a.stateNode.containerInfo,kt=!0,Pt(e,t,a),Ve=i,kt=l;break;case 0:case 11:case 14:case 15:$a(2,a,t),Me||$a(4,a,t),Pt(e,t,a);break;case 1:Me||(ht(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&id(a,t,i)),Pt(e,t,a);break;case 21:Pt(e,t,a);break;case 22:Me=(i=Me)||a.memoizedState!==null,Pt(e,t,a),Me=i;break;case 30:ht(a,t),Pt(e,t,a);break;case 7:Me||ht(a,t),Pt(e,t,a);break;default:Pt(e,t,a)}}function vd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{jn(e)}catch(a){Oe(t,t.return,a)}}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{jn(e)}catch(a){Oe(t,t.return,a)}}function ry(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dd),t;default:throw Error(u(435,e.tag))}}function Lo(e,t){var a=ry(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var l=wy.bind(null,e,i);i.then(l,l)}})}function bt(e,t,a){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l],c=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(ai(y.type)){Ve=y.stateNode,kt=!1;break e}break;case 5:Ve=y.stateNode,kt=!1;break e;case 3:case 4:Ve=y.stateNode.containerInfo,kt=!0;break e}y=y.return}if(Ve===null)throw Error(u(160));yd(c,d,o),Ve=null,kt=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wd(t,e,a),t=t.sibling}var ea=null;function wd(e,t,a){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var c=i[o];c.ref.impl=c.nextImpl}bt(t,e,a),wt(e),l&4&&($a(3,e,e.return),ul(3,e),$a(5,e,e.return));break;case 1:bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),l&64&&ot&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(o=ea,bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,a=e.memoizedState,i===null)if(a===null)if(e.stateNode===null)if(ot)e.stateNode=im(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,l=o.ownerDocument||o;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Un]||i[rt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,a),i[rt]=e,nt(i),t=i;break e;case"link":if(o=Nm("link","href",l).get(t+(a.href||""))){for(c=0;c<o.length;c++)if(i=o[c],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(c,1);break t}}i=l.createElement(t),dt(i,t,a),l.head.appendChild(i);break;case"meta":if(o=Nm("meta","content",l).get(t+(a.content||""))){for(c=0;c<o.length;c++)if(i=o[c],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(c,1);break t}}i=l.createElement(t),dt(i,t,a),l.head.appendChild(i);break;default:throw Error(u(468,t))}i[rt]=e,nt(i),t=i}e.stateNode=t}else ot||$u(o,e.type,e.stateNode);else e.stateNode=km(o,a,e.memoizedProps);else l!==a?(l===null?(t=i.stateNode,t===null||Me||t.parentNode.removeChild(t)):l.count--,a===null?ot||$u(o,e.type,e.stateNode):km(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&eu(e,e.memoizedProps,i.memoizedProps);break;case 27:bt(t,e,a),wt(e),l&512&&(Me||i===null||ht(i,i.return)),i!==null&&l&4&&eu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=ha,ha=!1,bt(t,e,a),ha=o,wt(e),l&512&&(Me||i===null||ht(i,i.return)),e.flags&32){t=e.stateNode;try{Ki(t,""),qe=!0}catch(j){Oe(e,e.return,j)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,eu(e,t,i!==null?i.memoizedProps:t)),l&1024&&(ru=!0);break;case 6:if(bt(t,e,a),wt(e),l&4){if(e.stateNode===null)throw Error(u(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,qe=!0}catch(j){Oe(e,e.return,j)}}break;case 3:if(qe=!1,is=null,o=ea,ea=wl(t.containerInfo),bt(t,e,a),ea=o,wt(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{jn(t.containerInfo)}catch(j){Oe(e,e.return,j)}ru&&(ru=!1,Td(e)),qe=!1;break;case 4:l=ha,ha=ot,i=Bc(),o=ea,ea=wl(e.stateNode.containerInfo),bt(t,e,a),wt(e),ea=o,qe&&fl&&(Bo=!0),qe=i,ha=l;break;case 12:bt(t,e,a),wt(e);break;case 31:bt(t,e,a),wt(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 13:bt(t,e,a),wt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Xo=Et()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 22:o=e.memoizedState!==null,c=i!==null&&i.memoizedState!==null;var d=ot,y=Me,k=ha;ot=d||o,ha=k||o,Me=y||c,bt(t,e,a),Me=y,ha=k,ot=d,wt(e),l&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||c||ot||Me||(t=c||Me,a=ot,i=Me,ot=o||ot,Me=t,Fa(e,2),ot=a,Me=i),!o&&ha||cu(e,o)),l&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,Lo(e,a))));break;case 19:bt(t,e,a),wt(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Lo(e,t)));break;case 30:l&512&&(Me||i===null||ht(i,i.return)),l=Bc(),o=fl,c=(a&335544064)===a,d=e.memoizedProps,fl=c&&Da(d.default,d.update)!=="none",bt(t,e,a),wt(e),c&&i!==null&&qe&&(e.flags|=4),fl=o,qe=l;break;case 21:break;case 7:l&512&&(Me||i===null||ht(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:bt(t,e,a),wt(e)}}function wt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(ld(i)){a=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Ir(l)){var o=l.stateNode;i===null?i=[o]:i.push(o)}if(Wr(l))break;l=l.return}var c=i;if(a==null)throw Error(u(160));switch(a.tag){case 27:var d=a.stateNode,y=tu(e);Ro(e,y,d,c);break;case 5:var k=a.stateNode;a.flags&32&&(Ki(k,""),a.flags&=-33);var j=tu(e);Ro(e,j,k,c);break;case 3:case 4:var U=a.stateNode.containerInfo,D=tu(e);au(e,D,U,c);break;default:throw Error(u(161))}}catch(_){Oe(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Td(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,qn=!0,t.reset(),qn=!1),e=e.sibling}}function dn(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Sd(t,e),t=t.sibling;else hd(t)}function Sd(e,t){var a=e.alternate;if(a===null)iu(e,!1);else switch(e.tag){case 3:if(uu=da=!1,rd(),dn(t,e),!da&&!Bo){if(e=ca,e!==null)for(var i=0;i<e.length;i+=3){a=e[i];var l=e[i+1];um(a,e[i+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}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"})),uu=!0}ca=null;break;case 5:dn(t,e);break;case 4:i=da,da=!1,dn(t,e),da&&(Bo=!0),da=i;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?iu(e,!1):dn(t,e));break;case 30:i=da,l=rd(),da=!1,dn(t,e),da&&(e.flags|=4);var o=e.memoizedProps,c=e.stateNode;t=Sa(o,c),c=Sa(a.memoizedProps,c);var d=Da(o.default,o.update);d==="none"?t=!1:(o=a.memoizedState,a.memoizedState=null,a=e.child,xt=0,t=su(e,a,t,c,d,o,!0),xt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(wn(e,e.memoizedProps.onUpdate),ca=l):l!==null&&(l.push.apply(l,ca),ca=l),da=(e.flags&32)!==0?!0:i;break;default:dn(t,e)}}function ma(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)md(e,t.alternate,t),t=t.sibling}function Fa(e,t){for(e=e.child;e!==null;){var a=e,i=t;switch(a.tag){case 0:case 11:case 14:case 15:$a(4,a,a.return),Fa(a,i);break;case 1:ht(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&id(a,a.return,l),Fa(a,i);break;case 27:(i&2)!==0&&Tm(a.stateNode,a.type,a.memoizedProps);case 5:ht(a,a.return),a.tag!==5&&a.tag!==27||cl(a),Fa(a,i);break;case 6:cl(a);break;case 26:ht(a,a.return),l=a.stateNode,a.memoizedState!==null||l===null||Me||l.parentNode.removeChild(l),Fa(a,i);break;case 22:a.memoizedState===null&&Fa(a,i);break;case 30:ht(a,a.return),Fa(a,i);break;case 7:ht(a,a.return);default:Fa(a,i)}e=e.sibling}}function ta(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var i=t.alternate,l=e,o=t,c=o.flags,d=(a&1)!==0;switch(o.tag){case 0:case 11:case 15:ta(l,o,a),ul(4,o);break;case 1:if(ta(l,o,a),i=o,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(j){Oe(i,i.return,j)}if(i=o,l=i.updateQueue,l!==null){var y=i.stateNode;try{var k=l.shared.hiddenCallbacks;if(k!==null)for(l.shared.hiddenCallbacks=null,l=0;l<k.length;l++)Vf(k[l],y)}catch(j){Oe(i,i.return,j)}}d&&c&64&&ad(o),ua(o,o.return);break;case 27:(a&2)!==0&&od(o);case 5:o.tag!==5&&o.tag!==27||nd(o),ta(l,o,a),d&&i===null&&c&4&&Pr(o),ua(o,o.return);break;case 6:nd(o);break;case 26:y=o.stateNode,o.memoizedState!==null||y===null||ot||$u(wl(y.ownerDocument),o.type,y),ta(l,o,a),d&&i===null&&c&4&&Pr(o),ua(o,o.return);break;case 12:ta(l,o,a);break;case 31:ta(l,o,a),d&&c&4&&vd(l,o);break;case 13:ta(l,o,a),d&&c&4&&bd(l,o);break;case 22:o.memoizedState===null&&ta(l,o,a),ua(o,o.return);break;case 30:ta(l,o,a),ua(o,o.return);break;case 7:ua(o,o.return);default:ta(l,o,a)}t=t.sibling}}function hu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Fn(a))}function du(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fn(e))}function Kt(e,t,a,i){var l=(a&335544064)===a;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)Dd(e,t,a,i),t=t.sibling;else l&&fd(t)}function Dd(e,t,a,i){var l=(a&335544064)===a;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yo(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,i),o&2048&&ul(9,t);break;case 1:Kt(e,t,a,i);break;case 3:Kt(e,t,a,i),l&&uu&&(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&&Fn(o)));break;case 12:if(o&2048){Kt(e,t,a,i),o=t.stateNode;try{var c=t.memoizedProps,d=c.id,y=c.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(k){Oe(t,t.return,k)}}else Kt(e,t,a,i);break;case 31:Kt(e,t,a,i);break;case 13:Kt(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?(l&&d!==null&&d.memoizedState===null&&Yo(d),c._visibility&2?Kt(e,t,a,i):hl(e,t)):(l&&d!==null&&d.memoizedState!==null&&Yo(t),c._visibility&2?Kt(e,t,a,i):(c._visibility|=2,mn(e,t,a,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&hu(d,t);break;case 24:Kt(e,t,a,i),o&2048&&du(t.alternate,t);break;case 30:l&&(o=t.alternate,o!==null&&(fa(o.child,!0),fa(t.child,!0))),Kt(e,t,a,i);break;default:Kt(e,t,a,i)}}function mn(e,t,a,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,c=t,d=a,y=i,k=c.flags;switch(c.tag){case 0:case 11:case 15:mn(o,c,d,y,l),ul(8,c);break;case 23:break;case 22:var j=c.stateNode;c.memoizedState!==null?j._visibility&2?mn(o,c,d,y,l):hl(o,c):(j._visibility|=2,mn(o,c,d,y,l)),l&&k&2048&&hu(c.alternate,c);break;case 24:mn(o,c,d,y,l),l&&k&2048&&du(c.alternate,c);break;default:mn(o,c,d,y,l)}t=t.sibling}}function hl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,l=i.flags;switch(i.tag){case 22:hl(a,i),l&2048&&hu(i.alternate,i);break;case 24:hl(a,i),l&2048&&du(i.alternate,i);break;default:hl(a,i)}t=t.sibling}}var Ei=8192;function qi(e,t,a){if(e.subtreeFlags&Ei)for(e=e.child;e!==null;)Ad(e,t,a),e=e.sibling}function Ad(e,t,a){switch(e.tag){case 26:qi(e,t,a),e.flags&Ei&&(e.memoizedState!==null?m1(a,ea,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&jm(a,e)));break;case 5:qi(e,t,a),e.flags&Ei&&(e=e.stateNode,(t&335544128)===t&&jm(a,e));break;case 3:case 4:var i=ea;ea=wl(e.stateNode.containerInfo),qi(e,t,a),ea=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ei,Ei=16777216,qi(e,t,a),Ei=i):qi(e,t,a));break;case 30:if((e.flags&Ei)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,Ot===null&&(Ot=new Map),Ot.set(i,l)}qi(e,t,a);break;default:qi(e,t,a)}}function xd(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 dl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];st=i,Nd(i,e)}xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kd(e),e=e.sibling}function kd(e){switch(e.tag){case 0:case 11:case 15:dl(e),e.flags&2048&&$a(9,e,e.return);break;case 3:dl(e);break;case 12:dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qo(e)):dl(e);break;default:dl(e)}}function Qo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];st=i,Nd(i,e)}xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$a(8,t,t.return),Qo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Qo(t));break;default:Qo(t)}e=e.sibling}}function Nd(e,t){for(;st!==null;){var a=st;switch(a.tag){case 0:case 11:case 15:$a(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Fn(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,st=i;else e:for(a=e;st!==null;){i=st;var l=i.sibling,o=i.return;if(gd(i),i===a){st=null;break e}if(l!==null){l.return=o,st=l;break e}st=o}}}var uy={getCacheForType:function(e){var t=ut(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ut(Fe).controller.signal}},cy=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ye=null,Ae=null,Ne=0,Ce=0,Rt=null,Wa=!1,pn=!1,mu=!1,za=0,Je=0,Ia=0,ji=0,Vo=0,Ut=0,gn=0,ml=null,Nt=null,pu=!1,Xo=0,_d=0,Zo=1/0,Ko=null,Pa=null,Ze=0,aa=null,zi=null,pa=0,gu=0,yu=null,Ed=null,yn=null,vn=null,bn=null,pl=0,Jo=null;function Ht(){return(ze&2)!==0&&Ne!==0?Ne&-Ne:ne.T!==null?Nu():jc()}function qd(){if(Ut===0)if((Ne&536870912)===0||De){var e=Gl;Gl<<=1,(Gl&3932160)===0&&(Gl=262144),Ut=e}else Ut=536870912;return e=ct.current,e!==null&&(e.flags|=32),Ut}function wn(e,t){if(t!=null){var a=e.stateNode,i=a.ref;i===null&&(i=a.ref=cm(Sa(e.memoizedProps,a))),vn===null&&(vn=[]),vn.push(t.bind(null,i))}}function _t(e,t,a){(e===Ye&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Tn(e,0),ei(e,Ne,Ut,!1)),Rn(e,a),((ze&2)===0||e!==Ye)&&(e===Ye&&((ze&2)===0&&(ji|=a),Je===4&&ei(e,Ne,Ut,!1)),ga(e))}function jd(e,t,a){if((ze&6)!==0)throw Error(u(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||On(e,t),l=i?dy(e,t):bu(e,t,!0),o=i;do{if(l===0){pn&&!i&&ei(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!fy(a)){l=bu(e,t,!1),o=!1;continue}if(l===2){if(o=t,e.errorRecoveryDisabledLanes&o)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;l=ml;var y=d.current.memoizedState.isDehydrated;if(y&&(Tn(d,c).flags|=256),c=bu(d,c,!1),c!==2&&c!==6){if(mu&&!y){d.errorRecoveryDisabledLanes|=o,ji|=o,l=4;break e}o=Nt,Nt=l,o!==null&&(Nt===null?Nt=o:Nt.push.apply(Nt,o))}l=c}if(o=!1,l!==2)continue}}if(l===1){Tn(e,0),ei(e,t,0,!0);break}e:{switch(i=e,o=l,o){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ei(i,t,Ut,!Wa);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(l=Xo+300-Et(),10<l)){if(ei(i,t,Ut,!Wa),Ql(i,0,!0)!==0)break e;pa=t,i.timeoutHandle=Hu(zd.bind(null,i,a,Nt,Ko,pu,t,Ut,ji,gn,Wa,o,"Throttled",-0,0),l);break e}zd(i,a,Nt,Ko,pu,t,Ut,ji,gn,Wa,o,null,-0,0)}}break}while(!0);ga(e)}function zd(e,t,a,i,l,o,c,d,y,k,j,U,D,_){e.timeoutHandle=-1;var F=t.subtreeFlags,se=(o&335544064)===o;if(U=null,(se||F&8192||(F&16785408)===16785408)&&(U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},Ot=null,Ad(t,o,U),se&&(F=U,se=e.containerInfo,se=(se.nodeType===9?se:se.ownerDocument).__reactViewTransition,se!=null&&(F.count++,F.waitingForViewTransition=!0,F=Dl.bind(F),se.finished.then(F,F))),F=(o&62914560)===o?Xo-Et():(o&4194048)===o?_d-Et():0,F=p1(U,F),F!==null)){pa=o,e.cancelPendingCommit=F(Bd.bind(null,e,t,o,a,i,l,c,d,y,k,j,U,null,D,_)),ei(e,o,c,!k);return}Bd(e,t,o,a,i,l,c,d,y,k,j,U)}function fy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var l=a[i],o=l.getSnapshot;l=l.value;try{if(!Mt(o(),l))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 ei(e,t,a,i){t=kc(e,t),t&=~Vo,t&=~ji,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var o=31-jt(l),c=1<<o;i[o]=-1,l&=~c}a!==0&&_c(e,a,t)}function $o(){return(ze&6)===0?(gl(0),!1):!0}function vu(){if(Ae!==null){if(Ce===0)var e=Ae.return;else e=Ae,ka=bi=null,kr(e),sn=null,Pn=0,e=Ae;for(;e!==null;)td(e.alternate,e),e=e.return;Ae=null}}function Tn(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,Oy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pa=0,vu(),Ye=e,Ae=a=Aa(e.current,null),Ne=t,Ce=0,Rt=null,Wa=!1,pn=On(e,t),mu=!1,gn=Ut=Vo=ji=Ia=Je=0,Nt=ml=null,pu=!1,za=kc(e,t),ao(),a}function Md(e,t){be=null,ne.H=_o,t===on||t===mo?(t=Bf(),Ce=3):t===dr?(t=Bf(),Ce=4):Ce=t===Gr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,Ae===null&&(Je=1,Eo(e,Qt(t,e.current)))}function Cd(){var e=ct.current;return e===null?!0:(Ne&4194048)===Ne?gt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===gt:!1}function Od(){var e=ne.H;return ne.H=_o,e===null?_o:e}function Rd(){var e=ne.A;return ne.A=uy,e}function Fo(){Je=4,Wa||(Ne&4194048)!==Ne&&ct.current!==null||(pn=!0),(Ia&134217727)===0&&(ji&134217727)===0||Ye===null||ei(Ye,Ne,Ut,!1)}function bu(e,t,a){var i=ze;ze|=2;var l=Od(),o=Rd();(Ye!==e||Ne!==t)&&(Ko=null,Tn(e,t)),t=!1;var c=Je;e:do try{if(Ce!==0&&Ae!==null){var d=Ae,y=Rt;switch(Ce){case 8:vu(),c=6;break e;case 3:case 2:case 9:case 6:ct.current===null&&(t=!0);var k=Ce;if(Ce=0,Rt=null,Sn(e,d,y,k),a&&pn){c=0;break e}break;default:k=Ce,Ce=0,Rt=null,Sn(e,d,y,k)}}hy(),c=Je;break}catch(j){Md(e,j)}while(!0);return t&&e.shellSuspendCounter++,ka=bi=null,ze=i,ne.H=l,ne.A=o,Ae===null&&(Ye=null,Ne=0,ao()),c}function hy(){for(;Ae!==null;)Ud(Ae)}function dy(e,t){var a=ze;ze|=2;var i=Od(),l=Rd();Ye!==e||Ne!==t?(Ko=null,Zo=Et()+500,Tn(e,t)):pn=On(e,t);e:do try{if(Ce!==0&&Ae!==null){t=Ae;var o=Rt;t:switch(Ce){case 1:Ce=0,Rt=null,Sn(e,t,o,1);break;case 2:case 9:if(Hf(o)){Ce=0,Rt=null,Hd(t);break}t=function(){Ce!==2&&Ce!==9||Ye!==e||(Ce=7),ga(e)},o.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Hf(o)?(Ce=0,Rt=null,Hd(t)):(Ce=0,Rt=null,Sn(e,t,o,7));break;case 5:var c=null;switch(Ae.tag){case 26:c=Ae.memoizedState;case 5:case 27:var d=Ae;if(c?Em(c):d.stateNode.complete){Ce=0,Rt=null;var y=d.sibling;if(y!==null)Ae=y;else{var k=d.return;k!==null?(Ae=k,Wo(k)):Ae=null}break t}}Ce=0,Rt=null,Sn(e,t,o,5);break;case 6:Ce=0,Rt=null,Sn(e,t,o,6);break;case 8:vu(),Je=6;break e;default:throw Error(u(462))}}my();break}catch(j){Md(e,j)}while(!0);return ka=bi=null,ne.H=i,ne.A=l,ze=a,Ae!==null?0:(Ye=null,Ne=0,ao(),Je)}function my(){for(;Ae!==null&&!jp();)Ud(Ae)}function Ud(e){var t=Ph(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?Wo(e):Ae=t}function Hd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Zh(a,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Zh(a,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:kr(t);var i=t;i===lt&&(De?(ro(i),i.tag===5&&i.stateNode!=null&&(Be=i.stateNode)):(ro(i),De=!0));default:td(a,t),t=Ae=Nf(t,za),t=Ph(a,t,za)}e.memoizedProps=e.pendingProps,t===null?Wo(e):Ae=t}function Sn(e,t,a,i){ka=bi=null,kr(t),sn=null,Pn=0;var l=t.return;try{if(ty(e,l,t,a,Ne)){Je=1,Eo(e,Qt(a,e.current)),Ae=null;return}}catch(o){if(l!==null)throw Ae=l,o;Je=1,Eo(e,Qt(a,e.current)),Ae=null;return}t.flags&32768?(De||i===1?e=!0:pn||(Ne&536870912)!==0?e=!1:(Wa=e=!0,(i===2||i===9||i===3||i===6)&&(i=ct.current,i!==null&&i.tag===13&&(i.flags|=16384))),Yd(t,e)):Wo(t)}function Wo(e){var t=e;do{if((t.flags&32768)!==0){Yd(t,Wa);return}e=t.return;var a=ly(t.alternate,t,za);if(a!==null){Ae=a;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Je===0&&(Je=5)}function Yd(e,t){do{var a=oy(e.alternate,e);if(a!==null){a.flags&=32767,Ae=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=a}while(e!==null);Je=6,Ae=null}function Bd(e,t,a,i,l,o,c,d,y,k,j,U){e.cancelPendingCommit=null;do Io();while(Ze!==0);if((ze&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));e===Ye&&(Ae=Ye=null,Ne=0),zi=t,aa=e,pa=a,yu=l,Ed=i,py(e,t,a,c,d,y,U)}}function py(e,t,a,i,l,o,c){var d=t.lanes|t.childLanes;if(gu=d,d|=er,Gp(e,a,d,i,l,o),vn=null,(a&335544064)===a?(bn=Qg(e),i=10262):(bn=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Ty(Yl,function(){return Du(),null})):(e.callbackNode=null,e.callbackPriority=0),Uo=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=ne.T,ne.T=null,l=he.p,he.p=2,o=ze,ze|=4;try{sy(e,t,a)}finally{ze=o,he.p=l,ne.T=i}}Ze=1,Uo?yn=Gy(c,e.containerInfo,bn,wu,Tu,yy,Su,Du,gy):(wu(),Tu(),Su())}function gy(e){if(Ze!==0){var t=aa.onRecoverableError;t(e,{componentStack:null})}}function yy(){Ze===3&&(Ze=0,Sd(zi,aa),Ze=4)}function wu(){if(Ze===1){Ze=0;var e=aa,t=zi,a=pa,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=ne.T,ne.T=null;var l=he.p;he.p=2;var o=ze;ze|=4;try{fl=Bo=!1,wd(t,e,a),a=Ou;var c=yf(e.containerInfo),d=a.focusedElem,y=a.selectionRange;if(c!==d&&d&&d.ownerDocument&&gf(d.ownerDocument.documentElement,d)){if(y!==null&&$s(d)){var k=y.start,j=y.end;if(j===void 0&&(j=k),"selectionStart"in d)d.selectionStart=k,d.selectionEnd=Math.min(j,d.value.length);else{var U=d.ownerDocument||document,D=U&&U.defaultView||window;if(D.getSelection){var _=D.getSelection(),F=d.textContent.length,se=Math.min(y.start,F),we=y.end===void 0?se:Math.min(y.end,F);!_.extend&&se>we&&(c=we,we=se,se=c);var x=pf(d,se),w=pf(d,we);if(x&&w&&(_.rangeCount!==1||_.anchorNode!==x.node||_.anchorOffset!==x.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var N=U.createRange();N.setStart(x.node,x.offset),_.removeAllRanges(),se>we?(_.addRange(N),_.extend(w.node,w.offset)):(N.setEnd(w.node,w.offset),_.addRange(N))}}}}for(U=[],_=d;_=_.parentNode;)_.nodeType===1&&U.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var R=U[d];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}qn=!!Cu,Ou=Cu=null}finally{ze=o,he.p=l,ne.T=i}}e.current=t,Ze=2}}function Tu(){if(Ze===2){Ze=0;var e=aa,t=zi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ne.T,ne.T=null;var i=he.p;he.p=2;var l=ze;ze|=4;try{md(e,t.alternate,t)}finally{ze=l,he.p=i,ne.T=a}}Ze=3}}function Su(){if(Ze===4||Ze===3){Ze=0;var e=yn;yn=null,zp();var t=aa,a=zi,i=pa,l=Ed,o=(i&335544064)===i?10262:10256;if((a.subtreeFlags&o)!==0||(a.flags&o)!==0?Ze=5:(Ze=0,zi=aa=null,Gd(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pa=null),js(i),a=a.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Cn,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=ne.T,o=he.p,he.p=2,ne.T=null;try{for(var c=t.onRecoverableError,d=0;d<l.length;d++){var y=l[d];c(y.value,{componentStack:y.stack})}}finally{ne.T=a,he.p=o}}if(l=vn,c=bn,bn=null,l!==null&&(vn=null,c===null&&(c=[]),e!==null))for(y=0;y<l.length;y++)a=(0,l[y])(c),a!==void 0&&e.finished.finally(a);(pa&3)!==0&&Io(),ga(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===Jo?pl++:(pl=0,Jo=t):(pl=0,Jo=null),gl(0)}}function Gd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fn(t)))}function Io(){return yn!==null&&(yn.skipTransition(),yn=null),wu(),Tu(),Su(),Du()}function Du(){if(Ze!==5)return!1;var e=aa,t=gu;gu=0;var a=js(pa),i=ne.T,l=he.p;try{he.p=32>a?32:a,ne.T=null,a=yu,yu=null;var o=aa,c=pa;if(Ze=0,zi=aa=null,pa=0,(ze&6)!==0)throw Error(u(331));var d=ze;if(ze|=4,kd(o.current),Dd(o,o.current,c,a),ze=d,gl(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Cn,o)}catch{}return!0}finally{he.p=l,ne.T=i,Gd(e,t)}}function Ld(e,t,a){t=Qt(a,t),t=Br(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&(Rn(e,2),ga(e))}function Oe(e,t,a){if(e.tag===3)Ld(e,e,a);else for(;t!==null;){if(t.tag===3){Ld(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pa===null||!Pa.has(i))){e=Qt(a,e),a=Hh(2),i=Xa(t,a,2),i!==null&&(Yh(a,i,t,e),Rn(i,2),ga(i));break}}t=t.return}}function Au(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new cy;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(a)||(mu=!0,l.add(a),e=vy.bind(null,e,t,a),t.then(e,e))}function vy(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ye===e&&(Ne&a)===a&&((Je===4||Je===3&&(Ne&62914560)===Ne&&300>Et()-Xo)&&(ze&2)===0?Tn(e,0):Vo|=a,gn===Ne&&(gn=0)),ga(e)}function Qd(e,t){t===0&&(t=Nc()),e=gi(e,t),e!==null&&(Rn(e,t),ga(e))}function by(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Qd(e,a)}function wy(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(a=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Qd(e,a)}function Ty(e,t){return Ns(e,t)}var Dn=null,An=null,xu=!1,Po=!1,ku=!1,ti=0;function ga(e){e!==An&&e.next===null&&(An===null?Dn=An=e:An=An.next=e),Po=!0,xu||(xu=!0,Dy())}function gl(e,t){if(!ku&&Po){ku=!0;do for(var a=!1,i=Dn;i!==null;){if(e!==0){var l=i.pendingLanes;if(l===0)var o=0;else{var c=i.suspendedLanes,d=i.pingedLanes;o=(1<<31-jt(42|e)+1)-1,o&=l&~(c&~d),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Kd(i,o))}else o=Ne,o=Ql(i,i===Ye?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||On(i,o)||(a=!0,Kd(i,o));i=i.next}while(a);ku=!1}}function Sy(){Vd()}function Vd(){Po=xu=!1;var e=0;ti!==0&&Cy()&&(e=ti);for(var t=Et(),a=null,i=Dn;i!==null;){var l=i.next,o=Xd(i,t);o===0?(i.next=null,a===null?Dn=l:a.next=l,l===null&&(An=a)):(a=i,(e!==0||(o&3)!==0)&&(Po=!0)),i=l}Ze!==0&&Ze!==5||gl(e),ti!==0&&(ti=0)}function Xd(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var c=31-jt(o),d=1<<c,y=l[c];y===-1?((d&a)===0||(d&i)!==0)&&(l[c]=Bp(d,t)):y<=t&&(e.expiredLanes|=d),o&=~d}if(t=Ye,a=Ne,a=Ql(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&_s(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||On(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&_s(i),js(a)){case 2:case 8:a=Ac;break;case 32:a=Yl;break;case 268435456:a=xc;break;default:a=Yl}return i=Zd.bind(null,e),a=Ns(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&_s(i),e.callbackPriority=2,e.callbackNode=null,2}function Zd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Io()&&e.callbackNode!==a)return null;var i=Ne;return i=Ql(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(jd(e,i,t),Xd(e,Et()),e.callbackNode!=null&&e.callbackNode===a?Zd.bind(null,e):null)}function Kd(e,t){if(Io())return null;jd(e,t,!0)}function Dy(){Ry(function(){(ze&6)!==0?Ns(Dc,Sy):Vd()})}function Nu(){if(ti===0){var e=Si;e===0&&(e=Bl,Bl<<=1,(Bl&261888)===0&&(Bl=256)),ti=e}return ti}function Jd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jl(e)}function Ay(e,t,a,i,l){if(t==="submit"&&a&&a.stateNode===l){var o=Jd((l[Dt]||null).action),c=i.submitter;c&&(t=(t=c[Dt]||null)?Jd(t.formAction):c.getAttribute("formAction"),t!==null&&(o=t,c=null));var d=new Il("action","action",null,i,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ti!==0){var y=new FormData(l,c);Or(a,{pending:!0,data:y,method:l.method,action:o},null,y)}}else typeof o=="function"&&(d.preventDefault(),y=new FormData(l,c),Or(a,{pending:!0,data:y,method:l.method,action:o},o,y))},currentTarget:l}]})}}for(var _u=0;_u<Ps.length;_u++){var Eu=Ps[_u],xy=Eu.toLowerCase(),ky=Eu[0].toUpperCase()+Eu.slice(1);It(xy,"on"+ky)}It(wf,"onAnimationEnd"),It(Tf,"onAnimationIteration"),It(Sf,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(Og,"onTransitionRun"),It(Rg,"onTransitionStart"),It(Ug,"onTransitionCancel"),It(Df,"onTransitionEnd"),Xi("onMouseEnter",["mouseout","mouseover"]),Xi("onMouseLeave",["mouseout","mouseover"]),Xi("onPointerEnter",["pointerout","pointerover"]),Xi("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="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(" "),Ny=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function $d(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],l=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var c=i.length-1;0<=c;c--){var d=i[c],y=d.instance,k=d.currentTarget;if(d=d.listener,y!==o&&l.isPropagationStopped())break e;o=d,l.currentTarget=k;try{o(l)}catch(j){to(j)}l.currentTarget=null,o=y}else for(c=0;c<i.length;c++){if(d=i[c],y=d.instance,k=d.currentTarget,d=d.listener,y!==o&&l.isPropagationStopped())break e;o=d,l.currentTarget=k;try{o(l)}catch(j){to(j)}l.currentTarget=null,o=y}}}}function xe(e,t){var a=t[Mc];a===void 0&&(a=t[Mc]=new Set);var i=e+"__bubble";a.has(i)||(Fd(t,e,2,!1),a.add(i))}function qu(e,t,a){var i=0;t&&(i|=4),Fd(a,e,i,t)}var es="_reactListening"+Math.random().toString(36).slice(2);function ju(e){if(!e[es]){e[es]=!0,Rc.forEach(function(a){a!=="selectionchange"&&(Ny.has(a)||qu(a,!1,e),qu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[es]||(t[es]=!0,qu("selectionchange",!1,t))}}function Fd(e,t,a,i){switch(Ym(t)){case 2:var l=b1;break;case 8:l=w1;break;default:l=Wu}a=l.bind(null,t,a,e),l=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function zu(e,t,a,i,l){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var c=i.tag;if(c===3||c===4){var d=i.stateNode.containerInfo;if(d===l)break;if(c===4)for(c=i.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===l)return;c=c.return}for(;d!==null;){if(c=hi(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){i=o=c;continue e}d=d.parentNode}}i=i.return}$c(function(){var k=o,j=Us(a),U=[];e:{var D=Af.get(e);if(D!==void 0){var _=Il,F=e;switch(e){case"keypress":if(Fl(a)===0)break e;case"keydown":case"keyup":_=fg;break;case"focusin":F="focus",_=Qs;break;case"focusout":F="blur",_=Qs;break;case"beforeblur":case"afterblur":_=Qs;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=gg;break;case wf:case Tf:case Sf:_=ag;break;case Df:_=vg;break;case"scroll":case"scrollend":_=Wp;break;case"wheel":_=wg;break;case"copy":case"cut":case"paste":_=ng;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=ef;break;case"submit":_=mg;break;case"toggle":case"beforetoggle":_=Sg}var se=(t&4)!==0,we=!se&&(e==="scroll"||e==="scrollend"),x=se?D!==null?D+"Capture":null:D;se=[];for(var w=k,N;w!==null;){var R=w;if(N=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||N===null||x===null||(R=Yn(w,x),R!=null&&se.push(vl(w,R,N))),we)break;w=w.return}0<se.length&&(D=new _(D,F,null,a,j),U.push({event:D,listeners:se}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",_&&a!==Rs&&(F=a.relatedTarget||a.fromElement)&&(hi(F)||F[Li]))break e;(D||_)&&(F=j.window===j?j:(_=j.ownerDocument)?_.defaultView||_.parentWindow:window,D?(_=a.relatedTarget||a.toElement,D=k,_=_?hi(_):null,_!==null&&(we=m(_),se=_.tag,_!==we||se!==5&&se!==27&&se!==6)&&(_=null)):(D=null,_=k),D!==_&&(se=Ic,R="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(se=ef,R="onPointerLeave",x="onPointerEnter",w="pointer"),we=D==null?F:Hn(D),N=_==null?F:Hn(_),F=new se(R,w+"leave",D,a,j),F.target=we,F.relatedTarget=N,R=null,hi(j)===k&&(se=new se(x,w+"enter",_,a,j),se.target=N,se.relatedTarget=we,R=se),we=R,se=D&&_?Y(D,_,_y):null,D!==null&&Wd(U,F,D,se,!1),_!==null&&we!==null&&Wd(U,we,_,se,!0)))}e:{if(D=k?Hn(k):window,_=D.nodeName&&D.nodeName.toLowerCase(),_==="select"||_==="input"&&D.type==="file")var ae=uf;else if(sf(D))if(cf)ae=zg;else{ae=qg;var _e=Eg}else _=D.nodeName,!_||_.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?k&&Os(k.elementType)&&(ae=uf):ae=jg;if(ae&&(ae=ae(e,k))){rf(U,ae,a,j);break e}_e&&_e(e,D,k)}switch(_e=k?Hn(k):window,e){case"focusin":(sf(_e)||_e.contentEditable==="true")&&(Wi=_e,Fs=k,Kn=null);break;case"focusout":Kn=Fs=Wi=null;break;case"mousedown":Ws=!0;break;case"contextmenu":case"mouseup":case"dragend":Ws=!1,vf(U,a,j);break;case"selectionchange":if(Cg)break;case"keydown":case"keyup":vf(U,a,j)}var ce;if(Xs)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Fi?lf(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(tf&&a.locale!=="ko"&&(Fi||me!=="onCompositionStart"?me==="onCompositionEnd"&&Fi&&(ce=Fc()):(Ra=j,Bs="value"in Ra?Ra.value:Ra.textContent,Fi=!0)),_e=ts(k,me),0<_e.length&&(me=new Pc(me,e,null,a,j),U.push({event:me,listeners:_e}),ce?me.data=ce:(ce=of(a),ce!==null&&(me.data=ce)))),(ce=Ag?xg(e,a):kg(e,a))&&(me=ts(k,"onBeforeInput"),0<me.length&&(_e=new Pc("onBeforeInput","beforeinput",null,a,j),U.push({event:_e,listeners:me}),_e.data=ce)),Ay(U,e,k,a,j)}$d(U,t)})}function vl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ts(e,t){for(var a=t+"Capture",i=[];e!==null;){var l=e,o=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||o===null||(l=Yn(e,a),l!=null&&i.unshift(vl(e,l,o)),l=Yn(e,t),l!=null&&i.push(vl(e,l,o))),e.tag===3)return i;e=e.return}return[]}function _y(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wd(e,t,a,i,l){for(var o=t._reactName,c=[];a!==null&&a!==i;){var d=a,y=d.alternate,k=d.stateNode;if(d=d.tag,y!==null&&y===i)break;d!==5&&d!==26&&d!==27||k===null||(y=k,l?(k=Yn(a,o),k!=null&&c.unshift(vl(a,k,y))):l||(k=Yn(a,o),k!=null&&c.push(vl(a,k,y)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var Ey=/\r\n?/g,qy=/\u0000|\uFFFD/g;function Id(e){return(typeof e=="string"?e:""+e).replace(Ey,`
|
|
9
|
+
`).replace(qy,"")}function Pd(e,t){return t=Id(t),Id(e)===t}function Re(e,t,a,i,l,o){switch(a){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||Ki(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&Ki(e,""+i);else return;break;case"className":Kl(e,"class",i);break;case"tabIndex":Kl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Kl(e,a,i);break;case"style":Kc(e,i,o);return;case"data":if(t!=="object"){Kl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Jl(i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",l.name,l,null),Re(e,t,"formEncType",l.formEncType,l,null),Re(e,t,"formMethod",l.formMethod,l,null),Re(e,t,"formTarget",l.formTarget,l,null)):(Re(e,t,"encType",l.encType,l,null),Re(e,t,"method",l.method,l,null),Re(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Jl(i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=oa);return;case"onScroll":i!=null&&xe("scroll",e);return;case"onScrollEnd":i!=null&&xe("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(l.children!=null)throw Error(u(60));o?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Jl(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Zl(e,"popover",i);break;case"xlinkActuate":wa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":wa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":wa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":wa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":wa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":wa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":wa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":wa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":wa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Zl(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=$p.get(a)||a,Zl(e,a,i);else return}qe=!0}function Mu(e,t,a,i,l,o){switch(a){case"style":Kc(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(a=i.__html,a!=null){if(l.children!=null)throw Error(u(60));o?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof i=="string")Ki(e,i);else if(typeof i=="number"||typeof i=="bigint")Ki(e,""+i);else return;break;case"onScroll":i!=null&&xe("scroll",e);return;case"onScrollEnd":i!=null&&xe("scrollend",e);return;case"onClick":i!=null&&(e.onclick=oa);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Uc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),o=a.slice(2,l?a.length-7:void 0),t=e[Dt]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(o,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(o,i,l);break e}qe=!0,a in e?e[a]=i:i===!0?e.setAttribute(a,""):Zl(e,a,i)}return}qe=!0}function dt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var i=!1,l=!1,o;for(o in a)if(a.hasOwnProperty(o)){var c=a[o];if(c!=null)switch(o){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Re(e,t,o,c,a,null)}}l&&Re(e,t,"srcSet",a.srcSet,a,null),i&&Re(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var d=o=c=l=null,y=null,k=null;for(i in a)if(a.hasOwnProperty(i)){var j=a[i];if(j!=null)switch(i){case"name":l=j;break;case"type":c=j;break;case"checked":y=j;break;case"defaultChecked":k=j;break;case"value":o=j;break;case"defaultValue":d=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:Re(e,t,i,j,a,null)}}Qc(e,o,d,y,k,c,l,!1);return;case"select":xe("invalid",e),i=c=o=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":o=d;break;case"defaultValue":c=d;break;case"multiple":i=d;default:Re(e,t,l,d,a,null)}t=o,a=c,e.multiple=!!i,t!=null?Zi(e,!!i,t,!1):a!=null&&Zi(e,!!i,a,!0);return;case"textarea":xe("invalid",e),o=l=i=null;for(c in a)if(a.hasOwnProperty(c)&&(d=a[c],d!=null))switch(c){case"value":i=d;break;case"defaultValue":l=d;break;case"children":o=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(u(91));break;default:Re(e,t,c,d,a,null)}Xc(e,i,l,o);return;case"option":for(y in a)a.hasOwnProperty(y)&&(i=a[y],i!=null)&&(y==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":Re(e,t,y,i,a,null));return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(i=0;i<yl.length;i++)xe(yl[i],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(k in a)if(a.hasOwnProperty(k)&&(i=a[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Re(e,t,k,i,a,null)}return;default:if(Os(t)){for(j in a)a.hasOwnProperty(j)&&(i=a[j],i!==void 0&&Mu(e,t,j,i,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(i=a[d],i!=null&&Re(e,t,d,i,a,null))}var jy={};function zy(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,o=null,c=null,d=null,y=null,k=null,j=null;for(_ in a){var U=a[_];if(a.hasOwnProperty(_)&&U!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=U;default:i.hasOwnProperty(_)||Re(e,t,_,null,i,U)}}for(var D in i){var _=i[D];if(U=a[D],i.hasOwnProperty(D)&&(_!=null||U!=null))switch(D){case"type":_!==U&&(qe=!0),o=_;break;case"name":_!==U&&(qe=!0),l=_;break;case"checked":_!==U&&(qe=!0),k=_;break;case"defaultChecked":_!==U&&(qe=!0),j=_;break;case"value":_!==U&&(qe=!0),c=_;break;case"defaultValue":_!==U&&(qe=!0),d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:_!==U&&Re(e,t,D,_,i,U)}}Ms(e,c,d,y,k,j,o,l);return;case"select":_=c=d=D=null;for(o in a)if(y=a[o],a.hasOwnProperty(o)&&y!=null)switch(o){case"value":break;case"multiple":_=y;default:i.hasOwnProperty(o)||Re(e,t,o,null,i,y)}for(l in i)if(o=i[l],y=a[l],i.hasOwnProperty(l)&&(o!=null||y!=null))switch(l){case"value":o!==y&&(qe=!0),D=o;break;case"defaultValue":o!==y&&(qe=!0),d=o;break;case"multiple":o!==y&&(qe=!0),c=o;default:o!==y&&Re(e,t,l,o,i,y)}t=d,a=c,i=_,D!=null?Zi(e,!!a,D,!1):!!i!=!!a&&(t!=null?Zi(e,!!a,t,!0):Zi(e,!!a,a?[]:"",!1));return;case"textarea":_=D=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!i.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Re(e,t,d,null,i,l)}for(c in i)if(l=i[c],o=a[c],i.hasOwnProperty(c)&&(l!=null||o!=null))switch(c){case"value":l!==o&&(qe=!0),D=l;break;case"defaultValue":l!==o&&(qe=!0),_=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(u(91));break;default:l!==o&&Re(e,t,c,l,i,o)}Vc(e,D,_);return;case"option":for(var F in a)D=a[F],a.hasOwnProperty(F)&&D!=null&&!i.hasOwnProperty(F)&&(F==="selected"?e.selected=!1:Re(e,t,F,null,i,D));for(y in i)D=i[y],_=a[y],i.hasOwnProperty(y)&&D!==_&&(D!=null||_!=null)&&(y==="selected"?(D!==_&&(qe=!0),e.selected=D&&typeof D!="function"&&typeof D!="symbol"):Re(e,t,y,D,i,_));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in a)D=a[se],a.hasOwnProperty(se)&&D!=null&&!i.hasOwnProperty(se)&&Re(e,t,se,null,i,D);for(k in i)if(D=i[k],_=a[k],i.hasOwnProperty(k)&&D!==_&&(D!=null||_!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:Re(e,t,k,D,i,_)}return;default:if(Os(t)){for(var we in a)D=a[we],a.hasOwnProperty(we)&&D!==void 0&&!i.hasOwnProperty(we)&&Mu(e,t,we,void 0,i,D);for(j in i)D=i[j],_=a[j],!i.hasOwnProperty(j)||D===_||D===void 0&&_===void 0||Mu(e,t,j,D,i,_);return}}for(var x in a)D=a[x],a.hasOwnProperty(x)&&D!=null&&!i.hasOwnProperty(x)&&Re(e,t,x,null,i,D);for(U in i)D=i[U],_=a[U],!i.hasOwnProperty(U)||D===_||D==null&&_==null||Re(e,t,U,D,i,_)}function em(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function My(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var l=a[i],o=l.transferSize,c=l.initiatorType,d=l.duration;if(o&&d&&em(c)){for(c=0,d=l.responseEnd,i+=1;i<a.length;i++){var y=a[i],k=y.startTime;if(k>d)break;var j=y.transferSize,U=y.initiatorType;j&&em(U)&&(y=y.responseEnd,c+=j*(y<d?1:(d-k)/(y-k)))}if(--i,t+=8*(o+c)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cu=null,Ou=null;function bl(e){return e.nodeType===9?e:e.ownerDocument}function tm(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 am(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 im(e,t,a,i){return a=bl(a).createElement(e),a[rt]=i,a[Dt]=t,dt(a,e,t),nt(a),a}function Ru(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 Uu=null;function Cy(){var e=window.event;return e&&e.type==="popstate"?e===Uu?!1:(Uu=e,!0):(Uu=null,!1)}var Hu=typeof setTimeout=="function"?setTimeout:void 0,Oy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,lm=typeof requestAnimationFrame=="function"?requestAnimationFrame:Hu,Ry=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(e){return nm.resolve(null).then(e).catch(Uy)}:Hu;function Uy(e){setTimeout(function(){throw e})}function ai(e){return e==="head"}function om(e,t){var a=t,i=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(l),jn(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Zu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Zu(a);for(var o=a.firstChild;o;){var c=o.nextSibling,d=o.nodeName;o[Un]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=c}}else a==="body"&&Zu(e.ownerDocument.body);a=l}while(a);jn(t)}function sm(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function rm(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var o=t[l];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function um(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Hy(e,t,a){return a=a.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<=a.innerHeight&&e.left<=a.innerWidth}}function Yu(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return Hy(t,a,e)}function Yy(e){return e.documentElement.clientHeight}function By(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Gy(e,t,a,i,l,o,c,d,y){var k=t.nodeType===9?t:t.ownerDocument;try{var j=k.startViewTransition({update:function(){var D=k.defaultView,_=D.navigation&&D.navigation.transition,F=k.fonts.status;i();var se=[];if(F==="loaded"&&(Yy(k),k.fonts.status==="loading"&&se.push(k.fonts.ready)),F=se.length,e!==null)for(var we=e.suspenseyImages,x=0,w=0;w<we.length;w++){var N=we[w];if(!N.complete){var R=N.getBoundingClientRect();if(0<R.bottom&&0<R.right&&R.top<D.innerHeight&&R.left<D.innerWidth){if(x+=qm(N),x>ns){se.length=F;break}N=new Promise(By.bind(N)),se.push(N)}}}if(0<se.length)return D=Promise.race([Promise.all(se),new Promise(function(ae){return setTimeout(ae,500)})]).then(l,l),(_?Promise.allSettled([_.finished,D]):D).then(o,o);if(l(),_)return _.finished.then(o,o);o()},types:a});k.__reactViewTransition=j;var U=[];return j.ready.then(function(){for(var D=k.documentElement.getAnimations({subtree:!0}),_=0;_<D.length;_++){var F=D[_],se=F.effect,we=se.pseudoElement;if(we!=null&&we.startsWith("::view-transition")){U.push(F),F=se.getKeyframes();for(var x=we=void 0,w=!0,N=0;N<F.length;N++){var R=F[N],ae=R.width;if(we===void 0)we=ae;else if(we!==ae){w=!1;break}if(ae=R.height,x===void 0)x=ae;else if(x!==ae){w=!1;break}delete R.width,delete R.height,R.transform==="none"&&delete R.transform}w&&we!==void 0&&x!==void 0&&(se.setKeyframes(F),w=getComputedStyle(se.target,se.pseudoElement),w.width!==we||w.height!==x)&&(w=F[0],w.width=we,w.height=x,w=F[F.length-1],w.width=we,w.height=x,se.setKeyframes(F))}}c()},function(D){k.__reactViewTransition===j&&(k.__reactViewTransition=null);try{typeof D=="object"&&D!==null&&D.name==="InvalidStateError"&&(D.message==="View transition was skipped because document visibility state is hidden."||D.message==="Skipping view transition because document visibility state has become hidden."||D.message==="Skipping view transition because viewport size changed."||D.message==="Transition was aborted because of invalid state")&&(D=null),D!==null&&y(D)}finally{i(),l(),c()}}),j.finished.finally(function(){for(var D=0;D<U.length;D++)U[D].cancel();k.__reactViewTransition===j&&(k.__reactViewTransition=null),d()}),j}catch{return i(),l(),c(),null}}function Mi(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Mi.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:B({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Mi.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),i=[],l=0;l<a.length;l++){var o=a[l].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(a[l])}return i},Mi.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function cm(e){return{name:e,group:new Mi("group",e),imagePair:new Mi("image-pair",e),old:new Mi("old",e),new:new Mi("new",e)}}function Yt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Yt.prototype.addEventListener=function(e,t,a){var i=null,l=null;if(!(a!=null&&typeof a!="boolean"&&(i=a.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(hm(o,e,t,a)===-1){var c=this,d=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(d=function(y){c.removeEventListener(e,t,a),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),i!==null&&(l=c.removeEventListener.bind(c,e,t,a),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=xn(a),o.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:d,cleanup:l}),p(this._fragmentFiber.child,!1,Ly,e,d,i)}this._eventListeners=o}};function Ly(e,t,a,i){return O(e).addEventListener(t,a,i),!1}Yt.prototype.removeEventListener=function(e,t,a){var i=this._eventListeners;if(i!==null&&(t=hm(i,e,t,a),t!==-1)){var l=i[t];a=l.attachedListener;var o=l.cleanup;l=xn(l.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Qy,e,a,l),i.splice(t,1),o!==null&&o()}};function Qy(e,t,a,i){return O(e).removeEventListener(t,a,i),!1}function xn(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function fm(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function hm(e,t,a,i){if(e.length===0)return-1;i=fm(i);for(var l=0;l<e.length;l++){var o=e[l];if(o.type===t&&o.listener===a&&fm(o.optionsOrUseCapture)===i)return l}return-1}Yt.prototype.dispatchEvent=function(e){var t=A(this._fragmentFiber);if(t===null)return!0;t=O(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var l=0;l<a.length;l++){var o=a[l];i.addEventListener(o.type,o.attachedListener,xn(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),a)for(l=0;l<a.length;l++)o=a[l],i.removeEventListener(o.type,o.attachedListener,xn(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)},Yt.prototype.focus=function(e){p(this._fragmentFiber.child,!0,dm,e,void 0,void 0)};function dm(e,t){return e.tag===6?!1:(e=O(e),t1(e,t))}Yt.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Bu,t,void 0,void 0);for(var a=t.length-1;0<=a&&!dm(t[a],e);a--);};function Bu(e,t){return t.push(e),!1}Yt.prototype.blur=function(){var e=A(this._fragmentFiber);e!==null&&(e=O(e),e=bl(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Vy,e,void 0,void 0))};function Vy(e,t){return e.tag===6?!1:(e=O(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Yt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Xy,e,void 0,void 0)};function Xy(e,t){return e.tag===6||(e=O(e),t.observe(e)),!1}Yt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Zy,e,void 0,void 0);for(var a=t=0;a<ia.length;a++){var i=ia[a];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):ia[t++]=i}ia.length=t}};function Zy(e,t){return e.tag===6||(e=O(e),t.unobserve(e)),!1}var ia=[],Gu=!1;function Ky(e,t,a){ia.push({fragmentInstance:e,observer:t,instance:a}),Gu||(Gu=!0,a1(function(){Gu=!1;var i=ia;ia=[];for(var l=0;l<i.length;l++){var o=i[l];o.observer.unobserve(o.instance)}}))}Yt.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Jy,e,void 0,void 0),e};function Jy(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=O(e),t.push.apply(t,e.getClientRects());return!1}Yt.prototype.getRootNode=function(e){var t=A(this._fragmentFiber);return t===null?this:O(t).getRootNode(e)},Yt.prototype.compareDocumentPosition=function(e){var t=A(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];p(this._fragmentFiber.child,!1,Bu,a,void 0,void 0);var i=O(t);if(a.length===0){if(a=i,M(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&&(a=t)}t=this._fragmentFiber;var l=i=a.compareDocumentPosition(e);return a===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=C(t)[1],a===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=O(a).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=O(a[0]),l=O(a[a.length-1]);var o=M(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var c=t.compareDocumentPosition(e),d=l.compareDocumentPosition(e),y=c&Node.DOCUMENT_POSITION_CONTAINED_BY||d&Node.DOCUMENT_POSITION_CONTAINED_BY;return d=i&&o&&c&Node.DOCUMENT_POSITION_FOLLOWING&&d&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&l===e||y||d?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:c,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||$y(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function $y(e,t,a,i,l){var o=hi(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){a=!0;break e}o=o.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=l.ownerDocument,l===o||l===o.documentElement||l===o.body;e:{for(o=t,t=A(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===a)&&(t=Y(a,o,Q),t===null?t=!1:(p(t,!0,$,o,a),o=H,H=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Y(i,o,Q),t===null?t=!1:(p(t,!0,J,o,i),o=H,L=H=null,t=o!==null)),t):!1}function mm(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Yt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(u(566));var t=[];p(this._fragmentFiber.child,!1,Bu,t,void 0,void 0);var a=e!==!1;if(t.length===0){var i=C(this._fragmentFiber);if(i=a?i[1]||i[0]||A(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=O(i),mm(e,a);return}if(i=O(i),i.nodeType!==9){if(i.nodeType===11){a="host"in i?i.host:null,a!==null&&a.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=a?t.length-1:0;i!==(a?-1:t.length);){var l=t[i];l.tag===6?(l=O(l),mm(l,a)):O(l).scrollIntoView(e),i+=a?-1:1}};function Fy(e,t){return e=O(e),pm(e,t),!1}function pm(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function gm(e,t){var a=t._eventListeners;if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];e.addEventListener(l.type,l.attachedListener,xn(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(o){for(var c=0,d=0;d<ia.length;d++){var y=ia[d];(y.fragmentInstance!==t||y.observer!==o||y.instance!==e)&&(ia[c++]=y)}ia.length=c,o.observe(e)}),pm(e,t))}function Wy(e,t){var a=t._eventListeners;if(a!==null)for(var i=0;i<a.length;i++){var l=a[i];e.removeEventListener(l.type,l.attachedListener,xn(l.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(o){typeof o.rootMargin=="string"?Ky(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Lu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lu(a),Xl(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Iy(e,t,a,i){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Un])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!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function Py(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Jt(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function Qu(e){return e.data==="$?"||e.data==="$~"}function Vu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function e1(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Jt(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 Xu=null;function vm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function t1(e,t){function a(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return i}function a1(e){lm(function(){lm(function(t){return e(t)})})}function wm(e,t,a){switch(t=bl(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Tm(e,t,a){for(var i in a){var l=a[i];a.hasOwnProperty(i)&&l!=null&&Re(e,t,i,null,jy,l)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===oa&&(e.onclick=null),Xl(e)}function Zu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xl(e)}var $t=new Map,Sm=new Set;function wl(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 Ma=he.d;he.d={f:i1,r:n1,D:l1,C:o1,L:s1,m:r1,X:c1,S:u1,M:f1};function i1(){var e=Ma.f(),t=$o();return e||t}function n1(e){var t=Qi(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Ma.r(e)}var kn=typeof document>"u"?null:document;function Dm(e,t,a){var i=kn;if(i&&typeof t=="string"&&t){var l=Gt(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Sm.has(l)||(Sm.add(l),e={rel:e,crossOrigin:a,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),nt(t),i.head.appendChild(t)))}}function l1(e){Ma.D(e),Dm("dns-prefetch",e,null)}function o1(e,t){Ma.C(e,t),Dm("preconnect",e,t)}function s1(e,t,a){Ma.L(e,t,a);var i=kn;if(i&&e&&t){var l='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Gt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Gt(a.imageSizes)+'"]')):l+='[href="'+Gt(e)+'"]';var o=l;switch(t){case"style":o=Nn(e);break;case"script":o=_n(e)}if(!($t.has(o)||(e=B({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(o,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(Tl(o))||t==="script"&&i.querySelector(Sl(o))))){var c=i.createElement("link");dt(c,"link",e),t==="style"&&(c[Vl]=!0,c.onload=c.onerror=function(){Oc(c)}),nt(c),i.head.appendChild(c)}}}function r1(e,t){Ma.m(e,t);var a=kn;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Gt(i)+'"][href="'+Gt(e)+'"]',o=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=_n(e)}if(!$t.has(o)&&(e=B({rel:"modulepreload",href:e},t),$t.set(o,e),a.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Sl(o)))return}i=a.createElement("link"),dt(i,"link",e),nt(i),a.head.appendChild(i)}}}function u1(e,t,a){Ma.S(e,t,a);var i=kn;if(i&&e){var l=Vi(i).hoistableStyles,o=Nn(e);t=t||"default";var c=l.get(o);if(!c){var d={loading:0,preload:null};if(c=i.querySelector(Tl(o)))d.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(o))&&Ku(e,a);var y=c=i.createElement("link");nt(y),dt(y,"link",e),y._p=new Promise(function(k,j){y.onload=k,y.onerror=j}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,as(c,t,i)}c={type:"stylesheet",instance:c,count:1,state:d},l.set(o,c)}}}function c1(e,t){Ma.X(e,t);var a=kn;if(a&&e){var i=Vi(a).hoistableScripts,l=_n(e),o=i.get(l);o||(o=a.querySelector(Sl(l)),o||(e=B({src:e,async:!0},t),(t=$t.get(l))&&Ju(e,t),o=a.createElement("script"),nt(o),dt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(l,o))}}function f1(e,t){Ma.M(e,t);var a=kn;if(a&&e){var i=Vi(a).hoistableScripts,l=_n(e),o=i.get(l);o||(o=a.querySelector(Sl(l)),o||(e=B({src:e,async:!0,type:"module"},t),(t=$t.get(l))&&Ju(e,t),o=a.createElement("script"),nt(o),dt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(l,o))}}function Am(e,t,a,i){var l=(l=va.current)?wl(l):null;if(!l)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Nn(a.href),t=Vi(l).hoistableStyles,i=t.get(a),i||(i={type:"style",instance:null,count:0,state:null},t.set(a,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Nn(a.href);var o=Vi(l).hoistableStyles,c=o.get(e);if(c||(l=l.ownerDocument||l,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,c),(o=l.querySelector(Tl(e)))?o._p||(c.instance=o,c.state.loading=5):(o=$t.get(e),o||(o={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,o)),h1(l,e,o,c.state))),t&&i===null)throw Error(u(528,""));return c}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=_n(a),t=Vi(l).hoistableScripts,i=t.get(a),i||(i={type:"script",instance:null,count:0,state:null},t.set(a,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Nn(e){return'href="'+Gt(e)+'"'}function Tl(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function h1(e,t,a,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Vl]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[Vl]=!0,t.onload=t.onerror=Oc.bind(null,t),dt(t,"link",a),nt(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function _n(e){return'[src="'+Gt(e)+'"]'}function Sl(e){return"script[async]"+e}function km(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Gt(a.href)+'"]');if(i)return t.instance=i,nt(i),i;var l=B({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),nt(i),dt(i,"style",l),as(i,a.precedence,e),t.instance=i;case"stylesheet":l=Nn(a.href);var o=e.querySelector(Tl(l));if(o)return t.state.loading|=4,t.instance=o,nt(o),o;i=xm(a),(l=$t.get(l))&&Ku(i,l),o=(e.ownerDocument||e).createElement("link"),nt(o);var c=o;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),dt(o,"link",i),t.state.loading|=4,as(o,a.precedence,e),t.instance=o;case"script":return o=_n(a.src),(l=e.querySelector(Sl(o)))?(t.instance=l,nt(l),l):(i=a,(l=$t.get(o))&&(i=B({},a),Ju(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),nt(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,as(i,a.precedence,e));return t.instance}function as(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,o=l,c=0;c<i.length;c++){var d=i[c];if(d.dataset.precedence===t)o=d;else if(o!==l)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var is=null;function Nm(e,t,a){if(is===null){var i=new Map,l=is=new Map;l.set(a,i)}else l=is,i=l.get(a),i||(i=new Map,l.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),l=0;l<a.length;l++){var o=a[l];if(!(o[Un]||o[rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var c=o.getAttribute(t)||"";c=e+c;var d=i.get(c);d?d.push(o):i.set(c,[o])}}return i}function $u(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function d1(e,t,a){if(a===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 _m(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Em(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function jm(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=qm(t),e.suspenseyImages.push(t)),e=g1.bind(e),t.decode().then(e,e))}function m1(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=Nn(i.href),o=t.querySelector(Tl(l));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Dl.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,nt(o);return}o=t.ownerDocument||t,i=xm(i),(l=$t.get(l))&&Ku(i,l),o=o.createElement("link"),nt(o);var c=o;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),dt(o,"link",i),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Dl.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ns=0;function p1(e,t){return e.stylesheets&&e.count===0&&os(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&os(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ns===0&&(ns=62500*My());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&os(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ns?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function zm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)os(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Dl(){this.count--,zm(this)}function g1(){this.imgCount--,zm(this)}var ls=null;function os(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ls=new Map,t.forEach(y1,e),ls=null,Dl.call(e))}function y1(e,t){if(!(t.state.loading&4)){var a=ls.get(e);if(a)var i=a.get(null);else{a=new Map,ls.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<l.length;o++){var c=l[o];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),i=c)}i&&a.set(null,i)}l=t.instance,c=l.getAttribute("data-precedence"),o=a.get(c)||i,o===i&&a.set(null,l),a.set(c,l),this.count++,i=Dl.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),o?o.parentNode.insertBefore(l,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var En={$$typeof:ue,Provider:null,Consumer:null,_currentValue:pt,_currentValue2:pt,_threadCount:0};function v1(e,t,a,i,l,o,c,d,y){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=Es(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Es(0),this.hiddenUpdates=Es(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=o,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function Mm(e,t,a,i,l,o,c,d,y,k,j,U){return e=new v1(e,t,a,c,y,k,j,U,d),t=1,o===!0&&(t|=24),o=At(3,null,null,t),e.current=o,o.stateNode=e,t=cr(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:a,cache:t},mr(o),e}function Cm(e){return e?(e=en,e):en}function Om(e,t,a,i,l,o){l=Cm(l),i.context===null?i.context=l:i.pendingContext=l,i=Va(t),i.payload={element:a},o=o===void 0?null:o,o!==null&&(i.callback=o),a=Xa(e,i,t),a!==null&&(_t(a,e,t),el(a,e,t))}function Rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fu(e,t){Rm(e,t),(e=e.alternate)&&Rm(e,t)}function Um(e){if(e.tag===13||e.tag===31){var t=gi(e,67108864);t!==null&&_t(t,e,67108864),Fu(e,67108864)}}function Hm(e){if(e.tag===13||e.tag===31){var t=Ht();t=qs(t);var a=gi(e,t);a!==null&&_t(a,e,t),Fu(e,t)}}var qn=!0;function b1(e,t,a,i){var l=ne.T;ne.T=null;var o=he.p;try{he.p=2,Wu(e,t,a,i)}finally{he.p=o,ne.T=l}}function w1(e,t,a,i){var l=ne.T;ne.T=null;var o=he.p;try{he.p=8,Wu(e,t,a,i)}finally{he.p=o,ne.T=l}}function Wu(e,t,a,i){if(qn){var l=Iu(i);if(l===null)zu(e,t,i,ss,a),Bm(e,i);else if(S1(l,e,t,a,i))i.stopPropagation();else if(Bm(e,i),t&4&&-1<T1.indexOf(e)){for(;l!==null;){var o=Qi(l);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var c=fi(o.pendingLanes);if(c!==0){var d=o;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-jt(c);d.entanglements[1]|=y,c&=~y}ga(o),(ze&6)===0&&(Zo=Et()+500,gl(0))}}break;case 31:case 13:d=gi(o,2),d!==null&&_t(d,o,2),$o(),Fu(o,2)}if(o=Iu(i),o===null&&zu(e,t,i,ss,a),o===l)break;l=o}l!==null&&i.stopPropagation()}else zu(e,t,i,null,a)}}function Iu(e){return e=Us(e),Pu(e)}var ss=null;function Pu(e){if(ss=null,e=hi(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ss=e,null}function Ym(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(Mp()){case Dc:return 2;case Ac:return 8;case Yl:case Cp:return 32;case xc:return 268435456;default:return 32}default:return 32}}var ec=!1,ii=null,ni=null,li=null,Al=new Map,xl=new Map,oi=[],T1="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 Bm(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Al.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(t.pointerId)}}function kl(e,t,a,i,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Qi(t),t!==null&&Um(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function S1(e,t,a,i,l){switch(t){case"focusin":return ii=kl(ii,e,t,a,i,l),!0;case"dragenter":return ni=kl(ni,e,t,a,i,l),!0;case"mouseover":return li=kl(li,e,t,a,i,l),!0;case"pointerover":var o=l.pointerId;return Al.set(o,kl(Al.get(o)||null,e,t,a,i,l)),!0;case"gotpointercapture":return o=l.pointerId,xl.set(o,kl(xl.get(o)||null,e,t,a,i,l)),!0}return!1}function Gm(e){var t=hi(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,zc(e.priority,function(){Hm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,zc(e.priority,function(){Hm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Iu(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Rs=i,a.target.dispatchEvent(i),Rs=null}else return t=Qi(a),t!==null&&Um(t),e.blockedOn=a,!1;t.shift()}return!0}function Lm(e,t,a){rs(e)&&a.delete(t)}function D1(){ec=!1,ii!==null&&rs(ii)&&(ii=null),ni!==null&&rs(ni)&&(ni=null),li!==null&&rs(li)&&(li=null),Al.forEach(Lm),xl.forEach(Lm)}function us(e,t){e.blockedOn===t&&(e.blockedOn=null,ec||(ec=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,D1)))}var cs=null;function Qm(e){cs!==e&&(cs=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){cs===e&&(cs=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if(Pu(i||a)===null)continue;break}var o=Qi(a);o!==null&&(e.splice(t,3),t-=3,Or(o,{pending:!0,data:l,method:a.method,action:i},i,l))}}))}function jn(e){function t(y){return us(y,e)}ii!==null&&us(ii,e),ni!==null&&us(ni,e),li!==null&&us(li,e),Al.forEach(t),xl.forEach(t);for(var a=0;a<oi.length;a++){var i=oi[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<oi.length&&(a=oi[0],a.blockedOn===null);)Gm(a),a.blockedOn===null&&oi.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var l=a[i],o=a[i+1],c=l[Dt]||null;if(typeof o=="function")c||Qm(a);else if(c){var d=null;if(o&&o.hasAttribute("formAction")){if(l=o,c=o[Dt]||null)d=c.formAction;else if(Pu(l)!==null)continue}else d=c.action;typeof d=="function"?a[i+1]=d:(a.splice(i,3),i-=3),Qm(a)}}}function Vm(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(c){return l=c})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(a,20)}function a(){if(!i&&!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 i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function tc(e){this._internalRoot=e}fs.prototype.render=tc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,i=Ht();Om(a,i,e,t,null,null)},fs.prototype.unmount=tc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Om(e.current,2,null,e,null,null),$o(),t[Li]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=jc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<oi.length&&t!==0&&t<oi[a].priority;a++);oi.splice(a,0,e),a===0&&Gm(e)}};var Xm=n.version;if(Xm!=="19.3.0")throw Error(u(527,Xm,"19.3.0"));he.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=E(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var A1={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ne,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hs.isDisabled&&hs.supportsFiber)try{Cn=hs.inject(A1),qt=hs}catch{}}return _l.createRoot=function(e,t){if(!h(e))throw Error(u(299));var a=!1,i="",l=Ch,o=Oh,c=Rh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Mm(e,1,!1,null,null,a,i,null,l,o,c,Vm),e[Li]=t.current,ju(e),new tc(t)},_l.hydrateRoot=function(e,t,a){if(!h(e))throw Error(u(299));var i=!1,l="",o=Ch,c=Oh,d=Rh,y=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(y=a.formState)),t=Mm(e,1,!0,t,a??null,i,l,y,o,c,d,Vm),t.context=Cm(null),a=t.current,i=Ht(),i=qs(i),l=Va(i),l.callback=null,Xa(a,l,i),a=i,t.current.lanes=a,Rn(t,a),ga(t),e[Li]=t.current,ju(e),new fs(t)},_l.version="19.3.0",_l}var tp;function C1(){if(tp)return nc.exports;tp=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),nc.exports=M1(),nc.exports}var O1=C1();const R1=hp(O1);var rc={exports:{}},uc={};var ap;function U1(){if(ap)return uc;ap=1;var s=bs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return uc.c=function(n){return s.H.useMemoCache(n)},uc}var ip;function H1(){return ip||(ip=1,rc.exports=U1()),rc.exports}var ve=H1();function et(s,n){const r=ve.c(8);let u;r[0]!==n||r[1]!==s.state?(u=()=>n==null?s.state:n(s.state),r[0]=n,r[1]=s.state,r[2]=u):u=r[2];const[h,m]=re.useState(u);let v;r[3]!==n||r[4]!==s?(v=()=>s.createChangeListener(S=>{m(n==null?S:n(S))},!0).dispose,r[3]=n,r[4]=s,r[5]=v):v=r[5];let g;return r[6]!==s?(g=[s],r[6]=s,r[7]=g):g=r[7],re.useEffect(v,g),h}const Ci=Symbol();class mp{_map=new Map;_keys=new Map;constructor(n){if(n!=null)for(const[r,u]of n)this.set(r,u)}set(n,r){let u=this._map;for(let m=0;m<n.length;m++){const v=n[m];let g=u.get(v);g==null&&(g=new Map,u.set(v,g)),u=g}const h=u.has(Ci)?u.get(Ci):n.slice();return this._keys.set(h,r),u.set(Ci,h),this}get(n){let r=this._map;for(let h=0;h<n.length&&r!=null;h++)r=r.get(n[h]);if(r==null)return;const u=r.get(Ci);if(u!=null)return this._keys.get(u)}has(n){let r=this._map;for(let u=0;u<n.length&&r!=null;u++)r=r.get(n[u]);return r!=null&&r.has(Ci)}delete(n){let r=this._map;const u=[];for(let m=0;m<n.length&&r!=null;m++)u.push([r,n[m]]),r=r.get(n[m]);if(r==null)return!1;const h=r.get(Ci);if(h==null)return!1;r.delete(Ci),this._keys.delete(h);for(let m=u.length-1;m>=0;m--){const[v,g]=u[m];if(r.size!==0)break;v.delete(g),r=v}return!0}clear(){this._map.clear(),this._keys.clear()}get size(){return this._keys.size}*entries(){for(const[n,r]of this._keys)yield[n.slice(),r]}*keys(){for(const n of this._keys.keys())yield n.slice()}*values(){for(const n of this._keys.values())yield n}forEach(n,r){for(const[u,h]of this.entries())r!==void 0?n.call(r,h,u,this):n.call(this,h,u,this)}[Symbol.iterator](){return this.entries()}}class ps{_items;_head=0;_compactAt;constructor(n,r){this._compactAt=r?.compactAt??4096,n instanceof ps?this._items=n._items.slice(n._head):this._items=n==null?[]:Array.from(n)}get length(){return this._items.length-this._head}get isEmpty(){return this._head===this._items.length}get first(){if(this._head!==this._items.length)return this._items[this._head]}get last(){if(this._head!==this._items.length)return this._items[this._items.length-1]}push(n){this._items.push(n)}shift(){if(this._head===this._items.length)return;const n=this._items[this._head];return this._items[this._head]=null,this._head++,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),n}enqueue(n){return this.push(n)}dequeue(){return this.shift()}peek(){return this.first}at(n){if(n=Math.trunc(n)||0,n<0&&(n+=this.length),!(n<0||n>=this.length))return this._items[this._head+n]}delete(n,r){const u=this.length;if(n=Math.trunc(n)||0,n<0?n=Math.max(u+n,0):n=Math.min(n,u),r==null?r=Math.min(n+1,u):(r=Math.trunc(r)||0,r<0?r=Math.max(u+r,0):r=Math.min(r,u)),r<=n)return 0;const h=r-n;return h===u?(this._items=[],this._head=0,h):n===0?(this._items.fill(null,this._head,this._head+h),this._head+=h,this._head>=this._compactAt&&this._head*2>=this._items.length&&(this._items=this._items.slice(this._head),this._head=0),h):r===u?(this._items.length=this._head+n,h):(this._items.splice(this._head+n,h),h)}indexOf(n,r=0){const u=this.length;if(u===0||(r=Math.trunc(r)||0,r>=u))return-1;r<0&&(r=Math.max(u+r,0));const h=this._items.indexOf(n,this._head+r);return h<0?-1:h-this._head}lastIndexOf(n,r){const u=this.length;if(u===0||(r==null?r=u-1:r=Math.trunc(r)||0,r>=0?r=Math.min(r,u-1):r+=u,r<0))return-1;const h=this._items.lastIndexOf(n,this._head+r);return h<this._head?-1:h-this._head}*entries(){let n=0;for(;n<this.length;)yield[n,this._items[this._head+n]],n++}*values(){let n=0;for(;n<this.length;)yield this._items[this._head+n],n++}toArray(){return this._items.slice(this._head)}clear(){this._items=[],this._head=0}[Symbol.iterator](){return this.values()}}const fc=new mp;async function Y1(s,n,r){let u;if(n instanceof AbortSignal?u=n:n!=null&&(r=n),r==null)throw new Error("callback is required");if(u?.aborted)throw u.reason;const h=s.slice();let m=fc.get(h);m!=null?await G1(m[0],u,m):(m=[new ps,new ps],fc.set(h,m));try{return await r()}finally{B1(h,m)}}function B1(s,n){const r=n[0];if(!r.isEmpty){const h=r.first;return typeof h=="function"?(r.shift(),void h()):void pp(n)}fc.delete(s);const u=n[1];for(const h of u.values())h();u.clear()}function pp(s){const n=s[0];let r=0;for(const u of n.values()){if(typeof u=="function")break;r++,u[0]()}s[2]=(s[2]??0)+r,n.delete(0,r)}function G1(s,n,r){return n==null?new Promise(u=>{s.push(u)}):new Promise((u,h)=>{function m(){n.removeEventListener("abort",g),u()}const v=s.length;function g(){const S=s.lastIndexOf(m,v);S>=0&&(s.delete(S),r!=null&&S===0&&r[2]!=null&&!s.isEmpty&&typeof s.first!="function"&&pp(r)),n.removeEventListener("abort",g),h(n.reason)}s.push(m),n.addEventListener("abort",g)})}const np=2147483647;class ql{_callback;_startTime;_delay;_timeout;constructor(n,r){this._callback=n,this._delay=r,this._startTime=Date.now(),this._onTimeout=this._onTimeout.bind(this),this._timeout=setTimeout(this._onTimeout,Math.floor(Math.max(0,Math.min(r,np))))}dispose(){this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=void 0)}[Symbol.dispose](){this.dispose()}get disposed(){return this._timeout==null}_onTimeout(){const r=Date.now()-this._startTime,u=this._delay-r;u<=0?(this._timeout=void 0,this._callback()):this._timeout=setTimeout(this._onTimeout,Math.min(u,np))}}class L1 extends Promise{constructor(n,r){r==null||typeof n=="function"?super(n):super((u,h)=>{if(n?.aborted){h(n.reason);return}let m=!1,v=!1,g,S=!1;function E(A){m||(m=!0,v=!0,n?.removeEventListener("abort",b),u(A),g==null?S=!0:g(v))}function b(A){m||(m=!0,n.removeEventListener("abort",b),h(n.reason),g==null?S=!0:g(v))}function p(A){m||(m=!0,n?.removeEventListener("abort",b),h(A),g==null?S=!0:g(v))}n?.addEventListener("abort",b);try{g=r(E,p)}catch(A){p(A);return}S&&g?.(v)})}static all(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.all(r))):this.resolve(Promise.all(n))}static race(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.race(r))):this.resolve(Promise.race(n))}static any(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.any(r))):this.resolve(Promise.any(n))}static allSettled(n,r){return r!=null?this.resolve(this.withSignal(n,Promise.allSettled(r))):this.resolve(Promise.allSettled(n))}static withSignal(n,r){return n==null?r:n.aborted?(r.catch(Q1),this.reject(n.reason)):new this(n,(u,h)=>{r.then(u,h)})}static sleep(n,r){return r==null||typeof n=="number"?new this(u=>{new ql(u,n)}):n?.aborted?this.reject(n.reason):new this(n,u=>{const h=new ql(u,r);return h.dispose.bind(h)})}}function Q1(){}const ds=new mp;function gp(s,n,r){let u;if(n instanceof AbortSignal?u=n:n!=null&&(r=n),r==null)return Promise.reject(new Error("callback is required"));if(u?.aborted)return Promise.reject(u.reason);let h=ds.get(s);if(h==null){const m=new AbortController,v=s.slice(),[g,S]=V1();h=[g,m,1,v],ds.set(v,h);const E=Y1(v,u==null?void 0:m.signal,()=>r(m.signal));h[0]=E;const b=()=>{h[2]!==0&&(h[2]=0,ds.delete(h[3]))};E.then(b,b),g.catch(X1),S(E)}else h[2]++;return u==null?h[0]:u.aborted?(lp(h,u),Promise.reject(u.reason)):Promise.resolve(new L1(u,(m,v)=>(h[0].then(m,v),g=>{!g&&u.aborted&&lp(h,u)})))}function lp(s,n){const r=s[2];r===1?(s[2]=0,ds.delete(s[3]),s[1].abort(n.reason)):r!==0&&(s[2]=r-1)}function V1(){let s;return[new Promise(r=>{s=r}),s]}function X1(){}class ya{_queueEvents;_listenerCallbacks;_state;_changeEventMicrotaskQueued;constructor(n,{queueEvents:r=!0}={}){this._queueEvents=r,this._listenerCallbacks=new Map,this._state=n,this._changeEventMicrotaskQueued=!1,this.createChangeListener=this.createChangeListener.bind(this),this.clearChangeListeners=this.clearChangeListeners.bind(this)}get state(){return this._state}set state(n){this._state!==n&&(this._state=n,this._queueEvents?this._changeEventMicrotaskQueued||(this._changeEventMicrotaskQueued=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{this._changeEventMicrotaskQueued=!1,this._dispatchChangeEvent(this._state)})):this._dispatchChangeEvent(this._state))}createChangeListener(n,r=!1){if(this._listenerCallbacks.set(n,this._state),r)try{n(this._state,void 0)}catch(u){console.error(u)}return gs._create(()=>{this._listenerCallbacks.delete(n)})}clearChangeListeners(){this._listenerCallbacks.clear()}get changeListenerCount(){return this._listenerCallbacks.size}_dispatchChangeEvent(n){for(const[r,u]of Array.from(this._listenerCallbacks.entries()))if(u!==n){this._listenerCallbacks.has(r)&&this._listenerCallbacks.set(r,n);try{r(n,u)}catch(h){console.error(h)}}}static createCombinedChangeListener(n,r,{callInstantlyWithCurrentState:u=!1,queueEvents:h=!0}={}){let m=!1;const v=()=>n.map(p=>p.state);let g=v();const S=(p=!0,A=!0)=>{const M=v(),C=g;if(!(p&&M.every((q,O)=>q===C[O]))){g=M;try{r(M,A?C:C.map(()=>{}))}catch(q){console.error(q)}}},E=()=>{m||(h?(m=!0,(globalThis.queueMicrotask||globalThis.setTimeout)(()=>{m=!1,S()})):S())},b=n.map(p=>p.createChangeListener(E,!1));return u&&S(!1,!1),gs._create(()=>b.forEach(p=>p.dispose()))}}class gs{_dispose;constructor(n){this._dispose=n,this.dispose=this.dispose.bind(this),this[Symbol.dispose]=this[Symbol.dispose].bind(this)}dispose(){this._dispose!=null&&(this._dispose(),this._dispose=null)}[Symbol.dispose](){this.dispose()}get disposed(){return this._dispose==null}static _create(n){return new gs(n)}}new FinalizationRegistry(Z1);const op=new WeakSet;async function Z1([s,n]){if(s instanceof Promise)try{s=await s}catch(r){op.delete(n),console.error(r);return}try{if(s==null)return;typeof s=="function"?await s():Symbol.asyncDispose!=null&&Symbol.asyncDispose in s&&typeof s[Symbol.asyncDispose]=="function"?await s[Symbol.asyncDispose]():Symbol.dispose!=null&&Symbol.dispose in s&&typeof s[Symbol.dispose]=="function"?s[Symbol.dispose]():"dispose"in s&&typeof s.dispose=="function"&&await s.dispose()}catch(r){console.error(r)}finally{op.delete(n)}}const K1={models:{},localModels:[],scores:[]};function J1(s){const n=Object.values(s.models).flatMap(u=>u?.download==null?[]:[u.download]),r=n.reduce((u,h)=>u+h.totalSize,0);return{count:n.length,progress:r>0&&n.every(u=>u.totalSize>0)?n.reduce((u,h)=>u+h.downloadedSize,0)/r:void 0}}const Bt=new ya(K1);function de(s,n,r,u,...h){return{id:s,title:n,limit:r,brief:u,goalCount:h.length,labels:h.map(([m])=>m),questions:h.map(([m,v,g])=>typeof v=="string"?{type:"choice",instruction:v,criteria:["This detail is absent or contradicted.",g??m]}:v)}}const $1=[{id:1,title:"Small messages",skill:"Give a simple message three useful jobs",estimatedDuration:"2-3 min",rounds:[de("1-1","A small emergency",120,"Name an animal, ask for help, and make it urgent",["Name an animal",{type:"noul",instruction:"Does the text contain an actual animal name? A category label is not an animal name.",criteria:["An animal name like cat, dog, or fox appears in the text.","No animal name appears in the text."]}],["Ask for help",{type:"noul",instruction:"Does the writer ask someone for help? Answer yes if the writer requests assistance or asks someone to help. Answer no otherwise.",criteria:["Yes","No"]}],["Call for immediate action",{type:"noul",instruction:"Does the text explicitly call for immediate action? Answer yes if the message requests action now, immediately, or describes an emergency. Answer no otherwise.",criteria:["Yes","No"]}]),de("1-2","Share the ride",120,"Ask for a lift, say where you need to go, and offer to pay for fuel",["Ask for a lift",{type:"noul",instruction:"Does the writer ask someone for a ride?",criteria:["",""]}],["Name your destination",{type:"choice",instruction:"What does the message establish?",criteria:["No destination is given; requesting a ride alone does not name one.","The message gives somewhere to travel to, such as a station, library, home, or another destination."]}],["Offer to pay for fuel",{type:"noul",instruction:"Does the writer offer to cover the fuel cost?",criteria:["The writer offers to pay for fuel.","This is not stated in the text."]}]),de("1-3","One spare cookie",120,"Offer a cookie, name its flavor, and say you baked it yourself",["Offer a cookie","Does the writer offer someone a cookie?","The writer offers the reader a cookie."],["Name its flavor","Does the text name the flavor of a cookie?","A cookie flavor is named."],["Say you baked it yourself",{type:"noul",instruction:"Does the writer say they baked the cookies themselves?",criteria:["",""]}])]},{id:2,title:"Make it useful",skill:"Give someone enough information to act",estimatedDuration:"3-5 min",rounds:[de("2-1","Parcel patrol",140,"Tell a neighbor you have their parcel, where to collect it, and when",["Say you have their parcel",{type:"noul",instruction:"Does the message say the writer has a delivery for the recipient?",criteria:["The writer has received or is holding the recipient's parcel or package, including wording like got your package or your delivery is at mine.","The message does not say the writer has the recipient's delivery."]}],["Give a pickup location",{type:"noul",instruction:"Does the message itself identify a pickup place?",criteria:["Words in the message name or describe a pickup place, including relative places such as my home, at mine, the porch, or a cafe.","No pickup place is written. A pickup time or saying I have your package does not by itself specify a place."]}],["Give a pickup time",{type:"noul",instruction:"Is any pickup timing provided in the message? Answer yes if: A time or window for pickup is given: a clock time, day, morning, after work, or similar timing. Answer no if: There is no timing for pickup.",criteria:["",""]}]),de("2-2","A book worth borrowing",140,"Recommend a book, give a reason to read it, and offer to lend your copy",["Recommend a book","Does the writer recommend a particular book by title?","The writer recommends a book by title."],["Give a reason to read it","Does the writer give a specific reason to read the recommended book?","The writer gives a specific reason the book is good."],["Offer to lend your copy","Does the writer offer to lend a book?","The writer offers to lend a book."]),de("2-3","The missing tool",140,"Ask to borrow a screwdriver, say what it is for, and promise to return it",["Ask for a screwdriver","Does the writer ask to borrow a screwdriver?","The writer asks to borrow a screwdriver."],["Explain what you need it for",{type:"noul",instruction:"Does the message explain a use for the borrowed screwdriver?",criteria:["A task for the screwdriver is named, such as tightening a door handle, fixing a hinge, or assembling furniture.","No task for the screwdriver is described; simply asking to borrow it is insufficient."]}],["Promise to return it","Does the writer commit to returning the borrowed screwdriver?","The writer promises to return the screwdriver."])]},{id:3,title:"Give it a reason",skill:"Connect a problem to a useful next step",estimatedDuration:"4-6 min",rounds:[de("3-1","Different directions",175,"Say the bridge is closed. Give another route, a landmark, and one hazard to watch for.",["Explain the bridge closure","Does the message say the bridge is closed?","The message says the bridge is closed."],["Suggest another route","Does the message name an alternative route to the closed bridge?","An alternative route to the closed bridge is suggested."],["Name a landmark to follow","Does the message name a landmark along the alternative route?","A landmark along the alternative route is named."],["Warn about a hazard","Does the message warn about a specific hazard on the alternative route?","A specific hazard on the alternative route is identified."]),de("3-2","A thirsty fern",175,"Ask someone to water your fern, say you are away, specify how much water, and thank them",["Ask them to water the fern","Does the writer ask the reader to water a fern?","The writer asks someone to water a fern."],["Say you are away",{type:"noul",instruction:"Does the writer say they are away from home?",criteria:["They say they are away from home.","They are at home, or no absence is stated."]}],["Specify how much water",{type:"noul",instruction:"Is an amount of water described, even approximately?",criteria:["A measure is given, including a cup of water (one cup), a splash, a spoonful, or a numeric quantity.","There is no measure of water at all; only watering is mentioned."]}],["Thank them for the favor","Does the text include an expression of gratitude?","The writer expresses gratitude."]),de("3-3","One more chapter",175,"Ask to keep a library book longer, name it, say you have not finished it, and give a return day",["Ask for more borrowing time",{type:"noul",instruction:"Does the writer ask to extend a library book loan?",criteria:["The writer asks for a longer library book loan.","This detail is absent or contradicted."]}],["Say you are still reading",{type:"noul",instruction:"Is there still some of the book left for the writer to read? Answer yes if: The writer has not finished reading, including saying that chapters or pages remain. Answer no if: Nothing says that any reading remains unfinished.",criteria:["",""]}],["Give a return day","Does the writer state a day they will return the book?","The writer states a day they will return the book."],["Name the book",{type:"choice",instruction:"Does the message contain the title of a book?",criteria:["No","Yes"]}])]},{id:4,title:"Plan a little",skill:"Turn a loose idea into an easy plan",estimatedDuration:"5-8 min",rounds:[de("4-1","Rain check",185,"Move a rooftop film indoors because of rain, name the new place, and keep the original time",["Move the rooftop screening",{type:"noul",instruction:"Does the writer propose moving a rooftop film screening indoors?",criteria:["",""]}],["Explain that rain is the reason","Does the message say rain is the reason for changing the film location?","Rain is given as the reason for moving the film screening."],["Name a new indoor venue","Does the message name a specific indoor place for the film screening?","A particular indoor venue is proposed for the screening."],["Keep the same start time",{type:"choice",instruction:"Does the message explicitly say the film will start at its original time?",criteria:["No","Yes"]}]),de("4-2","The cake relay",185,"Ask someone to collect a cake, name the bakery, give a collection time, and say who it is for",["Ask for cake collection","Does the writer ask someone to collect a cake?","The writer asks the reader to collect a cake."],["Name the bakery","Does the message name the bakery where the cake is to be collected?","The bakery where the cake can be collected is named."],["Give a collection time","Does the message give a time to collect the cake?","A time to collect the cake is stated."],["Name the recipient","Does the message identify who the cake is for?","The person the cake is for is identified."]),de("4-3","A key detail",185,"Tell a guest where the spare key is, how to open the door, where to leave the key, and wish them a good stay",["Say where to find the key",{type:"choice",instruction:"What location information is given for the key?",criteria:["No key location is given","An initial place to find the key is given, possibly with later return instructions","Only a place to return the key afterward is given"]}],["Explain how to open the door","Does the message explain an action needed to open the door?","An action to open or unlock the door is explained."],["Say where to leave the key",{type:"noul",instruction:"Does the message say where the guest should leave the key after using it?",criteria:["The message says where to leave the key after use.","This detail is absent or contradicted."]}],["Welcome the guest","Does the writer wish the guest a pleasant stay?","The writer wishes the guest a pleasant stay."]),de("4-4","Quiet rehearsal",185,"Suggest a place and time to rehearse, ask someone to bring an instrument, and offer to bring the sheet music",["Suggest a rehearsal place","Does the message name a place to rehearse music?","A place to rehearse music is proposed."],["Suggest a rehearsal time",{type:"noul",instruction:"Does the message specify a time for the music rehearsal?",criteria:["",""]}],["Ask them to bring an instrument",{type:"noul",instruction:"Does the writer ask someone to bring a particular musical instrument?",criteria:["",""]}],["Offer to bring sheet music","Does the writer offer to bring the sheet music?","The writer offers to bring the sheet music."])]},{id:5,title:"Turn it around",skill:"Make a small setback easier to fix",estimatedDuration:"6-10 min",rounds:[de("5-1","Wrong sandwich",200,"Say which sandwich you ordered and what arrived, ask for the right one, and thank the server",["Describe your original order",{type:"noul",instruction:"Does the writer name the filling they originally ordered or asked for? Answer yes if: A named sandwich filling is connected to the original order or request, such as I ordered cheese or I asked for ham. Answer no if: The original filling is not named. Mentioning what arrived or saying the one I ordered does not identify the original filling.",criteria:["",""]}],["Say what actually arrived",{type:"noul",instruction:"Does the message identify the food that arrived?",criteria:["The message says what the writer received, including a filling named after got or received.","It does not say what arrived. Naming only the order or requested replacement is insufficient."]}],["Ask for a replacement","Does the writer ask for the sandwich they ordered to replace the incorrect one?","The writer asks to replace the incorrect sandwich."],["Thank the server",{type:"choice",instruction:"Does the message thank the recipient?",criteria:["It contains no expression of thanks or appreciation.","It includes thanks, thank you, appreciation, or another expression of gratitude."]}]),de("5-2","A soggy notebook",200,"Admit spilling water on a borrowed notebook, apologize, offer a new one, and offer to copy the notes",["Admit spilling the water","Does the writer say they spilled water on the notebook?","The writer admits spilling water on the recipient's notebook."],["Apologize","Does the writer apologize for the damaged notebook?","The writer apologizes for the damage."],["Offer a new notebook","Does the writer offer to replace the damaged notebook?","The writer offers to replace the damaged notebook."],["Offer to restore the notes","Does the writer offer to copy the notes into a replacement notebook?","The writer offers to copy the notes into the replacement."]),de("5-3","Wrong room",200,"Correct a meeting room, name the new room, keep the same time, and ask people to tell anyone missing the message",["Rule out the old room",{type:"noul",instruction:"Does the message explicitly say the meeting will not be in its previously announced room?",criteria:["The message explicitly rules out the previously announced meeting room.","This detail is absent or contradicted."]}],["Name the new room",{type:"noul",instruction:"Is the room to use for the meeting identified?",criteria:["The message gives the new or replacement room, by name or number.","No room to use is identified; only ruling out the old room is insufficient."]}],["Keep the timing unchanged",{type:"choice",instruction:"Is the meeting's previous time kept?",criteria:["An unchanged meeting time is not stated; a room change alone is not enough.","The message says the time stays the same, including same time, still at a stated time, or no change to when it starts."]}],["Ask them to pass the news on","Does the writer ask recipients to tell people who may not see this message about the change?","Recipients are asked to tell people who may miss this message about the change."]),de("5-4","Restart, then reply",200,"Suggest restarting a frozen app, ask them to report what happens, offer more help, and acknowledge the hassle",["Suggest a restart",{type:"noul",instruction:"Does the writer suggest restarting an app?",criteria:["",""]}],["Ask what happens afterward","Does the writer ask the reader to report what happens after trying the suggested fix?","The reader is asked to report what happens after the restart."],["Offer more help","Does the writer offer to help further with the app problem?","The writer offers more help fixing the app problem."],["Acknowledge the frustration","Does the writer acknowledge that the app problem is frustrating or inconvenient?","The writer acknowledges that the app problem is frustrating or inconvenient."])]},{id:6,title:"Help them choose",skill:"Put options and their useful differences into words",estimatedDuration:"8-12 min",rounds:[de("6-1","Two routes to town",225,"Offer a bus and a walk, compare their cost, say which is faster, and ask which they prefer",["Offer the bus option","Does the writer offer taking a bus as a travel option?","Taking a bus is offered as a travel option."],["Offer the walking option","Does the writer offer walking as a travel option?","Walking is offered as a travel option."],["Compare the costs","Does the message compare the cost of taking the bus with walking?","The cost of the bus is compared with the cost of walking."],["Compare journey times",{type:"choice",instruction:"Can the reader tell which journey is quicker from the message?",criteria:["Journey times are not compared and both durations are not given. Cost alone does not show which is quicker.","The message says which is faster, or gives different durations for both the bus and the walk so they can be compared."]}],["Ask which they prefer","Does the writer ask the reader which travel option they prefer?","The reader is asked which travel option they prefer."]),de("6-2","A desk with a catch",225,"Recommend a desk, praise its storage, mention its size drawback, give its price, and suggest measuring first",["Recommend a desk","Does the writer recommend buying a desk?","The writer recommends buying the desk."],["Praise its storage",{type:"noul",instruction:"Does the message praise the desk's storage space?",criteria:["",""]}],["Explain a size drawback",{type:"choice",instruction:"What does the message say about the desk's size?",criteria:["No problem with its size is stated.","It is too big or too small for the available space."]}],["State the price",{type:"noul",instruction:"Does the message state the desk's price?",criteria:["A price is stated for the desk.","This detail is absent or contradicted."]}],["Suggest measuring before buying","Does the writer recommend measuring the available space before buying the desk?","The writer advises measuring the available space before buying the desk."]),de("6-3","The lunch vote",225,"Offer soup or pasta for lunch, name a vegetarian option, offer to cook, and ask the group to vote",["Offer soup",{type:"noul",instruction:"Does the writer suggest having soup for lunch?",criteria:["The message satisfies this requirement: Soup offered.","This requirement is not met by the message."]}],["Offer pasta",{type:"noul",instruction:"Does the writer suggest having pasta as a lunch option?",criteria:["Pasta is suggested as a lunch option.","This detail is absent or contradicted."]}],["Identify a vegetarian option","Does the message explicitly identify one of the proposed dishes as vegetarian?","One proposed dish is explicitly described as vegetarian."],["Offer to cook","Does the writer offer to cook the proposed lunch?","The writer offers to cook lunch."],["Ask the group to vote","Does the writer ask the group to vote for a lunch option?","The group is asked to vote for a lunch option."]),de("6-4","A gift for a reader",225,"Offer a named book or a bookshop voucher, praise a feature of the book, explain the voucher's benefit, and ask which they prefer",["Suggest a book as a gift",{type:"noul",instruction:"Does the writer name a book they could give as a gift?",criteria:["",""]}],["Offer a bookshop voucher","Does the writer offer a bookshop voucher as an alternative gift?","A bookshop voucher is offered as an alternative gift."],["Explain why to choose the book","Does the message describe an appealing feature of the book itself?","The book's writing, illustrations, or another feature is praised."],["Explain why to choose the voucher","Does the message say why the recipient might prefer a bookshop voucher?","A benefit of the voucher, such as choosing a book themselves, is stated."],["Ask which they prefer",{type:"noul",instruction:"Does the writer ask which gift the recipient prefers?",criteria:["The message satisfies this requirement: The recipient decides.","This requirement is not met by the message."]}])]},{id:7,title:"Make the handoff",skill:"Give the next person what they need to take over",estimatedDuration:"10-16 min",rounds:[de("7-1","Cat-sitting notes",245,"Explain your cat's food, feeding time, hiding spot, water needs, and how to contact you",["Say what the cat eats",{type:"noul",instruction:"Does the message identify food for the cat?",criteria:["A food type or name is given, such as dry food, wet food, kibble, or a brand.","No food type or name is given. Just saying feed the cat is insufficient."]}],["Say when to feed the cat",{type:"noul",instruction:"Does the message specify when to feed the cat?",criteria:["",""]}],["Say where the cat hides","Does the message identify a place where the cat hides?","The place where the cat hides is described."],["Explain how to care for its water","Does the message tell the reader to provide or refresh the cat's water?","The reader is asked to provide or refresh water for the cat."],["Give a way to reach you",{type:"noul",instruction:"Does the writer say how the reader can contact them?",criteria:["",""]}]),de("7-2","The repair handoff",245,"Describe a broken lamp, say what you tried, name a part to check, give its location, and ask for an update",["Describe the lamp problem","Does the message describe what is wrong with a lamp?","A fault with the lamp is described."],["Say what fix you already tried","Does the writer name something they already tried to fix the lamp?","The writer names a fix already tried on the lamp."],["Name a part to inspect",{type:"choice",instruction:"Does the writer ask for a particular lamp part to be checked?",criteria:["This detail is absent or contradicted.","A particular lamp part is identified for inspection."]}],["Say where the lamp is",{type:"choice",instruction:"Does the message identify a physical place where the lamp is?",criteria:["No place for the lamp is stated. Mentioning a lamp part or attempted repair is not its location.","A place for the lamp is stated, such as on my desk, on a table, in a room, or another described spot."]}],["Ask for an update","Does the writer ask to hear the result of the lamp inspection?","The writer asks to hear what the lamp inspection finds."]),de("7-3","Market stall shift",245,"Say what the stall sells, give a price, explain payment, name the next volunteer, and give handover time",["Name the product","Does the message name what the market stall sells?","A product sold at the market stall is named."],["Give a selling price","Does the message give a price for a product at the stall?","A selling price for the product is stated."],["Explain how to take payment",{type:"noul",instruction:"Does the message say how customers can pay?",criteria:["",""]}],["Name who takes over","Does the message name the person taking over the stall?","The person taking over the stall is named."],["Say when to hand over",{type:"noul",instruction:"Does the message give a time for the stall handover?",criteria:["A time for the stall handover is stated.","This detail is absent or contradicted."]}]),de("7-4","Read and compare",245,"Name a book and a page goal, set a discussion day and place, and ask your friend to bring notes",["Name a book","Does the message identify a book by title?","A book title is stated."],["Set a page target","Does the message specify a number of pages to read?","A number of pages to read is stated."],["Set a discussion day","Does the message say which day to discuss the book?","A day for discussing the book is given."],["Name a meeting place",{type:"noul",instruction:"Does the message specify where to meet for the book discussion? Judge the meaning; ordinary paraphrases and pronouns count. Do not assume missing information.",criteria:["",""]}],["Ask them to bring notes",{type:"noul",instruction:"Does the writer ask the reader to bring notes?",criteria:["",""]}]),de("7-5","A recipe rescue",245,"Name a missing ingredient, suggest a substitute, give its amount, explain its effect, and say when to add it",["Name a missing ingredient",{type:"choice",instruction:"What ingredient problem does the text describe?",criteria:["No missing ingredient is identified.","The writer has run out of a named ingredient."]}],["Name a substitute",{type:"noul",instruction:"Does the writer suggest a particular substitute for the missing ingredient? Judge only the words actually written. If the text does not say this, answer no.",criteria:["",""]}],["Specify how much substitute",{type:"noul",instruction:"Does the message give a quantity of the substitute ingredient?",criteria:["An amount for the replacement ingredient is given, such as two tablespoons, a cup, grams, or a ratio.","No amount of the substitute is given."]}],["Explain its effect on the food","Does the message explain how the substitute changes the finished food?","The effect of the substitution on the finished dish is described."],["Say when to add it","Does the message say which cooking step comes before or after adding the substitute?","The text states when to add the replacement ingredient."])]},{id:8,title:"Make room for both",skill:"Find a practical plan for two different needs",estimatedDuration:"12-18 min",rounds:[de("8-1","Window diplomacy",255,"One person wants fresh air; another is cold. Acknowledge both, propose airing briefly, give a duration, and offer to close it.",["Explain the need for fresh air","Does the message acknowledge someone wants fresh air?","The message acknowledges that someone wants fresh air."],["Acknowledge someone is cold",{type:"noul",instruction:"Does the message acknowledge someone is feeling cold?",criteria:["",""]}],["Propose a brief airing","Does the writer suggest opening a window temporarily?","Opening a window temporarily is proposed."],["Say how long to air the room",{type:"noul",instruction:"Does the message specify how long to keep the window open?",criteria:["",""]}],["Offer to close the window","Does the writer offer to close the window afterward?","The writer offers to close the window afterward."]),de("8-2","The shared shelf",255,"Acknowledge two people need shelf space, suggest a split, offer to move your things, and ask for agreement",["Explain your storage need","Does the writer state that they need shelf space for their belongings?","The writer says they need shelf space for their belongings."],["Acknowledge their storage need","Does the message acknowledge the other person needs shelf space?","The other person's need for shelf space is acknowledged."],["Propose a specific division","Does the writer propose a specific division of the shelf space?","A specific division of shelf space is proposed."],["Offer to move your things","Does the writer offer to move their own belongings to make the shelf plan work?","The writer offers to move their own things to make space."],["Ask for their agreement",{type:"noul",instruction:"Does the writer ask whether the proposed shelf arrangement is acceptable? Judge only the words actually written. If the text does not say this, answer no.",criteria:["",""]}]),de("8-3","The weekend trade",255,"Ask to swap shifts, name both shifts, mention your other commitment, and thank them",["Ask to swap shifts","Does the writer ask to swap work shifts?","The writer requests a work shift swap."],["Identify your shift",{type:"choice",instruction:"When does the writer need their shift covered?",criteria:["No day is stated for the shift they need covered.","The writer requests cover on a stated day."]}],["Offer a shift in return","Does the writer offer to cover a specific shift for the other person in return?","A specific shift is offered in return."],["Mention your other commitment","Does the writer mention a personal event or commitment they need to attend?","A personal event or commitment the writer needs to attend is named."],["Thank them",{type:"choice",instruction:"Does the message thank the recipient?",criteria:["It contains no expression of thanks or appreciation.","It includes thanks, thank you, appreciation, or another expression of gratitude."]}]),de("8-4","Game night for everyone",255,"Suggest a game, explain how a beginner can join, include an experienced player, set a length, and invite everyone",["Name a game","Does the writer propose playing a specific game?","A particular game is proposed."],["Explain how beginners can join","Does the message propose concrete help for a beginner to participate?","A concrete way to help beginners participate is described."],["Give an experienced player a role","Does the message propose a specific role for an experienced player?","A specific role for an experienced player is proposed."],["Set a session length",{type:"noul",instruction:"Does the message give a length of time for playing?",criteria:["A session duration is stated, such as half an hour, an hour, or a number of minutes.","No playing duration is stated. A start time alone is not a duration."]}],["Invite everyone",{type:"choice",instruction:"Is the group invited to play?",criteria:["No","Yes"]}]),de("8-5","The photo exchange",255,"Ask for a group photo, explain your use, offer one of yours, say how to send it, and ask before posting theirs publicly",["Ask for a group photo","Does the writer ask the reader for a group photo?","The writer asks for a group photo."],["Explain its intended use",{type:"choice",instruction:"Does the writer explain what they want the group photo for?",criteria:["This detail is absent or contradicted.","The writer explains what they want the group photo for."]}],["Offer a photo in return","Does the writer offer a photo in return?","The writer offers a photo in return."],["Suggest a transfer method",{type:"choice",instruction:"Does the message specify a way to send the photos?",criteria:["This detail is absent or contradicted.","A method of sending the photos is specified."]}],["Ask for permission to post it",{type:"choice",instruction:"What permission does the writer request for the recipient's photo?",criteria:["No permission to publish the photo is requested.","Permission to post the photo publicly is requested."]}])]},{id:9,title:"Six useful details",skill:"Fit a complete small project into one message",estimatedDuration:"15-24 min",rounds:[de("9-1","A tiny exhibition",290,"Invite someone to a photo show: name its theme, venue, date, entry price, and a reason to visit",["Invite them to the show","Does the writer invite the reader to a photo exhibition?","The reader is invited to a photo exhibition."],["Name an exhibition theme",{type:"noul",instruction:"Does the message say what the photographs show?",criteria:["A subject or theme is named, such as wildlife, portraits, city life, landscapes, or another topic.","No subject of the photographs is given."]}],["Name a venue","Does the message name where the photo exhibition takes place?","The exhibition's venue is stated."],["Set a date","Does the message give a day or date for the photo exhibition?","A day or date for the exhibition is given."],["State the entry price","Does the message state the admission price or that admission is free?","The admission price or free entry is stated."],["Give a reason to visit","Does the message give a specific reason the reader might enjoy visiting the exhibition?","A specific reason to visit the exhibition is offered."]),de("9-2","A garden from scraps",290,"Propose a herb garden, choose a reused container, name a herb and location, offer a task, and ask for help",["Propose a garden","Does the writer propose starting a herb garden?","Starting a herb garden is proposed."],["Choose a reused container","Does the message propose repurposing an existing object as a planting container?","An existing object is to be reused as a planter."],["Name a herb to grow","Does the message name a specific herb to grow?","A specific herb to grow is named."],["Suggest a growing location","Does the message say where the herbs will grow?","A place to grow the herbs is stated."],["Offer to take on a task","Does the writer say which gardening task they will do?","The writer states a specific gardening task they will do."],["Ask for their help","Does the writer ask the other person to help with the herb garden?","The writer asks someone else to help with the garden."]),de("9-3","The almost-perfect stay",290,"Review a stay: praise the bed and host, name a problem, its impact, a fix, and whether you would return",["Praise the bed's comfort",{type:"noul",instruction:"Does the review say the bed was comfortable?",criteria:["The bed is described as comfortable.","This detail is absent or contradicted."]}],["Praise something the host did","Does the review praise something the host did?","Something the host did is praised."],["Describe a concrete problem","Does the writer describe a problem with the room or its contents?","A concrete fault with the room is identified."],["Explain its effect on you","Does the reviewer explain how the problem affected them?","The reviewer describes how the problem affected them."],["Propose an improvement",{type:"noul",instruction:"Does the reviewer suggest a specific improvement addressing the problem?",criteria:["A specific improvement addressing the problem is suggested.","This detail is absent or contradicted."]}],["Say whether you would return",{type:"noul",instruction:"Does the reviewer explicitly say whether they would stay there again?",criteria:["The message satisfies this requirement: A return decision.","This requirement is not met by the message."]}]),de("9-4","A local history hunt",290,"Suggest a history walk past a station and clock tower, name a feature to notice at each, and ask a friend to lead part",["Propose a history walk",{type:"noul",instruction:"Does the writer suggest taking a walk to explore local history?",criteria:["",""]}],["Include a station stop","Does the writer propose visiting a station on the history walk?","Visiting a station is proposed."],["Include a clock tower stop","Does the writer propose visiting a clock tower on the history walk?","Visiting a clock tower is proposed."],["Name a station feature",{type:"noul",instruction:"Does the message name something to notice at the station?",criteria:["Yes","No"]}],["Name a clock tower feature",{type:"noul",instruction:"Does the message name a historical feature to look for at the clock tower?",criteria:["",""]}],["Invite a friend to lead part","Does the writer ask the friend to lead part of the walk?","The reader is invited to lead part of the walk."]),de("9-5","A repair cafe",290,"Invite neighbors to a repair cafe, name an item to bring, give place and time, offer a skill, and ask for volunteers",["Invite the neighbors","Does the writer invite neighbors to a repair cafe or community repair event?","Neighbors are invited to a community repair event."],["Say what to bring","Does the writer name something people can bring to be repaired?","A kind of broken item to bring is named."],["Name a repair venue","Does the message give a place for the repair event?","The repair event's venue is named."],["Set a repair time","Does the message specify when the repair event takes place?","A time for the repair event is given."],["Offer a skill","Does the writer offer a specific repair skill of their own?","The writer offers a specific repair skill of their own."],["Ask for volunteers","Does the writer ask for volunteers to help run the repair event?","Volunteers are asked to help with the repair event."]),de("9-6","A birthday without stuff",290,"Propose an experience as a birthday gift, tailor it to a hobby, give its cost, offer to organize, suggest a date, and ask for approval",["Suggest an experience gift","Does the writer propose an activity as a birthday present?","An activity is proposed as a birthday gift."],["Link it to their interest","Does the message connect the proposed birthday activity to the recipient's existing interest?","The birthday activity is connected to the recipient's interests."],["State the cost",{type:"noul",instruction:"Does the message give the cost of the birthday experience?",criteria:["A cost for the birthday activity is given.","This detail is absent or contradicted."]}],["Offer to organize it","Does the writer offer to organize or book the birthday experience?","The writer offers to arrange the birthday activity."],["Suggest a date","Does the message specify when the birthday activity could take place?","A day or date for the birthday activity is proposed."],["Ask for their approval","Does the writer ask whether the birthday plan suits the recipient?","The recipient is asked whether the birthday plan suits them."])]},{id:10,title:"Make a little go far",skill:"Solve a practical constraint with a compact proposal",estimatedDuration:"18-30 min",rounds:[de("10-1","A bench on a budget",305,"Set a bench budget, price an oak and a pine option, choose one you can afford, praise a useful feature, and offer to collect it",["Set a spending limit",{type:"noul",instruction:"Does the message state how much money is available to spend?",criteria:["",""]}],["Give an oak bench price",{type:"noul",instruction:"Does the message give the price of an oak bench?",criteria:["An oak bench's price is stated.","This detail is absent or contradicted."]}],["Give a pine bench price","Does the message give the price of a pine bench?","A pine bench's price is stated."],["Choose an affordable option","Does the writer choose an option within their stated budget?","The writer chooses a bench within their stated budget."],["Praise a useful feature","Does the writer name a practical advantage of the bench they chose?","A useful feature of the chosen bench is explained."],["Offer to collect it","Does the writer offer to collect the chosen bench?","The writer offers to collect the bench."]),de("10-2","A workshop in half the time",305,"Shorten a workshop: keep its main exercise, cut a slideshow that repeats the notes, offer the notes, and ask for feedback",["Explain that less time is available",{type:"noul",instruction:"Does the writer say there is less time available for the workshop?",criteria:["",""]}],["Name an activity to keep",{type:"noul",instruction:"Does the writer say which workshop activity to keep?",criteria:["",""]}],["Name an activity to remove","Does the writer identify a workshop activity to remove?","The slideshow is to be removed from the workshop."],["Explain the cut","Does the message say the slideshow repeats information available elsewhere?","The slideshow repeats information already in the notes or handout."],["Offer the notes","Does the writer offer participants notes or a handout?","The writer offers participants notes or a handout."],["Ask for feedback","Does the writer ask for feedback on the shorter workshop plan?","The writer asks for feedback on the shorter workshop plan."]),de("10-3","A menu for two needs",305,"Plan a meal for a vegetarian and someone avoiding gluten: name both needs, suggest a dish, explain both fits, and offer to cook",["Acknowledge the vegetarian guest",{type:"noul",instruction:"Does the message explicitly mention a guest is vegetarian?",criteria:["",""]}],["Acknowledge the gluten-free guest",{type:"choice",instruction:"Does the message say someone avoids gluten?",criteria:["This detail is absent or contradicted.","A guest is described as avoiding gluten."]}],["Propose a meal","Does the writer propose a specific dish to serve?","A particular dish is proposed for the meal."],["Explain why it is vegetarian",{type:"noul",instruction:"Does the message explicitly explain that the proposed dish contains no meat?",criteria:["The proposed dish is explicitly described as containing no meat.","This detail is absent or contradicted."]}],["Explain why it avoids gluten",{type:"noul",instruction:"Does the message explicitly explain that the proposed dish is gluten-free?",criteria:["",""]}],["Offer to cook","Does the writer offer to cook the proposed meal?","The writer offers to cook the meal."]),de("10-4","A project worth trying",305,"Pitch a tool-sharing shelf: explain the idea, its benefit, where it goes, one rule, a trial length, and how to judge it",["Explain the sharing idea","Does the writer propose a shelf where people can borrow shared tools?","A shelf for lending shared tools is proposed."],["Describe a benefit","Does the message explain a benefit of sharing tools?","A benefit of sharing tools is explained."],["Name a location","Does the message name a place for the tool-sharing shelf?","A place for the tool shelf is named."],["Set a borrowing rule",{type:"choice",instruction:"Does the message state a concrete rule for borrowing the tools?",criteria:["This detail is absent or contradicted.","A concrete tool-borrowing rule is stated."]}],["Set a trial duration",{type:"choice",instruction:"Does the message specify how long to trial the tool-sharing scheme?",criteria:["No","Yes"]}],["Define a measure of success","Does the message propose a concrete way to assess whether the tool-sharing trial works?","A concrete measure for judging the trial's success is proposed."]),de("10-5","Room for a beginner",305,"Invite a novice to a hike, name the route, explain why it suits them, set a pace, offer equipment, and plan a rest stop",["Invite a novice","Does the writer invite a beginner to go hiking?","A beginner is invited on a hike."],["Name a route",{type:"choice",instruction:"Does the message name the path or trail for the hike?",criteria:["No","Yes"]}],["Explain why the route suits them","Does the message give a reason the proposed hike is suitable for a beginner?","A reason the hike suits a beginner is explained."],["Suggest a manageable pace","Does the writer propose a pace intended to suit the beginner?","A pace suitable for the beginner is proposed."],["Offer equipment","Does the writer offer to lend the beginner specific hiking equipment?","The writer offers to lend particular hiking equipment."],["Plan a rest stop","Does the message propose a specific rest stop during the hike?","A specific rest stop is proposed."]),de("10-6","The book swap",305,"Propose a book swap, give place and time, explain what to bring, say how books are exchanged, and offer leftover books to charity",["Propose a book swap","Does the writer propose a book swap event?","A book swap event is proposed."],["Name a swap location",{type:"choice",instruction:"Does the message name where the book swap happens?",criteria:["The swap has no named venue.","A venue such as a hall, house, library, or other place is named for the swap."]}],["Set a swap time","Does the message give a time for the book swap?","A time for the book swap is given."],["Say what to bring","Does the message ask people to bring books they have finished reading?","People are asked to bring books they have finished reading."],["Explain how the swap works","Does the message state a concrete rule for exchanging books?","A concrete rule for exchanging the books is stated."],["Offer to donate leftover books","Does the writer propose giving leftover books to charity?","Leftover books are to be donated to charity."])]},{id:11,title:"The final edit",skill:"Eight new briefs; seven goals each. Find the shortest complete version.",estimatedDuration:"25-40 min",rounds:[de("11-1","A cinema for one night",370,"Plan a community film night: film, venue, date, ticket price, an accessibility feature, snacks, and a request for helpers",["Choose a film","Does the message identify a movie that will be shown?","A film to screen is named."],["Name a venue",{type:"choice",instruction:"Does the message identify a venue for the film night?",criteria:["No actual venue is named. A film title, screen, ticket price, or accessibility statement alone is not a venue.","A place for watching the film is named, separately from the movie title. For example, at the hall or in a house names a venue."]}],["Set a date",{type:"noul",instruction:"Does the message give a date or day for the film screening?",criteria:["",""]}],["State the ticket price or free entry",{type:"noul",instruction:"Does the message say how much tickets cost or that the screening is free?",criteria:["Ticket prices or free admission are explained.","This detail is absent or contradicted."]}],["Describe an accessibility feature","Does the message state a specific accessibility feature at the film event?","A specific accessibility feature is mentioned."],["Plan the snacks",{type:"choice",instruction:"Does the message mention food for the film night?",criteria:["No","Yes"]}],["Ask for help","Does the writer ask for helpers for the film event?","The writer asks for help with the film event."]),de("11-2","A little shop online",370,"Pitch a local shop's website: products, customers, a benefit, ordering, collection, launch day, and an invitation to try it",["Say what is sold",{type:"noul",instruction:"Does the message identify what the shop offers for sale?",criteria:["A product type is named, including in a phrase such as candle website, book shop, or a similar description.","No product or type of goods is identified."]}],["Describe who it is for",{type:"choice",instruction:"Does the message identify the shop's customers?",criteria:["No intended customer group is identified.","The intended customers are named, described, or addressed directly, such as local gift shoppers."]}],["Explain why to use it","Does the message explain a benefit of using the shop website?","A benefit of using the shop website is explained."],["Explain how to order","Does the message explain how to place an order?","The way to place an order is explained."],["Explain how to collect","Does the message explain how customers receive or collect an order?","The way to receive or collect an order is explained."],["Say when it opens",{type:"noul",instruction:"Does the message state a launch day or date for the website?",criteria:["A launch day or date is stated.","This detail is absent or contradicted."]}],["Invite people to try it","Does the writer invite the reader to try the shop website?","The reader is invited to try the website."]),de("11-3","The neighborhood time bank",370,"Propose swapping skills: your offer, what you need, equal time in return, a meeting place, a time, and an invitation to join",["Propose swapping skills","Does the writer propose exchanging skills or services with neighbors?","Exchanging skills or services with neighbors is proposed."],["Offer your skill","Does the writer offer a specific skill they can teach or provide?","The writer offers a specific skill or service."],["Say what skill you need","Does the writer name a skill or service they would like in return?","The writer names a skill or service they need."],["Propose an equal-time exchange",{type:"noul",instruction:"Does the message propose exchanging equal amounts of time?",criteria:["The message satisfies this requirement: An exchange rule.","This requirement is not met by the message."]}],["Name a meeting place","Does the message name a place to meet for the skill exchange?","A place to meet for the exchange is stated."],["Set a meeting time","Does the message specify when to meet for the skill exchange?","A time to meet for the exchange is given."],["Invite others to join","Does the writer invite other people to join the skill exchange?","Others are invited to join the skill exchange."]),de("11-4","The science club challenge",370,"Plan an experiment: duration, one condition kept equal, prediction, materials, method, measurement, and a partner invitation",["Set a test duration",{type:"noul",instruction:"Does the message say how long to run the experiment?",criteria:["A duration for the experiment is stated.","This detail is absent or contradicted."]}],["Name a condition to keep equal","Does the message name a condition kept the same for both experimental groups?","A particular condition is kept the same for both groups."],["Make a prediction","Does the writer predict the outcome of the experiment?","The writer predicts the experiment's result."],["Name the materials","Does the message name materials needed for the experiment?","Materials for the experiment are named."],["Describe a test method","Does the message describe how to test the experimental question?","The method for testing the question is described."],["Say what to measure","Does the message specify what to measure in the experiment?","Something to measure in the experiment is specified."],["Invite a partner","Does the writer invite someone to take part in the experiment?","Someone is invited to join the experiment."]),de("11-5","A pop-up museum",370,"Plan a museum of everyday objects: theme, one exhibit, its story, venue, visiting time, entry cost, and a request for contributions",["Name a museum theme","Does the message name a theme for the proposed museum display?","A theme for the museum display is given."],["Name an exhibit","Does the message name a specific object to exhibit?","An object to exhibit is named."],["Tell its story",{type:"noul",instruction:"Does the message tell something that happened in the exhibit object's past?",criteria:["A specific past use, memory, or history is given, including a length of time the object was used.","No specific past use, memory, or history is described. Only calling an object old, or saying it is mine, is insufficient."]}],["Name a display venue","Does the message name a place for the museum display?","A venue for the display is named."],["Set visiting hours",{type:"choice",instruction:"Does the message say when people can visit the museum?",criteria:["This detail is absent or contradicted.","Visiting times are stated."]}],["State the entry cost","Does the message specify the cost of admission or that admission is free?","The cost of entry or free admission is stated."],["Ask for contributions","Does the writer ask others to contribute objects to the display?","Others are asked to contribute objects to the display."]),de("11-6","The two-stop escape",370,"Plan a day trip: town or city, transport, a railway museum and city walls, a reason to visit each, and a return time",["Name a destination","Does the message name a town or city for the day trip?","The town or city to visit is named."],["Explain how to get there","Does the message name transport for reaching the day-trip destination?","Transport to reach the destination is specified."],["Include a railway museum visit","Does the writer propose visiting a railway museum on the trip?","Visiting a railway museum is proposed."],["Explain why to visit the museum","Does the message give a reason to visit the railway museum?","A reason to visit the railway museum is given."],["Include a city walls visit","Does the writer propose visiting city walls on the trip?","Visiting city walls is proposed."],["Explain why to visit the walls","Does the message give a reason to visit the city walls?","A reason to visit the city walls is given."],["Say when to return",{type:"choice",instruction:"What does the message establish?",criteria:["No return time is stated.","A return time is given, including back at six, home at a stated time, or similar wording."]}]),de("11-7","A club that lasts",370,"Start a drawing club: audience, place, schedule, materials, beginner support, cost, and a way to join",["Describe who the club is for","Does the message identify who the drawing club is intended for?","The drawing club's intended audience is described."],["Name a club venue","Does the message name a meeting place for the drawing club?","A meeting venue is named."],["Set a regular schedule","Does the message give a recurring meeting schedule for the drawing club?","A recurring schedule for the drawing club is given."],["Explain what materials are needed","Does the message say what drawing materials to bring or what will be provided?","Drawing materials to bring or available materials are specified."],["Explain how beginners get help","Does the message explain a concrete way beginners will be helped at the drawing club?","A concrete form of help for beginners is explained."],["State the membership cost","Does the message specify the cost of joining the drawing club or that it is free?","Membership costs or free membership are stated."],["Explain how to join","Does the message tell people how to join the drawing club?","A way to sign up for the club is given."]),de("11-8","A good idea made real",370,"Pitch a street library: purpose, location, book rule, weather protection, your task, an opening date, and a request for help",["Explain the library's purpose","Does the message explain that the street library lets people share books?","Sharing books with neighbors is the purpose of the street library."],["Name a library location",{type:"noul",instruction:"Does the message name a location for the street library? Judge the meaning; ordinary paraphrases and pronouns count. Do not assume missing information.",criteria:["",""]}],["Set a book-sharing rule","Does the message state a concrete rule for using the street library?","A concrete book-sharing rule is given."],["Plan protection from the weather","Does the message propose how to protect the street library books from the weather?","A way to protect the books from weather is proposed."],["Offer your contribution","Does the writer commit to a specific task to create the street library?","The writer offers to do a specific setup task."],["Set an opening date",{type:"noul",instruction:"Does the message give a day or date to open the street library?",criteria:["An opening day or date is proposed.","This detail is absent or contradicted."]}],["Ask for help with a setup task",{type:"noul",instruction:"Does the writer request help with a specific task for the street library?",criteria:["The writer asks someone else to help set up the library.","This detail is absent or contradicted."]}])]}],z={entitlement:["Entitlement","The writer claims personal superiority or an automatic right to special treatment.","No claim of superiority or automatic entitlement is made."],threat:["Threats for refusing","The writer threatens to punish or retaliate against the recipient for refusing a request.","No retaliation is threatened. A practical limit on time, money, or capacity is not a threat."],guilt:["Guilt trips",{type:"choice",instruction:"How does the writer treat refusal?",criteria:["Refusal is acceptable","Refusal means not caring"]}],insult:["Personal attacks","The writer attacks a person's intelligence, character, or worth.","Nobody is personally insulted."],blame:["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["",""]}],excuse:["Excuses","The writer makes an excuse","The writer accepts fault","How is the mistake explained?"],minimize:["Minimizing harm","The writer dismisses it as trivial, harmless, exaggerated, or not worth worrying about.","The writer takes it seriously rather than dismissing it.","How does the writer treat the problem or concern?"],guarantee:["False certainty","The writer guarantees an uncertain outcome or claims a known unresolved issue is already fixed.","No uncertain result is guaranteed. Offering an action, a status update, or a conditional plan is not an outcome guarantee."],apology:["Apologizing","The writer explicitly says sorry or apologizes.","The writer does not apologize. Thanks, empathy, and a polite refusal are not apologies."],accusation:["Assumed motives","The writer claims someone deliberately meant to deceive, annoy, or hurt another person.","Nobody is accused of bad intentions. A concrete problem may be described without assuming its motive."],promise:["Promises beyond the limits","An unconditional promise beyond the stated limits.","An offer within stated limits or conditional on agreement.","Does the writer's offer exceed the limits stated in the message?"],sales:["Sales pressure",{type:"noul",instruction:"Does the text use urgency, scarcity, or fear of missing out to pressure the recipient to agree?",criteria:["Yes","No"]}],pity:["Pity or patronizing",{type:"noul",instruction:"Does the text treat the recipient as helpless or incapable of deciding for themselves?",criteria:["Yes","No"]}],deflect:["Dodging the issue","The writer dodges the concern with vague praise, process language, or a demand to move on.","The writer directly addresses the specific concern.","Does the writer address the concrete concern?"],credit:["Taking all the credit","The writer claims other people's contributions as their own.","The writer acknowledges other people's contributions and keeps their own credit accurate.","How does the writer assign credit after any correction?"],coercion:["Assumed consent",{type:"choice",instruction:"Is consent assumed anywhere in this message?",criteria:["No action is taken or permission assumed without an affirmative response","At least one action or agreement is assumed, including treating silence as consent, even if the writer also asks politely","The message has no request, offer, or decision needing consent"]}],stigma:["Stigma","The writer labels a person or group as inferior, dangerous, irresponsible, or untrustworthy because of their identity or personal circumstances.","The writer discusses behavior or needs without stereotyping or stigmatizing anyone.","Does the writer judge someone by their identity or private circumstances?"],spin:["Positive spin","An exciting improvement","A regrettable reduction","How is the loss of service presented?"],pressure:["Pressure to disclose","The writer demands private reasons, personal history, diagnosis, or proof before offering help or participation.","The writer does not require personal disclosures; support or participation does not depend on them.","Is help or participation conditional on disclosing private information?"],tradeoff:["Claiming no drawbacks","Claims there are no costs or drawbacks","Costs or limitations are stated","Which description fits the tradeoffs in the proposal?"]};function fe(s,n,r,u,h,...m){return{id:s,title:n,limit:r,brief:u,goalCount:h.length,labels:[...h,...m].map(([v])=>v),questions:[...h.map(([,v,g,S])=>typeof v!="string"?v:{type:"noul",instruction:v,criteria:[g??"",S??""]}),...m.map(([,v,g,S])=>typeof v!="string"?v:{type:"choice",instruction:S??"Classify only the actual quoted message. Do not invent missing words or assume unstated details.",criteria:[g??"Does not fulfill the requirement.",v,"No relevant request, conflict, mistake, or claim to assess."]})]}}const F1=[{id:1,title:"Ask without leaning",skill:"Make a clear request without making it hard to say no",estimatedDuration:"2-3 min",rounds:[fe("1-1","Borrow, don't demand",150,"Ask to borrow a charger and thank the other person. Make it a request, without claiming you are entitled to it or threatening them.",[["Ask to borrow a charger","Does the writer ask to borrow a charger?"],["Thank them","Does the message express thanks?"]],z.entitlement,z.threat),fe("1-2","A favor with an exit",150,"Ask a friend to help with one specific moving task. Offer a concrete alternative if they cannot help, without using friendship or obligation to pressure them.",[["Ask for a specific moving task","Does the message ask for help moving?","The writer asks for help with a particular moving task, such as carrying furniture or packing belongings.","No help with a specific moving task is requested."],["Offer a fallback for moving",{type:"choice",instruction:"What is the fallback if the friend cannot help?",criteria:["No fallback for the moving task is stated","Another way to complete the moving task is given"]}]],["Guilt trips",{type:"choice",instruction:"Does the writer imply that refusing would make the friend uncaring or disloyal?",criteria:["There is no moral judgment for refusing. Offering another way to finish the move does not imply the friend is uncaring.","Refusing the moving request is framed as proof of not caring or being a bad friend."]}],z.threat),fe("1-3","Volume, not virtue",150,"Ask a neighbor to keep the noise down at a specific time. Explain its effect on you without insulting them or assuming they are doing it deliberately.",[["Ask for less noise","Does the writer ask someone to reduce noise?"],["Specify a time for quiet","Does the quoted Text explicitly contain all of the following? The writer requests lower noise at a stated clock time or defined period. Read only the text, without completing missing details."],["Explain the effect on you","Does the message explain why the noise bothers the writer?"]],z.insult,z.accusation)]},{id:2,title:"Kind friction",skill:"Be direct about a problem while preserving the relationship",estimatedDuration:"3-6 min",rounds:[fe("2-1","Useful, not brutal",190,"You want to help fix a colleague's chart. Name what works, identify a specific readability problem, and ask for the editable source file. No personal criticism, empty flattery, or dismissal of the problem.",[["Praise something that works",{type:"noul",instruction:"Does the writer say what works well in the chart? Answer yes if: A specific feature is praised, such as useful colors, clear coding, or another helpful feature. Answer no if: No particular feature is praised. Criticism alone does not name something that works.",criteria:["",""]}],["Identify a readability problem","Does the writer identify a specific part of the chart that is hard to read?"],["Ask for the editable source",{type:"noul",instruction:"Does the writer ask for the editable chart file?",criteria:["The message satisfies this requirement: The editable source requested.","This requirement is not met by the message."]}]],z.insult,z.deflect,z.minimize),fe("2-2","No with an open door",190,"Decline a dinner invitation and thank the host for including you. Offer a different way to connect without giving an excuse, apologizing, applying pressure, or assuming their agreement.",[["Decline the dinner invitation",{type:"choice",instruction:"What does the writer say about attending dinner?",criteria:["They accept the dinner invitation","They explicitly decline the dinner invitation","They do not say whether they will attend dinner. Declining lunch or another activity alone does not state a dinner decision."]}],["Thank them for the invitation",{type:"noul",instruction:"Does the writer thank the host for inviting them?",criteria:["The message satisfies this requirement: Thanks for the invitation.","This requirement is not met by the message."]}],["Suggest another way to connect","Does the writer propose a replacement plan?","The writer offers a specific way to meet or talk instead of dinner, such as a call or a walk together.","No alternative activity or way to keep in touch is proposed."]],z.apology,z.guilt,z.coercion,["Excuse for declining",{type:"noul",instruction:"Does the writer give a reason why they cannot attend dinner?",criteria:["",""]}]),fe("2-3","The missing invoice",190,"An invoice was due Friday and is still unpaid. Ask for a payment date and offer to resend the invoice. Describe the status without accusing the client of dishonesty, threatening them, or excusing the overdue payment.",[["State that the invoice is overdue","Does the message say the invoice due Friday is still unpaid?"],["Ask for a payment date",{type:"noul",instruction:"Does the writer ask when payment will happen?",criteria:["They ask when money will be sent or received, including When can I expect it? where it refers to the payment.","They do not ask when payment will happen. Merely saying the invoice is overdue is insufficient."]}],["Offer to resend the invoice",{type:"noul",instruction:"Does the writer offer to resend the invoice?",criteria:["They offer to send the invoice or payment details again, including asking whether resending would help.","They do not offer to resend the invoice or its details."]}]],z.accusation,z.threat,z.minimize)]},{id:3,title:"Own the awkward bit",skill:"Take responsibility without becoming defensive or overpromising",estimatedDuration:"9-15 min",rounds:[fe("3-1","The broken mug",250,"You broke a borrowed mug. Apologize and take responsibility, then let its owner choose a replacement or reimbursement. Do not blame the mug, explain away the accident, or call it insignificant.",[["Admit breaking the mug","Does the writer admit they broke the recipient's mug?"],["Apologize",{type:"choice",instruction:"Does the message contain an apology?",criteria:["The writer may admit damage or offer a remedy but does not apologize.","The writer says sorry or offers an apology."]}],["Offer a replacement",{type:"choice",instruction:"Does the writer offer a replacement mug?",criteria:["No","Yes"]}],["Offer repayment",{type:"choice",instruction:"Does the writer offer to compensate the mug's owner with money?",criteria:["No money is offered. An apology or a replacement mug alone is not reimbursement.","They offer reimbursement, repayment, or paying the owner back for the mug."]}],["Let the owner choose","Does the writer let the mug's owner choose the remedy?","The owner can choose between the proposed remedies.","The writer decides the remedy without giving the owner a choice."]],["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["The message satisfies this requirement: Blame shifting.","This requirement is not met by the message."]}],z.excuse,z.minimize),fe("3-2","Credit where it belongs",250,"You presented a team result and forgot to credit Jo, who designed the method. Correct the omission in a message to the team, explain your own role in testing it, and offer to fix the presentation. No blame, excuses, or taking sole credit.",[["Credit Jo with the design",{type:"noul",instruction:"Does the text explicitly say Jo designed the method?",criteria:["The message satisfies this requirement: Jo designed the method.","This requirement is not met by the message."]}],["Describe your testing contribution","Did the writer test the method?","The writer says they tested the method.","The writer does not say they did the testing."],["Own the credit omission",{type:"noul",instruction:"Does the writer admit their own credit omission?",criteria:["",""]}],["Offer to correct the presentation","Does the writer offer to correct the presentation's credits?","The writer offers to update the presentation or slides to give the missing credit.","No correction to the presentation is offered."]],z.credit,z.blame,["Excuses",{type:"noul",instruction:"Does the writer give an excuse to avoid responsibility for their mistake?",criteria:["",""]}]),fe("3-3","Late, but honest",250,"Your report will miss today's deadline; you do not yet know when it will be finished. Tell the recipient, offer the completed summary now, and promise an update tomorrow. Do not invent a finish date, blame others, or minimize the delay.",[["Say today's deadline will be missed","Will the report be late?","The writer says the report will not meet today's deadline.","The message does not say today's report deadline will be missed."],["Say the finish date is unknown",{type:"choice",instruction:"What does the writer say about the completion date of the full report?",criteria:["A definite completion date is given","The writer explicitly says they do not know the completion date yet","No statement is made about whether the completion date is known"]}],["Offer the summary now","Does the writer offer the completed summary now?"],["Promise an update tomorrow","Will the writer give an update tomorrow?","The writer promises an update tomorrow.","No update tomorrow is offered."]],["An invented finish date",{type:"noul",instruction:"Does the writer give a definite completion date for the full report?",criteria:["",""]}],z.blame,z.minimize)]},{id:4,title:"Boundaries that help",skill:"Protect a real limit and still give the other person a useful route",estimatedDuration:"20-32 min",rounds:[fe("4-1","Two urgent things",310,"Your manager asks for a new analysis today, but today is already allocated to the launch. Ask them to choose which takes priority and say the other will move to tomorrow. Stay constructive without apologizing, blaming, or threatening to stop work.",[["Say only one task fits today",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["The message does not state that only one task fits today.","The writer says either the analysis or the launch can fit today, but not both."]}],["Ask the manager to set priority",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["The message does not ask for a choice between the tasks.","The writer asks the manager which of the two tasks should take priority."]}],["Defer the other task to tomorrow","Does the message explicitly fulfill the requirement below?","The task not chosen for today is explicitly deferred to tomorrow.","The message does not say the other task will move to tomorrow."]],z.apology,z.blame,z.threat),fe("4-2","A refund with edges",310,"A customer wants a cash refund outside the 30-day window. You can offer store credit or a repair, but cannot authorize cash. Acknowledge their frustration and offer those two options without blaming the customer, belittling the issue, or promising an exception.",[["Acknowledge the frustration","Does the writer say they understand the customer's frustration?"],["State the cash-refund boundary",{type:"noul",instruction:"Does the writer say they cannot authorize a cash refund outside 30 days?",criteria:["The message satisfies this requirement: The cash-refund boundary.","This requirement is not met by the message."]}],["Offer store credit","Does the writer offer store credit?"],["Offer a repair","Does the writer offer a repair?"]],z.blame,z.minimize,["Unauthorized refund",{type:"noul",instruction:"Does the writer offer a cash refund outside the 30-day window?",criteria:["",""]}]),fe("4-3","Helpful, not on call",310,"A colleague keeps asking for evening help. Say you will answer work questions during office hours, offer a 15-minute slot tomorrow morning, and ask them to bring one priority question. Do not apologize, shame them, or imply that refusing the slot has a penalty.",[["Set an office-hours boundary","Does the message explicitly fulfill the requirement below?","The writer explicitly limits help to office hours and excludes evenings.","There is no boundary excluding evening help."],["Offer 15 minutes tomorrow morning",{type:"noul",instruction:"Does the writer propose meeting for fifteen minutes tomorrow morning?",criteria:["",""]}],["Ask for one priority question",{type:"choice",instruction:"Does the message ask for one main question?",criteria:["No request to bring a priority question is made.","The recipient is asked to bring a priority, top, or most important question."]}]],z.apology,z.guilt,z.threat),fe("4-4","Disagree without digging in",310,"A teammate proposes skipping tests to ship faster. Disagree, explain a specific risk, and propose testing the payment path before shipping. Invite their view without attacking their competence, claiming certainty about failure, or taking over the decision.",[["Describe a specific payment risk","Does the writer describe a particular way a payment could go wrong?","A concrete payment failure is described, such as duplicate charges, a failed purchase, or an incorrect amount.","No actual payment failure is described. Merely mentioning testing, risk, or payments is insufficient."],["Propose payment tests before shipping","Does the writer propose testing payments before release?"],["Invite their view","Does the writer ask for the teammate's opinion?"]],z.insult,z.guarantee,z.coercion)]},{id:5,title:"Confidence with limits",skill:"Give people something useful without pretending uncertainty has vanished",estimatedDuration:"24-40 min",rounds:[fe("5-1","The service is coming back",360,"Logins are working again, but some reports remain delayed and the cause is under investigation. Tell customers both facts, offer an export as a workaround, and promise another status update at 16:00. No claim that everything is fixed, blame, or cheerful spin.",[["Say logins work again","Can users log in again?"],["Say reports are still delayed","Does the message say reports remain delayed?"],["Say the cause is being investigated","Does the message say the cause is still under investigation?"],["Offer an export workaround","Does the writer offer an export as a workaround?"],["Promise a 16:00 update",{type:"noul",instruction:"Does the writer commit to another status update at 16:00?",criteria:["The message satisfies this requirement: A 16:00 update.","This requirement is not met by the message."]}]],["A premature all-clear",{type:"noul",instruction:"Does the writer claim that every service problem is now fixed?",criteria:["",""]}],z.blame,z.spin),fe("5-2","Promising is not proven",360,"A pilot cut average queue time from ten minutes to eight across 20 visits. Recommend a larger trial and name a measurement to track. Do not claim the pilot proves the change works for everyone, hide the small sample, or pressure people to adopt it now.",[["Report the ten-to-eight-minute average",{type:"noul",instruction:"Does the text report average queue time falling from ten minutes to eight?",criteria:["The message satisfies this requirement: The measured change.","This requirement is not met by the message."]}],["Mention the sample of 20 visits","Does the text say the pilot result is based on 20 visits?"],["Propose a larger trial","Does the writer propose a larger trial?"],["Name a measurement to track","Does the message explicitly fulfill the requirement below?","The writer names a concrete measurement to track in the next trial, such as waiting time or complaints.","No measurement is proposed for the next trial."]],["A broad proof claim",{type:"noul",instruction:"Does the writer claim the small pilot proves the change works for everyone?",criteria:["",""]}],z.sales),fe("5-3","Reassurance without a diagnosis",360,"A friend is worried about an unfamiliar test result. Acknowledge the worry, suggest discussing the result with their clinician, and offer a practical form of support. Do not diagnose them, promise the result is harmless, minimize their fear, or demand private details.",[["Acknowledge the worry","Does the quoted Text explicitly contain all of the following? The writer explicitly acknowledges that the result feels worrying or uncertain to the recipient."],["Suggest a clinician's explanation","Does the quoted Text explicitly contain all of the following? The writer suggests discussing the result with a doctor or clinician.","","The writer does not recommend discussing the result with a clinician."],["Offer practical support","Does the writer offer practical help?","A particular action is offered, such as accompanying the recipient, taking notes, or preparing questions.","No concrete support action is offered."]],z.guarantee,z.minimize,z.pressure,["Giving a diagnosis",{type:"noul",instruction:"Does the writer say what medical condition the test result means the recipient has?",criteria:["",""]}]),fe("5-4","The honest recommendation",360,"Recommend a quiet café for conversation while disclosing that it closes at six and has no step-free entrance. Suggest an accessible alternative if that matters to the recipient, without deciding their needs, hiding a drawback, or pressuring them.",[["Recommend a quiet place to talk","Does the writer recommend a quiet café for conversation?"],["Mention the six o'clock closing","Does the writer disclose that the café closes at six?"],["Mention the entrance steps",{type:"noul",instruction:"Does the text mention steps or a lack of step-free access at the original café entrance?",criteria:["",""]}],["Offer an accessible alternative","Does the writer offer an accessible alternative if the recipient needs one?"]],z.pity,z.tradeoff,z.sales)]},{id:6,title:"Negotiate the shape",skill:"Trade scope, time, and cost instead of just asking for less",estimatedDuration:"40-60 min",rounds:[fe("6-1","The budget has corners",430,"A designer quotes $600 for six pages. Your budget is $400. Propose fewer pages now with remaining pages priced separately later, and ask whether that scope is feasible. Keep their rate intact; no discount demand, entitlement, pressure, or commitment without agreement.",[["Acknowledge the original quote","Does the writer acknowledge a $600 quote for six pages?"],["State your $400 budget","How much can the writer spend?","The writer states a budget of $400.","A $400 budget is not stated."],["Reduce scope, not the rate",{type:"choice",instruction:"How does the writer propose fitting the project to the smaller budget?",criteria:["The rate is reduced, or no adjustment is proposed","Fewer pages now, with the normal rate preserved","Pay for the full project in installments"]}],["Price the rest separately","Does the writer propose pricing the remaining pages as a separate later phase?"],["Ask what is feasible","Does the text include a question about feasibility?"]],z.entitlement,z.sales,z.guilt,z.coercion,["A discount demand",{type:"noul",instruction:"Does the writer ask the designer to lower their rate?",criteria:["",""]}]),fe("6-2","A deadline with a lever",430,"A client wants a full report Friday; it needs until Monday. Offer the full report Monday, or the core findings Friday without the optional appendix. Ask them to choose before changing scope. Do not promise the full report Friday, hide the missing appendix, blame the client, or treat silence as consent.",[["Offer the full report on Monday","Does the message say the full report needs until Monday?"],["Offer Friday without the appendix","Does the writer offer a Friday report without the optional appendix?","The writer offers Friday delivery of the core findings, explicitly leaving out the optional appendix.","No Friday alternative excluding the appendix is offered."],["Ask the client to choose first","Does the text ask for the client's choice?","The client is directly asked to select or state a preference between the plans.","The plans are described, but no request for the client's choice is made."]],["An impossible Friday promise",{type:"noul",instruction:"Does the writer promise the full report on Friday?",criteria:["",""]}],z.tradeoff,z.blame,z.coercion),fe("6-3","The noisy compromise",430,"Neighbors want to rehearse from seven to ten for a performance on Saturday; you need quiet after nine. Offer two alternatives: rehearsing tomorrow afternoon, or moving the last hour to another room away from your wall. Acknowledge the upcoming performance and ask whether either alternative works. No blanket ban, guilt trip, insult, or claim that everyone agrees with you.",[["Acknowledge Saturday's performance","Does the message mention a performance on Saturday?"],["Request quiet after nine","Does the writer explain their need for quiet after nine?"],["Suggest tomorrow afternoon instead",{type:"noul",instruction:"Does the writer propose rehearsing tomorrow afternoon as an alternative?",criteria:["The message satisfies this requirement: Tomorrow afternoon instead.","This requirement is not met by the message."]}],["Propose moving the last hour","Does the writer offer moving the nine-to-ten hour away from the shared wall as another option?"],["Invite agreement","Does the writer ask whether the proposed compromise works for the recipient?"]],["A blanket ban",{type:"noul",instruction:"Does the writer demand an end to all rehearsals?",criteria:["",""]}],z.guilt,z.insult,["Claimed consensus",{type:"noul",instruction:"Does the writer claim that everybody has already agreed?",criteria:["",""]}]),fe("6-4","Support without a blank cheque",430,"A friend asks to borrow $500. You can give $100 but cannot lend the rest. Offer help finding another option if wanted. Make the gift clear, without demanding an explanation, judging their spending, apologizing for the limit, or expecting a favor in return.",[["Offer a $100 gift","Does the writer offer $100 as a gift with no repayment?"],["Decline the $500 loan",{type:"choice",instruction:"Does the writer refuse the requested loan beyond the gift?",criteria:["No lending limit is stated. Offering a $100 gift alone does not refuse the rest.","They say they cannot lend $500 or cannot lend the remaining $400 after offering a $100 gift."]}],["Offer optional practical help","Does the writer offer to help find another source of support if wanted?"]],z.pressure,z.insult,z.apology,["A return favor",{type:"noul",instruction:"Does the writer require a favor in return for the gift?",criteria:["",""]}]),fe("6-5","A raise, not a ransom",430,"Ask your manager for a raise and name a concrete contribution or responsibility supporting the request. Invite discussion without claiming you are owed money, making them feel guilty, or threatening to leave.",[["Give a work-related reason",{type:"noul",instruction:"Does the message match this description? A concrete task or achievement is named, such as training staff or leading a team",criteria:["",""]}],["Ask politely for a raise","Does the writer politely ask for a pay raise?"]],["Entitlement",{type:"choice",instruction:"Does the message express entitlement?",criteria:["No automatic entitlement or superiority is claimed. Asking to discuss fair compensation for a contribution is not entitlement.","The writer claims they are automatically owed special treatment, or superior to others."]}],z.guilt,z.threat)]},{id:7,title:"Say enough, keep trust",skill:"Make a useful message without exposing what is not yours to share",estimatedDuration:"45-70 min",rounds:[fe("7-1","Cover without disclosure",490,"Alex is away for a private reason. Tell the team that you cover approvals through Friday and urgent requests go to Sam after that. Do not reveal or speculate about Alex's reason, imply Alex is unreliable, promise their return, or invite questions about their private life.",[["Say Alex is away","Does the message say Alex is away?"],["Offer coverage through Friday","Does the writer say they will cover approvals through Friday?"],["Redirect urgent requests afterward",{type:"noul",instruction:"Does the message direct urgent requests after Friday to Sam?",criteria:["The message satisfies this requirement: Urgent requests afterward.","This requirement is not met by the message."]}]],z.accusation,["Questioning reliability",{type:"noul",instruction:"Does the writer describe Alex as unreliable?",criteria:["",""]}],z.guarantee,z.pressure,["Private details",{type:"noul",instruction:"Does the text name or speculate about the actual reason for Alex's absence?",criteria:["",""]}]),fe("7-2","A concern, not a culprit",490,"An anonymous colleague reported interruptions in meetings. Ask the team to try a speaking queue for two weeks and then review participation. Describe the behavior without identifying the reporter, guessing the interrupter's motives, shaming anyone, or promising it will solve everything.",[["Describe the reported behavior","Have interruptions in meetings been reported?"],["Propose a speaking queue","Does the writer propose using a speaking queue?"],["Set a two-week trial","Does the writer propose trying the change for two weeks?"],["Plan to review participation",{type:"choice",instruction:"What happens after the speaking-queue trial?",criteria:["No later review is described","Participation will be reviewed","Only the trial itself is described"]}]],z.accusation,z.insult,z.guarantee,z.coercion,["Identifying the reporter","The writer names the reporter or gives personal details that identify who complained.","The reporter remains anonymous; no identifying clue is shared."]),fe("7-3","The reference boundary",490,"A prospective employer asks why a former colleague left. You can confirm their dates and describe work you personally saw, but do not know the reason for departure. Offer those facts without speculation, hints of misconduct, private details, or endorsing work you did not see.",[["Say the reason is unknown","Does the writer say they do not know why the colleague left?"],["Offer employment dates",{type:"choice",instruction:"Classify only what the writer actually says. Do not infer unwritten details or complete unfinished words.",criteria:["No employment dates are offered.","The writer offers to confirm the colleague's employment dates."]}],["Offer firsthand work observations","Does the writer offer to describe work they personally observed?"]],z.accusation,["Secondhand claims","The writer repeats rumors, speculation, or assessments of work they did not personally observe.","Only firsthand observations or an offer to provide them are given."],["Private personal details",{type:"noul",instruction:"Does the writer disclose private facts about the former employee's health, family, or personal life?",criteria:["Private personal circumstances beyond professional work information are disclosed.","Only employment dates or firsthand professional observations are offered; no private personal circumstances are disclosed."]}],["Hints of misconduct",{type:"noul",instruction:"Does the writer imply the former colleague did something wrong?",criteria:["",""]}]),fe("7-4","The surprise stays a surprise",490,"A colleague asks about a confidential launch. Decline to share its date or features, but point them to the public newsletter for confirmed announcements. Stay friendly without confirming guesses, inventing a release date, teasing secret knowledge, or making them feel excluded.",[["Decline to share launch details","Does the writer decline to share confidential launch details?"],["Point to the public newsletter","Does the writer direct the recipient to the public newsletter for confirmed announcements?"]],z.guarantee,z.pity,["Insider teasing",{type:"noul",instruction:"Does the writer tease the recipient about knowing secrets they do not know?",criteria:["",""]}],z.insult,["Leaking by hint",{type:"noul",instruction:"Does the message reveal the actual launch date or describe an unreleased feature?",criteria:["A date, feature, or clue about the launch","No date, feature, or clue is revealed"]}]),fe("7-5","Help without the backstory",490,"A student requests a quieter room. Offer a quiet desk or a different session and let them choose. Explain that you do not need their diagnosis or personal history. Do not speculate about a condition, treat them as incapable, ask for proof, or decide for them.",[["Offer a quiet desk","Does the writer offer a quiet desk?"],["Offer another session",{type:"noul",instruction:"Does the message offer attending another session as an option?",criteria:["",""]}],["Let the student choose","Does the writer ask the student which option they prefer?"],["Say no private history is required","Does the writer explicitly say a diagnosis or personal history is not needed?"]],z.pity,z.stigma,z.pressure,["Assumed consent",{type:"noul",instruction:"Does any part of the message treat silence as consent or decide for the recipient?",criteria:["",""]}],["Speculative diagnosis","The writer labels or guesses the student's medical or psychological condition.","No diagnosis is stated or guessed."])]},{id:8,title:"One message, two audiences",skill:"Keep the message fair when different readers need different things",estimatedDuration:"50-90 min",rounds:[fe("8-1","The closure notice",550,"A library room will close Tuesday for repairs. Write one notice for readers and staff: apologize for the disruption, direct readers to the downstairs room, and tell staff to move bookings there. Access stays free. Do not blame staff, celebrate the closure, promise repairs will finish Tuesday, or suggest readers caused it.",[["Announce Tuesday's closure","Does the notice say the library room closes Tuesday for repairs?"],["Apologize","Does the writer apologize for the disruption?"],["Direct readers downstairs","Does the quoted Text explicitly contain all of the following? The notice tells readers to use the downstairs room.","","Readers are not directed downstairs. Instructions to staff about bookings alone do not tell readers where to go."],["Say access remains free",{type:"choice",instruction:"Does the message state that readers do not have to pay?",criteria:["Free access is not stated.","Library access is described as free or free of charge."]}],["Offer to move the bookings","Does the notice ask staff to move affected bookings to the downstairs room?"]],z.blame,z.spin,z.guarantee,z.accusation,z.minimize),fe("8-2","A pilot is not a pay cut",550,"Propose a four-week rota trial to staff and managers. It must preserve contracted hours while inviting staff to submit preferred shifts through a private form. Explain that not all preferences can be met and invite feedback before a decision. Avoid pretending everyone benefits, implying a final decision, blaming staff, or making refusal shameful.",[["Propose a four-week rota trial","Does the writer propose a four-week rota trial?"],["Protect contracted hours","Does the message explicitly fulfill the requirement below?","The writer explicitly says contracted hours will be preserved.","The message does not say contracted hours are protected."],["Request shifts through a private form","Does the writer ask staff to submit preferred shifts through a private form?"],["Acknowledge limits on preferences","Does the writer acknowledge that not every shift preference can be met?","The message acknowledges that not every shift preference can be met.","The limit on meeting shift preferences is not acknowledged."],["Invite feedback before deciding","Does the writer ask for feedback before deciding on the rota trial?"]],z.tradeoff,z.coercion,z.blame,z.guilt,z.spin),fe("8-3","Thanks without an endorsement",550,"A company donated chairs to your community event. Thank them for the chairs, credit the volunteers who set up, and state that the donation does not buy influence over the program. Be warm without endorsing the company's products, insulting the donor, claiming all credit, or implying future funding is guaranteed.",[["Thank them for the chairs","Does the writer thank the company for donating chairs?"],["Credit the volunteers","Does the writer credit volunteers for setting up?"],["Rule out influence over the program",{type:"noul",instruction:"Does the message explicitly deny giving the donor control over the program? Answer yes if: It says the donation gives no control or influence over the program, or that program decisions remain independent. Answer no if: It does not state that the donor lacks control over program decisions.",criteria:["",""]}]],z.insult,z.credit,z.guarantee,["Product endorsement","The writer recommends the donor's products or treats the donation as proof of product quality.","The donation is acknowledged without recommending products or asserting their quality."]),fe("8-4","A correction without a repeat",550,"Yesterday you wrote that bookings were open. They open Friday instead. Correct your own error, give the right opening day and the public booking page, and acknowledge the inconvenience. Do not blame the reader, imply seats are reserved, use scarcity pressure, or turn the error into good news.",[["Own the wrong announcement","Does the writer admit their earlier statement that bookings were open was wrong?"],["State that opening day is Friday","Do bookings open on Friday?","The message states that bookings open Friday.","The Friday opening day is not stated."],["Point to the public booking page","Does the writer direct readers to the public booking page?"],["Acknowledge the inconvenience","Does the writer acknowledge the inconvenience caused by the error?"]],["Blame shifting",{type:"noul",instruction:"Does the writer accuse someone else of causing the mistake?",criteria:["",""]}],z.spin,z.sales,["Promised seats",{type:"noul",instruction:"Does the message say any seats are already reserved for the recipient?",criteria:["",""]}],z.minimize),fe("8-5","A rule with a welcome",550,"A workshop cannot admit late arrivals once machinery starts. Invite newcomers to arrive ten minutes early for a safety briefing; offer the next session if they miss it. Explain a concrete danger from entering while machines run, without calling late people careless, threatening them, hiding the restriction, or promising an exception.",[["Welcome newcomers","Does the writer welcome newcomers to the workshop?"],["Ask them to arrive ten minutes early","Does the writer ask participants to arrive ten minutes early for a safety briefing?"],["Explain the entry restriction","Does the message prohibit entering once the machinery starts?","The message explicitly states that people cannot enter after machines start running.","No entry restriction tied to running machinery is stated. A safety warning or early-arrival request alone is insufficient."],["Explain the safety reason",{type:"noul",instruction:"Does the message name an accident or injury that could happen to late arrivals?",criteria:["A specific physical hazard is described, such as being injured by blades or walking into moving parts.","No injury or accident mechanism is described. A safety briefing and an entry ban alone do not explain the hazard."]}],["Offer the next session","Does the writer offer the next session to anyone who misses the briefing?"]],z.insult,["Threats for refusing",{type:"noul",instruction:"Does the message match this description? The writer threatens to punish or retaliate against the recipient for refusing a request.",criteria:["",""]}],["An entry exception",{type:"noul",instruction:"Does the writer offer to admit someone after the machinery starts?",criteria:["",""]}],z.minimize)]},{id:9,title:"Plans that survive reality",skill:"Write contingencies that are actionable without overstepping",estimatedDuration:"60-120 min",rounds:[fe("9-1","Rain, rooms, and consent",630,"A park picnic is planned for Saturday at noon. Check the forecast at nine; if heavy rain is forecast, propose the hall at noon. If the hall is unavailable, offer postponing to Sunday. The hall costs $40 split equally only among those who agree. Ask for explicit agreement before booking it. No assumed consent, guaranteed weather, hidden cost, pressure, or claim the hall is already booked.",[["Plan a forecast check at nine","Does the writer propose checking the forecast at nine on Saturday?"],["Explain the rainy-day plan","Does the text specify meeting in the hall at noon if heavy rain is forecast?","The writer proposes meeting in the hall at noon if heavy rain is forecast.","No such rainy-day plan is stated. Hall costs or booking alone do not state a plan to meet there at noon."],["Offer a Sunday fallback","Does the writer offer postponing the picnic to Sunday if the hall is unavailable?"],["State the $40 cost",{type:"noul",instruction:"Does the writer state that the hall costs $40?",criteria:["The message satisfies this requirement: The $40 cost.","This requirement is not met by the message."]}],["Seek agreement on an equal split",{type:"noul",instruction:"Does the writer propose splitting the hall cost equally only among those who agree?",criteria:["The message satisfies this requirement: An agreed equal split.","This requirement is not met by the message."]}],["Ask for permission before booking",{type:"noul",instruction:"Does the writer explicitly request agreement before booking the hall?",criteria:["",""]}]],z.coercion,z.guarantee,z.tradeoff,z.guilt,["Premature booking",{type:"noul",instruction:"Does the writer say they have already booked the hall?",criteria:["",""]}]),fe("9-2","A delivery with a fallback",630,"A replacement part may arrive Thursday. If it arrives, offer installation Friday; if it does not, offer an update Friday and a temporary workaround. Ask the customer before applying the workaround, which disables one optional feature. No arrival guarantee, silent changes, hidden loss, blame, or claim the repair is complete.",[["Make installation depend on arrival","Does the writer make Friday installation conditional on the part arriving Thursday?"],["Promise an update if delayed","Does the writer offer a Friday update if the part does not arrive?","The writer offers a Friday update if the part has not arrived.","A Friday update for a delayed part is not offered."],["Disclose the lost feature","Does the writer disclose that the workaround disables an optional feature?"],["Seek permission for the change","Will the workaround wait for the customer's agreement?","The writer asks the customer to agree before applying the workaround.","The writer does not seek agreement before applying the workaround."]],z.guarantee,z.coercion,z.tradeoff,z.blame,["Premature completion",{type:"noul",instruction:"Does the writer claim the repair is already complete?",criteria:["",""]}]),fe("9-3","Two queues, one team",630,"A team has capacity for either a security review or a feature launch today, not both. If the review finds a critical issue, fix it before launching; otherwise propose launching tomorrow. Ask the lead to approve the priority. No certainty about review results, blaming security, treating silence as consent, hiding delay, or promising both today.",[["State today's capacity",{type:"noul",instruction:"Does the writer say only the security review or feature launch fits today, not both?",criteria:["The message satisfies this requirement: Today's capacity.","This requirement is not met by the message."]}],["Prioritize critical fixes",{type:"noul",instruction:"Does the plan require critical findings to be fixed before launch?",criteria:["The message satisfies this requirement: Fix critical findings first.","This requirement is not met by the message."]}],["Propose tomorrow's launch if clear",{type:"choice",instruction:"Does the writer propose launching tomorrow if the review finds no critical problem?",criteria:["No","Yes"]}],["Seek the lead's approval",{type:"choice",instruction:"Does the writer ask the lead to approve the priority?",criteria:["The writer does not ask for approval. Stating a proposal alone is insufficient.","The writer directly requests the lead's approval before proceeding."]}]],z.guarantee,z.blame,z.coercion,["Claiming no drawbacks",{type:"noul",instruction:"Does the writer claim their proposal has no costs or drawbacks?",criteria:["",""]}],["Overcommitting today",{type:"noul",instruction:"Does the writer promise to complete both the security review and the feature launch today?",criteria:["",""]}]),fe("9-4","A fair waitlist",630,"There are two workshop seats and five people waiting. Propose offering seats in signup order, with a 24-hour response window, then moving to the next person. Offer everyone the next session too. Do not favor donors, treat silence as acceptance, shame slow replies, imply a guaranteed seat, or hide the two-seat limit.",[["State two seats for five people","How many seats and waiting people are there?","There are two seats and five people waiting.","The message does not state both two seats and five waiting people."],["Use signup order","Does the writer propose offering seats in signup order?"],["Allow 24 hours to respond",{type:"noul",instruction:"Does the writer give each person 24 hours to respond?",criteria:["The message satisfies this requirement: A 24-hour response window.","This requirement is not met by the message."]}],["Move on if there is no reply",{type:"noul",instruction:"Does the writer say the offer moves to the next person if there is no reply?",criteria:["The message satisfies this requirement: Move to the next person.","This requirement is not met by the message."]}],["Offer another session to everyone","Does the writer offer everyone a place at the next session as an alternative?","All waiting people are invited to consider the next session.","The next session is not offered to everyone waiting."]],z.coercion,["Reply shaming",{type:"noul",instruction:"Does the writer shame people who take time to reply?",criteria:["",""]}],z.guarantee,z.tradeoff,["Preferential access","The writer gives donors, friends, or favored people priority over signup order.","The same signup-order rule applies to everyone."]),fe("9-5","A reversible trial",630,"Propose a two-week software trial with volunteers only. Keep the existing tool available; stop if data exports fail; review export reliability and time saved afterward. Say no one must move permanently before the review. No assumed consent, guaranteed savings, hiding rollback, pressure, or claiming the trial is already approved.",[["Propose a two-week trial","Does the writer propose a two-week software trial?"],["Invite volunteers only","Is participation in the software trial voluntary?","Only volunteers take part in the trial.","The message does not limit the trial to volunteers. Delaying permanent adoption alone does not make the trial voluntary."],["Keep the existing tool available","Does the writer keep the existing tool available during the trial?"],["Set an export-failure stop rule","Does the writer propose stopping the trial if data exports fail?"],["Plan to review export reliability",{type:"choice",instruction:"Does the writer propose a later review of export reliability?",criteria:["No post-trial review of export reliability is stated. A stop rule for failed exports alone is insufficient.","Export reliability is explicitly included in the post-trial review."]}],["Plan to measure time saved","Does the writer propose reviewing time saved during the trial?"],["Defer any permanent switch","Does the writer explicitly defer any required permanent move until after the review?","No one is required to move permanently until after the review.","The message does not explicitly defer any required permanent move until after the review."]],z.coercion,z.guarantee,["Claiming no drawbacks",{type:"noul",instruction:"Does the writer claim there are no risks or drawbacks to the proposed trial?",criteria:["",""]}],z.guilt,["Presumed approval",{type:"noul",instruction:"Does the writer claim the trial has already been approved?",criteria:["",""]}]),fe("9-6","The shared bill",630,"Three friends have each paid $30 for a $90 booking. A fourth wants to join. Work out an equal four-way split and explain the new payment and each refund. Ask everyone to agree before changing the booking; refund the original payers only after the newcomer pays. No guaranteed payment, shame, hidden cost, or charging the newcomer more.",[["State the newcomer's payment",{type:"noul",instruction:"Does the quoted Text explicitly contain all of the following? The newcomer is asked to pay $22.50.",criteria:["The message satisfies this requirement: The newcomer's payment.","This requirement is not met by the message."]}],["Offer three $7.50 refunds",{type:"choice",instruction:"Does each original payer get $7.50 back?",criteria:["A $7.50 refund for each original payer is not offered.","The message refunds $7.50 to each of the three people who originally paid $30."]}],["Seek everyone's agreement first","Does the writer ask all four people to agree before changing the booking?"],["Require payment before refunds","Does the writer make refunds conditional on receiving the newcomer's payment?"]],["Assumed consent",{type:"choice",instruction:"How is permission obtained for changing the booking?",criteria:["Each person must explicitly agree before the booking changes","Permission is assumed, including from silence","No condition for consent is stated"]}],z.guarantee,z.guilt,z.tradeoff,["Unequal charging",{type:"noul",instruction:"Is the proposed final cost per person unequal?",criteria:["",""]}])]},{id:10,title:"The narrow path",skill:"Correct, persuade, and protect trust without convenient evasions",estimatedDuration:"75-150 min",rounds:[fe("10-1","A claim smaller than the headline",710,"Your team advertised “twice as fast” after one ten-person test of a single task. Publicly narrow the claim to that test, acknowledge that the headline overstated the evidence, and propose a larger test across different tasks. Do not blame readers, imply broad proof, hide the small sample, use sales pressure, or claim the test already happened.",[["Own the overstated headline","Does the text explicitly mention a mistake in the original headline?"],["Limit the claim to one task",{type:"choice",instruction:"According to the text alone, how many tasks produced the twice-as-fast result?",criteria:["The number of tasks is not stated","Only one task","Multiple tasks"]}],["State that only ten people took part",{type:"choice",instruction:"Is the ten-person sample stated?",criteria:["The number of people in the test is not given as ten.","The message says ten people or ten participants took part in the test."]}],["Propose a larger study",{type:"choice",instruction:"Does the writer propose testing more participants than before?",criteria:["No larger study is proposed. A next study with different tasks alone does not say the sample will be larger.","The writer proposes a larger study or sample before broadening the claim."]}],["Include different tasks","Does the writer explicitly propose testing different tasks?"]],z.blame,z.guarantee,["A broad proof claim",{type:"noul",instruction:"Does the writer present the small test as proof of a general speed improvement?",criteria:["",""]}],z.sales,["Pretend validation",{type:"noul",instruction:"Does the writer claim the larger study has already been completed?",criteria:["",""]}]),fe("10-2","The apology without a bargain",710,"You shared a private message without permission. Apologize, say you removed your copy from the shared channel, and offer to ask recipients to delete theirs if the owner wants. Acknowledge you cannot guarantee deletion. Do not repeat the private content, excuse yourself, blame the owner, ask forgiveness as a condition, or promise complete erasure.",[["Admit the disclosure","Does the writer admit sharing a private message without permission?"],["Apologize","Does the writer apologize?"],["Say you removed the shared copy","Does the writer say they removed their copy from the shared channel?"],["Offer to ask others to delete it","Does the writer offer to ask recipients to delete their copies?"],["Let the owner decide on contact",{type:"noul",instruction:"Does the owner choose whether other recipients are asked to delete their copies? Answer yes if: Contacting the recipients is offered only if the owner wants it, including if you'd like or if you want me to. Answer no if: The writer does not leave that choice to the owner.",criteria:["",""]}],["Say deletion is not guaranteed",{type:"noul",instruction:'Does the text contain "cannot guarantee deletion" or wording with the same meaning?',criteria:["",""]}]],z.excuse,z.blame,["Guilt trips",{type:"noul",instruction:"Does the writer use personal obligation or guilt to obtain forgiveness or agreement from the owner?",criteria:["The writer implies that refusing would make the owner uncaring or a bad friend.","No refusal is morally judged. Admitting the privacy breach and offering repairs do not make forgiveness obligatory."]}],z.guarantee,["Repeating the disclosure",{type:"noul",instruction:"Does the text reveal what the original private message said?",criteria:["",""]}]),fe("10-3","A principled no with a route",710,"A sponsor offers funding if they can choose which speaker is excluded. Decline that condition, explain that program decisions use the same published criteria for everyone, and offer an unrestricted donation or public feedback route. Do not insult the sponsor, bargain over a named speaker, imply a private exception, threaten them, or promise special influence over future decisions.",[["Decline funding with a veto","Does the writer refuse funding with control over speaker selection?","The writer refuses to accept funding conditional on excluding a speaker.","The exclusion condition is not refused."],["Apply the same published criteria","Does the writer state that speaker decisions use the same published criteria for everyone?"],["Offer an unrestricted route","Is a route without control over the speakers offered?","The writer offers an unrestricted donation or a public feedback route without control over speaker selection.","No unrestricted donation or public feedback route is offered."]],z.insult,z.threat,["A speaker bargain",{type:"noul",instruction:"Does the writer offer to exclude a named speaker in return for funding?",criteria:["",""]}],["Promised program control",{type:"noul",instruction:"Does any sentence promise the recipient decision-making power over future programs, including a conditional or later offer? Ordinary public feedback does not count as control.",criteria:["The recipient is offered control over future program or speaker choices.","No such control is offered."]}],["Private exception","The writer offers or hints at a private exception to the published selection criteria.","No exception or back-channel influence is offered."]),fe("10-4","A warning without a culprit",710,"Duplicate charges are reported but their cause is unconfirmed. Tell users to check their statements, send transaction IDs through the private support form, and expect a status update at noon. Distinguish reports from confirmed findings. Do not name a culprit, request card numbers, guarantee refunds, call the reports harmless, or claim a fix exists.",[["Report charges; say the cause is unknown",{type:"noul",instruction:"Does the message say duplicate charges were reported and the cause is not yet confirmed?",criteria:["",""]}],["Ask users to check statements","Does the writer ask users to check their statements?"],["Request transaction IDs privately","Does the writer ask for transaction IDs through the private support form?"],["Promise a noon status update","Does the writer commit to a status update at noon?"]],["Naming a culprit",{type:"noul",instruction:"Does the writer blame any person or system for the duplicate charges?",criteria:["",""]}],z.guarantee,z.minimize,["A premature fix",{type:"noul",instruction:"Does the writer claim the duplicate-charge problem has been fixed?",criteria:["",""]}],["Sensitive data request","The writer asks users to send card numbers, passwords, or payment details in public or through support.","Only transaction IDs are requested through a private support route."]),fe("10-5","Opportunity without unpaid debt",710,"Invite a junior colleague to present a project they helped build. Credit their contribution, make declining safe, and offer paid preparation time or co-presenting. Do not offer exposure instead of payment, imply refusal harms their career, take their credit, assume agreement, or demand personal reasons.",[["Credit their contribution","Does the writer give the recipient credit for helping build the project?"],["Invite them to present","Does the writer invite the recipient to present the project?"],["Rule out penalties for declining",{type:"choice",instruction:"Which description fits the message?",criteria:["There is no assurance that declining is acceptable.","The message explicitly says the recipient can decline without penalty."]}],["Offer concrete support","Does the writer offer paid preparation time or co-presenting as support?"]],z.guilt,z.credit,z.coercion,z.pressure,["Exposure as payment",{type:"noul",instruction:"Does the writer offer publicity or exposure instead of payment for the work?",criteria:["",""]}]),fe("10-6","The review that leaves room",710,"A pilot improved speed but produced two accessibility complaints. Recommend extending it only if those issues are addressed, keep the old route available, and ask affected users how to test the changes. Do not dismiss two complaints as too few, guarantee accessibility, force disclosure, imply everyone agrees, or hide the benefit.",[["Acknowledge the speed benefit","Does the writer acknowledge that the pilot improved speed?"],["Report two accessibility complaints","Does the text explicitly say there were two accessibility complaints?","Two accessibility complaints are reported.","The number of complaints is not given, or it is not two."],["Require fixes before extending","Does the quoted Text explicitly contain all of the following? The writer makes extending the pilot conditional on addressing the accessibility complaints."],["Keep the old route available",{type:"noul",instruction:"Does the writer keep the old route available?",criteria:["The message satisfies this requirement: Retain the old route.","This requirement is not met by the message."]}],["Ask affected users how to test","Does the writer ask affected users how the changes should be tested?"]],z.minimize,z.guarantee,z.pressure,z.coercion,["Claimed consensus",{type:"noul",instruction:"Does the writer claim that everybody has already agreed?",criteria:["",""]}])]},{id:11,title:"The full balancing act",skill:"Reconcile evidence, consent, fairness, uncertainty, and a usable plan",estimatedDuration:"2-4 hr",rounds:[fe("11-1","The raise after a freeze",850,"Pay is frozen this quarter. You now lead training previously done by a manager. Ask for a documented pay review next quarter tied to that responsibility; propose agreeing review criteria now. Acknowledge the freeze without withdrawing the request. Avoid entitlement, threats, coworker comparisons, a guaranteed raise, or volunteering indefinite unpaid extra duties.",[["Acknowledge this quarter's freeze","Does the writer acknowledge that pay is frozen this quarter?"],["Describe the new training role","Does the writer say they now lead training previously done by a manager?"],["Request a documented review next quarter","Does the writer request a documented pay review next quarter tied to the training responsibility?"],["Propose agreeing review criteria now","Does the writer propose agreeing the review criteria now?"]],z.entitlement,z.threat,z.guarantee,["Coworker comparison","The writer argues for their raise by disparaging coworkers or claiming to be worth more than them.","The case is based on the writer's responsibilities, not comparisons with coworkers."],["Indefinite unpaid commitment","The writer agrees to keep the extra duties indefinitely without a review or limit.","The extra responsibility is connected to a concrete future review, not an indefinite unpaid commitment."]),fe("11-2","An incident without a scapegoat",850,"A service outage lasted 40 minutes; access is restored, some exports are still queued, and the cause is unconfirmed. Apologize, tell users not to resubmit exports, offer the private support route for urgent cases, and promise an update at 18:00. No culprit, complete-fix claim, finish-time guarantee, sensitive-data request, or minimizing the impact.",[["Report the 40-minute outage",{type:"noul",instruction:"Does the message state the outage lasted 40 minutes?",criteria:["The message satisfies this requirement: The 40-minute outage.","This requirement is not met by the message."]}],["Say access is restored","Does the message say access is restored?"],["Say exports remain queued","Does the message say some exports are still queued?"],["Say the cause is unconfirmed",{type:"noul",instruction:"Does the message say the cause is unconfirmed?",criteria:["The message satisfies this requirement: The cause is unconfirmed.","This requirement is not met by the message."]}],["Apologize","Does the writer apologize for the outage?"],["Tell users not to resubmit exports","Does the writer tell users not to resubmit exports?"],["Offer private support for urgent cases","Does the writer offer private support for urgent cases?"],["Promise an 18:00 update","Does the writer commit to another update at 18:00?"]],["Naming a culprit",{type:"noul",instruction:"Does the writer blame any person or system for the outage?",criteria:["",""]}],["A premature all-clear",{type:"noul",instruction:"Does the writer claim that all problems from the outage are now resolved?",criteria:["",""]}],z.guarantee,z.minimize,["Unsafe data collection","The writer asks users to post credentials, private files, or sensitive details publicly.","Urgent cases go through private support without requesting public sensitive data."]),fe("11-3","Two reasonable sides",850,"Two neighbors share a room: one needs a quiet call at six, the other has booked music practice from five to seven. Propose keeping practice five to six and moving six to seven elsewhere only if both agree; offer another call location as a fallback. Acknowledge the booking and quiet need. No imposed decision, blame, guilt, guaranteed room availability, or erasing either person's hour.",[["Acknowledge the music booking","Does the writer acknowledge music practice booked from five to seven?"],["Acknowledge the quiet call at six",{type:"choice",instruction:"Does the writer explicitly describe a need for a quiet call at six?",criteria:["No quiet call at six is described; mentioning practice from five to seven or another call location is insufficient","A neighbor needs quiet for a call at six"]}],["Propose moving only the last hour",{type:"noul",instruction:"Does the proposed plan keep music practice here from five to six and move the six-to-seven hour elsewhere?",criteria:["",""]}],["Require both people's agreement","Does the writer make the proposed change conditional on both neighbors agreeing?"],["Offer a fallback location for the call","Does the writer offer another location for the call if moving practice cannot work?"]],z.coercion,z.blame,z.guilt,z.guarantee,z.tradeoff),fe("11-4","A launch with a stop rule",850,"A launch has passed functional tests; accessibility review is scheduled for Monday. Propose a voluntary limited pilot after that review, retain the existing service, and stop the pilot if payment errors appear. Review completion times and support requests after one week before deciding on expansion. No full-launch promise, assumed consent, hidden review gap, pressure on testers, or certainty that no errors will occur.",[["Say functional tests passed","Does the writer state that functional tests have passed?"],["Mention Monday's accessibility review","Does the writer say accessibility review is scheduled for Monday?"],["Propose a limited pilot after review",{type:"choice",instruction:"Does the message suggest a small pilot after the accessibility review?",criteria:["No","Yes"]}],["Make participation voluntary",{type:"choice",instruction:"Does the message explicitly say the pilot is voluntary?",criteria:["Voluntary participation is not stated. A limited pilot alone does not establish consent.","Participation is described as voluntary or limited to volunteers."]}],["Keep the existing service available","Does the writer keep the existing service available during the pilot?"],["Set payment errors as a stop rule",{type:"noul",instruction:"Do payment errors stop the pilot under this plan? Answer yes if: The proposal stops the pilot if payment errors appear, including we stop for payment errors. Answer no if: No stop condition tied to payment errors is given.",criteria:["",""]}],["Plan a review before expanding","Does the writer propose reviewing the pilot after one week before deciding whether to expand?"],["Plan to review completion times","Does the message propose reviewing completion times?"],["Plan to review support requests","Does the message propose reviewing support requests?"]],z.promise,z.coercion,["Pretend clearance",{type:"noul",instruction:"Does the writer claim the accessibility review has already passed?",criteria:["",""]}],z.guilt,z.guarantee),fe("11-5","Funding without favoritism",850,"A donor offers $2,000 for a youth program if their child gets priority. Decline the priority condition while welcoming an unrestricted donation. Explain that all places use the public signup order, offer the same waitlist route, and avoid disclosing other children's details. No shaming, backroom exception, seat guarantee, pressure to donate, or identifying another applicant.",[["Decline priority for funding","Does the writer decline priority for the donor's child in exchange for $2,000?","The writer refuses priority for the donor's child in return for $2,000.","The priority-for-funding condition is not refused."],["Welcome an unrestricted gift","Does the writer welcome an unrestricted donation?"],["Apply public signup order","Does the text state that signup order determines who gets places?","The writer states that places follow public signup order.","The writer may offer a waitlist but does not state that places follow signup order."],["Offer the normal waitlist","Is the usual waitlist offered to the child?","The writer offers the donor's child the same waitlist route as other applicants.","No normal waitlist route is offered."]],z.insult,z.sales,z.guarantee,["Hidden exception","Special treatment for the donation","Normal signup and waitlist rules","How will the donor's child be admitted?"],["Applicant disclosure","The writer reveals identifying information or private circumstances of another child or applicant.","No other applicant's identity or private circumstances are revealed."]),fe("11-6","Correct the record, keep the person",850,"A public post wrongly credited you alone for a tool: Priya designed it, you tested it, and Lee wrote the guide. Correct the credit, own that you approved the post, and offer to update both the post and guide credits. Invite each contributor to confirm wording before you change it. No excuse, blame, sole-credit claim, assumed consent, or erasing your real contribution.",[["Credit Priya with the design","Did Priya design the tool?"],["Describe your testing role",{type:"choice",instruction:"Does the writer say they tested the tool?",criteria:["The writer's testing contribution is not stated. Credit to other people alone is insufficient.","The writer states that they tested the tool."]}],["Credit Lee with the guide",{type:"choice",instruction:"What does the text say Lee did?",criteria:["Lee is not mentioned or no work by Lee is described","Lee wrote the guide"]}],["Own approving the wrong post","Does the writer admit approving the inaccurate sole-credit post?"],["Offer to correct the post credits",{type:"choice",instruction:"Which documents does the writer offer to update?",criteria:["Only the guide","The public post, with or without an update to the guide","Neither document"]}],["Offer to correct the guide credits",{type:"noul",instruction:"Does the message propose correcting the guide's credits?",criteria:["",""]}],["Ask contributors to confirm first","Does the writer ask contributors to confirm the wording before it is changed?"]],z.excuse,z.blame,z.credit,z.coercion,["Erasing your contribution","The writer denies doing the testing or transfers all of their actual testing contribution to someone else.","The writer retains accurate credit for testing while recognizing others."]),fe("11-7","A hard change without a soft lie",850,"A community class must move from free weekly sessions to two free sessions a month because funding fell by half. Explain the loss plainly, invite feedback before choosing the dates, and offer the free practice materials between sessions. Do not call it an upgrade, blame participants, imply donations buy access, promise funding will recover, or ask people to disclose hardship.",[["Say funding fell by half","Does the writer explain that funding fell by half?"],["Explain the reduced session frequency","Does the writer say free weekly classes will become two free sessions a month?"],["Invite feedback before choosing dates","Does the writer invite feedback before choosing session dates?"],["Offer free materials between sessions","Does the writer offer free practice materials between sessions?"]],z.spin,z.blame,z.guarantee,z.pressure,["Paying for priority","The writer implies donating or paying will secure priority access to the free sessions.","Access to the free sessions is not conditional on donating."]),fe("11-8","The last responsible word",850,"A trial of a new booking system cut median waiting from ten minutes to seven across 30 users, but two could not complete checkout with a keyboard. Recommend no wider rollout yet. Propose fixing keyboard checkout and keeping the old route. Invite volunteers to sign up for retesting through a form, and pay participants for their time. Plan a two-week review before rollout, measuring satisfaction ratings and support requests. Do not erase the speed gain, minimize the exclusion, guarantee success, assume consent, or request diagnoses.",[["Report the ten-to-seven-minute median","Does the writer report median waiting time falling from ten minutes to seven?"],["State the sample of 30 users","Does the writer say the trial involved 30 users?"],["Report two keyboard checkout failures","Does the writer report that two users could not complete checkout with a keyboard?"],["Propose fixing keyboard checkout",{type:"noul",instruction:"Does the writer explicitly propose repairing keyboard checkout?",criteria:["",""]}],["Keep the old route available",{type:"noul",instruction:"Does the writer keep the old booking route available?",criteria:["The message satisfies this requirement: Keep the old route.","This requirement is not met by the message."]}],["Offer to pay for participants' time","Does the writer offer to pay retest participants for their time?"],["Invite volunteers through a form","Does the writer invite volunteers to sign up for retesting through a form?"],["Plan a review after two weeks","Does the writer propose a two-week review before deciding on rollout?"],["Plan to review satisfaction ratings","Does the message propose reviewing satisfaction ratings?"],["Plan to review support requests","Does the message propose reviewing support requests?"]],z.minimize,z.guarantee,["Mandatory retesting",{type:"choice",instruction:"What does the writer say about participating in retesting?",criteria:["Participants can choose whether to retest","Everyone must take part","Participation requirements are not stated"]}],z.pressure)]}],Cl=.7,ci={min:Cl,other:.6},it={lock:{name:"Semantic Golfing",description:"Solve everyday writing challenges with as few characters as possible",levels:$1},signalMixing:{name:"Signal Mixing",description:"Find the words that get your point across without crossing the line",levels:F1}};function Ri(s){return Array.from(s).length}function pc(s,n,r){const u=n.questions.map(h=>({...h,document:`Text: ${JSON.stringify(r)}`}));return{modelId:s,input:u[0],...u.length>1?{additionalInputs:u.slice(1)}:{}}}function gc(s){return s==null?[]:[s.answer,...s.additionalAnswers??[]].map(n=>n.type==="noul"?n.value:n.type==="choice"?n.probabilities[1]??0:0)}function ws(s,n,r,u){return!r.trim()||Ri(r)>n.limit||u.length!==n.labels.length||u.some(h=>!Number.isFinite(h)||h<0||h>1)?!1:u.every((h,m)=>m<n.goalCount?h>=(s==="lock"?Cl:ci.min):h<ci.other)}function yp(s,n){if(!Number.isInteger(n)||n<1||n>s.limit)throw new Error("The answer must fit the round's character limit.");return Math.max(1,Math.round(1e3*(1-n/s.limit)))}function W1(s,n){if(n.length!==s.rounds.length)throw new Error("Finish every round before saving a level score.");return s.rounds.reduce((r,u,h)=>r+yp(u,n[h]),0)}function I1(){let s,n;return{promise:new Promise((r,u)=>{s=r,n=u}),resolve:s,reject:n}}const P1=Math.random.bind(Math),ev="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function tv(s=21){let n="",r=s;for(;r--;)n+=ev[P1()*64|0];return n}const av=6e4,vp=s=>s,iv=vp,{clearTimeout:sp,setTimeout:nv}=globalThis;function lv(s,n){const{post:r,on:u,off:h=()=>{},eventNames:m=[],serialize:v=vp,deserialize:g=iv,resolver:S,bind:E="rpc",timeout:b=av,proxify:p=!0}=n;let A=!1;const M=new Map;let C,q;async function O(Q,Y,B,V){if(A)throw new Error(`[birpc] rpc is closed, cannot call "${Q}"`);const W={m:Q,a:Y,t:"q"};V&&(W.o=!0);const le=async P=>r(v(P));if(B){await le(W);return}if(C)try{await C}finally{C=void 0}let{promise:K,resolve:Z,reject:oe}=I1();const I=tv();W.i=I;let ue;async function X(P=W){return b>=0&&(ue=nv(()=>{try{if(n.onTimeoutError?.call(q,Q,Y)!==!0)throw new Error(`[birpc] timeout on calling "${Q}"`)}catch(te){oe(te)}M.delete(I)},b),typeof ue=="object"&&(ue=ue.unref?.())),M.set(I,{resolve:Z,reject:oe,timeoutId:ue,method:Q}),await le(P),K}try{n.onRequest?await n.onRequest.call(q,W,X,Z):await X()}catch(P){if(n.onGeneralError?.call(q,P)!==!0)throw P;return}finally{sp(ue),M.delete(I)}return K}const H={$call:(Q,...Y)=>O(Q,Y,!1),$callOptional:(Q,...Y)=>O(Q,Y,!1,!0),$callEvent:(Q,...Y)=>O(Q,Y,!0),$callRaw:Q=>O(Q.method,Q.args,Q.event,Q.optional),$rejectPendingCalls:$,get $closed(){return A},get $meta(){return n.meta},$close:L,$functions:s};p?q=new Proxy({},{get(Q,Y){if(Object.hasOwn(H,Y))return H[Y];if(Y==="then"&&!m.includes("then")&&!("then"in s))return;const B=(...W)=>O(Y,W,!0);if(m.includes(Y))return B.asEvent=B,B;const V=(...W)=>O(Y,W,!1);return V.asEvent=B,V}}):q=H;function L(Q){A=!0,M.forEach(({reject:Y,method:B})=>{const V=new Error(`[birpc] rpc is closed, cannot call "${B}"`);if(Q)return Q.cause??=V,Y(Q);Y(V)}),M.clear(),h(J)}function $(Q){const Y=Array.from(M.values()).map(({method:B,reject:V})=>Q?Q({method:B,reject:V}):V(new Error(`[birpc]: rejected pending call "${B}".`)));return M.clear(),Y}async function J(Q,...Y){let B;try{B=g(Q)}catch(V){if(n.onGeneralError?.call(q,V)!==!0)throw V;return}if(B.t==="q"){const{m:V,a:W,o:le}=B;let K,Z,oe=await(S?S.call(q,V,s[V]):s[V]);if(le&&(oe||=()=>{}),!oe)Z=new Error(`[birpc] function "${V}" not found`);else try{K=await oe.apply(E==="rpc"?q:s,W)}catch(I){Z=I}if(B.i){if(Z&&n.onFunctionError&&n.onFunctionError.call(q,Z,V,W)===!0)return;if(!Z)try{await r(v({t:"s",i:B.i,r:K}),...Y);return}catch(I){if(Z=I,n.onGeneralError?.call(q,I,V,W)!==!0)throw I}try{await r(v({t:"s",i:B.i,e:Z}),...Y)}catch(I){if(n.onGeneralError?.call(q,I,V,W)!==!0)throw I}}}else{const{i:V,r:W,e:le}=B,K=M.get(V);K&&(sp(K.timeoutId),le?K.reject(le):K.resolve(W)),M.delete(V)}}return C=u(J),q}function ov(s,n,r){return lv(r,{timeout:-1,post:u=>window.ipcRenderer.send(n,u),on:u=>window.ipcRenderer.on(s,(h,m)=>{u(m)}),serialize:u=>JSON.stringify(u,(h,m)=>m instanceof Error?String(m):m),deserialize:u=>JSON.parse(u)})}const sv={updateState(s){Bt.state=s}},Ft=ov("llmRpc","llmRpc",sv);Ft.getState().then(s=>{Bt.state=s}).catch(s=>{Bt.state={...Bt.state,error:"Could not connect to the app: "+String(s)}});const rv={document:"",answers:[]},Oi=new ya("play",{queueEvents:!1}),Ue=new ya({screen:"games",game:"lock",level:1,drafts:{}},{queueEvents:!1});function Bi(s,n,r,u){return s[`${n}/${r}/${u}`]??rv}function Ui(s,n,r,u){Ue.state={...Ue.state,drafts:{...Ue.state.drafts,[`${s}/${n}/${r}`]:{...Bi(Ue.state.drafts,s,n,r),...u}}}}function bp(s,n){Ue.state={...Ue.state,screen:"round",game:s,level:n}}function uv(s,n,r,u){const h=Bi(Ue.state.drafts,s,n,r),m=it[n].levels.find(({id:g})=>g===r),v=m.rounds[h.answers.length];v==null||u.error!=null||u.result==null||JSON.stringify(u.result.request)!==JSON.stringify(pc(s,v,h.document))||!ws(n,v,h.document,gc(u.result))||(Ui(s,n,r,{answers:[...h.answers,h.document],document:"",startedAt:void 0}),h.answers.length+1===m.rounds.length&&wp(s,n,r))}async function wp(s,n,r){const u=Bi(Ue.state.drafts,s,n,r);if(!(u.saving||u.completion!=null)){Ui(s,n,r,{saving:!0,error:void 0});try{const h=await Ft.saveLevelScore({modelId:s,game:n,level:r,characters:u.answers.map(Ri)});Ui(s,n,r,{completion:h,saving:!1})}catch(h){Ui(s,n,r,{error:String(h),saving:!1})}}}var Hi=dp();const cv=s=>re.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"semanticGolferIcon",width:1024,height:1024,viewBox:"0 0 1024 1024",...s},re.createElement("style",null,`
|
|
10
10
|
.semanticGolferIcon {
|
|
11
11
|
--tile-top: #314739;
|
|
12
12
|
--tile-bottom: #16261e;
|
|
@@ -23,4 +23,4 @@ Error generating stack: `+i.message+`
|
|
|
23
23
|
--rim-opacity: .7;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`),re.createElement("defs",null,re.createElement("linearGradient",{id:"tile",x2:0,y2:1},re.createElement("stop",{stopColor:"var(--tile-top)"}),re.createElement("stop",{offset:1,stopColor:"var(--tile-bottom)"})),re.createElement("linearGradient",{id:"golf",x2:0,y2:512,gradientUnits:"userSpaceOnUse"},re.createElement("stop",{stopColor:"var(--golf-top)"}),re.createElement("stop",{offset:1,stopColor:"var(--golf-bottom)"})),re.createElement("linearGradient",{id:"rim",x2:0,y2:1},re.createElement("stop",{stopColor:"white",stopOpacity:"var(--rim-opacity)"}),re.createElement("stop",{offset:.55,stopColor:"white",stopOpacity:.04}),re.createElement("stop",{offset:1,stopColor:"black",stopOpacity:.2})),re.createElement("filter",{id:"tileShadow",x:"-15%",y:"-15%",width:"130%",height:"140%"},re.createElement("feDropShadow",{dy:14,stdDeviation:14,floodColor:"#07140d",floodOpacity:.28})),re.createElement("filter",{id:"golfShadow",x:"-20%",y:"-20%",width:"140%",height:"150%"},re.createElement("feDropShadow",{dy:7,stdDeviation:6,floodColor:"#07140d",floodOpacity:.22}))),re.createElement("rect",{x:100,y:100,width:824,height:824,rx:184,fill:"url(#tile)",filter:"url(#tileShadow)"}),re.createElement("rect",{x:102,y:102,width:820,height:820,rx:182,fill:"none",stroke:"url(#rim)",strokeWidth:3}),re.createElement("g",{transform:"translate(224 224) scale(1.125)",fill:"url(#golf)",filter:"url(#golfShadow)"},re.createElement("path",{d:"M272 320.46V202.3l166.62-75.73a16 16 0 0 0 0-29.14l-176-80A16 16 0 0 0 240 32v288.46q8-.45 16-.46t16 .46"}),re.createElement("path",{d:"M463.33 457.5c-8.56-42.85-35.11-78.74-76.78-103.8c-32.5-19.55-72.67-31.3-114.55-33.7v79.75a16 16 0 1 1-32 0V320c-41.88 2.4-82.05 14.15-114.55 33.7c-41.67 25.06-68.22 60.95-76.78 103.8a32.49 32.49 0 0 0 6.44 27.08C61.13 492 70 496 80 496h352c10 0 18.88-4.05 24.9-11.42a32.49 32.49 0 0 0 6.43-27.08"})));function fv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function rp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88a.996.996 0 1 0 1.41 1.41L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}const Ts=[{id:"gemma-q8",name:"Gemma 4",parameters:"5B E2B",quant:"Q8_0",size:"5.0 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q8_0"},{id:"gemma-q6",name:"Gemma 4",parameters:"5B E2B",quant:"Q6_K",size:"3.9 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q6_K"},{id:"qwen-2b",name:"Qwen 3.5",parameters:"2B",quant:"Q4_K_M",size:"1.3 GB",uri:"hf:unsloth/Qwen3.5-2B-GGUF:Q4_K_M"},{id:"qwen-0.8b",name:"Qwen 3.5",parameters:"0.8B",quant:"Q8_0",size:"0.8 GB",uri:"hf:unsloth/Qwen3.5-0.8B-GGUF:Q8_0"}];function hc(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M11.0771 7.45801V8.54199H10.0635V10.498H11.0771V10.5693H9.99023V7.45801H11.0771ZM6.00879 5.43066V6.5166H4.99609V8.4707H6.00879V8.54199H4.92383V5.43066H6.00879ZM7.96289 3.47461H2.98145V2.89551H13.0195V3.91016H14.1172V12.0908H13.0332V8.97656H13.0342V5.50293H8.03711V5.97266L8.03613 12.0557V12.5264H13.0195V13.1055H2.98145V12.0908H1.88184V3.91016H2.96777V10.498H7.96191V6.95117H7.96289V3.47461Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.941177"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 16 16",width:"24",height:"24",fill:"none","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function hv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M11.625 14.913q-.175-.063-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Hi(s){const n=ve.c(9),{value:r,label:u}=s;let h;n[0]!==r?(h=r==null?void 0:Math.round(r*100),n[0]=r,n[1]=h):h=n[1];const m=r==null||void 0,v=`scaleX(${Math.max(0,Math.min(1,r??.35))})`;let g;n[2]!==v?(g=f.jsx("div",{className:"fill",style:{transform:v}}),n[2]=v,n[3]=g):g=n[3];let S;return n[4]!==u||n[5]!==h||n[6]!==m||n[7]!==g?(S=f.jsx("div",{className:"decisionProgressBar",role:"progressbar","aria-label":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,"data-indeterminate":m,children:g}),n[4]=u,n[5]=h,n[6]=m,n[7]=g,n[8]=S):S=n[8],S}const up=s=>Number.isFinite(s)?s:0;function dv(s){return{days:Math.trunc(s/864e5),hours:Math.trunc(s/36e5%24),minutes:Math.trunc(s/6e4%60),seconds:Math.trunc(s/1e3%60),milliseconds:Math.trunc(s%1e3),microseconds:Math.trunc(up(s*1e3)%1e3),nanoseconds:Math.trunc(up(s*1e6)%1e3)}}function mv(s){return{days:s/86400000n,hours:s/3600000n%24n,minutes:s/60000n%60n,seconds:s/1000n%60n,milliseconds:s%1000n,microseconds:0n,nanoseconds:0n}}function pv(s){switch(typeof s){case"number":{if(Number.isFinite(s))return dv(s);break}case"bigint":return mv(s)}throw new TypeError("Expected a finite number or bigint")}const gv=s=>s===0||s===0n,yv=(s,n)=>n===1||n===1n?s:`${s}s`,vv=1e-7,bv=24n*60n*60n*1000n;function wv(s,n){const r=typeof s=="bigint";if(!r&&!Number.isFinite(s))throw new TypeError("Expected a finite number or bigint");n={...n};const u=s<0?"-":"";s=s<0?-s:s,n.colonNotation&&(n.compact=!1,n.formatSubMilliseconds=!1,n.separateMilliseconds=!1,n.verbose=!1),n.compact&&(n.unitCount=1,n.secondsDecimalDigits=0,n.millisecondsDecimalDigits=0);let h=[];const m=(b,p)=>{const D=Math.floor(b*10**p+vv);return(Math.round(D)/10**p).toFixed(p)},v=(b,p,D,M)=>{if(!((h.length===0||!n.colonNotation)&&gv(b)&&!(n.colonNotation&&D==="m"))){if(M??=String(b),n.colonNotation){const C=M.includes(".")?M.split(".")[0].length:M.length,q=h.length>0?2:1;M="0".repeat(Math.max(0,q-C))+M}else M+=n.verbose?" "+yv(p,b):D;h.push(M)}},g=pv(s),S=BigInt(g.days);if(n.hideYearAndDays?v(BigInt(S)*24n+BigInt(g.hours),"hour","h"):(n.hideYear?v(S,"day","d"):(v(S/365n,"year","y"),v(S%365n,"day","d")),v(Number(g.hours),"hour","h")),v(Number(g.minutes),"minute","m"),!n.hideSeconds)if(n.separateMilliseconds||n.formatSubMilliseconds||!n.colonNotation&&s<1e3&&!n.subSecondsAsDecimals){const b=Number(g.seconds),p=Number(g.milliseconds),D=Number(g.microseconds),M=Number(g.nanoseconds);if(v(b,"second","s"),n.formatSubMilliseconds)v(p,"millisecond","ms"),v(D,"microsecond","µs"),v(M,"nanosecond","ns");else{const C=p+D/1e3+M/1e6,q=typeof n.millisecondsDecimalDigits=="number"?n.millisecondsDecimalDigits:0,O=C>=1?Math.round(C):Math.ceil(C),H=1e3-10**-q,Q=q?Math.min(C,H).toFixed(q):Math.min(O,H);v(Number.parseFloat(Q),"millisecond","ms",Q)}}else{const b=(r?Number(s%bv):s)/1e3%60,p=typeof n.secondsDecimalDigits=="number"?n.secondsDecimalDigits:1,D=m(b,p),M=n.keepDecimalsOnWholeSeconds?D:D.replace(/\.0+$/,"");v(Number.parseFloat(M),"second","s",M)}if(h.length===0)return u+"0"+(n.verbose?" milliseconds":"ms");const E=n.colonNotation?":":" ";return typeof n.unitCount=="number"&&(h=h.slice(0,Math.max(n.unitCount,1))),u+h.join(E)}const ql=new ya(void 0);function yc(s){const n=ql.state;ql.state=void 0,n?.resolve(s)}function dc(s){return gp([ql],async()=>{const n=Bt.state.loadedModelId;if(s===n)return;const r=Ue.state,u=it[r.game].levels.find(({id:h})=>h===r.level);if(n!=null&&Oi.state==="play"&&r.screen==="round"&&Yi(r.drafts,n,r.game,r.level).answers.length<u.rounds.length){if(!await new Promise(m=>{ql.state={resolve:m}}))return;Ui(n,r.game,r.level,{document:"",startedAt:void 0}),Ue.state={...Ue.state,screen:"levels"}}await Ft.loadModel(s)})}function Tv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function ys(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Tp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520Zm-400 0v520-520Zm200 316 76 76q11 11 28 11t28-11q11-11 11-28t-11-28l-76-76 76-76q11-11 11-28t-11-28q-11-11-28-11t-28 11l-76 76-76-76q-11-11-28-11t-28 11q-11 11-11 28t11 28l76 76-76 76q-11 11-11 28t11 28q11 11 28 11t28-11l76-76Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Sv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Dv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M6 22q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22zm7-14q0 .425.288.713T14 9h4l-5-5z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Av({dialogRef:s,modelId:n,disabled:r}){const u=re.useId(),h=re.useId(),[m,v]=re.useState(!1),[g,S]=re.useState(),E=Ts.find(p=>p.id===n);async function b(){if(!(n==null||r||m)){v(!0),S(void 0);try{await Ft.deleteModel(n),s.current?.close()}catch(p){S(String(p))}finally{v(!1)}}}return f.jsxs("dialog",{className:"deleteModelDialog",ref:s,"aria-labelledby":u,"aria-describedby":h,"aria-busy":m,onClose:()=>S(void 0),onCancel:p=>{m&&p.preventDefault()},children:[f.jsxs("h2",{id:u,children:["Delete ",E==null?"model":`${E.name} ${E.parameters}`,"?"]}),f.jsx("p",{id:h,children:"You can always download the model again"}),g!=null&&f.jsx("div",{className:"deleteError",role:"alert",children:g}),f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,disabled:m,onClick:()=>s.current?.close(),children:"Cancel"}),f.jsx("button",{className:"confirmDelete",disabled:r||m,onClick:()=>{b()},children:m?"Deleting…":"Delete model"})]})]})}function cp(s){const n=ve.c(39),{state:r}=s,[u,h]=re.useState(),[m,v]=re.useState(!1),[g,S]=re.useState(),E=re.useRef(null);let b;n[0]===Symbol.for("react.memo_cache_sentinel")?(b=function(Z){return h(void 0),Z.catch(le=>h(String(le)))},n[0]=b):b=n[0];const p=b;let D;n[1]!==r.loading||n[2]!==r.models?(D=function(Z){const le=r.models[Z]?.download,W=r.loading?.modelId===Z?r.loading:void 0;if(le!=null){const se=le.totalSize>0?le.downloadedSize/le.totalSize:void 0;return f.jsxs("div",{className:"modelProgress",children:[f.jsxs("div",{children:[f.jsxs("span",{children:[se==null?"Connecting…":`${Math.floor(se*100)}%`,se!=null&&le.speed!=null&&` · ${(le.speed/1e6).toFixed(1)} MB/s`]}),f.jsx("span",{children:le.status==="canceling"?"Canceling…":le.eta==null?"Estimating…":`${wv(le.eta,{compact:!0})} left`})]}),f.jsx(Hi,{value:se,label:`${Z} download`})]})}return W!=null?f.jsxs("div",{className:"modelProgress",children:[f.jsx("span",{children:W.stage==="model"?`Loading ${Math.round(W.progress*100)}%`:W.stage==="context"?"Preparing context…":"Warming up…"}),f.jsx(Hi,{value:W.stage==="model"?W.progress:void 0,label:`Loading ${Z}`})]}):null},n[1]=r.loading,n[2]=r.models,n[3]=D):D=n[3];const M=D;let C;n[4]!==M||n[5]!==r.loadedModelId||n[6]!==r.loading||n[7]!==r.models?(C=Ts.map(K=>{const Z=r.models[K.id],le=r.loadedModelId===K.id,W=K.id==="gemma-q8",se=`${K.name} ${K.parameters}`;return f.jsxs("article",{className:"modelRow","data-active":le,children:[f.jsxs("div",{className:"modelRowMain",children:[f.jsxs("button",{className:"modelSelect",disabled:le||Z?.download!=null||Z?.deleting||Z?.downloaded&&r.loading!=null,"aria-label":`${le?"Loaded":Z?.downloaded?"Load":"Download"} ${se} ${K.quant}`,"aria-description":W?"Our pick":void 0,onClick:()=>{p(Z?.downloaded?dc(K.id):Ft.downloadModel(K.id))},children:[f.jsx("span",{className:"modelIcon",children:le?f.jsx(ys,{}):Z?.downloaded?f.jsx(hc,{}):f.jsx(Tv,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:se}),f.jsxs("span",{className:"modelMeta",children:[f.jsx("span",{className:"modelTag",children:K.quant}),f.jsx("span",{className:"modelTag",children:K.size}),W&&f.jsx("span",{className:"modelTag ourPick",children:"Our pick"})]})]})]}),Z?.download!=null?f.jsx("button",{className:"cancelDownload",disabled:Z.download.status==="canceling",onClick:()=>{p(Ft.cancelDownload(K.id))},"aria-label":`Cancel ${se} download`,children:"Cancel"}):Z?.downloaded&&f.jsx("button",{className:"deleteModel",disabled:Z.deleting||r.loading!=null,onClick:()=>{S(K.id),E.current?.showModal()},"aria-label":`Delete ${se} ${K.quant}`,title:"Delete model",children:f.jsx(Tp,{})})]}),M(K.id),Z?.error!=null&&f.jsx("div",{className:"error",role:"alert",children:Z.error})]},K.id)}),n[4]=M,n[5]=r.loadedModelId,n[6]=r.loading,n[7]=r.models,n[8]=C):C=n[8];let q;if(n[9]!==M||n[10]!==r.loadedModelId||n[11]!==r.loading||n[12]!==r.localModels){let K;n[14]!==M||n[15]!==r.loadedModelId||n[16]!==r.loading?(K=Z=>f.jsxs("article",{className:"modelRow","data-active":r.loadedModelId===Z.id,children:[f.jsxs("button",{className:"modelSelect",disabled:r.loadedModelId===Z.id||r.loading!=null,onClick:()=>{p(dc(Z.id))},title:Z.name,children:[f.jsx("span",{className:"modelIcon",children:r.loadedModelId===Z.id?f.jsx(ys,{}):f.jsx(hc,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:Z.name}),f.jsx("span",{className:"modelMeta",children:f.jsx("span",{className:"modelTag",children:"Local file"})})]})]}),M(Z.id)]},Z.id),n[14]=M,n[15]=r.loadedModelId,n[16]=r.loading,n[17]=K):K=n[17],q=r.localModels.map(K),n[9]=M,n[10]=r.loadedModelId,n[11]=r.loading,n[12]=r.localModels,n[13]=q}else q=n[13];let O;n[18]!==C||n[19]!==q?(O=f.jsxs("div",{className:"modelRows",children:[C,q]}),n[18]=C,n[19]=q,n[20]=O):O=n[20];const H=m||r.loading!=null;let Q,F;n[21]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>{v(!0),p(Ft.selectModelFile().then(xv)).finally(()=>v(!1))},F=f.jsx(Dv,{}),n[21]=Q,n[22]=F):(Q=n[21],F=n[22]);let $;n[23]!==H?($=f.jsxs("button",{disabled:H,onClick:Q,children:[F,"Select model file…"]}),n[23]=H,n[24]=$):$=n[24];let V;n[25]===Symbol.for("react.memo_cache_sentinel")?(V=f.jsxs("button",{onClick:()=>{p(Ft.openModelsDirectory())},children:[f.jsx(Sv,{}),"Models folder"]}),n[25]=V):V=n[25];let B;n[26]!==$?(B=f.jsxs("div",{className:"fileActions",children:[$,V]}),n[26]=$,n[27]=B):B=n[27];let G;n[28]!==u||n[29]!==r.error?(G=(u??r.error)!=null&&f.jsx("div",{className:"error",role:"alert",children:u??r.error}),n[28]=u,n[29]=r.error,n[30]=G):G=n[30];const L=r.loading!=null||g==null||!r.models[g]?.downloaded;let ee;n[31]!==g||n[32]!==L?(ee=f.jsx(Av,{dialogRef:E,modelId:g,disabled:L}),n[31]=g,n[32]=L,n[33]=ee):ee=n[33];let ue;return n[34]!==B||n[35]!==G||n[36]!==ee||n[37]!==O?(ue=f.jsxs("div",{className:"modelList","aria-label":"Models",children:[O,B,G,ee]}),n[34]=B,n[35]=G,n[36]=ee,n[37]=O,n[38]=ue):ue=n[38],ue}function xv(s){if(s!=null)return dc(s)}function kv(){const s=ve.c(9),n=et(ql),r=re.useRef(null),u=re.useId();let h,m;s[0]!==n?(h=()=>{n!=null?r.current?.showModal():r.current?.close()},m=[n],s[0]=n,s[1]=h,s[2]=m):(h=s[1],m=s[2]),re.useEffect(h,m);let v;s[3]!==u?(v=f.jsx("p",{id:u,children:"Switching a model now will stop the current play round. Are you sure?"}),s[3]=u,s[4]=v):v=s[4];let g;s[5]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,onClick:_v,children:"Cancel"}),f.jsx("button",{className:"confirmSwitch",onClick:Nv,children:"Switch model"})]}),s[5]=g):g=s[5];let S;return s[6]!==u||s[7]!==v?(S=f.jsxs("dialog",{className:"switchModelDialog",ref:r,"aria-label":"Switch model","aria-describedby":u,onCancel:Ev,children:[v,g]}),s[6]=u,s[7]=v,s[8]=S):S=s[8],S}function Nv(){return yc(!0)}function _v(){return yc(!1)}function Ev(){return yc(!1)}function jv(s){const n=ve.c(37),{state:r}=s,u=re.useRef(null),h=re.useRef(null),m=r.loading!=null,v=r.loadedModelId==null,[g,S]=re.useState(v);!m&&g!==v&&S(v);const E=r.loading?.modelId??r.loadedModelId;let b;n[0]!==E?(b=Ts.find(se=>se.id===E),n[0]=E,n[1]=b):b=n[1];const p=b;let D;n[2]!==p||n[3]!==E||n[4]!==r.localModels?(D=p==null?r.localModels.find(se=>se.id===E)?.name:`${p.name} ${p.parameters}`,n[2]=p,n[3]=E,n[4]=r.localModels,n[5]=D):D=n[5];const M=D;let C;n[6]!==r?(C=J1(r),n[6]=r,n[7]=C):C=n[7];const q=C;let O,H;n[8]!==m||n[9]!==g?(O=()=>{g?(h.current?.hidePopover(),u.current?.showModal()):(u.current?.close(),m&&h.current?.showPopover())},H=[g,m],n[8]=m,n[9]=g,n[10]=O,n[11]=H):(O=n[10],H=n[11]),re.useEffect(O,H);const Q=`Models: ${M??"Get a model"}`;let F;n[12]===Symbol.for("react.memo_cache_sentinel")?(F=f.jsx(hc,{}),n[12]=F):F=n[12];const $=M??"Get a model";let V;n[13]!==$?(V=f.jsx("span",{className:"modelButtonName",children:$}),n[13]=$,n[14]=V):V=n[14];let B;n[15]===Symbol.for("react.memo_cache_sentinel")?(B=f.jsx(hv,{}),n[15]=B):B=n[15];let G;n[16]!==M||n[17]!==Q||n[18]!==V?(G=f.jsxs("button",{className:"modelButton",popoverTarget:"modelsPopover",title:M,"aria-label":Q,children:[F,V,B]}),n[16]=M,n[17]=Q,n[18]=V,n[19]=G):G=n[19];let L;n[20]!==q.count||n[21]!==q.progress?(L=q.count>0&&f.jsx(Hi,{value:q.progress,label:"Total download progress"}),n[20]=q.count,n[21]=q.progress,n[22]=L):L=n[22];let ee;n[23]!==g||n[24]!==G||n[25]!==L?(ee=f.jsxs("div",{className:"modelButtonArea",hidden:g,children:[G,L]}),n[23]=g,n[24]=G,n[25]=L,n[26]=ee):ee=n[26];let ue;n[27]!==r?(ue=f.jsx("div",{className:"modelsPopover",id:"modelsPopover",popover:"auto",ref:h,children:f.jsx(cp,{state:r})}),n[27]=r,n[28]=ue):ue=n[28];let K;n[29]===Symbol.for("react.memo_cache_sentinel")?(K=f.jsx("h1",{id:"pickModelHeading",children:"Pick a model"}),n[29]=K):K=n[29];let Z;n[30]!==r?(Z=f.jsxs("dialog",{className:"requiredPicker",ref:u,onCancel:qv,"aria-labelledby":"pickModelHeading",children:[K,f.jsx(cp,{state:r})]}),n[30]=r,n[31]=Z):Z=n[31];let le;n[32]===Symbol.for("react.memo_cache_sentinel")?(le=f.jsx(kv,{}),n[32]=le):le=n[32];let W;return n[33]!==ee||n[34]!==ue||n[35]!==Z?(W=f.jsxs("div",{className:"modelPicker",children:[ee,ue,Z,le]}),n[33]=ee,n[34]=ue,n[35]=Z,n[36]=W):W=n[36],W}function qv(s){s.target===s.currentTarget&&s.preventDefault()}function zv(s){const n=ve.c(18),{state:r}=s,u=et(Oi);let h;n[0]===Symbol.for("react.memo_cache_sentinel")?(h=function(Q){if(Q!==Oi.state){if(matchMedia("(prefers-reduced-motion: reduce)").matches){Oi.state=Q;return}document.startViewTransition({types:[`to-${Q}`],update:()=>{qn.flushSync(()=>{Oi.state=Q});for(const F of document.querySelector(".mainContent > .page")?.getAnimations()??[])F.finish()}})}},n[0]=h):h=n[0];const m=h;let v;n[1]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("a",{className:"appIdentity",href:"https://github.com/giladgd/semantic-golfer",target:"_blank",rel:"noreferrer",title:"Semantic Golfer on GitHub",draggable:!1,children:[f.jsx(cv,{className:"semanticGolferIcon appMark","aria-hidden":"true"}),f.jsx("strong",{children:"Semantic Golfer"}),f.jsx(rp,{className:"identityLinkIcon","aria-hidden":"true"})]}),n[1]=v):v=n[1];const g=u==="play"?"page":void 0;let S;n[2]===Symbol.for("react.memo_cache_sentinel")?(S=()=>m("play"),n[2]=S):S=n[2];let E;n[3]!==g?(E=f.jsx("button",{"aria-current":g,onClick:S,children:"Play"}),n[3]=g,n[4]=E):E=n[4];const b=u==="playground"?"page":void 0;let p;n[5]===Symbol.for("react.memo_cache_sentinel")?(p=()=>m("playground"),n[5]=p):p=n[5];let D;n[6]!==b?(D=f.jsx("button",{"aria-current":b,onClick:p,children:"Playground"}),n[6]=b,n[7]=D):D=n[7];let M;n[8]!==E||n[9]!==D?(M=f.jsxs("nav",{"aria-label":"Main navigation",children:[E,D]}),n[8]=E,n[9]=D,n[10]=M):M=n[10];let C;n[11]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsxs("a",{className:"repositoryLink",href:"https://github.com/withcatai/node-llama-cpp?utm_source=semantic_golfer",target:"_blank",rel:"noreferrer",title:"node-llama-cpp on GitHub","aria-label":"node-llama-cpp on GitHub",draggable:!1,children:[f.jsx(fv,{"aria-hidden":"true"}),f.jsx("code",{children:"node-llama-cpp"}),f.jsx(rp,{className:"externalLinkIcon"})]}),n[11]=C):C=n[11];let q;n[12]!==r?(q=f.jsxs("div",{className:"headerActions",children:[C,f.jsx(jv,{state:r})]}),n[12]=r,n[13]=q):q=n[13];let O;return n[14]!==u||n[15]!==q||n[16]!==M?(O=f.jsxs("header",{className:"topBar","data-platform":window.platform,"data-mode":u,children:[v,M,q]}),n[14]=u,n[15]=q,n[16]=M,n[17]=O):O=n[17],O}const Sp=["noul","choice","score"],zl={noul:2,choice:50,score:10},fp=16;function Mv(s){const n=mc(s?.input);if(n!=null)return n;if(s.additionalInputs!=null){if(!Array.isArray(s.additionalInputs)||s.additionalInputs.length>=fp)return`Use at most ${fp} questions per document.`;for(const r of s.additionalInputs){const u=mc(r);if(u!=null)return u;if(r.document!==s.input.document)return"All questions must use the same document."}}}function Dp(s,n){return typeof s=="string"&&s.length<=1e3&&(n==="noul"||s.trim().length>0)}function Ol({type:s,criteria:n}){if(s==="noul")return n;let r=n.length;for(;r>0;){const u=n[r-1];if(typeof u!="string"||u.length>1e3||u.trim())break;r--}return r===n.length?n:n.slice(0,r)}function mc(s){if(s==null||!Sp.includes(s.type))return"Choose a decision type.";if(typeof s.document!="string"||s.document.length>32e3)return"Keep the document under 32,000 characters.";if(typeof s.instruction!="string"||!s.instruction.trim()||s.instruction.length>1e3)return"Enter a question (up to 1,000 characters).";if(!Array.isArray(s.criteria)||s.criteria.length<2||s.criteria.length>zl[s.type])return s.type==="noul"?"Use exactly two criteria.":`Use between 2 and ${zl[s.type]} criteria.`;const n=Ol(s);if(n.length<2)return"Enter at least two nonempty criteria.";if(n.some(r=>!Dp(r,s.type)))return s.type==="noul"?"Use text of up to 1,000 characters for each criterion.":"Fill in each criterion (up to 1,000 characters)."}class Cv{state=new ya({running:!1});latest;completedKey;evaluate;constructor(n){this.evaluate=n}setInput(n){const r=JSON.stringify(n)!==JSON.stringify(this.latest);return this.latest=n,n==null?(this.completedKey=void 0,this.state.state={running:!1}):r&&this.state.state.error!=null&&(this.state.state={...this.state.state,error:void 0}),gp([this],async()=>{for(;this.latest!=null&&Mv(this.latest)==null&&JSON.stringify(this.latest)!==this.completedKey;){const u=this.latest,h=JSON.stringify(u);this.state.state={...this.state.state,running:!0,error:void 0};try{const m=await this.evaluate(u);this.latest?.modelId===u.modelId&&(this.state.state={running:!0,result:{...m,request:u}})}catch(m){JSON.stringify(this.latest)===h&&(this.state.state={...this.state.state,error:String(m)})}this.completedKey=this.latest==null?void 0:h}this.state.state={...this.state.state,running:!1}})}retry(){return this.state.state.running||this.state.state.error==null?Promise.resolve():(this.completedKey=void 0,this.setInput(this.latest))}}const cc="My whole team is locked out of our accounts. None of us can sign in, so we cannot continue our work.",ms={noul:[{name:"Shared issue",input:{type:"noul",document:cc,instruction:"Does this issue affect multiple people?",criteria:["Multiple people are affected","No indication multiple people are affected"]}},{name:"An animal",input:{type:"noul",document:"A small cat curled up on my keyboard while I was working.",instruction:"Does this text mention an animal?",criteria:["An animal is mentioned","No animal is mentioned"]}},{name:"Needs a reply",input:{type:"noul",document:"Thanks for sending the notes. Could you confirm whether Tuesday at 10 works for the review?",instruction:"Does this message need a reply?",criteria:["The sender asks a question or requests action","The message is informational and needs no response"]}}],choice:[{name:"Support routing",input:{type:"choice",document:cc,instruction:"Which support team should handle this ticket?",criteria:["Accounts: signing in, passwords, and account access","Billing: invoices, payments, and refunds","Technical: problems using features after signing in"]}},{name:"Delivery",input:{type:"choice",document:"I need it delivered as soon as possible",instruction:"Which delivery method has the customer chosen?",criteria:["Standard shipping","Express courier","Store pickup"]}},{name:"Intent",input:{type:"choice",document:"Please add an option to export the dashboard charts as SVG files. This export option is currently missing.",instruction:"What is the main intent of this message?",criteria:["Report a bug","Request a feature","Ask for help","Give a compliment"]}}],score:[{name:"Issue severity",input:{type:"score",document:cc,instruction:"How much is the issue affecting the customer's work?",criteria:["No interruption to work","Some tasks are slower or harder","The customer cannot continue their work"]}},{name:"Intent",input:{type:"score",document:"We want to buy 20 seats, but only if your product integrates with our CRM. We need to confirm that before purchasing.",instruction:"How strongly does the customer express an intention to purchase?",criteria:["Not interested","Just browsing","Considering purchasing","Conditional intent to purchase","Ready to buy"]}},{name:"Satisfaction",input:{type:"score",document:"The app saves me time every day. The confusing menus still annoy me, but overall I’m happy with it",instruction:"How satisfied is the customer with their overall experience?",criteria:["Very dissatisfied","Somewhat dissatisfied","Neutral","Somewhat satisfied","Very satisfied"]}}]},zn=new ya({type:"noul",drafts:{noul:ms.noul[0].input,choice:ms.choice[0].input,score:ms.score[0].input}},{queueEvents:!1}),ui=new Cv(s=>Ft.evaluateDecision(s));function El(s){zn.state={...zn.state,drafts:{...zn.state.drafts,[s.type]:s}}}ya.createCombinedChangeListener([zn,Bt,Oi,Ue],([s,n,r,u])=>{if(n.loadedModelId==null)ui.setInput(void 0);else if(r==="playground"){const h=s.drafts[s.type];ui.setInput({modelId:n.loadedModelId,input:{...h,criteria:Ol(h)}})}else{const h=u.screen==="round"?Yi(u.drafts,n.loadedModelId,u.game,u.level):void 0,m=it[u.game].levels.find(({id:g})=>g===u.level),v=h==null?void 0:m?.rounds[h.answers.length];ui.setInput(v!=null&&h?.document.trim()?pc(n.loadedModelId,v,h.document):void 0)}},{callInstantlyWithCurrentState:!0});function Ov(s){const n=ve.c(37),{input:r,disabled:u,onChange:h}=s;let m;n[0]!==r?(m=Ol(r),n[0]=r,n[1]=m):m=n[1];const v=m;let g;n[2]!==r.criteria||n[3]!==r.type?(g=r.type!=="noul"&&r.criteria.length<zl[r.type]&&r.criteria.at(-1)?.trim()?[...r.criteria,""]:r.criteria,n[2]=r.criteria,n[3]=r.type,n[4]=g):g=n[4];const S=g;let E;n[5]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsx("span",{children:"Instruction"}),n[5]=E):E=n[5];let b;n[6]!==r||n[7]!==h?(b=$=>h({...r,instruction:$.target.value}),n[6]=r,n[7]=h,n[8]=b):b=n[8];let p;n[9]!==r.instruction||n[10]!==b?(p=f.jsxs("label",{className:"instructionHeader",htmlFor:"decisionQuestion",children:[E,f.jsx("textarea",{id:"decisionQuestion","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,value:r.instruction,title:r.instruction,maxLength:1e3,onChange:b})]}),n[9]=r.instruction,n[10]=b,n[11]=p):p=n[11];let D;n[12]===Symbol.for("react.memo_cache_sentinel")?(D=f.jsx("h2",{className:"criteriaTitle",children:"Criteria"}),n[12]=D):D=n[12];let M;if(n[13]!==v||n[14]!==r||n[15]!==h||n[16]!==S){let $;n[18]!==v||n[19]!==r||n[20]!==h?($=(V,B)=>f.jsxs("div",{className:"criterion",children:[f.jsx("label",{htmlFor:`criterion-${B}`,children:r.type==="noul"?B===0?"Yes":"No":r.type==="score"?B:Ap(B)}),f.jsx("textarea",{id:`criterion-${B}`,"data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,"aria-label":`Criterion ${B+1}`,"aria-invalid":B<v.length&&!Dp(V,r.type),value:V,title:V,maxLength:1e3,placeholder:r.type==="choice"?"Describe this choice":r.type==="score"?"Describe this level":B===0?"Describe what counts as yes":"Describe what counts as no",onChange:G=>{const L=[...r.criteria];L[B]=G.target.value,h({...r,criteria:L})}}),f.jsx("button",{className:"removeButton","aria-label":`Remove criterion ${B+1}`,disabled:r.type==="noul"||B>=v.length||v.length<=2,onClick:()=>h({...r,criteria:r.criteria.filter((G,L)=>L!==B)}),children:f.jsx(Tp,{})})]},B),n[18]=v,n[19]=r,n[20]=h,n[21]=$):$=n[21],M=S.map($),n[13]=v,n[14]=r,n[15]=h,n[16]=S,n[17]=M}else M=n[17];let C;n[22]!==M?(C=f.jsx("div",{className:"criteriaList",children:M}),n[22]=M,n[23]=C):C=n[23];let q;n[24]===Symbol.for("react.memo_cache_sentinel")?(q=f.jsx("span",{children:"Examples"}),n[24]=q):q=n[24];const O=ms[r.type];let H;if(n[25]!==h||n[26]!==O){let $;n[28]!==h?($=V=>f.jsxs("button",{onClick:()=>h(V.input),children:[V.name,f.jsx("span",{"aria-hidden":"true",children:"↗"})]},V.name),n[28]=h,n[29]=$):$=n[29],H=O.map($),n[25]=h,n[26]=O,n[27]=H}else H=n[27];let Q;n[30]!==H?(Q=f.jsxs("div",{className:"examples","aria-label":"Examples",children:[q,H]}),n[30]=H,n[31]=Q):Q=n[31];let F;return n[32]!==u||n[33]!==Q||n[34]!==p||n[35]!==C?(F=f.jsxs("fieldset",{className:"criteriaEditor",disabled:u,children:[p,D,C,Q]}),n[32]=u,n[33]=Q,n[34]=p,n[35]=C,n[36]=F):F=n[36],F}function Ap(s){return(s>=26?Ap(Math.floor(s/26)-1):"")+String.fromCharCode(65+s%26)}function Rv(s){const n=ve.c(14),{value:r,disabled:u,onChange:h}=s;let m;n[0]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx("label",{htmlFor:"documentText",children:"Document"}),n[0]=m):m=n[0];let v;n[1]!==h?(v=p=>h(p.target.value),n[1]=h,n[2]=v):v=n[2];let g;n[3]!==u||n[4]!==v||n[5]!==r?(g=f.jsx("textarea",{id:"documentText","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:r,disabled:u,maxLength:32e3,spellCheck:!1,placeholder:"Type a document…",onChange:v}),n[3]=u,n[4]=v,n[5]=r,n[6]=g):g=n[6];let S;n[7]!==r.length?(S=r.length.toLocaleString(),n[7]=r.length,n[8]=S):S=n[8];let E;n[9]!==S?(E=f.jsxs("div",{className:"documentFooter",children:[S," characters"]}),n[9]=S,n[10]=E):E=n[10];let b;return n[11]!==g||n[12]!==E?(b=f.jsxs("section",{className:"documentInput",children:[m,g,E]}),n[11]=g,n[12]=E,n[13]=b):b=n[13],b}function Uv(s){const n=ve.c(9),{value:r}=s,u=r==null?void 0:"meter",h=r==null?void 0:r*100;let m;n[0]!==r?(m=r!=null&&f.jsx("span",{className:"position",style:{left:`${Math.max(0,Math.min(1,r))*100}%`}}),n[0]=r,n[1]=m):m=n[1];let v;n[2]!==m?(v=f.jsx("div",{className:"track",children:m}),n[2]=m,n[3]=v):v=n[3];let g;n[4]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("div",{className:"labels","aria-hidden":"true",children:[f.jsx("span",{children:"No"}),f.jsx("span",{children:"Yes"})]}),n[4]=g):g=n[4];let S;return n[5]!==u||n[6]!==h||n[7]!==v?(S=f.jsxs("div",{className:"noulScale",role:u,"aria-label":"Probability of yes","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,children:[v,g]}),n[5]=u,n[6]=h,n[7]=v,n[8]=S):S=n[8],S}function Hv(s){const n=ve.c(55),{input:r,evaluation:u,ready:h,validationError:m,onRetry:v}=s,g=u.result?.request.input.type===r.type?u.result:void 0,S=g?.answer,E=S!=null&&S.type!=="noul"?S.confidence:void 0;let b,p,D,M,C,q,O,H,Q,F,$,V;if(n[0]!==S||n[1]!==u.error||n[2]!==u.running||n[3]!==r||n[4]!==v||n[5]!==h||n[6]!==g?.request.input||n[7]!==m){const Z=Ol(g?.request.input??r),le=S?.type==="choice"?Number(S.choice):void 0,W=S?.type==="choice"?Z.map((I,te)=>S.probabilities[String(te)]??0):S?.type==="score"?S.probabilities:void 0,se=h?m==null?"Waiting for a decision":"Complete the criteria":"Load a model to begin";F="decisionResult",$=r.type,V="Decision results",p=u.running,n[20]===Symbol.for("react.memo_cache_sentinel")?(D=f.jsx("h2",{children:"Decision"}),n[20]=D):D=n[20],n[21]!==u.error||n[22]!==u.running||n[23]!==v||n[24]!==h||n[25]!==m?(M=(m??u.error)!=null&&f.jsxs("div",{className:"error",children:[f.jsx("div",{role:"alert",children:m??u.error}),m==null&&h&&!u.running&&f.jsx("button",{onClick:v,children:"Retry"})]}),n[21]=u.error,n[22]=u.running,n[23]=v,n[24]=h,n[25]=m,n[26]=M):M=n[26],b="decisionContent",C=0,q="region",O="Decision details";const X=r.type==="choice"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"choiceValue",children:[Z.map((I,te)=>f.jsx("span",{"data-selected":le===te,"aria-hidden":le!==te,children:I},te)),le==null&&f.jsx("span",{"data-selected":!0,children:"—"})]}),f.jsx("div",{className:"answerLabel",children:S==null?se:"Selected choice"})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"answerValue","data-empty":S==null,children:S?.type==="noul"?f.jsxs(f.Fragment,{children:[(S.value*100).toFixed(1),f.jsx("span",{children:"%"})]}):S?.type==="score"?f.jsxs(f.Fragment,{children:[S.score.toFixed(2),f.jsxs("span",{children:[" / ",Z.length-1]})]}):"—"}),f.jsx("div",{className:"answerLabel",children:S==null?se:r.type==="noul"?"Probability of yes":"Score"})]});n[27]!==X?(H=f.jsx("div",{className:"answerSummary",children:X}),n[27]=X,n[28]=H):H=n[28],Q=r.type==="noul"?f.jsx(Uv,{value:S?.type==="noul"?S.value:void 0}):f.jsxs(f.Fragment,{children:[r.type==="score"&&f.jsxs("div",{className:"scoreScale",children:[f.jsx(Hi,{value:S?.type==="score"?S.score/(Z.length-1):0,label:"Decision score"}),f.jsx("div",{className:"scoreMarkers",children:Z.map(Yv)}),f.jsxs("div",{className:"scoreEndpoints",children:[f.jsx("span",{children:Z[0]}),f.jsx("span",{children:Z.at(-1)})]})]}),f.jsx("div",{className:"probabilities",children:Z.map((I,te)=>f.jsxs("div",{className:"probability","data-selected":le===te,children:[f.jsxs("div",{className:"probabilityLabel",children:[f.jsxs("span",{className:"criterionLabel",title:I,children:[r.type==="choice"&&f.jsx(ys,{className:"selectedIcon"}),r.type==="score"?`${te} · ${I}`:I]}),f.jsx("span",{children:W==null?"—":`${((W[te]??0)*100).toFixed(1)}%`})]}),f.jsx(Hi,{value:W?.[te]??0,label:`${I}${le===te?", selected":""}`})]},te))})]}),n[0]=S,n[1]=u.error,n[2]=u.running,n[3]=r,n[4]=v,n[5]=h,n[6]=g?.request.input,n[7]=m,n[8]=b,n[9]=p,n[10]=D,n[11]=M,n[12]=C,n[13]=q,n[14]=O,n[15]=H,n[16]=Q,n[17]=F,n[18]=$,n[19]=V}else b=n[8],p=n[9],D=n[10],M=n[11],C=n[12],q=n[13],O=n[14],H=n[15],Q=n[16],F=n[17],$=n[18],V=n[19];let B;n[29]!==b||n[30]!==C||n[31]!==q||n[32]!==O||n[33]!==H||n[34]!==Q?(B=f.jsxs("div",{className:b,tabIndex:C,role:q,"aria-label":O,children:[H,Q]}),n[29]=b,n[30]=C,n[31]=q,n[32]=O,n[33]=H,n[34]=Q,n[35]=B):B=n[35];let G;n[36]!==E||n[37]!==r.type?(G=r.type!=="noul"&&f.jsxs("div",{className:"confidence",children:[f.jsx("span",{children:"Confidence"}),f.jsx("strong",{children:E==null?"—":`${(E*100).toFixed(1)}%`}),f.jsx(Hi,{value:E??0,label:"Decision confidence"})]}),n[36]=E,n[37]=r.type,n[38]=G):G=n[38];let L;n[39]!==g?(L=g==null?"—":f.jsxs(f.Fragment,{children:[g.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}),n[39]=g,n[40]=L):L=n[40];let ee;n[41]!==L?(ee=f.jsx("div",{className:"timing","aria-label":"Decision time",children:f.jsx("strong",{children:L})}),n[41]=L,n[42]=ee):ee=n[42];let ue;n[43]!==G||n[44]!==ee?(ue=f.jsxs("div",{className:"resultFooter",children:[G,ee]}),n[43]=G,n[44]=ee,n[45]=ue):ue=n[45];let K;return n[46]!==p||n[47]!==D||n[48]!==M||n[49]!==B||n[50]!==ue||n[51]!==F||n[52]!==$||n[53]!==V?(K=f.jsxs("section",{className:F,"data-type":$,"aria-label":V,"aria-busy":p,children:[D,M,B,ue]}),n[46]=p,n[47]=D,n[48]=M,n[49]=B,n[50]=ue,n[51]=F,n[52]=$,n[53]=V,n[54]=K):K=n[54],K}function Yv(s,n){return f.jsx("span",{title:s,children:n},n)}function Bv(){const s=ve.c(33),n=et(Bt),r=et(zn),u=et(ui.state),h=r.drafts[r.type],m=n.loadedModelId!=null;let v;s[0]!==h?(v=function(B){const G=B.target;if(!(G instanceof HTMLTextAreaElement)||G.selectionStart!==G.selectionEnd||B.defaultPrevented||B.nativeEvent.isComposing||B.shiftKey||B.metaKey||B.ctrlKey||B.altKey||!["Enter","Backspace","ArrowUp","ArrowDown","Escape"].includes(B.key))return;const L=B.currentTarget,ee=G.selectionStart===0,ue=G.selectionStart===G.value.length;let K,Z;if(G.id==="documentText")B.key==="Escape"&&(K="decisionQuestion");else if(G.id==="decisionQuestion")B.key==="Escape"?K="documentText":ue&&(B.key==="Enter"||B.key==="ArrowDown")&&(K="criterion-0",Z="start");else{const le=[...L.querySelectorAll(".criterion textarea")],W=le.indexOf(G),se=Ol(h);if(W<0)return;if(B.key==="Escape")K="documentText";else if(B.key==="ArrowUp"&&ee)K=W===0?"decisionQuestion":`criterion-${W-1}`,Z="end";else if(B.key==="ArrowDown"&&ue&&W<le.length-1)K=`criterion-${W+1}`,Z="start";else if(B.key==="Enter"&&ue&&h.type!=="noul"&&se.length<zl[h.type]){if(W<se.length-1)qn.flushSync(()=>El({...h,criteria:[...se.slice(0,W+1),"",...se.slice(W+1)]}));else if(W===le.length-1){if(le.length>=zl[h.type])return;qn.flushSync(()=>El({...h,criteria:[...h.criteria.slice(0,W),G.value,""]}))}K=`criterion-${W+1}`,Z="start"}else B.key==="Backspace"&&G.value===""&&h.type!=="noul"&&(se.length>2||W>=se.length&&W>0)&&(W<h.criteria.length&&qn.flushSync(()=>El({...h,criteria:h.criteria.filter((X,I)=>I!==W)})),K=`criterion-${Math.max(0,W-1)}`,Z=W===0?"start":"end")}if(K!=null){B.preventDefault();const le=L.querySelector(`#${K}`);if(le?.focus(),le!=null&&Z!=null){const W=Z==="end"?le.value.length:0;le.setSelectionRange(W,W)}}},s[0]=h,s[1]=v):v=s[1];const g=v;let S;s[2]!==r?(S=Sp.map(V=>f.jsx("button",{"aria-pressed":r.type===V,onClick:()=>{zn.state={...r,type:V}},children:V},V)),s[2]=r,s[3]=S):S=s[3];let E;s[4]!==S?(E=f.jsx("div",{className:"typeSwitch",role:"group","aria-label":"Decision type",children:S}),s[4]=S,s[5]=E):E=s[5];let b;s[6]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsxs("span",{className:"localBadge",children:[f.jsx("span",{}),"On device"]}),s[6]=b):b=s[6];let p;s[7]!==E?(p=f.jsxs("div",{className:"workspaceToolbar",children:[E,b]}),s[7]=E,s[8]=p):p=s[8];const D=!m;let M;s[9]!==h||s[10]!==D?(M=f.jsx(Ov,{input:h,disabled:D,onChange:El}),s[9]=h,s[10]=D,s[11]=M):M=s[11];const C=!m;let q;s[12]!==h?(q=V=>El({...h,document:V}),s[12]=h,s[13]=q):q=s[13];let O;s[14]!==h.document||s[15]!==C||s[16]!==q?(O=f.jsx(Rv,{value:h.document,disabled:C,onChange:q}),s[14]=h.document,s[15]=C,s[16]=q,s[17]=O):O=s[17];let H;s[18]!==h?(H=mc(h),s[18]=h,s[19]=H):H=s[19];let Q;s[20]!==u||s[21]!==h||s[22]!==m||s[23]!==H?(Q=f.jsx(Hv,{input:h,evaluation:u,ready:m,validationError:H,onRetry:Gv}),s[20]=u,s[21]=h,s[22]=m,s[23]=H,s[24]=Q):Q=s[24];let F;s[25]!==g||s[26]!==Q||s[27]!==M||s[28]!==O?(F=f.jsxs("div",{className:"editorGrid",onKeyDown:g,children:[M,O,Q]}),s[25]=g,s[26]=Q,s[27]=M,s[28]=O,s[29]=F):F=s[29];let $;return s[30]!==F||s[31]!==p?($=f.jsxs("section",{className:"playground","aria-label":"Decision playground",children:[p,F]}),s[30]=F,s[31]=p,s[32]=$):$=s[32],$}function Gv(){ui.retry()}function Mn(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M19 12H5m7-7-7 7 7 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function vc(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"m12 3 9 5-9 5-9-5 9-5ZM3 12l9 5 9-5M3 16l9 5 9-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Lv(s){const n=ve.c(4);let r,u;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M272 320.46V202.3l166.62-75.73a16 16 0 0 0 0-29.14l-176-80A16 16 0 0 0 240 32v288.46q8-.45 16-.46t16 .46"}),u=f.jsx("path",{fill:"currentColor",d:"M463.33 457.5c-8.56-42.85-35.11-78.74-76.78-103.8c-32.5-19.55-72.67-31.3-114.55-33.7v79.75a16 16 0 1 1-32 0V320c-41.88 2.4-82.05 14.15-114.55 33.7c-41.67 25.06-68.22 60.95-76.78 103.8a32.49 32.49 0 0 0 6.44 27.08C61.13 492 70 496 80 496h352c10 0 18.88-4.05 24.9-11.42a32.49 32.49 0 0 0 6.43-27.08"}),n[0]=r,n[1]=u):(r=n[0],u=n[1]);let h;return n[2]!==s?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 512 512","aria-hidden":"true",...s,children:[r,u]}),n[2]=s,n[3]=h):h=n[3],h}function Qv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[f.jsx("path",{d:"M21.97 12c0 3.31-2.69 6-6 6a5.93 5.93 0 0 1-4-1.54c1.23-1.09 2-2.69 2-4.46s-.77-3.37-2-4.46a5.93 5.93 0 0 1 4-1.54c3.31 0 6 2.69 6 6"}),f.jsx("path",{d:"M13.97 12c0 1.77-.77 3.37-2 4.46a5.93 5.93 0 0 1-4 1.54c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.54 0 2.94.58 4 1.54c1.23 1.09 2 2.69 2 4.46"})]}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function xp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M7 10.8V7H5v1q0 .95.55 1.713T7 10.8m10 0q.9-.325 1.45-1.088T19 8V7h-2zM11 19v-3.1q-1.225-.275-2.187-1.037T7.4 12.95q-1.875-.225-3.137-1.637T3 8V7q0-.825.588-1.412T5 5h2q0-.825.588-1.412T9 3h6q.825 0 1.413.588T17 5h2q.825 0 1.413.588T21 7v1q0 1.9-1.263 3.313T16.6 12.95q-.45 1.15-1.412 1.913T13 15.9V19h3q.425 0 .713.288T17 20t-.288.713T16 21H8q-.425 0-.712-.288T7 20t.288-.712T8 19z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function bc(s,n,r,u){return s.find(h=>h.modelId===n&&h.game===r&&h.level===u)}function Vv(s,n,r){let u;for(const h of s)h.game===n&&h.level===r&&(u==null||Date.parse(h.completedAt)>Date.parse(u.completedAt))&&(u=h);return u}function Xv(s,n,r){return s.filter(u=>u.modelId===n&&u.game===r).reduce((u,h)=>u+h.best,0)}function Zv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M4 6h16M4 12h10M4 18h6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Kv(s){const n=ve.c(4);let r,u;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),u=f.jsx("path",{d:"M12 7v5l3 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r,n[1]=u):(r=n[0],u=n[1]);let h;return n[2]!==s?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:[r,u]}),n[2]=s,n[3]=h):h=n[3],h}const Ml=new ya(void 0),kp=new Set;function Jv(s){if(kp.has(s))return!0;try{return localStorage.getItem(`game-help:${s}`)==="seen"||s==="signalMixing"&&localStorage.getItem("game-help:camouflage")==="seen"}catch{return!1}}function $v(s){kp.add(s);try{localStorage.setItem(`game-help:${s}`,"seen")}catch{}Ml.state=void 0}function Fv(s){const n=ve.c(19),{game:r,modelId:u}=s,h=et(Bt,e0),m=et(Ue,Pv);let v;n[0]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("button",{className:"backButton",onClick:Iv,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Games"]}),n[0]=v):v=n[0];const g=it[r];let S;n[1]!==g.name?(S=f.jsx("h1",{children:g.name}),n[1]=g.name,n[2]=S):S=n[2];const E=it[r];let b;if(n[3]!==m||n[4]!==r||n[5]!==u||n[6]!==h||n[7]!==E.levels){let M;n[9]!==m||n[10]!==r||n[11]!==u||n[12]!==h?(M=C=>{const q=(u==null?void 0:bc(h,u,r,C.id))??Vv(h,r,C.id),O=u==null?void 0:Yi(m,u,r,C.id),H=O!=null&&(O.answers.length>0||O.document.length>0);return f.jsxs("button",{className:"level",disabled:u==null,onClick:()=>{bp(r,C.id),Jv(r)||(Ml.state=r)},children:[f.jsxs("span",{className:"levelDetails",children:[f.jsx("span",{className:"levelNumber",children:C.id}),f.jsx("strong",{children:C.title}),f.jsx("span",{className:"levelDescription",children:C.skill}),f.jsxs("span",{className:"levelMeta",children:[f.jsxs("span",{className:"levelTag",children:[f.jsx(vc,{"aria-hidden":"true"}),C.rounds.length," rounds"]}),f.jsxs("span",{className:"levelTag",children:[f.jsx(Zv,{"aria-hidden":"true"}),Math.max(...C.rounds.map(Wv))," bars"]}),f.jsxs("span",{className:"levelTag estimatedDuration",title:"Estimated time to finish this level",children:[f.jsx(Kv,{"aria-hidden":"true"}),C.estimatedDuration]})]})]}),f.jsx("span",{className:"levelScore","data-played":q!=null,children:q==null?f.jsxs("span",{className:"playAction",children:[H?"Continue":"Play",f.jsx(Mn,{"aria-hidden":"true"})]}):q.modelId===u?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:q.latest.toLocaleString()}),f.jsx("span",{children:"Last score"})]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"Played with"}),f.jsx("strong",{className:"modelName",title:q.modelName,children:q.modelName})]})})]},C.id)},n[9]=m,n[10]=r,n[11]=u,n[12]=h,n[13]=M):M=n[13],b=E.levels.map(M),n[3]=m,n[4]=r,n[5]=u,n[6]=h,n[7]=E.levels,n[8]=b}else b=n[8];let p;n[14]!==b?(p=f.jsx("div",{className:"levels",children:b}),n[14]=b,n[15]=p):p=n[15];let D;return n[16]!==S||n[17]!==p?(D=f.jsxs("section",{className:"levelPicker",children:[v,S,p]}),n[16]=S,n[17]=p,n[18]=D):D=n[18],D}function Wv(s){return s.labels.length}function Iv(){Ue.state={...Ue.state,screen:"games"}}function Pv(s){return s.drafts}function e0(s){return s.scores}function t0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M8.488 21.288q-1.638-.713-2.85-1.925t-1.925-2.85T3 13q0-.425.288-.712T4 12t.713.288T5 13q0 2.925 2.038 4.963T12 20t4.963-2.037T19 13t-2.037-4.962T12 6h-.15l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L8.7 5.7q-.3-.3-.3-.7t.3-.7l2.575-2.575q.3-.3.713-.288t.712.313q.275.3.288.7t-.288.7l-.85.85H12q1.875 0 3.513.713t2.85 1.925t1.925 2.85T21 13t-.712 3.513t-1.925 2.85t-2.85 1.925T12 22t-3.512-.712"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function a0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M2.7 20L6.475 9.5q.125-.325.388-.5t.562-.175q.2 0 .375.075t.325.225l6.75 6.75q.15.15.225.325t.075.375q0 .3-.175.563t-.5.387L4 21.3q-.3.125-.575.038t-.475-.288t-.288-.475T2.7 20M23.025 7.025q-.225.225-.525.225t-.525-.225L21.9 6.95q-.35-.35-.875-.35t-.875.35l-5.075 5.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L19.1 5.9q.8-.8 1.925-.8t1.925.8l.075.075q.225.225.225.525t-.225.525m-13.05-3Q10.2 3.8 10.5 3.8t.525.225l.125.125q.8.8.8 1.9t-.8 1.9l-.075.075q-.225.225-.525.225t-.525-.225T9.8 7.5t.225-.525L10.1 6.9q.35-.35.35-.85t-.35-.85l-.125-.125Q9.75 4.85 9.75 4.55t.225-.525m4.05-2q.225-.225.525-.225t.525.225L16.15 3.1q.8.8.8 1.925t-.8 1.925l-3.075 3.075q-.225.225-.525.225t-.525-.225T11.8 9.5t.225-.525L15.1 5.9q.35-.35.35-.875t-.35-.875l-1.075-1.075Q13.8 2.85 13.8 2.55t.225-.525m8 12q-.225.225-.525.225t-.525-.225L19.9 12.95q-.35-.35-.875-.35t-.875.35l-1.075 1.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L17.1 11.9q.8-.8 1.925-.8t1.925.8l1.075 1.075q.225.225.225.525t-.225.525"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Np(s){const n=ve.c(11);let r,u,h;n[0]!==s?({children:r,className:h,...u}=s,n[0]=s,n[1]=r,n[2]=u,n[3]=h):(r=n[1],u=n[2],h=n[3]);const m=h===void 0?"":h,v=re.useRef(null),g=window.platform==="darwin";let S,E;n[4]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{const M=C=>{C.key!=="Enter"||C.isComposing||C.defaultPrevented||C.altKey||C.shiftKey||(g?!C.metaKey||C.ctrlKey:!C.ctrlKey||C.metaKey)||document.querySelector(":modal, :popover-open")!=null||v.current?.closest("[inert]")!=null||(C.preventDefault(),C.repeat||v.current?.click())};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},E=[g],n[4]=S,n[5]=E):(S=n[4],E=n[5]),re.useEffect(S,E);const b=`advanceButton ${m}`;let p;n[6]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs("kbd",{"aria-hidden":"true",children:[g?"⌘":"Ctrl",f.jsx("span",{children:"↵"})]}),n[6]=p):p=n[6];let D;return n[7]!==r||n[8]!==u||n[9]!==b?(D=f.jsxs("button",{...u,ref:v,className:b,"aria-keyshortcuts":g?"Meta+Enter":"Control+Enter",children:[r,p]}),n[7]=r,n[8]=u,n[9]=b,n[10]=D):D=n[10],D}function i0(s){const n=ve.c(96),{game:r,level:u,modelId:h,draft:m}=s,v=et(Bt,o0);let g,S,E,b,p,D,M,C,q,O;if(n[0]!==m.answers||n[1]!==m.completion?.record.best||n[2]!==r||n[3]!==u||n[4]!==h||n[5]!==v){const T=W1(u,m.answers.map(Ri));let Y;n[16]!==m.completion?.record.best||n[17]!==r||n[18]!==u.id||n[19]!==h||n[20]!==v?(Y=m.completion?.record.best??bc(v,h,r,u.id)?.best,n[16]=m.completion?.record.best,n[17]=r,n[18]=u.id,n[19]=h,n[20]=v,n[21]=Y):Y=n[21],g=Y;const P=it[r];let ie;if(n[22]!==u.id||n[23]!==P.levels){let Te;n[25]!==u.id?(Te=Se=>{const{id:ne}=Se;return ne===u.id+1},n[25]=u.id,n[26]=Te):Te=n[26],ie=P.levels.find(Te),n[22]=u.id,n[23]=P.levels,n[24]=ie}else ie=n[24];S=ie,C="levelResult";const ye=it[r];n[27]!==u.id||n[28]!==ye.name?(q=f.jsxs("span",{className:"levelName",children:[ye.name," · Level ",u.id]}),n[27]=u.id,n[28]=ye.name,n[29]=q):q=n[29],n[30]!==u.title?(O=f.jsx("h1",{children:u.title}),n[30]=u.title,n[31]=O):O=n[31],D="scoreSummary",M="polite",b="yourScore",n[32]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Your score"}),n[32]=p):p=n[32],E=T.toLocaleString(),n[0]=m.answers,n[1]=m.completion?.record.best,n[2]=r,n[3]=u,n[4]=h,n[5]=v,n[6]=g,n[7]=S,n[8]=E,n[9]=b,n[10]=p,n[11]=D,n[12]=M,n[13]=C,n[14]=q,n[15]=O}else g=n[6],S=n[7],E=n[8],b=n[9],p=n[10],D=n[11],M=n[12],C=n[13],q=n[14],O=n[15];let H;n[33]!==E?(H=f.jsx("strong",{children:E}),n[33]=E,n[34]=H):H=n[34];let Q;n[35]!==b||n[36]!==p||n[37]!==H?(Q=f.jsxs("div",{className:b,children:[p,H]}),n[35]=b,n[36]=p,n[37]=H,n[38]=Q):Q=n[38];let F;n[39]===Symbol.for("react.memo_cache_sentinel")?(F=f.jsx("span",{children:"Best score"}),n[39]=F):F=n[39];let $;n[40]!==g?($=g?.toLocaleString()??"—",n[40]=g,n[41]=$):$=n[41];let V;n[42]!==$?(V=f.jsxs("div",{className:"bestScore",children:[F,f.jsx("strong",{children:$})]}),n[42]=$,n[43]=V):V=n[43];let B;n[44]!==Q||n[45]!==V||n[46]!==D||n[47]!==M?(B=f.jsxs("div",{className:D,"aria-live":M,children:[Q,V]}),n[44]=Q,n[45]=V,n[46]=D,n[47]=M,n[48]=B):B=n[48];let G;n[49]!==m.completion?(G=m.completion!=null&&m.completion.record.latest>m.completion.previousBest&&f.jsxs("p",{className:"newBest",children:[f.jsx(a0,{"aria-hidden":"true"}),"New record for this model!"]}),n[49]=m.completion,n[50]=G):G=n[50];let L;if(n[51]!==m.answers||n[52]!==u.rounds){let T;n[54]!==m.answers?(T=(Y,P)=>f.jsxs("div",{className:"roundScore",children:[f.jsxs("span",{children:[P+1,". ",Y.title,f.jsxs("small",{children:[Ri(m.answers[P])," / ",Y.limit," characters"]})]}),f.jsx("strong",{children:yp(Y,Ri(m.answers[P])).toLocaleString()})]},Y.id),n[54]=m.answers,n[55]=T):T=n[55],L=u.rounds.map(T),n[51]=m.answers,n[52]=u.rounds,n[53]=L}else L=n[53];let ee;n[56]!==L?(ee=f.jsx("div",{className:"roundScores",children:L}),n[56]=L,n[57]=ee):ee=n[57];let ue;n[58]!==m.saving?(ue=m.saving&&f.jsx("p",{role:"status",children:"Saving score…"}),n[58]=m.saving,n[59]=ue):ue=n[59];let K;n[60]!==m.error||n[61]!==r||n[62]!==u.id||n[63]!==h?(K=m.error!=null&&f.jsxs("p",{className:"saveError",role:"alert",children:[m.error,f.jsx("button",{onClick:()=>{wp(h,r,u.id)},children:"Retry saving"})]}),n[60]=m.error,n[61]=r,n[62]=u.id,n[63]=h,n[64]=K):K=n[64];let Z;n[65]===Symbol.for("react.memo_cache_sentinel")?(Z=f.jsxs("button",{onClick:l0,children:[f.jsx(vc,{"aria-hidden":"true"}),"Levels"]}),n[65]=Z):Z=n[65];const le=m.saving||m.completion==null;let W;n[66]!==r||n[67]!==u.id||n[68]!==h?(W=()=>Ui(h,r,u.id,{answers:[],document:"",startedAt:void 0,completion:void 0,error:void 0}),n[66]=r,n[67]=u.id,n[68]=h,n[69]=W):W=n[69];let se;n[70]===Symbol.for("react.memo_cache_sentinel")?(se=f.jsx(t0,{"aria-hidden":"true"}),n[70]=se):se=n[70];let X;n[71]!==le||n[72]!==W?(X=f.jsxs("button",{disabled:le,onClick:W,children:[se,"Play again"]}),n[71]=le,n[72]=W,n[73]=X):X=n[73];const I=S==null;let te;n[74]===Symbol.for("react.memo_cache_sentinel")?(te=f.jsx(xp,{"aria-hidden":"true"}),n[74]=te):te=n[74];let ke;n[75]!==I?(ke=f.jsxs("button",{autoFocus:I,onClick:n0,children:[te,"My scores"]}),n[75]=I,n[76]=ke):ke=n[76];let ge;n[77]!==X||n[78]!==ke?(ge=f.jsxs("div",{className:"secondaryActions",children:[Z,X,ke]}),n[77]=X,n[78]=ke,n[79]=ge):ge=n[79];let Le;n[80]!==r||n[81]!==S?(Le=S!=null&&f.jsxs(Np,{className:"nextLevel",autoFocus:!0,onClick:()=>bp(r,S.id),children:["Next level",f.jsx(Mn,{"aria-hidden":"true"})]}),n[80]=r,n[81]=S,n[82]=Le):Le=n[82];let Xe;n[83]!==ge||n[84]!==Le?(Xe=f.jsxs("div",{className:"resultActions",children:[ge,Le]}),n[83]=ge,n[84]=Le,n[85]=Xe):Xe=n[85];let tt;return n[86]!==B||n[87]!==G||n[88]!==ee||n[89]!==ue||n[90]!==K||n[91]!==Xe||n[92]!==C||n[93]!==q||n[94]!==O?(tt=f.jsxs("section",{className:C,children:[q,O,B,G,ee,ue,K,Xe]}),n[86]=B,n[87]=G,n[88]=ee,n[89]=ue,n[90]=K,n[91]=Xe,n[92]=C,n[93]=q,n[94]=O,n[95]=tt):tt=n[95],tt}function n0(){Ue.state={...Ue.state,screen:"scores"}}function l0(){Ue.state={...Ue.state,screen:"levels"}}function o0(s){return s.scores}function s0(){const s=ve.c(26),{scores:n,scoreError:r,loadedModelId:u,localModels:h}=et(Bt);let m,v,g,S,E,b,p;if(s[0]!==u||s[1]!==h||s[2]!==r||s[3]!==n){const C=new Map(n.filter(h0).map(f0));for(const{id:O,name:H}of h)C.set(O,H);const q=[...Ts.map(c0),...Array.from(C,u0)];S="myLevel",s[11]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsxs("button",{className:"backButton",onClick:r0,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Games"]}),b=f.jsx("h1",{children:"My scores"}),p=f.jsx("p",{children:"Best scores for each model. Shorter successful answers earn more points."}),s[11]=E,s[12]=b,s[13]=p):(E=s[11],b=s[12],p=s[13]),m="scoreContent",s[14]!==r?(v=r!=null&&f.jsx("p",{className:"scoreError",role:"alert",children:r}),s[14]=r,s[15]=v):v=s[15],g=Object.keys(it).map(O=>f.jsx("div",{className:"scoreTable",children:f.jsxs("table",{children:[f.jsx("caption",{children:it[O].name}),f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:"Level"}),q.map(H=>f.jsxs("th",{scope:"col","data-loaded":H.id===u,children:[H.name,f.jsx("small",{children:H.detail})]},H.id))]})}),f.jsx("tbody",{children:it[O].levels.map(H=>f.jsxs("tr",{children:[f.jsxs("th",{scope:"row",children:[f.jsx("span",{children:H.id}),H.title]}),q.map(Q=>{const F=bc(n,Q.id,O,H.id);return f.jsx("td",{"data-loaded":Q.id===u,children:F==null?f.jsx("span",{className:"notPlayed","aria-label":"Not played",children:"—"}):f.jsx("strong",{children:F.best.toLocaleString()})},Q.id)})]},H.id))}),f.jsx("tfoot",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:"Total"}),q.map(H=>f.jsx("td",{"data-loaded":H.id===u,children:Xv(n,H.id,O).toLocaleString()},H.id))]})})]})},O)),s[0]=u,s[1]=h,s[2]=r,s[3]=n,s[4]=m,s[5]=v,s[6]=g,s[7]=S,s[8]=E,s[9]=b,s[10]=p}else m=s[4],v=s[5],g=s[6],S=s[7],E=s[8],b=s[9],p=s[10];let D;s[16]!==m||s[17]!==v||s[18]!==g?(D=f.jsxs("div",{className:m,children:[v,g]}),s[16]=m,s[17]=v,s[18]=g,s[19]=D):D=s[19];let M;return s[20]!==S||s[21]!==E||s[22]!==b||s[23]!==p||s[24]!==D?(M=f.jsxs("section",{className:S,children:[E,b,p,D]}),s[20]=S,s[21]=E,s[22]=b,s[23]=p,s[24]=D,s[25]=M):M=s[25],M}function r0(){Ue.state={...Ue.state,screen:"games"}}function u0(s){const[n,r]=s;return{id:n,name:r,detail:"Local file"}}function c0(s){return{id:s.id,name:`${s.name} ${s.parameters}`,detail:s.quant}}function f0(s){const{modelId:n,modelName:r}=s;return[n,r]}function h0(s){const{modelId:n}=s;return n.startsWith("local:")}const d0={lock:{"2-1":{1:"An identifiable collection place; a full address is not required"},"3-2":{2:"Water quantity, rather than watering frequency"},"5-4":{1:"A request to hear what happens after trying the fix"},"6-1":{3:"How long the two journeys take relative to each other"},"6-2":{2:"How the desk's size conflicts with the available space"},"6-3":{2:"Which proposed dish meets the dietary requirement"},"7-1":{3:"An instruction for looking after the cat's drinking water"},"7-2":{1:"A fix already attempted, rather than a new suggestion"},"7-5":{3:"How the substitution changes the resulting food"},"8-2":{3:"A change to your own use of the shelf to make the arrangement work"},"8-3":{3:"The personal obligation behind the swap, rather than the shift offered in return"},"8-4":{1:"A concrete way for a newcomer to take part, beyond a general welcome"},"8-5":{4:"Consent to publish the photo, separate from permission to receive it"},"9-3":{5:"Whether you would stay there again, rather than when"},"10-4":{5:"An observable way to judge the trial, rather than its hoped-for benefit"},"11-1":{3:"Admission cost, rather than booking instructions",4:"Practical arrangements for people with access needs, rather than the venue's location"},"11-3":{2:"The skill or service you want in return for yours",3:"Equal durations for both contributions, rather than a shared start time"},"11-4":{1:"A factor held constant across the groups for a fair comparison",4:"The procedure for testing the idea, rather than a prediction",5:"An observable result to measure, rather than materials or a prediction"},"11-7":{3:"Supplies participants should bring or can expect to have available"},"11-8":{6:"Help with a particular setup task, rather than general support for the idea"}},signalMixing:{"1-2":{0:"A defined part of the move, rather than a general request for help",1:"How the moving task can still get done if the friend declines"},"1-3":{2:"The noise's effect on you, rather than a judgment about the neighbor"},"2-1":{0:"A specific useful feature of the chart, rather than general praise"},"2-2":{2:"A replacement activity or occasion, beyond a vague intention to stay in touch"},"3-1":{6:"Explaining away the accident to avoid responsibility"},"4-4":{0:"A concrete payment failure, rather than a general concern about skipping tests"},"5-2":{3:"Something observable to track in the trial, rather than an expected benefit"},"5-3":{2:"A specific helpful action you can offer, beyond reassurance"},"6-1":{2:"Whether the proposal changes the amount of work or the price charged for it",3:"Separate pricing for deferred work, rather than including it in today's commitment"},"6-4":{0:"Whether the money is a gift or must be repaid"},"6-5":{0:"A concrete contribution or responsibility supporting the pay request"},"7-2":{3:"Who gets to take part in discussion after the trial"},"7-3":{2:"Work you personally observed, rather than other people's accounts"},"8-2":{3:"Limits on meeting shift preferences, rather than hours or trial length"},"8-5":{6:"Punishment for refusal, rather than explaining the stated safety restriction"},"9-2":{3:"Whether the customer must agree before the workaround is applied"},"9-6":{0:"The newcomer's equal share of the existing total, rather than an extra charge"},"10-2":{4:"Whether the owner controls follow-up contact with the other recipients"},"10-3":{2:"A way to contribute without gaining power over speaker selection",6:"Future decision-making power, even if conditional, rather than a chance to give feedback"},"10-5":{3:"Practical help with the presentation, rather than praise for accepting"},"11-4":{11:"Treating the pending accessibility review as already passed"},"11-5":{7:"Special treatment for a donation, even through an indirect or private exception"},"11-6":{11:"Denying or giving away credit for your own real work"}}},m0={Entitlement:"Claiming an automatic right to special treatment, rather than making a request","Threats for refusing":"Punishment for saying no, rather than a practical limit on your resources","Guilt trips":"Framing refusal as a failure of care or loyalty","Personal attacks":"Judging someone's character or worth, rather than their work or behavior","Blame shifting":"Assigning fault to someone else instead of accepting your part",Excuses:"Explaining away a mistake to avoid responsibility","Minimizing harm":"Dismissing a problem or its effects as unimportant","False certainty":"Guaranteeing an uncertain result, rather than committing to an action","Assumed motives":"Attributing bad intentions, rather than describing what happened","Promises beyond the limits":"An unconditional commitment beyond the message's stated limits","Sales pressure":"Using urgency or scarcity to push someone into agreeing","Pity or patronizing":"Treating someone as incapable of deciding for themselves","Dodging the issue":"Deflecting attention from the specific concern without addressing it","Assumed consent":"Proceeding as though permission was given, even if the message also asks politely",Stigma:"Judging someone's worth by their identity or private circumstances","Positive spin":"Presenting a setback or loss of service as good news","Pressure to disclose":"Making help or participation depend on revealing private information","Claimed consensus":"Presenting everyone's agreement as established","Secondhand claims":"Repeating assessments of work or events you did not personally observe","Leaking by hint":"Giving clues that reveal confidential information indirectly","A broad proof claim":"Treating a limited result as proof beyond the situations tested","Pretend validation":"Presenting the proposed larger study as already completed","Exposure as payment":"Offering publicity in place of compensation for work"};function _p(s,n){return n.labels.map((r,u)=>d0[s][n.id]?.[u]??(u>=n.goalCount?m0[r]:void 0))}function p0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M10.588 6.413Q10 5.825 10 5t.588-1.412T12 3t1.413.588T14 5t-.587 1.413T12 7t-1.412-.587m.35 14.15q-.438-.438-.438-1.063v-9q0-.625.438-1.062T12 9t1.063.438t.437 1.062v9q0 .625-.437 1.063T12 21t-1.062-.437"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function g0(s){const n=ve.c(25),{label:r,description:u}=s,h=re.useId();let m;n[0]!==h?(m=h.replaceAll(":",""),n[0]=h,n[1]=m):m=n[1];const v=`--meter-help-${m}`,g=re.useRef(null),S=re.useRef(null),E=re.useRef(null),[b,p]=re.useState(!1);let D;n[2]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{S.current?.dispose(),E.current?.dispose(),g.current==null&&qn.flushSync(()=>p(!0)),g.current?.showPopover()},n[2]=D):D=n[2];const M=D;let C,q;n[3]===Symbol.for("react.memo_cache_sentinel")?(C=()=>()=>{S.current?.dispose(),E.current?.dispose()},q=[],n[3]=C,n[4]=q):(C=n[3],q=n[4]),re.useEffect(C,q);let O,H;n[5]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{S.current?.dispose(),g.current?.matches(":popover-open")||(S.current=new jl(M,250))},H=K=>{S.current?.dispose(),K.currentTarget.matches(":focus-within")||g.current?.hidePopover()},n[5]=O,n[6]=H):(O=n[5],H=n[6]);let Q;n[7]===Symbol.for("react.memo_cache_sentinel")?(Q=K=>{K.currentTarget.matches(":hover")||g.current?.hidePopover()},n[7]=Q):Q=n[7];let F;n[8]!==v?(F={anchorName:v},n[8]=v,n[9]=F):F=n[9];const $=`About ${r}`,V=b?h:void 0,B=b?h:void 0;let G;n[10]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsx(p0,{"aria-hidden":"true"}),n[10]=G):G=n[10];let L;n[11]!==u||n[12]!==V||n[13]!==B||n[14]!==F||n[15]!==$?(L=f.jsx("button",{type:"button",style:F,"aria-label":$,"aria-description":u,"aria-describedby":V,popoverTarget:B,popoverTargetAction:"show",onClick:M,children:G}),n[11]=u,n[12]=V,n[13]=B,n[14]=F,n[15]=$,n[16]=L):L=n[16];let ee;n[17]!==v||n[18]!==u||n[19]!==h||n[20]!==b?(ee=b&&f.jsx("span",{ref:g,id:h,className:"meterTooltip",style:{positionAnchor:v},role:"tooltip",popover:"auto",onToggle:K=>{E.current?.dispose(),K.newState==="closed"&&(E.current=new jl(()=>p(!1),2e3))},children:u}),n[17]=v,n[18]=u,n[19]=h,n[20]=b,n[21]=ee):ee=n[21];let ue;return n[22]!==L||n[23]!==ee?(ue=f.jsxs("span",{className:"meterHelp",onPointerEnter:O,onPointerLeave:H,onFocus:M,onBlur:Q,children:[L,ee]}),n[22]=L,n[23]=ee,n[24]=ue):ue=n[24],ue}function Ep(s){const n=ve.c(24),{game:r,goalCount:u,labels:h,probabilities:m,descriptions:v}=s;let g;if(n[0]!==r||n[1]!==u||n[2]!==h){let D;n[4]!==r||n[5]!==u?(D=(M,C)=>`${C===0?"var(--game-meter-first-heading-rows)":r==="signalMixing"&&C===u?"var(--game-meter-divider-row) var(--game-meter-heading-rows)":"var(--game-meter-spacing-row)"} var(--game-meter-rows)`,n[4]=r,n[5]=u,n[6]=D):D=n[6],g=h.map(D).join(" "),n[0]=r,n[1]=u,n[2]=h,n[3]=g}else g=n[3];const S=g;let E;n[7]!==S?(E={gridTemplateRows:S},n[7]=S,n[8]=E):E=n[8];let b;if(n[9]!==v||n[10]!==r||n[11]!==u||n[12]!==h||n[13]!==m){let D;n[15]!==v||n[16]!==r||n[17]!==u||n[18]!==m?(D=(M,C)=>{const q=m[C],O=v[C],H=r==="lock"?Cl:C<u?ci.min:void 0,Q=r==="signalMixing"&&C>=u?ci.other:void 0,F=q!=null&&(H==null||q>=H)&&(Q==null||q<Q),$=r==="signalMixing"&&C===u;return f.jsxs(re.Fragment,{children:[C===0||$?f.jsx("h2",{className:"meterSectionHeading","data-start-risks":$,children:f.jsx("span",{children:$?"Risks":"Goals"})}):f.jsx("div",{className:"meterGap","aria-hidden":"true"}),f.jsxs("div",{className:"gameMeter","data-target":F,children:[f.jsxs("div",{className:"meterHeading",children:[f.jsxs("span",{className:"meterLabel",children:[r==="lock"&&f.jsx("span",{className:"lockNumber",children:C+1}),f.jsxs("span",{className:"labelText",children:[M,O!=null&&f.jsx(g0,{label:M,description:O})]})]}),f.jsx("strong",{children:q==null?"—":`${(q*100).toFixed(1)}%`})]}),f.jsxs("div",{className:"meterBar",children:[f.jsx(Hi,{value:q??0,label:M}),H!=null&&f.jsx("span",{className:"threshold","data-bound":"minimum",style:{left:`${H*100}%`},"aria-hidden":"true"}),Q!=null&&f.jsx("span",{className:"threshold","data-bound":"maximum",style:{left:`${Q*100}%`},"aria-hidden":"true"})]})]})]},M)},n[15]=v,n[16]=r,n[17]=u,n[18]=m,n[19]=D):D=n[19],b=h.map(D),n[9]=v,n[10]=r,n[11]=u,n[12]=h,n[13]=m,n[14]=b}else b=n[14];let p;return n[20]!==r||n[21]!==E||n[22]!==b?(p=f.jsx("div",{className:"gameMeterList","data-game":r,style:E,children:b}),n[20]=r,n[21]=E,n[22]=b,n[23]=p):p=n[23],p}const vs=3e3,wc={lock:{limit:40,steps:[{text:"My cat",probabilities:[.9,.1,.08],caption:"Mention an animal to pass the first threshold"},{text:"My cat is stuck",probabilities:[.94,.32,.38],caption:"A problem alone does not ask for help"},{text:"My cat is stuck. Please help",probabilities:[.96,.91,.42],caption:"Ask for help to open the second lock"},{text:"My cat is stuck. Please help now!",probabilities:[.96,.94,.92],caption:"Add urgency to get every bar past its target"}]},signalMixing:{limit:150,steps:[{text:"Could I",probabilities:[261e-6,3e-6,.012399,248e-6],caption:"Start a request"},{text:"Could I borrow your charger?",probabilities:[.999998,2e-6,.001228,51e-6],caption:"Ask for the charger; a little thanks is still missing"},{text:"Could I borrow your charger? Thanks",probabilities:[.999998,.999446,.001262,7e-5],caption:"Add thanks while keeping entitlement and ultimatums low"}]}};function y0(s,n){const r=wc[s],u=Math.min(r.steps.length-1,Math.floor(Math.max(0,n)/vs)),h=r.steps[u],m=r.steps[u-1],v=Math.floor(Math.max(0,n-u*vs-350)/65),g=h.text.slice(0,(m?.text.length??0)+v);return{document:g,probabilities:g===h.text?h.probabilities:m?.probabilities??h.probabilities.map(()=>0),caption:h.caption}}const ri=new ya({elapsed:0,playing:!1});function v0(s){const n=ve.c(19),{game:r,active:u}=s,h=et(ri),m=wc[r],v=m.steps.length*vs,g=y0(r,h.elapsed),S={...it[r].levels[0].rounds[0],limit:m.limit},E=ws(r,S,g.document,g.probabilities);let b,p;n[0]!==u||n[1]!==v?(b=()=>{const Q=matchMedia("(prefers-reduced-motion: reduce)"),F=()=>{Q.matches&&(ri.state={elapsed:v,playing:!1})};return u?ri.state={elapsed:Q.matches?v:0,playing:!Q.matches}:ri.state={...ri.state,playing:!1},Q.addEventListener("change",F),()=>Q.removeEventListener("change",F)},p=[u,v],n[0]=u,n[1]=v,n[2]=b,n[3]=p):(b=n[2],p=n[3]),re.useEffect(b,p);let D;n[4]!==u||n[5]!==v||n[6]!==h.elapsed||n[7]!==h.playing?(D=()=>{if(!u||!h.playing)return;const Q=performance.now(),F=new jl(()=>{const $=Math.min(v,h.elapsed+performance.now()-Q);ri.state={elapsed:$,playing:$<v}},65);return()=>F.dispose()},n[4]=u,n[5]=v,n[6]=h.elapsed,n[7]=h.playing,n[8]=D):D=n[8];let M;n[9]!==u||n[10]!==v||n[11]!==h?(M=[u,v,h],n[9]=u,n[10]=v,n[11]=h,n[12]=M):M=n[12],re.useEffect(D,M);let C;n[13]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx("span",{className:"demoLabel",children:"Your message"}),n[13]=C):C=n[13];let q;n[14]!==h.playing?(q=f.jsx("span",{className:"caret","data-playing":h.playing,"aria-hidden":"true"}),n[14]=h.playing,n[15]=q):q=n[15];let O;n[16]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx(ys,{}),n[16]=O):O=n[16];let H;return n[17]!==g.caption?(H=f.jsx("figcaption",{children:g.caption}),n[17]=g.caption,n[18]=H):H=n[18],f.jsxs("figure",{className:"gameDemo","aria-label":"Example round",children:[f.jsxs("div",{className:"demoScene",children:[f.jsxs("div",{className:"demoDocument",children:[C,f.jsxs("div",{className:"demoSentence",children:[g.document,q]}),f.jsxs("div",{className:"demoFooter",children:[f.jsxs("span",{className:"demoSuccess","data-won":E,children:[O,r==="lock"?"Unlocked":"Balanced"]}),f.jsxs("span",{children:[g.document.length," / ",m.limit," characters"]})]})]}),f.jsx("div",{className:"demoMeters",children:f.jsx(Ep,{game:r,goalCount:S.goalCount,labels:S.labels,probabilities:g.probabilities,descriptions:_p(r,S)})})]}),H]})}function b0(s){const n=ve.c(13),{game:r}=s,u=et(ri),h=wc[r].steps.length*vs,m=u.elapsed/h*100,v=`${m}% 100%`;let g;n[0]!==v?(g={backgroundSize:v},n[0]=v,n[1]=g):g=n[1];let S;n[2]!==m?(S=Math.round(m),n[2]=m,n[3]=S):S=n[3];const E=`Demo progress: ${S}%`;let b;n[4]!==h||n[5]!==u.elapsed||n[6]!==u.playing?(b=()=>{ri.state={elapsed:u.elapsed>=h?0:u.elapsed,playing:!u.playing}},n[4]=h,n[5]=u.elapsed,n[6]=u.playing,n[7]=b):b=n[7];const p=u.playing?"Pause demo":u.elapsed>=h?"Replay demo":"Play demo";let D;return n[8]!==g||n[9]!==E||n[10]!==b||n[11]!==p?(D=f.jsx("button",{className:"gameDemoPlayback",style:g,"aria-description":E,onClick:b,children:p}),n[8]=g,n[9]=E,n[10]=b,n[11]=p,n[12]=D):D=n[12],D}function w0(s){const n=ve.c(31),{game:r,ready:u}=s,h=et(Ml),m=re.useRef(null),v=re.useRef(null),g=re.useId(),S=re.useId(),E=h===r&&u;let b,p;n[0]!==E?(b=()=>{E?(m.current?.showModal(),v.current?.focus()):m.current?.close()},p=[E],n[0]=E,n[1]=b,n[2]=p):(b=n[1],p=n[2]),re.useEffect(b,p);let D;n[3]!==r||n[4]!==u?(D=()=>{u&&Ml.state===r&&$v(r)},n[3]=r,n[4]=u,n[5]=D):D=n[5];const M=it[r];let C;n[6]!==g||n[7]!==M.name?(C=f.jsx("h2",{id:g,children:M.name}),n[6]=g,n[7]=M.name,n[8]=C):C=n[8];let q;n[9]!==r?(q=r==="lock"?f.jsxs(f.Fragment,{children:["Read the brief and write a message that meets every goal. Get every bar to ",Cl*100,"% or more while staying within the character limit."]}):f.jsxs(f.Fragment,{children:["Read the brief and write a message that achieves every goal. Get each goal to ",ci.min*100,"% or more and keep each risk below ",ci.other*100,"%. Revise your wording to balance clarity, tact, and the character limit."]}),n[9]=r,n[10]=q):q=n[10];let O;n[11]!==S||n[12]!==q?(O=f.jsx("p",{id:S,children:q}),n[11]=S,n[12]=q,n[13]=O):O=n[13];let H;n[14]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsx("p",{children:"Shorter answers earn more points. Finish every round to save your level score for this model."}),n[14]=H):H=n[14];let Q;n[15]!==r||n[16]!==E?(Q=f.jsx(v0,{game:r,active:E}),n[15]=r,n[16]=E,n[17]=Q):Q=n[17];let F;n[18]!==r?(F=f.jsx(b0,{game:r}),n[18]=r,n[19]=F):F=n[19];let $;n[20]===Symbol.for("react.memo_cache_sentinel")?($=f.jsx("button",{className:"startButton",ref:v,onClick:()=>m.current?.close(),children:"Start playing"}),n[20]=$):$=n[20];let V;n[21]!==F?(V=f.jsxs("div",{className:"dialogActions",children:[F,$]}),n[21]=F,n[22]=V):V=n[22];let B;return n[23]!==S||n[24]!==g||n[25]!==V||n[26]!==D||n[27]!==C||n[28]!==O||n[29]!==Q?(B=f.jsxs("dialog",{className:"gameHelpDialog",ref:m,"aria-labelledby":g,"aria-describedby":S,onClose:D,children:[C,O,H,Q,V]}),n[23]=S,n[24]=g,n[25]=V,n[26]=D,n[27]=C,n[28]=O,n[29]=Q,n[30]=B):B=n[30],B}const T0={lock:[{compactQuick:"A few words straight to the point",compactClear:"Small message with a strong signal",compact:"Every word pulling its weight",quickClear:"Instantly understood",quick:"You found your words quickly",clear:"Your meaning comes through clearly",balanced:"Every part of the message lands",close:"Just enough to get your meaning across",persistent:"You found a way to be understood",detailed:"A fully expressed thought",finish:"A clear finish to your first challenge",steady:"Your message gets through"},{compactQuick:"A clear request in no time",compactClear:"A small message with everything needed",compact:"All the essentials in a few words",quickClear:"Quickly made actionable",quick:"Straight to what matters",clear:"Nothing needed is left unsaid",balanced:"Every useful detail in balance",close:"Just enough detail to act on",persistent:"You worked out what to say",detailed:"Room for every useful detail",finish:"A complete set of clear messages",steady:"Ready for someone to act on"},{compactQuick:"A reason delivered without delay",compactClear:"A short message with solid reasoning",compact:"The reason without the extra words",quickClear:"Your reasoning lands immediately",quick:"Quick thinking with a clear cause",clear:"The why comes through strongly",balanced:"Purpose and reason evenly matched",close:"Your reasoning clears every bar",persistent:"You found the connection that works",detailed:"The whole explanation fits",finish:"A well-reasoned finish",steady:"A message with a clear why"},{compactQuick:"A plan made clear in a few beats",compactClear:"A compact plan with solid footing",compact:"A whole plan in very few words",quickClear:"Quick planning with clear intent",quick:"You put the plan together quickly",clear:"Every part of the plan is clear",balanced:"All the moving parts line up",close:"The plan clears every condition",persistent:"Your planning paid off",detailed:"Every step has room to land",finish:"A neatly planned finish",steady:"A plan that holds together"},{compactQuick:"A useful response without hesitation",compactClear:"A small message with real substance",compact:"Responsibility without excess words",quickClear:"A clear response right away",quick:"Quickly found the right response",clear:"Every part of your response lands",balanced:"Responsibility and action in balance",close:"Just enough to put things right",persistent:"You worked toward a useful response",detailed:"A complete and thoughtful response",finish:"A constructive finish",steady:"A useful way forward"},{compactQuick:"A quick solution in a small space",compactClear:"Compact wording with a strong balance",compact:"Room for both in very few words",quickClear:"A clear balance found quickly",quick:"You weighed it up quickly",clear:"Every side comes through clearly",balanced:"A remarkably even balance",close:"A balance that just clears the bars",persistent:"You found a way to make it work",detailed:"Enough room for every side",finish:"A well-balanced finish",steady:"Both sides have a place"},{compactQuick:"Useful details in a quick little message",compactClear:"Strong signals in a small space",compact:"Useful details without the word count",quickClear:"Clear signals right away",quick:"You fitted the details in quickly",clear:"Every useful detail stands out",balanced:"Useful details pulling together",close:"All the details just clear",persistent:"You made room for every detail",detailed:"The full picture fits",finish:"A complete set of useful details",steady:"Nothing essential left behind"},{compactQuick:"A tactful answer without delay",compactClear:"A short message with a sure touch",compact:"Tact without the extra words",quickClear:"A clear way through found quickly",quick:"Quick thinking with a careful touch",clear:"Every intention comes through clearly",balanced:"Careful wording in good balance",close:"A delicate balance that holds",persistent:"You found the right approach",detailed:"Enough room for a thoughtful answer",finish:"A considerate finish",steady:"A careful choice of words"},{compactQuick:"Six signals in a quick little message",compactClear:"Six strong signals in a small space",compact:"Six conditions without the sprawl",quickClear:"Six clear matches right away",quick:"You assembled all six quickly",clear:"Every one of the six stands out",balanced:"Six conditions in harmony",close:"All six just over the line",persistent:"You brought all six together",detailed:"A complete six-part message",finish:"Six moving parts brought home",steady:"All six working together"},{compactQuick:"A fast edit with very little left over",compactClear:"Lean wording with a strong signal",compact:"Every word earns its place",quickClear:"A precise edit without hesitation",quick:"You found the short route quickly",clear:"The meaning survived the edit",balanced:"Six signals in a lean balance",close:"Trimmed close without losing the match",persistent:"Your careful editing paid off",detailed:"Every available word put to use",finish:"A sharp finish to the editing challenge",steady:"A message worth its word count"},{compactQuick:"A swift finish in remarkably few words",compactClear:"A compact answer with masterful clarity",compact:"A final edit without excess",quickClear:"Seven clear matches at a glance",quick:"You found the final wording quickly",clear:"A strong answer to a demanding brief",balanced:"Seven intentions in fine balance",close:"A narrow path through all seven",persistent:"You worked this one into shape",detailed:"A demanding brief fully answered",finish:"A fitting final edit",steady:"A well-crafted answer"}],signalMixing:[{compactQuick:"A little tact goes a long way",compactClear:"A small request with room to breathe",compact:"No spare words and no arm twisting",quickClear:"A clear request without the pressure",quick:"Straight to the considerate version",clear:"The ask lands without leaning",balanced:"Your case and their choice both stand",close:"A request just inside the lines",persistent:"You found the courteous angle",detailed:"Every word gives the other person room",finish:"A tactful opening round complete",steady:"Firm enough to ask and kind enough to hear no"},{compactQuick:"A few words take the edge off",compactClear:"Direct feedback in a gentle package",compact:"Friction without the extra heat",quickClear:"A useful message without hesitation",quick:"You found the constructive angle quickly",clear:"The issue is clear and the person respected",balanced:"Candor and kindness share the page",close:"Direct without going over the edge",persistent:"You found a way to be useful",detailed:"The problem and the next step both fit",finish:"A constructive finish to a tricky conversation",steady:"No sugar coating and no sting"},{compactQuick:"Quick to own it and short on excuses",compactClear:"A compact apology with real repair",compact:"Responsibility without the extra baggage",quickClear:"A clear way to make it right",quick:"You reached for responsibility first",clear:"The repair matches the mistake",balanced:"Ownership and action in balance",close:"Accountability just clears the line",persistent:"You worked through the awkward part",detailed:"Enough room for the whole repair",finish:"A responsible finish",steady:"The buck stops in the right place"},{compactQuick:"A quick boundary with a useful opening",compactClear:"A small message with a sturdy boundary",compact:"A limit without a lecture",quickClear:"The limit and the route are both clear",quick:"You found the helpful no quickly",clear:"The boundary holds without a threat",balanced:"A firm limit with a genuine option",close:"Right on the edge of firm and fair",persistent:"You found a route around the constraint",detailed:"Every condition has room to land",finish:"A finish with boundaries intact",steady:"No blank cheque and no closed door"},{compactQuick:"A quick answer that leaves uncertainty intact",compactClear:"A few words with honest limits",compact:"Confidence without extra certainty",quickClear:"The known and unknown are clear at once",quick:"You found the honest answer quickly",clear:"Useful without pretending to know",balanced:"Reassurance and realism in balance",close:"Just enough confidence without a guarantee",persistent:"You resisted the easy overpromise",detailed:"The caveats earn their space",finish:"A clear-eyed finish",steady:"A promise about actions instead of outcomes"},{compactQuick:"A small proposal with a quick tradeoff",compactClear:"A compact bargain that respects both sides",compact:"Less text without losing the terms",quickClear:"The tradeoff lands immediately",quick:"You found another dimension to negotiate",clear:"The deal is clear without a squeeze",balanced:"Both sides keep something that matters",close:"The terms just clear every boundary",persistent:"You found the shape of a fair proposal",detailed:"The details make the offer usable",finish:"A negotiated finish with room for choice",steady:"No discount on the other person's agency"},{compactQuick:"A useful message without a loose detail",compactClear:"A few words with trust intact",compact:"Information shared on a need-to-know basis",quickClear:"The handoff is clear and the secret safe",quick:"You found what could be shared quickly",clear:"Useful without exposing someone",balanced:"Clarity and privacy in balance",close:"Enough said without saying too much",persistent:"You found the right information boundary",detailed:"Every shared detail has a purpose",finish:"A discreet and useful finish",steady:"The person stays bigger than the backstory"},{compactQuick:"Two audiences reached in a few beats",compactClear:"One small message with room for both",compact:"No extra words between two perspectives",quickClear:"Both audiences can act immediately",quick:"You found the shared language quickly",clear:"The same message works for both sides",balanced:"Different needs kept in view",close:"A shared message just inside the lines",persistent:"You found words both sides can use",detailed:"Enough space for two legitimate needs",finish:"A finish that leaves nobody outside",steady:"One message without one side disappearing"},{compactQuick:"A short plan with its contingencies ready",compactClear:"A compact plan that can change course",compact:"Fewer words without losing a branch",quickClear:"The fallback is clear from the start",quick:"You found a workable route quickly",clear:"The plan survives its first surprise",balanced:"Action and permission stay aligned",close:"Every branch just clears the threshold",persistent:"You worked out the dependencies",detailed:"The extra words make the plan executable",finish:"A finish with the fallback covered",steady:"A plan with somewhere safe to go next"},{compactQuick:"A quick correction without an escape clause",compactClear:"A compact message with the hard part intact",compact:"The nuance survived the edit",quickClear:"The difficult distinction lands clearly",quick:"You found the narrow path quickly",clear:"Precise without becoming evasive",balanced:"Candor and care hold their ground",close:"A narrow passage cleanly navigated",persistent:"You stayed with the difficult wording",detailed:"The nuance earns every extra character",finish:"A principled finish",steady:"No convenient omission needed"},{compactQuick:"A full balancing act in a few quick lines",compactClear:"A compact answer with every tension intact",compact:"Every word has more than one job",quickClear:"The whole situation comes into focus",quick:"You found the responsible route quickly",clear:"A complete message that holds together",balanced:"Evidence and empathy keep their balance",close:"Every line held at once",persistent:"The hard revision paid off",detailed:"The space is doing real work",finish:"A finish worthy of the full brief",steady:"Clear enough to act on and careful enough to trust"}]},S0={lock:[["A small emergency clearly expressed","A lift with a fair offer","A homemade offer worth accepting"],["A parcel ready to collect","A good read passed along","A borrowed tool with a way back"],["A route around the problem","A fern in good hands","More reading time with a clear return"],["A screening saved from the rain","A cake ready for its next stop","A guest with the key details","A rehearsal ready to happen"],["The right sandwich within reach","A notebook with its story restored","Everyone headed for the right room","A useful next step through the freeze"],["Two ways to town clearly weighed","A desk with its tradeoff in view","Lunch ready for a vote","A gift with room to choose"],["Your cat has a useful sitter note","A lamp repair ready to hand over","The next shift knows the stall","A book discussion ready to happen","A recipe ready for its substitute"],["Fresh air with a closing time","A shelf with room for both","A shift swap with something in return","A game with a place for everyone","A photo exchange with permission"],["A photo show worth a visit","A little garden from what you have","A useful review with room to improve","A walk with stories at both stops","A neighborhood ready to repair","A birthday planned around the person"],["A bench that fits the budget","A shorter workshop with its purpose intact","One meal with room for both guests","A sharing idea ready for a trial","A first hike made welcoming","A book swap ready to open"],["A cinema ready for one night","A little shop with a clear welcome","A fair trade in useful skills","An experiment ready to test","Everyday things with stories to tell","Two stops worth the journey","A club with a place for new people","A good idea ready for the street"]],signalMixing:[["A little courtesy to recharge with","A favor with a genuine way out","A quieter night without a character judgment"],["Feedback somebody can use","A no that leaves the door open","A payment reminder without an accusation"],["A broken mug with a real repair","The right names beside the work","A delay without a made-up deadline"],["A priority choice with its consequence","A remedy inside the real policy","Help with office hours attached","Disagreement with a practical alternative"],["A status update with the unknowns intact","A pilot kept in proportion","Support without a diagnosis","A recommendation with its drawbacks visible"],["A smaller scope at a fair rate","A deadline traded against scope","Two needs without a winner and loser","A gift without an emotional invoice","A raise without the ransom"],["A handoff without a private history","A behavior addressed without exposing a person","A reference inside firsthand knowledge","A launch that keeps its confidence","Support without a diagnosis at the door"],["A closure notice both audiences can use","A trial without a decision in disguise","Thanks without selling the program","A correction with a usable route","A welcome that respects the safety rule"],["A picnic with a budget and a backup","A delivery plan that can survive a delay","A launch with the review in the right place","A queue that uses the same rule for everyone","A trial with a way back","A shared bill with agreement before refunds"],["A headline brought back to its evidence","A repair without buying forgiveness","A funding boundary with an ethical route","A warning without an invented culprit","An opportunity without unpaid debt","A gain acknowledged without excluding anyone"],["A pay review with a real decision point","An incident report without a scapegoat","Two reasonable people with a workable plan","A launch with evidence and a stop rule","A donation that cannot buy a place","The whole team back in the picture","A hard change without a soft lie","Every signal given its due"]]};function D0(s,n,r,u,h,m){if(!ws(s,r,u,h))return;const v=Ri(u)/r.limit,g=h.slice(0,r.goalCount),S=h.map((H,Q)=>s==="lock"?H-Cl:Q<r.goalCount?H-ci.min:ci.other-H),E=Math.min(...S),b=E>=.18,p=v<=.45,D=m<=(25+r.labels.length*6)*1e3,M=Math.max(...g)-Math.min(...g)<=.06&&E>=.08,C=n.rounds.indexOf(r);let q;E<.035?q="close":p&&D?q="compactQuick":p&&b?q="compactClear":p?q="compact":D&&b?q="quickClear":D?q="quick":m>=15e4?q="persistent":b?q="clear":M?q="balanced":v>.82?q="detailed":C===n.rounds.length-1?q="finish":q="steady";const O=Array.from(u).reduce((H,Q)=>H+Q.codePointAt(0),C)%3;if(O===0&&["clear","steady","finish"].includes(q))return S0[s][n.id-1][C];if(O===0&&q==="balanced")return`All ${g.length} ${s==="lock"?"conditions":"goals"} in balance`;if(O===0&&q==="close"&&s==="signalMixing"){const H=S.indexOf(E);return H<r.goalCount?`Just over the line: ${r.labels[H]}`:`${r.labels[H]} kept below the line`}return T0[s][n.id-1][q]}function A0({won:s,game:n,level:r,round:u,document:h,result:m,startedAt:v}){const[g]=re.useState(()=>new ya("",{queueEvents:!1})),S=et(g);return re.useEffect(()=>{s&&(g.state=D0(n,r,u,h,gc(m),v==null?1/0:performance.now()-v)??"")},[s,n,r,u,h,m,v,g]),f.jsx("span",{className:"roundFeedback",role:"status","aria-hidden":!s,"data-visible":s&&S!=="",children:S})}function x0(s){const n=ve.c(110),{game:r,level:u,modelId:h,draft:m}=s,v=et(ui.state),g=u.rounds[m.answers.length],S=_0;let E,b,p,D;if(n[0]!==m.document||n[1]!==v.error||n[2]!==v.result||n[3]!==r||n[4]!==h||n[5]!==g){const St=pc(h,g,m.document);b=v.result;let la;n[10]!==h||n[11]!==b||n[12]!==g.questions?(la=b!=null&&b.request.modelId===h&&JSON.stringify([b.request.input,...b.request.additionalInputs??[]].map(N0))===JSON.stringify(g.questions),n[10]=h,n[11]=b,n[12]=g.questions,n[13]=la):la=n[13],p=la,E=gc(p?b:void 0),D=b!=null&&JSON.stringify(b.request)===JSON.stringify(St)&&v.error==null&&ws(r,g,m.document,E),n[0]=m.document,n[1]=v.error,n[2]=v.result,n[3]=r,n[4]=h,n[5]=g,n[6]=E,n[7]=b,n[8]=p,n[9]=D}else E=n[6],b=n[7],p=n[8],D=n[9];const M=D,C=Ri(m.document),q=it[r];let O;n[14]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx("div",{className:"spacer"}),n[14]=O):O=n[14];let H;n[15]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsxs("button",{className:"backButton",onClick:S,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Levels"]}),n[15]=H):H=n[15];const Q=it[r],F=m.answers.length+1;let $;n[16]!==u.id||n[17]!==u.rounds.length||n[18]!==F?($=f.jsxs("span",{className:"roundCount",children:["Level ",u.id," · Round ",F," / ",u.rounds.length]}),n[16]=u.id,n[17]=u.rounds.length,n[18]=F,n[19]=$):$=n[19];let V;n[20]!==Q.name||n[21]!==$?(V=f.jsxs("div",{className:"gameHeading",children:[H,f.jsxs("span",{children:[Q.name," · ",$]})]}),n[20]=Q.name,n[21]=$,n[22]=V):V=n[22];let B;n[23]!==g.title?(B=f.jsx("h1",{children:g.title}),n[23]=g.title,n[24]=B):B=n[24];let G;n[25]!==g.brief?(G=g.brief!=null&&f.jsx("p",{id:"roundBrief",children:g.brief}),n[25]=g.brief,n[26]=G):G=n[26];let L;n[27]!==G||n[28]!==B?(L=f.jsx("div",{className:"roundHeader",children:f.jsxs("div",{className:"roundIntro",children:[B,G]})}),n[27]=G,n[28]=B,n[29]=L):L=n[29];let ee;n[30]===Symbol.for("react.memo_cache_sentinel")?(ee=f.jsx("label",{className:"writingHeading",htmlFor:"gameDocument",children:"Your message"}),n[30]=ee):ee=n[30];const ue=g.brief==null?"characterLimit":"roundBrief characterLimit",K=h==null;let Z;n[31]!==m.startedAt||n[32]!==r||n[33]!==u.id||n[34]!==h||n[35]!==g.limit?(Z=St=>Ui(h,r,u.id,{startedAt:m.startedAt??performance.now(),document:Array.from(St.target.value).slice(0,g.limit).join("")}),n[31]=m.startedAt,n[32]=r,n[33]=u.id,n[34]=h,n[35]=g.limit,n[36]=Z):Z=n[36];let le;n[37]!==m.document||n[38]!==ue||n[39]!==K||n[40]!==Z?(le=f.jsx("textarea",{id:"gameDocument","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:m.document,autoFocus:!0,placeholder:"Make every character count…","aria-describedby":ue,spellCheck:!1,disabled:K,onChange:Z}),n[37]=m.document,n[38]=ue,n[39]=K,n[40]=Z,n[41]=le):le=n[41];const W=C>=g.limit;let se;n[42]!==C||n[43]!==g.limit||n[44]!==W?(se=f.jsx("div",{className:"writingFooter",children:f.jsxs("span",{id:"characterLimit",className:"characterBudget","data-full":W,children:[C," / ",g.limit," characters"]})}),n[42]=C,n[43]=g.limit,n[44]=W,n[45]=se):se=n[45];let X;n[46]!==le||n[47]!==se?(X=f.jsxs("div",{className:"writingArea",children:[ee,le,se]}),n[46]=le,n[47]=se,n[48]=X):X=n[48];const I=v.running,te=g.goalCount,ke=g.labels;let ge;n[49]!==r||n[50]!==g?(ge=_p(r,g),n[49]=r,n[50]=g,n[51]=ge):ge=n[51];let Le;n[52]!==r||n[53]!==E||n[54]!==g.goalCount||n[55]!==g.labels||n[56]!==ge?(Le=f.jsx("div",{className:"gameMeterViewport",children:f.jsx(Ep,{game:r,goalCount:te,labels:ke,probabilities:E,descriptions:ge})}),n[52]=r,n[53]=E,n[54]=g.goalCount,n[55]=g.labels,n[56]=ge,n[57]=Le):Le=n[57];let Xe;n[58]!==b||n[59]!==p?(Xe=p?f.jsxs(f.Fragment,{children:[b.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}):"—",n[58]=b,n[59]=p,n[60]=Xe):Xe=n[60];let tt;n[61]!==Xe?(tt=f.jsx("div",{className:"gameTiming","aria-label":"Decision time",children:f.jsx("strong",{children:Xe})}),n[61]=Xe,n[62]=tt):tt=n[62];let T;n[63]!==v.error||n[64]!==v.running?(T=v.error!=null&&f.jsxs("div",{className:"gameError",role:"alert",children:[v.error,f.jsx("button",{onClick:k0,disabled:v.running,children:"Retry"})]}),n[63]=v.error,n[64]=v.running,n[65]=T):T=n[65];let Y;n[66]!==v.running||n[67]!==Le||n[68]!==tt||n[69]!==T?(Y=f.jsxs("div",{className:"gameMeters","aria-label":"Live results","aria-busy":I,children:[Le,tt,T]}),n[66]=v.running,n[67]=Le,n[68]=tt,n[69]=T,n[70]=Y):Y=n[70];let P;n[71]!==X||n[72]!==Y?(P=f.jsxs("div",{className:"gameBoard",children:[X,Y]}),n[71]=X,n[72]=Y,n[73]=P):P=n[73];let ie;n[74]!==r?(ie=f.jsx("button",{className:"howToPlay",onClick:()=>{Ml.state=r},children:"How to play"}),n[74]=r,n[75]=ie):ie=n[75];let ye;n[76]!==m.document||n[77]!==m.startedAt||n[78]!==r||n[79]!==u||n[80]!==b||n[81]!==g||n[82]!==M?(ye=f.jsx(A0,{won:M,game:r,level:u,round:g,document:m.document,result:b,startedAt:m.startedAt}),n[76]=m.document,n[77]=m.startedAt,n[78]=r,n[79]=u,n[80]=b,n[81]=g,n[82]=M,n[83]=ye):ye=n[83];const Te=!M;let Se;n[84]!==m.answers.length||n[85]!==r||n[86]!==u.id||n[87]!==u.rounds.length||n[88]!==h?(Se=()=>{document.startViewTransition({types:[m.answers.length===u.rounds.length-1?"level-result":"next-round"],update:()=>qn.flushSync(()=>uv(h,r,u.id,ui.state.state))})},n[84]=m.answers.length,n[85]=r,n[86]=u.id,n[87]=u.rounds.length,n[88]=h,n[89]=Se):Se=n[89];const ne=m.answers.length===u.rounds.length-1?"Finish level":"Next round";let he;n[90]===Symbol.for("react.memo_cache_sentinel")?(he=f.jsx("span",{"aria-hidden":"true",children:" →"}),n[90]=he):he=n[90];let pt;n[91]!==Te||n[92]!==Se||n[93]!==ne?(pt=f.jsxs(Np,{className:"nextButton",disabled:Te,onClick:Se,children:[ne,he]}),n[91]=Te,n[92]=Se,n[93]=ne,n[94]=pt):pt=n[94];let na;n[95]!==ie||n[96]!==ye||n[97]!==pt?(na=f.jsxs("div",{className:"roundFooter",children:[ie,ye,pt]}),n[95]=ie,n[96]=ye,n[97]=pt,n[98]=na):na=n[98];let Wt;n[99]===Symbol.for("react.memo_cache_sentinel")?(Wt=f.jsx("div",{className:"spacer"}),n[99]=Wt):Wt=n[99];const Tt=h!=null;let Qe;n[100]!==r||n[101]!==Tt?(Qe=f.jsx(w0,{game:r,ready:Tt}),n[100]=r,n[101]=Tt,n[102]=Qe):Qe=n[102];let qe;return n[103]!==L||n[104]!==q.name||n[105]!==P||n[106]!==na||n[107]!==Qe||n[108]!==V?(qe=f.jsxs("section",{className:"playRound","aria-label":q.name,children:[O,V,L,P,na,Wt,Qe]}),n[103]=L,n[104]=q.name,n[105]=P,n[106]=na,n[107]=Qe,n[108]=V,n[109]=qe):qe=n[109],qe}function k0(){ui.retry()}function N0(s){const{document:n,...r}=s;return r}function _0(){Ue.state={...Ue.state,screen:"levels"}}function E0(){const s=ve.c(27),n=et(Ue),r=et(Bt,M0),u=et(Bt,z0);if(n.screen==="scores"){let b;return s[0]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx(s0,{}),s[0]=b):b=s[0],b}if(n.screen==="levels"){let b;return s[1]!==r||s[2]!==n.game?(b=f.jsx(Fv,{game:n.game,modelId:r}),s[1]=r,s[2]=n.game,s[3]=b):b=s[3],b}if(n.screen==="round"&&r!=null){const b=it[n.game];let p;if(s[4]!==n.level||s[5]!==b.levels){let O;s[7]!==n.level?(O=H=>{const{id:Q}=H;return Q===n.level},s[7]=n.level,s[8]=O):O=s[8],p=b.levels.find(O),s[4]=n.level,s[5]=b.levels,s[6]=p}else p=s[6];const D=p;let M;s[9]!==r||s[10]!==n.drafts||s[11]!==n.game||s[12]!==n.level?(M=Yi(n.drafts,r,n.game,n.level),s[9]=r,s[10]=n.drafts,s[11]=n.game,s[12]=n.level,s[13]=M):M=s[13];const C=M;let q;return s[14]!==C||s[15]!==D||s[16]!==r||s[17]!==n.game?(q=C.answers.length===D.rounds.length?f.jsx(i0,{game:n.game,level:D,modelId:r,draft:C}):f.jsx(x0,{game:n.game,level:D,modelId:r,draft:C},C.answers.length),s[14]=C,s[15]=D,s[16]=r,s[17]=n.game,s[18]=q):q=s[18],q}let h;s[19]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx("h1",{children:"Play with meaning"}),s[19]=h):h=s[19];let m;s[20]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsxs("div",{className:"intro",children:[h,f.jsxs("button",{onClick:q0,children:[f.jsx(xp,{"aria-hidden":"true"}),"My scores"]})]}),s[20]=m):m=s[20];let v;s[21]===Symbol.for("react.memo_cache_sentinel")?(v=Object.keys(it),s[21]=v):v=s[21];let g;s[22]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsx("div",{className:"gameChoices",children:v.map(j0)}),s[22]=g):g=s[22];let S;s[23]!==u?(S=u!=null&&f.jsxs("span",{className:"appVersion",children:["v",u]}),s[23]=u,s[24]=S):S=s[24];let E;return s[25]!==S?(E=f.jsxs("section",{className:"play","aria-label":"Games",children:[m,g,S]}),s[25]=S,s[26]=E):E=s[26],E}function j0(s){return f.jsxs("button",{className:"gameChoice",onClick:()=>{Ue.state={...Ue.state,screen:"levels",game:s}},children:[f.jsx("span",{className:"gameSymbol","aria-hidden":"true",children:s==="lock"?f.jsx(Lv,{}):f.jsx(Qv,{})}),f.jsx("span",{className:"gameName",children:it[s].name}),f.jsx("span",{className:"description",children:it[s].description}),f.jsxs("span",{className:"gameMeta",children:[f.jsxs("span",{className:"gameTag",children:[f.jsx(vc,{"aria-hidden":"true"}),it[s].levels.length," levels"]}),f.jsxs("span",{className:"playGame",children:["Play game ",f.jsx(Mn,{"aria-hidden":"true"})]})]})]},s)}function q0(){Ue.state={...Ue.state,screen:"scores"}}function z0(s){return s.appVersion}function M0(s){return s.loadedModelId}function C0(s){const n=ve.c(25),{update:r}=s,u=re.useRef(null),h=r!=null&&!r.dismissed;let m,v;if(n[0]!==h?(m=()=>{h?u.current?.showPopover():u.current?.hidePopover()},v=[h],n[0]=h,n[1]=m,n[2]=v):(m=n[1],v=n[2]),re.useEffect(m,v),!r)return null;const g=r.status==="downloading"||r.status==="installing",S=r.status==="checking"?"Checking for updates…":r.status==="current"?"You’re up to date":r.status==="installing"?"Restarting to update…":r.version?`${r.version} is available`:"Could not check for updates";let E;n[3]!==S?(E=f.jsx("strong",{children:S}),n[3]=S,n[4]=E):E=n[4];let b;n[5]!==r.error||n[6]!==r.manual?(b=(r.error??r.manual)&&f.jsx("span",{children:r.error??r.manual}),n[5]=r.error,n[6]=r.manual,n[7]=b):b=n[7];let p;n[8]!==E||n[9]!==b?(p=f.jsxs("div",{className:"updateMessage",role:"status",children:[E,b]}),n[8]=E,n[9]=b,n[10]=p):p=n[10];let D;n[11]===Symbol.for("react.memo_cache_sentinel")?(D=f.jsx("button",{className:"dismissUpdate","aria-label":"Dismiss update notification",onClick:U0,children:f.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:f.jsx("path",{d:"m7 7 10 10M7 17 17 7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),n[11]=D):D=n[11];let M;n[12]!==g||n[13]!==r.manual||n[14]!==r.progress||n[15]!==r.status||n[16]!==r.version?(M=r.version&&f.jsxs("button",{className:"installUpdate",disabled:g,onClick:R0,children:[g&&f.jsx("progress",{"aria-label":"Update progress",max:1,value:r.progress}),f.jsx("span",{children:r.status==="installing"?"Restarting…":g?`Updating${r.progress==null?"…":` ${Math.round(r.progress*100)}%`}`:r.manual?"Download update":r.status==="error"?"Retry update":"Update"})]}),n[12]=g,n[13]=r.manual,n[14]=r.progress,n[15]=r.status,n[16]=r.version,n[17]=M):M=n[17];let C;n[18]!==r.status||n[19]!==r.version?(C=!r.version&&r.status==="error"&&f.jsx("button",{className:"installUpdate",onClick:O0,children:"Try again"}),n[18]=r.status,n[19]=r.version,n[20]=C):C=n[20];let q;return n[21]!==p||n[22]!==M||n[23]!==C?(q=f.jsxs("aside",{className:"updateToast",popover:"manual",ref:u,"aria-label":"App update",children:[p,D,M,C]}),n[21]=p,n[22]=M,n[23]=C,n[24]=q):q=n[24],q}function O0(){Ft.checkForUpdates()}function R0(){Ft.installUpdate()}function U0(){Ft.dismissUpdate()}function H0(){const s=ve.c(18),n=et(Bt),r=et(Oi),u=et(Ue,Y0);let h;s[0]!==n?(h=f.jsx(zv,{state:n}),s[0]=n,s[1]=h):h=s[1];const m=n.loadedModelId==null,v=n.loadedModelId==null,g=r==="play"?u:r;let S;s[2]!==r?(S=r==="play"?f.jsx(E0,{}):f.jsx(Bv,{}),s[2]=r,s[3]=S):S=s[3];let E;s[4]!==g||s[5]!==S?(E=f.jsx("div",{className:"page",children:S},g),s[4]=g,s[5]=S,s[6]=E):E=s[6];let b;s[7]!==r||s[8]!==m||s[9]!==v||s[10]!==E?(b=f.jsx("main",{className:"mainContent","data-mode":r,"data-blocked":m,inert:v,children:E}),s[7]=r,s[8]=m,s[9]=v,s[10]=E,s[11]=b):b=s[11];let p;s[12]!==n.update?(p=f.jsx(C0,{update:n.update}),s[12]=n.update,s[13]=p):p=s[13];let D;return s[14]!==h||s[15]!==b||s[16]!==p?(D=f.jsxs("div",{className:"app",children:[h,b,p]}),s[14]=h,s[15]=b,s[16]=p,s[17]=D):D=s[17],D}function Y0(s){const{screen:n,game:r,level:u}=s;return`${n}/${r}/${u}`}R1.createRoot(document.getElementById("root")).render(f.jsx(E1.StrictMode,{children:f.jsx(H0,{})}));
|
|
26
|
+
`),re.createElement("defs",null,re.createElement("linearGradient",{id:"tile",x2:0,y2:1},re.createElement("stop",{stopColor:"var(--tile-top)"}),re.createElement("stop",{offset:1,stopColor:"var(--tile-bottom)"})),re.createElement("linearGradient",{id:"golf",x2:0,y2:512,gradientUnits:"userSpaceOnUse"},re.createElement("stop",{stopColor:"var(--golf-top)"}),re.createElement("stop",{offset:1,stopColor:"var(--golf-bottom)"})),re.createElement("linearGradient",{id:"rim",x2:0,y2:1},re.createElement("stop",{stopColor:"white",stopOpacity:"var(--rim-opacity)"}),re.createElement("stop",{offset:.55,stopColor:"white",stopOpacity:.04}),re.createElement("stop",{offset:1,stopColor:"black",stopOpacity:.2})),re.createElement("filter",{id:"tileShadow",x:"-15%",y:"-15%",width:"130%",height:"140%"},re.createElement("feDropShadow",{dy:14,stdDeviation:14,floodColor:"#07140d",floodOpacity:.28})),re.createElement("filter",{id:"golfShadow",x:"-20%",y:"-20%",width:"140%",height:"150%"},re.createElement("feDropShadow",{dy:7,stdDeviation:6,floodColor:"#07140d",floodOpacity:.22}))),re.createElement("rect",{x:100,y:100,width:824,height:824,rx:184,fill:"url(#tile)",filter:"url(#tileShadow)"}),re.createElement("rect",{x:102,y:102,width:820,height:820,rx:182,fill:"none",stroke:"url(#rim)",strokeWidth:3}),re.createElement("g",{transform:"translate(224 224) scale(1.125)",fill:"url(#golf)",filter:"url(#golfShadow)"},re.createElement("path",{d:"M272 320.46V202.3l166.62-75.73a16 16 0 0 0 0-29.14l-176-80A16 16 0 0 0 240 32v288.46q8-.45 16-.46t16 .46"}),re.createElement("path",{d:"M463.33 457.5c-8.56-42.85-35.11-78.74-76.78-103.8c-32.5-19.55-72.67-31.3-114.55-33.7v79.75a16 16 0 1 1-32 0V320c-41.88 2.4-82.05 14.15-114.55 33.7c-41.67 25.06-68.22 60.95-76.78 103.8a32.49 32.49 0 0 0 6.44 27.08C61.13 492 70 496 80 496h352c10 0 18.88-4.05 24.9-11.42a32.49 32.49 0 0 0 6.43-27.08"})));function fv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function rp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88a.996.996 0 1 0 1.41 1.41L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}const Ts=[{id:"gemma-q8",name:"Gemma 4",parameters:"5B E2B",quant:"Q8_0",size:"5.0 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q8_0"},{id:"gemma-q6",name:"Gemma 4",parameters:"5B E2B",quant:"Q6_K",size:"3.9 GB",uri:"hf:giladgd/gemma-4-E2B-it-GGUF:Q6_K"},{id:"qwen-2b",name:"Qwen 3.5",parameters:"2B",quant:"Q4_K_M",size:"1.3 GB",uri:"hf:unsloth/Qwen3.5-2B-GGUF:Q4_K_M"},{id:"qwen-0.8b",name:"Qwen 3.5",parameters:"0.8B",quant:"Q8_0",size:"0.8 GB",uri:"hf:unsloth/Qwen3.5-0.8B-GGUF:Q8_0"}];function hc(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M11.0771 7.45801V8.54199H10.0635V10.498H11.0771V10.5693H9.99023V7.45801H11.0771ZM6.00879 5.43066V6.5166H4.99609V8.4707H6.00879V8.54199H4.92383V5.43066H6.00879ZM7.96289 3.47461H2.98145V2.89551H13.0195V3.91016H14.1172V12.0908H13.0332V8.97656H13.0342V5.50293H8.03711V5.97266L8.03613 12.0557V12.5264H13.0195V13.1055H2.98145V12.0908H1.88184V3.91016H2.96777V10.498H7.96191V6.95117H7.96289V3.47461Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.941177"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 16 16",width:"24",height:"24",fill:"none","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function hv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M11.625 14.913q-.175-.063-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213t-.375.062t-.375-.062"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Yi(s){const n=ve.c(9),{value:r,label:u}=s;let h;n[0]!==r?(h=r==null?void 0:Math.round(r*100),n[0]=r,n[1]=h):h=n[1];const m=r==null||void 0,v=`scaleX(${Math.max(0,Math.min(1,r??.35))})`;let g;n[2]!==v?(g=f.jsx("div",{className:"fill",style:{transform:v}}),n[2]=v,n[3]=g):g=n[3];let S;return n[4]!==u||n[5]!==h||n[6]!==m||n[7]!==g?(S=f.jsx("div",{className:"decisionProgressBar",role:"progressbar","aria-label":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,"data-indeterminate":m,children:g}),n[4]=u,n[5]=h,n[6]=m,n[7]=g,n[8]=S):S=n[8],S}const up=s=>Number.isFinite(s)?s:0;function dv(s){return{days:Math.trunc(s/864e5),hours:Math.trunc(s/36e5%24),minutes:Math.trunc(s/6e4%60),seconds:Math.trunc(s/1e3%60),milliseconds:Math.trunc(s%1e3),microseconds:Math.trunc(up(s*1e3)%1e3),nanoseconds:Math.trunc(up(s*1e6)%1e3)}}function mv(s){return{days:s/86400000n,hours:s/3600000n%24n,minutes:s/60000n%60n,seconds:s/1000n%60n,milliseconds:s%1000n,microseconds:0n,nanoseconds:0n}}function pv(s){switch(typeof s){case"number":{if(Number.isFinite(s))return dv(s);break}case"bigint":return mv(s)}throw new TypeError("Expected a finite number or bigint")}const gv=s=>s===0||s===0n,yv=(s,n)=>n===1||n===1n?s:`${s}s`,vv=1e-7,bv=24n*60n*60n*1000n;function wv(s,n){const r=typeof s=="bigint";if(!r&&!Number.isFinite(s))throw new TypeError("Expected a finite number or bigint");n={...n};const u=s<0?"-":"";s=s<0?-s:s,n.colonNotation&&(n.compact=!1,n.formatSubMilliseconds=!1,n.separateMilliseconds=!1,n.verbose=!1),n.compact&&(n.unitCount=1,n.secondsDecimalDigits=0,n.millisecondsDecimalDigits=0);let h=[];const m=(b,p)=>{const A=Math.floor(b*10**p+vv);return(Math.round(A)/10**p).toFixed(p)},v=(b,p,A,M)=>{if(!((h.length===0||!n.colonNotation)&&gv(b)&&!(n.colonNotation&&A==="m"))){if(M??=String(b),n.colonNotation){const C=M.includes(".")?M.split(".")[0].length:M.length,q=h.length>0?2:1;M="0".repeat(Math.max(0,q-C))+M}else M+=n.verbose?" "+yv(p,b):A;h.push(M)}},g=pv(s),S=BigInt(g.days);if(n.hideYearAndDays?v(BigInt(S)*24n+BigInt(g.hours),"hour","h"):(n.hideYear?v(S,"day","d"):(v(S/365n,"year","y"),v(S%365n,"day","d")),v(Number(g.hours),"hour","h")),v(Number(g.minutes),"minute","m"),!n.hideSeconds)if(n.separateMilliseconds||n.formatSubMilliseconds||!n.colonNotation&&s<1e3&&!n.subSecondsAsDecimals){const b=Number(g.seconds),p=Number(g.milliseconds),A=Number(g.microseconds),M=Number(g.nanoseconds);if(v(b,"second","s"),n.formatSubMilliseconds)v(p,"millisecond","ms"),v(A,"microsecond","µs"),v(M,"nanosecond","ns");else{const C=p+A/1e3+M/1e6,q=typeof n.millisecondsDecimalDigits=="number"?n.millisecondsDecimalDigits:0,O=C>=1?Math.round(C):Math.ceil(C),H=1e3-10**-q,L=q?Math.min(C,H).toFixed(q):Math.min(O,H);v(Number.parseFloat(L),"millisecond","ms",L)}}else{const b=(r?Number(s%bv):s)/1e3%60,p=typeof n.secondsDecimalDigits=="number"?n.secondsDecimalDigits:1,A=m(b,p),M=n.keepDecimalsOnWholeSeconds?A:A.replace(/\.0+$/,"");v(Number.parseFloat(M),"second","s",M)}if(h.length===0)return u+"0"+(n.verbose?" milliseconds":"ms");const E=n.colonNotation?":":" ";return typeof n.unitCount=="number"&&(h=h.slice(0,Math.max(n.unitCount,1))),u+h.join(E)}const jl=new ya(void 0);function yc(s){const n=jl.state;jl.state=void 0,n?.resolve(s)}function dc(s){return gp([jl],async()=>{const n=Bt.state.loadedModelId;if(s===n)return;const r=Ue.state,u=it[r.game].levels.find(({id:h})=>h===r.level);if(n!=null&&Oi.state==="play"&&r.screen==="round"&&Bi(r.drafts,n,r.game,r.level).answers.length<u.rounds.length){if(!await new Promise(m=>{jl.state={resolve:m}}))return;Ui(n,r.game,r.level,{document:"",startedAt:void 0}),Ue.state={...Ue.state,screen:"levels"}}await Ft.loadModel(s)})}function Tv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function ys(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Tp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M280-120q-33 0-56.5-23.5T200-200v-520q-17 0-28.5-11.5T160-760q0-17 11.5-28.5T200-800h160q0-17 11.5-28.5T400-840h160q17 0 28.5 11.5T600-800h160q17 0 28.5 11.5T800-760q0 17-11.5 28.5T760-720v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520Zm-400 0v520-520Zm200 316 76 76q11 11 28 11t28-11q11-11 11-28t-11-28l-76-76 76-76q11-11 11-28t-11-28q-11-11-28-11t-28 11l-76 76-76-76q-11-11-28-11t-28 11q-11 11-11 28t11 28l76 76-76 76q-11 11-11 28t11 28q11 11 28 11t28-11l76-76Z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{height:"24px",viewBox:"0 -960 960 960",width:"24px",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Sv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h5.175q.4 0 .763.15t.637.425L12 6h8q.825 0 1.413.588T22 8v10q0 .825-.587 1.413T20 20z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Dv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M6 22q-.825 0-1.412-.587T4 20V4q0-.825.588-1.412T6 2h7.175q.4 0 .763.15t.637.425l4.85 4.85q.275.275.425.638t.15.762V20q0 .825-.587 1.413T18 22zm7-14q0 .425.288.713T14 9h4l-5-5z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Av({dialogRef:s,modelId:n,disabled:r}){const u=re.useId(),h=re.useId(),[m,v]=re.useState(!1),[g,S]=re.useState(),E=Ts.find(p=>p.id===n);async function b(){if(!(n==null||r||m)){v(!0),S(void 0);try{await Ft.deleteModel(n),s.current?.close()}catch(p){S(String(p))}finally{v(!1)}}}return f.jsxs("dialog",{className:"deleteModelDialog",ref:s,"aria-labelledby":u,"aria-describedby":h,"aria-busy":m,onClose:()=>S(void 0),onCancel:p=>{m&&p.preventDefault()},children:[f.jsxs("h2",{id:u,children:["Delete ",E==null?"model":`${E.name} ${E.parameters}`,"?"]}),f.jsx("p",{id:h,children:"You can always download the model again"}),g!=null&&f.jsx("div",{className:"deleteError",role:"alert",children:g}),f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,disabled:m,onClick:()=>s.current?.close(),children:"Cancel"}),f.jsx("button",{className:"confirmDelete",disabled:r||m,onClick:()=>{b()},children:m?"Deleting…":"Delete model"})]})]})}function cp(s){const n=ve.c(39),{state:r}=s,[u,h]=re.useState(),[m,v]=re.useState(!1),[g,S]=re.useState(),E=re.useRef(null);let b;n[0]===Symbol.for("react.memo_cache_sentinel")?(b=function(Z){return h(void 0),Z.catch(oe=>h(String(oe)))},n[0]=b):b=n[0];const p=b;let A;n[1]!==r.loading||n[2]!==r.models?(A=function(Z){const oe=r.models[Z]?.download,I=r.loading?.modelId===Z?r.loading:void 0;if(oe!=null){const ue=oe.totalSize>0?oe.downloadedSize/oe.totalSize:void 0;return f.jsxs("div",{className:"modelProgress",children:[f.jsxs("div",{children:[f.jsxs("span",{children:[ue==null?"Connecting…":`${Math.floor(ue*100)}%`,ue!=null&&oe.speed!=null&&` · ${(oe.speed/1e6).toFixed(1)} MB/s`]}),f.jsx("span",{children:oe.status==="canceling"?"Canceling…":oe.eta==null?"Estimating…":`${wv(oe.eta,{compact:!0})} left`})]}),f.jsx(Yi,{value:ue,label:`${Z} download`})]})}return I!=null?f.jsxs("div",{className:"modelProgress",children:[f.jsx("span",{children:I.stage==="model"?`Loading ${Math.round(I.progress*100)}%`:I.stage==="context"?"Preparing context…":"Warming up…"}),f.jsx(Yi,{value:I.stage==="model"?I.progress:void 0,label:`Loading ${Z}`})]}):null},n[1]=r.loading,n[2]=r.models,n[3]=A):A=n[3];const M=A;let C;n[4]!==M||n[5]!==r.loadedModelId||n[6]!==r.loading||n[7]!==r.models?(C=Ts.map(K=>{const Z=r.models[K.id],oe=r.loadedModelId===K.id,I=K.id==="gemma-q8",ue=`${K.name} ${K.parameters}`;return f.jsxs("article",{className:"modelRow","data-active":oe,children:[f.jsxs("div",{className:"modelRowMain",children:[f.jsxs("button",{className:"modelSelect",disabled:oe||Z?.download!=null||Z?.deleting||Z?.downloaded&&r.loading!=null,"aria-label":`${oe?"Loaded":Z?.downloaded?"Load":"Download"} ${ue} ${K.quant}`,"aria-description":I?"Our pick":void 0,onClick:()=>{p(Z?.downloaded?dc(K.id):Ft.downloadModel(K.id))},children:[f.jsx("span",{className:"modelIcon",children:oe?f.jsx(ys,{}):Z?.downloaded?f.jsx(hc,{}):f.jsx(Tv,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:ue}),f.jsxs("span",{className:"modelMeta",children:[f.jsx("span",{className:"modelTag",children:K.quant}),f.jsx("span",{className:"modelTag",children:K.size}),I&&f.jsx("span",{className:"modelTag ourPick",children:"Our pick"})]})]})]}),Z?.download!=null?f.jsx("button",{className:"cancelDownload",disabled:Z.download.status==="canceling",onClick:()=>{p(Ft.cancelDownload(K.id))},"aria-label":`Cancel ${ue} download`,children:"Cancel"}):Z?.downloaded&&f.jsx("button",{className:"deleteModel",disabled:Z.deleting||r.loading!=null,onClick:()=>{S(K.id),E.current?.showModal()},"aria-label":`Delete ${ue} ${K.quant}`,title:"Delete model",children:f.jsx(Tp,{})})]}),M(K.id),Z?.error!=null&&f.jsx("div",{className:"error",role:"alert",children:Z.error})]},K.id)}),n[4]=M,n[5]=r.loadedModelId,n[6]=r.loading,n[7]=r.models,n[8]=C):C=n[8];let q;if(n[9]!==M||n[10]!==r.loadedModelId||n[11]!==r.loading||n[12]!==r.localModels){let K;n[14]!==M||n[15]!==r.loadedModelId||n[16]!==r.loading?(K=Z=>f.jsxs("article",{className:"modelRow","data-active":r.loadedModelId===Z.id,children:[f.jsxs("button",{className:"modelSelect",disabled:r.loadedModelId===Z.id||r.loading!=null,onClick:()=>{p(dc(Z.id))},title:Z.name,children:[f.jsx("span",{className:"modelIcon",children:r.loadedModelId===Z.id?f.jsx(ys,{}):f.jsx(hc,{})}),f.jsxs("span",{className:"modelDetails",children:[f.jsx("span",{className:"modelName",children:Z.name}),f.jsx("span",{className:"modelMeta",children:f.jsx("span",{className:"modelTag",children:"Local file"})})]})]}),M(Z.id)]},Z.id),n[14]=M,n[15]=r.loadedModelId,n[16]=r.loading,n[17]=K):K=n[17],q=r.localModels.map(K),n[9]=M,n[10]=r.loadedModelId,n[11]=r.loading,n[12]=r.localModels,n[13]=q}else q=n[13];let O;n[18]!==C||n[19]!==q?(O=f.jsxs("div",{className:"modelRows",children:[C,q]}),n[18]=C,n[19]=q,n[20]=O):O=n[20];const H=m||r.loading!=null;let L,$;n[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{v(!0),p(Ft.selectModelFile().then(xv)).finally(()=>v(!1))},$=f.jsx(Dv,{}),n[21]=L,n[22]=$):(L=n[21],$=n[22]);let J;n[23]!==H?(J=f.jsxs("button",{disabled:H,onClick:L,children:[$,"Select model file…"]}),n[23]=H,n[24]=J):J=n[24];let Q;n[25]===Symbol.for("react.memo_cache_sentinel")?(Q=f.jsxs("button",{onClick:()=>{p(Ft.openModelsDirectory())},children:[f.jsx(Sv,{}),"Models folder"]}),n[25]=Q):Q=n[25];let Y;n[26]!==J?(Y=f.jsxs("div",{className:"fileActions",children:[J,Q]}),n[26]=J,n[27]=Y):Y=n[27];let B;n[28]!==u||n[29]!==r.error?(B=(u??r.error)!=null&&f.jsx("div",{className:"error",role:"alert",children:u??r.error}),n[28]=u,n[29]=r.error,n[30]=B):B=n[30];const V=r.loading!=null||g==null||!r.models[g]?.downloaded;let W;n[31]!==g||n[32]!==V?(W=f.jsx(Av,{dialogRef:E,modelId:g,disabled:V}),n[31]=g,n[32]=V,n[33]=W):W=n[33];let le;return n[34]!==Y||n[35]!==B||n[36]!==W||n[37]!==O?(le=f.jsxs("div",{className:"modelList","aria-label":"Models",children:[O,Y,B,W]}),n[34]=Y,n[35]=B,n[36]=W,n[37]=O,n[38]=le):le=n[38],le}function xv(s){if(s!=null)return dc(s)}function kv(){const s=ve.c(9),n=et(jl),r=re.useRef(null),u=re.useId();let h,m;s[0]!==n?(h=()=>{n!=null?r.current?.showModal():r.current?.close()},m=[n],s[0]=n,s[1]=h,s[2]=m):(h=s[1],m=s[2]),re.useEffect(h,m);let v;s[3]!==u?(v=f.jsx("p",{id:u,children:"Switching a model now will stop the current play round. Are you sure?"}),s[3]=u,s[4]=v):v=s[4];let g;s[5]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("div",{className:"dialogActions",children:[f.jsx("button",{autoFocus:!0,onClick:_v,children:"Cancel"}),f.jsx("button",{className:"confirmSwitch",onClick:Nv,children:"Switch model"})]}),s[5]=g):g=s[5];let S;return s[6]!==u||s[7]!==v?(S=f.jsxs("dialog",{className:"switchModelDialog",ref:r,"aria-label":"Switch model","aria-describedby":u,onCancel:Ev,children:[v,g]}),s[6]=u,s[7]=v,s[8]=S):S=s[8],S}function Nv(){return yc(!0)}function _v(){return yc(!1)}function Ev(){return yc(!1)}function qv(s){const n=ve.c(37),{state:r}=s,u=re.useRef(null),h=re.useRef(null),m=r.loading!=null,v=r.loadedModelId==null,[g,S]=re.useState(v);!m&&g!==v&&S(v);const E=r.loading?.modelId??r.loadedModelId;let b;n[0]!==E?(b=Ts.find(ue=>ue.id===E),n[0]=E,n[1]=b):b=n[1];const p=b;let A;n[2]!==p||n[3]!==E||n[4]!==r.localModels?(A=p==null?r.localModels.find(ue=>ue.id===E)?.name:`${p.name} ${p.parameters}`,n[2]=p,n[3]=E,n[4]=r.localModels,n[5]=A):A=n[5];const M=A;let C;n[6]!==r?(C=J1(r),n[6]=r,n[7]=C):C=n[7];const q=C;let O,H;n[8]!==m||n[9]!==g?(O=()=>{g?(h.current?.hidePopover(),u.current?.show()):(u.current?.close(),m&&h.current?.showPopover())},H=[g,m],n[8]=m,n[9]=g,n[10]=O,n[11]=H):(O=n[10],H=n[11]),re.useEffect(O,H);const L=`Models: ${M??"Get a model"}`;let $;n[12]===Symbol.for("react.memo_cache_sentinel")?($=f.jsx(hc,{}),n[12]=$):$=n[12];const J=M??"Get a model";let Q;n[13]!==J?(Q=f.jsx("span",{className:"modelButtonName",children:J}),n[13]=J,n[14]=Q):Q=n[14];let Y;n[15]===Symbol.for("react.memo_cache_sentinel")?(Y=f.jsx(hv,{}),n[15]=Y):Y=n[15];let B;n[16]!==M||n[17]!==L||n[18]!==Q?(B=f.jsxs("button",{className:"modelButton",popoverTarget:"modelsPopover",title:M,"aria-label":L,children:[$,Q,Y]}),n[16]=M,n[17]=L,n[18]=Q,n[19]=B):B=n[19];let V;n[20]!==q.count||n[21]!==q.progress?(V=q.count>0&&f.jsx(Yi,{value:q.progress,label:"Total download progress"}),n[20]=q.count,n[21]=q.progress,n[22]=V):V=n[22];let W;n[23]!==g||n[24]!==B||n[25]!==V?(W=f.jsxs("div",{className:"modelButtonArea",hidden:g,children:[B,V]}),n[23]=g,n[24]=B,n[25]=V,n[26]=W):W=n[26];let le;n[27]!==r?(le=f.jsx("div",{className:"modelsPopover",id:"modelsPopover",popover:"auto",ref:h,children:f.jsx(cp,{state:r})}),n[27]=r,n[28]=le):le=n[28];let K;n[29]===Symbol.for("react.memo_cache_sentinel")?(K=f.jsx("h1",{id:"pickModelHeading",children:"Pick a model"}),n[29]=K):K=n[29];let Z;n[30]!==r?(Z=f.jsxs("dialog",{className:"requiredPicker",ref:u,"aria-labelledby":"pickModelHeading",children:[K,f.jsx(cp,{state:r})]}),n[30]=r,n[31]=Z):Z=n[31];let oe;n[32]===Symbol.for("react.memo_cache_sentinel")?(oe=f.jsx(kv,{}),n[32]=oe):oe=n[32];let I;return n[33]!==W||n[34]!==le||n[35]!==Z?(I=f.jsxs("div",{className:"modelPicker",children:[W,le,Z,oe]}),n[33]=W,n[34]=le,n[35]=Z,n[36]=I):I=n[36],I}function jv(s){const n=ve.c(18),{state:r}=s,u=et(Oi);let h;n[0]===Symbol.for("react.memo_cache_sentinel")?(h=function(L){if(L!==Oi.state){if(matchMedia("(prefers-reduced-motion: reduce)").matches){Oi.state=L;return}document.startViewTransition({types:[`to-${L}`],update:()=>{Hi.flushSync(()=>{Oi.state=L});for(const $ of document.querySelector(".mainContent > .page")?.getAnimations()??[])$.finish()}})}},n[0]=h):h=n[0];const m=h;let v;n[1]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("a",{className:"appIdentity",href:"https://github.com/giladgd/semantic-golfer",target:"_blank",rel:"noreferrer",title:"Semantic Golfer on GitHub",draggable:!1,children:[f.jsx(cv,{className:"semanticGolferIcon appMark","aria-hidden":"true"}),f.jsx("strong",{children:"Semantic Golfer"}),f.jsx(rp,{className:"identityLinkIcon","aria-hidden":"true"})]}),n[1]=v):v=n[1];const g=u==="play"?"page":void 0;let S;n[2]===Symbol.for("react.memo_cache_sentinel")?(S=()=>m("play"),n[2]=S):S=n[2];let E;n[3]!==g?(E=f.jsx("button",{"aria-current":g,onClick:S,children:"Play"}),n[3]=g,n[4]=E):E=n[4];const b=u==="playground"?"page":void 0;let p;n[5]===Symbol.for("react.memo_cache_sentinel")?(p=()=>m("playground"),n[5]=p):p=n[5];let A;n[6]!==b?(A=f.jsx("button",{"aria-current":b,onClick:p,children:"Playground"}),n[6]=b,n[7]=A):A=n[7];let M;n[8]!==E||n[9]!==A?(M=f.jsxs("nav",{"aria-label":"Main navigation",children:[E,A]}),n[8]=E,n[9]=A,n[10]=M):M=n[10];let C;n[11]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsxs("a",{className:"repositoryLink",href:"https://github.com/withcatai/node-llama-cpp?utm_source=semantic_golfer",target:"_blank",rel:"noreferrer",title:"node-llama-cpp on GitHub","aria-label":"node-llama-cpp on GitHub",draggable:!1,children:[f.jsx(fv,{"aria-hidden":"true"}),f.jsx("code",{children:"node-llama-cpp"}),f.jsx(rp,{className:"externalLinkIcon"})]}),n[11]=C):C=n[11];let q;n[12]!==r?(q=f.jsxs("div",{className:"headerActions",children:[C,f.jsx(qv,{state:r})]}),n[12]=r,n[13]=q):q=n[13];let O;return n[14]!==u||n[15]!==q||n[16]!==M?(O=f.jsxs("header",{className:"topBar","data-platform":window.platform,"data-mode":u,children:[v,M,q]}),n[14]=u,n[15]=q,n[16]=M,n[17]=O):O=n[17],O}const Sp=["noul","choice","score"],zl={noul:2,choice:50,score:10},fp=16;function zv(s){const n=mc(s?.input);if(n!=null)return n;if(s.additionalInputs!=null){if(!Array.isArray(s.additionalInputs)||s.additionalInputs.length>=fp)return`Use at most ${fp} questions per document.`;for(const r of s.additionalInputs){const u=mc(r);if(u!=null)return u;if(r.document!==s.input.document)return"All questions must use the same document."}}}function Dp(s,n){return typeof s=="string"&&s.length<=1e3&&(n==="noul"||s.trim().length>0)}function Ol({type:s,criteria:n}){if(s==="noul")return n;let r=n.length;for(;r>0;){const u=n[r-1];if(typeof u!="string"||u.length>1e3||u.trim())break;r--}return r===n.length?n:n.slice(0,r)}function mc(s){if(s==null||!Sp.includes(s.type))return"Choose a decision type.";if(typeof s.document!="string"||s.document.length>32e3)return"Keep the document under 32,000 characters.";if(typeof s.instruction!="string"||!s.instruction.trim()||s.instruction.length>1e3)return"Enter a question (up to 1,000 characters).";if(!Array.isArray(s.criteria)||s.criteria.length<2||s.criteria.length>zl[s.type])return s.type==="noul"?"Use exactly two criteria.":`Use between 2 and ${zl[s.type]} criteria.`;const n=Ol(s);if(n.length<2)return"Enter at least two nonempty criteria.";if(n.some(r=>!Dp(r,s.type)))return s.type==="noul"?"Use text of up to 1,000 characters for each criterion.":"Fill in each criterion (up to 1,000 characters)."}class Mv{state=new ya({running:!1});latest;completedKey;evaluate;constructor(n){this.evaluate=n}setInput(n){const r=JSON.stringify(n)!==JSON.stringify(this.latest);return this.latest=n,n==null?(this.completedKey=void 0,this.state.state={running:!1}):r&&this.state.state.error!=null&&(this.state.state={...this.state.state,error:void 0}),gp([this],async()=>{for(;this.latest!=null&&zv(this.latest)==null&&JSON.stringify(this.latest)!==this.completedKey;){const u=this.latest,h=JSON.stringify(u);this.state.state={...this.state.state,running:!0,error:void 0};try{const m=await this.evaluate(u);this.latest?.modelId===u.modelId&&(this.state.state={running:!0,result:{...m,request:u}})}catch(m){JSON.stringify(this.latest)===h&&(this.state.state={...this.state.state,error:String(m)})}this.completedKey=this.latest==null?void 0:h}this.state.state={...this.state.state,running:!1}})}retry(){return this.state.state.running||this.state.state.error==null?Promise.resolve():(this.completedKey=void 0,this.setInput(this.latest))}}const cc="My whole team is locked out of our accounts. None of us can sign in, so we cannot continue our work.",ms={noul:[{name:"Shared issue",input:{type:"noul",document:cc,instruction:"Does this issue affect multiple people?",criteria:["Multiple people are affected","No indication multiple people are affected"]}},{name:"An animal",input:{type:"noul",document:"A small cat curled up on my keyboard while I was working.",instruction:"Does this text mention an animal?",criteria:["An animal is mentioned","No animal is mentioned"]}},{name:"Needs a reply",input:{type:"noul",document:"Thanks for sending the notes. Could you confirm whether Tuesday at 10 works for the review?",instruction:"Does this message need a reply?",criteria:["The sender asks a question or requests action","The message is informational and needs no response"]}}],choice:[{name:"Support routing",input:{type:"choice",document:cc,instruction:"Which support team should handle this ticket?",criteria:["Accounts: signing in, passwords, and account access","Billing: invoices, payments, and refunds","Technical: problems using features after signing in"]}},{name:"Delivery",input:{type:"choice",document:"I need it delivered as soon as possible",instruction:"Which delivery method has the customer chosen?",criteria:["Standard shipping","Express courier","Store pickup"]}},{name:"Intent",input:{type:"choice",document:"Please add an option to export the dashboard charts as SVG files. This export option is currently missing.",instruction:"What is the main intent of this message?",criteria:["Report a bug","Request a feature","Ask for help","Give a compliment"]}}],score:[{name:"Issue severity",input:{type:"score",document:cc,instruction:"How much is the issue affecting the customer's work?",criteria:["No interruption to work","Some tasks are slower or harder","The customer cannot continue their work"]}},{name:"Intent",input:{type:"score",document:"We want to buy 20 seats, but only if your product integrates with our CRM. We need to confirm that before purchasing.",instruction:"How strongly does the customer express an intention to purchase?",criteria:["Not interested","Just browsing","Considering purchasing","Conditional intent to purchase","Ready to buy"]}},{name:"Satisfaction",input:{type:"score",document:"The app saves me time every day. The confusing menus still annoy me, but overall I’m happy with it",instruction:"How satisfied is the customer with their overall experience?",criteria:["Very dissatisfied","Somewhat dissatisfied","Neutral","Somewhat satisfied","Very satisfied"]}}]},zn=new ya({type:"noul",drafts:{noul:ms.noul[0].input,choice:ms.choice[0].input,score:ms.score[0].input}},{queueEvents:!1}),ui=new Mv(s=>Ft.evaluateDecision(s));function El(s){zn.state={...zn.state,drafts:{...zn.state.drafts,[s.type]:s}}}ya.createCombinedChangeListener([zn,Bt,Oi,Ue],([s,n,r,u])=>{if(n.loadedModelId==null)ui.setInput(void 0);else if(r==="playground"){const h=s.drafts[s.type];ui.setInput({modelId:n.loadedModelId,input:{...h,criteria:Ol(h)}})}else{const h=u.screen==="round"?Bi(u.drafts,n.loadedModelId,u.game,u.level):void 0,m=it[u.game].levels.find(({id:g})=>g===u.level),v=h==null?void 0:m?.rounds[h.answers.length];ui.setInput(v!=null&&h?.document.trim()?pc(n.loadedModelId,v,h.document):void 0)}},{callInstantlyWithCurrentState:!0});function Cv(s){const n=ve.c(37),{input:r,disabled:u,onChange:h}=s;let m;n[0]!==r?(m=Ol(r),n[0]=r,n[1]=m):m=n[1];const v=m;let g;n[2]!==r.criteria||n[3]!==r.type?(g=r.type!=="noul"&&r.criteria.length<zl[r.type]&&r.criteria.at(-1)?.trim()?[...r.criteria,""]:r.criteria,n[2]=r.criteria,n[3]=r.type,n[4]=g):g=n[4];const S=g;let E;n[5]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsx("span",{children:"Instruction"}),n[5]=E):E=n[5];let b;n[6]!==r||n[7]!==h?(b=J=>h({...r,instruction:J.target.value}),n[6]=r,n[7]=h,n[8]=b):b=n[8];let p;n[9]!==r.instruction||n[10]!==b?(p=f.jsxs("label",{className:"instructionHeader",htmlFor:"decisionQuestion",children:[E,f.jsx("textarea",{id:"decisionQuestion","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,value:r.instruction,title:r.instruction,maxLength:1e3,onChange:b})]}),n[9]=r.instruction,n[10]=b,n[11]=p):p=n[11];let A;n[12]===Symbol.for("react.memo_cache_sentinel")?(A=f.jsx("h2",{className:"criteriaTitle",children:"Criteria"}),n[12]=A):A=n[12];let M;if(n[13]!==v||n[14]!==r||n[15]!==h||n[16]!==S){let J;n[18]!==v||n[19]!==r||n[20]!==h?(J=(Q,Y)=>f.jsxs("div",{className:"criterion",children:[f.jsx("label",{htmlFor:`criterion-${Y}`,children:r.type==="noul"?Y===0?"Yes":"No":r.type==="score"?Y:Ap(Y)}),f.jsx("textarea",{id:`criterion-${Y}`,"data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",rows:1,"aria-label":`Criterion ${Y+1}`,"aria-invalid":Y<v.length&&!Dp(Q,r.type),value:Q,title:Q,maxLength:1e3,placeholder:r.type==="choice"?"Describe this choice":r.type==="score"?"Describe this level":Y===0?"Describe what counts as yes":"Describe what counts as no",onChange:B=>{const V=[...r.criteria];V[Y]=B.target.value,h({...r,criteria:V})}}),f.jsx("button",{className:"removeButton","aria-label":`Remove criterion ${Y+1}`,disabled:r.type==="noul"||Y>=v.length||v.length<=2,onClick:()=>h({...r,criteria:r.criteria.filter((B,V)=>V!==Y)}),children:f.jsx(Tp,{})})]},Y),n[18]=v,n[19]=r,n[20]=h,n[21]=J):J=n[21],M=S.map(J),n[13]=v,n[14]=r,n[15]=h,n[16]=S,n[17]=M}else M=n[17];let C;n[22]!==M?(C=f.jsx("div",{className:"criteriaList",children:M}),n[22]=M,n[23]=C):C=n[23];let q;n[24]===Symbol.for("react.memo_cache_sentinel")?(q=f.jsx("span",{children:"Examples"}),n[24]=q):q=n[24];const O=ms[r.type];let H;if(n[25]!==h||n[26]!==O){let J;n[28]!==h?(J=Q=>f.jsxs("button",{onClick:()=>h(Q.input),children:[Q.name,f.jsx("span",{"aria-hidden":"true",children:"↗"})]},Q.name),n[28]=h,n[29]=J):J=n[29],H=O.map(J),n[25]=h,n[26]=O,n[27]=H}else H=n[27];let L;n[30]!==H?(L=f.jsxs("div",{className:"examples","aria-label":"Examples",children:[q,H]}),n[30]=H,n[31]=L):L=n[31];let $;return n[32]!==u||n[33]!==L||n[34]!==p||n[35]!==C?($=f.jsxs("fieldset",{className:"criteriaEditor",disabled:u,children:[p,A,C,L]}),n[32]=u,n[33]=L,n[34]=p,n[35]=C,n[36]=$):$=n[36],$}function Ap(s){return(s>=26?Ap(Math.floor(s/26)-1):"")+String.fromCharCode(65+s%26)}function Ov(s){const n=ve.c(14),{value:r,disabled:u,onChange:h}=s;let m;n[0]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx("label",{htmlFor:"documentText",children:"Document"}),n[0]=m):m=n[0];let v;n[1]!==h?(v=p=>h(p.target.value),n[1]=h,n[2]=v):v=n[2];let g;n[3]!==u||n[4]!==v||n[5]!==r?(g=f.jsx("textarea",{id:"documentText","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:r,disabled:u,maxLength:32e3,spellCheck:!1,placeholder:"Type a document…",onChange:v}),n[3]=u,n[4]=v,n[5]=r,n[6]=g):g=n[6];let S;n[7]!==r.length?(S=r.length.toLocaleString(),n[7]=r.length,n[8]=S):S=n[8];let E;n[9]!==S?(E=f.jsxs("div",{className:"documentFooter",children:[S," characters"]}),n[9]=S,n[10]=E):E=n[10];let b;return n[11]!==g||n[12]!==E?(b=f.jsxs("section",{className:"documentInput",children:[m,g,E]}),n[11]=g,n[12]=E,n[13]=b):b=n[13],b}function Rv(s){const n=ve.c(9),{value:r}=s,u=r==null?void 0:"meter",h=r==null?void 0:r*100;let m;n[0]!==r?(m=r!=null&&f.jsx("span",{className:"position",style:{left:`${Math.max(0,Math.min(1,r))*100}%`}}),n[0]=r,n[1]=m):m=n[1];let v;n[2]!==m?(v=f.jsx("div",{className:"track",children:m}),n[2]=m,n[3]=v):v=n[3];let g;n[4]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("div",{className:"labels","aria-hidden":"true",children:[f.jsx("span",{children:"No"}),f.jsx("span",{children:"Yes"})]}),n[4]=g):g=n[4];let S;return n[5]!==u||n[6]!==h||n[7]!==v?(S=f.jsxs("div",{className:"noulScale",role:u,"aria-label":"Probability of yes","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":h,children:[v,g]}),n[5]=u,n[6]=h,n[7]=v,n[8]=S):S=n[8],S}function Uv(s){const n=ve.c(55),{input:r,evaluation:u,ready:h,validationError:m,onRetry:v}=s,g=u.result?.request.input.type===r.type?u.result:void 0,S=g?.answer,E=S!=null&&S.type!=="noul"?S.confidence:void 0;let b,p,A,M,C,q,O,H,L,$,J,Q;if(n[0]!==S||n[1]!==u.error||n[2]!==u.running||n[3]!==r||n[4]!==v||n[5]!==h||n[6]!==g?.request.input||n[7]!==m){const Z=Ol(g?.request.input??r),oe=S?.type==="choice"?Number(S.choice):void 0,I=S?.type==="choice"?Z.map((P,te)=>S.probabilities[String(te)]??0):S?.type==="score"?S.probabilities:void 0,ue=h?m==null?"Waiting for a decision":"Complete the criteria":"Load a model to begin";$="decisionResult",J=r.type,Q="Decision results",p=u.running,n[20]===Symbol.for("react.memo_cache_sentinel")?(A=f.jsx("h2",{children:"Decision"}),n[20]=A):A=n[20],n[21]!==u.error||n[22]!==u.running||n[23]!==v||n[24]!==h||n[25]!==m?(M=(m??u.error)!=null&&f.jsxs("div",{className:"error",children:[f.jsx("div",{role:"alert",children:m??u.error}),m==null&&h&&!u.running&&f.jsx("button",{onClick:v,children:"Retry"})]}),n[21]=u.error,n[22]=u.running,n[23]=v,n[24]=h,n[25]=m,n[26]=M):M=n[26],b="decisionContent",C=0,q="region",O="Decision details";const X=r.type==="choice"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"choiceValue",children:[Z.map((P,te)=>f.jsx("span",{"data-selected":oe===te,"aria-hidden":oe!==te,children:P},te)),oe==null&&f.jsx("span",{"data-selected":!0,children:"—"})]}),f.jsx("div",{className:"answerLabel",children:S==null?ue:"Selected choice"})]}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"answerValue","data-empty":S==null,children:S?.type==="noul"?f.jsxs(f.Fragment,{children:[(S.value*100).toFixed(1),f.jsx("span",{children:"%"})]}):S?.type==="score"?f.jsxs(f.Fragment,{children:[S.score.toFixed(2),f.jsxs("span",{children:[" / ",Z.length-1]})]}):"—"}),f.jsx("div",{className:"answerLabel",children:S==null?ue:r.type==="noul"?"Probability of yes":"Score"})]});n[27]!==X?(H=f.jsx("div",{className:"answerSummary",children:X}),n[27]=X,n[28]=H):H=n[28],L=r.type==="noul"?f.jsx(Rv,{value:S?.type==="noul"?S.value:void 0}):f.jsxs(f.Fragment,{children:[r.type==="score"&&f.jsxs("div",{className:"scoreScale",children:[f.jsx(Yi,{value:S?.type==="score"?S.score/(Z.length-1):0,label:"Decision score"}),f.jsx("div",{className:"scoreMarkers",children:Z.map(Hv)}),f.jsxs("div",{className:"scoreEndpoints",children:[f.jsx("span",{children:Z[0]}),f.jsx("span",{children:Z.at(-1)})]})]}),f.jsx("div",{className:"probabilities",children:Z.map((P,te)=>f.jsxs("div",{className:"probability","data-selected":oe===te,children:[f.jsxs("div",{className:"probabilityLabel",children:[f.jsxs("span",{className:"criterionLabel",title:P,children:[r.type==="choice"&&f.jsx(ys,{className:"selectedIcon"}),r.type==="score"?`${te} · ${P}`:P]}),f.jsx("span",{children:I==null?"—":`${((I[te]??0)*100).toFixed(1)}%`})]}),f.jsx(Yi,{value:I?.[te]??0,label:`${P}${oe===te?", selected":""}`})]},te))})]}),n[0]=S,n[1]=u.error,n[2]=u.running,n[3]=r,n[4]=v,n[5]=h,n[6]=g?.request.input,n[7]=m,n[8]=b,n[9]=p,n[10]=A,n[11]=M,n[12]=C,n[13]=q,n[14]=O,n[15]=H,n[16]=L,n[17]=$,n[18]=J,n[19]=Q}else b=n[8],p=n[9],A=n[10],M=n[11],C=n[12],q=n[13],O=n[14],H=n[15],L=n[16],$=n[17],J=n[18],Q=n[19];let Y;n[29]!==b||n[30]!==C||n[31]!==q||n[32]!==O||n[33]!==H||n[34]!==L?(Y=f.jsxs("div",{className:b,tabIndex:C,role:q,"aria-label":O,children:[H,L]}),n[29]=b,n[30]=C,n[31]=q,n[32]=O,n[33]=H,n[34]=L,n[35]=Y):Y=n[35];let B;n[36]!==E||n[37]!==r.type?(B=r.type!=="noul"&&f.jsxs("div",{className:"confidence",children:[f.jsx("span",{children:"Confidence"}),f.jsx("strong",{children:E==null?"—":`${(E*100).toFixed(1)}%`}),f.jsx(Yi,{value:E??0,label:"Decision confidence"})]}),n[36]=E,n[37]=r.type,n[38]=B):B=n[38];let V;n[39]!==g?(V=g==null?"—":f.jsxs(f.Fragment,{children:[g.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}),n[39]=g,n[40]=V):V=n[40];let W;n[41]!==V?(W=f.jsx("div",{className:"timing","aria-label":"Decision time",children:f.jsx("strong",{children:V})}),n[41]=V,n[42]=W):W=n[42];let le;n[43]!==B||n[44]!==W?(le=f.jsxs("div",{className:"resultFooter",children:[B,W]}),n[43]=B,n[44]=W,n[45]=le):le=n[45];let K;return n[46]!==p||n[47]!==A||n[48]!==M||n[49]!==Y||n[50]!==le||n[51]!==$||n[52]!==J||n[53]!==Q?(K=f.jsxs("section",{className:$,"data-type":J,"aria-label":Q,"aria-busy":p,children:[A,M,Y,le]}),n[46]=p,n[47]=A,n[48]=M,n[49]=Y,n[50]=le,n[51]=$,n[52]=J,n[53]=Q,n[54]=K):K=n[54],K}function Hv(s,n){return f.jsx("span",{title:s,children:n},n)}function Yv(){const s=ve.c(33),n=et(Bt),r=et(zn),u=et(ui.state),h=r.drafts[r.type],m=n.loadedModelId!=null;let v;s[0]!==h?(v=function(Y){const B=Y.target;if(!(B instanceof HTMLTextAreaElement)||B.selectionStart!==B.selectionEnd||Y.defaultPrevented||Y.nativeEvent.isComposing||Y.shiftKey||Y.metaKey||Y.ctrlKey||Y.altKey||!["Enter","Backspace","ArrowUp","ArrowDown","Escape"].includes(Y.key))return;const V=Y.currentTarget,W=B.selectionStart===0,le=B.selectionStart===B.value.length;let K,Z;if(B.id==="documentText")Y.key==="Escape"&&(K="decisionQuestion");else if(B.id==="decisionQuestion")Y.key==="Escape"?K="documentText":le&&(Y.key==="Enter"||Y.key==="ArrowDown")&&(K="criterion-0",Z="start");else{const oe=[...V.querySelectorAll(".criterion textarea")],I=oe.indexOf(B),ue=Ol(h);if(I<0)return;if(Y.key==="Escape")K="documentText";else if(Y.key==="ArrowUp"&&W)K=I===0?"decisionQuestion":`criterion-${I-1}`,Z="end";else if(Y.key==="ArrowDown"&&le&&I<oe.length-1)K=`criterion-${I+1}`,Z="start";else if(Y.key==="Enter"&&le&&h.type!=="noul"&&ue.length<zl[h.type]){if(I<ue.length-1)Hi.flushSync(()=>El({...h,criteria:[...ue.slice(0,I+1),"",...ue.slice(I+1)]}));else if(I===oe.length-1){if(oe.length>=zl[h.type])return;Hi.flushSync(()=>El({...h,criteria:[...h.criteria.slice(0,I),B.value,""]}))}K=`criterion-${I+1}`,Z="start"}else Y.key==="Backspace"&&B.value===""&&h.type!=="noul"&&(ue.length>2||I>=ue.length&&I>0)&&(I<h.criteria.length&&Hi.flushSync(()=>El({...h,criteria:h.criteria.filter((X,P)=>P!==I)})),K=`criterion-${Math.max(0,I-1)}`,Z=I===0?"start":"end")}if(K!=null){Y.preventDefault();const oe=V.querySelector(`#${K}`);if(oe?.focus(),oe!=null&&Z!=null){const I=Z==="end"?oe.value.length:0;oe.setSelectionRange(I,I)}}},s[0]=h,s[1]=v):v=s[1];const g=v;let S;s[2]!==r?(S=Sp.map(Q=>f.jsx("button",{"aria-pressed":r.type===Q,onClick:()=>{zn.state={...r,type:Q}},children:Q},Q)),s[2]=r,s[3]=S):S=s[3];let E;s[4]!==S?(E=f.jsx("div",{className:"typeSwitch",role:"group","aria-label":"Decision type",children:S}),s[4]=S,s[5]=E):E=s[5];let b;s[6]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsxs("span",{className:"localBadge",children:[f.jsx("span",{}),"On device"]}),s[6]=b):b=s[6];let p;s[7]!==E?(p=f.jsxs("div",{className:"workspaceToolbar",children:[E,b]}),s[7]=E,s[8]=p):p=s[8];const A=!m;let M;s[9]!==h||s[10]!==A?(M=f.jsx(Cv,{input:h,disabled:A,onChange:El}),s[9]=h,s[10]=A,s[11]=M):M=s[11];const C=!m;let q;s[12]!==h?(q=Q=>El({...h,document:Q}),s[12]=h,s[13]=q):q=s[13];let O;s[14]!==h.document||s[15]!==C||s[16]!==q?(O=f.jsx(Ov,{value:h.document,disabled:C,onChange:q}),s[14]=h.document,s[15]=C,s[16]=q,s[17]=O):O=s[17];let H;s[18]!==h?(H=mc(h),s[18]=h,s[19]=H):H=s[19];let L;s[20]!==u||s[21]!==h||s[22]!==m||s[23]!==H?(L=f.jsx(Uv,{input:h,evaluation:u,ready:m,validationError:H,onRetry:Bv}),s[20]=u,s[21]=h,s[22]=m,s[23]=H,s[24]=L):L=s[24];let $;s[25]!==g||s[26]!==L||s[27]!==M||s[28]!==O?($=f.jsxs("div",{className:"editorGrid",onKeyDown:g,children:[M,O,L]}),s[25]=g,s[26]=L,s[27]=M,s[28]=O,s[29]=$):$=s[29];let J;return s[30]!==$||s[31]!==p?(J=f.jsxs("section",{className:"playground","aria-label":"Decision playground",children:[p,$]}),s[30]=$,s[31]=p,s[32]=J):J=s[32],J}function Bv(){ui.retry()}function Mn(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M19 12H5m7-7-7 7 7 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function vc(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"m12 3 9 5-9 5-9-5 9-5ZM3 12l9 5 9-5M3 16l9 5 9-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Gv(s){const n=ve.c(4);let r,u;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M272 320.46V202.3l166.62-75.73a16 16 0 0 0 0-29.14l-176-80A16 16 0 0 0 240 32v288.46q8-.45 16-.46t16 .46"}),u=f.jsx("path",{fill:"currentColor",d:"M463.33 457.5c-8.56-42.85-35.11-78.74-76.78-103.8c-32.5-19.55-72.67-31.3-114.55-33.7v79.75a16 16 0 1 1-32 0V320c-41.88 2.4-82.05 14.15-114.55 33.7c-41.67 25.06-68.22 60.95-76.78 103.8a32.49 32.49 0 0 0 6.44 27.08C61.13 492 70 496 80 496h352c10 0 18.88-4.05 24.9-11.42a32.49 32.49 0 0 0 6.43-27.08"}),n[0]=r,n[1]=u):(r=n[0],u=n[1]);let h;return n[2]!==s?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 512 512","aria-hidden":"true",...s,children:[r,u]}),n[2]=s,n[3]=h):h=n[3],h}function Lv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[f.jsx("path",{d:"M21.97 12c0 3.31-2.69 6-6 6a5.93 5.93 0 0 1-4-1.54c1.23-1.09 2-2.69 2-4.46s-.77-3.37-2-4.46a5.93 5.93 0 0 1 4-1.54c3.31 0 6 2.69 6 6"}),f.jsx("path",{d:"M13.97 12c0 1.77-.77 3.37-2 4.46a5.93 5.93 0 0 1-4 1.54c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.54 0 2.94.58 4 1.54c1.23 1.09 2 2.69 2 4.46"})]}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function xp(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M7 10.8V7H5v1q0 .95.55 1.713T7 10.8m10 0q.9-.325 1.45-1.088T19 8V7h-2zM11 19v-3.1q-1.225-.275-2.187-1.037T7.4 12.95q-1.875-.225-3.137-1.637T3 8V7q0-.825.588-1.412T5 5h2q0-.825.588-1.412T9 3h6q.825 0 1.413.588T17 5h2q.825 0 1.413.588T21 7v1q0 1.9-1.263 3.313T16.6 12.95q-.45 1.15-1.412 1.913T13 15.9V19h3q.425 0 .713.288T17 20t-.288.713T16 21H8q-.425 0-.712-.288T7 20t.288-.712T8 19z"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function bc(s,n,r,u){return s.find(h=>h.modelId===n&&h.game===r&&h.level===u)}function Qv(s,n,r){let u;for(const h of s)h.game===n&&h.level===r&&(u==null||Date.parse(h.completedAt)>Date.parse(u.completedAt))&&(u=h);return u}function Vv(s,n,r){return s.filter(u=>u.modelId===n&&u.game===r).reduce((u,h)=>u+h.best,0)}function Xv(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M4 6h16M4 12h10M4 18h6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Zv(s){const n=ve.c(4);let r,u;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),u=f.jsx("path",{d:"M12 7v5l3 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n[0]=r,n[1]=u):(r=n[0],u=n[1]);let h;return n[2]!==s?(h=f.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...s,children:[r,u]}),n[2]=s,n[3]=h):h=n[3],h}const Ml=new ya(void 0),kp=new Set;function Kv(s){if(kp.has(s))return!0;try{return localStorage.getItem(`game-help:${s}`)==="seen"||s==="signalMixing"&&localStorage.getItem("game-help:camouflage")==="seen"}catch{return!1}}function Jv(s){kp.add(s);try{localStorage.setItem(`game-help:${s}`,"seen")}catch{}Ml.state=void 0}function $v(s){const n=ve.c(19),{game:r,modelId:u}=s,h=et(Bt,Pv),m=et(Ue,Iv);let v;n[0]===Symbol.for("react.memo_cache_sentinel")?(v=f.jsxs("button",{className:"backButton",onClick:Wv,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Games"]}),n[0]=v):v=n[0];const g=it[r];let S;n[1]!==g.name?(S=f.jsx("h1",{children:g.name}),n[1]=g.name,n[2]=S):S=n[2];const E=it[r];let b;if(n[3]!==m||n[4]!==r||n[5]!==u||n[6]!==h||n[7]!==E.levels){let M;n[9]!==m||n[10]!==r||n[11]!==u||n[12]!==h?(M=C=>{const q=(u==null?void 0:bc(h,u,r,C.id))??Qv(h,r,C.id),O=u==null?void 0:Bi(m,u,r,C.id),H=O!=null&&(O.answers.length>0||O.document.length>0);return f.jsxs("button",{className:"level",disabled:u==null,onClick:()=>{bp(r,C.id),Kv(r)||(Ml.state=r)},children:[f.jsxs("span",{className:"levelDetails",children:[f.jsx("span",{className:"levelNumber",children:C.id}),f.jsx("strong",{children:C.title}),f.jsx("span",{className:"levelDescription",children:C.skill}),f.jsxs("span",{className:"levelMeta",children:[f.jsxs("span",{className:"levelTag",children:[f.jsx(vc,{"aria-hidden":"true"}),C.rounds.length," rounds"]}),f.jsxs("span",{className:"levelTag",children:[f.jsx(Xv,{"aria-hidden":"true"}),Math.max(...C.rounds.map(Fv))," bars"]}),f.jsxs("span",{className:"levelTag estimatedDuration",title:"Estimated time to finish this level",children:[f.jsx(Zv,{"aria-hidden":"true"}),C.estimatedDuration]})]})]}),f.jsx("span",{className:"levelScore","data-played":q!=null,children:q==null?f.jsxs("span",{className:"playAction",children:[H?"Continue":"Play",f.jsx(Mn,{"aria-hidden":"true"})]}):q.modelId===u?f.jsxs(f.Fragment,{children:[f.jsx("strong",{children:q.latest.toLocaleString()}),f.jsx("span",{children:"Last score"})]}):f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"Played with"}),f.jsx("strong",{className:"modelName",title:q.modelName,children:q.modelName})]})})]},C.id)},n[9]=m,n[10]=r,n[11]=u,n[12]=h,n[13]=M):M=n[13],b=E.levels.map(M),n[3]=m,n[4]=r,n[5]=u,n[6]=h,n[7]=E.levels,n[8]=b}else b=n[8];let p;n[14]!==b?(p=f.jsx("div",{className:"levels",children:b}),n[14]=b,n[15]=p):p=n[15];let A;return n[16]!==S||n[17]!==p?(A=f.jsxs("section",{className:"levelPicker",children:[v,S,p]}),n[16]=S,n[17]=p,n[18]=A):A=n[18],A}function Fv(s){return s.labels.length}function Wv(){Ue.state={...Ue.state,screen:"games"}}function Iv(s){return s.drafts}function Pv(s){return s.scores}function e0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M8.488 21.288q-1.638-.713-2.85-1.925t-1.925-2.85T3 13q0-.425.288-.712T4 12t.713.288T5 13q0 2.925 2.038 4.963T12 20t4.963-2.037T19 13t-2.037-4.962T12 6h-.15l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L8.7 5.7q-.3-.3-.3-.7t.3-.7l2.575-2.575q.3-.3.713-.288t.712.313q.275.3.288.7t-.288.7l-.85.85H12q1.875 0 3.513.713t2.85 1.925t1.925 2.85T21 13t-.712 3.513t-1.925 2.85t-2.85 1.925T12 22t-3.512-.712"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function t0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{fill:"currentColor",d:"M2.7 20L6.475 9.5q.125-.325.388-.5t.562-.175q.2 0 .375.075t.325.225l6.75 6.75q.15.15.225.325t.075.375q0 .3-.175.563t-.5.387L4 21.3q-.3.125-.575.038t-.475-.288t-.288-.475T2.7 20M23.025 7.025q-.225.225-.525.225t-.525-.225L21.9 6.95q-.35-.35-.875-.35t-.875.35l-5.075 5.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L19.1 5.9q.8-.8 1.925-.8t1.925.8l.075.075q.225.225.225.525t-.225.525m-13.05-3Q10.2 3.8 10.5 3.8t.525.225l.125.125q.8.8.8 1.9t-.8 1.9l-.075.075q-.225.225-.525.225t-.525-.225T9.8 7.5t.225-.525L10.1 6.9q.35-.35.35-.85t-.35-.85l-.125-.125Q9.75 4.85 9.75 4.55t.225-.525m4.05-2q.225-.225.525-.225t.525.225L16.15 3.1q.8.8.8 1.925t-.8 1.925l-3.075 3.075q-.225.225-.525.225t-.525-.225T11.8 9.5t.225-.525L15.1 5.9q.35-.35.35-.875t-.35-.875l-1.075-1.075Q13.8 2.85 13.8 2.55t.225-.525m8 12q-.225.225-.525.225t-.525-.225L19.9 12.95q-.35-.35-.875-.35t-.875.35l-1.075 1.075q-.225.225-.525.225t-.525-.225t-.225-.525t.225-.525L17.1 11.9q.8-.8 1.925-.8t1.925.8l1.075 1.075q.225.225.225.525t-.225.525"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function Np(s){const n=ve.c(11);let r,u,h;n[0]!==s?({children:r,className:h,...u}=s,n[0]=s,n[1]=r,n[2]=u,n[3]=h):(r=n[1],u=n[2],h=n[3]);const m=h===void 0?"":h,v=re.useRef(null),g=window.platform==="darwin";let S,E;n[4]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{const M=C=>{C.key!=="Enter"||C.isComposing||C.defaultPrevented||C.altKey||C.shiftKey||(g?!C.metaKey||C.ctrlKey:!C.ctrlKey||C.metaKey)||document.querySelector(":modal, :popover-open")!=null||v.current?.closest("[inert]")!=null||(C.preventDefault(),C.repeat||v.current?.click())};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},E=[g],n[4]=S,n[5]=E):(S=n[4],E=n[5]),re.useEffect(S,E);const b=`advanceButton ${m}`;let p;n[6]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs("kbd",{"aria-hidden":"true",children:[g?"⌘":"Ctrl",f.jsx("span",{children:"↵"})]}),n[6]=p):p=n[6];let A;return n[7]!==r||n[8]!==u||n[9]!==b?(A=f.jsxs("button",{...u,ref:v,className:b,"aria-keyshortcuts":g?"Meta+Enter":"Control+Enter",children:[r,p]}),n[7]=r,n[8]=u,n[9]=b,n[10]=A):A=n[10],A}function a0(s){const n=ve.c(96),{game:r,level:u,modelId:h,draft:m}=s,v=et(Bt,l0);let g,S,E,b,p,A,M,C,q,O;if(n[0]!==m.answers||n[1]!==m.completion?.record.best||n[2]!==r||n[3]!==u||n[4]!==h||n[5]!==v){const T=W1(u,m.answers.map(Ri));let G;n[16]!==m.completion?.record.best||n[17]!==r||n[18]!==u.id||n[19]!==h||n[20]!==v?(G=m.completion?.record.best??bc(v,h,r,u.id)?.best,n[16]=m.completion?.record.best,n[17]=r,n[18]=u.id,n[19]=h,n[20]=v,n[21]=G):G=n[21],g=G;const ee=it[r];let ie;if(n[22]!==u.id||n[23]!==ee.levels){let Te;n[25]!==u.id?(Te=Se=>{const{id:ne}=Se;return ne===u.id+1},n[25]=u.id,n[26]=Te):Te=n[26],ie=ee.levels.find(Te),n[22]=u.id,n[23]=ee.levels,n[24]=ie}else ie=n[24];S=ie,C="levelResult";const ye=it[r];n[27]!==u.id||n[28]!==ye.name?(q=f.jsxs("span",{className:"levelName",children:[ye.name," · Level ",u.id]}),n[27]=u.id,n[28]=ye.name,n[29]=q):q=n[29],n[30]!==u.title?(O=f.jsx("h1",{children:u.title}),n[30]=u.title,n[31]=O):O=n[31],A="scoreSummary",M="polite",b="yourScore",n[32]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Your score"}),n[32]=p):p=n[32],E=T.toLocaleString(),n[0]=m.answers,n[1]=m.completion?.record.best,n[2]=r,n[3]=u,n[4]=h,n[5]=v,n[6]=g,n[7]=S,n[8]=E,n[9]=b,n[10]=p,n[11]=A,n[12]=M,n[13]=C,n[14]=q,n[15]=O}else g=n[6],S=n[7],E=n[8],b=n[9],p=n[10],A=n[11],M=n[12],C=n[13],q=n[14],O=n[15];let H;n[33]!==E?(H=f.jsx("strong",{children:E}),n[33]=E,n[34]=H):H=n[34];let L;n[35]!==b||n[36]!==p||n[37]!==H?(L=f.jsxs("div",{className:b,children:[p,H]}),n[35]=b,n[36]=p,n[37]=H,n[38]=L):L=n[38];let $;n[39]===Symbol.for("react.memo_cache_sentinel")?($=f.jsx("span",{children:"Best score"}),n[39]=$):$=n[39];let J;n[40]!==g?(J=g?.toLocaleString()??"—",n[40]=g,n[41]=J):J=n[41];let Q;n[42]!==J?(Q=f.jsxs("div",{className:"bestScore",children:[$,f.jsx("strong",{children:J})]}),n[42]=J,n[43]=Q):Q=n[43];let Y;n[44]!==L||n[45]!==Q||n[46]!==A||n[47]!==M?(Y=f.jsxs("div",{className:A,"aria-live":M,children:[L,Q]}),n[44]=L,n[45]=Q,n[46]=A,n[47]=M,n[48]=Y):Y=n[48];let B;n[49]!==m.completion?(B=m.completion!=null&&m.completion.record.latest>m.completion.previousBest&&f.jsxs("p",{className:"newBest",children:[f.jsx(t0,{"aria-hidden":"true"}),"New record for this model!"]}),n[49]=m.completion,n[50]=B):B=n[50];let V;if(n[51]!==m.answers||n[52]!==u.rounds){let T;n[54]!==m.answers?(T=(G,ee)=>f.jsxs("div",{className:"roundScore",children:[f.jsxs("span",{children:[ee+1,". ",G.title,f.jsxs("small",{children:[Ri(m.answers[ee])," / ",G.limit," characters"]})]}),f.jsx("strong",{children:yp(G,Ri(m.answers[ee])).toLocaleString()})]},G.id),n[54]=m.answers,n[55]=T):T=n[55],V=u.rounds.map(T),n[51]=m.answers,n[52]=u.rounds,n[53]=V}else V=n[53];let W;n[56]!==V?(W=f.jsx("div",{className:"roundScores",children:V}),n[56]=V,n[57]=W):W=n[57];let le;n[58]!==m.saving?(le=m.saving&&f.jsx("p",{role:"status",children:"Saving score…"}),n[58]=m.saving,n[59]=le):le=n[59];let K;n[60]!==m.error||n[61]!==r||n[62]!==u.id||n[63]!==h?(K=m.error!=null&&f.jsxs("p",{className:"saveError",role:"alert",children:[m.error,f.jsx("button",{onClick:()=>{wp(h,r,u.id)},children:"Retry saving"})]}),n[60]=m.error,n[61]=r,n[62]=u.id,n[63]=h,n[64]=K):K=n[64];let Z;n[65]===Symbol.for("react.memo_cache_sentinel")?(Z=f.jsxs("button",{onClick:n0,children:[f.jsx(vc,{"aria-hidden":"true"}),"Levels"]}),n[65]=Z):Z=n[65];const oe=m.saving||m.completion==null;let I;n[66]!==r||n[67]!==u.id||n[68]!==h?(I=()=>Ui(h,r,u.id,{answers:[],document:"",startedAt:void 0,completion:void 0,error:void 0}),n[66]=r,n[67]=u.id,n[68]=h,n[69]=I):I=n[69];let ue;n[70]===Symbol.for("react.memo_cache_sentinel")?(ue=f.jsx(e0,{"aria-hidden":"true"}),n[70]=ue):ue=n[70];let X;n[71]!==oe||n[72]!==I?(X=f.jsxs("button",{disabled:oe,onClick:I,children:[ue,"Play again"]}),n[71]=oe,n[72]=I,n[73]=X):X=n[73];const P=S==null;let te;n[74]===Symbol.for("react.memo_cache_sentinel")?(te=f.jsx(xp,{"aria-hidden":"true"}),n[74]=te):te=n[74];let ke;n[75]!==P?(ke=f.jsxs("button",{autoFocus:P,onClick:i0,children:[te,"My scores"]}),n[75]=P,n[76]=ke):ke=n[76];let ge;n[77]!==X||n[78]!==ke?(ge=f.jsxs("div",{className:"secondaryActions",children:[Z,X,ke]}),n[77]=X,n[78]=ke,n[79]=ge):ge=n[79];let Le;n[80]!==r||n[81]!==S?(Le=S!=null&&f.jsxs(Np,{className:"nextLevel",autoFocus:!0,onClick:()=>bp(r,S.id),children:["Next level",f.jsx(Mn,{"aria-hidden":"true"})]}),n[80]=r,n[81]=S,n[82]=Le):Le=n[82];let Xe;n[83]!==ge||n[84]!==Le?(Xe=f.jsxs("div",{className:"resultActions",children:[ge,Le]}),n[83]=ge,n[84]=Le,n[85]=Xe):Xe=n[85];let tt;return n[86]!==Y||n[87]!==B||n[88]!==W||n[89]!==le||n[90]!==K||n[91]!==Xe||n[92]!==C||n[93]!==q||n[94]!==O?(tt=f.jsxs("section",{className:C,children:[q,O,Y,B,W,le,K,Xe]}),n[86]=Y,n[87]=B,n[88]=W,n[89]=le,n[90]=K,n[91]=Xe,n[92]=C,n[93]=q,n[94]=O,n[95]=tt):tt=n[95],tt}function i0(){Ue.state={...Ue.state,screen:"scores"}}function n0(){Ue.state={...Ue.state,screen:"levels"}}function l0(s){return s.scores}function o0(){const s=ve.c(26),{scores:n,scoreError:r,loadedModelId:u,localModels:h}=et(Bt);let m,v,g,S,E,b,p;if(s[0]!==u||s[1]!==h||s[2]!==r||s[3]!==n){const C=new Map(n.filter(f0).map(c0));for(const{id:O,name:H}of h)C.set(O,H);const q=[...Ts.map(u0),...Array.from(C,r0)];S="myLevel",s[11]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsxs("button",{className:"backButton",onClick:s0,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Games"]}),b=f.jsx("h1",{children:"My scores"}),p=f.jsx("p",{children:"Best scores for each model. Shorter successful answers earn more points."}),s[11]=E,s[12]=b,s[13]=p):(E=s[11],b=s[12],p=s[13]),m="scoreContent",s[14]!==r?(v=r!=null&&f.jsx("p",{className:"scoreError",role:"alert",children:r}),s[14]=r,s[15]=v):v=s[15],g=Object.keys(it).map(O=>f.jsx("div",{className:"scoreTable",children:f.jsxs("table",{children:[f.jsx("caption",{children:it[O].name}),f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"col",children:"Level"}),q.map(H=>f.jsxs("th",{scope:"col","data-loaded":H.id===u,children:[H.name,f.jsx("small",{children:H.detail})]},H.id))]})}),f.jsx("tbody",{children:it[O].levels.map(H=>f.jsxs("tr",{children:[f.jsxs("th",{scope:"row",children:[f.jsx("span",{children:H.id}),H.title]}),q.map(L=>{const $=bc(n,L.id,O,H.id);return f.jsx("td",{"data-loaded":L.id===u,children:$==null?f.jsx("span",{className:"notPlayed","aria-label":"Not played",children:"—"}):f.jsx("strong",{children:$.best.toLocaleString()})},L.id)})]},H.id))}),f.jsx("tfoot",{children:f.jsxs("tr",{children:[f.jsx("th",{scope:"row",children:"Total"}),q.map(H=>f.jsx("td",{"data-loaded":H.id===u,children:Vv(n,H.id,O).toLocaleString()},H.id))]})})]})},O)),s[0]=u,s[1]=h,s[2]=r,s[3]=n,s[4]=m,s[5]=v,s[6]=g,s[7]=S,s[8]=E,s[9]=b,s[10]=p}else m=s[4],v=s[5],g=s[6],S=s[7],E=s[8],b=s[9],p=s[10];let A;s[16]!==m||s[17]!==v||s[18]!==g?(A=f.jsxs("div",{className:m,children:[v,g]}),s[16]=m,s[17]=v,s[18]=g,s[19]=A):A=s[19];let M;return s[20]!==S||s[21]!==E||s[22]!==b||s[23]!==p||s[24]!==A?(M=f.jsxs("section",{className:S,children:[E,b,p,A]}),s[20]=S,s[21]=E,s[22]=b,s[23]=p,s[24]=A,s[25]=M):M=s[25],M}function s0(){Ue.state={...Ue.state,screen:"games"}}function r0(s){const[n,r]=s;return{id:n,name:r,detail:"Local file"}}function u0(s){return{id:s.id,name:`${s.name} ${s.parameters}`,detail:s.quant}}function c0(s){const{modelId:n,modelName:r}=s;return[n,r]}function f0(s){const{modelId:n}=s;return n.startsWith("local:")}const h0={lock:{"2-1":{1:"An identifiable collection place; a full address is not required"},"3-2":{2:"Water quantity, rather than watering frequency"},"5-4":{1:"A request to hear what happens after trying the fix"},"6-1":{3:"How long the two journeys take relative to each other"},"6-2":{2:"How the desk's size conflicts with the available space"},"6-3":{2:"Which proposed dish meets the dietary requirement"},"7-1":{3:"An instruction for looking after the cat's drinking water"},"7-2":{1:"A fix already attempted, rather than a new suggestion"},"7-5":{3:"How the substitution changes the resulting food"},"8-2":{3:"A change to your own use of the shelf to make the arrangement work"},"8-3":{3:"The personal obligation behind the swap, rather than the shift offered in return"},"8-4":{1:"A concrete way for a newcomer to take part, beyond a general welcome"},"8-5":{4:"Consent to publish the photo, separate from permission to receive it"},"9-3":{5:"Whether you would stay there again, rather than when"},"10-4":{5:"An observable way to judge the trial, rather than its hoped-for benefit"},"11-1":{3:"Admission cost, rather than booking instructions",4:"Practical arrangements for people with access needs, rather than the venue's location"},"11-3":{2:"The skill or service you want in return for yours",3:"Equal durations for both contributions, rather than a shared start time"},"11-4":{1:"A factor held constant across the groups for a fair comparison",4:"The procedure for testing the idea, rather than a prediction",5:"An observable result to measure, rather than materials or a prediction"},"11-7":{3:"Supplies participants should bring or can expect to have available"},"11-8":{6:"Help with a particular setup task, rather than general support for the idea"}},signalMixing:{"1-2":{0:"A defined part of the move, rather than a general request for help",1:"How the moving task can still get done if the friend declines"},"1-3":{2:"The noise's effect on you, rather than a judgment about the neighbor"},"2-1":{0:"A specific useful feature of the chart, rather than general praise"},"2-2":{2:"A replacement activity or occasion, beyond a vague intention to stay in touch"},"3-1":{6:"Explaining away the accident to avoid responsibility"},"4-4":{0:"A concrete payment failure, rather than a general concern about skipping tests"},"5-2":{3:"Something observable to track in the trial, rather than an expected benefit"},"5-3":{2:"A specific helpful action you can offer, beyond reassurance"},"6-1":{2:"Whether the proposal changes the amount of work or the price charged for it",3:"Separate pricing for deferred work, rather than including it in today's commitment"},"6-4":{0:"Whether the money is a gift or must be repaid"},"6-5":{0:"A concrete contribution or responsibility supporting the pay request"},"7-2":{3:"Who gets to take part in discussion after the trial"},"7-3":{2:"Work you personally observed, rather than other people's accounts"},"8-2":{3:"Limits on meeting shift preferences, rather than hours or trial length"},"8-5":{6:"Punishment for refusal, rather than explaining the stated safety restriction"},"9-2":{3:"Whether the customer must agree before the workaround is applied"},"9-6":{0:"The newcomer's equal share of the existing total, rather than an extra charge"},"10-2":{4:"Whether the owner controls follow-up contact with the other recipients"},"10-3":{2:"A way to contribute without gaining power over speaker selection",6:"Future decision-making power, even if conditional, rather than a chance to give feedback"},"10-5":{3:"Practical help with the presentation, rather than praise for accepting"},"11-4":{11:"Treating the pending accessibility review as already passed"},"11-5":{7:"Special treatment for a donation, even through an indirect or private exception"},"11-6":{11:"Denying or giving away credit for your own real work"}}},d0={Entitlement:"Claiming an automatic right to special treatment, rather than making a request","Threats for refusing":"Punishment for saying no, rather than a practical limit on your resources","Guilt trips":"Framing refusal as a failure of care or loyalty","Personal attacks":"Judging someone's character or worth, rather than their work or behavior","Blame shifting":"Assigning fault to someone else instead of accepting your part",Excuses:"Explaining away a mistake to avoid responsibility","Minimizing harm":"Dismissing a problem or its effects as unimportant","False certainty":"Guaranteeing an uncertain result, rather than committing to an action","Assumed motives":"Attributing bad intentions, rather than describing what happened","Promises beyond the limits":"An unconditional commitment beyond the message's stated limits","Sales pressure":"Using urgency or scarcity to push someone into agreeing","Pity or patronizing":"Treating someone as incapable of deciding for themselves","Dodging the issue":"Deflecting attention from the specific concern without addressing it","Assumed consent":"Proceeding as though permission was given, even if the message also asks politely",Stigma:"Judging someone's worth by their identity or private circumstances","Positive spin":"Presenting a setback or loss of service as good news","Pressure to disclose":"Making help or participation depend on revealing private information","Claimed consensus":"Presenting everyone's agreement as established","Secondhand claims":"Repeating assessments of work or events you did not personally observe","Leaking by hint":"Giving clues that reveal confidential information indirectly","A broad proof claim":"Treating a limited result as proof beyond the situations tested","Pretend validation":"Presenting the proposed larger study as already completed","Exposure as payment":"Offering publicity in place of compensation for work"};function _p(s,n){return n.labels.map((r,u)=>h0[s][n.id]?.[u]??(u>=n.goalCount?d0[r]:void 0))}function m0(s){const n=ve.c(3);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("path",{d:"M10.588 6.413Q10 5.825 10 5t.588-1.412T12 3t1.413.588T14 5t-.587 1.413T12 7t-1.412-.587m.35 14.15q-.438-.438-.438-1.063v-9q0-.625.438-1.062T12 9t1.063.438t.437 1.062v9q0 .625-.437 1.063T12 21t-1.062-.437"}),n[0]=r):r=n[0];let u;return n[1]!==s?(u=f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",...s,children:r}),n[1]=s,n[2]=u):u=n[2],u}function p0(s){const n=ve.c(25),{label:r,description:u}=s,h=re.useId();let m;n[0]!==h?(m=h.replaceAll(":",""),n[0]=h,n[1]=m):m=n[1];const v=`--meter-help-${m}`,g=re.useRef(null),S=re.useRef(null),E=re.useRef(null),[b,p]=re.useState(!1);let A;n[2]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{S.current?.dispose(),E.current?.dispose(),g.current==null&&Hi.flushSync(()=>p(!0)),g.current?.showPopover()},n[2]=A):A=n[2];const M=A;let C,q;n[3]===Symbol.for("react.memo_cache_sentinel")?(C=()=>()=>{S.current?.dispose(),E.current?.dispose()},q=[],n[3]=C,n[4]=q):(C=n[3],q=n[4]),re.useEffect(C,q);let O,H;n[5]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{S.current?.dispose(),g.current?.matches(":popover-open")||(S.current=new ql(M,250))},H=K=>{S.current?.dispose(),K.currentTarget.matches(":focus-within")||g.current?.hidePopover()},n[5]=O,n[6]=H):(O=n[5],H=n[6]);let L;n[7]===Symbol.for("react.memo_cache_sentinel")?(L=K=>{K.currentTarget.matches(":hover")||g.current?.hidePopover()},n[7]=L):L=n[7];let $;n[8]!==v?($={anchorName:v},n[8]=v,n[9]=$):$=n[9];const J=`About ${r}`,Q=b?h:void 0,Y=b?h:void 0;let B;n[10]===Symbol.for("react.memo_cache_sentinel")?(B=f.jsx(m0,{"aria-hidden":"true"}),n[10]=B):B=n[10];let V;n[11]!==u||n[12]!==Q||n[13]!==Y||n[14]!==$||n[15]!==J?(V=f.jsx("button",{type:"button",style:$,"aria-label":J,"aria-description":u,"aria-describedby":Q,popoverTarget:Y,popoverTargetAction:"show",onClick:M,children:B}),n[11]=u,n[12]=Q,n[13]=Y,n[14]=$,n[15]=J,n[16]=V):V=n[16];let W;n[17]!==v||n[18]!==u||n[19]!==h||n[20]!==b?(W=b&&f.jsx("span",{ref:g,id:h,className:"meterTooltip",style:{positionAnchor:v},role:"tooltip",popover:"auto",onToggle:K=>{E.current?.dispose(),K.newState==="closed"&&(E.current=new ql(()=>p(!1),2e3))},children:u}),n[17]=v,n[18]=u,n[19]=h,n[20]=b,n[21]=W):W=n[21];let le;return n[22]!==V||n[23]!==W?(le=f.jsxs("span",{className:"meterHelp",onPointerEnter:O,onPointerLeave:H,onFocus:M,onBlur:L,children:[V,W]}),n[22]=V,n[23]=W,n[24]=le):le=n[24],le}function Ep(s){const n=ve.c(24),{game:r,goalCount:u,labels:h,probabilities:m,descriptions:v}=s;let g;if(n[0]!==r||n[1]!==u||n[2]!==h){let A;n[4]!==r||n[5]!==u?(A=(M,C)=>`${C===0?"var(--game-meter-first-heading-rows)":r==="signalMixing"&&C===u?"var(--game-meter-divider-row) var(--game-meter-heading-rows)":"var(--game-meter-spacing-row)"} var(--game-meter-rows)`,n[4]=r,n[5]=u,n[6]=A):A=n[6],g=h.map(A).join(" "),n[0]=r,n[1]=u,n[2]=h,n[3]=g}else g=n[3];const S=g;let E;n[7]!==S?(E={gridTemplateRows:S},n[7]=S,n[8]=E):E=n[8];let b;if(n[9]!==v||n[10]!==r||n[11]!==u||n[12]!==h||n[13]!==m){let A;n[15]!==v||n[16]!==r||n[17]!==u||n[18]!==m?(A=(M,C)=>{const q=m[C],O=v[C],H=r==="lock"?Cl:C<u?ci.min:void 0,L=r==="signalMixing"&&C>=u?ci.other:void 0,$=q!=null&&(H==null||q>=H)&&(L==null||q<L),J=r==="signalMixing"&&C===u;return f.jsxs(re.Fragment,{children:[C===0||J?f.jsx("h2",{className:"meterSectionHeading","data-start-risks":J,children:f.jsx("span",{children:J?"Risks":"Goals"})}):f.jsx("div",{className:"meterGap","aria-hidden":"true"}),f.jsxs("div",{className:"gameMeter","data-target":$,children:[f.jsxs("div",{className:"meterHeading",children:[f.jsxs("span",{className:"meterLabel",children:[r==="lock"&&f.jsx("span",{className:"lockNumber",children:C+1}),f.jsxs("span",{className:"labelText",children:[M,O!=null&&f.jsx(p0,{label:M,description:O})]})]}),f.jsx("strong",{children:q==null?"—":`${(q*100).toFixed(1)}%`})]}),f.jsxs("div",{className:"meterBar",children:[f.jsx(Yi,{value:q??0,label:M}),H!=null&&f.jsx("span",{className:"threshold","data-bound":"minimum",style:{left:`${H*100}%`},"aria-hidden":"true"}),L!=null&&f.jsx("span",{className:"threshold","data-bound":"maximum",style:{left:`${L*100}%`},"aria-hidden":"true"})]})]})]},M)},n[15]=v,n[16]=r,n[17]=u,n[18]=m,n[19]=A):A=n[19],b=h.map(A),n[9]=v,n[10]=r,n[11]=u,n[12]=h,n[13]=m,n[14]=b}else b=n[14];let p;return n[20]!==r||n[21]!==E||n[22]!==b?(p=f.jsx("div",{className:"gameMeterList","data-game":r,style:E,children:b}),n[20]=r,n[21]=E,n[22]=b,n[23]=p):p=n[23],p}const vs=3e3,wc={lock:{limit:40,steps:[{text:"My cat",probabilities:[.9,.1,.08],caption:"Mention an animal to pass the first threshold"},{text:"My cat is stuck",probabilities:[.94,.32,.38],caption:"A problem alone does not ask for help"},{text:"My cat is stuck. Please help",probabilities:[.96,.91,.42],caption:"Ask for help to open the second lock"},{text:"My cat is stuck. Please help now!",probabilities:[.96,.94,.92],caption:"Add urgency to get every bar past its target"}]},signalMixing:{limit:150,steps:[{text:"Could I",probabilities:[261e-6,3e-6,.012399,248e-6],caption:"Start a request"},{text:"Could I borrow your charger?",probabilities:[.999998,2e-6,.001228,51e-6],caption:"Ask for the charger; a little thanks is still missing"},{text:"Could I borrow your charger? Thanks",probabilities:[.999998,.999446,.001262,7e-5],caption:"Add thanks while keeping entitlement and ultimatums low"}]}};function g0(s,n){const r=wc[s],u=Math.min(r.steps.length-1,Math.floor(Math.max(0,n)/vs)),h=r.steps[u],m=r.steps[u-1],v=Math.floor(Math.max(0,n-u*vs-350)/65),g=h.text.slice(0,(m?.text.length??0)+v);return{document:g,probabilities:g===h.text?h.probabilities:m?.probabilities??h.probabilities.map(()=>0),caption:h.caption}}const ri=new ya({elapsed:0,playing:!1});function y0(s){const n=ve.c(19),{game:r,active:u}=s,h=et(ri),m=wc[r],v=m.steps.length*vs,g=g0(r,h.elapsed),S={...it[r].levels[0].rounds[0],limit:m.limit},E=ws(r,S,g.document,g.probabilities);let b,p;n[0]!==u||n[1]!==v?(b=()=>{const L=matchMedia("(prefers-reduced-motion: reduce)"),$=()=>{L.matches&&(ri.state={elapsed:v,playing:!1})};return u?ri.state={elapsed:L.matches?v:0,playing:!L.matches}:ri.state={...ri.state,playing:!1},L.addEventListener("change",$),()=>L.removeEventListener("change",$)},p=[u,v],n[0]=u,n[1]=v,n[2]=b,n[3]=p):(b=n[2],p=n[3]),re.useEffect(b,p);let A;n[4]!==u||n[5]!==v||n[6]!==h.elapsed||n[7]!==h.playing?(A=()=>{if(!u||!h.playing)return;const L=performance.now(),$=new ql(()=>{const J=Math.min(v,h.elapsed+performance.now()-L);ri.state={elapsed:J,playing:J<v}},65);return()=>$.dispose()},n[4]=u,n[5]=v,n[6]=h.elapsed,n[7]=h.playing,n[8]=A):A=n[8];let M;n[9]!==u||n[10]!==v||n[11]!==h?(M=[u,v,h],n[9]=u,n[10]=v,n[11]=h,n[12]=M):M=n[12],re.useEffect(A,M);let C;n[13]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx("span",{className:"demoLabel",children:"Your message"}),n[13]=C):C=n[13];let q;n[14]!==h.playing?(q=f.jsx("span",{className:"caret","data-playing":h.playing,"aria-hidden":"true"}),n[14]=h.playing,n[15]=q):q=n[15];let O;n[16]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx(ys,{}),n[16]=O):O=n[16];let H;return n[17]!==g.caption?(H=f.jsx("figcaption",{children:g.caption}),n[17]=g.caption,n[18]=H):H=n[18],f.jsxs("figure",{className:"gameDemo","aria-label":"Example round",children:[f.jsxs("div",{className:"demoScene",children:[f.jsxs("div",{className:"demoDocument",children:[C,f.jsxs("div",{className:"demoSentence",children:[g.document,q]}),f.jsxs("div",{className:"demoFooter",children:[f.jsxs("span",{className:"demoSuccess","data-won":E,children:[O,r==="lock"?"Unlocked":"Balanced"]}),f.jsxs("span",{children:[g.document.length," / ",m.limit," characters"]})]})]}),f.jsx("div",{className:"demoMeters",children:f.jsx(Ep,{game:r,goalCount:S.goalCount,labels:S.labels,probabilities:g.probabilities,descriptions:_p(r,S)})})]}),H]})}function v0(s){const n=ve.c(13),{game:r}=s,u=et(ri),h=wc[r].steps.length*vs,m=u.elapsed/h*100,v=`${m}% 100%`;let g;n[0]!==v?(g={backgroundSize:v},n[0]=v,n[1]=g):g=n[1];let S;n[2]!==m?(S=Math.round(m),n[2]=m,n[3]=S):S=n[3];const E=`Demo progress: ${S}%`;let b;n[4]!==h||n[5]!==u.elapsed||n[6]!==u.playing?(b=()=>{ri.state={elapsed:u.elapsed>=h?0:u.elapsed,playing:!u.playing}},n[4]=h,n[5]=u.elapsed,n[6]=u.playing,n[7]=b):b=n[7];const p=u.playing?"Pause demo":u.elapsed>=h?"Replay demo":"Play demo";let A;return n[8]!==g||n[9]!==E||n[10]!==b||n[11]!==p?(A=f.jsx("button",{className:"gameDemoPlayback",style:g,"aria-description":E,onClick:b,children:p}),n[8]=g,n[9]=E,n[10]=b,n[11]=p,n[12]=A):A=n[12],A}function b0(s){const n=ve.c(31),{game:r,ready:u}=s,h=et(Ml),m=re.useRef(null),v=re.useRef(null),g=re.useId(),S=re.useId(),E=h===r&&u;let b,p;n[0]!==E?(b=()=>{E?(m.current?.showModal(),v.current?.focus()):m.current?.close()},p=[E],n[0]=E,n[1]=b,n[2]=p):(b=n[1],p=n[2]),re.useEffect(b,p);let A;n[3]!==r||n[4]!==u?(A=()=>{u&&Ml.state===r&&Jv(r)},n[3]=r,n[4]=u,n[5]=A):A=n[5];const M=it[r];let C;n[6]!==g||n[7]!==M.name?(C=f.jsx("h2",{id:g,children:M.name}),n[6]=g,n[7]=M.name,n[8]=C):C=n[8];let q;n[9]!==r?(q=r==="lock"?f.jsxs(f.Fragment,{children:["Read the brief and write a message that meets every goal. Get every bar to ",Cl*100,"% or more while staying within the character limit."]}):f.jsxs(f.Fragment,{children:["Read the brief and write a message that achieves every goal. Get each goal to ",ci.min*100,"% or more and keep each risk below ",ci.other*100,"%. Revise your wording to balance clarity, tact, and the character limit."]}),n[9]=r,n[10]=q):q=n[10];let O;n[11]!==S||n[12]!==q?(O=f.jsx("p",{id:S,children:q}),n[11]=S,n[12]=q,n[13]=O):O=n[13];let H;n[14]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsx("p",{children:"Shorter answers earn more points. Finish every round to save your level score for this model."}),n[14]=H):H=n[14];let L;n[15]!==r||n[16]!==E?(L=f.jsx(y0,{game:r,active:E}),n[15]=r,n[16]=E,n[17]=L):L=n[17];let $;n[18]!==r?($=f.jsx(v0,{game:r}),n[18]=r,n[19]=$):$=n[19];let J;n[20]===Symbol.for("react.memo_cache_sentinel")?(J=f.jsx("button",{className:"startButton",ref:v,onClick:()=>m.current?.close(),children:"Start playing"}),n[20]=J):J=n[20];let Q;n[21]!==$?(Q=f.jsxs("div",{className:"dialogActions",children:[$,J]}),n[21]=$,n[22]=Q):Q=n[22];let Y;return n[23]!==S||n[24]!==g||n[25]!==Q||n[26]!==A||n[27]!==C||n[28]!==O||n[29]!==L?(Y=f.jsxs("dialog",{className:"gameHelpDialog",ref:m,"aria-labelledby":g,"aria-describedby":S,onClose:A,children:[C,O,H,L,Q]}),n[23]=S,n[24]=g,n[25]=Q,n[26]=A,n[27]=C,n[28]=O,n[29]=L,n[30]=Y):Y=n[30],Y}const w0={lock:[{compactQuick:"A few words straight to the point",compactClear:"Small message with a strong signal",compact:"Every word pulling its weight",quickClear:"Instantly understood",quick:"You found your words quickly",clear:"Your meaning comes through clearly",balanced:"Every part of the message lands",close:"Just enough to get your meaning across",persistent:"You found a way to be understood",detailed:"A fully expressed thought",finish:"A clear finish to your first challenge",steady:"Your message gets through"},{compactQuick:"A clear request in no time",compactClear:"A small message with everything needed",compact:"All the essentials in a few words",quickClear:"Quickly made actionable",quick:"Straight to what matters",clear:"Nothing needed is left unsaid",balanced:"Every useful detail in balance",close:"Just enough detail to act on",persistent:"You worked out what to say",detailed:"Room for every useful detail",finish:"A complete set of clear messages",steady:"Ready for someone to act on"},{compactQuick:"A reason delivered without delay",compactClear:"A short message with solid reasoning",compact:"The reason without the extra words",quickClear:"Your reasoning lands immediately",quick:"Quick thinking with a clear cause",clear:"The why comes through strongly",balanced:"Purpose and reason evenly matched",close:"Your reasoning clears every bar",persistent:"You found the connection that works",detailed:"The whole explanation fits",finish:"A well-reasoned finish",steady:"A message with a clear why"},{compactQuick:"A plan made clear in a few beats",compactClear:"A compact plan with solid footing",compact:"A whole plan in very few words",quickClear:"Quick planning with clear intent",quick:"You put the plan together quickly",clear:"Every part of the plan is clear",balanced:"All the moving parts line up",close:"The plan clears every condition",persistent:"Your planning paid off",detailed:"Every step has room to land",finish:"A neatly planned finish",steady:"A plan that holds together"},{compactQuick:"A useful response without hesitation",compactClear:"A small message with real substance",compact:"Responsibility without excess words",quickClear:"A clear response right away",quick:"Quickly found the right response",clear:"Every part of your response lands",balanced:"Responsibility and action in balance",close:"Just enough to put things right",persistent:"You worked toward a useful response",detailed:"A complete and thoughtful response",finish:"A constructive finish",steady:"A useful way forward"},{compactQuick:"A quick solution in a small space",compactClear:"Compact wording with a strong balance",compact:"Room for both in very few words",quickClear:"A clear balance found quickly",quick:"You weighed it up quickly",clear:"Every side comes through clearly",balanced:"A remarkably even balance",close:"A balance that just clears the bars",persistent:"You found a way to make it work",detailed:"Enough room for every side",finish:"A well-balanced finish",steady:"Both sides have a place"},{compactQuick:"Useful details in a quick little message",compactClear:"Strong signals in a small space",compact:"Useful details without the word count",quickClear:"Clear signals right away",quick:"You fitted the details in quickly",clear:"Every useful detail stands out",balanced:"Useful details pulling together",close:"All the details just clear",persistent:"You made room for every detail",detailed:"The full picture fits",finish:"A complete set of useful details",steady:"Nothing essential left behind"},{compactQuick:"A tactful answer without delay",compactClear:"A short message with a sure touch",compact:"Tact without the extra words",quickClear:"A clear way through found quickly",quick:"Quick thinking with a careful touch",clear:"Every intention comes through clearly",balanced:"Careful wording in good balance",close:"A delicate balance that holds",persistent:"You found the right approach",detailed:"Enough room for a thoughtful answer",finish:"A considerate finish",steady:"A careful choice of words"},{compactQuick:"Six signals in a quick little message",compactClear:"Six strong signals in a small space",compact:"Six conditions without the sprawl",quickClear:"Six clear matches right away",quick:"You assembled all six quickly",clear:"Every one of the six stands out",balanced:"Six conditions in harmony",close:"All six just over the line",persistent:"You brought all six together",detailed:"A complete six-part message",finish:"Six moving parts brought home",steady:"All six working together"},{compactQuick:"A fast edit with very little left over",compactClear:"Lean wording with a strong signal",compact:"Every word earns its place",quickClear:"A precise edit without hesitation",quick:"You found the short route quickly",clear:"The meaning survived the edit",balanced:"Six signals in a lean balance",close:"Trimmed close without losing the match",persistent:"Your careful editing paid off",detailed:"Every available word put to use",finish:"A sharp finish to the editing challenge",steady:"A message worth its word count"},{compactQuick:"A swift finish in remarkably few words",compactClear:"A compact answer with masterful clarity",compact:"A final edit without excess",quickClear:"Seven clear matches at a glance",quick:"You found the final wording quickly",clear:"A strong answer to a demanding brief",balanced:"Seven intentions in fine balance",close:"A narrow path through all seven",persistent:"You worked this one into shape",detailed:"A demanding brief fully answered",finish:"A fitting final edit",steady:"A well-crafted answer"}],signalMixing:[{compactQuick:"A little tact goes a long way",compactClear:"A small request with room to breathe",compact:"No spare words and no arm twisting",quickClear:"A clear request without the pressure",quick:"Straight to the considerate version",clear:"The ask lands without leaning",balanced:"Your case and their choice both stand",close:"A request just inside the lines",persistent:"You found the courteous angle",detailed:"Every word gives the other person room",finish:"A tactful opening round complete",steady:"Firm enough to ask and kind enough to hear no"},{compactQuick:"A few words take the edge off",compactClear:"Direct feedback in a gentle package",compact:"Friction without the extra heat",quickClear:"A useful message without hesitation",quick:"You found the constructive angle quickly",clear:"The issue is clear and the person respected",balanced:"Candor and kindness share the page",close:"Direct without going over the edge",persistent:"You found a way to be useful",detailed:"The problem and the next step both fit",finish:"A constructive finish to a tricky conversation",steady:"No sugar coating and no sting"},{compactQuick:"Quick to own it and short on excuses",compactClear:"A compact apology with real repair",compact:"Responsibility without the extra baggage",quickClear:"A clear way to make it right",quick:"You reached for responsibility first",clear:"The repair matches the mistake",balanced:"Ownership and action in balance",close:"Accountability just clears the line",persistent:"You worked through the awkward part",detailed:"Enough room for the whole repair",finish:"A responsible finish",steady:"The buck stops in the right place"},{compactQuick:"A quick boundary with a useful opening",compactClear:"A small message with a sturdy boundary",compact:"A limit without a lecture",quickClear:"The limit and the route are both clear",quick:"You found the helpful no quickly",clear:"The boundary holds without a threat",balanced:"A firm limit with a genuine option",close:"Right on the edge of firm and fair",persistent:"You found a route around the constraint",detailed:"Every condition has room to land",finish:"A finish with boundaries intact",steady:"No blank cheque and no closed door"},{compactQuick:"A quick answer that leaves uncertainty intact",compactClear:"A few words with honest limits",compact:"Confidence without extra certainty",quickClear:"The known and unknown are clear at once",quick:"You found the honest answer quickly",clear:"Useful without pretending to know",balanced:"Reassurance and realism in balance",close:"Just enough confidence without a guarantee",persistent:"You resisted the easy overpromise",detailed:"The caveats earn their space",finish:"A clear-eyed finish",steady:"A promise about actions instead of outcomes"},{compactQuick:"A small proposal with a quick tradeoff",compactClear:"A compact bargain that respects both sides",compact:"Less text without losing the terms",quickClear:"The tradeoff lands immediately",quick:"You found another dimension to negotiate",clear:"The deal is clear without a squeeze",balanced:"Both sides keep something that matters",close:"The terms just clear every boundary",persistent:"You found the shape of a fair proposal",detailed:"The details make the offer usable",finish:"A negotiated finish with room for choice",steady:"No discount on the other person's agency"},{compactQuick:"A useful message without a loose detail",compactClear:"A few words with trust intact",compact:"Information shared on a need-to-know basis",quickClear:"The handoff is clear and the secret safe",quick:"You found what could be shared quickly",clear:"Useful without exposing someone",balanced:"Clarity and privacy in balance",close:"Enough said without saying too much",persistent:"You found the right information boundary",detailed:"Every shared detail has a purpose",finish:"A discreet and useful finish",steady:"The person stays bigger than the backstory"},{compactQuick:"Two audiences reached in a few beats",compactClear:"One small message with room for both",compact:"No extra words between two perspectives",quickClear:"Both audiences can act immediately",quick:"You found the shared language quickly",clear:"The same message works for both sides",balanced:"Different needs kept in view",close:"A shared message just inside the lines",persistent:"You found words both sides can use",detailed:"Enough space for two legitimate needs",finish:"A finish that leaves nobody outside",steady:"One message without one side disappearing"},{compactQuick:"A short plan with its contingencies ready",compactClear:"A compact plan that can change course",compact:"Fewer words without losing a branch",quickClear:"The fallback is clear from the start",quick:"You found a workable route quickly",clear:"The plan survives its first surprise",balanced:"Action and permission stay aligned",close:"Every branch just clears the threshold",persistent:"You worked out the dependencies",detailed:"The extra words make the plan executable",finish:"A finish with the fallback covered",steady:"A plan with somewhere safe to go next"},{compactQuick:"A quick correction without an escape clause",compactClear:"A compact message with the hard part intact",compact:"The nuance survived the edit",quickClear:"The difficult distinction lands clearly",quick:"You found the narrow path quickly",clear:"Precise without becoming evasive",balanced:"Candor and care hold their ground",close:"A narrow passage cleanly navigated",persistent:"You stayed with the difficult wording",detailed:"The nuance earns every extra character",finish:"A principled finish",steady:"No convenient omission needed"},{compactQuick:"A full balancing act in a few quick lines",compactClear:"A compact answer with every tension intact",compact:"Every word has more than one job",quickClear:"The whole situation comes into focus",quick:"You found the responsible route quickly",clear:"A complete message that holds together",balanced:"Evidence and empathy keep their balance",close:"Every line held at once",persistent:"The hard revision paid off",detailed:"The space is doing real work",finish:"A finish worthy of the full brief",steady:"Clear enough to act on and careful enough to trust"}]},T0={lock:[["A small emergency clearly expressed","A lift with a fair offer","A homemade offer worth accepting"],["A parcel ready to collect","A good read passed along","A borrowed tool with a way back"],["A route around the problem","A fern in good hands","More reading time with a clear return"],["A screening saved from the rain","A cake ready for its next stop","A guest with the key details","A rehearsal ready to happen"],["The right sandwich within reach","A notebook with its story restored","Everyone headed for the right room","A useful next step through the freeze"],["Two ways to town clearly weighed","A desk with its tradeoff in view","Lunch ready for a vote","A gift with room to choose"],["Your cat has a useful sitter note","A lamp repair ready to hand over","The next shift knows the stall","A book discussion ready to happen","A recipe ready for its substitute"],["Fresh air with a closing time","A shelf with room for both","A shift swap with something in return","A game with a place for everyone","A photo exchange with permission"],["A photo show worth a visit","A little garden from what you have","A useful review with room to improve","A walk with stories at both stops","A neighborhood ready to repair","A birthday planned around the person"],["A bench that fits the budget","A shorter workshop with its purpose intact","One meal with room for both guests","A sharing idea ready for a trial","A first hike made welcoming","A book swap ready to open"],["A cinema ready for one night","A little shop with a clear welcome","A fair trade in useful skills","An experiment ready to test","Everyday things with stories to tell","Two stops worth the journey","A club with a place for new people","A good idea ready for the street"]],signalMixing:[["A little courtesy to recharge with","A favor with a genuine way out","A quieter night without a character judgment"],["Feedback somebody can use","A no that leaves the door open","A payment reminder without an accusation"],["A broken mug with a real repair","The right names beside the work","A delay without a made-up deadline"],["A priority choice with its consequence","A remedy inside the real policy","Help with office hours attached","Disagreement with a practical alternative"],["A status update with the unknowns intact","A pilot kept in proportion","Support without a diagnosis","A recommendation with its drawbacks visible"],["A smaller scope at a fair rate","A deadline traded against scope","Two needs without a winner and loser","A gift without an emotional invoice","A raise without the ransom"],["A handoff without a private history","A behavior addressed without exposing a person","A reference inside firsthand knowledge","A launch that keeps its confidence","Support without a diagnosis at the door"],["A closure notice both audiences can use","A trial without a decision in disguise","Thanks without selling the program","A correction with a usable route","A welcome that respects the safety rule"],["A picnic with a budget and a backup","A delivery plan that can survive a delay","A launch with the review in the right place","A queue that uses the same rule for everyone","A trial with a way back","A shared bill with agreement before refunds"],["A headline brought back to its evidence","A repair without buying forgiveness","A funding boundary with an ethical route","A warning without an invented culprit","An opportunity without unpaid debt","A gain acknowledged without excluding anyone"],["A pay review with a real decision point","An incident report without a scapegoat","Two reasonable people with a workable plan","A launch with evidence and a stop rule","A donation that cannot buy a place","The whole team back in the picture","A hard change without a soft lie","Every signal given its due"]]};function S0(s,n,r,u,h,m){if(!ws(s,r,u,h))return;const v=Ri(u)/r.limit,g=h.slice(0,r.goalCount),S=h.map((H,L)=>s==="lock"?H-Cl:L<r.goalCount?H-ci.min:ci.other-H),E=Math.min(...S),b=E>=.18,p=v<=.45,A=m<=(25+r.labels.length*6)*1e3,M=Math.max(...g)-Math.min(...g)<=.06&&E>=.08,C=n.rounds.indexOf(r);let q;E<.035?q="close":p&&A?q="compactQuick":p&&b?q="compactClear":p?q="compact":A&&b?q="quickClear":A?q="quick":m>=15e4?q="persistent":b?q="clear":M?q="balanced":v>.82?q="detailed":C===n.rounds.length-1?q="finish":q="steady";const O=Array.from(u).reduce((H,L)=>H+L.codePointAt(0),C)%3;if(O===0&&["clear","steady","finish"].includes(q))return T0[s][n.id-1][C];if(O===0&&q==="balanced")return`All ${g.length} ${s==="lock"?"conditions":"goals"} in balance`;if(O===0&&q==="close"&&s==="signalMixing"){const H=S.indexOf(E);return H<r.goalCount?`Just over the line: ${r.labels[H]}`:`${r.labels[H]} kept below the line`}return w0[s][n.id-1][q]}function D0({won:s,game:n,level:r,round:u,document:h,result:m,startedAt:v}){const[g]=re.useState(()=>new ya("",{queueEvents:!1})),S=et(g);return re.useEffect(()=>{s&&(g.state=S0(n,r,u,h,gc(m),v==null?1/0:performance.now()-v)??"")},[s,n,r,u,h,m,v,g]),f.jsx("span",{className:"roundFeedback",role:"status","aria-hidden":!s,"data-visible":s&&S!=="",children:S})}function A0(s){const n=ve.c(110),{game:r,level:u,modelId:h,draft:m}=s,v=et(ui.state),g=u.rounds[m.answers.length],S=N0;let E,b,p,A;if(n[0]!==m.document||n[1]!==v.error||n[2]!==v.result||n[3]!==r||n[4]!==h||n[5]!==g){const St=pc(h,g,m.document);b=v.result;let la;n[10]!==h||n[11]!==b||n[12]!==g.questions?(la=b!=null&&b.request.modelId===h&&JSON.stringify([b.request.input,...b.request.additionalInputs??[]].map(k0))===JSON.stringify(g.questions),n[10]=h,n[11]=b,n[12]=g.questions,n[13]=la):la=n[13],p=la,E=gc(p?b:void 0),A=b!=null&&JSON.stringify(b.request)===JSON.stringify(St)&&v.error==null&&ws(r,g,m.document,E),n[0]=m.document,n[1]=v.error,n[2]=v.result,n[3]=r,n[4]=h,n[5]=g,n[6]=E,n[7]=b,n[8]=p,n[9]=A}else E=n[6],b=n[7],p=n[8],A=n[9];const M=A,C=Ri(m.document),q=it[r];let O;n[14]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx("div",{className:"spacer"}),n[14]=O):O=n[14];let H;n[15]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsxs("button",{className:"backButton",onClick:S,children:[f.jsx(Mn,{"aria-hidden":"true"}),"Levels"]}),n[15]=H):H=n[15];const L=it[r],$=m.answers.length+1;let J;n[16]!==u.id||n[17]!==u.rounds.length||n[18]!==$?(J=f.jsxs("span",{className:"roundCount",children:["Level ",u.id," · Round ",$," / ",u.rounds.length]}),n[16]=u.id,n[17]=u.rounds.length,n[18]=$,n[19]=J):J=n[19];let Q;n[20]!==L.name||n[21]!==J?(Q=f.jsxs("div",{className:"gameHeading",children:[H,f.jsxs("span",{children:[L.name," · ",J]})]}),n[20]=L.name,n[21]=J,n[22]=Q):Q=n[22];let Y;n[23]!==g.title?(Y=f.jsx("h1",{children:g.title}),n[23]=g.title,n[24]=Y):Y=n[24];let B;n[25]!==g.brief?(B=g.brief!=null&&f.jsx("p",{id:"roundBrief",children:g.brief}),n[25]=g.brief,n[26]=B):B=n[26];let V;n[27]!==B||n[28]!==Y?(V=f.jsx("div",{className:"roundHeader",children:f.jsxs("div",{className:"roundIntro",children:[Y,B]})}),n[27]=B,n[28]=Y,n[29]=V):V=n[29];let W;n[30]===Symbol.for("react.memo_cache_sentinel")?(W=f.jsx("label",{className:"writingHeading",htmlFor:"gameDocument",children:"Your message"}),n[30]=W):W=n[30];const le=g.brief==null?"characterLimit":"roundBrief characterLimit",K=h==null;let Z;n[31]!==m.startedAt||n[32]!==r||n[33]!==u.id||n[34]!==h||n[35]!==g.limit?(Z=St=>Ui(h,r,u.id,{startedAt:m.startedAt??performance.now(),document:Array.from(St.target.value).slice(0,g.limit).join("")}),n[31]=m.startedAt,n[32]=r,n[33]=u.id,n[34]=h,n[35]=g.limit,n[36]=Z):Z=n[36];let oe;n[37]!==m.document||n[38]!==le||n[39]!==K||n[40]!==Z?(oe=f.jsx("textarea",{id:"gameDocument","data-gramm":"false","data-enable-grammarly":"false","data-enable-grazie":"false","data-lt-active":"false",value:m.document,autoFocus:!0,placeholder:"Make every character count…","aria-describedby":le,spellCheck:!1,disabled:K,onChange:Z}),n[37]=m.document,n[38]=le,n[39]=K,n[40]=Z,n[41]=oe):oe=n[41];const I=C>=g.limit;let ue;n[42]!==C||n[43]!==g.limit||n[44]!==I?(ue=f.jsx("div",{className:"writingFooter",children:f.jsxs("span",{id:"characterLimit",className:"characterBudget","data-full":I,children:[C," / ",g.limit," characters"]})}),n[42]=C,n[43]=g.limit,n[44]=I,n[45]=ue):ue=n[45];let X;n[46]!==oe||n[47]!==ue?(X=f.jsxs("div",{className:"writingArea",children:[W,oe,ue]}),n[46]=oe,n[47]=ue,n[48]=X):X=n[48];const P=v.running,te=g.goalCount,ke=g.labels;let ge;n[49]!==r||n[50]!==g?(ge=_p(r,g),n[49]=r,n[50]=g,n[51]=ge):ge=n[51];let Le;n[52]!==r||n[53]!==E||n[54]!==g.goalCount||n[55]!==g.labels||n[56]!==ge?(Le=f.jsx("div",{className:"gameMeterViewport",children:f.jsx(Ep,{game:r,goalCount:te,labels:ke,probabilities:E,descriptions:ge})}),n[52]=r,n[53]=E,n[54]=g.goalCount,n[55]=g.labels,n[56]=ge,n[57]=Le):Le=n[57];let Xe;n[58]!==b||n[59]!==p?(Xe=p?f.jsxs(f.Fragment,{children:[b.duration.toLocaleString(void 0,{maximumFractionDigits:1}),f.jsx("span",{children:" ms"})]}):"—",n[58]=b,n[59]=p,n[60]=Xe):Xe=n[60];let tt;n[61]!==Xe?(tt=f.jsx("div",{className:"gameTiming","aria-label":"Decision time",children:f.jsx("strong",{children:Xe})}),n[61]=Xe,n[62]=tt):tt=n[62];let T;n[63]!==v.error||n[64]!==v.running?(T=v.error!=null&&f.jsxs("div",{className:"gameError",role:"alert",children:[v.error,f.jsx("button",{onClick:x0,disabled:v.running,children:"Retry"})]}),n[63]=v.error,n[64]=v.running,n[65]=T):T=n[65];let G;n[66]!==v.running||n[67]!==Le||n[68]!==tt||n[69]!==T?(G=f.jsxs("div",{className:"gameMeters","aria-label":"Live results","aria-busy":P,children:[Le,tt,T]}),n[66]=v.running,n[67]=Le,n[68]=tt,n[69]=T,n[70]=G):G=n[70];let ee;n[71]!==X||n[72]!==G?(ee=f.jsxs("div",{className:"gameBoard",children:[X,G]}),n[71]=X,n[72]=G,n[73]=ee):ee=n[73];let ie;n[74]!==r?(ie=f.jsx("button",{className:"howToPlay",onClick:()=>{Ml.state=r},children:"How to play"}),n[74]=r,n[75]=ie):ie=n[75];let ye;n[76]!==m.document||n[77]!==m.startedAt||n[78]!==r||n[79]!==u||n[80]!==b||n[81]!==g||n[82]!==M?(ye=f.jsx(D0,{won:M,game:r,level:u,round:g,document:m.document,result:b,startedAt:m.startedAt}),n[76]=m.document,n[77]=m.startedAt,n[78]=r,n[79]=u,n[80]=b,n[81]=g,n[82]=M,n[83]=ye):ye=n[83];const Te=!M;let Se;n[84]!==m.answers.length||n[85]!==r||n[86]!==u.id||n[87]!==u.rounds.length||n[88]!==h?(Se=()=>{document.startViewTransition({types:[m.answers.length===u.rounds.length-1?"level-result":"next-round"],update:()=>Hi.flushSync(()=>uv(h,r,u.id,ui.state.state))})},n[84]=m.answers.length,n[85]=r,n[86]=u.id,n[87]=u.rounds.length,n[88]=h,n[89]=Se):Se=n[89];const ne=m.answers.length===u.rounds.length-1?"Finish level":"Next round";let he;n[90]===Symbol.for("react.memo_cache_sentinel")?(he=f.jsx("span",{"aria-hidden":"true",children:" →"}),n[90]=he):he=n[90];let pt;n[91]!==Te||n[92]!==Se||n[93]!==ne?(pt=f.jsxs(Np,{className:"nextButton",disabled:Te,onClick:Se,children:[ne,he]}),n[91]=Te,n[92]=Se,n[93]=ne,n[94]=pt):pt=n[94];let na;n[95]!==ie||n[96]!==ye||n[97]!==pt?(na=f.jsxs("div",{className:"roundFooter",children:[ie,ye,pt]}),n[95]=ie,n[96]=ye,n[97]=pt,n[98]=na):na=n[98];let Wt;n[99]===Symbol.for("react.memo_cache_sentinel")?(Wt=f.jsx("div",{className:"spacer"}),n[99]=Wt):Wt=n[99];const Tt=h!=null;let Qe;n[100]!==r||n[101]!==Tt?(Qe=f.jsx(b0,{game:r,ready:Tt}),n[100]=r,n[101]=Tt,n[102]=Qe):Qe=n[102];let je;return n[103]!==V||n[104]!==q.name||n[105]!==ee||n[106]!==na||n[107]!==Qe||n[108]!==Q?(je=f.jsxs("section",{className:"playRound","aria-label":q.name,children:[O,Q,V,ee,na,Wt,Qe]}),n[103]=V,n[104]=q.name,n[105]=ee,n[106]=na,n[107]=Qe,n[108]=Q,n[109]=je):je=n[109],je}function x0(){ui.retry()}function k0(s){const{document:n,...r}=s;return r}function N0(){Ue.state={...Ue.state,screen:"levels"}}function _0(){const s=ve.c(27),n=et(Ue),r=et(Bt,z0),u=et(Bt,j0);if(n.screen==="scores"){let b;return s[0]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx(o0,{}),s[0]=b):b=s[0],b}if(n.screen==="levels"){let b;return s[1]!==r||s[2]!==n.game?(b=f.jsx($v,{game:n.game,modelId:r}),s[1]=r,s[2]=n.game,s[3]=b):b=s[3],b}if(n.screen==="round"&&r!=null){const b=it[n.game];let p;if(s[4]!==n.level||s[5]!==b.levels){let O;s[7]!==n.level?(O=H=>{const{id:L}=H;return L===n.level},s[7]=n.level,s[8]=O):O=s[8],p=b.levels.find(O),s[4]=n.level,s[5]=b.levels,s[6]=p}else p=s[6];const A=p;let M;s[9]!==r||s[10]!==n.drafts||s[11]!==n.game||s[12]!==n.level?(M=Bi(n.drafts,r,n.game,n.level),s[9]=r,s[10]=n.drafts,s[11]=n.game,s[12]=n.level,s[13]=M):M=s[13];const C=M;let q;return s[14]!==C||s[15]!==A||s[16]!==r||s[17]!==n.game?(q=C.answers.length===A.rounds.length?f.jsx(a0,{game:n.game,level:A,modelId:r,draft:C}):f.jsx(A0,{game:n.game,level:A,modelId:r,draft:C},C.answers.length),s[14]=C,s[15]=A,s[16]=r,s[17]=n.game,s[18]=q):q=s[18],q}let h;s[19]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx("h1",{children:"Play with meaning"}),s[19]=h):h=s[19];let m;s[20]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsxs("div",{className:"intro",children:[h,f.jsxs("button",{onClick:q0,children:[f.jsx(xp,{"aria-hidden":"true"}),"My scores"]})]}),s[20]=m):m=s[20];let v;s[21]===Symbol.for("react.memo_cache_sentinel")?(v=Object.keys(it),s[21]=v):v=s[21];let g;s[22]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsx("div",{className:"gameChoices",children:v.map(E0)}),s[22]=g):g=s[22];let S;s[23]!==u?(S=u!=null&&f.jsxs("span",{className:"appVersion",children:["v",u]}),s[23]=u,s[24]=S):S=s[24];let E;return s[25]!==S?(E=f.jsxs("section",{className:"play","aria-label":"Games",children:[m,g,S]}),s[25]=S,s[26]=E):E=s[26],E}function E0(s){return f.jsxs("button",{className:"gameChoice",onClick:()=>{Ue.state={...Ue.state,screen:"levels",game:s}},children:[f.jsx("span",{className:"gameSymbol","aria-hidden":"true",children:s==="lock"?f.jsx(Gv,{}):f.jsx(Lv,{})}),f.jsx("span",{className:"gameName",children:it[s].name}),f.jsx("span",{className:"description",children:it[s].description}),f.jsxs("span",{className:"gameMeta",children:[f.jsxs("span",{className:"gameTag",children:[f.jsx(vc,{"aria-hidden":"true"}),it[s].levels.length," levels"]}),f.jsxs("span",{className:"playGame",children:["Play game ",f.jsx(Mn,{"aria-hidden":"true"})]})]})]},s)}function q0(){Ue.state={...Ue.state,screen:"scores"}}function j0(s){return s.appVersion}function z0(s){return s.loadedModelId}function M0(s){const n=ve.c(33),{update:r}=s,u=re.useRef(null),[h,m]=re.useState(null),v=r!=null&&!r.dismissed;let g,S;n[0]!==v?(g=()=>{if(!v)return;let Q=[];const Y=V=>{Q=Q.filter(U0);for(const{type:W,target:le}of V)W==="attributes"&&le instanceof HTMLDialogElement&&le.matches(":modal")&&(Q=Q.filter(K=>K!==le),Q.push(le));for(const W of document.querySelectorAll("dialog:modal"))Q.includes(W)||Q.push(W);m(Q.at(-1)??document.body)},B=new MutationObserver(Y);return B.observe(document.body,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["open"]}),Y([]),()=>B.disconnect()},S=[v],n[0]=v,n[1]=g,n[2]=S):(g=n[1],S=n[2]),re.useEffect(g,S);let E;n[3]!==v?(E=()=>{v?u.current?.showPopover():u.current?.hidePopover()},n[3]=v,n[4]=E):E=n[4];let b;if(n[5]!==h||n[6]!==v?(b=[v,h],n[5]=h,n[6]=v,n[7]=b):b=n[7],re.useEffect(E,b),!r||!h)return null;const p=r.status==="downloading"||r.status==="installing",A=r.status==="checking"?"Checking for updates…":r.status==="current"?"You’re up to date":r.status==="installing"?"Restarting to update…":r.version?`${r.version} is available`:"Could not check for updates";let M;n[8]!==A?(M=f.jsx("strong",{children:A}),n[8]=A,n[9]=M):M=n[9];let C;n[10]!==r.error||n[11]!==r.manual?(C=(r.error??r.manual)&&f.jsx("span",{children:r.error??r.manual}),n[10]=r.error,n[11]=r.manual,n[12]=C):C=n[12];let q;n[13]!==M||n[14]!==C?(q=f.jsxs("div",{className:"updateMessage",role:"status",children:[M,C]}),n[13]=M,n[14]=C,n[15]=q):q=n[15];let O;n[16]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx("button",{className:"dismissUpdate","aria-label":"Dismiss update notification",onClick:R0,children:f.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:f.jsx("path",{d:"m7 7 10 10M7 17 17 7",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),n[16]=O):O=n[16];let H;n[17]!==p||n[18]!==r.manual||n[19]!==r.progress||n[20]!==r.status||n[21]!==r.version?(H=r.version&&f.jsxs("button",{className:"installUpdate",disabled:p,onClick:O0,children:[p&&f.jsx("progress",{"aria-label":"Update progress",max:1,value:r.progress}),f.jsx("span",{children:r.status==="installing"?"Restarting…":p?`Updating${r.progress==null?"…":` ${Math.round(r.progress*100)}%`}`:r.manual?"Download update":r.status==="error"?"Retry update":"Update"})]}),n[17]=p,n[18]=r.manual,n[19]=r.progress,n[20]=r.status,n[21]=r.version,n[22]=H):H=n[22];let L;n[23]!==r.status||n[24]!==r.version?(L=!r.version&&r.status==="error"&&f.jsx("button",{className:"installUpdate",onClick:C0,children:"Try again"}),n[23]=r.status,n[24]=r.version,n[25]=L):L=n[25];let $;n[26]!==L||n[27]!==q||n[28]!==H?($=f.jsxs("aside",{className:"updateToast",popover:"manual",ref:u,"aria-label":"App update",children:[q,O,H,L]}),n[26]=L,n[27]=q,n[28]=H,n[29]=$):$=n[29];let J;return n[30]!==h||n[31]!==$?(J=Hi.createPortal($,h),n[30]=h,n[31]=$,n[32]=J):J=n[32],J}function C0(){Ft.checkForUpdates()}function O0(){Ft.installUpdate()}function R0(){Ft.dismissUpdate()}function U0(s){return s.isConnected&&s.matches(":modal")}function H0(){const s=ve.c(18),n=et(Bt),r=et(Oi),u=et(Ue,Y0);let h;s[0]!==n?(h=f.jsx(jv,{state:n}),s[0]=n,s[1]=h):h=s[1];const m=n.loadedModelId==null,v=n.loadedModelId==null,g=r==="play"?u:r;let S;s[2]!==r?(S=r==="play"?f.jsx(_0,{}):f.jsx(Yv,{}),s[2]=r,s[3]=S):S=s[3];let E;s[4]!==g||s[5]!==S?(E=f.jsx("div",{className:"page",children:S},g),s[4]=g,s[5]=S,s[6]=E):E=s[6];let b;s[7]!==r||s[8]!==m||s[9]!==v||s[10]!==E?(b=f.jsx("main",{className:"mainContent","data-mode":r,"data-blocked":m,inert:v,children:E}),s[7]=r,s[8]=m,s[9]=v,s[10]=E,s[11]=b):b=s[11];let p;s[12]!==n.update?(p=f.jsx(M0,{update:n.update}),s[12]=n.update,s[13]=p):p=s[13];let A;return s[14]!==h||s[15]!==b||s[16]!==p?(A=f.jsxs("div",{className:"app",children:[h,b,p]}),s[14]=h,s[15]=b,s[16]=p,s[17]=A):A=s[17],A}function Y0(s){const{screen:n,game:r,level:u}=s;return`${n}/${r}/${u}`}R1.createRoot(document.getElementById("root")).render(f.jsx(E1.StrictMode,{children:f.jsx(H0,{})}));
|