PageSourceSearch

https://damta.world/assets/index-CPMaIk5G.js

js damta.world collected 2026-10-04 15:28:40 UTC 817,162 bytes, 959 lines download raw bytes

vendor: 5,508 bytes, lines 1-9
1function xv(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();function Zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pf={exports:{}},yl={},jf={exports:{}},ot={},Mg;function yv(){if(Mg)return ot;Mg=1;/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=f&&z[f]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,S={};function T(z,te,A){this.props=z,this.context=te,this.refs=S,this.updater=A||y}T.prototype.isReactComponent={},T.prototype.setState=function(z,te){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,te,"setState")},T.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function R(){}R.prototype=T.prototype;function P(z,te,A){this.props=z,this.context=te,this.refs=S,this.updater=A||y}var j=P.prototype=new R;j.constructor=P,v(j,T.prototype),j.isPureReactComponent=!0;var D=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function I(z,te,A){var Ee,de={},we=null,Te=null;if(te!=null)for(Ee in te.ref!==void 0&&(Te=te.ref),te.key!==void 0&&(we=""+te.key),te)E.call(te,Ee)&&!L.hasOwnProperty(Ee)&&(de[Ee]=te[Ee]);var Se=arguments.length-2;if(Se===1)de.children=A;else if(1<Se){for(var Ae=Array(Se),Qe=0;Qe<Se;Qe++)Ae[Qe]=arguments[Qe+2];de.children=Ae}if(z&&z.defaultProps)for(Ee in Se=z.defaultProps,Se)de[Ee]===void 0&&(de[Ee]=Se[Ee]);return{$$typeof:e,type:z,key:we,ref:Te,props:de,_owner:C.current}}function H(z,te){return{$$typeof:e,type:z.type,key:te,ref:z.ref,props:z.props,_owner:z._owner}}function F(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function $(z){var te={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(A){return te[A]})}var Y=/\/+/g;function ce(z,te){return typeof z=="object"&&z!==null&&z.key!=null?$(""+z.key):te.toString(36)}function ae(z,te,A,Ee,de){var we=typeof z;(we==="undefined"||we==="boolean")&&(z=null);var Te=!1;if(z===null)Te=!0;else switch(we){case"string":case"number":Te=!0;break;case"object":switch(z.$$typeof){case e:case t:Te=!0}}if(Te)return Te=z,de=de(Te),z=Ee===""?"."+ce(Te,0):Ee,D(de)?(A="",z!=null&&(A=z.replace(Y,"$&/")+"/"),ae(de,te,A,"",function(Qe){return Qe})):de!=null&&(F(de)&&(de=H(de,A+(!de.key||Te&&Te.key===de.key?"":(""+de.key).replace(Y,"$&/")+"/")+z)),te.push(de)),1;if(Te=0,Ee=Ee===""?".":Ee+":",D(z))for(var Se=0;Se<z.length;Se++){we=z[Se];var Ae=Ee+ce(we,Se);Te+=ae(we,te,A,Ae,de)}else if(Ae=b(z),typeof Ae=="function")for(z=Ae.call(z),Se=0;!(we=z.next()).done;)we=we.value,Ae=Ee+ce(we,Se++),Te+=ae(we,te,A,Ae,de);else if(we==="object")throw te=String(z),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.");return Te}function ie(z,te,A){if(z==null)return z;var Ee=[],de=0;return ae(z,Ee,"","",function(we){return te.call(A,we,de++)}),Ee}function re(z){if(z._status===-1){var te=z._result;te=te(),te.then(function(A){(z._status===0||z._status===-1)&&(z._status=1,z._result=A)},function(A){(z._status===0||z._status===-1)&&(z._status=2,z._result=A)}),z._status===-1&&(z._status=0,z._result=te)}if(z._status===1)return z._result.default;throw z._result}var pe={current:null},X={transition:null},J={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:X,ReactCurrentOwner:C};function _(){throw Error("act(...) is not supported in production builds of React.")}return ot.Children={map:ie,forEach:function(z,te,A){ie(z,function(){te.apply(this,arguments)},A)},count:function(z){var te=0;return ie(z,function(){te++}
vendor: 5,946 bytes, lines 9-25
9),te},toArray:function(z){return ie(z,function(te){return te})||[]},only:function(z){if(!F(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},ot.Component=T,ot.Fragment=n,ot.Profiler=s,ot.PureComponent=P,ot.StrictMode=i,ot.Suspense=p,ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,ot.act=_,ot.cloneElement=function(z,te,A){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var Ee=v({},z.props),de=z.key,we=z.ref,Te=z._owner;if(te!=null){if(te.ref!==void 0&&(we=te.ref,Te=C.current),te.key!==void 0&&(de=""+te.key),z.type&&z.type.defaultProps)var Se=z.type.defaultProps;for(Ae in te)E.call(te,Ae)&&!L.hasOwnProperty(Ae)&&(Ee[Ae]=te[Ae]===void 0&&Se!==void 0?Se[Ae]:te[Ae])}var Ae=arguments.length-2;if(Ae===1)Ee.children=A;else if(1<Ae){Se=Array(Ae);for(var Qe=0;Qe<Ae;Qe++)Se[Qe]=arguments[Qe+2];Ee.children=Se}return{$$typeof:e,type:z.type,key:de,ref:we,props:Ee,_owner:Te}},ot.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:l,_context:z},z.Consumer=z},ot.createElement=I,ot.createFactory=function(z){var te=I.bind(null,z);return te.type=z,te},ot.createRef=function(){return{current:null}},ot.forwardRef=function(z){return{$$typeof:u,render:z}},ot.isValidElement=F,ot.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:re}},ot.memo=function(z,te){return{$$typeof:h,type:z,compare:te===void 0?null:te}},ot.startTransition=function(z){var te=X.transition;X.transition={};try{z()}finally{X.transition=te}},ot.unstable_act=_,ot.useCallback=function(z,te){return pe.current.useCallback(z,te)},ot.useContext=function(z){return pe.current.useContext(z)},ot.useDebugValue=function(){},ot.useDeferredValue=function(z){return pe.current.useDeferredValue(z)},ot.useEffect=function(z,te){return pe.current.useEffect(z,te)},ot.useId=function(){return pe.current.useId()},ot.useImperativeHandle=function(z,te,A){return pe.current.useImperativeHandle(z,te,A)},ot.useInsertionEffect=function(z,te){return pe.current.useInsertionEffect(z,te)},ot.useLayoutEffect=function(z,te){return pe.current.useLayoutEffect(z,te)},ot.useMemo=function(z,te){return pe.current.useMemo(z,te)},ot.useReducer=function(z,te,A){return pe.current.useReducer(z,te,A)},ot.useRef=function(z){return pe.current.useRef(z)},ot.useState=function(z){return pe.current.useState(z)},ot.useSyncExternalStore=function(z,te,A){return pe.current.useSyncExternalStore(z,te,A)},ot.useTransition=function(){return pe.current.useTransition()},ot.version="18.3.1",ot}var Dg;function oh(){return Dg||(Dg=1,jf.exports=yv()),jf.exports}/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Fg;function wv(){if(Fg)return yl;Fg=1;var e=oh(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(u,p,h){var g,f={},b=null,y=null;h!==void 0&&(b=""+h),p.key!==void 0&&(b=""+p.key),p.ref!==void 0&&(y=p.ref);for(g in p)i.call(p,g)&&!l.hasOwnProperty(g)&&(f[g]=p[g]);if(u&&u.defaultProps)for(g in p=u.defaultProps,p)f[g]===void 0&&(f[g]=p[g]);return{$$typeof:t,type:u,key:b,ref:y,props:f,_owner:s.current}}return yl.Fragment=n,yl.jsx=c,yl.jsxs=c,yl}var zg;function kv(){return zg||(zg=1,Pf.exports=wv()),Pf.exports}var m=kv(),au={},Mf={exports:{}},er={},Df={exports:{}},Ff={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Gg;function bv(){return Gg||(Gg=1,(function(e){function t(X,J){var _=X.length;X.push(J);e:for(;0<_;){var z=_-1>>>1,te=X[z];if(0<s(te,J))X[z]=J,X[_]=te,_=z;else break e}}function n(X){return X.length===0?null:X[0]}function i(X){if(X.length===0)return null;var J=X[0],_=X.pop();if(_!==J){X[0]=_;e:for(var z=0,te=X.length,A=te>>>1;z<A;){var Ee=2*(z+1)-1,de=X[Ee],we=Ee+1,Te=X[we];if(0>s(de,_))we<te&&0>s(Te,de)?(X[z]=Te,X[we]=_,z=we):(X[z]=de,X[Ee]=_,z=Ee);else if(we<te&&0>s(Te,_))X[z]=Te,X[we]=_,z=we;else break e}}return J}function s(X,J){var _=X.sortIndex-J.sortIndex;return _!==0?_:X.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var p=[],h=[],g=1,f=null,b=3,y=!1,v=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(X){for(var J=n(h);J!==null;){if(J.callback===null)i(h);else if(J.startTime<=X)i(h),J.sortIndex=J.expirationTime,t(p,J);else break;J=n(h)}}function D(X){if(S=!1,j(X),!v)if(n(p)!==null)v=!0,re(E);else{var J=n(h);J!==null&&pe(D,J.startTime-X)}}function E(X,J){v=!1,S&&(S=!1,R(I),I=-1),y=!0;var _=b;try{for(j(J),f=n(p);f!==null&&(!(f.expirationTime>J)||X&&!$());){var z=f.callback;if(typeof z=="function"){f.callback=null,b=f.priorityLevel;var te=z(f.expirationTime<=J);J=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(p)&&i(p),j(J)}else i(p);f=n(p)}if(f!==null)var A=!0;else{var Ee=n(h);Ee!==null&&pe(D,Ee.startTime-J),A=!1}return A}finally{f=null,b=_,y=!1}}var C=!1,L=null,I=-1,H=5,F=-1;function $(){return!(e.unstable_now()-F<H)}function Y(){if(L!==null){var X=e.unstable_now();F=X;var J=!0;
vendor: 17,214 bytes, lines 25-37
25try{J=L(!0,X)}finally{J?ce():(C=!1,L=null)}}else C=!1}var ce;if(typeof P=="function")ce=function(){P(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ie=ae.port2;ae.port1.onmessage=Y,ce=function(){ie.postMessage(null)}}else ce=function(){T(Y,0)};function re(X){L=X,C||(C=!0,ce())}function pe(X,J){I=T(function(){X(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,re(E))},e.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"):H=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(p)},e.unstable_next=function(X){switch(b){case 1:case 2:case 3:var J=3;break;default:J=b}var _=b;b=J;try{return X()}finally{b=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,J){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var _=b;b=X;try{return J()}finally{b=_}},e.unstable_scheduleCallback=function(X,J,_){var z=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?z+_:z):_=z,X){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=_+te,X={id:g++,callback:J,priorityLevel:X,startTime:_,expirationTime:te,sortIndex:-1},_>z?(X.sortIndex=_,t(h,X),n(p)===null&&X===n(h)&&(S?(R(I),I=-1):S=!0,pe(D,_-z))):(X.sortIndex=te,t(p,X),v||y||(v=!0,re(E))),X},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(X){var J=b;return function(){var _=b;b=J;try{return X.apply(this,arguments)}finally{b=_}}}})(Ff)),Ff}var Bg;function vv(){return Bg||(Bg=1,Df.exports=bv()),Df.exports}/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Wg;function Sv(){if(Wg)return er;Wg=1;var e=oh(),t=vv();function n(r){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(r,o){c(r,o),c(r+"Capture",o)}function c(r,o){for(s[r]=o,r=0;r<o.length;r++)i.add(o[r])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},f={};function b(r){return p.call(f,r)?!0:p.call(g,r)?!1:h.test(r)?f[r]=!0:(g[r]=!0,!1)}function y(r,o,a,d){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return d?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function v(r,o,a,d){if(o===null||typeof o>"u"||y(r,o,a,d))return!0;if(d)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(r,o,a,d,x,k,N){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=d,this.attributeNamespace=x,this.mustUseProperty=a,this.propertyName=r,this.type=o,this.sanitizeURL=k,this.removeEmptyString=N}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){T[r]=new S(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var o=r[0];T[o]=new S(o,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){T[r]=new S(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){T[r]=new S(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){T[r]=new S(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){T[r]=new S(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){T[r]=new S(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){T[r]=new S(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){T[r]=new S(r,5,!1,r.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function P(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var o=r.replace(R,P);T[o]=new S(o,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var o=r.replace(R,P);T[o]=new S(o,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var o=r.replace(R,P);T[o]=new S(o,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){T[r]=new S(r,1,!1,r.toLowerCase(),null,!1,!1)}),T.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){T[r]=new S(r,1,!1,r.toLowerCase(),null,!0,!0)});function j(r,o,a,d){var x=T.hasOwnProperty(o)?T[o]:null;(x!==null?x.type!==0:d||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(v(o,a,x,d)&&(a=null),d||x===null?b(o)&&(a===null?r.removeAttribute(o):r.setAttribute(o,""+a)):x.mustUseProperty?r[x.propertyName]=a===null?x.type===3?!1:"":a:(o=x.attributeName,d=x.attributeNamespace,a===null?r.removeAttribute(o):(x=x.type,a=x===3||x===4&&a===!0?"":""+a,d?r.setAttributeNS(d,o,a):r.setAttribute(o,a))))}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),C=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),$=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),X=Symbol.iterator;function J(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var _=Object.assign,z;function te(r){if(z===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);z=o&&o[1]||""}return`
34`+z+r}var A=!1;function Ee(r,o){if(!r||A)return"";A=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(q){var d=q}Reflect.construct(r,[],o)}else{try{o.call()}catch(q){d=q}r.call(o.prototype)}else{try{throw Error()}catch(q){d=q}r()}}catch(q){if(q&&d&&typeof q.stack=="string"){for(var x=q.stack.split(`
35`),k=d.stack.split(`
36`),N=x.length-1,M=k.length-1;1<=N&&0<=M&&x[N]!==k[M];)M--;for(;1<=N&&0<=M;N--,M--)if(x[N]!==k[M]){if(N!==1||M!==1)do if(N--,M--,0>M||x[N]!==k[M]){var G=`
37`+x[N].replace(" at new "," at ");return r.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",r.displayName)),G}while(1<=N&&0<=M);break}}}finally{A=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?te(r):""}function de(r){switch(r.tag){case 5:return te(r.type);case 16:return te("Lazy");case 13:return te("Suspense");case 19:return te("SuspenseList");case 0:case 2:case 15:return r=Ee(r.type,!1),r;case 11:return r=Ee(r.type.render,!1),r;case 1:return r=Ee(r.type,!0),r;default:return""}}function we(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case L:return"Fragment";case C:return"Portal";case H:return"Profiler";case I:return"StrictMode";case ce:return"Suspense";case ae:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case $:return(r.displayName||"Context")+".Consumer";case F:return(r._context.displayName||"Context")+".Provider";case Y:var o=r.render;return r=r.displayName,r||(r=o.displayName||o.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ie:return o=r.displayName||null,o!==null?o:we(r.type)||"Memo";case re:o=r._payload,r=r._init;try{return we(r(o))}catch{}}return null}function Te(r){var o=r.type;switch(r.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=o.render,r=r.displayName||r.name||"",o.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(o);case 8:return o===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Se(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Ae(r){var o=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Qe(r){var o=Ae(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,o),d=""+r[o];if(!r.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var x=a.get,k=a.set;return Object.defineProperty(r,o,{configurable:!0,get:function(){return x.call(this)},set:function(N){d=""+N,k.call(this,N)}}),Object.defineProperty(r,o,{enumerable:a.enumerable}),{getValue:function(){return d},setValue:function(N){d=""+N},stopTracking:function(){r._valueTracker=null,delete r[o]}}}}function vt(r){r._valueTracker||(r._valueTracker=Qe(r))}function it(r){if(!r)return!1;var o=r._valueTracker;if(!o)return!0;var a=o.getValue(),d="";return r&&(d=Ae(r)?r.checked?"true":"false":r.value),r=d,r!==a?(o.setValue(r),!0):!1}function Ye(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Rt(r,o){var a=o.checked;return _({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function dn(r,o){var a=o.defaultValue==null?"":o.defaultValue,d=o.checked!=null?o.checked:o.defaultChecked;a=Se(o.value!=null?o.value:a),r._wrapperState={initialChecked:d,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Un(r,o){o=o.checked,o!=null&&j(r,"checked",o,!1)}function fn(r,o){Un(r,o);var a=Se(o.value),d=o.type;if(a!=null)d==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(d==="submit"||d==="reset"){r.removeAttribute("value");return}o.hasOwnProperty("value")?st(r,o.type,a):o.hasOwnProperty("defaultValue")&&st(r,o.type,Se(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(r.defaultChecked=!!o.defaultChecked)}function Pn(r,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var d=o.type;if(!(d!=="submit"&&d!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+r._wrapperState.initialValue,a||o===r.value||(r.value=o),r.defaultValue=o}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function st(r,o,a){(o!=="number"||Ye(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var Ce=Array.isArray;function We(r,o,a,d){if(r=r.options,o){o={};for(var x=0;x<a.length;x++)o["$"+a[x]]=!0;for(a=0;a<r.length;a++)x=o.hasOwnProperty("$"+r[a].value),r[a].selected!==x&&(r[a].selected=x),x&&d&&(r[a].defaultSelected=!0)}else{for(a=""+Se(a),o=null,x=0;x<r.length;x++){if(r[x].value===a){r[x].selected=!0,d&&(r[x].defaultSelected=!0);return}o!==null||r[x].disabled||(o=r[x])}o!==null&&(o.selected=!0)}}function Xe(r,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return _({},o,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function dt(r,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(n(92));if(Ce(a)){if(1<a.length)throw Error(n(93));a=a[0]}o=a}o==null&&(o=""),a=o}r._wrapperState={initialValue:Se(a)}}function gt(r,o){var a=Se(o.value),d=Se(o.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),o.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),d!=null&&(r.defaultValue=""+d)}function Zt(r){var o=r.textContent;o===r._wrapperState.initialValue&&o!==""&&o!==null&&(r.value=o)}function Z(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Q(r,o){return r==null||r==="http://www.w3.org/1999/xhtml"?Z(o):r==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Ie,Pe=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,d,x){MSApp.execUnsafeLocalFunction(function(){return r(o,a,d,x)})}:r})(function(r,o){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=o;else{for(Ie=Ie||document.createElement("div"),Ie.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Ie.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}});function ue(r,o){if(o){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=o;return}}r.textContent=o}var ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ct=["Webkit","ms","Moz","O"];Object.keys(ft).forEach(function(r){ct.forEach(function(o){o=o+r.charAt(0).toUpperCase()+r.substring(1),ft[o]=ft[r]})});function bt(r,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||ft.hasOwnProperty(r)&&ft[r]?(""+o).trim():o+"px"}function Jt(r,o){r=r.style;for(var a in o)if(o.hasOwnProperty(a)){var d=a.indexOf("--")===0,x=bt(a,o[a],d);a==="float"&&(a="cssFloat"),d?r.setProperty(a,x):r[a]=x}}var en=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function at(r,o){if(o){if(en[r]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function tn(r,o){if(r.indexOf("-")===-1)return typeof o.is=="str
37ing";switch(r){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 Pt=null;function kn(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var kr=null,jn=null,pn=null;function ao(r){if(r=rl(r)){if(typeof kr!="function")throw Error(n(280));var o=r.stateNode;o&&(o=vc(o),kr(r.stateNode,r.type,o))}}function qe(r){jn?pn?pn.push(r):pn=[r]:jn=r}function jt(){if(jn){var r=jn,o=pn;if(pn=jn=null,ao(r),o)for(r=0;r<o.length;r++)ao(o[r])}}function $t(r,o){return r(o)}function nn(){}var br=!1;function Mt(r,o,a){if(br)return r(o,a);br=!0;try{return $t(r,o,a)}finally{br=!1,(jn!==null||pn!==null)&&(nn(),jt())}}function Kt(r,o){var a=r.stateNode;if(a===null)return null;var d=vc(a);if(d===null)return null;a=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,o,typeof a));return a}var Vn=!1;if(u)try{var Yt={};Object.defineProperty(Yt,"passive",{get:function(){Vn=!0}}),window.addEventListener("test",Yt,Yt),window.removeEventListener("test",Yt,Yt)}catch{Vn=!1}function sn(r,o,a,d,x,k,N,M,G){var q=Array.prototype.slice.call(arguments,3);try{o.apply(a,q)}catch(ge){this.onError(ge)}}var ar=!1,hn=null,_t=!1,Mn=null,_e={onError:function(r){ar=!0,hn=r}};function Ge(r,o,a,d,x,k,N,M,G){ar=!1,hn=null,sn.apply(_e,arguments)}function ri(r,o,a,d,x,k,N,M,G){if(Ge.apply(this,arguments),ar){if(ar){var q=hn;ar=!1,hn=null}else throw Error(n(198));_t||(_t=!0,Mn=q)}}function vr(r){var o=r,a=r;if(r.alternate)for(;o.return;)o=o.return;else{r=o;do o=r,(o.flags&4098)!==0&&(a=o.return),r=o.return;while(r)}return o.tag===3?a:null}function Sr(r){if(r.tag===13){var o=r.memoizedState;if(o===null&&(r=r.alternate,r!==null&&(o=r.memoizedState)),o!==null)return o.dehydrated}return null}function Is(r){if(vr(r)!==r)throw Error(n(188))}function lo(r){var o=r.alternate;if(!o){if(o=vr(r),o===null)throw Error(n(188));return o!==r?null:r}for(var a=r,d=o;;){var x=a.return;if(x===null)break;var k=x.alternate;if(k===null){if(d=x.return,d!==null){a=d;continue}break}if(x.child===k.child){for(k=x.child;k;){if(k===a)return Is(x),r;if(k===d)return Is(x),o;k=k.sibling}throw Error(n(188))}if(a.return!==d.return)a=x,d=k;else{for(var N=!1,M=x.child;M;){if(M===a){N=!0,a=x,d=k;break}if(M===d){N=!0,d=x,a=k;break}M=M.sibling}if(!N){for(M=k.child;M;){if(M===a){N=!0,a=k,d=x;break}if(M===d){N=!0,d=k,a=x;break}M=M.sibling}if(!N)throw Error(n(189))}}if(a.alternate!==d)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:o}function Io(r){return r=lo(r),r!==null?oi(r):null}function oi(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var o=oi(r);if(o!==null)return o;r=r.sibling}return null}var zr=t.unstable_scheduleCallback,ii=t.unstable_cancelCallback,co=t.unstable_shouldYield,ja=t.unstable_requestPaint,ee=t.unstable_now,he=t.unstable_getCurrentPriorityLevel,ne=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,oe=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,ut=t.unstable_IdlePriority,Tt=null,He=null;function le(r){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(Tt,r,void 0,(r.current.flags&128)===128)}catch{}}var xt=Math.clz32?Math.clz32:si,St=Math.log,Gr=Math.LN2;function si(r){return r>>>=0,r===0?32:31-(St(r)/Gr|0)|0}var Er=64,uo=4194304;function ai(r){switch(r&-r){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: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function zi(r,o){var a=r.pendingLanes;if(a===0)return 0;var d=0,x=r.suspendedLanes,k=r.pingedLanes,N=a&268435455;if(N!==0){var M=N&~x;
vendor: 27,183 bytes, lines 37-38
37M!==0?d=ai(M):(k&=N,k!==0&&(d=ai(k)))}else N=a&~x,N!==0?d=ai(N):k!==0&&(d=ai(k));if(d===0)return 0;if(o!==0&&o!==d&&(o&x)===0&&(x=d&-d,k=o&-o,x>=k||x===16&&(k&4194240)!==0))return o;if((d&4)!==0&&(d|=a&16),o=r.entangledLanes,o!==0)for(r=r.entanglements,o&=d;0<o;)a=31-xt(o),x=1<<a,d|=r[a],o&=~x;return d}function dd(r,o){switch(r){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ls(r,o){for(var a=r.suspendedLanes,d=r.pingedLanes,x=r.expirationTimes,k=r.pendingLanes;0<k;){var N=31-xt(k),M=1<<N,G=x[N];G===-1?((M&a)===0||(M&d)!==0)&&(x[N]=dd(M,o)):G<=o&&(r.expiredLanes|=M),k&=~M}}function Gi(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Ma(){var r=Er;return Er<<=1,(Er&4194240)===0&&(Er=64),r}function li(r){for(var o=[],a=0;31>a;a++)o.push(r);return o}function fo(r,o,a){r.pendingLanes|=o,o!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,o=31-xt(o),r[o]=a}function As(r,o){var a=r.pendingLanes&~o;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=o,r.mutableReadLanes&=o,r.entangledLanes&=o,o=r.entanglements;var d=r.eventTimes;for(r=r.expirationTimes;0<a;){var x=31-xt(a),k=1<<x;o[x]=0,d[x]=-1,r[x]=-1,a&=~k}}function Bi(r,o){var a=r.entangledLanes|=o;for(r=r.entanglements;a;){var d=31-xt(a),x=1<<d;x&o|r[d]&o&&(r[d]|=o),a&=~x}}var pt=0;function Wi(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Os,Ps,Da,Fa,Hi,$i=!1,Lo=[],Br=null,lr=null,Wr=null,ci=new Map,ui=new Map,po=[],js="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 submit".split(" ");function Ms(r,o){switch(r){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":lr=null;break;case"mouseover":case"mouseout":Wr=null;break;case"pointerover":case"pointerout":ci.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(o.pointerId)}}function di(r,o,a,d,x,k){return r===null||r.nativeEvent!==k?(r={blockedOn:o,domEventName:a,eventSystemFlags:d,nativeEvent:k,targetContainers:[x]},o!==null&&(o=rl(o),o!==null&&Ps(o)),r):(r.eventSystemFlags|=d,o=r.targetContainers,x!==null&&o.indexOf(x)===-1&&o.push(x),r)}function za(r,o,a,d,x){switch(o){case"focusin":return Br=di(Br,r,o,a,d,x),!0;case"dragenter":return lr=di(lr,r,o,a,d,x),!0;case"mouseover":return Wr=di(Wr,r,o,a,d,x),!0;case"pointerover":var k=x.pointerId;return ci.set(k,di(ci.get(k)||null,r,o,a,d,x)),!0;case"gotpointercapture":return k=x.pointerId,ui.set(k,di(ui.get(k)||null,r,o,a,d,x)),!0}return!1}function Ga(r){var o=as(r.target);if(o!==null){var a=vr(o);if(a!==null){if(o=a.tag,o===13){if(o=Sr(a),o!==null){r.blockedOn=o,Hi(r.priority,function(){Da(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Ui(r){if(r.blockedOn!==null)return!1;for(var o=r.targetContainers;0<o.length;){var a=zs(r.domEventName,r.eventSystemFlags,o[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var d=new a.constructor(a.type,a);Pt=d,a.target.dispatchEvent(d),Pt=null}else return o=rl(a),o!==null&&Ps(o),r.blockedOn=a,!1;o.shift()}return!0}function Ba(r,o,a){Ui(r)&&a.delete(o)}function fd(){$i=!1,Br!==null&&Ui(Br)&&(Br=null),lr!==null&&Ui(lr)&&(lr=null),Wr!==null&&Ui(Wr)&&(Wr=null),ci.forEach(Ba),ui.forEach(Ba)}function Vi(r,o){r.blockedOn===o&&(r.blockedOn=null,$i||($i=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fd)))}function Ds(r){function o(x){return Vi(x,r)}if(0<Lo.length){Vi(Lo[0],r);for(var a=1;a<Lo.length;a++){var d=Lo[a];d.blockedOn===r&&(d.blockedOn=null)}}for(Br!==null&&Vi(Br,r),lr!==null&&Vi(lr,r),Wr!==null&&Vi(Wr,r),ci.forEach(o),ui.forEach(o),a=0;a<po.length;a++)d=po[a],d.blockedOn===r&&(d.blockedOn=null);for(;0<po.length&&(a=po[0],a.blockedOn===null);)Ga(a),a.blockedOn===null&&po.shift()}var Cr=D.ReactCurrentBatchConfig,Hr=!0;function Wa(r,o,a,d){var x=pt,k=Cr.transition;Cr.transition=null;try{pt=1,Fs(r,o,a,d)}finally{pt=x,Cr.transition=k}}function Ao(r,o,a,d){var x=pt,k=Cr.transition;Cr.transition=null;try{pt=4,Fs(r,o,a,d)}finally{pt=x,Cr.transition=k}}function Fs(r,o,a,d){if(Hr){var x=zs(r,o,a,d);if(x===null)Sd(r,o,d,Oo,a),Ms(r,d);else if(za(x,r,o,a,d))d.stopPropagation();else if(Ms(r,d),o&4&&-1<js.indexOf(r)){for(;x!==null;){var k=rl(x);if(k!==null&&Os(k),k=zs(r,o,a,d),k===null&&Sd(r,o,d,Oo,a),k===x)break;x=k}x!==null&&d.stopPropagation()}else Sd(r,o,d,null,a)}}var Oo=null;function zs(r,o,a,d){if(Oo=null,r=kn(d),r=as(r),r!==null)if(o=vr(r),o===null)r=null;else if(a=o.tag,a===13){if(r=Sr(o),r!==null)return r;r=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null);return Oo=r,null}function Gs(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(he()){case ne:return 1;case xe:return 4;case oe:case Ne:return 16;case ut:return 536870912;default:return 16}default:return 16}}var Nr=null,Nn=null,ho=null;function bn(){if(ho)return ho;var r,o=Nn,a=o.length,d,x="value"in Nr?Nr.value:Nr.textContent,k=x.length;for(r=0;r<a&&o[r]===x[r];r++);var N=a-r;for(d=1;d<=N&&o[a-d]===x[k-d];d++);return ho=x.slice(r,1<d?1-d:void 0)}function mo(r){var o=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&o===13&&(r=13)):r=o,r===10&&(r=13),32<=r||r===13?r:0}function Ki(){return!0}function Ha(){return!1}function It(r){function o(a,d,x,k,N){this._reactName=a,this._targetInst=x,this.type=d,this.nativeEvent=k,this.target=N,this.currentTarget=null;for(var M in r)r.hasOwnProperty(M)&&(a=r[M],this[M]=a?a(k):k[M]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?Ki:Ha,this.isPropagationStopped=Ha,this}return _(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),o}var Rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Po=It(Rr),Kn=_({},Rr,{view:0,detail:0}),_r=It(Kn),Tr,Yi,cr,jo=_({},Kn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:es,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==cr&&(cr&&r.type==="mousemove"?(Tr=r.screenX-cr.screenX,Yi=r.screenY-cr.screenY):Yi=Tr=0,cr=r),Tr)},movementY:function(r){return"movementY"in r?r.movementY:Yi}}),go=It(jo),Xi=_({},jo,{dataTransfer:0}),tc=It(Xi),$a=_({},Kn,{relatedTarget:0}),Bs=It($a),$r=_({},Rr,{animationName:0,elapsedTime:0,pseudoElement:0}),qi=It($r),Zi=_({},Rr,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Ws=It(Zi),nc=_({},Rr,{data:0}),xo=It(nc),Mo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pd={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"},Ji={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qi(r){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(r):(r=Ji[r])?!!o[r]:!1}function es(){return Qi}var Ua=_({},Kn,{key:function(r){if(r.key){var o=Mo[r.key]||r.key;if(o!=="Unidentified")return o}return r.type==="keypress"?(r=mo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?pd[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:es,charCode:function(r){return r.type==="keypress"?mo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?mo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Do=It(Ua),rc=_({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fi=It(rc),oc=_({},Kn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:es}),ts=It(oc),Hs=_({},Rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fo=It(Hs),ic=_({},jo,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),hd=It(ic),md=[9,13,27,32],Ze=u&&"CompositionEvent"in window,pi=null;u&&"documentMode"in document&&(pi=document.documentMode);var Ur=u&&"TextEvent"in window&&!pi,sc=u&&(!Ze||pi&&8<pi&&11>=pi),ac=" ",lc=!1;function Va(r,o){switch(r){case"keyup":return md.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ka(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var hi=!1;function mi(r,o){switch(r){case"compositionend":return Ka(o);case"keypress":return o.which!==32?null:(lc=!0,ac);case"textInput":return r=o.data,r===ac&&lc?null:r;default:return null}}function $s(r,o){if(hi)return r==="compositionend"||!Ze&&Va(r,o)?(r=bn(),ho=Nn=Nr=null,hi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return sc&&o.locale!=="ko"?null:o.data;default:return null}}var cc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Us(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o==="input"?!!cc[r.type]:o==="textarea"}function Ya(r,o,a,d){qe(d),o=wc(o,"onChange"),0<o.length&&(a=new Po("onChange","change",null,a,d),r.push({event:a,listeners:o}))}var ns=null,rs=null;function gd(r){Jh(r,0)}function Vs(r){var o=Zs(r);if(it(o))return r}function uc(r,o){if(r==="change")return o}var dc=!1;if(u){var os;if(u){var mn="oninput"in document;if(!mn){var Bt=document.createElement("div");Bt.setAttribute("oninput","return;"),mn=typeof Bt.oninput=="function"}os=mn}else os=!1;dc=os&&(!document.documentMode||9<document.documentMode)}function fc(){ns&&(ns.detachEvent("onpropertychange",pc),rs=ns=null)}function pc(r){if(r.propertyName==="value"&&Vs(rs)){var o=[];Ya(o,rs,r,kn(r)),Mt(gd,o)}}function xd(r,o,a){r==="focusin"?(fc(),ns=o,rs=a,ns.attachEvent("onpropertychange",pc)):r==="focusout"&&fc()}function hc(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Vs(rs)}function mc(r,o){if(r==="click")return Vs(o)}function gc(r,o){if(r==="input"||r==="change")return Vs(o)}function yd(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}var ur=typeof Object.is=="function"?Object.is:yd;function is(r,o){if(ur(r,o))return!0;if(typeof r!="object"||r===null||typeof o!="object"||o===null)return!1;var a=Object.keys(r),d=Object.keys(o);if(a.length!==d.length)return!1;for(d=0;d<a.length;d++){var x=a[d];if(!p.call(o,x)||!ur(r[x],o[x]))return!1}return!0}function Xa(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function xc(r,o){var a=Xa(r);r=0;for(var d;a;){if(a.nodeType===3){if(d=r+a.textContent.length,r<=o&&d>=o)return{node:a,offset:o-r};r=d}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Xa(a)}}function qa(r,o){return r&&o?r===o?!0:r&&r.nodeType===3?!1:o&&o.nodeType===3?qa(r,o.parentNode):"contains"in r?r.contains(o):r.compareDocumentPosition?!!(r.compareDocumentPosition(o)&16):!1:!1}function Za(){for(var r=window,o=Ye();o instanceof r.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)r=o.contentWindow;else break;o=Ye(r.document)}return o}function yo(r){var o=r&&r.nodeName&&r.nodeName.toLowerCase();return o&&(o==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||o==="textarea"||r.contentEditable==="true")}function O(r){var o=Za(),a=r.focusedElem,d=r.selectionRange;if(o!==a&&a&&a.ownerDocument&&qa(a.ownerDocument.documentElement,a)){if(d!==null&&yo(a)){if(o=d.start,r=d.end,r===void 0&&(r=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(r,a.value.length);else if(r=(o=a.ownerDocument||document)&&o.defaultView||window,r.getSelection){r=r.getSelection();var x=a.textContent.length,k=Math.min(d.start,x);d=d.end===void 0?k:Math.min(d.end,x),!r.extend&&k>d&&(x=d,d=k,k=x),x=xc(a,k);var N=xc(a,d);x&&N&&(r.rangeCount!==1||r.anchorNode!==x.node||r.anchorOffset!==x.offset||r.focusNode!==N.node||r.focusOffset!==N.offset)&&(o=o.createRange(),o.setStart(x.node,x.offset),r.removeAllRanges(),k>d?(r.addRange(o),r.extend(N.node,N.offset)):(o.setEnd(N.node,N.offset),r.addRange(o)))}}for(o=[],r=a;r=r.parentNode;)r.nodeType===1&&o.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)r=o[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var K=u&&"documentMode"in document&&11>=document.documentMode,fe=null,Re=null,Fe=null,tt=!1;function Nt(r,o,a){var d=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;tt||fe==null||fe!==Ye(d)||(d=fe,"selectionStart"in d&&yo(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Fe&&is(Fe,d)||(Fe=d,d=wc(Re,"onSelect"),0<d.length&&(o=new Po("onSelect","select",null,o,a),r.push({event:o,listeners:d}),o.target=fe)))}function Lt(r,o){var a={};return a[r.toLowerCase()]=o.toLowerCase(),a["Webkit"+r]="webkit"+o,a["Moz"+r]="moz"+o,a}var yt={animationend:Lt("Animation","AnimationEnd"),animationiteration:Lt("Animation","AnimationIteration"),animationstart:Lt("Animation","AnimationStart"),transitionend:Lt("Transition","TransitionEnd")},Yn={},gn={};u&&(gn=document.createElement("div").style,"AnimationEvent"in window||(delete yt.animationend.animation,delete yt.animationiteration.animation,delete yt.animationstart.animation),"TransitionEvent"in window||delete yt.transitionend.transition);function se(r){if(Yn[r])return Yn[r];if(!yt[r])return r;var o=yt[r],a;for(a in o)if(o.hasOwnProperty(a)&&a in gn)return Yn[r]=o[a];return r}var $e=se("animationend"),At=se("animationiteration"),an=se("animationstart"),Vr=se("transitionend"),Ks=new Map,Ja="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Kr(r,o){Ks.set(r,o),l(o,[r])}for(var Qa=0;Qa<Ja.length;Qa++){var Ys=Ja[Qa],wd=Ys.toLowerCase(),kd=Ys[0].toUpperCase()+Ys.slice(1);Kr(wd,"on"+kd)}Kr($e,"onAnimationEnd"),Kr(At,"onAnimationIteration"),Kr(an,"onAnimationStart"),Kr("dblclick","onDoubleClick"),Kr("focusin","onFocus"),Kr("focusout","onBlur"),Kr(Vr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ss="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(" "),bd=new Set("cancel close invalid load scroll toggle".split(" ").concat(ss));function zo(r,o,a){var d=r.type||"unknown-event";r.currentTarget=a,ri(d,o,void 0,r),r.currentTarget=null}function Jh(r,o){o=(o&4)!==0;for(var a=0;a<r.length;a++){var d=r[a],x=d.event;d=d.listeners;e:{var k=void 0;if(o)for(var N=d.length-1;0<=N;N--){var M=d[N],G=M.instance,q=M.currentTarget;if(M=M.listener,G!==k&&x.isPropagationStopped())break e;zo(x,M,q),k=G}else for(N=0;N<d.length;N++){if(M=d[N],G=M.instance,q=M.currentTarget,M=M.listener,G!==k&&x.isPropagationStopped())break e;zo(x,M,q),k=G}}}if(_t)throw r=Mn,_t=!1,Mn=null,r}function zt(r,o){var a=o[Td];a===void 0&&(a=o[Td]=new Set);var d=r+"__bubble";a.has(d)||(Qh(o,r,2,!1),a.add(d))}function vd(r,o,a){var d=0;o&&(d|=4),Qh(a,r,d,o)}var yc="_reactListening"+Math.random().toString(36).slice(2);function el(r){if(!r[yc]){r[yc]=!0,i.forEach(function(a){a!=="selectionchange"&&(bd.has(a)||vd(a,!1,r),vd(a,!0,r))});var o=r.nodeType===9?r:r.ownerDocument;o===null||o[yc]||(o[yc]=!0,vd("selectionchange",!1,o))}}function Qh(r,o,a,d){switch(Gs(o)){case 1:var x=Wa;break;case 4:x=Ao;break;default:x=Fs}a=x.bind(null,o,a,r),x=void 0,!Vn||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(x=!0),d?x!==void 0?r.addEventListener(o,a,{capture:!0,passive:x}):r.addEventListener(o,a,!0):x!==void 0?r.addEventListener(o,a,{passive:x}):r.addEventListener(o,a,!1)}function Sd(r,o,a,d,x){var k=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var N=d.tag;if(N===3||N===4){var M=d.stateNode.containerInfo;if(M===x||M.nodeType===8&&M.parentNode===x)break;if(N===4)for(N=d.return;N!==null;){var G=N.tag;if((G===3||G===4)&&(G=N.stateNode.containerInfo,G===x||G.nodeType===8&&G.parentNode===x))return;N=N.return}for(;M!==null;){if(N=as(M),N===null)return;if(G=N.tag,G===5||G===6){d=k=N;continue e}M=M.parentNode}}d=d.return}Mt(function(){var q=k,ge=kn(a),ye=[];e:{var me=Ks.get(r);if(me!==void 0){var Le=Po,je=r;switch(r){case"keypress":if(mo(a)===0)break e;case"keydown":case"keyup":Le=Do;break;case"focusin":je="focus",Le=Bs;break;case"focusout":je="blur",Le=Bs;break;case"beforeblur":case"afterblur":Le=Bs;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":Le=go;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=tc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=ts;break;case $e:case At:case an:Le=qi;break;case Vr:Le=Fo;break;case"scroll":Le=_r;break;case"wheel":Le=hd;break;case"copy":case"cut":case"paste":Le=Ws;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=fi}var ze=(o&4)!==0,Qt=!ze&&r==="scroll",U=ze?me!==null?me+"Capture":null:me;ze=[];for(var W=q,V;W!==null;){V=W;var be=V.stateNode;if(V.tag===5&&be!==null&&(V=be,U!==null&&(be=Kt(W,U),be!=null&&ze.push(tl(W,be,V)))),Qt)break;W=W.return}0<ze.length&&(me=new Le(me,je,null,a,ge),ye.push({event:me,listeners:ze}))}}if((o&7)===0){e:{if(me=r==="mouseover"||r==="pointerover",Le=r==="mouseout"||r==="pointerout",me&&a!==Pt&&(je=a.relatedTarget||a.fromElement)&&(as(je)||je[Go]))break e;if((Le||me)&&(me=ge.window===ge?ge:(me=ge.ownerDocument)?me.defaultView||me.parentWindow:window,Le?(je=a.relatedTarget||a.toElement,Le=q,je=je?as(je):null,je!==null&&(Qt=vr(je),je!==Qt||je.tag!==5&&je.tag!==6)&&(je=null)):(Le=null,je=q),Le!==je)){if(ze=go,be="onMouseLeave",U="onMouseEnter",W="mouse",(r==="pointerout"||r==="pointerover")&&(ze=fi,be="onPointerLeave",U="onPointerEnter",W="pointer"),Qt=Le==null?me:Zs(Le),V=je==null?me:Zs(je),me=new ze(be,W+"leave",Le,a,ge),me.target=Qt,me.relatedTarget=V,be=null,as(ge)===q&&(ze=new ze(U,W+"enter",je,a,ge),ze.target=V,ze.relatedTarget=Qt,be=ze),Qt=be,Le&&je)t:{for(ze=Le,U=je,W=0,V=ze;V;V=Xs(V))W++;for(V=0,be=U;be;be=Xs(be))V++;for(;0<W-V;)ze=Xs(ze),W--;for(;0<V-W;)U=Xs(U),V--;for(;W--;){if(ze===U||U!==null&&ze===U.alternate)break t;ze=Xs(ze),U=Xs(U)}ze=null}else ze=null;Le!==null&&em(ye,me,Le,ze,!1),je!==null&&Qt!==null&&em(ye,Qt,je,ze,!0)}}e:{if(me=q?Zs(q):window,Le=me.nodeName&&me.nodeName.toLowerCase(),Le==="select"||Le==="input"&&me.type==="file")var Be=uc;else if(Us(me))if(dc)Be=gc;else{Be=hc;var Ue=xd}else(Le=me.nodeName)&&Le.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(Be=mc);if(Be&&(Be=Be(r,q))){Ya(ye,Be,a,ge);break e}Ue&&Ue(r,me,q),r==="focusout"&&(Ue=me._wrapperState)&&Ue.controlled&&me.type==="number"&&st(me,"number",me.value)}switch(Ue=q?Zs(q):window,r){case"focusin":(Us(Ue)||Ue.contentEditable==="true")&&(fe=Ue,Re=q,Fe=null);break;case"focusout":Fe=Re=fe=null;break;case"mousedown":tt=!0;break;case"contextmenu":case"mouseup":case"dragend":tt=!1,Nt(ye,a,ge);break;case"selectionchange":if(K)break;case"keydown":case"keyup":Nt(ye,a,ge)}var Ve;if(Ze)e:{switch(r){case"compositionstart":var Je="onCompositionStart";break e;case"compositionend":Je="onCompositionEnd";break e;case"compositionupdate":Je="onCompositionUpdate";break e}Je=void 0}else hi?Va(r,a)&&(Je="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Je="onCompositionStart");Je&&(sc&&a.locale!=="ko"&&(hi||Je!=="onCompositionStart"?Je==="onCompositionEnd"&&hi&&(Ve=bn()):(Nr=ge,Nn="value"in Nr?Nr.value:Nr.textContent,hi=!0)),Ue=wc(q,Je),0<Ue.length&&(Je=new xo(Je,r,null,a,ge),ye.push({event:Je,listeners:Ue}),Ve?Je.data=Ve:(Ve=Ka(a),Ve!==null&&(Je.data=Ve)))),(Ve=Ur?mi(r,a):$s(r,a))&&(q=wc(q,"onBeforeInput"),0<q.length&&(ge=new xo("onBeforeInput","beforeinput",null,a,ge),ye.push({event:ge,listeners:q}),ge.data=Ve))}Jh(ye,o)})}function tl(r,o,a){return{instance:r,listener:o,currentTarget:a}}function wc(r,o){for(var a=o+"Capture",d=[];r!==null;){var x=r,k=x.stateNode;x.tag===5&&k!==null&&(x=k,k=Kt(r,a),k!=null&&d.unshift(tl(r,k,x)),k=Kt(r,o),k!=null&&d.push(tl(r,k,x))),r=r.return}return d}function Xs(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function em(r,o,a,d,x){for(var k=o._reactName,N=[];a!==null&&a!==d;){var M=a,G=M.alternate,q=M.stateNode;if(G!==null&&G===d)break;M.tag===5&&q!==null&&(M=q,x?(G=Kt(a,k),G!=null&&N.unshift(tl(a,G,M))):x||(G=Kt(a,k),G!=null&&N.push(tl(a,G,M)))),a=a.return}N.length!==0&&r.push({event:o,listeners:N})}var Tb=/\r\n?/g,Ib=/\u0000|\uFFFD/g;function tm(r){return(typeof r=="string"?r:""+r).replace(Tb,`
38`).replace(Ib,"")}function kc(r,o,a){if(o=tm(o),tm(r)!==o&&a)throw Error(n(425))}function bc(){}var Ed=null,Cd=null;function Nd(r,o){return r==="textarea"||r==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Rd=typeof setTimeout=="function"?setTimeout:void 0,Lb=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,Ab=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(r){return nm.resolve(null).then(r).catch(Ob)}:Rd;function Ob(r){setTimeout(function(){throw r})}function _d(r,o){var a=o,d=0;do{var x=a.nextSibling;if(r.removeChild(a),x&&x.nodeType===8)if(a=x.data,a==="/$"){if(d===0){r.removeChild(x),Ds(o);return}d--}else a!=="$"&&a!=="$?"&&a!=="$!"||d++;a=x}while(a);Ds(o)}function gi(r){for(;r!=null;r=r.nextSibling){var o=r.nodeType;if(o===1||o===3)break;if(o===8){if(o=r.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return r}function rm(r){r=r.previousSibling;for(var o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return r;o--}else a==="/$"&&o++}r=r.previousSibling}return null}var qs=Math.random().toString(36).slice(2),wo="__reactFiber$"+qs,nl="__reactProps$"+qs,Go="__reactContainer$"+qs,Td="__reactEvents$"+qs,Pb="__reactListeners$"+qs,jb="__reactHandles$"+qs;function as(r){var o=r[wo];if(o)return o;for(var a=r.parentNode;a;){if(o=a[Go]||a[wo]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(r=rm(r);r!==null;){if(a=r[wo])return a;r=rm(r)}return o}r=a,a=r.parentNode}return null}function rl(r){return r=r[wo]||r[Go],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Zs(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function vc(r){return r[nl]||null}var Id=[],Js=-1;function xi(r){return{current:r}}function Gt(r){0>Js||(r.current=Id[Js],Id[Js]=null,Js--)}function Dt(r,o){Js++,Id[Js]=r.current,r.current=o}var yi={},Rn=xi(yi),Xn=xi(!1),ls=yi;function Qs(r,o){var a=r.type.contextTypes;if(!a)return yi;var d=r.stateNode;
vendor: 5,582 bytes, line 38
38if(d&&d.__reactInternalMemoizedUnmaskedChildContext===o)return d.__reactInternalMemoizedMaskedChildContext;var x={},k;for(k in a)x[k]=o[k];return d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=o,r.__reactInternalMemoizedMaskedChildContext=x),x}function qn(r){return r=r.childContextTypes,r!=null}function Sc(){Gt(Xn),Gt(Rn)}function om(r,o,a){if(Rn.current!==yi)throw Error(n(168));Dt(Rn,o),Dt(Xn,a)}function im(r,o,a){var d=r.stateNode;if(o=o.childContextTypes,typeof d.getChildContext!="function")return a;d=d.getChildContext();for(var x in d)if(!(x in o))throw Error(n(108,Te(r)||"Unknown",x));return _({},a,d)}function Ec(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||yi,ls=Rn.current,Dt(Rn,r),Dt(Xn,Xn.current),!0}function sm(r,o,a){var d=r.stateNode;if(!d)throw Error(n(169));a?(r=im(r,o,ls),d.__reactInternalMemoizedMergedChildContext=r,Gt(Xn),Gt(Rn),Dt(Rn,r)):Gt(Xn),Dt(Xn,a)}var Bo=null,Cc=!1,Ld=!1;function am(r){Bo===null?Bo=[r]:Bo.push(r)}function Mb(r){Cc=!0,am(r)}function wi(){if(!Ld&&Bo!==null){Ld=!0;var r=0,o=pt;try{var a=Bo;for(pt=1;r<a.length;r++){var d=a[r];do d=d(!0);while(d!==null)}Bo=null,Cc=!1}catch(x){throw Bo!==null&&(Bo=Bo.slice(r+1)),zr(ne,wi),x}finally{pt=o,Ld=!1}}return null}var ea=[],ta=0,Nc=null,Rc=0,Ir=[],Lr=0,cs=null,Wo=1,Ho="";function us(r,o){ea[ta++]=Rc,ea[ta++]=Nc,Nc=r,Rc=o}function lm(r,o,a){Ir[Lr++]=Wo,Ir[Lr++]=Ho,Ir[Lr++]=cs,cs=r;var d=Wo;r=Ho;var x=32-xt(d)-1;d&=~(1<<x),a+=1;var k=32-xt(o)+x;if(30<k){var N=x-x%5;k=(d&(1<<N)-1).toString(32),d>>=N,x-=N,Wo=1<<32-xt(o)+x|a<<x|d,Ho=k+r}else Wo=1<<k|a<<x|d,Ho=r}function Ad(r){r.return!==null&&(us(r,1),lm(r,1,0))}function Od(r){for(;r===Nc;)Nc=ea[--ta],ea[ta]=null,Rc=ea[--ta],ea[ta]=null;for(;r===cs;)cs=Ir[--Lr],Ir[Lr]=null,Ho=Ir[--Lr],Ir[Lr]=null,Wo=Ir[--Lr],Ir[Lr]=null}var dr=null,fr=null,Wt=!1,Yr=null;function cm(r,o){var a=jr(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=r,o=r.deletions,o===null?(r.deletions=[a],r.flags|=16):o.push(a)}function um(r,o){switch(r.tag){case 5:var a=r.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(r.stateNode=o,dr=r,fr=gi(o.firstChild),!0):!1;case 6:return o=r.pendingProps===""||o.nodeType!==3?null:o,o!==null?(r.stateNode=o,dr=r,fr=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=cs!==null?{id:Wo,overflow:Ho}:null,r.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=jr(18,null,null,0),a.stateNode=o,a.return=r,r.child=a,dr=r,fr=null,!0):!1;default:return!1}}function Pd(r){return(r.mode&1)!==0&&(r.flags&128)===0}function jd(r){if(Wt){var o=fr;if(o){var a=o;if(!um(r,o)){if(Pd(r))throw Error(n(418));o=gi(a.nextSibling);var d=dr;o&&um(r,o)?cm(d,a):(r.flags=r.flags&-4097|2,Wt=!1,dr=r)}}else{if(Pd(r))throw Error(n(418));r.flags=r.flags&-4097|2,Wt=!1,dr=r}}}function dm(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;dr=r}function _c(r){if(r!==dr)return!1;if(!Wt)return dm(r),Wt=!0,!1;var o;if((o=r.tag!==3)&&!(o=r.tag!==5)&&(o=r.type,o=o!=="head"&&o!=="body"&&!Nd(r.type,r.memoizedProps)),o&&(o=fr)){if(Pd(r))throw fm(),Error(n(418));for(;o;)cm(r,o),o=gi(o.nextSibling)}if(dm(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,o=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(o===0){fr=gi(r.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}r=r.nextSibling}fr=null}}else fr=dr?gi(r.stateNode.nextSibling):null;return!0}function fm(){for(var r=fr;r;)r=gi(r.nextSibling)}function na(){fr=dr=null,Wt=!1}function Md(r){Yr===null?Yr=[r]:Yr.push(r)}var Db=D.ReactCurrentBatchConfig;function ol(r,o,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var d=a.stateNode}if(!d)throw Error(n(147,r));var x=d,k=""+r;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===k?o.ref:(o=function(N){var M=x.refs;N===null?delete M[k]:M[k]=N},o._stringRef=k,o)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function Tc(r,o){throw r=Object.prototype.toString.call(o),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":r))}function pm(r){var o=r._init;return o(r._payload)}function hm(r){function o(U,W){if(r){var V=U.deletions;V===null?(U.deletions=[W],U.flags|=16):V.push(W)}}function a(U,W){if(!r)return null;for(;W!==null;)o(U,W),W=W.sibling;return null}function d(U,W){for(U=new Map;W!==null;)W.key!==null?U.set(W.key,W):U.set(W.index,W),W=W.sibling;return U}function x(U,W){return U=Ri(U,W),U.index=0,U.sibling=null,U}function k(U,W,V){return U.index=V,r?(V=U.alternate,V!==null?(V=V.index,V<W?(U.flags|=2,W):V):(U.flags|=2,W)):(U.flags|=1048576,W)}function N(U){return r&&U.alternate===null&&(U.flags|=2),U}function M(U,W,V,be){return W===null||W.tag!==6?(W=_f(V,U.mode,be),W.return=U,W):(W=x(W,V),W.return=U,W)}function G(U,W,V,be){var Be=V.type;return Be===L?ge(U,W,V.props.children,be,V.key):W!==null&&(W.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===re&&pm(Be)===W.type)?(be=x(W,V.props),be.ref=ol(U,W,V),be.return=U,be):(be=Qc(V.type,V.key,V.props,null,U.mode,be),be.ref=ol(U,W,V),be.return=U,be)}function q(U,W,V,be){return W===null||W.tag!==4||W.stateNode.containerInfo!==V.containerInfo||W.stateNode.implementation!==V.implementation?(W=Tf(V,U.mode,be),W.return=U,W):(W=x(W,V.children||[]),W.return=U,W)}function ge(U,W,V,be,Be){return W===null||W.tag!==7?(W=ys(V,U.mode,be,Be),W.return=U,W):(W=x(W,V),W.return=U,W)}
vendor: 10,066 bytes, line 38
38function ye(U,W,V){if(typeof W=="string"&&W!==""||typeof W=="number")return W=_f(""+W,U.mode,V),W.return=U,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case E:return V=Qc(W.type,W.key,W.props,null,U.mode,V),V.ref=ol(U,null,W),V.return=U,V;case C:return W=Tf(W,U.mode,V),W.return=U,W;case re:var be=W._init;return ye(U,be(W._payload),V)}if(Ce(W)||J(W))return W=ys(W,U.mode,V,null),W.return=U,W;Tc(U,W)}return null}function me(U,W,V,be){var Be=W!==null?W.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return Be!==null?null:M(U,W,""+V,be);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case E:return V.key===Be?G(U,W,V,be):null;case C:return V.key===Be?q(U,W,V,be):null;case re:return Be=V._init,me(U,W,Be(V._payload),be)}if(Ce(V)||J(V))return Be!==null?null:ge(U,W,V,be,null);Tc(U,V)}return null}function Le(U,W,V,be,Be){if(typeof be=="string"&&be!==""||typeof be=="number")return U=U.get(V)||null,M(W,U,""+be,Be);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case E:return U=U.get(be.key===null?V:be.key)||null,G(W,U,be,Be);case C:return U=U.get(be.key===null?V:be.key)||null,q(W,U,be,Be);case re:var Ue=be._init;return Le(U,W,V,Ue(be._payload),Be)}if(Ce(be)||J(be))return U=U.get(V)||null,ge(W,U,be,Be,null);Tc(W,be)}return null}function je(U,W,V,be){for(var Be=null,Ue=null,Ve=W,Je=W=0,wn=null;Ve!==null&&Je<V.length;Je++){Ve.index>Je?(wn=Ve,Ve=null):wn=Ve.sibling;var kt=me(U,Ve,V[Je],be);if(kt===null){Ve===null&&(Ve=wn);break}r&&Ve&&kt.alternate===null&&o(U,Ve),W=k(kt,W,Je),Ue===null?Be=kt:Ue.sibling=kt,Ue=kt,Ve=wn}if(Je===V.length)return a(U,Ve),Wt&&us(U,Je),Be;if(Ve===null){for(;Je<V.length;Je++)Ve=ye(U,V[Je],be),Ve!==null&&(W=k(Ve,W,Je),Ue===null?Be=Ve:Ue.sibling=Ve,Ue=Ve);return Wt&&us(U,Je),Be}for(Ve=d(U,Ve);Je<V.length;Je++)wn=Le(Ve,U,Je,V[Je],be),wn!==null&&(r&&wn.alternate!==null&&Ve.delete(wn.key===null?Je:wn.key),W=k(wn,W,Je),Ue===null?Be=wn:Ue.sibling=wn,Ue=wn);return r&&Ve.forEach(function(_i){return o(U,_i)}),Wt&&us(U,Je),Be}function ze(U,W,V,be){var Be=J(V);if(typeof Be!="function")throw Error(n(150));if(V=Be.call(V),V==null)throw Error(n(151));for(var Ue=Be=null,Ve=W,Je=W=0,wn=null,kt=V.next();Ve!==null&&!kt.done;Je++,kt=V.next()){Ve.index>Je?(wn=Ve,Ve=null):wn=Ve.sibling;var _i=me(U,Ve,kt.value,be);if(_i===null){Ve===null&&(Ve=wn);break}r&&Ve&&_i.alternate===null&&o(U,Ve),W=k(_i,W,Je),Ue===null?Be=_i:Ue.sibling=_i,Ue=_i,Ve=wn}if(kt.done)return a(U,Ve),Wt&&us(U,Je),Be;if(Ve===null){for(;!kt.done;Je++,kt=V.next())kt=ye(U,kt.value,be),kt!==null&&(W=k(kt,W,Je),Ue===null?Be=kt:Ue.sibling=kt,Ue=kt);return Wt&&us(U,Je),Be}for(Ve=d(U,Ve);!kt.done;Je++,kt=V.next())kt=Le(Ve,U,Je,kt.value,be),kt!==null&&(r&&kt.alternate!==null&&Ve.delete(kt.key===null?Je:kt.key),W=k(kt,W,Je),Ue===null?Be=kt:Ue.sibling=kt,Ue=kt);return r&&Ve.forEach(function(gv){return o(U,gv)}),Wt&&us(U,Je),Be}function Qt(U,W,V,be){if(typeof V=="object"&&V!==null&&V.type===L&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case E:e:{for(var Be=V.key,Ue=W;Ue!==null;){if(Ue.key===Be){if(Be=V.type,Be===L){if(Ue.tag===7){a(U,Ue.sibling),W=x(Ue,V.props.children),W.return=U,U=W;break e}}else if(Ue.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===re&&pm(Be)===Ue.type){a(U,Ue.sibling),W=x(Ue,V.props),W.ref=ol(U,Ue,V),W.return=U,U=W;break e}a(U,Ue);break}else o(U,Ue);Ue=Ue.sibling}V.type===L?(W=ys(V.props.children,U.mode,be,V.key),W.return=U,U=W):(be=Qc(V.type,V.key,V.props,null,U.mode,be),be.ref=ol(U,W,V),be.return=U,U=be)}return N(U);case C:e:{for(Ue=V.key;W!==null;){if(W.key===Ue)if(W.tag===4&&W.stateNode.containerInfo===V.containerInfo&&W.stateNode.implementation===V.implementation){a(U,W.sibling),W=x(W,V.children||[]),W.return=U,U=W;break e}else{a(U,W);break}else o(U,W);W=W.sibling}W=Tf(V,U.mode,be),W.return=U,U=W}return N(U);case re:return Ue=V._init,Qt(U,W,Ue(V._payload),be)}if(Ce(V))return je(U,W,V,be);if(J(V))return ze(U,W,V,be);Tc(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,W!==null&&W.tag===6?(a(U,W.sibling),W=x(W,V),W.return=U,U=W):(a(U,W),W=_f(V,U.mode,be),W.return=U,U=W),N(U)):a(U,W)}return Qt}var ra=hm(!0),mm=hm(!1),Ic=xi(null),Lc=null,oa=null,Dd=null;function Fd(){Dd=oa=Lc=null}function zd(r){var o=Ic.current;Gt(Ic),r._currentValue=o}function Gd(r,o,a){for(;r!==null;){var d=r.alternate;if((r.childLanes&o)!==o?(r.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),r===a)break;r=r.return}}function ia(r,o){Lc=r,Dd=oa=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&o)!==0&&(Zn=!0),r.firstContext=null)}function Ar(r){var o=r._currentValue;if(Dd!==r)if(r={context:r,memoizedValue:o,next:null},oa===null){if(Lc===null)throw Error(n(308));oa=r,Lc.dependencies={lanes:0,firstContext:r}}else oa=oa.next=r;return o}var ds=null;function Bd(r){ds===null?ds=[r]:ds.push(r)}function gm(r,o,a,d){var x=o.interleaved;return x===null?(a.next=a,Bd(o)):(a.next=x.next,x.next=a),o.interleaved=a,$o(r,d)}function $o(r,o){r.lanes|=o;var a=r.alternate;for(a!==null&&(a.lanes|=o),a=r,r=r.return;r!==null;)r.childLanes|=o,a=r.alternate,a!==null&&(a.childLanes|=o),a=r,r=r.return;return a.tag===3?a.stateNode:null}var ki=!1;function Wd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xm(r,o){r=r.updateQueue,o.updateQueue===r&&(o.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Uo(r,o){return{eventTime:r,lane:o,tag:0,payload:null,callback:null,next:null}}function bi(r,o,a){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(wt&2)!==0){var x=d.pending;return x===null?o.next=o:(o.next=x.next,x.next=o),d.pending=o,$o(r,a)}return x=d.interleaved,x===null?(o.next=o,Bd(d)):(o.next=x.next,x.next=o),d.interleaved=o,$o(r,a)}function Ac(r,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var d=o.lanes;d&=r.pendingLanes,a|=d,o.lanes=a,Bi(r,a)}}function ym(r,o){var a=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,a===d)){var x=null,k=null;if(a=a.firstBaseUpdate,a!==null){do{var N={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};k===null?x=k=N:k=k.next=N,a=a.next}while(a!==null);k===null?x=k=o:k=k.next=o}else x=k=o;a={baseState:d.baseState,firstBaseUpdate:x,lastBaseUpdate:k,shared:d.shared,effects:d.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=o:r.next=o,a.lastBaseUpdate=o}function Oc(r,o,a,d){var x=r.updateQueue;ki=!1;var k=x.firstBaseUpdate,N=x.lastBaseUpdate,M=x.shared.pending;if(M!==null){x.shared.pending=null;var G=M,q=G.next;G.next=null,N===null?k=q:N.next=q,N=G;var ge=r.alternate;ge!==null&&(ge=ge.updateQueue,M=ge.lastBaseUpdate,M!==N&&(M===null?ge.firstBaseUpdate=q:M.next=q,ge.lastBaseUpdate=G))}if(k!==null){var ye=x.baseState;N=0,ge=q=G=null,M=k;do{var me=M.lane,Le=M.eventTime;if((d&me)===me){ge!==null&&(ge=ge.next={eventTime:Le,lane:0,tag:M.tag,payload:M.payload,callback:M.callback,next:null});e:{var je=r,ze=M;switch(me=o,Le=a,ze.tag){case 1:if(je=ze.payload,typeof je=="function"){ye=je.call(Le,ye,me);break e}ye=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=ze.payload,me=typeof je=="function"?je.call(Le,ye,me):je,me==null)break e;ye=_({},ye,me);break e;case 2:ki=!0}}M.callback!==null&&M.lane!==0&&(r.flags|=64,me=x.effects,me===null?x.effects=[M]:me.push(M))}else Le={eventTime:Le,lane:me,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ge===null?(q=ge=Le,G=ye):ge=ge.next=Le,N|=me;if(M=M.next,M===null){if(M=x.shared.pending,M===null)break;me=M,M=me.next,me.next=null,x.lastBaseUpdate=me,x.shared.pending=null}}while(!0);if(ge===null&&(G=ye),x.baseState=G,x.firstBaseUpdate=q,x.lastBaseUpdate=ge,o=x.shared.interleaved,o!==null){x=o;do N|=x.lane,x=x.next;while(x!==o)}else k===null&&(x.shared.lanes=0);hs|=N,r.lanes=N,r.memoizedState=ye}}function wm(r,o,a){if(r=o.effects,o.effects=null,r!==null)for(o=0;o<r.length;o++){var d=r[o],x=d.callback;if(x!==null){if(d.callback=null,d=a,typeof x!="function")throw Error(n(191,x));x.call(d)}}}var il={},ko=xi(il),sl=xi(il),al=xi(il);function fs(r){if(r===il)throw Error(n(174));return r}function Hd(r,o){switch(Dt(al,o),Dt(sl,r),Dt(ko,il),r=o.nodeType,r){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:Q(null,"");break;default:r=r===8?o.parentNode:o,o=r.namespaceURI||null,r=r.tagName,o=Q(o,r)}Gt(ko),Dt(ko,o)}function sa(){Gt(ko),Gt(sl),Gt(al)}function km(r){fs(al.current);var o=fs(ko.current),a=Q(o,r.type);o!==a&&(Dt(sl,r),Dt(ko,a))}function $d(r){sl.current===r&&(Gt(ko),Gt(sl))}var Ut=xi(0);function Pc(r){for(var o=r;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Ud=[];function Vd(){for(var r=0;r<Ud.length;r++)Ud[r]._workInProgressVersionPrimary=null;Ud.length=0}var jc=D.ReactCurrentDispatcher,Kd=D.ReactCurrentBatchConfig,ps=0,Vt=null,ln=null,xn=null,Mc=!1,ll=!1,cl=0,Fb=0;function _n(){throw Error(n(321))}function Yd(r,o){if(o===null)return!1;for(var a=0;a<o.length&&a<r.length;a++)if(!ur(r[a],o[a]))return!1;return!0}function Xd(r,o,a,d,x,k){if(ps=k,Vt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,jc.current=r===null||r.memoizedState===null?Wb:Hb,r=a(d,x),ll){k=0;do{if(ll=!1,cl=0,25<=k)throw Error(n(301));k+=1,xn=ln=null,o.updateQueue=null,jc.current=$b,r=a(d,x)}while(ll)}if(jc.current=zc,o=ln!==null&&ln.next!==null,ps=0,xn=ln=Vt=null,Mc=!1,o)throw Error(n(300));return r}function qd(){var r=cl!==0;return cl=0,r}function bo(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?Vt.memoizedState=xn=r:xn=xn.next=r,xn}
vendor: 5,381 bytes, line 38
38function Or(){if(ln===null){var r=Vt.alternate;r=r!==null?r.memoizedState:null}else r=ln.next;var o=xn===null?Vt.memoizedState:xn.next;if(o!==null)xn=o,ln=r;else{if(r===null)throw Error(n(310));ln=r,r={memoizedState:ln.memoizedState,baseState:ln.baseState,baseQueue:ln.baseQueue,queue:ln.queue,next:null},xn===null?Vt.memoizedState=xn=r:xn=xn.next=r}return xn}function ul(r,o){return typeof o=="function"?o(r):o}function Zd(r){var o=Or(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=ln,x=d.baseQueue,k=a.pending;if(k!==null){if(x!==null){var N=x.next;x.next=k.next,k.next=N}d.baseQueue=x=k,a.pending=null}if(x!==null){k=x.next,d=d.baseState;var M=N=null,G=null,q=k;do{var ge=q.lane;if((ps&ge)===ge)G!==null&&(G=G.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),d=q.hasEagerState?q.eagerState:r(d,q.action);else{var ye={lane:ge,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};G===null?(M=G=ye,N=d):G=G.next=ye,Vt.lanes|=ge,hs|=ge}q=q.next}while(q!==null&&q!==k);G===null?N=d:G.next=M,ur(d,o.memoizedState)||(Zn=!0),o.memoizedState=d,o.baseState=N,o.baseQueue=G,a.lastRenderedState=d}if(r=a.interleaved,r!==null){x=r;do k=x.lane,Vt.lanes|=k,hs|=k,x=x.next;while(x!==r)}else x===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function Jd(r){var o=Or(),a=o.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var d=a.dispatch,x=a.pending,k=o.memoizedState;if(x!==null){a.pending=null;var N=x=x.next;do k=r(k,N.action),N=N.next;while(N!==x);ur(k,o.memoizedState)||(Zn=!0),o.memoizedState=k,o.baseQueue===null&&(o.baseState=k),a.lastRenderedState=k}return[k,d]}function bm(){}function vm(r,o){var a=Vt,d=Or(),x=o(),k=!ur(d.memoizedState,x);if(k&&(d.memoizedState=x,Zn=!0),d=d.queue,Qd(Cm.bind(null,a,d,r),[r]),d.getSnapshot!==o||k||xn!==null&&xn.memoizedState.tag&1){if(a.flags|=2048,dl(9,Em.bind(null,a,d,x,o),void 0,null),yn===null)throw Error(n(349));(ps&30)!==0||Sm(a,o,x)}return x}function Sm(r,o,a){r.flags|=16384,r={getSnapshot:o,value:a},o=Vt.updateQueue,o===null?(o={lastEffect:null,stores:null},Vt.updateQueue=o,o.stores=[r]):(a=o.stores,a===null?o.stores=[r]:a.push(r))}function Em(r,o,a,d){o.value=a,o.getSnapshot=d,Nm(o)&&Rm(r)}function Cm(r,o,a){return a(function(){Nm(o)&&Rm(r)})}function Nm(r){var o=r.getSnapshot;r=r.value;try{var a=o();return!ur(r,a)}catch{return!0}}function Rm(r){var o=$o(r,1);o!==null&&Jr(o,r,1,-1)}function _m(r){var o=bo();return typeof r=="function"&&(r=r()),o.memoizedState=o.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:r},o.queue=r,r=r.dispatch=Bb.bind(null,Vt,r),[o.memoizedState,r]}function dl(r,o,a,d){return r={tag:r,create:o,destroy:a,deps:d,next:null},o=Vt.updateQueue,o===null?(o={lastEffect:null,stores:null},Vt.updateQueue=o,o.lastEffect=r.next=r):(a=o.lastEffect,a===null?o.lastEffect=r.next=r:(d=a.next,a.next=r,r.next=d,o.lastEffect=r)),r}function Tm(){return Or().memoizedState}function Dc(r,o,a,d){var x=bo();Vt.flags|=r,x.memoizedState=dl(1|o,a,void 0,d===void 0?null:d)}function Fc(r,o,a,d){var x=Or();d=d===void 0?null:d;var k=void 0;if(ln!==null){var N=ln.memoizedState;if(k=N.destroy,d!==null&&Yd(d,N.deps)){x.memoizedState=dl(o,a,k,d);return}}Vt.flags|=r,x.memoizedState=dl(1|o,a,k,d)}function Im(r,o){return Dc(8390656,8,r,o)}function Qd(r,o){return Fc(2048,8,r,o)}function Lm(r,o){return Fc(4,2,r,o)}function Am(r,o){return Fc(4,4,r,o)}function Om(r,o){if(typeof o=="function")return r=r(),o(r),function(){o(null)};if(o!=null)return r=r(),o.current=r,function(){o.current=null}}function Pm(r,o,a){return a=a!=null?a.concat([r]):null,Fc(4,4,Om.bind(null,o,r),a)}function ef(){}function jm(r,o){var a=Or();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Yd(o,d[1])?d[0]:(a.memoizedState=[r,o],r)}function Mm(r,o){var a=Or();o=o===void 0?null:o;var d=a.memoizedState;return d!==null&&o!==null&&Yd(o,d[1])?d[0]:(r=r(),a.memoizedState=[r,o],r)}function Dm(r,o,a){return(ps&21)===0?(r.baseState&&(r.baseState=!1,Zn=!0),r.memoizedState=a):(ur(a,o)||(a=Ma(),Vt.lanes|=a,hs|=a,r.baseState=!0),o)}function zb(r,o){var a=pt;pt=a!==0&&4>a?a:4,r(!0);var d=Kd.transition;Kd.transition={};try{r(!1),o()}finally{pt=a,Kd.transition=d}}function Fm(){return Or().memoizedState}function Gb(r,o,a){var d=Ci(r);if(a={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null},zm(r))Gm(o,a);else if(a=gm(r,o,a,d),a!==null){var x=Fn();Jr(a,r,d,x),Bm(a,o,d)}}function Bb(r,o,a){var d=Ci(r),x={lane:d,action:a,hasEagerState:!1,eagerState:null,next:null};if(zm(r))Gm(o,x);else{var k=r.alternate;if(r.lanes===0&&(k===null||k.lanes===0)&&(k=o.lastRenderedReducer,k!==null))try{var N=o.lastRenderedState,M=k(N,a);if(x.hasEagerState=!0,x.eagerState=M,ur(M,N)){var G=o.interleaved;G===null?(x.next=x,Bd(o)):(x.next=G.next,G.next=x),o.interleaved=x;return}}catch{}finally{}a=gm(r,o,x,d),a!==null&&(x=Fn(),Jr(a,r,d,x),Bm(a,o,d))}}function zm(r){var o=r.alternate;return r===Vt||o!==null&&o===Vt}function Gm(r,o){ll=Mc=!0;var a=r.pending;a===null?o.next=o:(o.next=a.next,a.next=o),r.pending=o}function Bm(r,o,a){if((a&4194240)!==0){var d=o.lanes;d&=r.pendingLanes,a|=d,o.lanes=a,Bi(r,a)}}var zc={readContext:Ar,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useInsertionEffect:_n,useLayoutEffect:_n,useMemo:_n,useReducer:_n,useRef
vendor: 8,981 bytes, lines 38-40
38:_n,useState:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useMutableSource:_n,useSyncExternalStore:_n,useId:_n,unstable_isNewReconciler:!1},Wb={readContext:Ar,useCallback:function(r,o){return bo().memoizedState=[r,o===void 0?null:o],r},useContext:Ar,useEffect:Im,useImperativeHandle:function(r,o,a){return a=a!=null?a.concat([r]):null,Dc(4194308,4,Om.bind(null,o,r),a)},useLayoutEffect:function(r,o){return Dc(4194308,4,r,o)},useInsertionEffect:function(r,o){return Dc(4,2,r,o)},useMemo:function(r,o){var a=bo();return o=o===void 0?null:o,r=r(),a.memoizedState=[r,o],r},useReducer:function(r,o,a){var d=bo();return o=a!==void 0?a(o):o,d.memoizedState=d.baseState=o,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:o},d.queue=r,r=r.dispatch=Gb.bind(null,Vt,r),[d.memoizedState,r]},useRef:function(r){var o=bo();return r={current:r},o.memoizedState=r},useState:_m,useDebugValue:ef,useDeferredValue:function(r){return bo().memoizedState=r},useTransition:function(){var r=_m(!1),o=r[0];return r=zb.bind(null,r[1]),bo().memoizedState=r,[o,r]},useMutableSource:function(){},useSyncExternalStore:function(r,o,a){var d=Vt,x=bo();if(Wt){if(a===void 0)throw Error(n(407));a=a()}else{if(a=o(),yn===null)throw Error(n(349));(ps&30)!==0||Sm(d,o,a)}x.memoizedState=a;var k={value:a,getSnapshot:o};return x.queue=k,Im(Cm.bind(null,d,k,r),[r]),d.flags|=2048,dl(9,Em.bind(null,d,k,a,o),void 0,null),a},useId:function(){var r=bo(),o=yn.identifierPrefix;if(Wt){var a=Ho,d=Wo;a=(d&~(1<<32-xt(d)-1)).toString(32)+a,o=":"+o+"R"+a,a=cl++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=Fb++,o=":"+o+"r"+a.toString(32)+":";return r.memoizedState=o},unstable_isNewReconciler:!1},Hb={readContext:Ar,useCallback:jm,useContext:Ar,useEffect:Qd,useImperativeHandle:Pm,useInsertionEffect:Lm,useLayoutEffect:Am,useMemo:Mm,useReducer:Zd,useRef:Tm,useState:function(){return Zd(ul)},useDebugValue:ef,useDeferredValue:function(r){var o=Or();return Dm(o,ln.memoizedState,r)},useTransition:function(){var r=Zd(ul)[0],o=Or().memoizedState;return[r,o]},useMutableSource:bm,useSyncExternalStore:vm,useId:Fm,unstable_isNewReconciler:!1},$b={readContext:Ar,useCallback:jm,useContext:Ar,useEffect:Qd,useImperativeHandle:Pm,useInsertionEffect:Lm,useLayoutEffect:Am,useMemo:Mm,useReducer:Jd,useRef:Tm,useState:function(){return Jd(ul)},useDebugValue:ef,useDeferredValue:function(r){var o=Or();return ln===null?o.memoizedState=r:Dm(o,ln.memoizedState,r)},useTransition:function(){var r=Jd(ul)[0],o=Or().memoizedState;return[r,o]},useMutableSource:bm,useSyncExternalStore:vm,useId:Fm,unstable_isNewReconciler:!1};function Xr(r,o){if(r&&r.defaultProps){o=_({},o),r=r.defaultProps;for(var a in r)o[a]===void 0&&(o[a]=r[a]);return o}return o}function tf(r,o,a,d){o=r.memoizedState,a=a(d,o),a=a==null?o:_({},o,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var Gc={isMounted:function(r){return(r=r._reactInternals)?vr(r)===r:!1},enqueueSetState:function(r,o,a){r=r._reactInternals;var d=Fn(),x=Ci(r),k=Uo(d,x);k.payload=o,a!=null&&(k.callback=a),o=bi(r,k,x),o!==null&&(Jr(o,r,x,d),Ac(o,r,x))},enqueueReplaceState:function(r,o,a){r=r._reactInternals;var d=Fn(),x=Ci(r),k=Uo(d,x);k.tag=1,k.payload=o,a!=null&&(k.callback=a),o=bi(r,k,x),o!==null&&(Jr(o,r,x,d),Ac(o,r,x))},enqueueForceUpdate:function(r,o){r=r._reactInternals;var a=Fn(),d=Ci(r),x=Uo(a,d);x.tag=2,o!=null&&(x.callback=o),o=bi(r,x,d),o!==null&&(Jr(o,r,d,a),Ac(o,r,d))}};function Wm(r,o,a,d,x,k,N){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,k,N):o.prototype&&o.prototype.isPureReactComponent?!is(a,d)||!is(x,k):!0}function Hm(r,o,a){var d=!1,x=yi,k=o.contextType;return typeof k=="object"&&k!==null?k=Ar(k):(x=qn(o)?ls:Rn.current,d=o.contextTypes,k=(d=d!=null)?Qs(r,x):yi),o=new o(a,k),r.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Gc,r.stateNode=o,o._reactInternals=r,d&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=x,r.__reactInternalMemoizedMaskedChildContext=k),o}function $m(r,o,a,d){r=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,d),o.state!==r&&Gc.enqueueReplaceState(o,o.state,null)}function nf(r,o,a,d){var x=r.stateNode;x.props=a,x.state=r.memoizedState,x.refs={},Wd(r);var k=o.contextType;typeof k=="object"&&k!==null?x.context=Ar(k):(k=qn(o)?ls:Rn.current,x.context=Qs(r,k)),x.state=r.memoizedState,k=o.getDerivedStateFromProps,typeof k=="function"&&(tf(r,o,k,a),x.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(o=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),o!==x.state&&Gc.enqueueReplaceState(x,x.state,null),Oc(r,a,x,d),x.state=r.memoizedState),typeof x.componentDidMount=="function"&&(r.flags|=4194308)}function aa(r,o){try{var a="",d=o;do a+=de(d),d=d.return;while(d);var x=a}catch(k){x=`
39Error generating stack: `+k.message+`
40`+k.stack}return{value:r,source:o,stack:x,digest:null}}function rf(r,o,a){return{value:r,source:null,stack:a??null,digest:o??null}}function of(r,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var Ub=typeof WeakMap=="function"?WeakMap:Map;function Um(r,o,a){a=Uo(-1,a),a.tag=3,a.payload={element:null};var d=o.value;return a.callback=function(){Kc||(Kc=!0,kf=d),of(r,o)},a}function Vm(r,o,a){a=Uo(-1,a),a.tag=3;var d=r.type.getDerivedStateFromError;if(typeof d=="function"){var x=o.value;a.payload=function(){return d(x)},a.callback=function(){of(r,o)}}var k=r.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(a.callback=function(){of(r,o),typeof d!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})}),a}function Km(r,o,a){var d=r.pingCache;if(d===null){d=r.pingCache=new Ub;var x=new Set;d.set(o,x)}else x=d.get(o),x===void 0&&(x=new Set,d.set(o,x));x.has(a)||(x.add(a),r=iv.bind(null,r,o,a),o.then(r,r))}function Ym(r){do{var o;if((o=r.tag===13)&&(o=r.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return r;r=r.return}while(r!==null);return null}function Xm(r,o,a,d,x){return(r.mode&1)===0?(r===o?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Uo(-1,1),o.tag=2,bi(a,o,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=x,r)}var Vb=D.ReactCurrentOwner,Zn=!1;function Dn(r,o,a,d){o.child=r===null?mm(o,null,a,d):ra(o,r.child,a,d)}function qm(r,o,a,d,x){a=a.render;var k=o.ref;return ia(o,x),d=Xd(r,o,a,d,k,x),a=qd(),r!==null&&!Zn?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~x,Vo(r,o,x)):(Wt&&a&&Ad(o),o.flags|=1,Dn(r,o,d,x),o.child)}function Zm(r,o,a,d,x){if(r===null){var k=a.type;return typeof k=="function"&&!Rf(k)&&k.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=k,Jm(r,o,k,d,x)):(r=Qc(a.type,null,d,o,o.mode,x),r.ref=o.ref,r.return=o,o.child=r)}if(k=r.child,(r.lanes&x)===0){var N=k.memoizedProps;if(a=a.compare,a=a!==null?a:is,a(N,d)&&r.ref===o.ref)return Vo(r,o,x)}return o.flags|=1,r=Ri(k,d),r.ref=o.ref,r.return=o,o.child=r}function Jm(r,o,a,d,x){if(r!==null){var k=r.memoizedProps;if(is(k,d)&&r.ref===o.ref)if(Zn=!1,o.pendingProps=d=k,(r.lanes&x)!==0)(r.flags&131072)!==0&&(Zn=!0);else return o.lanes=r.lanes,Vo(r,o,x)}return sf(r,o,a,d,x)}function Qm(r,o,a){var d=o.pendingProps,x=d.children,k=r!==null?r.memoizedState:null;if(d.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(ca,pr),pr|=a;else{if((a&1073741824)===0)return r=k!==null?k.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:r,cachePool:null,transitions:null},o.updateQueue=null,Dt(ca,pr),pr|=r,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=k!==null?k.baseLanes:a,Dt(ca,pr),pr|=d}else k!==null?(d=k.baseLanes|a,o.memoizedState=null):d=a,Dt(ca,pr),pr|=d;return Dn(r,o,x,a),o.child}function eg(r,o){var a=o.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function sf(r,o,a,d,x){var k=qn(a)?ls:Rn.current;return k=Qs(o,k),ia(o,x),a=Xd(r,o,a,d,k,x),d=qd(),r!==null&&!Zn?(o.updateQueue=r.updateQueue,o.flags&=-2053,r.lanes&=~x,Vo(r,o,x)):(Wt&&d&&Ad(o),o.flags|=1,Dn(r,o,a,x),o.child)}function tg(r,o,a,d,x){if(qn(a)){var k=!0;Ec(o)}else k=!1;if(ia(o,x),o.stateNode===null)Wc(r,o),Hm(o,a,d),nf(o,a,d,x),d=!0;else if(r===null){var N=o.stateNode,M=o.memoizedProps;N.props=M;var G=N.context,q=a.contextType;typeof q=="object"&&q!==null?q=Ar(q):(q=qn(a)?ls:Rn.current,q=Qs(o,q));var ge=a.getDerivedStateFromProps,ye=typeof ge=="function"||typeof N.getSnapshotBeforeUpdate=="function";ye||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.c
vendor: 9,567 bytes, line 40
40omponentWillReceiveProps!="function"||(M!==d||G!==q)&&$m(o,N,d,q),ki=!1;var me=o.memoizedState;N.state=me,Oc(o,d,N,x),G=o.memoizedState,M!==d||me!==G||Xn.current||ki?(typeof ge=="function"&&(tf(o,a,ge,d),G=o.memoizedState),(M=ki||Wm(o,a,M,d,me,G,q))?(ye||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(o.flags|=4194308)):(typeof N.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=G),N.props=d,N.state=G,N.context=q,d=M):(typeof N.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{N=o.stateNode,xm(r,o),M=o.memoizedProps,q=o.type===o.elementType?M:Xr(o.type,M),N.props=q,ye=o.pendingProps,me=N.context,G=a.contextType,typeof G=="object"&&G!==null?G=Ar(G):(G=qn(a)?ls:Rn.current,G=Qs(o,G));var Le=a.getDerivedStateFromProps;(ge=typeof Le=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(M!==ye||me!==G)&&$m(o,N,d,G),ki=!1,me=o.memoizedState,N.state=me,Oc(o,d,N,x);var je=o.memoizedState;M!==ye||me!==je||Xn.current||ki?(typeof Le=="function"&&(tf(o,a,Le,d),je=o.memoizedState),(q=ki||Wm(o,a,q,d,me,je,G)||!1)?(ge||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(d,je,G),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(d,je,G)),typeof N.componentDidUpdate=="function"&&(o.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof N.componentDidUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(o.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=je),N.props=d,N.state=je,N.context=G,d=q):(typeof N.componentDidUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(o.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(o.flags|=1024),d=!1)}return af(r,o,a,d,k,x)}function af(r,o,a,d,x,k){eg(r,o);var N=(o.flags&128)!==0;if(!d&&!N)return x&&sm(o,a,!1),Vo(r,o,k);d=o.stateNode,Vb.current=o;var M=N&&typeof a.getDerivedStateFromError!="function"?null:d.render();return o.flags|=1,r!==null&&N?(o.child=ra(o,r.child,null,k),o.child=ra(o,null,M,k)):Dn(r,o,M,k),o.memoizedState=d.state,x&&sm(o,a,!0),o.child}function ng(r){var o=r.stateNode;o.pendingContext?om(r,o.pendingContext,o.pendingContext!==o.context):o.context&&om(r,o.context,!1),Hd(r,o.containerInfo)}function rg(r,o,a,d,x){return na(),Md(x),o.flags|=256,Dn(r,o,a,d),o.child}var lf={dehydrated:null,treeContext:null,retryLane:0};function cf(r){return{baseLanes:r,cachePool:null,transitions:null}}function og(r,o,a){var d=o.pendingProps,x=Ut.current,k=!1,N=(o.flags&128)!==0,M;if((M=N)||(M=r!==null&&r.memoizedState===null?!1:(x&2)!==0),M?(k=!0,o.flags&=-129):(r===null||r.memoizedState!==null)&&(x|=1),Dt(Ut,x&1),r===null)return jd(o),r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((o.mode&1)===0?o.lanes=1:r.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(N=d.children,r=d.fallback,k?(d=o.mode,k=o.child,N={mode:"hidden",children:N},(d&1)===0&&k!==null?(k.childLanes=0,k.pendingProps=N):k=eu(N,d,0,null),r=ys(r,d,a,null),k.return=o,r.return=o,k.sibling=r,o.child=k,o.child.memoizedState=cf(a),o.memoizedState=lf,r):uf(o,N));if(x=r.memoizedState,x!==null&&(M=x.dehydrated,M!==null))return Kb(r,o,N,d,M,x,a);if(k){k=d.fallback,N=o.mode,x=r.child,M=x.sibling;var G={mode:"hidden",children:d.children};return(N&1)===0&&o.child!==x?(d=o.child,d.childLanes=0,d.pendingProps=G,o.deletions=null):(d=Ri(x,G),d.subtreeFlags=x.subtreeFlags&14680064),M!==null?k=Ri(M,k):(k=ys(k,N,a,null),k.flags|=2),k.return=o,d.return=o,d.sibling=k,o.child=d,d=k,k=o.child,N=r.child.memoizedState,N=N===null?cf(a):{baseLanes:N.baseLanes|a,cachePool:null,transitions:N.transitions},k.memoizedState=N,k.childLanes=r.childLanes&~a,o.memoizedState=lf,d}return k=r.child,r=k.sibling,d=Ri(k,{mode:"visible",children:d.children}),(o.mode&1)===0&&(d.lanes=a),d.return=o,d.sibling=null,r!==null&&(a=o.deletions,a===null?(o.deletions=[r],o.flags|=16):a.push(r)),o.child=d,o.memoizedState=null,d}function uf(r,o){return o=eu({mode:"visible",children:o},r.mode,0,null),o.return=r,r.child=o}function Bc(r,o,a,d){return d!==null&&Md(d),ra(o,r.child,null,a),r=uf(o,o.pendingProps.children),r.flags|=2,o.memoizedState=null,r}function Kb(r,o,a,d,x,k,N){if(a)return o.flags&256?(o.flags&=-257,d=rf(Error(n(422))),Bc(r,o,N,d)):o.memoizedState!==null?(o.child=r.child,o.flags|=128,null):(k=d.fallback,x=o.mode,d=eu({mode:"visible",children:d.children},x,0,null),k=ys(k,x,N,null),k.flags|=2,d.return=o,k.return=o,d.sibling=k,o.child=d,(o.mode&1)!==0&&ra(o,r.child,null,N),o.child.memoizedState=cf(N),o.memoizedState=lf,k);if((o.mode&1)===0)return Bc(r,o,N,null);if(x.data==="$!"){if(d=x.nextSibling&&x.nextSibling.dataset,d)var M=d.dgst;return d=M,k=Error(n(419)),d=rf(k,d,void 0),Bc(r,o,N,d)}if(M=(N&r.childLanes)!==0,Zn||M){if(d=yn,d!==null){switch(N&-N){case 4:x=2;break;case 16:x=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(d.suspendedLanes|N))!==0?0:x,x!==0&&x!==k.retryLane&&(k.retryLane=x,$o(r,x),Jr(d,r,x,-1))}return Nf(),d=rf(Error(n(421))),Bc(r,o,N,d)}return x.data==="$?"?(o.flags|=128,o.child=r.child,o=sv.bind(null,r),x._reactRetry=o,null):(r=k.treeContext,fr=gi(x.nextSibling),dr=o,Wt=!0,Yr=null,r!==null&&(Ir[Lr++]=Wo,Ir[Lr++]=Ho,Ir[Lr++]=cs,Wo=r.id,Ho=r.overflow,cs=o),o=uf(o,d.children),o.flags|=4096,o)}function ig(r,o,a){r.lanes|=o;var d=r.alternate;d!==null&&(d.lanes|=o),Gd(r.return,o,a)}function df(r,o,a,d,x){var k=r.memoizedState;k===null?r.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:a,tailMode:x}:(k.isBackwards=o,k.rendering=null,k.renderingStartTime=0,k.last=d,k.tail=a,k.tailMode=x)}function sg(r,o,a){var d=o.pendingProps,x=d.revealOrder,k=d.tail;if(Dn(r,o,d.children,a),d=Ut.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=o.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&ig(r,a,o);else if(r.tag===19)ig(r,a,o);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===o)break e;for(;r.sibling===null;){if(r.return===null||r.return===o)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}d&=1}if(Dt(Ut,d),(o.mode&1)===0)o.memoizedState=null;else switch(x){case"forwards":for(a=o.child,x=null;a!==null;)r=a.alternate,r!==null&&Pc(r)===null&&(x=a),a=a.sibling;a=x,a===null?(x=o.child,o.child=null):(x=a.sibling,a.sibling=null),df(o,!1,x,a,k);break;case"backwards":for(a=null,x=o.child,o.child=null;x!==null;){if(r=x.alternate,r!==null&&Pc(r)===null){o.child=x;break}r=x.sibling,x.sibling=a,a=x,x=r}df(o,!0,a,null,k);break;case"together":df(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Wc(r,o){(o.mode&1)===0&&r!==null&&(r.alternate=null,o.alternate=null,o.flags|=2)}function Vo(r,o,a){if(r!==null&&(o.dependencies=r.dependencies),hs|=o.lanes,(a&o.childLanes)===0)return null;if(r!==null&&o.child!==r.child)throw Error(n(153));if(o.child!==null){for(r=o.child,a=Ri(r,r.pendingProps),o.child=a,a.return=o;r.sibling!==null;)r=r.sibling,a=a.sibling=Ri(r,r.pendingProps),a.return=o;a.sibling=null}return o.child}function Yb(r,o,a){switch(o.tag){case 3:ng(o),na();break;case 5:km(o);break;case 1:qn(o.type)&&Ec(o);break;case 4:Hd(o,o.stateNode.containerInfo);break;case 10:var d=o.type._context,x=o.memoizedProps.value;Dt(Ic,d._currentValue),d._currentValue=x;break;case 13:if(d=o.memoizedState,d!==null)return d.dehydrated!==null?(Dt(Ut,Ut.current&1),o.flags|=128,null):(a&o.child.childLanes)!==0?og(r,o,a):(Dt(Ut,Ut.current&1),r=Vo(r,o,a),r!==null?r.sibling:null);Dt(Ut,Ut.current&1);break;case 19:if(d=(a&o.childLanes)!==0,(r.flags&128)!==0){if(d)return sg(r,o,a);o.flags|=128}if(x=o.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),Dt(Ut,Ut.current),d)break;return null;case 22:case 23:return o.lanes=0,Qm(r,o,a)}return Vo(r,o,a)}var ag,ff,lg,cg;ag=function(r,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},ff=function(){},lg=function(r,o,a,d){var x=r.memoizedProps;if(x!==d){r=o.stateNode,fs(ko.current);var k=null;switch(a){case"input":x=Rt(r,x),d=Rt(r,d),k=[];break;case"select":x=_({},x,{value:void 0}),d=_({},d,{value:void 0}),k=[];break;case"textarea":x=Xe(r,x),d=Xe(r,d),k=[];break;default:typeof x.onClick!="function"&&typeof d.onClick=="function"&&(r.onclick=bc)}at(a,d);var N;a=null;for(q in x)if(!d.hasOwnProperty(q)&&x.hasOwnProperty(q)&&x[q]!=null)if(q==="style"){var M=x[q];for(N in M)M.hasOwnProperty(N)&&(a||(a={}),a[N]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(s.hasOwnProperty(q)?k||(k=[]):(k=k||[]).push(q,null));for(q in d){var G=d[q];
vendor: 5,250 bytes, line 40
40if(M=x?.[q],d.hasOwnProperty(q)&&G!==M&&(G!=null||M!=null))if(q==="style")if(M){for(N in M)!M.hasOwnProperty(N)||G&&G.hasOwnProperty(N)||(a||(a={}),a[N]="");for(N in G)G.hasOwnProperty(N)&&M[N]!==G[N]&&(a||(a={}),a[N]=G[N])}else a||(k||(k=[]),k.push(q,a)),a=G;else q==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,M=M?M.__html:void 0,G!=null&&M!==G&&(k=k||[]).push(q,G)):q==="children"?typeof G!="string"&&typeof G!="number"||(k=k||[]).push(q,""+G):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(s.hasOwnProperty(q)?(G!=null&&q==="onScroll"&&zt("scroll",r),k||M===G||(k=[])):(k=k||[]).push(q,G))}a&&(k=k||[]).push("style",a);var q=k;(o.updateQueue=q)&&(o.flags|=4)}},cg=function(r,o,a,d){a!==d&&(o.flags|=4)};function fl(r,o){if(!Wt)switch(r.tailMode){case"hidden":o=r.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var d=null;a!==null;)a.alternate!==null&&(d=a),a=a.sibling;d===null?o||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Tn(r){var o=r.alternate!==null&&r.alternate.child===r.child,a=0,d=0;if(o)for(var x=r.child;x!==null;)a|=x.lanes|x.childLanes,d|=x.subtreeFlags&14680064,d|=x.flags&14680064,x.return=r,x=x.sibling;else for(x=r.child;x!==null;)a|=x.lanes|x.childLanes,d|=x.subtreeFlags,d|=x.flags,x.return=r,x=x.sibling;return r.subtreeFlags|=d,r.childLanes=a,o}function Xb(r,o,a){var d=o.pendingProps;switch(Od(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tn(o),null;case 1:return qn(o.type)&&Sc(),Tn(o),null;case 3:return d=o.stateNode,sa(),Gt(Xn),Gt(Rn),Vd(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(r===null||r.child===null)&&(_c(o)?o.flags|=4:r===null||r.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Yr!==null&&(Sf(Yr),Yr=null))),ff(r,o),Tn(o),null;case 5:$d(o);var x=fs(al.current);if(a=o.type,r!==null&&o.stateNode!=null)lg(r,o,a,d,x),r.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!d){if(o.stateNode===null)throw Error(n(166));return Tn(o),null}if(r=fs(ko.current),_c(o)){d=o.stateNode,a=o.type;var k=o.memoizedProps;switch(d[wo]=o,d[nl]=k,r=(o.mode&1)!==0,a){case"dialog":zt("cancel",d),zt("close",d);break;case"iframe":case"object":case"embed":zt("load",d);break;case"video":case"audio":for(x=0;x<ss.length;x++)zt(ss[x],d);break;case"source":zt("error",d);break;case"img":case"image":case"link":zt("error",d),zt("load",d);break;case"details":zt("toggle",d);break;case"input":dn(d,k),zt("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!k.multiple},zt("invalid",d);break;case"textarea":dt(d,k),zt("invalid",d)}at(a,k),x=null;for(var N in k)if(k.hasOwnProperty(N)){var M=k[N];N==="children"?typeof M=="string"?d.textContent!==M&&(k.suppressHydrationWarning!==!0&&kc(d.textContent,M,r),x=["children",M]):typeof M=="number"&&d.textContent!==""+M&&(k.suppressHydrationWarning!==!0&&kc(d.textContent,M,r),x=["children",""+M]):s.hasOwnProperty(N)&&M!=null&&N==="onScroll"&&zt("scroll",d)}switch(a){case"input":vt(d),Pn(d,k,!0);break;case"textarea":vt(d),Zt(d);break;case"select":case"option":break;default:typeof k.onClick=="function"&&(d.onclick=bc)}d=x,o.updateQueue=d,d!==null&&(o.flags|=4)}else{N=x.nodeType===9?x:x.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=Z(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=N.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof d.is=="string"?r=N.createElement(a,{is:d.is}):(r=N.createElement(a),a==="select"&&(N=r,d.multiple?N.multiple=!0:d.size&&(N.size=d.size))):r=N.createElementNS(r,a),r[wo]=o,r[nl]=d,ag(r,o,!1,!1),o.stateNode=r;e:{switch(N=tn(a,d),a){case"dialog":zt("cancel",r),zt("close",r),x=d;break;case"iframe":case"object":case"embed":zt("load",r),x=d;break;case"video":case"audio":for(x=0;x<ss.length;x++)zt(ss[x],r);x=d;break;case"source":zt("error",r),x=d;break;case"img":case"image":case"link":zt("error",r),zt("load",r),x=d;break;case"details":zt("toggle",r),x=d;break;case"input":dn(r,d),x=Rt(r,d),zt("invalid",r);break;case"option":x=d;break;case"select":r._wrapperState={wasMultiple:!!d.multiple},x=_({},d,{value:void 0}),zt("invalid",r);break;case"textarea":dt(r,d),x=Xe(r,d),zt("invalid",r);break;default:x=d}at(a,x),M=x;for(k in M)if(M.hasOwnProperty(k)){var G=M[k];k==="style"?Jt(r,G):k==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,G!=null&&Pe(r,G)):k==="children"?typeof G=="string"?(a!=="textarea"||G!=="")&&ue(r,G):typeof G=="number"&&ue(r,""+G):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(s.hasOwnProperty(k)?G!=null&&k==="onScroll"&&zt("scroll",r):G!=null&&j(r,k,G,N))}switch(a){case"input":vt(r),Pn(r,d,!1);break;case"textarea":vt(r),Zt(r);break;case"option":d.value!=null&&r.setAttribute("value",""+Se(d.value));break;case"select":r.multiple=!!d.multiple,k=d.value,k!=null?We(r,!!d.multiple,k,!1):d.defaultValue!=null&&We(r,!!d.multiple,d.defaultValue,!0);break;default:typeof x.onClick=="function"&&(r.onclick=bc)}switch(a){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}
vendor: 22,480 bytes, line 40
40return Tn(o),null;case 6:if(r&&o.stateNode!=null)cg(r,o,r.memoizedProps,d);else{if(typeof d!="string"&&o.stateNode===null)throw Error(n(166));if(a=fs(al.current),fs(ko.current),_c(o)){if(d=o.stateNode,a=o.memoizedProps,d[wo]=o,(k=d.nodeValue!==a)&&(r=dr,r!==null))switch(r.tag){case 3:kc(d.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&kc(d.nodeValue,a,(r.mode&1)!==0)}k&&(o.flags|=4)}else d=(a.nodeType===9?a:a.ownerDocument).createTextNode(d),d[wo]=o,o.stateNode=d}return Tn(o),null;case 13:if(Gt(Ut),d=o.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(Wt&&fr!==null&&(o.mode&1)!==0&&(o.flags&128)===0)fm(),na(),o.flags|=98560,k=!1;else if(k=_c(o),d!==null&&d.dehydrated!==null){if(r===null){if(!k)throw Error(n(318));if(k=o.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(n(317));k[wo]=o}else na(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Tn(o),k=!1}else Yr!==null&&(Sf(Yr),Yr=null),k=!0;if(!k)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=a,o):(d=d!==null,d!==(r!==null&&r.memoizedState!==null)&&d&&(o.child.flags|=8192,(o.mode&1)!==0&&(r===null||(Ut.current&1)!==0?cn===0&&(cn=3):Nf())),o.updateQueue!==null&&(o.flags|=4),Tn(o),null);case 4:return sa(),ff(r,o),r===null&&el(o.stateNode.containerInfo),Tn(o),null;case 10:return zd(o.type._context),Tn(o),null;case 17:return qn(o.type)&&Sc(),Tn(o),null;case 19:if(Gt(Ut),k=o.memoizedState,k===null)return Tn(o),null;if(d=(o.flags&128)!==0,N=k.rendering,N===null)if(d)fl(k,!1);else{if(cn!==0||r!==null&&(r.flags&128)!==0)for(r=o.child;r!==null;){if(N=Pc(r),N!==null){for(o.flags|=128,fl(k,!1),d=N.updateQueue,d!==null&&(o.updateQueue=d,o.flags|=4),o.subtreeFlags=0,d=a,a=o.child;a!==null;)k=a,r=d,k.flags&=14680066,N=k.alternate,N===null?(k.childLanes=0,k.lanes=r,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=N.childLanes,k.lanes=N.lanes,k.child=N.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=N.memoizedProps,k.memoizedState=N.memoizedState,k.updateQueue=N.updateQueue,k.type=N.type,r=N.dependencies,k.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Dt(Ut,Ut.current&1|2),o.child}r=r.sibling}k.tail!==null&&ee()>ua&&(o.flags|=128,d=!0,fl(k,!1),o.lanes=4194304)}else{if(!d)if(r=Pc(N),r!==null){if(o.flags|=128,d=!0,a=r.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),fl(k,!0),k.tail===null&&k.tailMode==="hidden"&&!N.alternate&&!Wt)return Tn(o),null}else 2*ee()-k.renderingStartTime>ua&&a!==1073741824&&(o.flags|=128,d=!0,fl(k,!1),o.lanes=4194304);k.isBackwards?(N.sibling=o.child,o.child=N):(a=k.last,a!==null?a.sibling=N:o.child=N,k.last=N)}return k.tail!==null?(o=k.tail,k.rendering=o,k.tail=o.sibling,k.renderingStartTime=ee(),o.sibling=null,a=Ut.current,Dt(Ut,d?a&1|2:a&1),o):(Tn(o),null);case 22:case 23:return Cf(),d=o.memoizedState!==null,r!==null&&r.memoizedState!==null!==d&&(o.flags|=8192),d&&(o.mode&1)!==0?(pr&1073741824)!==0&&(Tn(o),o.subtreeFlags&6&&(o.flags|=8192)):Tn(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function qb(r,o){switch(Od(o),o.tag){case 1:return qn(o.type)&&Sc(),r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 3:return sa(),Gt(Xn),Gt(Rn),Vd(),r=o.flags,(r&65536)!==0&&(r&128)===0?(o.flags=r&-65537|128,o):null;case 5:return $d(o),null;case 13:if(Gt(Ut),r=o.memoizedState,r!==null&&r.dehydrated!==null){if(o.alternate===null)throw Error(n(340));na()}return r=o.flags,r&65536?(o.flags=r&-65537|128,o):null;case 19:return Gt(Ut),null;case 4:return sa(),null;case 10:return zd(o.type._context),null;case 22:case 23:return Cf(),null;case 24:return null;default:return null}}var Hc=!1,In=!1,Zb=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function la(r,o){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(d){Xt(r,o,d)}else a.current=null}function pf(r,o,a){try{a()}catch(d){Xt(r,o,d)}}var ug=!1;function Jb(r,o){if(Ed=Hr,r=Za(),yo(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var d=a.getSelection&&a.getSelection();if(d&&d.rangeCount!==0){a=d.anchorNode;var x=d.anchorOffset,k=d.focusNode;d=d.focusOffset;try{a.nodeType,k.nodeType}catch{a=null;break e}var N=0,M=-1,G=-1,q=0,ge=0,ye=r,me=null;t:for(;;){for(var Le;ye!==a||x!==0&&ye.nodeType!==3||(M=N+x),ye!==k||d!==0&&ye.nodeType!==3||(G=N+d),ye.nodeType===3&&(N+=ye.nodeValue.length),(Le=ye.firstChild)!==null;)me=ye,ye=Le;for(;;){if(ye===r)break t;if(me===a&&++q===x&&(M=N),me===k&&++ge===d&&(G=N),(Le=ye.nextSibling)!==null)break;ye=me,me=ye.parentNode}ye=Le}a=M===-1||G===-1?null:{start:M,end:G}}else a=null}a=a||{start:0,end:0}}else a=null;for(Cd={focusedElem:r,selectionRange:a},Hr=!1,Oe=o;Oe!==null;)if(o=Oe,r=o.child,(o.subtreeFlags&1028)!==0&&r!==null)r.return=o,Oe=r;else for(;Oe!==null;){o=Oe;try{var je=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(je!==null){var ze=je.memoizedProps,Qt=je.memoizedState,U=o.stateNode,W=U.getSnapshotBeforeUpdate(o.elementType===o.type?ze:Xr(o.type,ze),Qt);U.__reactInternalSnapshotBeforeUpdate=W}break;case 3:var V=o.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(be){Xt(o,o.return,be)}if(r=o.sibling,r!==null){r.return=o.return,Oe=r;break}Oe=o.return}return je=ug,ug=!1,je}function pl(r,o,a){var d=o.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var x=d=d.next;do{if((x.tag&r)===r){var k=x.destroy;x.destroy=void 0,k!==void 0&&pf(o,a,k)}x=x.next}while(x!==d)}}function $c(r,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&r)===r){var d=a.create;a.destroy=d()}a=a.next}while(a!==o)}}function hf(r){var o=r.ref;if(o!==null){var a=r.stateNode;switch(r.tag){case 5:r=a;break;default:r=a}typeof o=="function"?o(r):o.current=r}}function dg(r){var o=r.alternate;o!==null&&(r.alternate=null,dg(o)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(o=r.stateNode,o!==null&&(delete o[wo],delete o[nl],delete o[Td],delete o[Pb],delete o[jb])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function fg(r){return r.tag===5||r.tag===3||r.tag===4}function pg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||fg(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function mf(r,o,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(r,o):a.insertBefore(r,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(r,a)):(o=a,o.appendChild(r)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=bc));else if(d!==4&&(r=r.child,r!==null))for(mf(r,o,a),r=r.sibling;r!==null;)mf(r,o,a),r=r.sibling}function gf(r,o,a){var d=r.tag;if(d===5||d===6)r=r.stateNode,o?a.insertBefore(r,o):a.appendChild(r);else if(d!==4&&(r=r.child,r!==null))for(gf(r,o,a),r=r.sibling;r!==null;)gf(r,o,a),r=r.sibling}var vn=null,qr=!1;function vi(r,o,a){for(a=a.child;a!==null;)hg(r,o,a),a=a.sibling}function hg(r,o,a){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Tt,a)}catch{}switch(a.tag){case 5:In||la(a,o);case 6:var d=vn,x=qr;vn=null,vi(r,o,a),vn=d,qr=x,vn!==null&&(qr?(r=vn,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):vn.removeChild(a.stateNode));break;case 18:vn!==null&&(qr?(r=vn,a=a.stateNode,r.nodeType===8?_d(r.parentNode,a):r.nodeType===1&&_d(r,a),Ds(r)):_d(vn,a.stateNode));break;case 4:d=vn,x=qr,vn=a.stateNode.containerInfo,qr=!0,vi(r,o,a),vn=d,qr=x;break;case 0:case 11:case 14:case 15:if(!In&&(d=a.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){x=d=d.next;do{var k=x,N=k.destroy;k=k.tag,N!==void 0&&((k&2)!==0||(k&4)!==0)&&pf(a,o,N),x=x.next}while(x!==d)}vi(r,o,a);break;case 1:if(!In&&(la(a,o),d=a.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=a.memoizedProps,d.state=a.memoizedState,d.componentWillUnmount()}catch(M){Xt(a,o,M)}vi(r,o,a);break;case 21:vi(r,o,a);break;case 22:a.mode&1?(In=(d=In)||a.memoizedState!==null,vi(r,o,a),In=d):vi(r,o,a);break;default:vi(r,o,a)}}function mg(r){var o=r.updateQueue;if(o!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new Zb),o.forEach(function(d){var x=av.bind(null,r,d);a.has(d)||(a.add(d),d.then(x,x))})}}function Zr(r,o){var a=o.deletions;if(a!==null)for(var d=0;d<a.length;d++){var x=a[d];try{var k=r,N=o,M=N;e:for(;M!==null;){switch(M.tag){case 5:vn=M.stateNode,qr=!1;break e;case 3:vn=M.stateNode.containerInfo,qr=!0;break e;case 4:vn=M.stateNode.containerInfo,qr=!0;break e}M=M.return}if(vn===null)throw Error(n(160));hg(k,N,x),vn=null,qr=!1;var G=x.alternate;G!==null&&(G.return=null),x.return=null}catch(q){Xt(x,o,q)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)gg(o,r),o=o.sibling}function gg(r,o){var a=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Zr(o,r),vo(r),d&4){try{pl(3,r,r.return),$c(3,r)}catch(ze){Xt(r,r.return,ze)}try{pl(5,r,r.return)}catch(ze){Xt(r,r.return,ze)}}break;case 1:Zr(o,r),vo(r),d&512&&a!==null&&la(a,a.return);break;case 5:if(Zr(o,r),vo(r),d&512&&a!==null&&la(a,a.return),r.flags&32){var x=r.stateNode;try{ue(x,"")}catch(ze){Xt(r,r.return,ze)}}if(d&4&&(x=r.stateNode,x!=null)){var k=r.memoizedProps,N=a!==null?a.memoizedProps:k,M=r.type,G=r.updateQueue;if(r.updateQueue=null,G!==null)try{M==="input"&&k.type==="radio"&&k.name!=null&&Un(x,k),tn(M,N);var q=tn(M,k);for(N=0;N<G.length;N+=2){var ge=G[N],ye=G[N+1];ge==="style"?Jt(x,ye):ge==="dangerouslySetInnerHTML"?Pe(x,ye):ge==="children"?ue(x,ye):j(x,ge,ye,q)}switch(M){case"input":fn(x,k);break;case"textarea":gt(x,k);break;case"select":var me=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!k.multiple;var Le=k.value;Le!=null?We(x,!!k.multiple,Le,!1):me!==!!k.multiple&&(k.defaultValue!=null?We(x,!!k.multiple,k.defaultValue,!0):We(x,!!k.multiple,k.multiple?[]:"",!1))}x[nl]=k}catch(ze){Xt(r,r.return,ze)}}break;case 6:if(Zr(o,r),vo(r),d&4){if(r.stateNode===null)throw Error(n(162));x=r.stateNode,k=r.memoizedProps;try{x.nodeValue=k}catch(ze){Xt(r,r.return,ze)}}break;case 3:if(Zr(o,r),vo(r),d&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(o.containerInfo)}catch(ze){Xt(r,r.return,ze)}break;case 4:Zr(o,r),vo(r);break;case 13:Zr(o,r),vo(r),x=r.child,x.flags&8192&&(k=x.memoizedState!==null,x.stateNode.isHidden=k,!k||x.alternate!==null&&x.alternate.memoizedState!==null||(wf=ee())),d&4&&mg(r);break;case 22:if(ge=a!==null&&a.memoizedState!==null,r.mode&1?(In=(q=In)||ge,Zr(o,r),In=q):Zr(o,r),vo(r),d&8192){if(q=r.memoizedState!==null,(r.stateNode.isHidden=q)&&!ge&&(r.mode&1)!==0)for(Oe=r,ge=r.child;ge!==null;){for(ye=Oe=ge;Oe!==null;){switch(me=Oe,Le=me.child,me.tag){case 0:case 11:case 14:case 15:pl(4,me,me.return);break;case 1:la(me,me.return);var je=me.stateNode;if(typeof je.componentWillUnmount=="function"){d=me,a=me.return;try{o=d,je.props=o.memoizedProps,je.state=o.memoizedState,je.componentWillUnmount()}catch(ze){Xt(d,a,ze)}}break;case 5:la(me,me.return);break;case 22:if(me.memoizedState!==null){wg(ye);continue}}Le!==null?(Le.return=me,Oe=Le):wg(ye)}ge=ge.sibling}e:for(ge=null,ye=r;;){if(ye.tag===5){if(ge===null){ge=ye;try{x=ye.stateNode,q?(k=x.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none"):(M=ye.stateNode,G=ye.memoizedProps.style,N=G!=null&&G.hasOwnProperty("display")?G.display:null,M.style.display=bt("display",N))}catch(ze){Xt(r,r.return,ze)}}}else if(ye.tag===6){if(ge===null)try{ye.stateNode.nodeValue=q?"":ye.memoizedProps}catch(ze){Xt(r,r.return,ze)}}else if((ye.tag!==22&&ye.tag!==23||ye.memoizedState===null||ye===r)&&ye.child!==null){ye.child.return=ye,ye=ye.child;continue}if(ye===r)break e;for(;ye.sibling===null;){if(ye.return===null||ye.return===r)break e;ge===ye&&(ge=null),ye=ye.return}ge===ye&&(ge=null),ye.sibling.return=ye.return,ye=ye.sibling}}break;case 19:Zr(o,r),vo(r),d&4&&mg(r);break;case 21:break;default:Zr(o,r),vo(r)}}function vo(r){var o=r.flags;if(o&2){try{e:{for(var a=r.return;a!==null;){if(fg(a)){var d=a;break e}a=a.return}throw Error(n(160))}switch(d.tag){case 5:var x=d.stateNode;d.flags&32&&(ue(x,""),d.flags&=-33);var k=pg(r);gf(r,k,x);break;case 3:case 4:var N=d.stateNode.containerInfo,M=pg(r);mf(r,M,N);break;default:throw Error(n(161))}}catch(G){Xt(r,r.return,G)}r.flags&=-3}o&4096&&(r.flags&=-4097)}function Qb(r,o,a){Oe=r,xg(r)}function xg(r,o,a){for(var d=(r.mode&1)!==0;Oe!==null;){var x=Oe,k=x.child;if(x.tag===22&&d){var N=x.memoizedState!==null||Hc;if(!N){var M=x.alternate,G=M!==null&&M.memoizedState!==null||In;M=Hc;var q=In;if(Hc=N,(In=G)&&!q)for(Oe=x;Oe!==null;)N=Oe,G=N.child,N.tag===22&&N.memoizedState!==null?kg(x):G!==null?(G.return=N,Oe=G):kg(x);for(;k!==null;)Oe=k,xg(k),k=k.sibling;Oe=x,Hc=M,In=q}yg(r)}else(x.subtreeFlags&8772)!==0&&k!==null?(k.return=x,Oe=k):yg(r)}}function yg(r){for(;Oe!==null;){var o=Oe;if((o.flags&8772)!==0){var a=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:In||$c(5,o);break;case 1:var d=o.stateNode;if(o.flags&4&&!In)if(a===null)d.componentDidMount();else{var x=o.elementType===o.type?a.memoizedProps:Xr(o.type,a.memoizedProps);d.componentDidUpdate(x,a.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var k=o.updateQueue;k!==null&&wm(o,k,d);break;case 3:var N=o.updateQueue;if(N!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}wm(o,N,a)}break;case 5:var M=o.stateNode;if(a===null&&o.flags&4){a=M;var G=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":G.autoFocus&&a.focus();break;case"img":G.src&&(a.src=G.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var q=o.alternate;if(q!==null){var ge=q.memoizedState;if(ge!==null){var ye=ge.dehydrated;ye!==null&&Ds(ye)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}In||o.flags&512&&hf(o)}catch(me){Xt(o,o.return,me)}}if(o===r){Oe=null;break}if(a=o.sibling,a!==null){a.return=o.return,Oe=a;break}Oe=o.return}}function wg(r){for(;Oe!==null;){var o=Oe;if(o===r){Oe=null;break}var a=o.sibling;if(a!==null){a.return=o.return,Oe=a;break}Oe=o.return}}function kg(r){for(;Oe!==null;){var o=Oe;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{$c(4,o)}catch(G){Xt(o,a,G)}break;case 1:var d=o.stateNode;if(typeof d.componentDidMount=="function"){var x=o.return;try{d.componentDidMount()}catch(G){Xt(o,x,G)}}var k=o.return;try{hf(o)}catch(G){Xt(o,k,G)}break;case 5:var N=o.return;try{hf(o)}catch(G){Xt(o,N,G)}}}catch(G){Xt(o,o.return,G)}if(o===r){Oe=null;break}var M=o.sibling;if(M!==null){M.return=o.return,Oe=M;break}Oe=o.return}}var ev=Math.ceil,Uc=D.ReactCurrentDispatcher,xf=D.ReactCurrentOwner,Pr=D.ReactCurrentBatchConfig,wt=0,yn=null,rn=null,Sn=0,pr=0,ca=xi(0),cn=0,hl=null,hs=0,Vc=0,yf=0,ml=null,Jn=null,wf=0,ua=1/0,Ko=null,Kc=!1,kf=null,Si=null,Yc=!1,Ei=null,Xc=0,gl=0,bf=null,qc=-1,Zc=0;function Fn(){return(wt&6)!==0?ee():qc!==-1?qc:qc=ee()}function Ci(r){return(r.mode&1)===0?1:(wt&2)!==0&&Sn!==0?Sn&-Sn:Db.transition!==null?(Zc===0&&(Zc=Ma()),Zc):(r=pt,r!==0||(r=window.event,r=r===void 0?16:Gs(r.type)),r)}function Jr(r,o,a,d){if(50<gl)throw gl=0,bf=null,Error(n(185));fo(r,a,d),((wt&2)===0||r!==yn)&&(r===yn&&((wt&2)===0&&(Vc|=a),cn===4&&Ni(r,Sn)),Qn(r,d),a===1&&wt===0&&(o.mode&1)===0&&(ua=ee()+500,Cc&&wi()))}function Qn(r,o){var a=r.callbackNode;Ls(r,o);var d=zi(r,r===yn?Sn:0);if(d===0)a!==null&&ii(a),r.callbackNode=null,r.callbackPriority=0;else if(o=d&-d,r.callbackPriority!==o){if(a!=null&&ii(a),o===1)r.tag===0?Mb(vg.bind(null,r)):am(vg.bind(null,r)),Ab(function(){(wt&6)===0&&wi()}),a=null;else{switch(Wi(d)){case 1:a=ne;break;case 4:a=xe;break;case 16:a=oe;break;case 536870912:a=ut;break;default:a=oe}a=Ig(a,bg.bind(null,r))}r.callbackPriority=o,r.callbackNode=a}}function bg(r,o){if(qc=-1,Zc=0,(wt&6)!==0)throw Error(n(327));var a=r.callbackNode;if(da()&&r.callbackNode!==a)return null;var d=zi(r,r===yn?Sn:0);if(d===0)return null;if((d&30)!==0||(d&r.expiredLanes)!==0||o)o=Jc(r,d);else{o=d;var x=wt;wt|=2;var k=Eg();(yn!==r||Sn!==o)&&(Ko=null,ua=ee()+500,gs(r,o));do try{rv();break}catch(M){Sg(r,M)}while(!0);Fd(),Uc.current=k,wt=x,rn!==null?o=0:(yn=null,Sn=0,o=cn)}if(o!==0){if(o===2&&(x=Gi(r),x!==0&&(d=x,o=vf(r,x))),o===1)throw a=hl,gs(r,0),Ni(r,d),Qn(r,ee()),a;if(o===6)Ni(r,d);else{if(x=r.current.alternate,(d&30)===0&&!tv(x)&&(o=Jc(r,d),o===2&&(k=Gi(r),k!==0&&(d=k,o=vf(r,k))),o===1))throw a=hl,gs(r,0),Ni(r,d),Qn(r,ee()),a;switch(r.finishedWork=x,r.finishedLanes=d,o){case 0:case 1:throw Error(n(345));case 2:xs(r,Jn,Ko);break;case 3:if(Ni(r,d),(d&130023424)===d&&(o=wf+500-ee(),10<o)){if(zi(r,0)!==0)break;if(x=r.suspendedLanes,(x&d)!==d){Fn(),r.pingedLanes|=r.suspendedLanes&x;break}r.timeoutHandle=Rd(xs.bind(null,r,Jn,Ko),o);break}xs(r,Jn,Ko);break;case 4:if(Ni(r,d),(d&4194240)===d)break;for(o=r.eventTimes,x=-1;0<d;){var N=31-xt(d);k=1<<N,N=o[N],N>x&&(x=N),d&=~k}if(d=x,d=ee()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*ev(d/1960))-d,10<d){r.timeoutHandle=Rd(xs.bind(null,r,Jn,Ko),d);break}xs(r,Jn,Ko);break;case 5:xs(r,Jn,Ko);break;default:throw Error(n(329))}}}return Qn(r,ee()),r.callbackNode===a?bg.bind(null,r):null}function vf(r,o){var a=ml;return r.current.memoizedState.isDehydrated&&(gs(r,o).flags|=256),r=Jc(r,o),r!==2&&(o=Jn,Jn=a,o!==null&&Sf(o)),r}function Sf(r){Jn===null?Jn=r:Jn.push.apply(Jn,r)}function tv(r){for(var o=r;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var d=0;d<a.length;d++){var x=a[d],k=x.getSnapshot;x=x.value;try{if(!ur(k(),x))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ni(r,o){for(o&=~yf,o&=~Vc,r.suspendedLanes|=o,r.pingedLanes&=~o,r=r.expirationTimes;0<o;){var a=31-xt(o),d=1<<a;r[a]=-1,o&=~d}}function vg(r){if((wt&6)!==0)throw Error(n(327));da();var o=zi(r,0);if((o&1)===0)return Qn(r,ee()),null;var a=Jc(r,o);if(r.tag!==0&&a===2){var d=Gi(r);d!==0&&(o=d,a=vf(r,d))}if(a===1)throw a=hl,gs(r,0),Ni(r,o),Qn(r,ee()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=o,xs(r,Jn,Ko),Qn(r,ee()),null}function Ef(r,o){var a=wt;wt|=1;try{return r(o)}finally{wt=a,wt===0&&(ua=ee()+500,Cc&&wi())}}function ms(r){Ei!==null&&Ei.tag===0&&(wt&6)===0&&da();var o=wt;wt|=1;var a=Pr.transition,d=pt;try{if(Pr.transition=null,pt=1,r)return r()}finally{pt=d,Pr.transition=a,wt=o,(wt&6)===0&&wi()}}function Cf(){pr=ca.current,Gt(ca)}function gs(r,o){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,Lb(a)),rn!==null)for(a=rn.return;a!==null;){var d=a;switch(Od(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Sc();break;case 3:sa(),Gt(Xn),Gt(Rn),Vd();break;case 5:$d(d);break;case 4:sa();break;case 13:Gt(Ut);break;case 19:Gt(Ut);break;case 10:zd(d.type._context);break;case 22:case 23:Cf()}a=a.return}if(yn=r,rn=r=Ri(r.current,null),Sn=pr=o,cn=0,hl=null,yf=Vc=hs=0,Jn=ml=null,ds!==null){for(o=0;o<ds.length;o++)if(a=ds[o],d=a.interleaved,d!==null){a.interleaved=null;var x=d.next,k=a.pending;if(k!==null){var N=k.next;k.next=x,d.next=N}a.pending=d}ds=null}return r}function Sg(r,o){do{var a=rn;try{if(Fd(),jc.current=zc,Mc){for(var d=Vt.memoizedState;d!==null;){var x=d.queue;x!==null&&(x.pending=null),d=d.next}Mc=!1}if(ps=0,xn=ln=Vt=null,ll=!1,cl=0,xf.current=null,a===null||a.return===null){cn=1,hl=o,rn=null;break}e:{var k=r,N=a.return,M=a,G=o;if(o=Sn,M.flags|=32768,G!==null&&typeof G=="object"&&typeof G.then=="function"){var q=G,ge=M,ye=ge.tag;if((ge.mode&1)===0&&(ye===0||ye===11||ye===15)){var me=ge.alternate;me?(ge.updateQueue=me.updateQueue,ge.memoizedState=me.memoizedState,ge.lanes=me.lanes):(ge.updateQueue=null,ge.memoizedState=null)}var Le=Ym(N);if(Le!==null){Le.flags&=-257,Xm(Le,N,M,k,o),Le.mode&1&&Km(k,q,o),o=Le,G=q;var je=o.updateQueue;if(je===null){var ze=new Set;ze.add(G),o.updateQueue=ze}else je.add(G);break e}else{if((o&1)===0){Km(k,q,o),Nf();break e}G=Error(n(426))}}else if(Wt&&M.mode&1){var Qt=Ym(N);if(Qt!==null){(Qt.flags&65536)===0&&(Qt.flags|=256),Xm(Qt,N,M,k,o),Md(aa(G,M));break e}}k=G=aa(G,M),cn!==4&&(cn=2),ml===null?ml=[k]:ml.push(k),k=N;do{switch(k.tag){case 3:k.flags|=65536,o&=-o,k.lanes|=o;var U=Um(k,G,o);ym(k,U);break e;case 1:M=G;var W=k.type,V=k.stateNode;if((k.flags&128)===0&&(typeof W.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Si===null||!Si.has(V)))){k.flags|=65536,o&=-o,k.lanes|=o;var be=Vm(k,M,o);ym(k,be);break e}}k=k.return}while(k!==null)}Ng(a)}catch(Be){o=Be,rn===a&&a!==null&&(rn=a=a.return);continue}break}while(!0)}function Eg(){var r=Uc.current;return Uc.current=zc,r===null?zc:r}function Nf(){(cn===0||cn===3||cn===2)&&(cn=4),yn===null||(hs&268435455)===0&&(Vc&268435455)===0||Ni(yn,Sn)}function Jc(r,o){var a=wt;wt|=2;var d=Eg();(yn!==r||Sn!==o)&&(Ko=null,gs(r,o));do try{nv();break}catch(x){Sg(r,x)}while(!0);if(Fd(),wt=a,Uc.current=d,rn!==null)throw Error(n(261));return yn=null,Sn=0,cn}function nv(){for(;rn!==null;)Cg(rn)}function rv(){for(;rn!==null&&!co();)Cg(rn)}function Cg(r){var o=Tg(r.alternate,r,pr);r.memoizedProps=r.pendingProps,o===null?Ng(r):rn=o,xf.current=null}function Ng(r){var o=r;do{var a=o.alternate;if(r=o.return,(o.flags&32768)===0){if(a=Xb(a,o,pr),a!==null){rn=a;return}}else{if(a=qb(a,o),a!==null){a.flags&=32767,rn=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{cn=6,rn=null;return}}if(o=o.sibling,o!==null){rn=o;return}rn=o=r}while(o!==null);cn===0&&(cn=5)}function xs(r,o,a){var d=pt,x=Pr.transition;try{Pr.transition=null,pt=1,ov(r,o,a,d)}finally{Pr.transition=x,pt=d}return null}function ov(r,o,a,d){do da();while(Ei!==null);if((wt&6)!==0)throw Error(n(327));a=r.finishedWork;var x=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var k=a.lanes|a.childLanes;
vendor: 4,483 bytes, line 40
40if(As(r,k),r===yn&&(rn=yn=null,Sn=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Yc||(Yc=!0,Ig(oe,function(){return da(),null})),k=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||k){k=Pr.transition,Pr.transition=null;var N=pt;pt=1;var M=wt;wt|=4,xf.current=null,Jb(r,a),gg(a,r),O(Cd),Hr=!!Ed,Cd=Ed=null,r.current=a,Qb(a),ja(),wt=M,pt=N,Pr.transition=k}else r.current=a;if(Yc&&(Yc=!1,Ei=r,Xc=x),k=r.pendingLanes,k===0&&(Si=null),le(a.stateNode),Qn(r,ee()),o!==null)for(d=r.onRecoverableError,a=0;a<o.length;a++)x=o[a],d(x.value,{componentStack:x.stack,digest:x.digest});if(Kc)throw Kc=!1,r=kf,kf=null,r;return(Xc&1)!==0&&r.tag!==0&&da(),k=r.pendingLanes,(k&1)!==0?r===bf?gl++:(gl=0,bf=r):gl=0,wi(),null}function da(){if(Ei!==null){var r=Wi(Xc),o=Pr.transition,a=pt;try{if(Pr.transition=null,pt=16>r?16:r,Ei===null)var d=!1;else{if(r=Ei,Ei=null,Xc=0,(wt&6)!==0)throw Error(n(331));var x=wt;for(wt|=4,Oe=r.current;Oe!==null;){var k=Oe,N=k.child;if((Oe.flags&16)!==0){var M=k.deletions;if(M!==null){for(var G=0;G<M.length;G++){var q=M[G];for(Oe=q;Oe!==null;){var ge=Oe;switch(ge.tag){case 0:case 11:case 15:pl(8,ge,k)}var ye=ge.child;if(ye!==null)ye.return=ge,Oe=ye;else for(;Oe!==null;){ge=Oe;var me=ge.sibling,Le=ge.return;if(dg(ge),ge===q){Oe=null;break}if(me!==null){me.return=Le,Oe=me;break}Oe=Le}}}var je=k.alternate;if(je!==null){var ze=je.child;if(ze!==null){je.child=null;do{var Qt=ze.sibling;ze.sibling=null,ze=Qt}while(ze!==null)}}Oe=k}}if((k.subtreeFlags&2064)!==0&&N!==null)N.return=k,Oe=N;else e:for(;Oe!==null;){if(k=Oe,(k.flags&2048)!==0)switch(k.tag){case 0:case 11:case 15:pl(9,k,k.return)}var U=k.sibling;if(U!==null){U.return=k.return,Oe=U;break e}Oe=k.return}}var W=r.current;for(Oe=W;Oe!==null;){N=Oe;var V=N.child;if((N.subtreeFlags&2064)!==0&&V!==null)V.return=N,Oe=V;else e:for(N=W;Oe!==null;){if(M=Oe,(M.flags&2048)!==0)try{switch(M.tag){case 0:case 11:case 15:$c(9,M)}}catch(Be){Xt(M,M.return,Be)}if(M===N){Oe=null;break e}var be=M.sibling;if(be!==null){be.return=M.return,Oe=be;break e}Oe=M.return}}if(wt=x,wi(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Tt,r)}catch{}d=!0}return d}finally{pt=a,Pr.transition=o}}return!1}function Rg(r,o,a){o=aa(a,o),o=Um(r,o,1),r=bi(r,o,1),o=Fn(),r!==null&&(fo(r,1,o),Qn(r,o))}function Xt(r,o,a){if(r.tag===3)Rg(r,r,a);else for(;o!==null;){if(o.tag===3){Rg(o,r,a);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Si===null||!Si.has(d))){r=aa(a,r),r=Vm(o,r,1),o=bi(o,r,1),r=Fn(),o!==null&&(fo(o,1,r),Qn(o,r));break}}o=o.return}}function iv(r,o,a){var d=r.pingCache;d!==null&&d.delete(o),o=Fn(),r.pingedLanes|=r.suspendedLanes&a,yn===r&&(Sn&a)===a&&(cn===4||cn===3&&(Sn&130023424)===Sn&&500>ee()-wf?gs(r,0):yf|=a),Qn(r,o)}function _g(r,o){o===0&&((r.mode&1)===0?o=1:(o=uo,uo<<=1,(uo&130023424)===0&&(uo=4194304)));var a=Fn();r=$o(r,o),r!==null&&(fo(r,o,a),Qn(r,a))}function sv(r){var o=r.memoizedState,a=0;o!==null&&(a=o.retryLane),_g(r,a)}function av(r,o){var a=0;switch(r.tag){case 13:var d=r.stateNode,x=r.memoizedState;x!==null&&(a=x.retryLane);break;case 19:d=r.stateNode;break;default:throw Error(n(314))}d!==null&&d.delete(o),_g(r,a)}var Tg;Tg=function(r,o,a){if(r!==null)if(r.memoizedProps!==o.pendingProps||Xn.current)Zn=!0;else{if((r.lanes&a)===0&&(o.flags&128)===0)return Zn=!1,Yb(r,o,a);Zn=(r.flags&131072)!==0}else Zn=!1,Wt&&(o.flags&1048576)!==0&&lm(o,Rc,o.index);switch(o.lanes=0,o.tag){case 2:var d=o.type;Wc(r,o),r=o.pendingProps;var x=Qs(o,Rn.current);ia(o,a),x=Xd(null,o,d,r,x,a);var k=qd();return o.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,qn(d)?(k=!0,Ec(o)):k=!1,o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,Wd(o),x.updater=Gc,o.stateNode=x,x._reactInternals=o,nf(o,d,r,a),o=af(null,o,d,!0,k,a)):(o.tag=0,Wt&&k&&Ad(o),Dn(null,o,x,a),o=o.child),o;case 16:d=o.elementType;e:{switch(Wc(r,o),r=o.pendingProps,x=d._init,d=x(d._payload),o.type=d,x=o.tag=cv(d),r=Xr(d,r),x){case 0:o=sf(null,o,d,r,a);break e;case 1:o=tg(null,o,d,r,a);break e;case 11:o=qm(null,o,d,r,a);break e;case 14:o=Zm(null,o,d,Xr(d.type,r),a);break e}throw Error(n(306,d,""))}return o;case 0:return d=o.type,x=o.pendingProps,x=o.elementType===d?x:Xr(d,x),sf(r,o,d,x,a);case 1:return d=o.type,x=o.pendingProps,x=o.elementType===d?x:Xr(d,x),tg(r,o,d,x,a);case 3:e:{if(ng(o),r===null)throw Error(n(387));
vendor: 8,634 bytes, line 40
40d=o.pendingProps,k=o.memoizedState,x=k.element,xm(r,o),Oc(o,d,null,a);var N=o.memoizedState;if(d=N.element,k.isDehydrated)if(k={element:d,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},o.updateQueue.baseState=k,o.memoizedState=k,o.flags&256){x=aa(Error(n(423)),o),o=rg(r,o,d,a,x);break e}else if(d!==x){x=aa(Error(n(424)),o),o=rg(r,o,d,a,x);break e}else for(fr=gi(o.stateNode.containerInfo.firstChild),dr=o,Wt=!0,Yr=null,a=mm(o,null,d,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(na(),d===x){o=Vo(r,o,a);break e}Dn(r,o,d,a)}o=o.child}return o;case 5:return km(o),r===null&&jd(o),d=o.type,x=o.pendingProps,k=r!==null?r.memoizedProps:null,N=x.children,Nd(d,x)?N=null:k!==null&&Nd(d,k)&&(o.flags|=32),eg(r,o),Dn(r,o,N,a),o.child;case 6:return r===null&&jd(o),null;case 13:return og(r,o,a);case 4:return Hd(o,o.stateNode.containerInfo),d=o.pendingProps,r===null?o.child=ra(o,null,d,a):Dn(r,o,d,a),o.child;case 11:return d=o.type,x=o.pendingProps,x=o.elementType===d?x:Xr(d,x),qm(r,o,d,x,a);case 7:return Dn(r,o,o.pendingProps,a),o.child;case 8:return Dn(r,o,o.pendingProps.children,a),o.child;case 12:return Dn(r,o,o.pendingProps.children,a),o.child;case 10:e:{if(d=o.type._context,x=o.pendingProps,k=o.memoizedProps,N=x.value,Dt(Ic,d._currentValue),d._currentValue=N,k!==null)if(ur(k.value,N)){if(k.children===x.children&&!Xn.current){o=Vo(r,o,a);break e}}else for(k=o.child,k!==null&&(k.return=o);k!==null;){var M=k.dependencies;if(M!==null){N=k.child;for(var G=M.firstContext;G!==null;){if(G.context===d){if(k.tag===1){G=Uo(-1,a&-a),G.tag=2;var q=k.updateQueue;if(q!==null){q=q.shared;var ge=q.pending;ge===null?G.next=G:(G.next=ge.next,ge.next=G),q.pending=G}}k.lanes|=a,G=k.alternate,G!==null&&(G.lanes|=a),Gd(k.return,a,o),M.lanes|=a;break}G=G.next}}else if(k.tag===10)N=k.type===o.type?null:k.child;else if(k.tag===18){if(N=k.return,N===null)throw Error(n(341));N.lanes|=a,M=N.alternate,M!==null&&(M.lanes|=a),Gd(N,a,o),N=k.sibling}else N=k.child;if(N!==null)N.return=k;else for(N=k;N!==null;){if(N===o){N=null;break}if(k=N.sibling,k!==null){k.return=N.return,N=k;break}N=N.return}k=N}Dn(r,o,x.children,a),o=o.child}return o;case 9:return x=o.type,d=o.pendingProps.children,ia(o,a),x=Ar(x),d=d(x),o.flags|=1,Dn(r,o,d,a),o.child;case 14:return d=o.type,x=Xr(d,o.pendingProps),x=Xr(d.type,x),Zm(r,o,d,x,a);case 15:return Jm(r,o,o.type,o.pendingProps,a);case 17:return d=o.type,x=o.pendingProps,x=o.elementType===d?x:Xr(d,x),Wc(r,o),o.tag=1,qn(d)?(r=!0,Ec(o)):r=!1,ia(o,a),Hm(o,d,x),nf(o,d,x,a),af(null,o,d,!0,r,a);case 19:return sg(r,o,a);case 22:return Qm(r,o,a)}throw Error(n(156,o.tag))};function Ig(r,o){return zr(r,o)}function lv(r,o,a,d){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(r,o,a,d){return new lv(r,o,a,d)}function Rf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function cv(r){if(typeof r=="function")return Rf(r)?1:0;if(r!=null){if(r=r.$$typeof,r===Y)return 11;if(r===ie)return 14}return 2}function Ri(r,o){var a=r.alternate;return a===null?(a=jr(r.tag,o,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=o,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,o=r.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function Qc(r,o,a,d,x,k){var N=2;if(d=r,typeof r=="function")Rf(r)&&(N=1);else if(typeof r=="string")N=5;else e:switch(r){case L:return ys(a.children,x,k,o);case I:N=8,x|=8;break;case H:return r=jr(12,a,o,x|2),r.elementType=H,r.lanes=k,r;case ce:return r=jr(13,a,o,x),r.elementType=ce,r.lanes=k,r;case ae:return r=jr(19,a,o,x),r.elementType=ae,r.lanes=k,r;case pe:return eu(a,x,k,o);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case F:N=10;break e;case $:N=9;break e;case Y:N=11;break e;case ie:N=14;break e;case re:N=16,d=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return o=jr(N,a,o,x),o.elementType=r,o.type=d,o.lanes=k,o}function ys(r,o,a,d){return r=jr(7,r,d,o),r.lanes=a,r}function eu(r,o,a,d){return r=jr(22,r,d,o),r.elementType=pe,r.lanes=a,r.stateNode={isHidden:!1},r}function _f(r,o,a){return r=jr(6,r,null,o),r.lanes=a,r}function Tf(r,o,a){return o=jr(4,r.children!==null?r.children:[],r.key,o),o.lanes=a,o.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},o}function uv(r,o,a,d,x){this.tag=o,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=li(0),this.expirationTimes=li(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=li(0),this.identifierPrefix=d,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function If(r,o,a,d,x,k,N,M,G){return r=new uv(r,o,a,M,G),o===1?(o=1,k===!0&&(o|=8)):o=0,k=jr(3,null,null,o),r.current=k,k.stateNode=r,k.memoizedState={element:d,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wd(k),r}function dv(r,o,a){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:d==null?null:""+d,children:r,containerInfo:o,implementation:a}}function Lg(r){if(!r)return yi;r=r._reactInternals;e:{if(vr(r)!==r||r.tag!==1)throw Error(n(170));var o=r;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(qn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(qn(a))return im(r,a,o)}return o}function Ag(r,o,a,d,x,k,N,M,G){return r=If(a,d,!0,r,x,k,N,M,G),r.context=Lg(null),a=r.current,d=Fn(),x=Ci(a),k=Uo(d,x),k.callback=o??null,bi(a,k,x),r.current.lanes=x,fo(r,x,d),Qn(r,d),r}function tu(r,o,a,d){var x=o.current,k=Fn(),N=Ci(x);return a=Lg(a),o.context===null?o.context=a:o.pendingContext=a,o=Uo(k,N),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=bi(x,o,N),r!==null&&(Jr(r,x,N,k),Ac(r,x,N)),N}function nu(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Og(r,o){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<o?a:o}}function Lf(r,o){Og(r,o),(r=r.alternate)&&Og(r,o)}function fv(){return null}var Pg=typeof reportError=="function"?reportError:function(r){console.error(r)};function Af(r){this._internalRoot=r}ru.prototype.render=Af.prototype.render=function(r){var o=this._internalRoot;if(o===null)throw Error(n(409));tu(r,o,null,null)},ru.prototype.unmount=Af.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var o=r.containerInfo;ms(function(){tu(null,r,null,null)}),o[Go]=null}};function ru(r){this._internalRoot=r}ru.prototype.unstable_scheduleHydration=function(r){if(r){var o=Fa();r={blockedOn:null,target:r,priority:o};for(var a=0;a<po.length&&o!==0&&o<po[a].priority;a++);po.splice(a,0,r),a===0&&Ga(r)}};function Of(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function ou(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function jg(){}function pv(r,o,a,d,x){if(x){if(typeof d=="function"){var k=d;d=function(){var q=nu(N);k.call(q)}}var N=Ag(o,d,r,0,null,!1,!1,"",jg);return r._reactRootContainer=N,r[Go]=N.current,el(r.nodeType===8?r.parentNode:r),ms(),N}for(;x=r.lastChild;)r.removeChild(x);if(typeof d=="function"){var M=d;d=function(){var q=nu(G);M.call(q)}}var G=If(r,0,!1,null,null,!1,!1,"",jg);return r._reactRootContainer=G,r[Go]=G.current,el(r.nodeType===8?r.parentNode:r),ms(function(){tu(o,G,a,d)}),G}function iu(r,o,a,d,x){var k=a._reactRootContainer;if(k){var N=k;if(typeof x=="function"){var M=x;x=function(){var G=nu(N);M.call(G)}}tu(o,N,r,x)}else N=pv(a,o,r,x,d);return nu(N)}Os=function(r){switch(r.tag){case 3:var o=r.stateNode;if(o.current.memoizedState.isDehydrated){var a=ai(o.pendingLanes);
vendor: 4,728 bytes, lines 40-45
40a!==0&&(Bi(o,a|1),Qn(o,ee()),(wt&6)===0&&(ua=ee()+500,wi()))}break;case 13:ms(function(){var d=$o(r,1);if(d!==null){var x=Fn();Jr(d,r,1,x)}}),Lf(r,1)}},Ps=function(r){if(r.tag===13){var o=$o(r,134217728);if(o!==null){var a=Fn();Jr(o,r,134217728,a)}Lf(r,134217728)}},Da=function(r){if(r.tag===13){var o=Ci(r),a=$o(r,o);if(a!==null){var d=Fn();Jr(a,r,o,d)}Lf(r,o)}},Fa=function(){return pt},Hi=function(r,o){var a=pt;try{return pt=r,o()}finally{pt=a}},kr=function(r,o,a){switch(o){case"input":if(fn(r,a),o=a.name,a.type==="radio"&&o!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var d=a[o];if(d!==r&&d.form===r.form){var x=vc(d);if(!x)throw Error(n(90));it(d),fn(d,x)}}}break;case"textarea":gt(r,a);break;case"select":o=a.value,o!=null&&We(r,!!a.multiple,o,!1)}},$t=Ef,nn=ms;var hv={usingClientEntryPoint:!1,Events:[rl,Zs,vc,qe,jt,Ef]},xl={findFiberByHostInstance:as,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mv={bundleType:xl.bundleType,version:xl.version,rendererPackageName:xl.rendererPackageName,rendererConfig:xl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=Io(r),r===null?null:r.stateNode},findFiberByHostInstance:xl.findFiberByHostInstance||fv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{Tt=su.inject(mv),He=su}catch{}}return er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hv,er.createPortal=function(r,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Of(o))throw Error(n(200));return dv(r,o,null,a)},er.createRoot=function(r,o){if(!Of(r))throw Error(n(299));var a=!1,d="",x=Pg;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(x=o.onRecoverableError)),o=If(r,1,!1,null,null,a,!1,d,x),r[Go]=o.current,el(r.nodeType===8?r.parentNode:r),new Af(o)},er.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var o=r._reactInternals;if(o===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=Io(o),r=r===null?null:r.stateNode,r},er.flushSync=function(r){return ms(r)},er.hydrate=function(r,o,a){if(!ou(o))throw Error(n(200));return iu(null,r,o,!0,a)},er.hydrateRoot=function(r,o,a){if(!Of(r))throw Error(n(405));var d=a!=null&&a.hydratedSources||null,x=!1,k="",N=Pg;if(a!=null&&(a.unstable_strictMode===!0&&(x=!0),a.identifierPrefix!==void 0&&(k=a.identifierPrefix),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),o=Ag(o,null,r,1,a??null,x,!1,k,N),r[Go]=o.current,el(r),d)for(r=0;r<d.length;r++)a=d[r],x=a._getVersion,x=x(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,x]:o.mutableSourceEagerHydrationData.push(a,x);return new ru(o)},er.render=function(r,o,a){if(!ou(o))throw Error(n(200));return iu(null,r,o,!1,a)},er.unmountComponentAtNode=function(r){if(!ou(r))throw Error(n(40));return r._reactRootContainer?(ms(function(){iu(null,null,r,!1,function(){r._reactRootContainer=null,r[Go]=null})}),!0):!1},er.unstable_batchedUpdates=Ef,er.unstable_renderSubtreeIntoContainer=function(r,o,a,d){if(!ou(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return iu(r,o,a,!1,d)},er.version="18.3.1-next-f1338f8080-20240426",er}var Hg;function e0(){if(Hg)return Mf.exports;Hg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mf.exports=Sv(),Mf.exports}var $g;function Ev(){if($g)return au;$g=1;var e=e0();return au.createRoot=e.createRoot,au.hydrateRoot=e.hydrateRoot,au}var Cv=Ev(),w=oh();const ve=Zu(w),t0=xv({__proto__:null,default:ve},[w]);/**
41 * @license lucide-react v0.487.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const Nv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),Ug=e=>{const t=Rv(e);return t.charAt(0).toUpperCase()+t.slice(1)},n0=(...e)=>
vendor: 6,041 bytes, lines 45-125
45e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.487.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var _v={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.487.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Tv=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:l,iconNode:c,...u},p)=>w.createElement("svg",{ref:p,..._v,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:n0("lucide",s),...u},[...c.map(([h,g])=>w.createElement(h,g)),...Array.isArray(l)?l:[l]]));/**
56 * @license lucide-react v0.487.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const or=(e,t)=>{const n=w.forwardRef(({className:i,...s},l)=>w.createElement(Tv,{ref:l,iconNode:t,className:n0(`lucide-${Nv(Ug(e))}`,`lucide-${e}`,i),...s}));return n.displayName=Ug(e),n};/**
61 * @license lucide-react v0.487.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Iv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vg=or("check",Iv);/**
66 * @license lucide-react v0.487.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Lv=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Av=or("coffee",Lv);/**
71 * @license lucide-react v0.487.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Ov=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Pv=or("copy",Ov);/**
76 * @license lucide-react v0.487.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const jv=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Mv=or("ellipsis",jv);/**
81 * @license lucide-react v0.487.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Dv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Fv=or("globe",Dv);/**
86 * @license lucide-react v0.487.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const zv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Gv=or("info",zv);/**
91 * @license lucide-react v0.487.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const Bv=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Tp=or("key-round",Bv);/**
96 * @license lucide-react v0.487.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const Wv=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],r0=or("mail",Wv);/**
101 * @license lucide-react v0.487.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Hv=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Kg=or("message-square",Hv);/**
106 * @license lucide-react v0.487.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const $v=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],zf=or("rotate-ccw",$v);/**
111 * @license lucide-react v0.487.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const Uv=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Vv=or("send",Uv);/**
116 * @license lucide-react v0.487.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const Kv=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Yv=or("share-2",Kv);/**
121 * @license lucide-react v0.487.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Xv=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 6,115 bytes, lines 125-130
125y:"oel41y"}]],Yg=or("shield",Xv);/**
126 * @license lucide-react v0.487.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const qv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rl=or("x",qv);var ih=e0();const o0=Zu(ih);function Zv(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Jv=e=>{switch(e){case"success":return t1;case"info":return r1;case"warning":return n1;case"error":return o1;default:return null}},Qv=Array(12).fill(0),e1=({visible:e,className:t})=>ve.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},ve.createElement("div",{className:"sonner-spinner"},Qv.map((n,i)=>ve.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),t1=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),n1=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ve.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),r1=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),o1=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ve.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),i1=ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ve.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ve.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),s1=()=>{const[e,t]=ve.useState(document.hidden);return ve.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ip=1;class a1{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:i,...s}=t,l=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ip++,c=this.toasts.find(p=>p.id===l),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),c?this.toasts=this.toasts.map(p=>p.id===l?(this.publish({...p,...t,id:l,title:i}),{...p,...t,id:l,dismissible:u,title:i}):p):this.addToast({title:i,...s,dismissible:u,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(i=>i({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let i;n.loading!==void 0&&(i=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const s=Promise.resolve(t instanceof Function?t():t);let l=i!==void 0,c;const u=s.then(async h=>{if(c=["resolve",h],ve.isValidElement(h))l=!1,this.create({id:i,type:"default",message:h});else if(c1(h)&&!h.ok){l=!1;const f=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,b=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,v=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:i,type:"error",description:b,...v})}else if(h instanceof Error){l=!1;const f=typeof n.error=="function"?await n.error(h):n.error,b=typeof n.description=="function"?await n.description(h):n.description,v=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:i,type:"error",description:b,...v})}else if(n.success!==void 0){l=!1;const f=typeof n.success=="function"?await n.success(h):n.success,b=typeof n.description=="function"?await n.description(h):n.description,v=typeof f=="object"&&!ve.isValidElement(f)?f:{message:f};this.create({id:i,type:"success",description:b,...v})}}).catch(async h=>{if(c=["reject",h],n.error!==void 0){l=!1;const g=typeof n.error=="function"?await n.error(h):n.error,f=typeof n.description=="function"?await n.description(h):n.description,y=typeof g=="object"&&!ve.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:f,...y})}}).finally(()=>{l&&(this.dismiss(i),i=void 0),n.finally==null||n.finally.call(n)}),p=()=>new Promise((h,g)=>u.then(()=>c[0]==="reject"?g(c[1]):h(c[1])).catch(g));
vendor: 771 bytes, line 130
130return typeof i!="string"&&typeof i!="number"?{unwrap:p}:Object.assign(i,{unwrap:p})},this.custom=(t,n)=>{const i=n?.id||Ip++;return this.create({jsx:t(i),id:i,...n}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nr=new a1,l1=(e,t)=>{const n=t?.id||Ip++;return nr.addToast({title:e,...t,id:n}),n},c1=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",u1=l1,d1=()=>nr.toasts,f1=()=>nr.getActiveToasts(),B=Object.assign(u1,{success:nr.success,info:nr.info,warning:nr.warning,error:nr.error,custom:nr.custom,message:nr.message,promise:nr.promise,dismiss:nr.dismiss,loading:nr.loading},{getHistory:d1,getToasts:f1});Zv
vendor: 14,874 bytes, line 130
130("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function l
vendor: 537 bytes, line 130
130u(e){return e.label!==void 0}const p1=3,h1="24px",m1="16px",Xg=4e3,g1=356,x1=14,y1=45,w1=200;function So(...e){return e.filter(Boolean).join(" ")}function k1(e){const[t,n]=e.split("-"),i=[];return t&&i.push(t),n&&i.push(n),i}const b1=e=>{var t,n,i,s,l,c,u,p,h;const{invert:g,toast:f,unstyled:b,interacting:y,setHeights:v,visibleToasts:S,heights:T,index:R,toasts:P,expanded:j,removeToast:D,defaultRichColors:E,closeButton:C,style:L,cancelButtonStyle:I,actionButtonStyle:H,className:F="",descriptionClassName:$="",duration:Y,position:ce,ga
vendor: 7,109 bytes, line 130
130p:ae,expandByDefault:ie,classNames:re,icons:pe,closeButtonAriaLabel:X="Close toast"}=e,[J,_]=ve.useState(null),[z,te]=ve.useState(null),[A,Ee]=ve.useState(!1),[de,we]=ve.useState(!1),[Te,Se]=ve.useState(!1),[Ae,Qe]=ve.useState(!1),[vt,it]=ve.useState(!1),[Ye,Rt]=ve.useState(0),[dn,Un]=ve.useState(0),fn=ve.useRef(f.duration||Y||Xg),Pn=ve.useRef(null),st=ve.useRef(null),Ce=R===0,We=R+1<=S,Xe=f.type,dt=f.dismissible!==!1,gt=f.className||"",Zt=f.descriptionClassName||"",Z=ve.useMemo(()=>T.findIndex(qe=>qe.toastId===f.id)||0,[T,f.id]),Q=ve.useMemo(()=>{var qe;return(qe=f.closeButton)!=null?qe:C},[f.closeButton,C]),Ie=ve.useMemo(()=>f.duration||Y||Xg,[f.duration,Y]),Pe=ve.useRef(0),ue=ve.useRef(0),ft=ve.useRef(0),ct=ve.useRef(null),[bt,Jt]=ce.split("-"),en=ve.useMemo(()=>T.reduce((qe,jt,$t)=>$t>=Z?qe:qe+jt.height,0),[T,Z]),at=s1(),tn=f.invert||g,Pt=Xe==="loading";ue.current=ve.useMemo(()=>Z*ae+en,[Z,en]),ve.useEffect(()=>{fn.current=Ie},[Ie]),ve.useEffect(()=>{Ee(!0)},[]),ve.useEffect(()=>{const qe=st.current;if(qe){const jt=qe.getBoundingClientRect().height;return Un(jt),v($t=>[{toastId:f.id,height:jt,position:f.position},...$t]),()=>v($t=>$t.filter(nn=>nn.toastId!==f.id))}},[v,f.id]),ve.useLayoutEffect(()=>{if(!A)return;const qe=st.current,jt=qe.style.height;qe.style.height="auto";const $t=qe.getBoundingClientRect().height;qe.style.height=jt,Un($t),v(nn=>nn.find(Mt=>Mt.toastId===f.id)?nn.map(Mt=>Mt.toastId===f.id?{...Mt,height:$t}:Mt):[{toastId:f.id,height:$t,position:f.position},...nn])},[A,f.title,f.description,v,f.id,f.jsx,f.action,f.cancel]);const kn=ve.useCallback(()=>{we(!0),Rt(ue.current),v(qe=>qe.filter(jt=>jt.toastId!==f.id)),setTimeout(()=>{D(f)},w1)},[f,D,v,ue]);ve.useEffect(()=>{if(f.promise&&Xe==="loading"||f.duration===1/0||f.type==="loading")return;let qe;return j||y||at?(()=>{if(ft.current<Pe.current){const nn=new Date().getTime()-Pe.current;fn.current=fn.current-nn}ft.current=new Date().getTime()})():(()=>{fn.current!==1/0&&(Pe.current=new Date().getTime(),qe=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),kn()},fn.current))})(),()=>clearTimeout(qe)},[j,y,f,Xe,at,kn]),ve.useEffect(()=>{f.delete&&(kn(),f.onDismiss==null||f.onDismiss.call(f,f))},[kn,f.delete]);function kr(){var qe;if(pe?.loading){var jt;return ve.createElement("div",{className:So(re?.loader,f==null||(jt=f.classNames)==null?void 0:jt.loader,"sonner-loader"),"data-visible":Xe==="loading"},pe.loading)}return ve.createElement(e1,{className:So(re?.loader,f==null||(qe=f.classNames)==null?void 0:qe.loader),visible:Xe==="loading"})}const jn=f.icon||pe?.[Xe]||Jv(Xe);var pn,ao;return ve.createElement("li",{tabIndex:0,ref:st,className:So(F,gt,re?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,re?.default,re?.[Xe],f==null||(n=f.classNames)==null?void 0:n[Xe]),"data-sonner-toast":"","data-rich-colors":(pn=f.richColors)!=null?pn:E,"data-styled":!(f.jsx||f.unstyled||b),"data-mounted":A,"data-promise":!!f.promise,"data-swiped":vt,"data-removed":de,"data-visible":We,"data-y-position":bt,"data-x-position":Jt,"data-index":R,"data-front":Ce,"data-swiping":Te,"data-dismissible":dt,"data-type":Xe,"data-invert":tn,"data-swipe-out":Ae,"data-swipe-direction":z,"data-expanded":!!(j||ie&&A),"data-testid":f.testId,style:{"--index":R,"--toasts-before":R,"--z-index":P.length-R,"--offset":`${de?Ye:ue.current}px`,"--initial-height":ie?"auto":`${dn}px`,...L,...f.style},onDragEnd:()=>{Se(!1),_(null),ct.current=null},onPointerDown:qe=>{qe.button!==2&&(Pt||!dt||(Pn.current=new Date,Rt(ue.current),qe.target.setPointerCapture(qe.pointerId),qe.target.tagName!=="BUTTON"&&(Se(!0),ct.current={x:qe.clientX,y:qe.clientY})))},onPointerUp:()=>{var qe,jt,$t;if(Ae||!dt)return;ct.current=null;const nn=Number(((qe=st.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),br=Number(((jt=st.current)==null?void 0:jt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Mt=new Date().getTime()-(($t=Pn.current)==null?void 0:$t.getTime()),Kt=J==="x"?nn:br,Vn=Math.abs(Kt)/Mt;if(Math.abs(Kt)>=y1||Vn>.11){Rt(ue.current),f.onDismiss==null||f.onDismiss.call(f,f),te(J==="x"?nn>0?"right":"left":br>0?"down":"up"),kn(),Qe(!0);return}else{var Yt,sn;(Yt=st.current)==null||Yt.style.setProperty("--swipe-amount-x","0px"),(sn=st.current)==null||sn.style.setProperty("--swipe-amount-y","0px")}it(!1),Se(!1),_(null)},onPointerMove:qe=>{var jt,$t,nn;if(!ct.current||!dt||((jt=window.getSelection())==null?void 0:jt.toString().length)>0)return;const Mt=qe.clientY-ct.current.y,Kt=qe.clientX-ct.current.x;var Vn;const Yt=(Vn=e.swipeDirections)!=null?Vn:k1(ce);!J&&(Math.abs(Kt)>1||Math.abs(Mt)>1)&&_(Math.abs(Kt)>Math.abs(Mt)?"x":"y");let sn={x:0,y:0};const ar=hn=>1/(1.5+Math.abs(hn)/20);if(J==="y"){if(Yt.includes("top")||Yt.includes("bottom"))if(Yt.includes("top")&&Mt<0||Yt.includes("bottom")&&Mt>0)sn.y=Mt;else{const hn=Mt*ar(Mt);sn.y=Math.abs(hn)<Math.abs(Mt)?hn:Mt}}else if(J==="x"&&(Yt.includes("left")||Yt.includes("right")))if(Yt.includes("left")&&Kt<0||Yt.includes("right")&&Kt>0)sn.x=Kt;else{const hn=Kt*ar(Kt);sn.x=Math.abs(hn)<Math.abs(Kt)?hn:Kt}(Math.abs(sn.x)>0||Math.abs(sn.y)>0)&&it(!0),($t=st.current)==null||$t.style.setProperty("--swipe-amount-x",`${sn.x}px`),(nn=st.current)==null||nn.style.setProperty("--swipe-amount-y",`${sn.y}px`)}},Q&&!f.jsx&&Xe!=="loading"?ve.createElement("button",{"aria-label":X,"data-disabled":Pt,"data-close-button":!0,onClick:Pt||!dt?()=>{}:()=>{kn(),f.onDismiss==null||f.onDismiss.call(f,f)},className:So(re?.closeButton,f==null||(i=f.classNames)==null?void 0:i.closeButton)},(ao=pe?.close)!=null?ao:i1):null,(Xe||f.icon||f.promise)&&f.icon!==null&&(pe?.[Xe]!==null||f.icon)?ve.createElement("div",{"data-icon":"",className:So(re?.icon,f==null||(s=f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||kr():null,f.type!=="loading"?jn:null):null,ve.createElement("div",{"data-content":"",className:So(re?.content,f==null||(l=f.classNames)==null?void 0:l.content)},ve.createElement("div",{"data-title":"",className:So(re?.title,f==null||(c=f.classNames)==null?void 0:c.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?ve.createElement("div",{"data-description":"",className:So($,Zt,re?.description,f==null||(u=f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),ve.isValidElement(f.cancel)?f.cancel:f.cancel&&lu(f.cancel)?ve.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||I,onClick:qe=>{lu(f.cancel)&&dt&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,qe),kn())},className:So(re?.cancelButton,f==null||(p=f.classNames)==null?void 0:p.cancelButton)},f.cancel.label):null,ve.isValidElement(f.action)?f.action:f.action&&lu(f.action)?ve.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||H,onClick:qe=>{lu(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,qe),!qe.defaultPrevented&&kn())},className:So(re?.actionButton,f==null||(h=f.classNames)==null?void 0:h.actionButton)},f.action.label):null)};
vendor: 5,141 bytes, line 130
130function qg(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function v1(e,t){const n={};return[e,t].forEach((i,s)=>{const l=s===1,c=l?"--mobile-offset":"--offset",u=l?m1:h1;function p(h){["top","right","bottom","left"].forEach(g=>{n[`${c}-${g}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?p(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?n[`${c}-${h}`]=u:n[`${c}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):p(u)}),n}const S1=ve.forwardRef(function(t,n){const{id:i,invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:u,closeButton:p,className:h,offset:g,mobileOffset:f,theme:b="light",richColors:y,duration:v,style:S,visibleToasts:T=p1,toastOptions:R,dir:P=qg(),gap:j=x1,icons:D,containerAriaLabel:E="Notifications"}=t,[C,L]=ve.useState([]),I=ve.useMemo(()=>i?C.filter(A=>A.toasterId===i):C.filter(A=>!A.toasterId),[C,i]),H=ve.useMemo(()=>Array.from(new Set([l].concat(I.filter(A=>A.position).map(A=>A.position)))),[I,l]),[F,$]=ve.useState([]),[Y,ce]=ve.useState(!1),[ae,ie]=ve.useState(!1),[re,pe]=ve.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=ve.useRef(null),J=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=ve.useRef(null),z=ve.useRef(!1),te=ve.useCallback(A=>{L(Ee=>{var de;return(de=Ee.find(we=>we.id===A.id))!=null&&de.delete||nr.dismiss(A.id),Ee.filter(({id:we})=>we!==A.id)})},[]);return ve.useEffect(()=>nr.subscribe(A=>{if(A.dismiss){requestAnimationFrame(()=>{L(Ee=>Ee.map(de=>de.id===A.id?{...de,delete:!0}:de))});return}setTimeout(()=>{o0.flushSync(()=>{L(Ee=>{const de=Ee.findIndex(we=>we.id===A.id);return de!==-1?[...Ee.slice(0,de),{...Ee[de],...A},...Ee.slice(de+1)]:[A,...Ee]})})})}),[C]),ve.useEffect(()=>{if(b!=="system"){pe(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?pe("dark"):pe("light")),typeof window>"u")return;const A=window.matchMedia("(prefers-color-scheme: dark)");try{A.addEventListener("change",({matches:Ee})=>{pe(Ee?"dark":"light")})}catch{A.addListener(({matches:de})=>{try{pe(de?"dark":"light")}catch(we){console.error(we)}})}},[b]),ve.useEffect(()=>{C.length<=1&&ce(!1)},[C]),ve.useEffect(()=>{const A=Ee=>{var de;if(c.every(Se=>Ee[Se]||Ee.code===Se)){var Te;ce(!0),(Te=X.current)==null||Te.focus()}Ee.code==="Escape"&&(document.activeElement===X.current||(de=X.current)!=null&&de.contains(document.activeElement))&&ce(!1)};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[c]),ve.useEffect(()=>{if(X.current)return()=>{_.current&&(_.current.focus({preventScroll:!0}),_.current=null,z.current=!1)}},[X.current]),ve.createElement("section",{ref:n,"aria-label":`${E} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((A,Ee)=>{var de;const[we,Te]=A.split("-");return I.length?ve.createElement("ol",{key:A,dir:P==="auto"?qg():P,tabIndex:-1,ref:X,className:h,"data-sonner-toaster":!0,"data-sonner-theme":re,"data-y-position":we,"data-x-position":Te,style:{"--front-toast-height":`${((de=F[0])==null?void 0:de.height)||0}px`,"--width":`${g1}px`,"--gap":`${j}px`,...S,...v1(g,f)},onBlur:Se=>{z.current&&!Se.currentTarget.contains(Se.relatedTarget)&&(z.current=!1,_.current&&(_.current.focus({preventScroll:!0}),_.current=null))},onFocus:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||z.current||(z.current=!0,_.current=Se.relatedTarget)},onMouseEnter:()=>ce(!0),onMouseMove:()=>ce(!0),onMouseLeave:()=>{ae||ce(!1)},onDragEnd:()=>ce(!1),onPointerDown:Se=>{Se.target instanceof HTMLElement&&Se.target.dataset.dismissible==="false"||ie(!0)},onPointerUp:()=>ie(!1)},I.filter(Se=>!Se.position&&Ee===0||Se.position===A).map((Se,Ae)=>{var Qe,vt;return ve.createElement(b1,{key:Se.id,icons:D,index:Ae,toast:Se,defaultRichColors:y,duration:(Qe=R?.duration)!=null?Qe:v,className:R?.className,descriptionClassName:R?.descriptionClassName,invert:s,visibleToasts:T,closeButton:(vt=R?.closeButton)!=null?vt:p,interacting:ae,position:A,style:R?.style,unstyled:R?.unstyled,classNames:R?.classNames,cancelButtonStyle:R?.cancelButtonStyle,actionButtonStyle:R?.actionButtonStyle,closeButtonAriaLabel:R?.closeButtonAriaLabel,removeToast:te,toasts:I.filter(it=>it.position==Se.position),heights:F.filter(it=>it.position==Se.position),setHeights:$,expandByDefault:u,gap:j,expanded:Y,swipeDirections:t.swipeDirections})})):null}))});function E1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const C1=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N1=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,R1={};function Zg(e,t){return(R1.jsx?N1:C1).test(e)}const _1=/[ \t\n\f\r]/g;function T1(e){return typeof e=="object"?e.type==="text"?Jg(e.value):!1:Jg(e)}function Jg(e){return e.replace(_1,"")===""}
vendor: 5,364 bytes, line 130
130class Bl{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Bl.prototype.normal={};Bl.prototype.property={};Bl.prototype.space=void 0;function i0(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Bl(n,i,t)}function Lp(e){return e.toLowerCase()}class ir{constructor(t,n){this.attribute=n,this.property=t}}ir.prototype.attribute="";ir.prototype.booleanish=!1;ir.prototype.boolean=!1;ir.prototype.commaOrSpaceSeparated=!1;ir.prototype.commaSeparated=!1;ir.prototype.defined=!1;ir.prototype.mustUseProperty=!1;ir.prototype.number=!1;ir.prototype.overloadedBoolean=!1;ir.prototype.property="";ir.prototype.spaceSeparated=!1;ir.prototype.space=void 0;let I1=0;const et=Cs(),on=Cs(),Ap=Cs(),ke=Cs(),Ft=Cs(),Ea=Cs(),mr=Cs();function Cs(){return 2**++I1}const Op=Object.freeze(Object.defineProperty({__proto__:null,boolean:et,booleanish:on,commaOrSpaceSeparated:mr,commaSeparated:Ea,number:ke,overloadedBoolean:Ap,spaceSeparated:Ft},Symbol.toStringTag,{value:"Module"})),Gf=Object.keys(Op);class sh extends ir{constructor(t,n,i,s){let l=-1;if(super(t,n),Qg(this,"space",s),typeof i=="number")for(;++l<Gf.length;){const c=Gf[l];Qg(this,Gf[l],(i&Op[c])===Op[c])}}}sh.prototype.defined=!0;function Qg(e,t,n){n&&(e[t]=n)}function Ta(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const l=new sh(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[Lp(i)]=i,n[Lp(l.attribute)]=i}return new Bl(t,n,e.space)}const s0=Ta({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:ke,ariaColIndex:ke,ariaColSpan:ke,ariaControls:Ft,ariaCurrent:null,ariaDescribedBy:Ft,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Ft,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Ft,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ft,ariaLevel:ke,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Ft,ariaPlaceholder:null,ariaPosInSet:ke,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Ft,ariaRowCount:ke,ariaRowIndex:ke,ariaRowSpan:ke,ariaSelected:on,ariaSetSize:ke,ariaSort:null,ariaValueMax:ke,ariaValueMin:ke,ariaValueNow:ke,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function a0(e,t){return t in e?e[t]:t}function l0(e,t){return a0(e,t.toLowerCase())}const L1=Ta({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ea,acceptCharset:Ft,accessKey:Ft,action:null,allow:null,allowFullScreen:et,allowPaymentRequest:et,allowUserMedia:et,alt:null,as:null,async:et,autoCapitalize:null,autoComplete:Ft,autoFocus:et,autoPlay:et,blocking:Ft,capture:null,charSet:null,checked:et,cite:null,className:Ft,cols:ke,colSpan:null,content:null,contentEditable:on,controls:et,controlsList:Ft,coords:ke|Ea,crossOrigin:null,data:null,dateTime:null,decoding:null,default:et,defer:et,dir:null,dirName:null,disabled:et,download:Ap,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:et,formTarget:null,headers:Ft,height:ke,hidden:Ap,high:ke,href:null,hrefLang:null,htmlFor:Ft,httpEquiv:Ft,id:null,imageSizes:null,imageSrcSet:null,inert:et,inputMode:null,integrity:null,is:null,isMap:et,itemId:null,itemProp:Ft,itemRef:Ft,itemScope:et,itemType:Ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:et,low:ke,manifest:null,max:null,maxLength:ke,media:null,method:null,min:null,minLength:ke,multiple:et,muted:et,name:null,nonce:null,noModule:et,noValidate:et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:et,optimum:ke,pattern:null,ping:Ft,placeholder:null,playsInl
130ine:et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:et,referrerPolicy:null,rel:Ft,required:et,reversed:et,rows:ke,rowSpan:ke,sandbox:Ft,scope:null,scoped:et,seamless:et,selected:et,shadowRootClonable:et,shadowRootDelegatesFocus:et,shadowRootMode:null,shape:null,size:ke,sizes:null,slot:null,span:ke,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ke,step:null,style:null,tabIndex:ke,target:null,title:null,translate:null,type:null,typeMustMatch:et,useMap:null,value:on,width:ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ft,axis:null,background:null,bgColor:null,border:ke,borderColor:null,bottomMargin:ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:et,declare:et,event:null,face:null,frame:null,frameBorder:null,hSpace:ke,leftMargin:ke,link:null,longDesc:null,lowSrc:null,marginHeight:ke,marginWidth:ke,noResize:et,noHref:et,noShade:et,noWrap:et,object:null,profile:null,prompt:null,rev:null,rightMargin:ke,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:et,disableRemotePlayback:et,prefix:null,property:null,results:ke,security:null,unselectable:null},space:"html",transform:l0}),A1=Ta({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
130-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mr,accentHeight:ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ke,amplitude:ke,arabicForm:null,ascent:ke,attributeName:null,attributeType:null,azimuth:ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ke,by:null,calcMode:null,capHeight:ke,className:Ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ke,diffuseConstant:ke,direction:null,display:null,dur:null,divisor:ke,dominantBaseline:null,download:et,dx:null,dy:null,edgeMode:null,editable:null,elevation:ke,enableBackground:null,end:null,event:null,exponent:ke,externalResourcesRequired:null,fill:null,fillOpacity:ke,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ea,g2:Ea,glyphName:Ea,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ke,horizOriginX:ke,horizOriginY:ke,id:null,ideographic:ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ke,k:ke,k1:ke,k2:ke,k3:ke,k4:ke,kernelMatrix:mr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ke,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ke,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 5,563 bytes, lines 130-131
130Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ke,overlineThickness:ke,paintOrder:null,panose1:null,path:null,pathLength:ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ke,pointsAtY:ke,pointsAtZ:ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mr,rev:mr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mr,requiredFeatures:mr,requiredFonts:mr,requiredFormats:mr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ke,specularExponent:ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ke,strikethroughThickness:ke,string:null,stroke:null,strokeDashArray:mr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ke,strokeOpacity:ke,strokeWidth:null,style:null,surfaceScale:ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mr,tabIndex:ke,tableValues:null,target:null,targetX:ke,targetY:ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ke,underlineThickness:ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ke,values:null,vAlphabetic:ke,vMathematical:ke,vectorEffect:null,vHanging:ke,vIdeographic:ke,version:null,vertAdvY:ke,vertOriginX:ke,vertOriginY:ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:a0}),c0=Ta({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),u0=Ta({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:l0}),d0=Ta({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),O1={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},P1=/[A-Z]/g,ex=/-[a-z]/g,j1=/^data[-\w.:]+$/i;function M1(e,t){const n=Lp(t);let i=t,s=ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j1.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ex,F1);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ex.test(l)){let c=l.replace(P1,D1);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}s=sh}return new s(i,t)}function D1(e){return"-"+e.toLowerCase()}function F1(e){return e.charAt(1).toUpperCase()}const z1=i0([s0,L1,c0,u0,d0],"html"),ah=i0([s0,A1,c0,u0,d0],"svg");function G1(e){return e.join(" ").trim()}var fa={},Bf,tx;function B1(){if(tx)return Bf;tx=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,u=/^\s+|\s+$/g,p=`
131`,h="/",g="*",f="",b="comment",y="declaration";function v(T,R){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];R=R||{};var P=1,j=1;function D(ae){var ie=ae.match(t);ie&&(P+=ie.length);var re=ae.lastIndexOf(p);j=~re?ae.length-re:j+ae.length}function E(){var ae={line:P,column:j};return function(ie){return ie.position=new C(ae),H(),ie}}function C(ae){this.start=ae,this.end={line:P,column:j},this.source=R.source}C.prototype.content=T;function L(ae){var ie=new Error(R.source+":"+P+":"+j+": "+ae);if(ie.reason=ae,ie.filename=R.source,ie.line=P,ie.column=j,ie.source=T,!R.silent)throw ie}function I(ae){var ie=ae.exec(T);if(ie){var re=ie[0];return D(re),T=T.slice(re.length),ie}}function H(){I(n)}function F(ae){var ie;for(ae=ae||[];ie=$();)ie!==!1&&ae.push(ie);return ae}function $(){var ae=E();if(!(h!=T.charAt(0)||g!=T.charAt(1))){for(var ie=2;f!=T.charAt(ie)&&(g!=T.charAt(ie)||h!=T.charAt(ie+1));)++ie;if(ie+=2,f===T.charAt(ie-1))return L("End of comment missing");var re=T.slice(2,ie-2);return j+=2,D(re),T=T.slice(ie),j+=2,ae({type:b,comment:re})}}function Y(){var ae=E(),ie=I(i);if(ie){if($(),!I(s))return L("property missing ':'");var re=I(l),pe=ae({type:y,property:S(ie[0].replace(e,f)),value:re?S(re[0].replace(e,f)):f});return I(c),pe}}function ce(){var ae=[];F(ae);for(var ie;ie=Y();)ie!==!1&&(ae.push(ie),F(ae));return ae}return H(),ce()}function S(T){return T?T.replace(u,f):f}return Bf=v,Bf}var nx;function W1(){if(nx)return fa;nx=1;var e=fa&&fa.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=n;const t=e(B1());function n(i,s){let l=null;
vendor: 3,608 bytes, line 131
131if(!i||typeof i!="string")return l;const c=(0,t.default)(i),u=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:g}=p;u?s(h,g,p):g&&(l=l||{},l[h]=g)}),l}return fa}var wl={},rx;function H1(){if(rx)return wl;rx=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},c=function(h,g){return g.toUpperCase()},u=function(h,g){return"".concat(g,"-")},p=function(h,g){return g===void 0&&(g={}),l(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(s,u):h=h.replace(i,u),h.replace(t,c))};return wl.camelCase=p,wl}var kl,ox;function $1(){if(ox)return kl;ox=1;var e=kl&&kl.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(W1()),n=H1();function i(s,l){var c={};return!s||typeof s!="string"||(0,t.default)(s,function(u,p){u&&p&&(c[(0,n.camelCase)(u,l)]=p)}),c}return i.default=i,kl=i,kl}var U1=$1();const V1=Zu(U1),f0=p0("end"),lh=p0("start");function p0(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function K1(e){const t=lh(e),n=f0(e);if(t&&n)return{start:t,end:n}}function _l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ix(e.position):"start"in e||"end"in e?ix(e):"line"in e||"column"in e?Pp(e):""}function Pp(e){return sx(e&&e.line)+":"+sx(e&&e.column)}function ix(e){return Pp(e&&e.start)+"-"+Pp(e&&e.end)}function sx(e){return e&&typeof e=="number"?e:1}class On extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",l={},c=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?s=t:!l.cause&&t&&(c=!0,s=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?l.ruleId=i:(l.source=i.slice(0,p),l.ruleId=i.slice(p+1))}if(!l.place&&l.ancestors&&l.ancestors){const p=l.ancestors[l.ancestors.length-1];p&&(l.place=p.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=_l(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=c&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}On.prototype.file="";On.prototype.name="";On.prototype.reason="";On.prototype.message="";On.prototype.stack="";On.prototype.column=void 0;On.prototype.line=void 0;On.prototype.ancestors=void 0;On.prototype.cause=void 0;On.prototype.fatal=void 0;On.prototype.place=void 0;On.prototype.ruleId=void 0;On.prototype.source=void 0;const ch={}.hasOwnProperty,Y1=new Map,X1=/[A-Z]/g,q1=new Set(["table","tbody","thead","tfoot","tr"]),Z1=new Set(["td","th"]),h0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function J1(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=sS(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,016 bytes, line 131
131if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=iS(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ah:z1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=m0(s,e,void 0);return l&&typeof l!="string"?l:s.create(e,s.Fragment,{children:l||void 0},void 0)}function m0(e,t,n){if(t.type==="element")return Q1(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return eS(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nS(e,t,n);if(t.type==="mdxjsEsm")return tS(e,t);if(t.type==="root")return rS(e,t,n);if(t.type==="text")return oS(e,t)}function Q1(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=ah,e.schema=s),e.ancestors.push(t);const l=x0(e,t.tagName,!1),c=aS(e,t);let u=dh(e,t);return q1.has(t.tagName)&&(u=u.filter(function(p){return typeof p=="string"?!T1(p):!0})),g0(e,c,l,t),uh(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function eS(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Al(e,t.position)}function tS(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Al(e,t.position)}function nS(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=ah,e.schema=s),e.ancestors.push(t);const l=t.name===null?e.Fragment:x0(e,t.name,!0),c=lS(e,t),u=dh(e,t);return g0(e,c,l,t),uh(c,u),e.ancestors.pop(),e.schema=i,e.create(t,l,c,n)}function rS(e,t,n){const i={};return uh(i,dh(e,t)),e.create(t,e.Fragment,i,n)}function oS(e,t){return t.value}function g0(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function uh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function iS(e,t,n){return i;function i(s,l,c,u){const h=Array.isArray(c.children)?n:t;return u?h(l,c,u):h(l,c)}}function sS(e,t){return n;function n(i,s,l,c){const u=Array.isArray(l.children),p=lh(i);return t(s,l,c,u,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function aS(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&ch.call(t.properties,s)){const l=cS(e,s,t.properties[s]);if(l){const[c,u]=l;e.tableCellAlignToStyle&&c==="align"&&typeof u=="string"&&Z1.has(t.tagName)?i=u:n[c]=u}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function lS(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const c=l.expression;c.type;const u=c.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Al(e,t.position);else{const s=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Al(e,t.position);else l=i.value===null?!0:i.value;n[s]=l}return n}function dh(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:Y1;for(;++i<t.children.length;){const l=t.children[i];let c;if(e.passKeys){const p=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(p){const h=s.get(p)||0;c=p+"-"+h,s.set(p,h+1)}}const u=m0(e,l,c);u!==void 0&&n.push(u)}return n}function cS(e,t,n){const i=M1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?E1(n):G1(n)),i.property==="style"){let s=typeof n=="object"?n:uS(e,String(n));return e.stylePropertyNameCase==="css"&&(s=dS(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?O1[i.property]||i.property:i.attribute,n]}}function uS(e,t){try{return V1(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new On("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=h0+"#cannot-parse-style-attribute",s}}function x0(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let l=-1,c;for(;++l<s.length;){const u=Zg(s[l])?{type:"Identifier",name:s[l]}:{type:"Literal",value:s[l]};c=c?{type:"MemberExpression",object:c,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}i=c}else i=Zg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return ch.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);Al(e)}function Al(e,t){const n=new On("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=h0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dS(e){const t={};let n;for(n in e)ch.call(e,n)&&(t[fS(n)]=e[n]);return t}function fS(e){let t=e.replace(X1,pS);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pS(e){return"-"+e.toLowerCase()}const Wf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},hS={};function fh(e,t){const n=hS,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return y0(e,i,s)}function y0(e,t,n){if(mS(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ax(e.children,t,n)}
vendor: 11,756 bytes, line 131
131return Array.isArray(e)?ax(e,t,n):""}function ax(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=y0(e[s],t,n);return i.join("")}function mS(e){return!!(e&&typeof e=="object")}const lx=document.createElement("i");function ph(e){const t="&"+e+";";lx.innerHTML=t;const n=lx.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function yr(e,t,n,i){const s=e.length;let l=0,c;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)c=Array.from(i),c.unshift(t,n),e.splice(...c);else for(n&&e.splice(t,n);l<i.length;)c=i.slice(l,l+1e4),c.unshift(t,0),e.splice(...c),l+=1e4,t+=1e4}function Dr(e,t){return e.length>0?(yr(e,e.length,0,t),e):t}const cx={}.hasOwnProperty;function w0(e){const t={};let n=-1;for(;++n<e.length;)gS(t,e[n]);return t}function gS(e,t){let n;for(n in t){const s=(cx.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let c;if(l)for(c in l){cx.call(s,c)||(s[c]=[]);const u=l[c];xS(s[c],Array.isArray(u)?u:u?[u]:[])}}}function xS(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);yr(e,0,0,i)}function k0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function no(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wn=Di(/[A-Za-z]/),An=Di(/[\dA-Za-z]/),yS=Di(/[#-'*+\--9=?A-Z^-~]/);function Pu(e){return e!==null&&(e<32||e===127)}const jp=Di(/\d/),wS=Di(/[\dA-Fa-f]/),kS=Di(/[!-/:-@[-`{-~]/);function Ke(e){return e!==null&&e<-2}function Ot(e){return e!==null&&(e<0||e===32)}function lt(e){return e===-2||e===-1||e===32}const Ju=Di(/\p{P}|\p{S}/u),vs=Di(/\s/);function Di(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ia(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const l=e.charCodeAt(n);let c="";if(l===37&&An(e.charCodeAt(n+1))&&An(e.charCodeAt(n+2)))s=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(c=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(c=String.fromCharCode(l,u),s=1):c="�"}else c=String.fromCharCode(l);c&&(t.push(e.slice(i,n),encodeURIComponent(c)),i=n+s+1,c=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function ht(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let l=0;return c;function c(p){return lt(p)?(e.enter(n),u(p)):t(p)}function u(p){return lt(p)&&l++<s?(e.consume(p),u):(e.exit(n),t(p))}}const bS={tokenize:vS};function vS(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ht(e,t,"linePrefix")}function s(u){return e.enter("paragraph"),l(u)}function l(u){const p=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=p),n=p,c(u)}function c(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Ke(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),c)}}const SS={tokenize:ES},ux={tokenize:CS};function ES(e){const t=this,n=[];let i=0,s,l,c;return u;function u(j){if(i<n.length){const D=n[i];return t.containerState=D[1],e.attempt(D[0].continuation,p,h)(j)}return h(j)}function p(j){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&P();const D=t.events.length;let E=D,C;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){C=t.events[E][1].end;break}R(i);let L=D;for(;L<t.events.length;)t.events[L][1].end={...C},L++;return yr(t.events,E+1,0,t.events.slice(D)),t.events.length=L,h(j)}return u(j)}function h(j){if(i===n.length){if(!s)return b(j);if(s.currentConstruct&&s.currentConstruct.concrete)return v(j);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ux,g,f)(j)}function g(j){return s&&P(),R(i),b(j)}function f(j){return t.parser.lazy[t.now().line]=i!==n.length,c=t.now().offset,v(j)}function b(j){return t.containerState={},e.attempt(ux,y,v)(j)}function y(j){return i++,n.push([t.currentConstruct,t.containerState]),b(j)}function v(j){if(j===null){s&&P(),R(0),e.consume(j);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:l}),S(j)}function S(j){if(j===null){T(e.exit("chunkFlow"),!0),R(0),e.consume(j);return}return Ke(j)?(e.consume(j),T(e.exit("chunkFlow")),i=0,t.interrupt=void 0,u):(e.consume(j),S)}function T(j,D){const E=t.sliceStream(j);if(D&&E.push(null),j.previous=l,l&&(l.next=j),l=j,s.defineSkip(j.start),s.write(E),t.parser.lazy[j.start.line]){let C=s.events.length;for(;C--;)if(s.events[C][1].start.offset<c&&(!s.events[C][1].end||s.events[C][1].end.offset>c))return;const L=t.events.length;let I=L,H,F;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(H){F=t.events[I][1].end;break}H=!0}for(R(i),C=L;C<t.events.length;)t.events[C][1].end={...F},C++;yr(t.events,I+1,0,t.events.slice(L)),t.events.length=C}}function R(j){let D=n.length;for(;D-- >j;){const E=n[D];t.containerState=E[1],E[0].exit.call(t,e)}n.length=j}function P(){s.write([null]),l=void 0,s=void 0,t.containerState._closeFlow=void 0}}function CS(e,t,n){return ht(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ra(e){if(e===null||Ot(e)||vs(e))return 1;if(Ju(e))return 2}function Qu(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const l=e[s].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const Mp={name:"attention",resolveAll:NS,tokenize:RS};function NS(e,t){let n=-1,i,s,l,c,u,p,h,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;p=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},b={...e[n][1].start};dx(f,-p),dx(b,p),c={type:p>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},u={type:p>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},l={type:p>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...u.end}},e[i][1].end={...c.start},e[n][1].start={...u.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Dr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Dr(h,[["enter",s,t],["enter",c,t],["exit",c,t],["enter",l,t]]),h=Dr(h,Qu(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=Dr(h,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,h=Dr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,yr(e,i-1,n-i+3,h),n=i+h.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function RS(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Ra(i);let l;return c;function c(p){return l=p,e.enter("attentionSequence"),u(p)}function u(p){if(p===l)return e.consume(p),u;const h=e.exit("attentionSequence"),g=Ra(p),f=!g||g===2&&s||n.includes(p),b=!s||s===2&&g||n.includes(i);return h._open=!!(l===42?f:f&&(s||!b)),h._close=!!(l===42?b:b&&(g||!f)),t(p)}}function dx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const _S={name:"autolink",tokenize:TS};function TS(e,t,n){let i=0;return s;function s(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return Wn(y)?(e.consume(y),c):y===64?n(y):h(y)}function c(y){return y===43||y===45||y===46||An(y)?(i=1,u(y)):h(y)}function u(y){return y===58?(e.consume(y),i=0,p):(y===43||y===45||y===46||An(y))&&i++<32?(e.consume(y),u):(i=0,h(y))}function p(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||Pu(y)?n(y):(e.consume(y),p)}function h(y){return y===64?(e.consume(y),g):yS(y)?(e.consume(y),h):n(y)}function g(y){return An(y)?f(y):n(y)}function f(y){return y===46?(e.consume(y),i=0,g):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||An(y))&&i++<63){const v=y===45?b:f;return e.consume(y),v}return n(y)}}const Wl={partial:!0,tokenize:IS};function IS(e,t,n){return i;function i(l){return lt(l)?ht(e,s,"linePrefix")(l):s(l)}function s(l){return l===null||Ke(l)?t(l):n(l)}}const b0={continuation:{tokenize:AS},exit:OS,name:"blockQuote",tokenize:LS};function LS(e,t,n){const i=this;return s;function s(c){if(c===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),l}return n(c)}function l(c){return lt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function AS(e,t,n){const i=this;return s;function s(c){return lt(c)?ht(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):l(c)}function l(c){return e.attempt(b0,t,n)(c)}}function OS(e){e.exit("blockQuote")}const v0={name:"characterEscape",tokenize:PS};function PS(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),s}function s(l){return kS(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const S0={name:"characterReference",tokenize:jS};function jS(e,t,n){const i=this;let s=0,l,c;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),p}function p(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,c=An,g(f))}function h(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,c=wS,g):(e.enter("characterReferenceValue"),l=7,c=jp,g(f))}function g(f){if(f===59&&s){const b=e.exit("characterReferenceValue");return c===An&&!ph(i.sliceSerialize(b))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(f)&&s++<l?(e.consume(f),g):n(f)}}const fx={partial:!0,tokenize:DS},px={concrete:!0,name:"codeFenced",tokenize:MS};function MS(e,t,n){const i=this,s={partial:!0,tokenize:E};let l=0,c=0,u;return p;function p(C){return h(C)}function h(C){const L=i.events[i.events.length-1];return l=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(C)}function g(C){return C===u?(c++,e.consume(C),g):c<3?n(C):(e.exit("codeFencedFenceSequence"),lt(C)?ht(e,f,"whitespace")(C):f(C))}function f(C){return C===null||Ke(C)?(e.exit("codeFencedFence"),i.interrupt?t(C):e.check(fx,S,D)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||Ke(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):lt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ht(e,y,"whitespace")(C)):C===96&&C===u?n(C):(e.consume(C),b)}
vendor: 6,600 bytes, line 131
131function y(C){return C===null||Ke(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||Ke(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(C)):C===96&&C===u?n(C):(e.consume(C),v)}function S(C){return e.attempt(s,D,T)(C)}function T(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),R}function R(C){return l>0&&lt(C)?ht(e,P,"linePrefix",l+1)(C):P(C)}function P(C){return C===null||Ke(C)?e.check(fx,S,D)(C):(e.enter("codeFlowValue"),j(C))}function j(C){return C===null||Ke(C)?(e.exit("codeFlowValue"),P(C)):(e.consume(C),j)}function D(C){return e.exit("codeFenced"),t(C)}function E(C,L,I){let H=0;return F;function F(ie){return C.enter("lineEnding"),C.consume(ie),C.exit("lineEnding"),$}function $(ie){return C.enter("codeFencedFence"),lt(ie)?ht(C,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):Y(ie)}function Y(ie){return ie===u?(C.enter("codeFencedFenceSequence"),ce(ie)):I(ie)}function ce(ie){return ie===u?(H++,C.consume(ie),ce):H>=c?(C.exit("codeFencedFenceSequence"),lt(ie)?ht(C,ae,"whitespace")(ie):ae(ie)):I(ie)}function ae(ie){return ie===null||Ke(ie)?(C.exit("codeFencedFence"),L(ie)):I(ie)}}}function DS(e,t,n){const i=this;return s;function s(c){return c===null?n(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}const Hf={name:"codeIndented",tokenize:zS},FS={partial:!0,tokenize:GS};function zS(e,t,n){const i=this;return s;function s(h){return e.enter("codeIndented"),ht(e,l,"linePrefix",5)(h)}function l(h){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(h):n(h)}function c(h){return h===null?p(h):Ke(h)?e.attempt(FS,c,p)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||Ke(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),u)}function p(h){return e.exit("codeIndented"),t(h)}}function GS(e,t,n){const i=this;return s;function s(c){return i.parser.lazy[i.now().line]?n(c):Ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):ht(e,l,"linePrefix",5)(c)}function l(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):Ke(c)?s(c):n(c)}}const BS={name:"codeText",previous:HS,resolve:WS,tokenize:$S};function WS(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function HS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $S(e,t,n){let i=0,s,l;return c;function c(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),i++,u):(e.exit("codeTextSequence"),p(f))}function p(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),p):f===96?(l=e.enter("codeTextSequence"),s=0,g(f)):Ke(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(f))}function h(f){return f===null||f===32||f===96||Ke(f)?(e.exit("codeTextData"),p(f)):(e.consume(f),h)}function g(f){return f===96?(e.consume(f),s++,g):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(l.type="codeTextData",h(f))}}class US{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&bl(this.left,i),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),bl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),bl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);bl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);bl(this.left,n.reverse())}}}function bl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function E0(e){const t={};let n=-1,i,s,l,c,u,p,h;const g=new US(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(i=g.get(n),n&&i[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,l=0,l<p.length&&p[l][1].type==="lineEndingBlank"&&(l+=2),l<p.length&&p[l][1].type==="content"))for(;++l<p.length&&p[l][1].type!=="content";)p[l][1].type==="chunkText"&&(p[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,VS(g,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,s=void 0;l--;)if(c=g.get(l),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(g.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=l);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(i[1].end={...g.get(s)[1].start},u=g.slice(s,n),u.unshift(i),g.splice(s,n-s+1,u))}}return yr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function VS(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const l=[];let c=n._tokenizer;c||(c=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const u=c.events,p=[],h={};let g,f,b=-1,y=n,v=0,S=0;const T=[S];for(;y;){for(;e.get(++s)[1]!==y;);l.push(s),y._tokenizer||(g=i.sliceStream(y),y.next||g.push(null),f&&c.defineSki
vendor: 18,603 bytes, line 131
131p(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),f=y,y=y.next}for(y=n;++b<u.length;)u[b][0]==="exit"&&u[b-1][0]==="enter"&&u[b][1].type===u[b-1][1].type&&u[b][1].start.line!==u[b][1].end.line&&(S=b+1,T.push(S),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):T.pop(),b=T.length;b--;){const R=u.slice(T[b],T[b+1]),P=l.pop();p.push([P,P+R.length-1]),e.splice(P,2,R)}for(p.reverse(),b=-1;++b<p.length;)h[v+p[b][0]]=v+p[b][1],v+=p[b][1]-p[b][0]-1;return h}const KS={resolve:XS,tokenize:qS},YS={partial:!0,tokenize:ZS};function XS(e){return E0(e),e}function qS(e,t){let n;return i;function i(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?l(u):Ke(u)?e.check(YS,c,l)(u):(e.consume(u),s)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function c(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function ZS(e,t,n){const i=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),ht(e,l,"linePrefix")}function l(c){if(c===null||Ke(c))return n(c);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,n,t)(c)}}function C0(e,t,n,i,s,l,c,u,p){const h=p||Number.POSITIVE_INFINITY;let g=0;return f;function f(R){return R===60?(e.enter(i),e.enter(s),e.enter(l),e.consume(R),e.exit(l),b):R===null||R===32||R===41||Pu(R)?n(R):(e.enter(i),e.enter(c),e.enter(u),e.enter("chunkString",{contentType:"string"}),S(R))}function b(R){return R===62?(e.enter(l),e.consume(R),e.exit(l),e.exit(s),e.exit(i),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===62?(e.exit("chunkString"),e.exit(u),b(R)):R===null||R===60||Ke(R)?n(R):(e.consume(R),R===92?v:y)}function v(R){return R===60||R===62||R===92?(e.consume(R),y):y(R)}function S(R){return!g&&(R===null||R===41||Ot(R))?(e.exit("chunkString"),e.exit(u),e.exit(c),e.exit(i),t(R)):g<h&&R===40?(e.consume(R),g++,S):R===41?(e.consume(R),g--,S):R===null||R===32||R===40||Pu(R)?n(R):(e.consume(R),R===92?T:S)}function T(R){return R===40||R===41||R===92?(e.consume(R),S):S(R)}}function N0(e,t,n,i,s,l){const c=this;let u=0,p;return h;function h(y){return e.enter(i),e.enter(s),e.consume(y),e.exit(s),e.enter(l),g}function g(y){return u>999||y===null||y===91||y===93&&!p||y===94&&!u&&"_hiddenFootnoteSupport"in c.parser.constructs?n(y):y===93?(e.exit(l),e.enter(s),e.consume(y),e.exit(s),e.exit(i),t):Ke(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===null||y===91||y===93||Ke(y)||u++>999?(e.exit("chunkString"),g(y)):(e.consume(y),p||(p=!lt(y)),y===92?b:f)}function b(y){return y===91||y===92||y===93?(e.consume(y),u++,f):f(y)}}function R0(e,t,n,i,s,l){let c;return u;function u(b){return b===34||b===39||b===40?(e.enter(i),e.enter(s),e.consume(b),e.exit(s),c=b===40?41:b,p):n(b)}function p(b){return b===c?(e.enter(s),e.consume(b),e.exit(s),e.exit(i),t):(e.enter(l),h(b))}function h(b){return b===c?(e.exit(l),p(c)):b===null?n(b):Ke(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),ht(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===c||b===null||Ke(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?f:g)}function f(b){return b===c||b===92?(e.consume(b),g):g(b)}}function Tl(e,t){let n;return i;function i(s){return Ke(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):lt(s)?ht(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const JS={name:"definition",tokenize:eE},QS={partial:!0,tokenize:tE};function eE(e,t,n){const i=this;let s;return l;function l(y){return e.enter("definition"),c(y)}function c(y){return N0.call(i,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function u(y){return s=no(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),p):n(y)}function p(y){return Ot(y)?Tl(e,h)(y):h(y)}function h(y){return C0(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function g(y){return e.attempt(QS,f,f)(y)}function f(y){return lt(y)?ht(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Ke(y)?(e.exit("definition"),i.parser.defined.push(s),t(y)):n(y)}}function tE(e,t,n){return i;function i(u){return Ot(u)?Tl(e,s)(u):n(u)}function s(u){return R0(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return lt(u)?ht(e,c,"whitespace")(u):c(u)}function c(u){return u===null||Ke(u)?t(u):n(u)}}const nE={name:"hardBreakEscape",tokenize:rE};function rE(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),s}function s(l){return Ke(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const oE={name:"headingAtx",resolve:iE,tokenize:sE};function iE(e,t){let n=e.length-2,i=3,s,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},yr(e,i,n-i+1,[["enter",s,t],["enter",l,t],["exit",l,t],["exit",s,t]])),e}function sE(e,t,n){let i=0;return s;function s(g){return e.enter("atxHeading"),l(g)}function l(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&i++<6?(e.consume(g),c):g===null||Ot(g)?(e.exit("atxHeadingSequence"),u(g)):n(g)}function u(g){return g===35?(e.enter("atxHeadingSequence"),p(g)):g===null||Ke(g)?(e.exit("atxHeading"),t(g)):lt(g)?ht(e,u,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function p(g){return g===35?(e.consume(g),p):(e.exit("atxHeadingSequence"),u(g))}function h(g){return g===null||g===35||Ot(g)?(e.exit("atxHeadingText"),u(g)):(e.consume(g),h)}}const aE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hx=["pre","script","style","textarea"],lE={concrete:!0,name:"htmlFlow",resolveTo:dE,tokenize:fE},cE={partial:!0,tokenize:hE},uE={partial:!0,tokenize:pE};function dE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fE(e,t,n){const i=this;let s,l,c,u,p;return h;function h(A){return g(A)}function g(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),f}function f(A){return A===33?(e.consume(A),b):A===47?(e.consume(A),l=!0,S):A===63?(e.consume(A),s=3,i.interrupt?t:_):Wn(A)?(e.consume(A),c=String.fromCharCode(A),T):n(A)}function b(A){return A===45?(e.consume(A),s=2,y):A===91?(e.consume(A),s=5,u=0,v):Wn(A)?(e.consume(A),s=4,i.interrupt?t:_):n(A)}function y(A){return A===45?(e.consume(A),i.interrupt?t:_):n(A)}function v(A){const Ee="CDATA[";return A===Ee.charCodeAt(u++)?(e.consume(A),u===Ee.length?i.interrupt?t:Y:v):n(A)}function S(A){return Wn(A)?(e.consume(A),c=String.fromCharCode(A),T):n(A)}function T(A){if(A===null||A===47||A===62||Ot(A)){const Ee=A===47,de=c.toLowerCase();return!Ee&&!l&&hx.includes(de)?(s=1,i.interrupt?t(A):Y(A)):aE.includes(c.toLowerCase())?(s=6,Ee?(e.consume(A),R):i.interrupt?t(A):Y(A)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(A):l?P(A):j(A))}return A===45||An(A)?(e.consume(A),c+=String.fromCharCode(A),T):n(A)}function R(A){return A===62?(e.consume(A),i.interrupt?t:Y):n(A)}function P(A){return lt(A)?(e.consume(A),P):F(A)}function j(A){return A===47?(e.consume(A),F):A===58||A===95||Wn(A)?(e.consume(A),D):lt(A)?(e.consume(A),j):F(A)}function D(A){return A===45||A===46||A===58||A===95||An(A)?(e.consume(A),D):E(A)}function E(A){return A===61?(e.consume(A),C):lt(A)?(e.consume(A),E):j(A)}function C(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),p=A,L):lt(A)?(e.consume(A),C):I(A)}function L(A){return A===p?(e.consume(A),p=null,H):A===null||Ke(A)?n(A):(e.consume(A),L)}function I(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Ot(A)?E(A):(e.consume(A),I)}function H(A){return A===47||A===62||lt(A)?j(A):n(A)}function F(A){return A===62?(e.consume(A),$):n(A)}function $(A){return A===null||Ke(A)?Y(A):lt(A)?(e.consume(A),$):n(A)}function Y(A){return A===45&&s===2?(e.consume(A),re):A===60&&s===1?(e.consume(A),pe):A===62&&s===4?(e.consume(A),z):A===63&&s===3?(e.consume(A),_):A===93&&s===5?(e.consume(A),J):Ke(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(cE,te,ce)(A)):A===null||Ke(A)?(e.exit("htmlFlowData"),ce(A)):(e.consume(A),Y)}function ce(A){return e.check(uE,ae,te)(A)}function ae(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ie}function ie(A){return A===null||Ke(A)?ce(A):(e.enter("htmlFlowData"),Y(A))}function re(A){return A===45?(e.consume(A),_):Y(A)}function pe(A){return A===47?(e.consume(A),c="",X):Y(A)}function X(A){if(A===62){const Ee=c.toLowerCase();return hx.includes(Ee)?(e.consume(A),z):Y(A)}return Wn(A)&&c.length<8?(e.consume(A),c+=String.fromCharCode(A),X):Y(A)}function J(A){return A===93?(e.consume(A),_):Y(A)}function _(A){return A===62?(e.consume(A),z):A===45&&s===2?(e.consume(A),_):Y(A)}function z(A){return A===null||Ke(A)?(e.exit("htmlFlowData"),te(A)):(e.consume(A),z)}function te(A){return e.exit("htmlFlow"),t(A)}}function pE(e,t,n){const i=this;return s;function s(c){return Ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):n(c)}function l(c){return i.parser.lazy[i.now().line]?n(c):t(c)}}function hE(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Wl,t,n)}}const mE={name:"htmlText",tokenize:gE};function gE(e,t,n){const i=this;let s,l,c;return u;function u(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),p}function p(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),E):_===63?(e.consume(_),j):Wn(_)?(e.consume(_),I):n(_)}function h(_){return _===45?(e.consume(_),g):_===91?(e.consume(_),l=0,v):Wn(_)?(e.consume(_),P):n(_)}function g(_){return _===45?(e.consume(_),y):n(_)}function f(_){return _===null?n(_):_===45?(e.consume(_),b):Ke(_)?(c=f,pe(_)):(e.consume(_),f)}function b(_){return _===45?(e.consume(_),y):f(_)}function y(_){return _===62?re(_):_===45?b(_):f(_)}function v(_){const z="CDATA[";return _===z.charCodeAt(l++)?(e.consume(_),l===z.length?S:v):n(_)}function S(_){return _===null?n(_):_===93?(e.consume(_),T):Ke(_)?(c=S,pe(_)):(e.consume(_),S)}function T(_){return _===93?(e.consume(_),R):S(_)}function R(_){return _===62?re(_):_===93?(e.consume(_),R):S(_)}function P(_){return _===null||_===62?re(_):Ke(_)?(c=P,pe(_)):(e.consume(_),P)}function j(_){return _===null?n(_):_===63?(e.consume(_),D):Ke(_)?(c=j,pe(_)):(e.consume(_),j)}function D(_){return _===62?re(_):j(_)}function E(_){return Wn(_)?(e.consume(_),C):n(_)}function C(_){return _===45||An(_)?(e.consume(_),C):L(_)}function L(_){return Ke(_)?(c=L,pe(_)):lt(_)?(e.consume(_),L):re(_)}function I(_){return _===45||An(_)?(e.consume(_),I):_===47||_===62||Ot(_)?H(_):n(_)}function H(_){return _===47?(e.consume(_),re):_===58||_===95||Wn(_)?(e.consume(_),F):Ke(_)?(c=H,pe(_)):lt(_)?(e.consume(_),H):re(_)}function F(_){return _===45||_===46||_===58||_===95||An(_)?(e.consume(_),F):$(_)}function $(_){return _===61?(e.consume(_),Y):Ke(_)?(c=$,pe(_)):lt(_)?(e.consume(_),$):H(_)}function Y(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),s=_,ce):Ke(_)?(c=Y,pe(_)):lt(_)?(e.consume(_),Y):(e.consume(_),ae)}function ce(_){return _===s?(e.consume(_),s=void 0,ie):_===null?n(_):Ke(_)?(c=ce,pe(_)):(e.consume(_),ce)}function ae(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Ot(_)?H(_):(e.consume(_),ae)}function ie(_){return _===47||_===62||Ot(_)?H(_):n(_)}function re(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function pe(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),X}function X(_){return lt(_)?ht(e,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):J(_)}function J(_){return e.enter("htmlTextData"),c(_)}}const hh={name:"labelEnd",resolveAll:kE,resolveTo:bE,tokenize:vE},xE={tokenize:SE},yE={tokenize:EE},wE={tokenize:CE};function kE(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&yr(e,0,e.length,n),e}function bE(e,t){let n=e.length,i=0,s,l,c,u;for(;n--;)if(s=e[n][1],l){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(l=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(c=n);const p={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",p,t],["enter",h,t]],u=Dr(u,e.slice(l+1,l+i+3)),u=Dr(u,[["enter",g,t]]),u=Dr(u,Qu(t.parser.constructs.insideSpan.null,e.slice(l+i+4,c-3),t)),u=Dr(u,[["exit",g,t],e[c-2],e[c-1],["exit",h,t]]),u=Dr(u,e.slice(c+1)),u=Dr(u,[["exit",p,t]]),yr(e,l,e.length,u),e}function vE(e,t,n){const i=this;let s=i.events.length,l,c;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){l=i.events[s][1];break}return u;function u(b){return l?l._inactive?f(b):(c=i.parser.defined.includes(no(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),p):n(b)}function p(b){return b===40?e.attempt(xE,g,c?g:f)(b):b===91?e.attempt(yE,g,c?h:f)(b):c?g(b):f(b)}function h(b){return e.attempt(wE,g,f)(b)}function g(b){return t(b)}function f(b){return l._balanced=!0,n(b)}}function SE(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),s}function s(f){return Ot(f)?Tl(e,l)(f):l(f)}function l(f){return f===41?g(f):C0(e,c,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function c(f){return Ot(f)?Tl(e,p)(f):g(f)}function u(f){return n(f)}function p(f){return f===34||f===39||f===40?R0(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):g(f)}function h(f){return Ot(f)?Tl(e,g)(f):g(f)}function g(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function EE(e,t,n){const i=this;return s;function s(u){return N0.call(i,e,l,c,"reference","referenceMarker","referenceString")(u)}function l(u){return i.parser.defined.includes(no(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function c(u){return n(u)}}function CE(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),s}function s(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const NE={name:"labelStartImage",resolveAll:hh.resolveAll,tokenize:RE};function RE(e,t,n){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),c):n(u)}function c(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const _E={name:"labelStartLink",resolveAll:hh.resolveAll,tokenize:TE};function TE(e,t,n){const i=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),l}function l(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const $f={name:"lineEnding",tokenize:IE};function IE(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ht(e,t,"linePrefix")}}const Ru={name:"thematicBreak",tokenize:LE};function LE(e,t,n){let i=0,s;return l;function l(h){return e.enter("thematicBreak"),c(h)}function c(h){return s=h,u(h)}function u(h){return h===s?(e.enter("thematicBreakSequence"),p(h)):i>=3&&(h===null||Ke(h))?(e.exit("thematicBreak"),t(h)):n(h)}function p(h){return h===s?(e.consume(h),i++,p):(e.exit("thematicBreakSequence"),lt(h)?ht(e,u,"whitespace")(h):u(h))}}const tr={continuation:{tokenize:jE},exit:DE,name:"list",tokenize:PE},AE={partial:!0,tokenize:FE},OE={partial:!0,tokenize:ME};function PE(e,t,n){const i=this,s=i.events[i.events.length-1];let l=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return u;function u(y){const v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:jp(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Ru,n,h)(y):h(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(y)}return n(y)}function p(y){return jp(y)&&++c<10?(e.consume(y),p):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):n(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(Wl,i.interrupt?n:g,e.attempt(AE,b,f))}
vendor: 5,289 bytes, line 131
131function g(y){return i.containerState.initialBlankLine=!0,l++,b(y)}function f(y){return lt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function jE(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Wl,s,l);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ht(e,t,"listItemIndent",i.containerState.size+1)(u)}function l(u){return i.containerState.furtherBlankLines||!lt(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(OE,t,c)(u))}function c(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,ht(e,e.attempt(tr,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function ME(e,t,n){const i=this;return ht(e,s,"listItemIndent",i.containerState.size+1);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(l):n(l)}}function DE(e){e.exit(this.containerState.type)}function FE(e,t,n){const i=this;return ht(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(l){const c=i.events[i.events.length-1];return!lt(l)&&c&&c[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const mx={name:"setextUnderline",resolveTo:zE,tokenize:GE};function zE(e,t){let n=e.length,i,s,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",l?(e.splice(s,0,["enter",c,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function GE(e,t,n){const i=this;let s;return l;function l(h){let g=i.events.length,f;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){f=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),s=h,c(h)):n(h)}function c(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),lt(h)?ht(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||Ke(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const BE={tokenize:WE};function WE(e){const t=this,n=e.attempt(Wl,i,e.attempt(this.parser.constructs.flowInitial,s,ht(e,e.attempt(this.parser.constructs.flow,s,e.attempt(KS,s)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HE={resolveAll:T0()},$E=_0("string"),UE=_0("text");function _0(e){return{resolveAll:T0(e==="text"?VE:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],l=n.attempt(s,c,u);return c;function c(g){return h(g)?l(g):u(g)}function u(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),p}function p(g){return h(g)?(n.exit("data"),l(g)):(n.consume(g),p)}function h(g){if(g===null)return!0;const f=s[g];let b=-1;if(f)for(;++b<f.length;){const y=f[b];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function T0(e){return t;function t(n,i){let s=-1,l;for(;++s<=n.length;)l===void 0?n[s]&&n[s][1].type==="data"&&(l=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==l+2&&(n[l][1].end=n[s-1][1].end,n.splice(l+2,s-l-2),s=l+2),l=void 0);return e?e(n,i):n}}function VE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let l=s.length,c=-1,u=0,p;for(;l--;){const h=s[l];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)u++,c--;if(c)break;c=-1}else if(h===-2)p=!0,u++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const h={type:n===e.length||p||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?c:i.start._bufferIndex+c,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const KE={42:tr,43:tr,45:tr,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,62:b0},YE={91:JS},XE={[-2]:Hf,[-1]:Hf,32:Hf},qE={35:oE,42:Ru,45:[mx,Ru],60:lE,61:mx,95:Ru,96:px,126:px},ZE={38:S0,92:v0},JE={[-5]:$f,[-4]:$f,[-3]:$f,33:NE,38:S0,42:Mp,60:[_S,mE],91:_E,92:[nE,v0],93:hh,95:Mp,96:BS},QE={null:[Mp,HE]},eC={null:[42,95]},tC={null:[]},nC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:eC,contentInitial:YE,disable:tC,document:KE,flow:qE,flowInitial:XE,insideSpan:QE,string:ZE,text:JE},Symbol.toStringTag,{value:"Module"}));
vendor: 14,739 bytes, lines 131-133
131function rC(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},l=[];let c=[],u=[];const p={attempt:L(E),check:L(C),consume:P,enter:j,exit:D,interrupt:L(C,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:v,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:f};let g=t.tokenize.call(h,p);return t.resolveAll&&l.push(t),h;function f($){return c=Dr(c,$),T(),c[c.length-1]!==null?[]:(I(t,0),h.events=Qu(l,h.events,h),h.events)}function b($,Y){return iC(y($),Y)}function y($){return oC(c,$)}function v(){const{_bufferIndex:$,_index:Y,line:ce,column:ae,offset:ie}=i;return{_bufferIndex:$,_index:Y,line:ce,column:ae,offset:ie}}function S($){s[$.line]=$.column,F()}function T(){let $;for(;i._index<c.length;){const Y=c[i._index];if(typeof Y=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<Y.length;)R(Y.charCodeAt(i._bufferIndex));else R(Y)}}function R($){g=g($)}function P($){Ke($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,F()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=$}function j($,Y){const ce=Y||{};return ce.type=$,ce.start=v(),h.events.push(["enter",ce,h]),u.push(ce),ce}function D($){const Y=u.pop();return Y.end=v(),h.events.push(["exit",Y,h]),Y}function E($,Y){I($,Y.from)}function C($,Y){Y.restore()}function L($,Y){return ce;function ce(ae,ie,re){let pe,X,J,_;return Array.isArray(ae)?te(ae):"tokenize"in ae?te([ae]):z(ae);function z(we){return Te;function Te(Se){const Ae=Se!==null&&we[Se],Qe=Se!==null&&we.null,vt=[...Array.isArray(Ae)?Ae:Ae?[Ae]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return te(vt)(Se)}}function te(we){return pe=we,X=0,we.length===0?re:A(we[X])}function A(we){return Te;function Te(Se){return _=H(),J=we,we.partial||(h.currentConstruct=we),we.name&&h.parser.constructs.disable.null.includes(we.name)?de():we.tokenize.call(Y?Object.assign(Object.create(h),Y):h,p,Ee,de)(Se)}}function Ee(we){return $(J,_),ie}function de(we){return _.restore(),++X<pe.length?A(pe[X]):re}}}function I($,Y){$.resolveAll&&!l.includes($)&&l.push($),$.resolve&&yr(h.events,Y,h.events.length-Y,$.resolve(h.events.slice(Y),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function H(){const $=v(),Y=h.previous,ce=h.currentConstruct,ae=h.events.length,ie=Array.from(u);return{from:ae,restore:re};function re(){i=$,h.previous=Y,h.currentConstruct=ce,h.events.length=ae,u=ie,F()}}function F(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function oC(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,l=t.end._bufferIndex;let c;if(n===s)c=[e[n].slice(i,l)];else{if(c=e.slice(n,s),i>-1){const u=c[0];typeof u=="string"?c[0]=u.slice(i):c.shift()}l>0&&c.push(e[s].slice(0,l))}return c}function iC(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const l=e[n];let c;if(typeof l=="string")c=l;else switch(l){case-5:{c="\r";break}case-4:{c=`
132`;break}case-3:{c=`\r
133`;break}case-2:{c=t?" ":"	";break}case-1:{if(!t&&s)continue;c=" ";break}default:c=String.fromCharCode(l)}s=l===-2,i.push(c)}return i.join("")}function sC(e){const i={constructs:w0([nC,...(e||{}).extensions||[]]),content:s(bS),defined:[],document:s(SS),flow:s(BE),lazy:{},string:s($E),text:s(UE)};return i;function s(l){return c;function c(u){return rC(i,l,u)}}}function aC(e){for(;!E0(e););return e}const gx=/[\0\t\n\r]/g;function lC(){let e=1,t="",n=!0,i;return s;function s(l,c,u){const p=[];let h,g,f,b,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(c||void 0).decode(l)),f=0,t="",n&&(l.charCodeAt(0)===65279&&f++,n=void 0);f<l.length;){if(gx.lastIndex=f,h=gx.exec(l),b=h&&h.index!==void 0?h.index:l.length,y=l.charCodeAt(b),!h){t=l.slice(f);break}if(y===10&&f===b&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),f<b&&(p.push(l.slice(f,b)),e+=b-f),y){case 0:{p.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,p.push(-2);e++<g;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}f=b+1}return u&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const cC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uC(e){return e.replace(cC,dC)}function dC(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),l=s===120||s===88;return k0(n.slice(l?2:1),l?16:10)}return ph(n)||e}const I0={}.hasOwnProperty;function fC(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),pC(n)(aC(sC(n).document().write(lC()(e,t,!0))))}function pC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(st),autolinkProtocol:H,autolinkEmail:H,atxHeading:l(dn),blockQuote:l(Qe),characterEscape:H,characterReference:H,codeFenced:l(vt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(vt,c),codeText:l(it,c),codeTextData:H,data:H,codeFlowValue:H,definition:l(Ye),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(Rt),hardBreakEscape:l(Un),hardBreakTrailing:l(Un),htmlFlow:l(fn,c),htmlFlowData:H,htmlText:l(fn,c),htmlTextData:H,image:l(Pn),label:c,link:l(st),listItem:l(We),listItemValue:b,listOrdered:l(Ce,f),listUnordered:l(Ce),paragraph:l(Xe),reference:A,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(dn),strong:l(dt),thematicBreak:l(Zt)},exit:{atxHeading:p(),atxHeadingSequence:E,autolink:p(),autolinkEmail:Ae,autolinkProtocol:Se,blockQuote:p(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:we,characterReference:Te,codeFenced:p(T),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:F,codeIndented:p(R),codeText:p(ie),codeTextData:F,data:F,definition:p(),definitionDestinationString:D,definitionLabelString:P,definitionTitleString:j,emphasis:p(),hardBreakEscape:p(Y),hardBreakTrailing:p(Y),htmlFlow:p(ce),htmlFlowData:F,htmlText:p(ae),htmlTextData:F,image:p(pe),label:J,labelText:X,lineEnding:$,link:p(re),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Ee,resourceDestinationString:_,resourceTitleString:z,resource:te,setextHeading:p(I),setextHeadingLineSequence:L,setextHeadingText:C,strong:p(),thematicBreak:p()}};L0(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Z){let Q={type:"root",children:[]};const Ie={stack:[Q],tokenStack:[],config:t,enter:u,exit:h,buffer:c,resume:g,data:n},Pe=[];let ue=-1;for(;++ue<Z.length;)if(Z[ue][1].type==="listOrdered"||Z[ue][1].type==="listUnordered")if(Z[ue][0]==="enter")Pe.push(ue);else{const ft=Pe.pop();ue=s(Z,ft,ue)}for(ue=-1;++ue<Z.length;){const ft=t[Z[ue][0]];I0.call(ft,Z[ue][1].type)&&ft[Z[ue][1].type].call(Object.assign({sliceSerialize:Z[ue][2].sliceSerialize},Ie),Z[ue][1])}if(Ie.tokenStack.length>0){const ft=Ie.tokenStack[Ie.tokenStack.length-1];(ft[1]||xx).call(Ie,void 0,ft[0])}for(Q.position={start:Ti(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ti(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},ue=-1;++ue<t.transforms.length;)Q=t.transforms[ue](Q)||Q;return Q}function s(Z,Q,Ie){let Pe=Q-1,ue=-1,ft=!1,ct,bt,Jt,en;for(;++Pe<=Ie;){const at=Z[Pe];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?ue++:ue--,en=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(ct&&!en&&!ue&&!Jt&&(Jt=Pe),en=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:en=void 0}if(!ue&&at[0]==="enter"&&at[1].type==="listItemPrefix"||ue===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(ct){let tn=Pe;for(bt=void 0;tn--;){const Pt=Z[tn];if(Pt[1].type==="lineEnding"||Pt[1].type==="lineEndingBlank"){if(Pt[0]==="exit")continue;bt&&(Z[bt][1].type="lineEndingBlank",ft=!0),Pt[1].type="lineEnding",bt=tn}else if(!(Pt[1].type==="linePrefix"||Pt[1].type==="blockQuotePrefix"||Pt[1].type==="blockQuotePrefixWhitespace"||Pt[1].type==="blockQuoteMarker"||Pt[1].type==="listItemIndent"))break}Jt&&(!bt||Jt<bt)&&(ct._spread=!0),ct.end=Object.assign({},bt?Z[bt][1].start:at[1].end),Z.splice(bt||Pe,0,["exit",ct,at[2]]),Pe++,Ie++}if(at[1].type==="listItemPrefix"){const tn={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};ct=tn,Z.splice(Pe,0,["enter",tn,at[2]]),Pe++,Ie++,Jt=void 0,en=!0}}}return Z[Q][1]._spread=ft,Ie}function l(Z,Q){return Ie;function Ie(Pe){u.call(this,Z(Pe),Pe),Q&&Q.call(this,Pe)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(Z,Q,Ie){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([Q,Ie||void 0]),Z.position={start:Ti(Q.start),end:void 0}}function p(Z){return Q;function Q(Ie){Z&&Z.call(this,Ie),h.call(this,Ie)}}function h(Z,Q){const Ie=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==Z.type&&(Q?Q.call(this,Z,Pe[0]):(Pe[1]||xx).call(this,Z,Pe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+_l({start:Z.start,end:Z.end})+"): it’s not open");Ie.position.end=Ti(Z.end)}function g(){return fh(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function b(Z){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function y(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=Z}function v(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=Z}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z.replace(/(\r?\n|\r)$/g,"")}function P(Z){const Q=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=Q,Ie.identifier=no(this.sliceSerialize(Z)).toLowerCase()}function j(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.title=Z}function D(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.url=Z}function E(Z){const Q=this.stack[this.stack.length-1];if(!Q.depth){const Ie=this.sliceSerialize(Z).length;Q.depth=Ie}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function L(Z){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function H(Z){const Ie=this.stack[this.stack.length-1].children;let Pe=Ie[Ie.length-1];(!Pe||Pe.type!=="text")&&(Pe=gt(),Pe.position={start:Ti(Z.start),end:void 0},Ie.push(Pe)),this.stack.push(Pe)}function F(Z){const Q=this.stack.pop();Q.value+=this.sliceSerialize(Z),Q.position.end=Ti(Z.end)}function $(Z){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=Q.children[Q.children.length-1];Ie.position.end=Ti(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&(H.call(this,Z),F.call(this,Z))}function Y(){this.data.atHardBreak=!0}function ce(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function ae(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function ie(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function re(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=Q,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function pe(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=Q,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function X(Z){const Q=this.sliceSerialize(Z),Ie=this.stack[this.stack.length-2];Ie.label=uC(Q),Ie.identifier=no(Q).toLowerCase()}function J(){const Z=this.stack[this.stack.length-1],Q=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const Pe=Z.children;Ie.children=Pe}else Ie.alt=Q}function _(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.url=Z}function z(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.title=Z}function te(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function Ee(Z){const Q=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=Q,Ie.identifier=no(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function de(Z){this.data.characterReferenceType=Z.type}function we(Z){const Q=this.sliceSerialize(Z),Ie=this.data.characterReferenceType;let Pe;Ie?(Pe=k0(Q,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=ph(Q);const ue=this.stack[this.stack.length-1];ue.value+=Pe}function Te(Z){const Q=this.stack.pop();Q.position.end=Ti(Z.end)}function Se(Z){F.call(this,Z);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize(Z)}function Ae(Z){F.call(this,Z);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize(Z)}function Qe(){return{type:"blockquote",children:[]}}function vt(){return{type:"code",lang:null,meta:null,value:""}}function it(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Rt(){return{type:"emphasis",children:[]}}function dn(){return{type:"heading",depth:0,children:[]}}function Un(){return{type:"break"}}function fn(){return{type:"html",value:""}}function Pn(){return{type:"image",title:null,url:"",alt:null}}function st(){return{type:"link",title:null,url:"",children:[]}}function Ce(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function We(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Xe(){return{type:"paragraph",children:[]}}function dt(){return{type:"strong",children:[]}}function gt(){return{type:"text",value:""}}function Zt(){return{type:"thematicBreak"}}}function Ti(e){return{line:e.line,column:e.column,offset:e.offset}}function L0(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?L0(e,i):hC(e,i)}}function hC(e,t){let n;for(n in t)if(I0.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function xx(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_l({start:t.start,end:t.end}
vendor: 9,596 bytes, lines 133-137
133)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_l({start:t.start,end:t.end})+") is still open")}function mC(e){const t=this;t.parser=n;function n(i){return fC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function gC(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function xC(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
134`}]}function yC(e,t){const n=t.value?t.value+`
135`:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function wC(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kC(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bC(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=Ia(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let c,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=l+1,u+=1,e.footnoteCounts.set(i,u);const p={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,h),e.applyData(t,h)}function vC(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SC(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function A0(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),l=s[0];l&&l.type==="text"?l.value="["+l.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=i:s.push({type:"text",value:i}),s}function EC(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return A0(e,t);const s={src:Ia(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,l),e.applyData(t,l)}function CC(e,t){const n={src:Ia(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function NC(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function RC(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return A0(e,t);const s={href:Ia(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const l={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function _C(e,t){const n={href:Ia(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function TC(e,t,n){const i=e.all(t),s=n?IC(n):O0(t),l={},c=[];if(typeof t.checked=="boolean"){const g=i[0];let f;g&&g.type==="element"&&g.tagName==="p"?f=g:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const g=i[u];(s||u!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
136`}),g.type==="element"&&g.tagName==="p"&&!s?c.push(...g.children):c.push(g)}const p=i[i.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
137`});const h={type:"element",tagName:"li",properties:l,children:c};return e.patch(t,h),e.applyData(t,h)}function IC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=O0(n[i])}return t}function O0(e){const t=e.spread;return t??e.children.length>1}function LC(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const c=i[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function AC(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function OC(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function PC(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function jC(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),s.push(c)}if(n.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=lh(t.children[1]),p=f0(t.children[t.children.length-1]);u&&p&&(c.position={start:u,end:p}),s.push(c)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,l),e.applyData(t,l)}function MC(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",c=n&&n.type==="table"?n.align:void 0,u=c?c.length:t.children.length;let p=-1;const h=[];for(;++p<u;){const f=t.children[p],b={},y=c?c[p]:void 0;y&&(b.align=y);let v={type:"element",tagName:l,properties:b,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),h.push(v)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function DC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const yx=9,wx=32;function FC(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const l=[];for(;i;)l.push(kx(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return l.push(kx(t.slice(s),s>0,!1)),l.join("")}function kx(e,t,n){let i=0,s=e.length;if(t){let l=e.codePointAt(i);for(;l===yx||l===wx;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(s-1);for(;l===yx||l===wx;)s--,l=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function zC(e,t){const n={type:"text",value:FC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function GC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const BC={blockquote:gC,break:xC,code:yC,delete:wC,emphasis:kC,footnoteReference:bC,heading:vC,html:SC,imageReference:EC,image:CC,inlineCode:NC,linkReference:RC,link:_C,listItem:TC,list:LC,paragraph:AC,root:OC,strong:PC,table:jC,tableCell:DC,tableRow:MC,text:zC,thematicBreak:GC,toml:cu,yaml:cu,definition:cu,footnoteDefinition:cu};function cu(){}const P0=-1,ed=0,Il=1,ju=2,mh=3,gh=4,xh=5,yh=6,j0=7,M0=8,bx=typeof self=="object"?self:globalThis,WC=(e,t)=>{const n=(s,l)=>(e.set(l,s),s),i=s=>{if(e.has(s))return e.get(s);const[l,c]=t[s];switch(l){case ed:case P0:return n(c,s);case Il:{const u=n([],s);for(const p of c)u.push(i(p));return u}case ju:{const u=n({},s);for(const[p,h]of c)u[i(p)]=i(h);return u}case mh:return n(new Date(c),s);case gh:{const{source:u,flags:p}=c;return n(new RegExp(u,p),s)}case xh:{const u=n(new Map,s);for(const[p,h]of c)u.set(i(p),i(h));return u}case yh:{const u=n(new Set,s);for(const p of c)u.add(i(p));return u}case j0:{const{name:u,message:p}=c;return n(new bx[u](p),s)}case M0:return n(BigInt(c),s);case"BigInt":return n(Object(BigInt(c)),s);case"ArrayBuffer":return n(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:u}=new Uint8Array(c);return n(new DataView(u),c)}}return n(new bx[l](c),s)};return i},vx=e=>WC(new Map,e)(0),pa="",{toString:HC}={},{keys:$C}=Object,vl=e=>{const t=typeof e;if(t!=="object"||!e)return[ed,t];const n=HC.call(e).slice(8,-1);switch(n){case"Array":return[Il,pa];case"Object":return[ju,pa];case"Date":return[mh,pa];case"RegExp":return[gh,pa];case"Map":return[xh,pa];case"Set":return[yh,pa];case"DataView":return[Il,n]}return n.includes("Array")?[Il,n]:n.includes("Error")?[j0,n]:[ju,n]},uu=([e,t])=>e===ed&&(t==="function"||t==="symbol"),UC=(e,t,n,i)=>{const s=(c,u)=>{const p=i.push(c)-1;return n.set(u,p),p},l=c=>{if(n.has(c))return n.get(c);let[u,p]=vl(c);switch(u){case ed:{let g=c;switch(p){case"bigint":u=M0,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);g=null;break;case"undefined":return s([P0],c)}return s([u,g],c)}case Il:{if(p){let b=c;return p==="DataView"?b=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(b=new Uint8Array(c)),s([p,[...b]],c)}const g=[],f=s([u,g],c);for(const b of c)g.push(l(b));return f}case ju:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c
vendor: 6,826 bytes, lines 137-143
137);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(t&&"toJSON"in c)return l(c.toJSON());const g=[],f=s([u,g],c);for(const b of $C(c))(e||!uu(vl(c[b])))&&g.push([l(b),l(c[b])]);return f}case mh:return s([u,c.toISOString()],c);case gh:{const{source:g,flags:f}=c;return s([u,{source:g,flags:f}],c)}case xh:{const g=[],f=s([u,g],c);for(const[b,y]of c)(e||!(uu(vl(b))||uu(vl(y))))&&g.push([l(b),l(y)]);return f}case yh:{const g=[],f=s([u,g],c);for(const b of c)(e||!uu(vl(b)))&&g.push(l(b));return f}}const{message:h}=c;return s([u,{name:p,message:h}],c)};return l},Sx=(e,{json:t,lossy:n}={})=>{const i=[];return UC(!(t||n),!!t,new Map,i)(e),i},Mu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vx(Sx(e,t)):structuredClone(e):(e,t)=>vx(Sx(e,t));function VC(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function KC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||VC,i=e.options.footnoteBackLabel||KC,s=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const g=e.all(h),f=String(h.identifier).toUpperCase(),b=Ia(f.toLowerCase());let y=0;const v=[],S=e.footnoteCounts.get(f);for(;S!==void 0&&++y<=S;){v.length>0&&v.push({type:"text",value:" "});let P=typeof n=="string"?n:n(p,y);typeof P=="string"&&(P={type:"text",value:P}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const T=g[g.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const P=T.children[T.children.length-1];P&&P.type==="text"?P.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...v)}else g.push(...v);const R={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(g,!0)};e.patch(h,R),u.push(R)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Mu(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
138`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
139`}]}}const td=(function(e){if(e==null)return JC;if(typeof e=="function")return nd(e);if(typeof e=="object")return Array.isArray(e)?XC(e):qC(e);if(typeof e=="string")return ZC(e);throw new Error("Expected function, string, or object as test")});function XC(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=td(e[n]);return nd(i);function i(...s){let l=-1;for(;++l<t.length;)if(t[l].apply(this,s))return!0;return!1}}function qC(e){const t=e;return nd(n);function n(i){const s=i;let l;for(l in e)if(s[l]!==t[l])return!1;return!0}}function ZC(e){return nd(t);function t(n){return n&&n.type===e}}function nd(e){return t;function t(n,i,s){return!!(QC(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function JC(){return!0}function QC(e){return e!==null&&typeof e=="object"&&"type"in e}const D0=[],e2=!0,Dp=!1,t2="skip";function F0(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const l=td(s),c=i?-1:1;u(e,void 0,[])();function u(p,h,g){const f=p&&typeof p=="object"?p:{};if(typeof f.type=="string"){const y=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return b;function b(){let y=D0,v,S,T;if((!t||l(p,h,g[g.length-1]||void 0))&&(y=n2(n(p,g)),y[0]===Dp))return y;if("children"in p&&p.children){const R=p;if(R.children&&y[0]!==t2)for(S=(i?R.children.length:-1)+c,T=g.concat(R);S>-1&&S<R.children.length;){const P=R.children[S];if(v=u(P,S,T)(),v[0]===Dp)return v;S=typeof v[1]=="number"?v[1]:S+c}}return y}}}function n2(e){return Array.isArray(e)?e:typeof e=="number"?[e2,e]:e==null?D0:[e]}function wh(e,t,n,i){let s,l,c;typeof t=="function"&&typeof n!="function"?(l=void 0,c=t,s=n):(l=t,c=n,s=i),F0(e,l,u,s);function u(p,h){const g=h[h.length-1],f=g?g.children.indexOf(p):void 0;return c(p,f,g)}}const Fp={}.hasOwnProperty,r2={};function o2(e,t){const n=t||r2,i=new Map,s=new Map,l=new Map,c={...BC,...n.handlers},u={all:h,applyData:s2,definitionById:i,footnoteById:s,footnoteCounts:l,footnoteOrder:[],handlers:c,one:p,options:n,patch:i2,wrap:l2};return wh(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const f=g.type==="definition"?i:s,b=String(g.identifier).toUpperCase();f.has(b)||f.set(b,g)}}),u;function p(g,f){const b=g.type,y=u.handlers[b];if(Fp.call(u.handlers,b)&&y)return y(u,g,f);if(u.options.passThrough&&u.options.passThrough.includes(b)){if("children"in g){const{children:S,...T}=g,R=Mu(T);return R.children=u.all(g),R}return Mu(g)}return(u.options.unknownHandler||a2)(u,g,f)}function h(g){const f=[];if("children"in g){const b=g.children;let y=-1;for(;++y<b.length;){const v=u.one(b[y],g);if(v){if(y&&b[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=Ex(v.value)),!Array.isArray(v)&&v.type==="element")){const S=v.children[0];S&&S.type==="text"&&(S.value=Ex(S.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function i2(e,t){e.position&&(t.position=K1(e))}function s2(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const c="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:c}}n.type==="element"&&l&&Object.assign(n.properties,Mu(l)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function a2(e,t){const n=t.data||{},i="value"in t&&!(Fp.call(n,"hProperties")||Fp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function l2(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
140`});++i<e.length;)i&&n.push({type:"text",value:`
141`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
142`}),n}function Ex(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Cx(e,t){const n=o2(e,t),i=n.one(e,void 0),s=YC(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&l.children.push({type:"text",value:`
143`},s),l}function c2(e,t){return e&&"run"in e?async function(n,i){const s=Cx(n,{file:i,...t});await e.run(s,i)}:function(n,i){return Cx(n,{file:i,...e||t})}}function Nx(e){if(e)throw e}var Uf,Rx;
vendor: 25,231 bytes, lines 143-151
143function u2(){if(Rx)return Uf;Rx=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),f=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!f)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},c=function(h,g){n&&g.name==="__proto__"?n(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},u=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(i)return i(h,g).value}else return;return h[g]};return Uf=function p(){var h,g,f,b,y,v,S=arguments[0],T=1,R=arguments.length,P=!1;for(typeof S=="boolean"&&(P=S,S=arguments[1]||{},T=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});T<R;++T)if(h=arguments[T],h!=null)for(g in h)f=u(S,g),b=u(h,g),S!==b&&(P&&b&&(l(b)||(y=s(b)))?(y?(y=!1,v=f&&s(f)?f:[]):v=f&&l(f)?f:{},c(S,{name:g,newValue:p(P,v,b)})):typeof b<"u"&&c(S,{name:g,newValue:b}));return S},Uf}var d2=u2();const Vf=Zu(d2);function zp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function f2(){const e=[],t={run:n,use:i};return t;function n(...s){let l=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);u(null,...s);function u(p,...h){const g=e[++l];let f=-1;if(p){c(p);return}for(;++f<s.length;)(h[f]===null||h[f]===void 0)&&(h[f]=s[f]);s=h,g?p2(g,u)(...h):c(null,...h)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function p2(e,t){let n;return i;function i(...c){const u=e.length>c.length;let p;u&&c.push(s);try{p=e.apply(this,c)}catch(h){const g=h;if(u&&n)throw g;return s(g)}u||(p&&p.then&&typeof p.then=="function"?p.then(l,s):p instanceof Error?s(p):l(p))}function s(c,...u){n||(n=!0,t(c,...u))}function l(c){s(null,c)}}const Eo={basename:h2,dirname:m2,extname:g2,join:x2,sep:"/"};function h2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hl(e);let n=0,i=-1,s=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else i<0&&(l=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let c=-1,u=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(l){n=s+1;break}}else c<0&&(l=!0,c=s+1),u>-1&&(e.codePointAt(s)===t.codePointAt(u--)?u<0&&(i=s):(u=-1,i=c));return n===i?i=c:i<0&&(i=e.length),e.slice(n,i)}function m2(e){if(Hl(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function g2(e){Hl(e);let t=e.length,n=-1,i=0,s=-1,l=0,c;for(;t--;){const u=e.codePointAt(t);if(u===47){if(c){i=t+1;break}continue}n<0&&(c=!0,n=t+1),u===46?s<0?s=t:l!==1&&(l=1):s>-1&&(l=-1)}return s<0||n<0||l===0||l===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function x2(...e){let t=-1,n;for(;++t<e.length;)Hl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y2(n)}function y2(e){Hl(e);const t=e.codePointAt(0)===47;let n=w2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function w2(e,t){let n="",i=0,s=-1,l=0,c=-1,u,p;for(;++c<=e.length;){if(c<e.length)u=e.codePointAt(c);else{if(u===47)break;u=47}if(u===47){if(!(s===c-1||l===1))if(s!==c-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(p=n.lastIndexOf("/"),p!==n.length-1){p<0?(n="",i=0):(n=n.slice(0,p),i=n.length-1-n.lastIndexOf("/")),s=c,l=0;continue}}else if(n.length>0){n="",i=0,s=c,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,c):n=e.slice(s+1,c),i=c-s-1;s=c,l=0}else u===46&&l>-1?l++:l=-1}return n}function Hl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const k2={cwd:b2};function b2(){return"/"}function Gp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function v2(e){if(typeof e=="string")e=new URL(e);else if(!Gp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return S2(e)}function S2(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const Kf=["history","path","basename","stem","extname","dirname"];class z0{constructor(t){let n;t?Gp(t)?n={path:t}:typeof t=="string"||E2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":k2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Kf.length;){const l=Kf[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let s;for(s in n)Kf.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?Eo.basename(this.path):void 0}set basename(t){Xf(t,"basename"),Yf(t,"basename"),this.path=Eo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Eo.dirname(this.path):void 0}set dirname(t){_x(this.basename,"dirname"),this.path=Eo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Eo.extname(this.path):void 0}set extname(t){if(Yf(t,"extname"),_x(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Eo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gp(t)&&(t=v2(t)),Xf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Eo.basename(this.path,this.extname):void 0}set stem(t){Xf(t,"stem"),Yf(t,"stem"),this.path=Eo.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new On(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yf(e,t){if(e&&e.includes(Eo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Eo.sep+"`")}function Xf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _x(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function E2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const C2=(function(e){const i=this.constructor.prototype,s=i[e],l=function(){return s.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),N2={}.hasOwnProperty;class kh extends C2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=f2()}copy(){const t=new kh;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Vf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Jf("data",this.frozen),this.namespace[t]=n,this):N2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Jf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=du(t),i=this.parser||this.Parser;return qf("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),qf("process",this.parser||this.Parser),Zf("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(l,c){const u=du(t),p=i.parse(u);i.run(p,u,function(g,f,b){if(g||!f||!b)return h(g);const y=f,v=i.stringify(y,b);T2(v)?b.value=v:b.result=v,h(g,b)});function h(g,f){g||!f?c(g):l?l(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),qf("processSync",this.parser||this.Parser),Zf("processSync",this.compiler||this.Compiler),this.process(t,s),Ix("processSync","process",n),i;function s(l,c){n=!0,Nx(l),i=c}}run(t,n,i){Tx(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(c,u){const p=du(n);s.run(t,p,h);function h(g,f,b){const y=f||t;g?u(g):c?c(y):i(void 0,y,b)}}}runSync(t,n){let i=!1,s;return this.run(t,n,l),Ix("runSync","run",i),s;function l(c,u){Nx(c),s=u,i=!0}}stringify(t,n){this.freeze();const i=du(n),s=this.compiler||this.Compiler;return Zf("stringify",s),Tx(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Jf("use",this.frozen),t!=null)if(typeof t=="function")p(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...f]=h;p(g,f)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(s.settings=Vf(!0,s.settings,h.settings))}function u(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const f=h[g];l(f)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,g){let f=-1,b=-1;for(;++f<i.length;)if(i[f][0]===h){b=f;break}if(b===-1)i.push([h,...g]);else if(g.length>0){let[y,...v]=g;const S=i[b][1];zp(S)&&zp(y)&&(y=Vf(!0,S,y)),i[b]=[h,y,...v]}}}}const R2=new kh().freeze();function qf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Zf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Jf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tx(e){if(!zp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ix(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function du(e){return _2(e)?e:new z0(e)}function _2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function T2(e){return typeof e=="string"||I2(e)}function I2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lx=[],Ax={allowDangerousHtml:!0},A2=/^(https?|ircs?|mailto|xmpp)$/i,O2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function P2(e){const t=j2(e),n=M2(e);return D2(t.runSync(t.parse(n),n),e)}function j2(e){const t=e.rehypePlugins||Lx,n=e.remarkPlugins||Lx,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ax}:Ax;return R2().use(mC).use(n).use(c2,i).use(t)}function M2(e){const t=e.children||"",n=new z0;return typeof t=="string"&&(n.value=t),n}function D2(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,l=t.disallowedElements,c=t.skipHtml,u=t.unwrapDisallowed,p=t.urlTransform||F2;for(const g of O2)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+L2+g.id,void 0);return wh(e,h),J1(e,{Fragment:m.Fragment,components:s,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function h(g,f,b){if(g.type==="raw"&&b&&typeof f=="number")return c?b.children.splice(f,1):b.children[f]={type:"text",value:g.value},f;if(g.type==="element"){let y;for(y in Wf)if(Object.hasOwn(Wf,y)&&Object.hasOwn(g.properties,y)){const v=g.properties[y],S=Wf[y];(S===null||S.includes(g.tagName))&&(g.properties[y]=p(String(v||""),y,g))}}if(g.type==="element"){let y=n?!n.includes(g.tagName):l?l.includes(g.tagName):!1;if(!y&&i&&typeof f=="number"&&(y=!i(g,f,b)),y&&b&&typeof f=="number")return u&&g.children?b.children.splice(f,1,...g.children):b.children.splice(f,1),f}}}function F2(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||A2.test(e.slice(0,t))?e:""}function Ox(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function z2(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function G2(e,t,n){const s=td((n||{}).ignore||[]),l=B2(t);let c=-1;for(;++c<l.length;)F0(e,"text",u);function u(h,g){let f=-1,b;for(;++f<g.length;){const y=g[f],v=b?b.children:void 0;if(s(y,v?v.indexOf(y):void 0,b))return;b=y}if(b)return p(h,g)}function p(h,g){const f=g[g.length-1],b=l[c][0],y=l[c][1];let v=0;const T=f.children.indexOf(h);let R=!1,P=[];b.lastIndex=0;let j=b.exec(h.value);for(;j;){const D=j.index,E={index:j.index,input:j.input,stack:[...g,h]};let C=y(...j,E);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?b.lastIndex=D+1:(v!==D&&P.push({type:"text",value:h.value.slice(v,D)}),Array.isArray(C)?P.push(...C):C&&P.push(C),v=D+j[0].length,R=!0),!b.global)break;j=b.exec(h.value)}return R?(v<h.value.length&&P.push({type:"text",value:h.value.slice(v)}),f.children.splice(T,1,...P)):P=[h],T+P.length}}function B2(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([W2(s[0]),H2(s[1])])}return t}function W2(e){return typeof e=="string"?new RegExp(z2(e),"g"):e}function H2(e){return typeof e=="function"?e:function(){return e}}const Qf="phrasing",ep=["autolink","link","image","label"];function $2(){return{transforms:[Z2],enter:{literalAutolink:V2,literalAutolinkEmail:tp,literalAutolinkHttp:tp,literalAutolinkWww:tp},exit:{literalAutolink:q2,literalAutolinkEmail:X2,literalAutolinkHttp:K2,literalAutolinkWww:Y2}}}function U2(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qf,notInConstruct:ep},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qf,notInConstruct:ep},{character:":",before:"[ps]",after:"\\/",inConstruct:Qf,notInConstruct:ep}]}}function V2(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function tp(e){this.config.enter.autolinkProtocol.call(this,e)}function K2(e){this.config.exit.autolinkProtocol.call(this,e)}function Y2(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function X2(e){this.config.exit.autolinkEmail.call(this,e)}function q2(e){this.exit(e)}function Z2(e){G2(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,J2],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Q2]],{ignore:["link","linkReference"]})}function J2(e,t,n,i,s){let l="";if(!G0(s)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!eN(n)))return!1;const c=tN(n+i);if(!c[0])return!1;const u={type:"link",title:null,url:l+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[u,{type:"text",value:c[1]}]:u}function Q2(e,t,n,i){return!G0(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function eN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function tN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=Ox(e,"(");let l=Ox(e,")");for(;i!==-1&&s>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function G0(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||vs(n)||Ju(n))&&(!t||n!==47)}B0.peek=uN;function nN(){this.buffer()}function rN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function oN(){this.buffer()}function iN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=no(this.sliceSerialize(e)).toLowerCase(),n.label=t}function aN(e){this.exit(e)}function lN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=no(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cN(e){this.exit(e)}function uN(){return"["}function B0(e,t,n,i){const s=n.createTracker(i);let l=s.move("[^");const c=n.enter("footnoteReference"),u=n.enter("reference");return l+=s.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),c(),l+=s.move("]"),l}function dN(){return{enter:{gfmFootnoteCallString:nN,gfmFootnoteCall:rN,gfmFootnoteDefinitionLabelString:oN,gfmFootnoteDefinition:iN},exit:{gfmFootnoteCallString:sN,gfmFootnoteCall:aN,gfmFootnoteDefinitionLabelString:lN,gfmFootnoteDefinition:cN}}}function fN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:B0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,l,c){const u=l.createTracker(c);let p=u.move("[^");const h=l.enter("footnoteDefinition"),g=l.enter("label");return p+=u.move(l.safe(l.associationId(i),{before:p,after:"]"})),g(),p+=u.move("]:"),i.children&&i.children.length>0&&(u.shift(4),p+=u.move((t?`
144`:" ")+l.indentLines(l.containerFlow(i,u.current()),t?W0:pN))),h(),p}}function pN(e,t,n){return t===0?e:W0(e,t,n)}function W0(e,t,n){return(n?"":"    ")+e}const hN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];H0.peek=wN;function mN(){return{canContainEols:["delete"],enter:{strikethrough:xN},exit:{strikethrough:yN}}}function gN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hN}],handlers:{delete:H0}}}function xN(e){this.enter({type:"delete",children:[]},e)}function yN(e){this.exit(e)}function H0(e,t,n,i){const s=n.createTracker(i),l=n.enter("strikethrough");let c=s.move("~~");return c+=n.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),l(),c}function wN(){return"~"}function kN(e){return e.length}function bN(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||kN,l=[],c=[],u=[],p=[];let h=0,g=-1;for(;++g<e.length;){const S=[],T=[];let R=-1;for(e[g].length>h&&(h=e[g].length);++R<e[g].length;){const P=vN(e[g][R]);if(n.alignDelimiters!==!1){const j=s(P);T[R]=j,(p[R]===void 0||j>p[R])&&(p[R]=j)}S.push(P)}c[g]=S,u[g]=T}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<h;)l[f]=Px(i[f]);else{const S=Px(i);for(;++f<h;)l[f]=S}f=-1;const b=[],y=[];for(;++f<h;){const S=l[f];let T="",R="";S===99?(T=":",R=":"):S===108?T=":":S===114&&(R=":");let P=n.alignDelimiters===!1?1:Math.max(1,p[f]-T.length-R.length);const j=T+"-".repeat(P)+R;n.alignDelimiters!==!1&&(P=T.length+P+R.length,P>p[f]&&(p[f]=P),y[f]=P),b[f]=j}c.splice(1,0,b),u.splice(1,0,y),g=-1;const v=[];for(;++g<c.length;){const S=c[g],T=u[g];f=-1;const R=[];for(;++f<h;){const P=S[f]||"";let j="",D="";if(n.alignDelimiters!==!1){const E=p[f]-(T[f]||0),C=l[f];C===114?j=" ".repeat(E):C===99?E%2?(j=" ".repeat(E/2+.5),D=" ".repeat(E/2-.5)):(j=" ".repeat(E/2),D=j):D=" ".repeat(E)}n.delimiterStart!==!1&&!f&&R.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&P==="")&&(n.delimiterStart!==!1||f)&&R.push(" "),n.alignDelimiters!==!1&&R.push(j),R.push(P),n.alignDelimiters!==!1&&R.push(D),n.padding!==!1&&R.push(" "),(n.delimiterEnd!==!1||f!==h-1)&&R.push("|")}v.push(n.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return v.join(`
145`)}function vN(e){return e==null?"":String(e)}function Px(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function SN(e,t,n,i){const s=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const c=n.indentLines(n.containerFlow(e,l.current()),EN);return s(),c}function EN(e,t,n){return">"+(n?"":" ")+e}function CN(e,t){return jx(e,t.inConstruct,!0)&&!jx(e,t.notInConstruct,!1)}function jx(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Mx(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
146`&&CN(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
147`}function NN(e,t){const n=String(e);let i=n.indexOf(t),s=i,l=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++l>c&&(c=l):l=1,s=i+t.length,i=n.indexOf(t,s);return c}function RN(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function _N(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function TN(e,t,n,i){const s=_N(n),l=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(RN(e,n)){const f=n.enter("codeIndented"),b=n.indentLines(l,IN);return f(),b}const u=n.createTracker(i),p=s.repeat(Math.max(NN(l,s)+1,3)),h=n.enter("codeFenced");let g=u.move(p);if(e.lang){const f=n.enter(`codeFencedLang${c}`);g+=u.move(n.safe(e.lang,{before:g,after:" ",encode:["`"],...u.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${c}`);g+=u.move(" "),g+=u.move(n.safe(e.meta,{before:g,after:`
148`,encode:["`"],...u.current()})),f()}return g+=u.move(`
149`),l&&(g+=u.move(l+`
150`)),g+=u.move(p),h(),g}function IN(e,t,n){return(n?"":"    ")+e}function bh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function LN(e,t,n,i){const s=bh(n),l=s==='"'?"Quote":"Apostrophe",c=n.enter("definition");let u=n.enter("label");const p=n.createTracker(i);let h=p.move("[");return h+=p.move(n.safe(n.associationId(e),{before:h,after:"]",...p.current()})),h+=p.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(n.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(u=n.enter("destinationRaw"),h+=p.move(n.safe(e.url,{before:h,after:e.title?" ":`
151`,...p.current()}))),u(),e.title&&(u=n.enter(`title${l}`),h+=p.move(" "+s),h+=p.move(n.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),u()),c(),h}function AN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ol(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Du(e,t,n){const i=Ra(e),s=Ra(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}$0.peek=ON;function $0(e,t,n,i){const s=AN(n),l=n.enter("emphasis"),c=n.createTracker(i),u=c.move(s);let p=c.move(n.containerPhrasing(e,{after:s,before:u,...c.current()}));
vendor: 6,293 bytes, lines 151-156
151const h=p.charCodeAt(0),g=Du(i.before.charCodeAt(i.before.length-1),h,s);g.inside&&(p=Ol(h)+p.slice(1));const f=p.charCodeAt(p.length-1),b=Du(i.after.charCodeAt(0),f,s);b.inside&&(p=p.slice(0,-1)+Ol(f));const y=c.move(s);return l(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},u+p+y}function ON(e,t,n){return n.options.emphasis||"*"}function PN(e,t){let n=!1;return wh(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Dp}),!!((!e.depth||e.depth<3)&&fh(e)&&(t.options.setext||n))}function jN(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(PN(e,n)){const g=n.enter("headingSetext"),f=n.enter("phrasing"),b=n.containerPhrasing(e,{...l.current(),before:`
152`,after:`
153`});return f(),g(),b+`
154`+(s===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
155`))+1))}const c="#".repeat(s),u=n.enter("headingAtx"),p=n.enter("phrasing");l.move(c+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
156`,...l.current()});return/^[\t ]/.test(h)&&(h=Ol(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,n.options.closeAtx&&(h+=" "+c),p(),u(),h}U0.peek=MN;function U0(e){return e.value||""}function MN(){return"<"}V0.peek=DN;function V0(e,t,n,i){const s=bh(n),l=s==='"'?"Quote":"Apostrophe",c=n.enter("image");let u=n.enter("label");const p=n.createTracker(i);let h=p.move("![");return h+=p.move(n.safe(e.alt,{before:h,after:"]",...p.current()})),h+=p.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=p.move("<"),h+=p.move(n.safe(e.url,{before:h,after:">",...p.current()})),h+=p.move(">")):(u=n.enter("destinationRaw"),h+=p.move(n.safe(e.url,{before:h,after:e.title?" ":")",...p.current()}))),u(),e.title&&(u=n.enter(`title${l}`),h+=p.move(" "+s),h+=p.move(n.safe(e.title,{before:h,after:s,...p.current()})),h+=p.move(s),u()),h+=p.move(")"),c(),h}function DN(){return"!"}K0.peek=FN;function K0(e,t,n,i){const s=e.referenceType,l=n.enter("imageReference");let c=n.enter("label");const u=n.createTracker(i);let p=u.move("![");const h=n.safe(e.alt,{before:p,after:"]",...u.current()});p+=u.move(h+"]["),c();const g=n.stack;n.stack=[],c=n.enter("reference");const f=n.safe(n.associationId(e),{before:p,after:"]",...u.current()});return c(),n.stack=g,l(),s==="full"||!h||h!==f?p+=u.move(f+"]"):s==="shortcut"?p=p.slice(0,-1):p+=u.move("]"),p}function FN(){return"!"}Y0.peek=zN;function Y0(e,t,n){let i=e.value||"",s="`",l=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const c=n.unsafe[l],u=n.compilePattern(c);let p;if(c.atBreak)for(;p=u.exec(i);){let h=p.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(p.index+1)}}return s+i+s}function zN(){return"`"}function X0(e,t){const n=fh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}q0.peek=GN;function q0(e,t,n,i){const s=bh(n),l=s==='"'?"Quote":"Apostrophe",c=n.createTracker(i);let u,p;if(X0(e,n)){const g=n.stack;n.stack=[],u=n.enter("autolink");let f=c.move("<");return f+=c.move(n.containerPhrasing(e,{before:f,after:">",...c.current()})),f+=c.move(">"),u(),n.stack=g,f}u=n.enter("link"),p=n.enter("label");let h=c.move("[");return h+=c.move(n.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=n.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(n.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(p=n.enter("destinationRaw"),h+=c.move(n.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),p(),e.title&&(p=n.enter(`title${l}`),h+=c.move(" "+s),h+=c.move(n.safe(e.title,{before:h,after:s,...c.current()})),h+=c.move(s),p()),h+=c.move(")"),u(),h}function GN(e,t,n){return X0(e,n)?"<":"["}Z0.peek=BN;function Z0(e,t,n,i){const s=e.referenceType,l=n.enter("linkReference");let c=n.enter("label");const u=n.createTracker(i);let p=u.move("[");const h=n.containerPhrasing(e,{before:p,after:"]",...u.current()});p+=u.move(h+"]["),c();const g=n.stack;n.stack=[],c=n.enter("reference");const f=n.safe(n.associationId(e),{before:p,after:"]",...u.current()});return c(),n.stack=g,l(),s==="full"||!h||h!==f?p+=u.move(f+"]"):s==="shortcut"?p=p.slice(0,-1):p+=u.move("]"),p}function BN(){return"["}function vh(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function WN(e){const t=vh(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function HN(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function J0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function $N(e,t,n,i){const s=n.enter("list"),l=n.bulletCurrent;let c=e.ordered?HN(n):vh(n);const u=e.ordered?c==="."?")":".":WN(n);let p=t&&n.bulletLastUsed?c===n.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(p=!0),J0(n)===c&&g){let f=-1;for(;++f<e.children.length;){const b=e.children[f];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=u),n.bulletCurrent=c;const h=n.containerFlow(e,i);return n.bulletLastUsed=c,n.bulletCurrent=l,s(),h}function UN(e){const t=e.options.listItemIndent||"one";
vendor: 5,906 bytes, lines 156-158
156if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function VN(e,t,n,i){const s=UN(n);let l=n.bulletCurrent||vh(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let c=l.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const u=n.createTracker(i);u.move(l+" ".repeat(c-l.length)),u.shift(c);const p=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,u.current()),g);return p(),h;function g(f,b,y){return b?(y?"":" ".repeat(c))+f:(y?l:l+" ".repeat(c-l.length))+f}}function KN(e,t,n,i){const s=n.enter("paragraph"),l=n.enter("phrasing"),c=n.containerPhrasing(e,i);return l(),s(),c}const YN=td(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function XN(e,t,n,i){return(e.children.some(function(c){return YN(c)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function qN(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Q0.peek=ZN;function Q0(e,t,n,i){const s=qN(n),l=n.enter("strong"),c=n.createTracker(i),u=c.move(s+s);let p=c.move(n.containerPhrasing(e,{after:s,before:u,...c.current()}));const h=p.charCodeAt(0),g=Du(i.before.charCodeAt(i.before.length-1),h,s);g.inside&&(p=Ol(h)+p.slice(1));const f=p.charCodeAt(p.length-1),b=Du(i.after.charCodeAt(0),f,s);b.inside&&(p=p.slice(0,-1)+Ol(f));const y=c.move(s+s);return l(),n.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},u+p+y}function ZN(e,t,n){return n.options.strong||"*"}function JN(e,t,n,i){return n.safe(e.value,i)}function QN(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function eR(e,t,n){const i=(J0(n)+(n.options.ruleSpaces?" ":"")).repeat(QN(n));return n.options.ruleSpaces?i.slice(0,-1):i}const ew={blockquote:SN,break:Mx,code:TN,definition:LN,emphasis:$0,hardBreak:Mx,heading:jN,html:U0,image:V0,imageReference:K0,inlineCode:Y0,link:q0,linkReference:Z0,list:$N,listItem:VN,paragraph:KN,root:XN,strong:Q0,text:JN,thematicBreak:eR};function tR(){return{enter:{table:nR,tableData:Dx,tableHeader:Dx,tableRow:oR},exit:{codeText:iR,table:rR,tableData:np,tableHeader:np,tableRow:np}}}function nR(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function rR(e){this.exit(e),this.data.inTable=void 0}function oR(e){this.enter({type:"tableRow",children:[]},e)}function np(e){this.exit(e)}function Dx(e){this.enter({type:"tableCell",children:[]},e)}function iR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,sR));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function sR(e,t){return t==="|"?t:e}function aR(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
157`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:p,tableRow:u}};function c(y,v,S,T){return h(g(y,S,T),y.align)}function u(y,v,S,T){const R=f(y,S,T),P=h([R]);return P.slice(0,P.indexOf(`
158`))}function p(y,v,S,T){const R=S.enter("tableCell"),P=S.enter("phrasing"),j=S.containerPhrasing(y,{...T,before:l,after:l});return P(),R(),j}function h(y,v){return bN(y,{align:v,alignDelimiters:i,padding:n,stringLength:s})}function g(y,v,S){const T=y.children;let R=-1;const P=[],j=v.enter("table");for(;++R<T.length;)P[R]=f(T[R],v,S);return j(),P}function f(y,v,S){const T=y.children;let R=-1;const P=[],j=v.enter("tableRow");for(;++R<T.length;)P[R]=p(T[R],y,v,S);return j(),P}function b(y,v,S){let T=ew.inlineCode(y,v,S);return S.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function lR(){return{exit:{taskListCheckValueChecked:Fx,taskListCheckValueUnchecked:Fx,paragraph:uR}}}function cR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:dR}}}function Fx(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function uR(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let l=-1,c;for(;++l<s.length;){const u=s[l];if(u.type==="paragraph"){c=u;break}}c===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function dR(e,t,n,i){const s=e.children[0],l=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",u=n.createTracker(i);l&&u.move(c);let p=ew.listItem(e,t,n,{...i,...u.current()});return l&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),p;function h(g){return g+c}}function fR(){return[$2(),dN(),mN(),tR(),lR()]}function pR(e){return{extensions:[U2(),fN(e),gN(),aR(e),cR()]}}const hR={tokenize:kR,partial:!0},tw={tokenize:bR,partial:!0},nw={tokenize:vR,partial:!0},rw={tokenize:SR,partial:!0},mR={tokenize:ER,partial:!0},ow={name:"wwwAutolink",tokenize:yR,previous:sw},iw={name:"protocolAutolink",tokenize:wR,previous:aw},ti={name:"emailAutolink",tokenize:xR,previous:lw},_o={};function gR(){return{text:_o}}let ws=48;
vendor: 1,675 bytes, line 158
158for(;ws<123;)_o[ws]=ti,ws++,ws===58?ws=65:ws===91&&(ws=97);_o[43]=ti;_o[45]=ti;_o[46]=ti;_o[95]=ti;_o[72]=[ti,iw];_o[104]=[ti,iw];_o[87]=[ti,ow];_o[119]=[ti,ow];function xR(e,t,n){const i=this;let s,l;return c;function c(f){return!Bp(f)||!lw.call(i,i.previous)||Sh(i.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return Bp(f)?(e.consume(f),u):f===64?(e.consume(f),p):n(f)}function p(f){return f===46?e.check(mR,g,h)(f):f===45||f===95||An(f)?(l=!0,e.consume(f),p):g(f)}function h(f){return e.consume(f),s=!0,p}function g(f){return l&&s&&Wn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function yR(e,t,n){const i=this;return s;function s(c){return c!==87&&c!==119||!sw.call(i,i.previous)||Sh(i.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hR,e.attempt(tw,e.attempt(nw,l),n),n)(c))}function l(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function wR(e,t,n){const i=this;let s="",l=!1;return c;function c(f){return(f===72||f===104)&&aw.call(i,i.previous)&&!Sh(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(f),e.consume(f),u):n(f)}function u(f){if(Wn(f)&&s.length<5)return s+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const b=s.toLowerCase();if(b==="http"||b==="https")return e.consume(f),p}return n(f)}function p(f){return f===47?(e.consume(f),l?h:(l=!0,p)):n(f)}function h(f){return f===null||Pu(f)||Ot(f)||vs(f)||Ju(f)?n(f):e.attempt(tw,e.attempt(nw,g),n)(f)}function g(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function kR(e,t,n){let i=0;return s;
vendor: 4,199 bytes, line 158
158function s(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),s):c===46&&i===3?(e.consume(c),l):n(c)}function l(c){return c===null?n(c):t(c)}}function bR(e,t,n){let i,s,l;return c;function c(h){return h===46||h===95?e.check(rw,p,u)(h):h===null||Ot(h)||vs(h)||h!==45&&Ju(h)?p(h):(l=!0,e.consume(h),c)}function u(h){return h===95?i=!0:(s=i,i=void 0),e.consume(h),c}function p(h){return s||i||!l?n(h):t(h)}}function vR(e,t){let n=0,i=0;return s;function s(c){return c===40?(n++,e.consume(c),s):c===41&&i<n?l(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(rw,t,l)(c):c===null||Ot(c)||vs(c)?t(c):(e.consume(c),s)}function l(c){return c===41&&i++,e.consume(c),s}}function SR(e,t,n){return i;function i(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),i):u===38?(e.consume(u),l):u===93?(e.consume(u),s):u===60||u===null||Ot(u)||vs(u)?t(u):n(u)}function s(u){return u===null||u===40||u===91||Ot(u)||vs(u)?t(u):i(u)}function l(u){return Wn(u)?c(u):n(u)}function c(u){return u===59?(e.consume(u),i):Wn(u)?(e.consume(u),c):n(u)}}function ER(e,t,n){return i;function i(l){return e.consume(l),s}function s(l){return An(l)?n(l):t(l)}}function sw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ot(e)}function aw(e){return!Wn(e)}function lw(e){return!(e===47||Bp(e))}function Bp(e){return e===43||e===45||e===46||e===95||An(e)}function Sh(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const CR={tokenize:OR,partial:!0};function NR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:IR,continuation:{tokenize:LR},exit:AR}},text:{91:{name:"gfmFootnoteCall",tokenize:TR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RR,resolveTo:_R}}}}function RR(e,t,n){const i=this;let s=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;s--;){const p=i.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return u;function u(p){if(!c||!c._balanced)return n(p);const h=no(i.sliceSerialize({start:c.end,end:i.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),t(p))}}function _R(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",l,t],["enter",c,t],["exit",c,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...u),e}function TR(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,c;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),p}function p(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(f){if(l>999||f===93&&!c||f===null||f===91||Ot(f))return n(f);if(f===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return s.includes(no(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}
vendor: 4,598 bytes, line 158
158return Ot(f)||(c=!0),l++,e.consume(f),f===92?g:h}function g(f){return f===91||f===92||f===93?(e.consume(f),l++,h):h(f)}}function IR(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,c=0,u;return p;function p(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(v)}function g(v){if(c>999||v===93&&!u||v===null||v===91||Ot(v))return n(v);if(v===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=no(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Ot(v)||(u=!0),c++,e.consume(v),v===92?f:g}function f(v){return v===91||v===92||v===93?(e.consume(v),c++,g):g(v)}function b(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),s.includes(l)||s.push(l),ht(e,y,"gfmFootnoteDefinitionWhitespace")):n(v)}function y(v){return t(v)}}function LR(e,t,n){return e.check(Wl,t,e.attempt(CR,t,n))}function AR(e){e.exit("gfmFootnoteDefinition")}function OR(e,t,n){const i=this;return ht(e,s,"gfmFootnoteDefinitionIndent",5);function s(l){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(l):n(l)}}function PR(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(c,u){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let h=p;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[p][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[p][1].end)},f={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[p][1].start)},b=[["enter",g,u],["enter",c[h][1],u],["exit",c[h][1],u],["enter",f,u]],y=u.parser.constructs.insideSpan.null;y&&yr(b,b.length,0,Qu(y,c.slice(h+1,p),u)),yr(b,b.length,0,[["exit",f,u],["enter",c[p][1],u],["exit",c[p][1],u],["exit",g,u]]),yr(c,h-1,p-h+3,b),p=h+b.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function l(c,u,p){const h=this.previous,g=this.events;let f=0;return b;function b(v){return h===126&&g[g.length-1][1].type!=="characterEscape"?p(v):(c.enter("strikethroughSequenceTemporary"),y(v))}function y(v){const S=Ra(h);if(v===126)return f>1?p(v):(c.consume(v),f++,y);if(f<2&&!n)return p(v);const T=c.exit("strikethroughSequenceTemporary"),R=Ra(v);return T._open=!R||R===2&&!!S,T._close=!S||S===2&&!!R,u(v)}}}class jR{constructor(){this.map=[]}add(t,n,i){MR(this,t,n,i)}consume(t){if(this.map.sort(function(l,c){return l[0]-c[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const l of s)t.push(l);s=i.pop()}this.map.length=0}}function MR(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function DR(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function FR(){return{flow:{null:{name:"table",tokenize:zR,resolveAll:GR}}}}function zR(e,t,n){const i=this;let s=0,l=0,c;return u;function u(F){let $=i.events.length-1;for(;$>-1;){const ae=i.events[$][1].type;if(ae==="lineEnding"||ae==="linePrefix")$--;else break}const Y=$>-1?i.events[$][1].type:null,ce=Y==="tableHead"||Y==="tableRow"?C:p;return ce===C&&i.parser.lazy[i.now().line]?n(F):ce(F)}
vendor: 8,370 bytes, lines 158-189
158function p(F){return e.enter("tableHead"),e.enter("tableRow"),h(F)}function h(F){return F===124||(c=!0,l+=1),g(F)}function g(F){return F===null?n(F):Ke(F)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),y):n(F):lt(F)?ht(e,g,"whitespace")(F):(l+=1,c&&(c=!1,s+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),c=!0,g):(e.enter("data"),f(F)))}function f(F){return F===null||F===124||Ot(F)?(e.exit("data"),g(F)):(e.consume(F),F===92?b:f)}function b(F){return F===92||F===124?(e.consume(F),f):f(F)}function y(F){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(F):(e.enter("tableDelimiterRow"),c=!1,lt(F)?ht(e,v,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):v(F))}function v(F){return F===45||F===58?T(F):F===124?(c=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),S):E(F)}function S(F){return lt(F)?ht(e,T,"whitespace")(F):T(F)}function T(F){return F===58?(l+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),R):F===45?(l+=1,R(F)):F===null||Ke(F)?D(F):E(F)}function R(F){return F===45?(e.enter("tableDelimiterFiller"),P(F)):E(F)}function P(F){return F===45?(e.consume(F),P):F===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),j):(e.exit("tableDelimiterFiller"),j(F))}function j(F){return lt(F)?ht(e,D,"whitespace")(F):D(F)}function D(F){return F===124?v(F):F===null||Ke(F)?!c||s!==l?E(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):E(F)}function E(F){return n(F)}function C(F){return e.enter("tableRow"),L(F)}function L(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),L):F===null||Ke(F)?(e.exit("tableRow"),t(F)):lt(F)?ht(e,L,"whitespace")(F):(e.enter("data"),I(F))}function I(F){return F===null||F===124||Ot(F)?(e.exit("data"),L(F)):(e.consume(F),F===92?H:I)}function H(F){return F===92||F===124?(e.consume(F),I):I(F)}}function GR(e,t){let n=-1,i=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,p=0,h,g,f;const b=new jR;for(;++n<e.length;){const y=e[n],v=y[1];y[0]==="enter"?v.type==="tableHead"?(u=!1,p!==0&&(zx(b,t,p,h,g),g=void 0,p=0),h={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},b.add(n,0,[["enter",h,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(i=!0,f=void 0,l=[0,0,0,0],c=[0,n+1,0,0],u&&(u=!1,g={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},b.add(n,0,[["enter",g,t]])),s=v.type==="tableDelimiterRow"?2:g?3:1):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(l[1]!==0&&(c[0]=c[1],f=fu(b,t,l,s,void 0,f),l=[0,0,0,0]),c[2]=n)):v.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(c[0]=c[1],f=fu(b,t,l,s,void 0,f)),l=c,c=[l[1],n,0,0])):v.type==="tableHead"?(u=!0,p=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(p=n,l[1]!==0?(c[0]=c[1],f=fu(b,t,l,s,n,f)):c[1]!==0&&(f=fu(b,t,c,s,n,f)),s=0):s&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(c[3]=n)}for(p!==0&&zx(b,t,p,h,g),b.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=DR(t.events,n))}return e}function fu(e,t,n,i,s,l){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},Sa(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const p=Sa(t.events,n[1]);if(l={type:c,start:Object.assign({},p),end:Object.assign({},p)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=Sa(t.events,n[2]),g=Sa(t.events,n[3]),f={type:u,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",f,t]]),i!==2){const b=t.events[n[2]],y=t.events[n[3]];if(b[1].end=Object.assign({},y[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,S=n[3]-n[2]-1;e.add(v,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return s!==void 0&&(l.end=Object.assign({},Sa(t.events,s)),e.add(s,0,[["exit",l,t]]),l=void 0),l}function zx(e,t,n,i,s){const l=[],c=Sa(t.events,n);s&&(s.end=Object.assign({},c),l.push(["exit",s,t])),i.end=Object.assign({},c),l.push(["exit",i,t]),e.add(n+1,0,l)}function Sa(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const BR={name:"tasklistCheck",tokenize:HR};function WR(){return{text:{91:BR}}}function HR(e,t,n){const i=this;return s;function s(p){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),l)}function l(p){return Ot(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),c):n(p)}function c(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(p)}function u(p){return Ke(p)?t(p):lt(p)?e.check({tokenize:$R},t,n)(p):n(p)}}function $R(e,t,n){return ht(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function UR(e){return w0([gR(),NR(),PR(e),FR(),WR()])}const VR={};function KR(e){const t=this,n=e||VR,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(UR(n)),l.push(fR()),c.push(pR(n))}const YR=`# 개인정보처리방침
159
160> 🛡️ **핵심 프라이버시 원칙 및 서비스 고지**  
161> 1. **보안 및 제재 목적 전용**: 본 서비스에서 자동으로 수집되는 네트워크 정보(IP 주소) 및 기기 식별값(브라우저 핑거프린트, 디바이스 토큰)은 **온전하게 비정상적인 어뷰징 방지 및 악성 이용자 제재(차단) 목적으로만 사용**되며, 마케팅·광고·수익화 등 다른 어떠한 용도로도 일절 사용되지 않습니다.  
162> 2. **철저한 자동 파기**: 수집된 모든 정보는 본 방침에 명시된 보유 기간(일반 채팅 및 접속 식별 로그 90일 등)이 경과하면 복구 불가능한 방법으로 지체 없이 영구 파기됩니다.  
163> 3. **가상 콘텐츠 안내**: 본 사이트는 가상의 인터랙티브 콘텐츠이며, 실제 흡연을 조장하거나 권장하지 않습니다.
164
165damta.world(이하 "서비스")는 이용자의 개인정보를 소중히 여기며, 「개인정보 보호법」 제30조에 따라 다음과 같이 개인정보처리방침을 수립·공개합니다.
166
167---
168
169## 1. 개인정보 처리목적 및 수집 항목
170
171| 처리 목적 | 수집 항목 | 수집 방법 |
172| --- | --- | --- |
173| 서비스 이용 환경 식별 및 어뷰징 방지 | IP 주소, 브라우저 핑거프린트, 디바이스 토큰(기기 식별용 고유값) | 서비스 접속 시 자동 수집 |
174| 실시간 채팅 서비스 제공 및 커뮤니티 질서 유지 | 닉네임, **채팅 메시지**, 연관 식별 정보(IP, 디바이스 토큰 등) | 서비스 이용 시 자동 생성 및 수집 |
175| 고정 닉네임 기능 제공 | 고정 닉네임, 연동 디바이스 토큰 | 이용자 신청 및 기기 연동 시 |
176| 신고 접수 및 처리, 분쟁 대응 | 신고된 채팅 메시지, 신고자·피신고자 IP 주소 및 기기 식별값 | 신고 접수 시 자동 수집 |
177
178> damta.world는 별도의 회원가입 절차가 없으며, 주민등록번호, 결제정보 등 민감정보는 일체 수집하지 않습니다.  
179> 또한 만 14세 미만 아동을 대상으로 하지 않으며 관련 정보를 의도적으로 수집하지 않습니다. 만약 법정대리인의 요청이나 제보 등을 통해 만 14세 미만 아동의 정보가 수집된 사실을 인지할 경우, 해당 정보를 지체 없이 파기합니다.
180
181---
182
183## 2. 개인정보의 보유 및 이용 기간
184
185수집된 개인정보는 목적이 달성되면 즉시 파기합니다. 단, 아래의 목적과 기간 동안은 안전하게 보관 후 파기합니다.
186
187| 수집 항목 | 보유 기간 | 근거 및 보관 목적 |
188| --- | --- | --- |
189| **모든 채팅 메시지 및 연관 식별 정보(IP, 기기토큰 등)** | 작성일로부터 **3개월(90일) 후 자동 영구 파기** | 서비스 운영, 통신비밀보호법(§15조의2) 준용, 모욕·통매음 등 분쟁 해결 및 수사기관 협조 |
190| **신고된 채팅 메시지 및 관련 IP** | 신고 접수일로부터 **3년** | 민사 분쟁 소멸시효(민법 §766) 대비 |
191| **악성 이용자 제재 정보(차단된 핑거프린트, 디바이스 토큰)** | **영구 보관** (서비스 종료 또는 제재 해제 시까지) | 악성 이용자 재접속 차단, 부정 이용 방지 및 서비스 보안 |
192| **악성 이용자 차단 IP** | 차단일로부터 **2일** | 유동 IP 오차단 방지 및 임시 차단 |
193| **고정 닉네임 및 연동 기기 식별값** | 고정 닉네임 **이용 해제 또는 회수 시까지** | 고정 닉네임 점유권 보호 및 기기 연동 서비스 제공 |
194
195---
196
197## 3. 개인정보의 제3자 제공
198
199서비스는 이용자의 개인정보를 원칙적으로 제3자에게 제공하지 않습니다.
200
201단, 다음의 경우에는 예외로 합니다.
202- 이용자가 사전에 동의한 경우
203- 법령에 의거하거나 수사기관의 적법한 법적 절차(영장 등)에 따른 요청이 있는 경우
204
205---
206
207## 4. 개인정보 처리의 위탁 및 국외 이전
208
209서비스는 원활하고 안정적인 서비스 제공 및 이용 분석을 위해 아래와 같이 개인정보 처리 업무를 위탁 및 국외 이전하고 있습니다.
210
211### [국내 위탁]
212| 수탁자 | 위탁 업무 | 보관 국가 |
213| --- | --- | --- |
214| Oracle Corporation (Oracle Cloud Infrastructure) | 서비스 운영을 위한 클라우드 인프라 및 데이터베이스 운영·보관 | 대한민국 (춘천 리전) |
215
216### [국외 이전 (위탁)]
217| 항목 | 내용 |
218| --- | --- |
219| 이전받는 자 | **Google LLC** (https://analytics.google.com/) |
220| 이전 국가 | **미국 (USA)** |
221| 이전 일시 및 방법 | 웹사이트 이용 시 네트워크(HTTPS)를 통해 실시간 자동 전송 |
222| 이전 항목 | 쿠키(Cookie) 식별자, 기기 및 브라우저 정보(OS, 브라우저 종류/버전, 화면 해상도 등), 서비스 이용 기록(페이지뷰, 체류시간 등) |
223| 이전 목적 | **Google Analytics 4(GA4)**를 통한 웹사이트 방문자 트래픽 및 이용 통계 분석, 서비스 품질 개선 |
224| 보유 및 이용 기간 | GA4 데이터 보관 정책 기준 (최대 14개월 후 자동 삭제) |
225| 거부 방법 | 이용자는 브라우저 쿠키 차단 설정을 이용하거나, Google이 제공하는 [Google Analytics 차단 브라우저 부가기능(Opt-out)](https://tools.google.com/dlpage/gaoptout)을 설치하여 국외 이전을 거부할 수 있습니다. |
226
227---
228
229## 5. 정보주체의 권리 및 행사 방법
230
231이용자는 개인정보 열람·정정·삭제·처리정지를 [email protected]으로 요청할 수 있으며, 접수 후 10일 이내 처리합니다.
232
233---
234
235## 6. 개인정보의 파기 절차 및 방법
236
237보유 기간이 경과하거나 처리 목적이 달성된 경우 지체 없이 파기합니다.
238
239- **전자적 파일** : 복구 불가능한 방법으로 영구 삭제 (스케줄러 자동 삭제)
240- **기록·출력물** : 해당 없음 (종이 문서 미사용)
241
242---
243
244## 7. 개인정보 자동 수집 장치의 설치·운영 및 거부
245
246서비스는 이용자 식별, 어뷰징 방지 및 웹사이트 통계 분석을 위해 **브라우저 핑거프린트**, **IP 주소**, **디바이스 토큰**, **쿠키(Cookie)**를 자동으로 수집합니다.
247
2481. **브라우저 핑거프린트**: 브라우저 환경 정보를 기반으로 식별값을 생성하여 서비스 보안 및 어뷰징 방지에 사용됩니다.
2492. **디바이스 토큰**: 브라우저의 로컬 저장소(localStorage)에 고유 식별값을 저장하여 기기를 구분하는 데 사용됩니다.
2503. **쿠키(Cookie)**: Google Analytics 등 웹 통계 분석 도구를 운영하기 위해 브라우저에 임의의 고유 식별자를 생성·저장합니다.
251
252### 쿠키 설치·운영 및 거부 방법
253- 이용자는 웹 브라우저 설정을 통해 쿠키 허용 여부를 선택하거나 모든 쿠키의 저장을 거부할 수 있습니다.
254  - **Chrome**: 설정 > 개인정보 보호 및 보안 > 서드 파티 쿠키 차단
255  - **Safari**: 환경설정 > 개인정보 보호 > 모든 쿠키 차단
256  - **Google Analytics 수집 거부**: [Google Analytics 차단 브라우저 부가 기능](https://tools.google.com/dlpage/gaoptout) 설치
257
258---
259
260## 8. 개인정보 보호책임자
261
262| 구분 | 내용 |
263| --- | --- |
264| 책임자 | damta.world 운영자 |
265| 이메일 | [email protected] |
266| 처리 기간 | 접수 후 10일 이내 |
267
268개인정보 관련 불만 및 피해 구제는 아래 기관에 문의하실 수 있습니다.
269
270- **개인정보 침해신고센터** : privacy.kisa.or.kr / 국번없이 118
271- **개인정보 분쟁조정위원회** : www.kopico.go.kr / 1833-6972
272- **대검찰청 사이버수사과** : www.spo.go.kr / 국번없이 1301
273- **경찰청 사이버수사국** : ecrm.police.go.kr / 국번없이 182
274
275---
276
277## 9. 개인정보처리방침의 변경
278
279본 방침은 **2026년 3월 25일**부터 시행됩니다. 내용이 변경될 경우 서비스 내 공지 또는 본 페이지를 통해 안내합니다.
280
281---
282
283*damta.world — 온라인 담타 커뮤니티*`,XR=`# Privacy Policy
284
285> 🛡️ **Core Privacy Principles & Service Notice**  
286> 1. **Strictly for Security & Moderation**: Network data (IP address) and device identifiers (browser fingerprint, device token) collected automatically are **used solely and exclusively for preventing abuse and sanctioning (banning) malicious users**. They are never used for marketing, advertising, monetization, or any other purposes.  
287> 2. **Strict Automated Destruction**: All collected data is permanently and irreversibly destroyed without delay upon the expiration of the retention periods specified in this policy (e.g., automated 90-day purge for chat and connection logs).  
288> 3. **Virtual Content Notice**: This site provides virtual interactive content and does not promote or encourage actual smoking.
289
290damta.world ("Service") values users' personal information and establishes and discloses this Privacy Policy in compliance with applicable privacy laws.
291
292---
293
294## 1. Purpose of Processing and Data Collected
295
296| Purpose | Data Collected | Collection Method |
297| --- | --- | --- |
298| Service environment identification and abuse prevention | IP address, browser fingerprint, device token (unique device identifier) | Automatically collected upon connection |
299| Real-time chat service and community moderation | Nickname, **chat messages**, associated identifiers (IP, device token) | Automatically generated & collected during service use |
300| Fixed nickname feature | Fixed nickname, linked device token | Upon user registration & device linking |
301| Report processing & dispute resolution | Reported chat messages, reporter & reportee IP addresses & identifiers | Automatically collected upon report submission |
302
303> damta.world does not require a user registration process and never collects sensitive personal information (such as social security numbers, credit card details, etc.).  
304> The service is not directed to children under 14 (or under 13 in the United States) and does not knowingly collect their information. If we become aware or are notified by a legal guardian that personal data of a child has been collected, we will delete such data without delay.
305
306---
307
308## 2. Retention and Processing Period
309
310Collected personal information is destroyed without delay once the processing purpose is fulfilled. However, specific records are retained for the periods stated below:
311
312| Data Category | Retention Period | Legal Basis & Purpose |
313| --- | --- | --- |
314| **All chat messages and associated identifiers (IP, device token, etc.)** | **Automatically and permanently deleted after 3 months (90 days)** | Service operations, Protection of Communications Secrets Act, dispute resolution & law enforcement cooperation |
315| **Reported chat messages and related IP addresses** | **3 years** from report submission | Preparation for civil dispute statutes of limitations |
316| **Sanction records for abusive users (banned fingerprint, device token)** | **Permanent retention** (until service termination or ban revocation) | Preventing re-entry of abusive users, service security & fraud prevention |
317| **Temporarily banned IP addresses** | **2 days** from ban date | Prevention of erroneous bans on dynamic IPs |
318| **Fixed nickname & linked device identifiers** | **Until cancellation or reclamation** of the fixed nickname | Protection of nickname reservation and device linking features |
319
320---
321
322## 3. Provision of Personal Information to Third Parties
323
324The Service does not provide users' personal information to third parties, except in the following circumstances:
325- When the user has given prior consent
326- When required by applicable law or pursuant to lawful legal processes (e.g., warrants) issued by investigative authorities
327
328---
329
330## 4. Delegation and International Transfer of Personal Data
331
332The Service entrusts and transfers data internationally for reliable operations and analytics:
333
334### [Domestic Infrastructure]
335| Service Provider | Entrusted Task | Storage Location |
336| --- | --- | --- |
337| Oracle Corporation (Oracle Cloud Infrastructure) | Cloud infrastructure & database hosting for service operations | Republic of Korea (Chuncheon Region) |
338
339### [International Transfer (Analytics & Ads)]
340| Category | Details |
341| --- | --- |
342| Recipient | **Google LLC** (https://analytics.google.com/) |
343| Destination Country | **United States of America (USA)** |
344| Transfer Method & Timing | Transmitted automatically in real-time via HTTPS during website use |
345| Data Transferred | Cookie identifiers, device & browser info (OS, browser type/version, screen resolution), usage logs (page views, session duration) |
346| Purpose | Website traffic & usage analytics via **Google Analytics 4 (GA4)**, service quality improvement |
347| Retention Period | In accordance with GA4 data retention policy (automatically deleted after up to 14 months) |
348| Opt-out Method | You may block cookies via browser settings or install the [Google Analytics Opt-out Browser Add-on](https://tools.google.com/dlpage/gaoptout). |
349
350---
351
352## 5. Rights of Data Subjects and How to Exercise Them
353
354Users may request access, correction, deletion, or suspension of processing of their personal data by contacting [email protected]. Requests will be processed within 10 business days.
355
356---
357
358## 6. Destruction Procedures and Methods
359
360When retention periods expire or processing purposes are fulfilled, data is destroyed without delay:
361- **Electronic files**: Permanently deleted using irreversible technical methods (automated cleanup schedulers).
362- **Physical records**: N/A (no paper documents used).
363
364---
365
366## 7. Automatic Data Collection Tools and Cookies
367
368The Service uses **browser fingerprints**, **IP addresses**, **device tokens**, and **Cookies** to prevent abuse and analyze traffic.
369
370- Users can manage cookie preferences via browser settings:
371  - **Chrome**: Settings > Privacy and security > Third-party cookies
372  - **Safari**: Preferences > Privacy > Block all cookies
373  - **Google Analytics Opt-out**: [Google Analytics Opt-out Add-on](https://tools.google.com/dlpage/gaoptout)
374
375---
376
377## 8. Privacy Officer and Inquiries
378
379| Category | Details |
380| --- | --- |
381| Privacy Officer | damta.world Operator |
382| Contact Email | [email protected] |
383| Response Time | Within 10 business days |
384
385---
386
387## 9. Changes to Privacy Policy
388
389This Privacy Policy is effective as of **March 25, 2026**. Any amendments will be notified through the service notice or this page.
390
391---
392
393*damta.world — Online Virtual Break Community*
394`,nt="https://damta.world/api",qR="https://damta.world/api/ws",Fu="damta_admin_token";function En(){return localStorage.getItem(Fu)??""}function ZR(e){if(!e||!e.trim()){localStorage.removeItem(Fu);return}localStorage.setItem(Fu,e.trim())}function JR(){localStorage.removeItem(Fu)}function xr(e){const t=En(),n=new Headers(e?.headers);return t&&n.set("X-Admin-Token",t),!n.has("Content-Type")&&e?.body&&n.set("Content-Type","application/json"),{...e,headers:n}}async function Gx(e){if(!e||!e.trim())return B.error("사용법: /차단 닉네임"),null;const t=e.trim();try{B.info(`🔨 ${t}님 차단 중...`);const n=await fetch(`${nt}/ban-nickname`,xr({method:"POST",body:JSON.stringify({nickname:t})}));if(n.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const i=await n.json();if(i.status==="banned"){const s=i.displayNickname||i.nickname||t;return B.success(`✅ ${s}님이 차단되었습니다.`,{duration:5e3}),s}else return B.error(i.error||"차단 실패"),null}catch(n){return console.error("Ban error:",n),B.error("차단 처리 중 오류가 발생했습니다."),null}}async function Bx(e){if(!e||!e.trim())return B.error("사용법: /차단해제 닉네임"),null;const t=e.trim();try{const n=await fetch(`${nt}/unban-nickname`,xr({method:"POST",body:JSON.stringify({nickname:t})}));if(n.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const i=await n.json();if(i.status==="unbanned"){const s=i.displayNickname||i.nickname||t;return B.success(`🕊️ ${s}님이 해제되었습니다.`,{duration:5e3}),s}else return B.error(i.error||"해제 실패"),null}catch(n){return console.error("Unban error:",n),B.error("해제 처리 중 오류가 발생했습니다."),null}}async function QR(e,t){if(!e.trim()||!t.trim())return B.error("사용법: /고정닉뿅 현재닉 -> 고정닉"),null;try{const n=await fetch(`${nt}/fixed-nickname/grant`,xr({method:"POST",body:JSON.stringify({currentNickname:e.trim(),fixedNickname:t.trim()})}));if(n.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const i=await n.json();return i.status==="granted"?(B.success(`📌 '${i.nickname}' 고정 완료!
395복구 코드: ${i.recoveryCode}
396(유저에게 꼭 전달하세요 — 다시 조회 불가)
397
398💡 다른 기기 추가: 연동된 기기에서 /연동 → 코드 발급 → 새 기기에서 /연동 코드`,{duration:1/0,closeButton:!0}),i.nickname):(B.error(i.error||"고정 닉네임 부여 실패"),null)}catch(n){return console.error("Grant fixed nickname error:",n),B.error("고정 닉네임 부여 중 오류가 발생했습니다."),null}}async function e_(e){if(!e.trim())return B.error("사용법: /고정닉뿅해제 닉네임"),null;try{const t=await fetch(`${nt}/fixed-nickname/revoke`,xr({method:"POST",body:JSON.stringify({nickname:e.trim()})}));if(t.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const n=await t.json();return n.status==="revoked"?(B.success(`🗑️ '${n.nickname}' 고정이 해제되었습니다.`,{duration:5e3}),n.nickname):(B.error(n.error||"고정 닉네임 해제 실패"),null)}catch(t){return console.error("Revoke fixed nickname error:",t),B.error("고정 닉네임 해제 중 오류가 발생했습니다."),null}}async function t_(e){if(!e.trim())return B.error("사용법: /매니저임명뿅 닉네임"),null;try{const t=await fetch(`${nt}/manager/appoint`,xr({method:"POST",body:JSON.stringify({nickname:e.trim()})}));if(t.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const n=await t.json();return n.status==="appointed"?(B.success(`✨ '${n.nickname}' 매니저 임명 완료!`,{duration:5e3}),n.nickname):(B.error(n.error||"매니저 임명 실패 (고정닉 보유자만 가능)"),null)}catch(t){return console.error("Appoint manager error:",t),B.error("매니저 임명 중 오류가 발생했습니다."),null}}async function n_(e){if(!e.trim())return B.error("사용법: /매니저해임뿅 닉네임"),null;try{const t=await fetch(`${nt}/manager/dismiss`,xr({method:"POST",body:JSON.stringify({nickname:e.trim()})}));if(t.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),null;const n=await t.json();
398return n.status==="dismissed"?(B.success(`🧹 '${n.nickname}' 매니저 해임 완료.`,{duration:5e3}),n.nickname):(B.error(n.error||"매니저 해임 실패"),null)}catch(t){return console.error("Dismiss manager error:",t),B.error("매니저 해임 중 오류가 발생했습니다."),null}}async function r_(e,t){if(!t.trim())return B.error("이메일 주소를 입력해주세요."),!1;try{const n=await fetch(`${nt}/fixed-nickname/recovery-email`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({recoveryCode:e,email:t.trim()})});if(n.status===429)return B.error("메일 발송이 너무 잦아요. 잠시 후 다시 시도해주세요."),!1;const i=await n.json();return i.status==="sent"?(B.success("📧 복구 코드를 메일로 보냈어요. 받은편지함(스팸함도)을 확인하세요!"),!0):(B.error(i.error||"메일 발송에 실패했어요."),!1)}catch(n){return console.error("Email recovery code error:",n),B.error("메일 발송 중 오류가 발생했습니다."),!1}}async function o_(e,t){if(!e.trim())return B.error("복구 코드를 입력해주세요."),null;try{const n=await fetch(`${nt}/fixed-nickname/recover`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({recoveryCode:e.trim(),deviceToken:t})});if(n.status===429)return B.error("시도가 너무 많습니다. 잠시 후 다시 해주세요."),null;const i=await n.json();return i.status==="recovered"?i.nickname:(B.error(i.error||"복구 코드가 올바르지 않습니다."),null)}catch(n){return console.error("Recover fixed nickname error:",n),B.error("복구 처리 중 오류가 발생했습니다."),null}}const Wx="damta_device_token";function Bn(){let e=localStorage.getItem(Wx);return e||(e=crypto.randomUUID(),localStorage.setItem(Wx,e)),e}const i_={"room.1":"야구장","room.2":"회사 옥상","room.3":"지구 밖","room.4":"대학교 앞","room.5":"침묵의 방(쉿!)","menu.switchLanguage":"English","locale.offerEnglish":"This site is available in English.","locale.offerEnglishAction":"Switch","room.moved":"{icon} {room}으로 이동했어요","status.inRoom":"{icon} {room} 담타 중","status.roomCount":"{room}명/{total}명","status.totalOnly_one":"{total}명 담타 중","status.totalOnly_other":"{total}명 담타 중","status.buttsToday_one":"오늘 담배꽁초 {count}개","status.buttsToday_other":"오늘 담배꽁초 {count}개","start.guide":"화면을 눌러 담타를 시작하세요","toolbar.teleport":"순간이동","toolbar.teleportTitle":"흡연공간 선택","toolbar.asmrOn":"ASMR 켜기","toolbar.asmrOff":"ASMR 끄기","toolbar.asmrTitle":"담배 소리 토글","toolbar.report":"신고하기","toolbar.reportTitle":"신고 하기","toolbar.pickTeam":"⚾ 팀 선택","toolbar.pickTeamTitle":"KBO 팀 선택","baseball.matchCta":"🇰🇷 한중전 응원","baseball.matchPickTitle":"한중전 응원팀 선택","baseball.matchTitle":"🇰🇷 대한민국 vs 중국 🇨🇳","baseball.matchMeta":"아시안게임 슈퍼라운드 · 오늘 18:30","toast.catchmindGranted":"🎨 그림 그리기 권한을 받았어요! 제시어를 입력해 시작하세요.","toast.sessionTakenOver":"다른 기기에서 접속되어 이 기기의 연결이 종료됐어요.","toast.useThisDevice":"이 기기에서 사용","toast.chatUnblocked":"채팅 차단이 해제되었습니다.","toast.silentRoom":"이곳은 침묵의 방입니다. 정숙해주세요 🤫","toast.activityInProgress":"이미 진행 중인 활동이 있어요.","toast.noPoll":"진행 중인 투표가 없어요.","toast.noWorldcup":"진행 중인 월드컵이 없어요.","toast.noQuiz":"진행 중인 퀴즈가 없어요.","toast.noTypeRace":"진행 중인 타자 배틀이 없어요.","toast.noReaction":"진행 중인 반응속도 게임이 없어요.","toast.noCatchmind":"진행 중인 그림 맞추기가 없어요.","toast.noLiar":"진행 중인 라이어 게임이 없어요.","hint.cig.holdFilter":"필터를 누르고 있으면 담배가 더 빨리 태워져요.","hint.cig.tapTwice":"담배를 두 번 톡톡하면 담배 재가 떨어져요.","hint.cig.swipe":"담배를 옆으로 스와이프하면 다른 기기로 바뀌어요.","hint.cigar.hold":"시가 머리를 누르고 있으면 잉걸이 더 굵게 타올라요.","hint.cigar.tapTwice":"시가를 두 번 톡톡하면 굵은 재가 통째로 떨어져요.","hint.cigar.swipe":"시가를 옆으로 스와이프하면 다른 기기로 바뀌어요.","hint.tapBackgroun
398d":"검정색 배경을 탭하면 소근소근 대화할 수 있어요.","hint.device.hold":"기기를 누르고 있으면 더 빨리 소모돼요.","hint.device.swipe":"기기를 옆으로 스와이프하면 담배가 바뀌어요.","moderation.spamWarn":"도배 경고‼️ 매너있는 소근소근 부탁드립니다!","moderation.spamBlocked":"도배 경고를 무시하다니😡‼️ 3분간 채팅 금지입니다!!","moderation.repeatWarn":"같은 말 반복 경고‼️ 계속하면 채팅이 금지됩니다!","moderation.repeatBlocked":"똑같은 말만 반복하시면 안되옵니다😡 3분간 채팅 금지!","moderation.political":"흡연장에서 정치색을 드러내시면 안되옵니다. - 고대리","moderation.bannedCombo":"금지된 단어 조합이 포함되어 있습니다. - 고대리","moderation.externalChat":"외부 채팅 유도는 금지되어 있습니다. - 고대리","common.timeMinSec":"{mins}분 {secs}초","common.ad":"광고","toast.deviceLinked":"📌 이 기기가 '{nickname}' 닉네임으로 연동됐어요!","app.name":"온라인 담타","menu.title":"메뉴","menu.share":"공유하기","menu.feedback":"의견 보내기","menu.releaseNotes":"업데이트 노트","menu.advertise":"광고문의⭐⭐","menu.recoverNickname":"고정 닉네임 복구","menu.privacy":"개인정보처리방침","menu.coffee":"고대리에게 커피 쏘기","toast.linkCopied":"주소가 복사되었습니다.","toast.linkCopyFailed":"주소 복사에 실패했습니다.","toast.adEmailCopied":"📧 광고 문의 메일([email protected])이 복사되었습니다.","toast.adEmailCopyFallback":"📧 광고 문의: [email protected]","report.title":"유저 신고하기","report.targetLabel":"신고 대상 닉네임","report.targetPlaceholder":"예: 행복한 고양이","report.reasonLabel":"신고 사유","report.reason.abuse":"욕설/혐오","report.reason.spam":"도배","report.reason.sexual":"성적 발언","report.reason.other":"기타","report.detailLabel":"상세 설명 (선택)","report.detailPlaceholder":"구체적인 상황을 알려주세요","report.needTarget":"신고 대상 닉네임을 입력해주세요.","report.needReason":"신고 사유를 선택해주세요.","report.submitted":"신고가 접수되었습니다.","report.failed":"신고 처리 중 오류가 발생했습니다.","report.submit":"신고하기","recover.title":"고정 닉네임 복구","recover.desc1":"기기를 바꿨거나 브라우저 데이터를 지웠다면,","recover.desc2":"발급받은 복구 코드로 고정 닉네임을 되찾을 수 있어요.","recover.success":"📌 '{nickname}' 닉네임을 되찾았어요!","recover.checking":"확인 중...","recover.submit":"복구하기","coffee.line1":"흡연실 만드느라 고생한 고대리에게","coffee.line2":"격려의 커피를...!","coffee.cta":"☕️ 고대리 카페인 충전하기","coffee.note":"한 잔이면 고대리가 야근도 버팁니다 💪","toolbar.reset":"리셋","toolbar.quickMessages":"빠른 메시지","toast.teamCleared":"응원팀 선택이 해제되었습니다.","toast.teamSelected":"⚾ {team} 응원 시작!","toast.smokeSoundOn":"담배 소리가 켜졌습니다.","toast.smokeSoundOff":"담배 소리가 꺼졌습니다.","chat.blockedPlaceholder":"도배로 인해 3분간 채팅 금지","chat.placeholder":"소근소근 말하기...","quick.inhale":"스으읍","quick.inhaleOut":"스으으읍 후","quick.deepDrag":"쓰으으읍 후우..","quick.exhale":"ㅎ ㅏ...","game.wonQuiz":"정답 · 1분 30초간 확성기를 획득했어요","game.wonTypeRace":"1등 · 1분 3
3980초간 확성기를 획득했어요","game.wonReaction":"{ms}ms 1등 · 1분 30초간 확성기를 획득했어요","game.wonCatchmind":"정답 · 1분 30초간 확성기를 획득했어요","game.wonLiar":"라이어 게임 승리 · 1분 30초간 확성기를 획득했어요","game.falseStart":"부정출발 · 이번 판은 실격이에요","game.yourWord":'당신의 제시어 "{word}"',"manager.appointed":"✨ 매니저로 임명되었습니다!","manager.dismissed":"매니저에서 해임되었습니다.","common.seconds":"{n}초","common.collapse":"접기","common.confirm":"확인","catchmind.title":"그림 맞추기","catchmind.drawingSelf":"내가 그리는 중","catchmind.drawerSelf":"내가","catchmind.drawerOther":"{nickname}님이","catchmind.someone":"누군가","catchmind.predicateSelf":" 그림을 그리고 있어요","catchmind.predicateOther":" 그림을 그리고 있어요","catchmind.wordLabel":"제시어: {word}","catchmind.answerLabel":"정답: {answer}","catchmind.winner":"맞힌 사람: {nickname}","catchmind.drawnBy":" · 출제 {nickname}","catchmind.nobodyGotIt":"아무도 못 맞혔어요","catchmind.darker":"어둡게","catchmind.brightness":"밝기 ({value}%)","catchmind.brighter":"밝게","catchmind.customColor":"커스텀 색상 선택","catchmind.eraser":"지우개","catchmind.clearAll":"🗑️ 전체 지우기","catchmind.guessInChat":"정답을 채팅으로 입력하세요","fixedNick.copied":"복구 코드를 복사했어요. 안전한 곳에 보관하세요!","fixedNick.copyFailed":"복사에 실패했어요. 코드를 직접 메모해주세요.","fixedNick.title":"흡연실 명찰 발급 완료!","fixedNick.subtitle":"이제 이 닉네임은 늑구도 못 뺏어가요.","fixedNick.codeLabel":"복구 코드","fixedNick.copyAria":"복구 코드 복사","fixedNick.warnOnce":"⚠️ 이 코드는 지금 한 번만 보여요. 캡처하거나 메모해 ê¼­ 보관하세요.","fixedNick.warnWhy":"기기를 바꾸거나 브라우저 데이터를 지우면 이 코드로 닉네임을 되찾을 수 있어요.","fixedNick.emailSent":"메일로 보냈어요. 받은편지함(스팸함)을 확인하세요.","fixedNick.emailAsk":"메일로도 받아둘까요? (저장하지 않아요)","fixedNick.emailPlaceholder":"이메일 주소","fixedNick.emailSending":"전송중","fixedNick.emailSend":"받기","fixedNick.multiDeviceTitle":"📱 다른 기기에서도 쓰려면","fixedNick.multiDevice3":"최대 5개 기기까지 연동돼요. (단, 동시 접속은 1대만)","fixedNick.gotIt":"확인했어요","liar.title":"라이어 게임","liar.lobby":"라이어 모집 {count}/{max}","liar.voting":"라이어 투표 중","liar.lastChance":"역전 기회","liar.playing":"라이어 게임 중","liar.cancelled":"인원이 모자라 취소됐어요 (최소 {min}명)","liar.cancelledAfk":"잠수한 사람이 ë¹ ì ¸ 인원이 모자랐어요 (최소 {min}명)","liar.ended":"라이어 게임이 종료됐어요","liar.resultCancelled":"게임 종료","liar.citizensWin":"시민 승리","liar.liarWin":"라이어 승리","liar.reasonGuessCorrect":"라이어가 제시어를 맞혀 역전했어요","liar.reasonGuessTimeout":"라이어가 제시어를 맞히지 못했어요","liar.reasonVoteMissed":"엉뚱한 사람을 지목했어요","liar.reasonVoteTie":"표가 갈려 라이어를 특정하지 못했어요","liar.reasonLiarAfk":"라이어가 첫 마디도 없이 잠수했어요","liar.wasLiar":"라이어 {nickname}","liar.howTo1":"한 명만 다른 제시어를 받습니다.","liar.howTo2":"대화로 라이어를 찾아내세요.","liar.playerCount":"{count} / {max}명","liar.joined":"참가 완료","liar.join":"참가하기","liar.startHint":"{min}명이 모이면 시작 · {max}명이면 바로 시작","liar.afkNotice":"시작되면 {seconds}초 안에 첫 마디를 해야 해요 (없으면 제외)","liar.afkHurry":"{seconds}초 안에 발언하지 않으면 제외돼요","liar.afkKicked":"발언이 없어 라이어 게임에서 제외됐어요","liar.joinedNotice":"참가 완료! 시작되면 {seconds}초 안에 ê¼­ 한 마디 하세요 (없으면 제외)","liar.joinedHint":"시작되면 {seconds}초 안에 한 마디 필수","liar.speakNow":"지금 바로 한 마디! {seconds}초 안에 말해야 해요","liar.me":" (나)","liar.stillQuiet":"아ì
398§ 발언 없음","liar.yourWord":"당신의 제시어","liar.spectating":"관전 중","liar.describe1":"채팅으로 제시어에 대해 이야기하세요.","liar.describe2":"이 중 한 명은 다른 단어를 받았습니다.","liar.whoIsLiar":"라이어 지목","liar.myVote":"(내 지목)","liar.saidQuote":'"{text}"',"liar.noComment":"발언 없음","liar.noCommentPlain":"발언 없음","liar.othersVoting":"참가자들이 투표 중","liar.voteProgress":"{voted} / {total} 투표 완료","liar.canChangeVote":" · 다시 눌러 변경 가능","liar.accused":"🎯 지목 성공! '{nickname}'님이 라이어였어요","liar.twistTitle":"당신이 라이어였어요 · 마지막 반전 기회","liar.twistBody":"{seconds}초 안에 시민 제시어를 채팅으로 맞혀보세요","liar.twistWatch":"단, 라이어가 시민 제시어를 맞히면 역전승이에요","liar.votes":"{count}표","liar.citizenWordLabel":"시민","liar.tagLiar":"라이어","liar.liarWordLabel":"라이어","common.votes":"{count}표","common.secondsLeft":"{n}초 남음","common.ended":"종료됨","common.myChoice":"(내 선택)","common.myChoicePlain":"내 선택","common.answerLabel":"정답","common.timeUp":"시간 종료","common.guessedBy":"맞힌 사람: {nickname}","common.nobodyGotIt":"아무도 못 맞혔어요","poll.title":"투표","poll.balance":"밸런스 게임","poll.morePeople":"+{count}명","poll.andMore":"외 {count}명","poll.hintVote":"투표하면 결과가 공개되고 작게 접혀요","poll.totalVotes":"총 {count}표","poll.canChange":" · 다시 눌러 선택 변경 가능","quiz.title":"상식 퀴즈","quiz.guessInChat":"정답을 채팅으로 입력하세요","typerace.title":"타자 배틀","typerace.header":"타자 배틀","typerace.winLabel":"1등","typerace.winNote":"가장 먼저 정확히 입력했어요","typerace.timeUp":"시간 종료 · 아무도 완성하지 못했어요","typerace.instruction":"문구를 그대로 채팅에 입력하세요","reaction.title":"반응속도","reaction.winLabel":"1등","reaction.nobody":"아무도 누르지 못했어요","reaction.now":"지금 누르세요","reaction.firstWins":"가장 먼저 누르면 승리","reaction.ready":"대기 중","reaction.hint":"초록으로 바뀌면 누르세요 · 미리 누르면 실격","worldcup.title":"🏆 이상형 월드컵","worldcup.final":"결승","worldcup.roundOf":"{n}강","worldcup.champion":"우승!","worldcup.ended":"월드컵이 종료되었어요","worldcup.result":"ê²°ê³¼","worldcup.collapse":"접기 ▴","worldcup.pickOne":"둘 중 하나를 골라줘","worldcup.nextMatch":"다음 대결로 넘어가는 중…","notice.label":"[공지]","notice.close":"공지 닫기","whisper.close":"귓속말 닫기","whisper.replyPlaceholder":"답장 입력...","whisper.send":"전송","whisper.ended":"{partner}와의 귓속말이 종료됐어요.","chat.me":"나({name})","link.tooMany":"시도가 너무 많습니다. 잠시 후 다시 해주세요.","link.needFixedNick":"고정 닉네임이 연동된 기기에서만 코드를 발급할 수 있어요.","link.codeIssued":`🔗 기기 연동 코드: {code}
3995분 안에 새 기기에서
400'/연동 {code}' 를 입력하세요.`,"link.issueFailed":"연동 코드 발급 실패","link.issueError":"연동 코드 발급 중 오류가 발생했습니다.","link.usage":"사용법: /연동 (코드 발급) 또는 /연동 123456 (이 기기 연동)","link.invalidCode":"연동 코드가 올바르지 않습니다.","link.linkError":"기기 연동 중 오류가 발생했습니다.","worldcup.changePick":"다시 눌러 선택 변경 가능","common.cancel":"취소","catchmindComposer.title":"🎨 그림 맞추기 시작","catchmindComposer.desc1":"제시어를 입력하면 본인이 그리는 사람이 됩니다.","catchmindComposer.desc2":"다른 사람들은 채팅으로 맞혀요!","catchmindComposer.label":"제시어 (여러 개면 쉼표로)","catchmindComposer.placeholder":"예: 사과, 빨간 사과, apple","catchmindComposer.randomTitle":"랜덤 단어 받기","catchmindComposer.note1":"공백·대소문자는 무시하고 채점돼요.","catchmindComposer.note2":"단어가 떠오르지 않으면 🎲 를 눌러보세요.","catchmindComposer.start":"시작 🎨","fixedNick.codeLabel2":"복구 코드","fixedNick.howToRecover":"💡 되찾을 때는 화면 왼쪽 상단 {menu} → {recover}를 눌러 이 코드를 입력하세요.","fixedNick.multiDevice1":"지금 이 기기 채팅창에 {cmd} 입력 → 6자리 코드 발급","fixedNick.multiDevice2":"새 기기/브라우저 채팅창에 {cmd} (받은 코드) 입력","sys.bearBanned":`🧸 '{nickname}'님이
401달곰이의 습격을 받았어요`,"sys.bearUnbanned":`🧸 '{nickname}'님이
402달곰이의 용서를 받았어요`,"sys.quizWin":`'{nickname}'님 정답
403답은 "{answer}"였어요`,"sys.catchmindWin":`'{nickname}'님 정답
404답은 "{answer}"였어요`,"sys.reactionWin":`'{nickname}'님 반응속도 우승
405{ms}ms`,"sys.typeRaceWin":"'{nickname}'님 타자 배틀 우승","sys.liarCitizensWin":`라이어 '{nickname}' 검거 · 시민 승리
406시민 "{citizenWord}" · 라이어 "{liarWord}"`,"sys.liarLiarWin":`라이어 '{nickname}' 승리
407시민 "{citizenWord}" · 라이어 "{liarWord}"`,"sys.liarAfkKicked":"🤐 '{nicknames}'님이 발언이 없어 라이어 게임에서 제외됐어요","sys.liarAfkWin":`라이어 '{nickname}'가 잠수 · 시민 승리
408시민 "{citizenWord}" · 라이어 "{liarWord}"`,"err.noPermission":"권한이 없습니다.","err.alreadyRunning":"이미 진행 중인 활동이 있습니다.","err.notInThisRoom":"이 방에서는 만들 수 없습니다.","err.notFound":"대상을 찾을 수 없습니다.","err.catchmindBadWord":"제시어를 올바르게 입력해주세요.","err.catchmindNotRunning":"진행 중인 캐치마인드가 없습니다.","catchmind.started":"그림 맞추기를 시작했어요","sys.wolfBanned":`🐺 '{nickname}'님이
409늑구에게 물려갔습니다!`,"sys.wolfUnbanned":`🕊️ '{nickname}'님이
410늑구 품에서 풀려났습니다!`,"notice.default":"흡연인 여러분, 흡연실에서는 소근소근 클린한 대화 부탁드립니다. 감사합니다! - 고대리"},s_={"room.1":"Ballpark","room.2":"Office Rooftop","room.3":"Outer Space","room.4":"Campus Gate","room.5":"Silent Room (shh!)","menu.switchLanguage":"한국어","locale.offerEnglish":"This site is available in English.","locale.offerEnglishAction":"Switch","room.moved":"Moved to {icon} {room}
410","status.inRoom":"{icon} {room}","status.roomCount":"{room}/{total}","status.totalOnly_one":"{total} person here","status.totalOnly_other":"{total} people here","status.buttsToday_one":"{count} butt today","status.buttsToday_other":"{count} butts today","start.guide":"Tap the screen to start your smoke break","toolbar.teleport":"Teleport","toolbar.teleportTitle":"Choose a smoking room","toolbar.asmrOn":"ASMR on","toolbar.asmrOff":"ASMR off","toolbar.asmrTitle":"Toggle cigarette sound","toolbar.report":"Report","toolbar.reportTitle":"Report a user","toolbar.pickTeam":"⚾ Pick team","toolbar.pickTeamTitle":"Choose a KBO team","baseball.matchCta":"🇰🇷 Korea vs China","baseball.matchPickTitle":"Choose who to support","baseball.matchTitle":"🇰🇷 Korea vs China 🇨🇳","baseball.matchMeta":"Asian Games Super Round · Today 6:30 PM","toast.catchmindGranted":"🎨 You can draw now! Enter a word to start.","toast.sessionTakenOver":"Your session moved to another device, so this one was disconnected.","toast.useThisDevice":"Use this device","toast.chatUnblocked":"Your chat block has been lifted.","toast.silentRoom":"This is the Silent Room. Please keep it quiet 🤫","toast.activityInProgress":"Something else is already running.","toast.noPoll":"No poll is running.","toast.noWorldcup":"No bracket is running.","toast.noQuiz":"No quiz is running.","toast.noTypeRace":"No typing race is running.","toast.noReaction":"No reaction game is running.","toast.noCatchmind":"No drawing game is running.","toast.noLiar":"No liar game is running.","hint.cig.holdFilter":"Hold the filter to burn the cigarette faster.","hint.cig.tapTwice":"Tap the cigarette twice to flick the ash off.","hint.cig.swipe":"Swipe sideways to switch to a different device.","hint.cigar.hold":"Hold the cigar's head to make the ember burn hotter.","hint.cigar.tapTwice":"Tap the cigar twice to drop the whole ash log.","hint.cigar.swipe":"Swipe sideways to switch to a different device.","hint.tapBackground":"Tap the dark background to start chatting.","hint.device.hold":"Hold the device to use it up faster.","hint.device.swipe":"Swipe sideways to switch back to a cigarette.","moderation.spamWarn":"Spam warning‼️ Please keep it calm and quiet.","moderation.spamBlocked":"You ignored the spam warning😡‼️ Chat is blocked for 3 minutes.","moderation.repeatWarn":"Repetition warning‼️ Keep it up and you'll be blocked from chatting.","moderation.repeatBlocked":"Please stop repeating yourself😡 Chat is blocked for 3 minutes.","moderation.political":"No politics in the smoking room, please. — Manager Ko","moderation.bannedCombo":"That contains a banned word combination. — Manager Ko","moderation.externalChat":"Pointing people to outside chats isn't allowed. — Manager Ko","common.timeMinSec":"{mins}m {secs}s","common.ad":"Ad","toast.deviceLinked":"📌 This device is now linked to '{nickname}'.","app.name":"Online Damta","menu.title":"Menu","menu.share":"Share","menu.feedback":"Send feedback","menu.releaseNotes":"Release notes","menu.advertise":"Advertise with us⭐⭐","menu.recoverNickname":"Recover fixed nickname","menu.privacy":"Privacy policy","menu.coffee":"Buy Manager Ko a coffee","toast.linkCopied":"Link copied.","toast.linkCopyFailed":"Couldn't copy the link.","toast.adEmailCopied":"📧 Ad inquiry email ([email protected]) copied to clipboard.","toast.adEmailCopyFallback":"📧 Ad inquiry: [email protected]","report.title":"Report a user","report.targetLabel":"Nickname to report","report.targetPlaceholder":"e.g. Happy Kitten","report.reasonLabel":"Reason","report.reason.abuse":"Abuse / hate","report.reason.spam":"Spam","report.reason.sexual":"Sexual content","report.reason.other":"Other","report.detailLabel":"Details (optional)","report.detailPlaceholder":"Tell us what happened","report.needTarget":"Please enter the nickname to report.","report.needReason":"Please choose a reason.","report.submitted":"Your report has been submitted.","report.failed":"Something went wrong while submitting your report.","report.submit":"Submit report","recover.title":"Recover fixed nickname","recover.desc1":"Changed devices or cleared your browser data?","recover.desc2":"Use your recovery code to get your fixed nickname back.","recover.success":"📌 Got '{nickname}' back!","recover.checking":"Checking...","recover.submit":"Recover","coffee.line1":"Manager Ko built this smoking room.","coffee.line2":"Maybe buy her a coffee...!","coffee.cta":"☕️ Refuel Manager Ko","coffee.note":"One cup and she'll survive the overt
410ime 💪","toolbar.reset":"Reset","toolbar.quickMessages":"Quick messages","toast.teamCleared":"Support team cleared.","toast.teamSelected":"⚾ You're cheering for {team}!","toast.smokeSoundOn":"Cigarette sound on.","toast.smokeSoundOff":"Cigarette sound off.","chat.blockedPlaceholder":"Chat blocked for 3 minutes (spam)","chat.placeholder":"Say something quietly...","quick.inhale":"*inhale*","quick.inhaleOut":"*inhale* ...phew","quick.deepDrag":"*deep drag* ...haaa","quick.exhale":"*haaa*","game.wonQuiz":"Correct · megaphone for 1m 30s","game.wonTypeRace":"First place · megaphone for 1m 30s","game.wonReaction":"{ms}ms, first place · megaphone for 1m 30s","game.wonCatchmind":"Correct · megaphone for 1m 30s","game.wonLiar":"You won the liar game · megaphone for 1m 30s","game.falseStart":"False start · you're out this round","game.yourWord":'Your word: "{word}"',"manager.appointed":"✨ You're a manager now!","manager.dismissed":"You're no longer a manager.","common.seconds":"{n}s","common.collapse":"Collapse","common.confirm":"OK","catchmind.title":"Drawing game","catchmind.drawingSelf":"You're drawing","catchmind.drawerSelf":"You","catchmind.drawerOther":"{nickname}","catchmind.someone":"Someone","catchmind.predicateSelf":" are drawing","catchmind.predicateOther":" is drawing","catchmind.wordLabel":"Word: {word}","catchmind.answerLabel":"Answer: {answer}","catchmind.winner":"Guessed by: {nickname}","catchmind.drawnBy":" · drawn by {nickname}","catchmind.nobodyGotIt":"Nobody got it","catchmind.darker":"Darker","catchmind.brightness":"Brightness ({value}%)","catchmind.brighter":"Brighter","catchmind.customColor":"Pick a custom color","catchmind.eraser":"Eraser","catchmind.clearAll":"🗑️ Clear all","catchmind.guessInChat":"Type your guess in the chat","fixedNick.copied":"Recovery code copied. Keep it somewhere safe!","fixedNick.copyFailed":"Couldn't copy it. Please write the code down yourself.","fixedNick.title":"Your name tag is ready!","fixedNick.subtitle":"This nickname is yours to keep now.","fixedNick.codeLabel":"Recovery code","fixedNick.copyAria":"Copy recovery code","fixedNick.warnOnce":"⚠️ This code is shown only once. Screenshot it or write it down.","fixedNick.warnWhy":"If you switch devices or clear your browser data, this code gets your nickname back.","fixedNick.emailSent":"Sent. Check your inbox (and spam folder).","fixedNick.emailAsk":"Want it by email too? (We don't store the address.)","fixedNick.emailPlaceholder":"Email address","fixedNick.emailSending":"Sending","fixedNick.emailSend":"Send","fixedNick.multiDeviceTitle":"📱 To use it on another device","fixedNick.multiDevice3":"Up to 5 devices can be linked (but only one connected at a time).","fixedNick.gotIt":"Got it","liar.title":"Liar Game","liar.lobby":"Liar Game · {count}/{max} joined","liar.voting":"Voting for the liar","liar.lastChance":"Last chance","liar.playing":"Liar Game in progress","liar.cancelled":"Cancelled — not enough players (at least {min} needed)","liar.cancelledAfk":"Cancelled — too few players left after the silent ones were removed (at least {min} needed)","liar.ended":"The liar game is over","liar.resultCancelled":"Game over","liar.citizensWin":"Citizens win","liar.liarWin":"The liar wins","liar.reasonGuessCorrect":"The liar guessed the word and turned it around","liar.reasonGuessTimeout":"The liar failed to guess the word","liar.reasonVoteMissed":"The group accused the wrong person","liar.reasonVoteTie":"The vote was split, so no liar was identified","liar.reasonLiarAfk":"The liar went silent without saying a word","liar.wasLiar":"The liar was {nickname}","liar.howTo1":"One player gets a different word.","liar.howTo2":"Talk it out and work out who it is.","liar.playerCount":"{count} / {max}","liar.joined":"Joined","liar.join":"Join","liar.startHint":"Starts once {min} players join · begins immediately at {max}","liar.afkNotice":"Once it starts, say something within {seconds}s or you are out","liar.afkHurry":"Speak within {seconds}s or you will be removed","liar.afkKicked":"You were removed from the liar game for staying silent","liar.joinedNotice":"You are in! Say something within {seconds}s of the start or you are out","liar.joinedHint":"You must speak within {seconds}s of the start","liar.speakNow":"Say something now — within {seconds}s","liar.me":" (you)","liar.stillQuiet":"No comment yet","liar.yourWord":"Your word","liar.spectating":"Spectating","liar.describe1":"Chat naturally about your word.","liar.describe2":"One of you got a different word.","liar.whoIsLiar":"Pick the liar","liar.myVote":"(your pick)","liar.saidQuote":'"{text}"',"liar.noComment":"Said nothing","liar.noCommentPlain":"Said nothing","liar.othersVoting":"Players are voting","liar.voteProgress":"{voted} / {total} voted","liar.canChangeVote":" · tap again to change","liar.accused":"🎯 Caught! {nickname} was the liar","liar.twistTitle":"You were the liar · one last twist","liar.twistBody":"Guess the citizens' word in chat within {seconds}s","liar.twistWatch":"But if the liar guesses the citizens' word, they steal the win","liar.votes":"{count}","liar.citizenWordLabel":"Citizens","liar.tagLiar":"Liar","liar.liarWordLabel":"Liar","common.votes":"{count} votes","common.secondsLeft":"{n}s left","common.ended":"Closed","common.myChoice":"(your pick)","common.myChoicePlain":"Your pick","common.answerLabel":"Answer","common.timeUp":"Time's up","common.guessedBy":"Guessed by: {nickname}","common.nobodyGotIt":"Nobody got it","poll.title":"Poll","poll.balance":"This or That","poll.morePeople":"+{count}","poll.andMore":"+{count} more","poll.hintVote":"Vote to reveal the results — this will collapse","poll.totalVotes":"{count} votes total","poll.canChange":" · tap again to change","quiz.title":"Trivia Quiz","quiz.guessInChat":"Type your answer in the chat","typerace.title":"Typing Race","typerace.header":"Typing Race","typerace.winLabel":"Winner","typerace.winNote":"First to type it exactly","typerace.timeUp":"Time's up · nobody finished it","typerace.instruction":"Type the phrase exactly in the chat","reaction.title":"Reaction","reaction.winLabel":"Winner","reaction.nobody":"Nobody tapped in time","reaction.now":"Tap now","reaction.firstWins":"First to tap wins","reaction.ready":"Wait","reaction.hint":"Tap when it turns green · tapping early is a fal
410se start","worldcup.title":"🏆 Favorites Bracket","worldcup.final":"Final","worldcup.roundOf":"Round of {n}","worldcup.champion":"Winner!","worldcup.ended":"The bracket is over","worldcup.result":"Result","worldcup.collapse":"Collapse ▴","worldcup.pickOne":"Pick one of the two","worldcup.nextMatch":"Moving on to the next match…","notice.label":"[Notice]","notice.close":"Dismiss notice","whisper.close":"Close whisper","whisper.replyPlaceholder":"Type a reply...","whisper.send":"Send","whisper.ended":"Your whisper with {partner} has ended.","chat.me":"You ({name})","link.tooMany":"Too many attempts. Please try again shortly.","link.needFixedNick":"Only a device with a fixed nickname can issue a code.","link.codeIssued":`🔗 Device link code: {code}
411On the new device, type
412'/link {code}' within 5 minutes.`,"link.issueFailed":"Couldn't issue a link code","link.issueError":"Something went wrong issuing the link code.","link.usage":"Usage: /link (get a code) or /link 123456 (link this device)","link.invalidCode":"That link code isn't valid.","link.linkError":"Something went wrong linking this device.","worldcup.changePick":"Tap again to change your pick","common.cancel":"Cancel","catchmindComposer.title":"🎨 Start a drawing round","catchmindComposer.desc1":"Enter a word and you'll be the one drawing.","catchmindComposer.desc2":"Everyone else guesses in the chat!","catchmindComposer.label":"Word (separate multiple with commas)","catchmindComposer.placeholder":"e.g. apple, red apple, 사과","catchmindComposer.randomTitle":"Get a random word","catchmindComposer.note1":"Spacing and capitalization are ignored when checking.","catchmindComposer.note2":"Stuck for a word? Hit 🎲.","catchmindComposer.start":"Start 🎨","fixedNick.codeLabel2":"Recovery code","fixedNick.howToRecover":"💡 To restore it, open {menu} at the top left → {recover} and enter this code.","fixedNick.multiDevice1":"Type {cmd} in the chat on this device → you'll get a 6-digit code","fixedNick.multiDevice2":"On the new device or browser, type {cmd} with that code","sys.bearBanned":`🧸 {nickname}
413was pounced on by Dalgomi the bear`,"sys.bearUnbanned":`🧸 {nickname}
414was forgiven by Dalgomi the bear`,"sys.quizWin":`{nickname} got it
415The answer was "{answer}"`,"sys.catchmindWin":`{nickname} got it
416The answer was "{answer}"`,"sys.reactionWin":`{nickname} won the reaction game
417{ms}ms`,"sys.typeRaceWin":"{nickname} won the typing race","sys.liarCitizensWin":`The liar {nickname} was caught · citizens win
418Citizens "{citizenWordEn}" · Liar "{liarWordEn}"`,"sys.liarLiarWin":`The liar {nickname} wins
419Citizens "{citizenWordEn}" · Liar "{liarWordEn}"`,"sys.liarAfkKicked":"🤐 {nicknames} was removed from the liar game for staying silent","sys.liarAfkWin":`The liar {nickname} went silent · citizens win
420Citizens "{citizenWordEn}" · Liar "{liarWordEn}"`,"err.noPermission":"You don't have permission to do that.","err.alreadyRunning":"Something else is already running.","err.notInThisRoom":"You can't start that in this room.","err.notFound":"Couldn't find that.","err.catchmindBadWord":"Please enter a valid word.","err.catchmindNotRunning":"No drawing game is running.","catchmind.started":"Drawing round started","sys.wolfBanned":`🐺 {nickname}
421was dragged off by Neukgu the wolf!`,"sys.wolfUnbanned":`🕊️ {nickname}
422has been released from Neukgu's grip!`,"notice.default":"Keep it quiet and kind in the smoking room, everyone. Thanks! — Manager Ko"},zu="/en",cw="damta.locale",uw="damta.locale.offered",Eh={ko:i_,en:s_};function Wp(){if(typeof window>"u")return!0;try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e==="Asia/Seoul"||e==="ROK"||(navigator.language||"").toLowerCase().startsWith("ko"))return!0;if(Array.isArray(navigator.languages)){for(const n of navigator.languages)if(n.toLowerCase().startsWith("ko"))return!0}return!1}catch{return!0}}function a_(){if(typeof window>"u")return"ko";const e=window.location.pathname;if(e===zu||e.startsWith(zu+"/"))return"en";const t=new URLSearchParams(window.location.search).get("lang");if(t==="en"||t==="ko")return t;const n=Ch();return n||(Wp()?"ko":"en")}function Ch(){try{const e=window.localStorage.getItem(cw);return e==="en"||e==="ko"?e:null}catch(e){return console.warn("로케일 조회 실패:",e),null}}let qt=a_();typeof document<"u"&&(document.documentElement.lang=qt);function Pl(){return qt}function ro(){return qt==="en"}function Hx(e){try{window.localStorage.setItem(cw,e)}catch(n){console.warn("로케일 저장 실패:",n)}const t=new URL(window.location.href);t.searchParams.set("lang",e),window.location.assign(t.toString())}function l_(){return typeof window>"u"||qt!=="ko"||Ch()!==null||d_(uw)?!1:(navigator.language??"").toLowerCase().startsWith("en")}
422function c_(){try{window.localStorage.setItem(uw,"1")}catch(e){console.warn("언어 안내 노출 기록 실패:",e)}}async function u_(){if(typeof window>"u")return qt;const e=window.location.pathname;if(e===zu||e.startsWith(zu+"/"))return qt="en",document.documentElement.lang="en","en";const t=new URLSearchParams(window.location.search).get("lang");if(t==="en"||t==="ko")return qt=t,document.documentElement.lang=t,t;const n=Ch();if(n)return qt=n,document.documentElement.lang=n,n;try{const i=window.sessionStorage.getItem("damta.ip_country");if(i)return qt=i==="KR"?"ko":"en",document.documentElement.lang=qt,qt}catch{}try{let i=null;try{const s=await fetch("/cdn-cgi/trace",{signal:AbortSignal.timeout(600)});if(s.ok){const c=(await s.text()).match(/loc=([A-Z]{2})/);c&&c[1]&&(i=c[1])}}catch{}if(!i)try{const s=await fetch("https://api.country.is/",{signal:AbortSignal.timeout(600)});if(s.ok){const l=await s.json();l&&typeof l.country=="string"&&(i=l.country.toUpperCase())}}catch{}if(i){try{window.sessionStorage.setItem("damta.ip_country",i)}catch{}qt=i==="KR"?"ko":"en"}else qt=Wp()?"ko":"en"}catch{qt=Wp()?"ko":"en"}return typeof document<"u"&&(document.documentElement.lang=qt),qt}function d_(e){try{return window.localStorage.getItem(e)==="1"}catch(t){return console.warn("플래그 조회 실패:",t),!1}}let dw={},fw=0;const Hp=new Set;function f_(){fw+=1,Hp.forEach(e=>e())}function p_(e){return Hp.add(e),()=>{Hp.delete(e)}}function $x(){return fw}async function h_(e=qt){try{const t=await fetch(`${nt}/i18n/${e}`);if(!t.ok)return;const n=await t.json();n&&typeof n=="object"&&!Array.isArray(n)&&(dw=n,f_())}catch(t){console.warn("i18n 오버라이드 로드 실패 — 번들 기본값 사용:",t)}}const Ux=new Map;function m_(e,t){let n=Ux.get(e);return n||(n=new Intl.PluralRules(e),Ux.set(e,n)),n.select(t)}function _u(e){return dw[e]??Eh[qt][e]}function g_(e,t){return t?e.replace(/\{(\w+)\}/g,(n,i)=>i in t?String(t[i]):n):e}function pw(e){return _u(e)!==void 0||Eh.ko[e]!==void 0}function Ct(e,t){let n=e;if(t&&typeof t.count=="number"){const s=`${e}_${m_(qt,t.count)}`;_u(s)!==void 0?n=s:_u(`${e}_other`)!==void 0&&(n=`${e}_other`)}const i=_u(n)??Eh.ko[n]??n;return g_(i,t)}function sr(){return w.useSyncExternalStore(p_,$x,$x),Ct}function x_(e,t){return qt==="ko"?e:t}function y_({children:e}){return w.useEffect(()=>{h_(qt)},[]),m.jsx(m.Fragment,{children:e})}function jl(e={}){return{...e,headers:{...e.headers??{},"X-Locale":qt}}}async function w_(){try{const e=await fetch(`${nt}/fixed-nickname/link-code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceToken:Bn()})});if(e.status===429){B.error(Ct("link.tooMany"));return}if(e.status===403){B.error(Ct("link.needFixedNick"));return}const t=await e.json();if(t.code){B.success(Ct("link.codeIssued",{code:t.code}),{duration:1/0,closeButton:!0});return}B.error(t.error||Ct("link.issueFailed"))}catch(e){console.error("Issue device link code error:",e),B.error(Ct("link.issueError"))}}async function k_(e){if(!e.trim())return B.error(Ct("link.usage")),null;try{const t=await fetch(`${nt}/fixed-nickname/link`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:e.trim(),deviceToken:Bn()})});if(t.status===429)return B.error(Ct("link.tooMany")),null;const n=await t.json();return n.status==="linked"?n.nickname:(B.error(n.error||Ct("link.invalidCode")),null)}catch(t){console.error("Link device error:",t),B.error(Ct("link.linkError"))}return null}async function hw(e,t){if(!e.trim()||!t.trim())return B.error("사용법: /귓뿅 닉네임 -> 내용"),!1;try{const n=await fetch(`${nt}/whisper`,xr({method:"POST",body:JSON.stringify({targetNickname:e.trim(),text:t.trim(),deviceToken:Bn()})}));if(n.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),!1;const i=await n.json();return i.status==="sent"?!0:(B.error(i.error||"귓속말 전송 실패"),!1)}catch(n){return console.error("Send admin whisper error:",n),B.error("귓속말 전송 중 오류가 발생했습니다."),!1}}async function b_(e){if(e.trim())try{await fetch(`${nt}/whisper/end`,xr({method:"POST",body:JSON.stringify({targetNickname:e.trim()})}))}catch(t){console.error("End admin whisper error:",t)}}async function mw(e){if(!e.trim())return B.error("사용법: /귓속말 내용"),!1;try{const t=await fetch(`${nt}/whisper/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:e.trim(),deviceToken:Bn()})});if(t.status===429)return B.error("귓속말이 너무 빨라요. 잠시 숨 고르고 다시 해주세요."),!1;const n=await t.json();return n.status==="sent"?!0:(B.error(n.error||"답장 전송 실패"),!1)}catch(t){return console.error("Send whisper reply error:",t),B.error("답장 전송 중 오류가 발생했습니다."),!1}}function Ss(e){if(e.key!=="Enter")return!1;const t=e.nativeEvent;return t.isComposing!==!0&&t.keyCode!==229}function v_(e){const t=e.nativeEvent;e.key==="Enter"&&t.isComposing===!0&&e.preventDefault()}function S_({title:e,messages:t,onSend:n,onClose:i}){const s=sr(),[l,c]=w.useState(""),u=w.useRef(null),p=w.useRef(null);
422w.useEffect(()=>{const g=p.current;g&&(g.scrollTop=g.scrollHeight)},[t.length]);const h=()=>{const g=l.trim();g&&(n(g),c(""),u.current?.focus())};return m.jsxs("div",{className:"w-full max-w-md mx-auto bg-[#120f0d] border border-[#44372c] rounded-xl p-3 shadow-2xl",children:[m.jsxs("div",{className:"flex items-center justify-between mb-2",children:[m.jsx("span",{className:"text-orange-300 text-sm font-bold",children:e}),m.jsx("button",{onClick:i,className:"text-stone-500 hover:text-stone-200 transition-colors","aria-label":s("whisper.close"),children:m.jsx(Rl,{className:"w-4 h-4"})})]}),m.jsx("div",{ref:p,className:"whisper-scroll flex flex-col gap-1.5 max-h-40 overflow-y-auto mb-2 pr-1",children:t.map((g,f)=>m.jsx("div",{className:`text-sm px-2.5 py-1.5 rounded-lg max-w-[85%] break-keep break-words whitespace-pre-wrap ${g.mine?"self-end bg-stone-400/20 text-stone-200":"self-start bg-orange-500/[0.16] text-orange-200"}`,children:g.text},f))}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("input",{ref:u,type:"text",value:l,onChange:g=>c(g.target.value),onKeyDown:g=>{Ss(g)&&(g.preventDefault(),h())},placeholder:s("whisper.replyPlaceholder"),autoFocus:!0,maxLength:300,className:"flex-1 bg-[#1c1714] border border-[#44372c] rounded-full px-3 py-1.5 text-sm text-stone-100 placeholder:text-[#6b5d50] focus:outline-none focus:border-orange-500"}),m.jsx("button",{onClick:h,disabled:!l.trim(),className:"shrink-0 w-8 h-8 flex items-center justify-center rounded-full bg-orange-600 text-white disabled:opacity-40 disabled:cursor-not-allowed active:scale-95 transition-transform","aria-label":s("whisper.send"),children:m.jsx(Vv,{className:"w-4 h-4"})})]})]})}const Zo=new Map,Nh=e=>`whisper:${e}`;function Gu(e){const t=Zo.get(e);t&&B.custom(()=>m.jsx(S_,{title:e,messages:t.messages,onSend:n=>E_(e,n),onClose:()=>C_(e)}),{id:Nh(e),duration:1/0,dismissible:!1,className:"whisper-toast"})}async function E_(e,t){const n=Zo.get(e);if(!n)return;n.messages.push({text:t,mine:!0}),Gu(e),(n.iAmAdmin?await hw(e,t):await mw(t))||(n.messages.pop(),Gu(e))}function C_(e){Zo.get(e)?.iAmAdmin&&b_(e),Zo.delete(e),B.dismiss(Nh(e))}function N_(e,t){let n=Zo.get(e);n||(n={partner:e,iAmAdmin:!0,messages:[]},Zo.set(e,n)),n.iAmAdmin=!0,n.messages.push({text:t,mine:!0}),Gu(e)}function R_(e){if(e.type==="whisper-end"){const s=e.from;Zo.delete(s),B.dismiss(Nh(s)),B(Ct("whisper.ended",{partner:s}),{duration:4e3});return}if(e.type!=="whisper"&&e.type!=="whisper-reply")return;const t=e.from,n=e.type==="whisper-reply";let i=Zo.get(t);i||(i={partner:t,iAmAdmin:n,messages:[]},Zo.set(t,i)),i.iAmAdmin=n,i.messages.push({text:e.text??"",mine:!1}),Gu(t)}const Vx=ro()?"/link":"/연동";function __({nickname:e,recoveryCode:t,onClose:n}){const i=sr(),[s,l]=w.useState(!1),[c,u]=w.useState(""),[p,h]=w.useState(!1),[g,f]=w.useState(!1),b=async()=>{h(!0);try{await r_(t,c)&&f(!0)}finally{h(!1)}},y=async()=>{try{await navigator.clipboard.writeText(t),l(!0),B.success(i("fixedNick.copied")),setTimeout(()=>l(!1),2e3)}catch{B.error(i("fixedNick.copyFailed"))}};return m.jsx("div",{onClick:n,className:"fixed inset-0 z-[70] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:m.jsxs("div",{onClick:v=>v.stopPropagation(),className:"bg-gray-900 border border-gray-700 rounded-2xl p-6 w-full max-w-sm relative shadow-2xl max-h-[85vh] overflow-y-auto overflow-x-hidden",children:[m.jsxs("div",{className:"text-center mb-5",children:[m.jsx("div",{className:"text-3xl mb-2",children:"🚬"}),m.jsx("h3",{className:"text-white font-bold text-lg",children:i("fixedNick.title")}),m.jsxs("p",{className:"text-orange-300 font-semibold mt-1",children:["'",e,"'"]}),m.jsx("p",{className:"text-sm text-gray-400 mt-1",children:i("fixedNick.subtitle")})]}),m.jsxs("div",{className:"bg-gray-800/70 border border-gray-700 rounded-xl p-4 mb-4",children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-gray-300 text-sm font-semibold mb-2",children:[m.jsx(Tp,{className:"w-4 h-4 text-orange-400"}),i("fixedNick.codeLabel2")]}),m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("code",{className:"flex-1 min-w-0 bg-gray-950 rounded-lg px-3 py-2 text-orange-200 text-center tracking-widest text-sm select-all overflow-hidden text-ellipsis",children:t}),m.jsx("button",{onClick:y,className:"shrink-0 w-9 h-9 flex items-center justify-center rounded-lg bg-orange-600 text-white active:scale-95 transition-transform","aria-label":i("fixedNick.copyAria"),children:s?m.jsx(Vg,{className:"w-4 h-4"}):m.jsx(Pv,{className:"w-4 h-4"})})]}),m.jsxs("p",{className:"text-xs text-gray-500 leading-relaxed mt-2 break-keep",children:[i("fixedNick.warnOnce"),i("fixedNick.warnWhy")]}),m.jsx("p",{className:"text-xs text-gray-400 leading-relaxed mt-2 break-keep",children:i("fixedNick.howToRecover",{menu:i("menu.title"),recover:i("menu.recoverNickname")})}),m.jsx("div",{className:"mt-3 pt-3 border-t border-gray-700",children:g?m.jsxs("p",{className:"text-xs text-orange-300 flex items-center gap-1.5",children:[m.jsx(Vg,{className:"w-3.5 h-3.5"})," ",i("fixedNick.emailSent")]}):m.jsxs(m.Fragment,{children:[m.jsx("p",{className:"text-xs text-gray-400 mb-2",children:i("fixedNick.emailAsk")}),m.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m.jsx("input",{type:"email",value:c,onChange:v=>u(v.target.value),onKeyDown:v=>{Ss(v)&&c.trim()&&!p&&b()},placeholder:i("fixedNick.emailPlaceholder"),autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,className:"flex-1 min-w-0 bg-gray-950 border border-gray-700 rounded-lg px-3 py-2 text-sm text-gray-100 placeholder:text-gray-600 focus:outline-none focus:border-orange-500"}),m.jsxs("button",{onClick:b,disabled:!c.trim()||p,className:"shrink-0 h-9 px-3 flex items-center gap-1 rounded-lg bg-orange-600 text-white text-sm whitespace-nowrap disabled:opacity-40 disabled:cursor-not-allowed active:scale-95 transition-transform",children:[m.jsx(r0,{className:"w-4 h-4"}),i(p?"fixedNick.emailSending":"fixedNick.emailSend")]})]})]})})]}),m.jsxs("div",{className:"bg-gray-800/70 border border-gray-700 rounded-xl p-4 mb-5",children:[m.jsx("div",{className:"text-gray-300 text-sm font-semibold mb-2",children:i("fixedNick.multiDeviceTitle")}),m.jsxs("ol",{className:"text-xs text-gray-400 leading-relaxed space-y-1 list-decimal list-inside break-keep",children:[m.jsx("li",{children:i("fixedNick.multiDevice1",{cmd:Vx})}),m.jsx("li",{children:i("fixedNick.multiDevice2",{cmd:`${Vx} 123456`})}),m.jsx("li",{children:i("fixedNick.multiDevice3")})]})]}),m.jsx("button",{onClick:n,className:"w-full py-3 rounded-xl bg-white text-black font-semibold active:scale-[0.98] transition-transform",children:i("fixedNick.gotIt")})]})})}var T_=(e,t,n,i,s,l,c,u)=>{let p=document.documentElement,h=["light","dark"];
vendor: 4,062 bytes, line 422
422function g(y){(Array.isArray(e)?e:[e]).forEach(v=>{let S=v==="class",T=S&&l?s.map(R=>l[R]||R):s;S?(p.classList.remove(...T),p.classList.add(l&&l[y]?l[y]:y)):p.setAttribute(v,y)}),f(y)}function f(y){u&&h.includes(y)&&(p.style.colorScheme=y)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)g(i);else try{let y=localStorage.getItem(t)||n,v=c&&y==="system"?b():y;g(v)}catch{}},I_=w.createContext(void 0),L_={setTheme:e=>{},themes:[]},A_=()=>{var e;return(e=w.useContext(I_))!=null?e:L_};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:i,enableColorScheme:s,defaultTheme:l,value:c,themes:u,nonce:p,scriptProps:h})=>{let g=JSON.stringify([n,t,l,e,u,c,i,s]).slice(1,-1);return w.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${T_.toString()})(${g})`}})});const O_=({...e})=>{const{theme:t="system"}=A_();return m.jsx(S1,{theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})},Kx="/assets/kakaoQr-Bm6MFlgu.jpeg",P_=["시\\s*발","씨\\s*발","씨\\s*벌","시\\s*벌","시\\s*팔","씨\\s*팔","쉬\\s*벌","쒸\\s*발","쉬\\s*발","쒸\\s*벌","슈\\s*발","쓔\\s*발","ㅅ\\s*[ㅂ1ㅣiI]\\s*[발벌]","ㅆ\\s*[ㅂ1ㅣiI]\\s*[발벌]","ㅅ\\s*ㅂ","ㅆ\\s*ㅂ","ㅅ\\s*1\\s*ㅂ","ㅆ\\s*1\\s*ㅂ","ㅅ\\s*ㅂ\\s*ㄹ\\s*ㅁ","병\\s*신","븅\\s*신","뷰+\\s*웅\\s*신","벼+\\s*엉\\s*신","병\\s*쉰","빙\\s*신","뵹\\s*신","븅\\s*딱","병\\s*딱","ㅂ\\s*ㅅ","ㅂ\\s*1\\s*ㅅ","[좆졷쟏죶쟞쟛]","좆\\s*같","좃\\s*같","죶\\s*같","좆\\s*밥","좃\\s*밥","죶\\s*밥","좆\\s*까","좃\\s*까","죶\\s*까","ㅈ\\s*ㄹ","지\\s*랄","쥐\\s*랄","ㅈ\\s*ㄴ","존\\s*나","줜\\s*나","죤\\s*나","졸\\s*라","좃\\s*나","개\\s*새\\s*끼","개\\s*샛\\s*끼","개\\s*새","호\\s*로\\s*새\\s*끼","씹\\s*새\\s*끼","씹\\s*팔","씹\\s*창","씹\\s*창\\s*년","개\\s*썅","썅","애\\s*미","애\\s*비","니\\s*기\\s*미","느\\s*금\\s*마","느\\s*애\\s*미","엠\\s*창","엄\\s*창","니\\s*애\\s*미","엄\\s*마\\s*없","애\\s*미\\s*뒤","느\\s*개\\s*비","애\\s*비\\s*충","앱\\s*충","할\\s*카\\s*스","할\\s*배\\s*카\\s*스","미\\s*친\\s*년","바\\s*보\\s*년","쓰\\s*레\\s*기\\s*년","이\\s*년","썅\\s*년","썅\\s*놈","한\\s*남","남\\s*혐","여\\s*혐","한\\s*녀","도\\s*태\\s*남","도\\s*태\\s*녀","김\\s*치\\s*녀","된\\s*장\\s*녀","맘\\s*충","틀\\s*딱","급\\s*식\\s*충","잼\\s*민","페\\s*미\\s*나\\s*치","쿵\\s*쾅\\s*이","피\\s*싸\\s*개","보\\s*슬\\s*아\\s*치","보\\s*빨\\s*러","물\\s*소","소\\s*추","냄\\s*져","애\\s*자","장\\s*애\\s*인\\s*새\\s*끼","정\\s*박\\s*아","보\\s*지","자\\s*지","보\\s*짓\\s*물","봊\\s*이","잦\\s*이","항\\s*문\\s*섹\\s*스","[섹셱쎅쎽섁쒝섺색쌕섀쒜\\uC101\\uC315\\uC0CA\\uC172\\uC102\\uC386\\uC316\\uC3BE\\uC34E][\\s\\W0-9]*[스쓰수슈쓔쓩]","ㅅ\\s*ㅅ","성\\s*관\\s*계","성\\s*행\\s*위","항\\s*문","자\\s*위","딸\\s*딸\\s*이","후\\s*장","정\\s*액","질\\s*싸","오\\s*르\\s*가\\s*즘","클\\s*리","강\\s*간","윤\\s*간","야\\s*동","야\\s*설","창\\s*녀","걸\\s*레","창\\s*놈","오\\s*피\\s*녀","갈\\s*보","창\\s*새\\s*끼","게\\s*이","레\\s*즈","[sS]\\s*[eE]\\s*[xX]","s\\s*e\\s*x\\s*y","p\\s*o\\s*r\\s*n","f\\s*u\\s*c\\s*k","b\\s*i\\s*t\\s*c\\s*h","a\\s*s\\s*s\\s*h\\s*o\\s*l\\s*e","젖\\s*가\\s*슴","젖\\s*탱\\s*이","가\\s*슴\\s*골","여\\s*친\\s*이\\s*변\\s*비\\s*걸\\s*리\\s*면","절\\s*정\\s*직\\s*전\\s*에\\s*장\\s*액\\s*이\\s*쏟\\s*아\\s*져","떡\\s*치[고자는]","후\\s*방\\s*주\\s*의","응\\s*잇","ㅁ\\s*[1ㅣiI]\\s*친","ㅁ\\s*ㅊ","미\\s*친","ㅁ\\s*ㅊ\\s*ㄴ","자\\s*해","운\\s*지","재\\s*기\\s*해","개\\s*패\\s*는","꺼\\s*져","닥\\s*쳐","^ㅗ$","등\\s*신","똥.{0,5}꼬","똥.{0,5}고","돈.{0,5}꼬","또.{0,5}꼬","또.{0,5}
422고","죽\\s*어","죽\\s*여\\s*버\\s*린\\s*다","패\\s*버\\s*린\\s*다","조\\s*져\\s*버\\s*린\\s*다","아\\s*가\\s*리","대\\s*가\\s*리","뚝\\s*배\\s*기\\s*깬\\s*다","자[\\s\\W_]*살","자[\\s\\W_]*결","짱\\s*깨","짱\\s*개","쪽\\s*빠\\s*리","쪽\\s*발\\s*이","개\\s*독","기\\s*독\\s*충","개\\s*슬\\s*람","개\\s*저\\s*씨","아\\s*재\\s*충","여\\s*시","니[\\s\\W0-9]*엄[\\s\\W0-9]*마[\\s\\W0-9]*청[\\s\\W0-9]*년","니[\\s\\W0-9]*어[\\s\\W0-9]*매[\\s\\W0-9]*청[\\s\\W0-9]*년","니[\\s\\W0-9]*애[\\s\\W0-9]*비[\\s\\W0-9]*청[\\s\\W0-9]*년","니[\\s\\W0-9]*아[\\s\\W0-9]*비[\\s\\W0-9]*청[\\s\\W0-9]*년","손\\s*경\\s*민","대\\s*구\\s*북\\s*구\\s*손\\s*경\\s*민","이\\s*마\\s*크","[마막]\\s*[1ㅣiI]?\\s*크"],j_=["\\bf[\\s\\W_]*[uv0*][\\s\\W_]*c[\\s\\W_]*k","\\bph[\\s\\W_]*u[\\s\\W_]*c[\\s\\W_]*k","\\bf[\\s\\W_]*c[\\s\\W_]*k\\b","\\bmotherf[\\s\\W_]*u?[\\s\\W_]*c[\\s\\W_]*k","\\bstfu\\b","\\bwtf\\b","\\bgtfo\\b","\\bfml\\b","\\bs[\\s\\W_]*h[\\s\\W_]*[i1!*][\\s\\W_]*t\\b","\\bbull[\\s\\W_]*s[\\s\\W_]*h[\\s\\W_]*[i1!][\\s\\W_]*t","\\bb[\\s\\W_]*[i1!*][\\s\\W_]*t[\\s\\W_]*c[\\s\\W_]*h","\\bwh[o0]re\\b","\\bslut","\\bcunt","\\btwat\\b","\\bp[u*][s5$][s5$]y\\b","\\ba[s5$][s5$][\\s\\W_]*h[o0]le","\\bdumba[s5$][s5$]","\\bjacka[s5$][s5$]","\\bd[i1!]ck[\\s\\W_]*head","\\bd[i1!]ckhead\\b","\\bc[o0]ck[\\s\\W_]*(sucker|head)","\\bprick\\b","\\bwanker\\b","\\bbollocks\\b","\\bbastard","\\bd[o0]uche[\\s\\W_]*bag","\\bjerk[\\s\\W_]*off\\b","\\bn[i1!*][g9]{1,2}[e3]r","\\bn[i1!*][g9]{1,2}a\\b","\\bf[a4@]{1,2}[g9]{1,2}([o0]t)?\\b","\\bch[i1]nk\\b","\\bg[o0][o0]k\\b","\\bsp[i1]c\\b","\\bk[i1]ke\\b","\\btr[a4]nny\\b","\\bret[a4]rd","\\bsp[a4]stic\\b","죽어/자해","\\bkys\\b","\\bkill[\\s\\W_]*your[\\s\\W_]*self","\\bk[i1]ll[\\s\\W_]*you\\b","\\bg[o0][\\s\\W_]*d[i1]e\\b","\\bshut[\\s\\W_]*the[\\s\\W_]*f"];var gw="5.1.0";function Bu(e,t){return new Promise(n=>setTimeout(n,e,t))}function M_(){return new Promise(e=>{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(null)})}function D_(e,t=1/0){const{requestIdleCallback:n}=window;return n?new Promise(i=>n.call(window,()=>i(),{timeout:t})):Bu(Math.min(e,t))}function xw(e){return!!e&&typeof e.then=="function"}function Yx(e,t){try{const n=e();xw(n)?n.then(i=>t(!0,i),i=>t(!1,i)):t(!0,n)}catch(n){t(!1,n)}}async function Xx(e,t,n=16){const i=Array(e.length);let s=Date.now();for(let l=0;l<e.length;++l){i[l]=t(e[l],l);const c=Date.now();c>=s+n&&(s=c,await M_())}return i}function Ml(e){return e.then(void 0,()=>{}),e}function F_(e,t){for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return!0;return!1}function z_(e,t){return!F_(e,t)}function Rh(e){return parseInt(e)}function eo(e){return parseFloat(e)}function qo(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Cn(e){return e.reduce((t,n)=>t+(n?1:0),0)}function yw(e,t=1){if(Math.abs(t)>=1)return Math.round(e/t)*t;{const n=1/t;return Math.round(e*n)/n}}function G_(e){var t,n;const i=`Unexpected syntax '${e}'`,s=/^\s*([a-z-]*)(.*)$/i.exec(e),l=s[1]||void 0,c={},u=/([.:#][\w-]+|\[.+?\])/gi,p=(h,g)=>{c[h]=c[h]||[],c[h].push(g)};for(;;){const h=u.exec(s[2]);if(!h)break;const g=h[0];switch(g[0]){case".":p("class",g.slice(1));break;case"#":p("id",g.slice(1));break;case"[":{const f=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(g);if(f)p(f[1],(n=(t=f[4])!==null&&t!==void 0?t:f[5])!==null&&n!==void 0?n:"");else throw new Error(i);break}default:throw new Error(i)}}return[l,c]}function B_(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(i>127)return new TextEncoder().encode(e);t[n]=i}return t}function Ii(e,t){const n=e[0]>>>16,i=e[0]&65535,s=e[1]>>>16,l=e[1]&65535,c=t[0]>>>16,u=t[0]&65535,p=t[1]>>>16,h=t[1]&65535;let g=0,f=0,b=0,y=0;y+=l+h,b+=y>>>16,y&=65535,b+=s+p,f+=b>>>16,b&=65535,f+=i+u,g+=f>>>16,f&=65535,g+=n+c,g&=65535,e[0]=g<<16|f,e[1]=b<<16|y}function Mr(e,t){const n=e[0]>>>16,i=e[0]&65535,s=e[1]>>>16,l=e[1]&65535,c=t[0]>>>16,u=t[0]&65535,p=t[1]>>>16,h=t[1]&65535;let g=0,f=0,b=0,y=0;y+=l*h,b+=y>>>16,y&=65535,b+=s*h,f+=b>>>16,b&=65535,b+=l*p,f+=b>>>16,b&=65535,f+=i*h,g+=f>>>16,f&=65535,f+=s*p,g+=f>>>16,f&=65535,f+=l*u,g+=f>>>16,f&=65535,g+=n*h+i*p+s*u+l*c,g&=65535,e[0]=g<<16|f,e[1]=b<<16|y}function ha(e,t){const n=e[0];
422t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function hr(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function Ht(e,t){e[0]^=t[0],e[1]^=t[1]}const W_=[4283543511,3981806797],H_=[3301882366,444984403];function qx(e){const t=[0,e[0]>>>1];Ht(e,t),Mr(e,W_),t[1]=e[0]>>>1,Ht(e,t),Mr(e,H_),t[1]=e[0]>>>1,Ht(e,t)}const pu=[2277735313,289559509],hu=[1291169091,658871167],Zx=[0,5],$_=[0,1390208809],U_=[0,944331445];function V_(e,t){const n=B_(e);t=t||0;const i=[0,n.length],s=i[1]%16,l=i[1]-s,c=[0,t],u=[0,t],p=[0,0],h=[0,0];let g;for(g=0;g<l;g=g+16)p[0]=n[g+4]|n[g+5]<<8|n[g+6]<<16|n[g+7]<<24,p[1]=n[g]|n[g+1]<<8|n[g+2]<<16|n[g+3]<<24,h[0]=n[g+12]|n[g+13]<<8|n[g+14]<<16|n[g+15]<<24,h[1]=n[g+8]|n[g+9]<<8|n[g+10]<<16|n[g+11]<<24,Mr(p,pu),ha(p,31),Mr(p,hu),Ht(c,p),ha(c,27),Ii(c,u),Mr(c,Zx),Ii(c,$_),Mr(h,hu),ha(h,33),Mr(h,pu),Ht(u,h),ha(u,31),Ii(u,c),Mr(u,Zx),Ii(u,U_);p[0]=0,p[1]=0,h[0]=0,h[1]=0;const f=[0,0];switch(s){case 15:f[1]=n[g+14],hr(f,48),Ht(h,f);case 14:f[1]=n[g+13],hr(f,40),Ht(h,f);case 13:f[1]=n[g+12],hr(f,32),Ht(h,f);case 12:f[1]=n[g+11],hr(f,24),Ht(h,f);case 11:f[1]=n[g+10],hr(f,16),Ht(h,f);case 10:f[1]=n[g+9],hr(f,8),Ht(h,f);case 9:f[1]=n[g+8],Ht(h,f),Mr(h,hu),ha(h,33),Mr(h,pu),Ht(u,h);case 8:f[1]=n[g+7],hr(f,56),Ht(p,f);case 7:f[1]=n[g+6],hr(f,48),Ht(p,f);case 6:f[1]=n[g+5],hr(f,40),Ht(p,f);case 5:f[1]=n[g+4],hr(f,32),Ht(p,f);case 4:f[1]=n[g+3],hr(f,24),Ht(p,f);case 3:f[1]=n[g+2],hr(f,16),Ht(p,f);case 2:f[1]=n[g+1],hr(f,8),Ht(p,f);case 1:f[1]=n[g],Ht(p,f),Mr(p,pu),ha(p,31),Mr(p,hu),Ht(c,p)}return Ht(c,i),Ht(u,i),Ii(c,u),Ii(u,c),qx(c),qx(u),Ii(c,u),Ii(u,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(u[0]>>>0).toString(16)).slice(-8)+("00000000"+(u[1]>>>0).toString(16)).slice(-8)}function K_(e){var t;return{name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
423`),...e}}function Y_(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function X_(e){return typeof e!="function"}function q_(e,t){const n=Ml(new Promise(i=>{const s=Date.now();Yx(e.bind(null,t),(...l)=>{const c=Date.now()-s;if(!l[0])return i(()=>({error:l[1],duration:c}));const u=l[1];if(X_(u))return i(()=>({value:u,duration:c}));i(()=>new Promise(p=>{const h=Date.now();Yx(u,(...g)=>{const f=c+Date.now()-h;if(!g[0])return p({error:g[1],duration:f});p({value:g[1],duration:f})})}))})}));return function(){return n.then(s=>s())}}function Z_(e,t,n,i){const s=Object.keys(e).filter(c=>z_(n,c)),l=Ml(Xx(s,c=>q_(e[c],t),i));return async function(){const u=await l,p=await Xx(u,f=>Ml(f()),i),h=await Promise.all(p),g={};for(let f=0;f<s.length;++f)g[s[f]]=h[f];return g}}function ww(){const e=window,t=navigator;return Cn(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function J_(){const e=window,t=navigator;return Cn(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!ww()}function $l(){const e=window,t=navigator;return Cn(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function so(){const e=window,t=navigator;return Cn(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function _h(){const e=window,{HTMLElement:t,Document:n}=e;return Cn(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function Ul(){const e=window;return Y_(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function Vl(){var e,t;const n=window;return Cn(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Q_(){const e=window,t=navigator,{CSS:n}=e;return Cn(["userActivation"in t,n.supports("color","light-dark(#000, #fff)"),n.supports("height","1lh"),"globalPrivacyControl"in t])>=3}function kw(){const{CSS:e}=window;
423return Cn([e.supports("selector(::details-content)"),e.supports("selector(::before::marker)"),e.supports("selector(::after::marker)"),!("locale"in CompositionEvent.prototype)])>=3}function eT(){const e=window;return Cn([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function tT(){const e=window,{URLPattern:t}=e;return Cn(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function nT(){const e=window;return Cn(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Kl(){const e=window,t=navigator,{CSS:n,HTMLButtonElement:i}=e;return Cn([!("getStorageUpdates"in t),i&&"popover"in i.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function rT(){if(navigator.platform==="iPad")return!0;const e=screen,t=e.width/e.height;return Cn(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function oT(){const e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function iT(){const e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function Th(){const e=$l(),t=Vl(),n=window,i=navigator,s="connection";return e?Cn([!("SharedWorker"in n),i[s]&&"ontypechange"in i[s],!("sinkId"in new Audio)])>=2:t?Cn(["onorientationchange"in n,"orientation"in n,/android/i.test(i.appVersion)])>=2:!1}function sT(){const e=navigator,t=window,n=Audio.prototype,{visualViewport:i}=t;return Cn(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,i&&"segments"in i,"getTextInformation"in Image.prototype])>=3}function aT(){return uT()?-4:lT()}function lT(){const e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(cT())return-1;const n=4500,i=5e3,s=new t(1,i,44100),l=s.createOscillator();l.type="triangle",l.frequency.value=1e4;const c=s.createDynamicsCompressor();c.threshold.value=-50,c.knee.value=40,c.ratio.value=12,c.attack.value=0,c.release.value=.25,l.connect(c),c.connect(s.destination),l.start(0);const[u,p]=dT(s),h=Ml(u.then(g=>fT(g.getChannelData(0).subarray(n)),g=>{if(g.name==="timeout"||g.name==="suspended")return-3;throw g}));return()=>(p(),h)}function cT(){return so()&&!_h()&&!nT()}function uT(){return so()&&Kl()&&Ul()||$l()&&sT()&&tT()}function dT(e){let l=()=>{};return[new Promise((u,p)=>{let h=!1,g=0,f=0;e.oncomplete=v=>u(v.renderedBuffer);const b=()=>{setTimeout(()=>p(Jx("timeout")),Math.min(500,f+5e3-Date.now()))},y=()=>{try{const v=e.startRendering();switch(xw(v)&&Ml(v),e.state){case"running":f=Date.now(),h&&b();break;case"suspended":document.hidden||g++,h&&g>=3?p(Jx("suspended")):setTimeout(y,500);break}}catch(v){p(v)}};y(),l=()=>{h||(h=!0,f>0&&b())}}),l]}function fT(e){let t=0;for(let n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function Jx(e){const t=new Error(e);return t.name=e,t}async function bw(e,t,n=50){var i,s,l;const c=document;for(;!c.body;)await Bu(n);const u=c.createElement("iframe");try{for(await new Promise((p,h)=>{let g=!1;const f=()=>{g=!0,p()},b=S=>{g=!0,h(S)};u.onload=f,u.onerror=b;const{style:y}=u;y.setProperty("display","block","important"),y.position="absolute",y.top="0",y.left="0",y.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",c.body.appendChild(u);const v=()=>{var S,T;g||(((T=(S=u.contentWindow)===null||S===void 0?void 0:S.document)===null||T===void 0?void 0:T.readyState)==="complete"?f():setTimeout(v,10))};v()});!(!((s=(i=u.contentWindow)===null||i===void 0?void 0:i.document)===null||s===void 0)&&s.body);)await Bu(n);return await e(u,u.contentWindow)}finally{(l=u.parentNode)===null||l===void 0||l.removeChild(u)}}function pT(e){const[t,n]=G_(e),i=document.createElement(t??"div");for(const s of Object.keys(n)){const l=n[s].join(" ");s==="style"?hT(i.style,l):i.setAttribute(s,l)}return i}function hT(e,t){for(const n of t.split(";")){const i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(i){const[,s,l,,c]=i;e.setProperty(s,l,c||"")}}}function mT(){let e=window;for(;;){const t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}const gT="mmMwWLliI0O&1",xT="48px",ma=["monospace","sans-serif","serif"],Qx=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera S
423ans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function yT(){return bw(async(e,{document:t})=>{const n=t.body;n.style.fontSize=xT;const i=t.createElement("div");i.style.setProperty("visibility","hidden","important");const s={},l={},c=y=>{const v=t.createElement("span"),{style:S}=v;return S.position="absolute",S.top="0",S.left="0",S.fontFamily=y,v.textContent=gT,i.appendChild(v),v},u=(y,v)=>c(`'${y}',${v}`),p=()=>ma.map(c),h=()=>{const y={};for(const v of Qx)y[v]=ma.map(S=>u(v,S));return y},g=y=>ma.some((v,S)=>y[S].offsetWidth!==s[v]||y[S].offsetHeight!==l[v]),f=p(),b=h();n.appendChild(i);for(let y=0;y<ma.length;y++)s[ma[y]]=f[y].offsetWidth,l[ma[y]]=f[y].offsetHeight;return Qx.filter(y=>g(b[y]))})}function wT(){const e=navigator.plugins;if(!e)return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];if(!i)continue;const s=[];for(let l=0;l<i.length;++l){const c=i[l];s.push({type:c.type,suffixes:c.suffixes})}t.push({name:i.name,description:i.description,mimeTypes:s})}return t}function kT(){return bT(_T())}function bT(e){let t=!1,n,i;const[s,l]=vT();return ST(s,l)?(t=ET(l),e?n=i="skipped":[n,i]=CT(s,l)):n=i="unsupported",{winding:t,geometry:n,text:i}}function vT(){const e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function ST(e,t){return!!(t&&e.toDataURL)}function ET(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function CT(e,t){NT(e,t);const n=rp(e),i=rp(e);return n!==i?["unstable","unstable"]:(RT(e,t),[rp(e),n])}function NT(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';const n="Cwm fjordbank gly 😃";t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function RT(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(const[n,i,s]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])t.fillStyle=n,t.beginPath(),t.arc(i,s,40,0,Math.PI*2,!0),t.closePath(),t.fill();t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function rp(e){return e.toDataURL()}function _T(){const e=so()&&Kl()&&Ul(),t=Vl()&&Q_();return e||t}function TT(){const e=navigator;let t=0,n;e.maxTouchPoints!==void 0?t=Rh(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch{n=!1}const i="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:i}}function IT(){return navigator.oscpu}function LT(){const e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))$l()&&eT()||t.push(e.languages);else if(typeof e.languages=="string"){const i=e.languages;i&&t.push(i.split(","))}return t}function AT(){return window.screen.colorDepth}function OT(){return qo(eo(navigator.deviceMemory),void 0)}function PT(){if(!(so()&&Kl()&&Ul()))return jT()}function jT(){const e=screen,t=i=>qo(Rh(i),null),n=[t(e.width),t(e.height)];return n.sort().reverse(),n}const MT=2500,DT=10;let Tu,op;function FT(){if(op!==void 0)return;const e=()=>{const t=$p();Up(t)?op=setTimeout(e,MT):(Tu=t,op=void 0)};e()}function zT(){return FT(),async()=>{let e=$p();if(Up(e)){if(Tu)return[...Tu];oT()&&(await iT(),e=$p())}return Up(e)||(Tu=e),e}}function GT(){const e=so()&&Kl()&&Ul(),t=Vl()&&kw();if(e||t)return()=>Promise.resolve(void 0);const n=zT();return async()=>{const i=await n(),s=l=>l===null?null:yw(l,DT);return[s(i[0]),s(i[1]),s(i[2]),s(i[3])]}}function $p(){const e=screen;return[qo(eo(e.availTop),null),qo(eo(e.width)-eo(e.availWidth)-qo(eo(e.availLeft),0),null),qo(eo(e.height)-eo(e.availHeight)-qo(eo(e.availTop),0),null),qo(eo(e.availLeft),null)]}function Up(e){for(let t=0;t<4;++t)if(e[t])return!1;return!0}function BT(){const e=WT();return e!==void 0&&Vl()&&kw()?e>=8?8:4:e}function WT(){return qo(Rh(navigator.hardwareConcurrency),void 0)}function HT(){var e;const t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){const i=new t().resolvedOptions().timeZone;if(i)return i}const n=-$T();return`UTC${n>=0?"+":""}${n}`}function $T(){const e=new Date().getFullYear();
423return Math.max(eo(new Date(e,0,1).getTimezoneOffset()),eo(new Date(e,6,1).getTimezoneOffset()))}function UT(){try{return!!window.sessionStorage}catch{return!0}}function VT(){try{return!!window.localStorage}catch{return!0}}function KT(){if(!(ww()||J_()))try{return!!window.indexedDB}catch{return!0}}function YT(){return!!window.openDatabase}function XT(){return navigator.cpuClass}function qT(){const{platform:e}=navigator;return e==="MacIntel"&&so()&&!_h()?rT()?"iPad":"iPhone":e}function ZT(){return navigator.vendor||""}function JT(){const e=[];for(const t of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const n=window[t];n&&typeof n=="object"&&e.push(t)}return e.sort()}function QT(){const e=document;try{e.cookie="cookietest=1; SameSite=Strict;";const t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function eI
vendor: 7,239 bytes, line 423
423(){const e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}
423async function tI({debug:e}={}){if(!nI())return;const t=eI(),n=Object.keys(t),i=[].concat(...n.map(c=>t[c])),s=await rI(i);e&&oI(t,s);const l=n.filter(c=>{const u=t[c];return Cn(u.map(h=>s[h]))>u.length*.6});return l.sort(),l}function nI(){return so()||Th()}async function rI(e){var t;const n=document,i=n.createElement("div"),s=new Array(e.length),l={};ey(i);for(let c=0;c<e.length;++c){const u=pT(e[c]);u.tagName==="DIALOG"&&u.show();const p=n.createElement("div");ey(p),p.appendChild(u),i.appendChild(p),s[c]=u}for(;!n.body;)await Bu(50);n.body.appendChild(i);try{for(let c=0;c<e.length;++c)s[c].offsetParent||(l[e[c]]=!0)}finally{(t=i.parentNode)===null||t===void 0||t.removeChild(i)}return l}function ey(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function oI(e,t){let n="DOM blockers debug:\n```";for(const i of Object.keys(e)){n+=`
424${i}:`;for(const s of e[i])n+=`
425  ${t[s]?"🚫":"➡️"} ${s}`}console.log(`${n}
426\`\`\``)}function iI(){for(const e of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${e})`).matches)return e}function sI(){if(ty("inverted"))return!0;if(ty("none"))return!1}function ty(e){return matchMedia(`(inverted-colors: ${e})`).matches}function aI(){if(ny("active"))return!0;if(ny("none"))return!1}function ny(e){return matchMedia(`(forced-colors: ${e})`).matches}const lI=100;function cI(){if(matchMedia("(min-monochrome: 0)").matches){for(let e=0;e<=lI;++e)if(matchMedia(`(max-monochrome: ${e})`).matches)return e;throw new Error("Too high value")}}function uI(){if(ga("no-preference"))return 0;if(ga("high")||ga("more"))return 1;if(ga("low")||ga("less"))return-1;if(ga("forced"))return 10}function ga(e){return matchMedia(`(prefers-contrast: ${e})`).matches}function dI(){if(ry("reduce"))return!0;if(ry("no-preference"))return!1}function ry(e){return matchMedia(`(prefers-reduced-motion: ${e})`).matches}function fI(){if(oy("reduce"))return!0;if(oy("no-preference"))return!1}function oy(e){return matchMedia(`(prefers-reduced-transparency: ${e})`).matches}function pI(){if(iy("high"))return!0;if(iy("standard"))return!1}function iy(e){return matchMedia(`(dynamic-range: ${e})`).matches}const Et=Math,zn=()=>0;function hI(){const e=Et.acos||zn,t=Et.acosh||zn,n=Et.asin||zn,i=Et.asinh||zn,s=Et.atanh||zn,l=Et.atan||zn,c=Et.sin||zn,u=Et.sinh||zn,p=Et.cos||zn,h=Et.cosh||zn,g=Et.tan||zn,f=Et.tanh||zn,b=Et.exp||zn,y=Et.expm1||zn,v=Et.log1p||zn,S=I=>Et.pow(Et.PI,I),T=I=>Et.log(I+Et.sqrt(I*I-1)),R=I=>Et.log(I+Et.sqrt(I*I+1)),P=I=>Et.log((1+I)/(1-I))/2,j=I=>Et.exp(I)-1/Et.exp(I)/2,D=I=>(Et.exp(I)+1/Et.exp(I))/2,E=I=>Et.exp(I)-1,C=I=>(Et.exp(2*I)-1)/(Et.exp(2*I)+1),L=I=>Et.log(1+I);return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:T(1e154),asin:n(.12312423423423424),asinh:i(1),asinhPf:R(1),atanh:s(.5),atanhPf:P(.5),atan:l(.5),sin:c(-1e300),sinh:u(1),sinhPf:j(1),cos:p(10.000000000123),cosh:h(1),coshPf:D(1),tan:g(-1e300),tanh:f(1),tanhPf:C(1),exp:b(1),expm1:y(1),expm1Pf:E(1),log1p:v(10),log1pPf:L(10),powPI:S(-100)}}const mI="mmMwWLliI0fiflO&1",ip={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function gI(){return xI((e,t)=>{const n={},i={};for(const s of Object.keys(ip)){const[l={},c=mI]=ip[s],u=e.createElement("span");u.textContent=c,u.style.whiteSpace="nowrap";for(const p of Object.keys(l)){const h=l[p];h!==void 0&&(u.style[p]=h)}n[s]=u,t.append(e.createElement("br"),u)}for(const s of Object.keys(ip))i[s]=n[s].getBoundingClientRect().width;return i})}function xI(e,t=4e3){return bw((n,i)=>{const s=i.document,l=s.body,c=l.style;c.width=`${t}px`,c.webkitTextSizeAdjust=c.textSizeAdjust="none",$l()?l.style.zoom=`${1/i.devicePixelRatio}`:so()&&(l.style.zoom="reset");const u=s.createElement("div");return u.textContent=[...Array(t/20<<0)].map(()=>"word").join(" "),l.appendChild(u),e(s,l)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function yI(){return navigator.pdfViewerEnabled}function wI(){const e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function kI(){const{ApplePaySession:e}=window;if(typeof e?.canMakePayments!="function")return-1;if(bI())return-3;try{return e.canMakePayments()?1:0}catch(t){return vI(t)}}const bI=mT;function vI(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function SI(){var e;const t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}const vw=-1,Sw=-2,EI=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),CI=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),NI=["FRAGMENT_SHADER","VERTEX_SHADER"],RI=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Ew="WEBGL_debug_renderer_info",_I="WEBGL_polygon_mode";function TI({cache:e}){var t,n,i,s,l,c;const u=Cw(e);if(!u)return vw;if(!Rw(u))return Sw;const p=Nw()?null:u.getExtension(Ew);return{version:((t=u.getParameter(u.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=u.getParameter(u.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:p?(i=u.getParameter(p.UNMASKED_VENDOR_WEBGL))===null||i===void 0?void 0:i.toString():"",renderer:((s=u.getParameter(u.RENDERER))===null||s===void 0?void 0:s.toString())||"",rendererUnmasked:p?(l=u.getParameter(p.UNMASKED_RENDERER_WEBGL))===null||l===void 0?void 0:l.toString():"",shadingLanguageVersion:((c=u.getParameter(u.SHADING_LANGUAGE_VERSION))===null||c===void 0?void 0:c.toString())||""}}function II({cache:e}){const t=Cw(e);if(!t)return vw;if(!Rw(t))return Sw;
426const n=t.getSupportedExtensions(),i=t.getContextAttributes(),s=[],l=[],c=[],u=[],p=[];if(i)for(const g of Object.keys(i))l.push(`${g}=${i[g]}`);const h=sy(t);for(const g of h){const f=t[g];c.push(`${g}=${f}${EI.has(f)?`=${t.getParameter(f)}`:""}`)}if(n)for(const g of n){if(g===Ew&&Nw()||g===_I&&OI())continue;const f=t.getExtension(g);if(!f){s.push(g);continue}for(const b of sy(f)){const y=f[b];u.push(`${b}=${y}${CI.has(y)?`=${t.getParameter(y)}`:""}`)}}for(const g of NI)for(const f of RI){const b=LI(t,g,f);p.push(`${g}.${f}=${b.join(",")}`)}return u.sort(),c.sort(),{contextAttributes:l,parameters:c,shaderPrecisions:p,extensions:n,extensionParameters:u,unsupportedExtensions:s}}function Cw(e){if(e.webgl)return e.webgl.context;const t=document.createElement("canvas");let n;t.addEventListener("webglCreateContextError",()=>n=void 0);for(const i of["webgl","experimental-webgl"]){try{n=t.getContext(i)}catch{}if(n)break}return e.webgl={context:n},n}function LI(e,t,n){const i=e.getShaderPrecisionFormat(e[t],e[n]);return i?[i.rangeMin,i.rangeMax,i.precision]:[]}function sy(e){return Object.keys(e.__proto__).filter(AI)}function AI(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function Nw(){return Vl()}
426function OI(){return $l()||so()}function Rw(e){return typeof e.getParameter=="function"}function PI(){if(!(Th()||so()))return-2;if(!window.AudioContext)return-1;const t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function jI(){if(!window.Intl)return-1;const e=window.Intl.DateTimeFormat;if(!e)return-2;const t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}const MI={fonts:yT,domBlockers:tI,fontPreferences:gI,audio:aT,screenFrame:GT,canvas:kT,osCpu:IT,languages:LT,colorDepth:AT,deviceMemory:OT,screenResolution:PT,hardwareConcurrency:BT,timezone:HT,sessionStorage:UT,localStorage:VT,indexedDB:KT,openDatabase:YT,cpuClass:XT,platform:qT,plugins:wT,touchSupport:TT,vendor:ZT,vendorFlavors:JT,cookiesEnabled:QT,colorGamut:iI,invertedColors:sI,forcedColors:aI,monochrome:cI,contrast:uI,reducedMotion:dI,reducedTransparency:fI,hdr:pI,math:hI,pdfViewerEnabled:yI,architecture:wI,applePay:kI,privateClickMeasurement:SI,audioBaseLatency:PI,dateTimeLocale:jI,webGlBasics:TI,webGlExtensions:II};function DI(e){return Z_(MI,e,[])}const FI="$ if upgrade to Pro: https://fingerprint.com/github/?utm_source=oss&utm_medium=referral&utm_campaign=confidence_score";function zI(e){const t=GI(e),n=BI(t);return{score:t,comment:FI.replace(/\$/g,`${n}`)}}function GI(e){if(Th())return .4;if(so())return _h()&&!(Kl()&&Ul())?.5:.3;const t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function BI(e){return yw(.99+.01*e,1e-4)}function WI(e){let t="";for(const n of Object.keys(e).sort()){const i=e[n],s="error"in i?"error":JSON.stringify(i.value);t+=`${t?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${s}`}return t}function _w(e){return JSON.stringify(e,(t,n)=>n instanceof Error?K_(n):n,2)}function Tw(e){return V_(WI(e))}function HI(e){let t;const n=zI(e);return{get visitorId(){return t===void 0&&(t=Tw(this.components)),t},set visitorId(i){t=i},confidence:n,components:e,version:gw}}function $I(e=50){return D_(e,e*2)}function UI(e,t){const n=Date.now();return{async get(i){const s=Date.now(),l=await e(),c=HI(l);return(t||i?.debug)&&console.log(`Copy the text below to get the debug data:
427
428\`\`\`
429version: ${c.version}
430userAgent: ${navigator.userAgent}
431timeBetweenLoadAndGet: ${s-n}
432visitorId: ${c.visitorId}
433components: ${_w(l)}
434\`\`\``),c}}}function VI(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const e=new XMLHttpRequest;e.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${gw}/npm-monitoring`,!0),e.send()}catch(e){console.error(e)}}async function KI(e={}){const{delayFallback:t,debug:n,monitoring:i=!0}=e;i&&VI(),await $I(t);const s=DI({cache:{},debug:n});return UI(s,n)}var YI={load:KI,hashComponents:Tw,componentsToDebugString:_w};let mu=null;async function Ih(){return mu||(mu=(await(await YI.load()).get()).visitorId,mu)}const El=["cigarette","cigar","heated","vape"],Iw="damta_cigarette_skin";function XI(e){return e!==null&&El.includes(e)}function qI(){const e=localStorage.getItem(Iw);return XI(e)?e:"cigarette"}function ZI(e){localStorage.setItem(Iw,e)}const JI=["이\\s*재\\s*명","노\\s*무\\s*현","김\\s*대\\s*중","윤\\s*석\\s*열","박\\s*ê·¼\\s*혜","문\\s*재\\s*인","김\\s*영\\s*삼","전\\s*두\\s*환","노\\s*태\\s*우","이\\s*승\\s*만","박\\s*정\\s*희","안\\s*ì² \\s*수","이\\s*명\\s*박","한\\s*동\\s*훈","이\\s*준\\s*석","ì¡°\\s*êµ­","추\\s*미\\s*애","홍\\s*준\\s*표","유\\s*승\\s*민","김\\s*ê±´\\s*희","이\\s*낙\\s*연","정\\s*ì²­\\s*래","김\\s*종\\s*인","황\\s*교\\s*안","êµ­\\s*민\\s*의\\s*당","더\\s*불\\s*어\\s*민\\s*주\\s*당","민\\s*주\\s*당","자\\s*유\\s*한\\s*êµ­\\s*당","더\\s*민\\s*주","êµ­\\s*민\\s*의\\s*힘","êµ­\\s*힘","정\\s*의\\s*당","진\\s*ë³´\\s*당","새\\s*누\\s*리","전\\s*교\\s*ì¡°","민\\s*주\\s*노\\s*총","한\\s*êµ­\\s*노\\s*총","빨\\s*ê°±\\s*이","좌\\s*파","우\\s*파","좌\\s*빨","수\\s*구","대\\s*깨","대\\s*깨\\s*문","ì°¢\\s*재\\s*명","êµ¥","윤\\s*어\\s*게\\s*인","[윤Yy]\\s*[uU]\\s*[nN]\\s*[aA]\\s*[gG]\\s*[aA]\\s*[iI]\\s*[nN]","개\\s*딸","태\\s*ê·¹\\s*기\\s*부\\s*대","틀\\s*튜\\s*버","일\\s*ë² ","메\\s*갈","워\\s*마\\s*드","펨\\s*코","여\\s*성\\s*가\\s*족\\s*부","페\\s*미","페\\s*미\\s*니\\s*스\\s*트","페\\s*미\\s*니\\s*즘","여\\s*가\\s*부","êµ­\\s*뽕","일\\s*뽕","토\\s*ì°©\\s*왜\\s*구","친\\s*일\\s*파","종\\s*북","간\\s*첩","달\\s*ì°
434½","문\\s*재\\s*앙","쥐\\s*명\\s*박","친\\s*문","친\\s*윤","친\\s*이","주\\s*사\\s*파","내\\s*란","계\\s*엄","탄\\s*핵","광\\s*주\\s*폭\\s*동","홍\\s*어","쌍\\s*도","ê³¼\\s*메\\s*기","통\\s*구\\s*이","전\\s*라\\s*디\\s*언","멍\\s*ì²­\\s*도","감\\s*자\\s*êµ­","대\\s*구\\s*ì¶©","ê²½\\s*상\\s*도\\s*ì¶©","ê¼´\\s*통\\s*ê²½\\s*상"],QI=["\\btrump\\b","\\bbiden\\b","\\bobama\\b","\\bkamala\\b","\\bharris\\b","\\bclinton\\b","\\bpelosi\\b","\\bdesantis\\b","\\bputin\\b","\\bzelensky\\b","\\bnetanyahu\\b","\\bxi[\\s\\W_]*jinping\\b","\\bkim[\\s\\W_]*jong","\\bmaga\\b","\\bantifa\\b","\\bqanon\\b","\\balt[\\s\\W_]*right\\b","\\bwoke(ism|ness)?\\b","\\bsjw\\b","\\bincel\\b","\\bfeminazi\\b","\\bdemocrat(s|ic)?[\\s\\W_]*party\\b","\\brepublican[\\s\\W_]*party\\b","\\bgop\\b","\\bcommunis[mt]","\\bfascis[mt]","\\bnazi\\b","\\bwhite[\\s\\W_]*supremac","\\bblm\\b","\\babortion\\b","\\bpro[\\s\\W_]*life\\b","\\bpro[\\s\\W_]*choice\\b"];function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e?.(s),n===!1||!s.defaultPrevented)return t?.(s)}}function ay(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function La(...e){return t=>{let n=!1;const i=e.map(s=>{const l=ay(s,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let s=0;s<i.length;s++){const l=i[s];typeof l=="function"?l():ay(e[s],null)}}}}function rr(...e){return w.useCallback(La(...e),e)}function Yl(e,t=[]){let n=[];function i(l,c){const u=w.createContext(c),p=n.length;n=[...n,c];const h=f=>{const{scope:b,children:y,...v}=f,S=b?.[e]?.[p]||u,T=w.useMemo(()=>v,Object.values(v));return m.jsx(S.Provider,{value:T,children:y})};h.displayName=l+"Provider";function g(f,b){const y=b?.[e]?.[p]||u,v=w.useContext(y);if(v)return v;if(c!==void 0)return c;throw new Error(`\`${f}\` must be used within \`${l}\``)}return[h,g]}const s=()=>{const l=n.map(c=>w.createContext(c));return function(u){const p=u?.[e]||l;return w.useMemo(()=>({[`__scope${e}`]:{...u,[e]:p}}),[u,p])}};return s.scopeName=e,[i,eL(s,...t)]}function eL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(l){const c=i.reduce((u,{useScope:p,scopeName:h})=>{const f=p(l)[`__scope${h}`];return{...u,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Pi=globalThis?.document?w.useLayoutEffect:()=>{},tL=t0[" useInsertionEffect ".trim().toString()]||Pi;function Lw({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[s,l,c]=nL({defaultProp:t,onChange:n}),u=e!==void 0,p=u?e:s;{const g=w.useRef(e!==void 0);w.useEffect(()=>{const f=g.current;f!==u&&console.warn(`${i} is changing from ${f?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=u},[u,i])}const h=w.useCallback(g=>{if(u){const f=rL(g)?g(e):g;f!==e&&c.current?.(f)}else l(g)},[u,e,l,c]);return[p,h]}function nL({defaultProp:e,onChange:t}){const[n,i]=w.useState(e),s=w.useRef(n),l=w.useRef(t);return tL(()=>{l.current=t},[t]),w.useEffect(()=>{s.current!==n&&(l.current?.(n),s.current=n)},[n,s]),[n,i,l]}function rL(e){return typeof e=="function"}function oL(e){const t=iL(e),n=w.forwardRef((i,s)=>{const{children:l,...c}=i,u=w.Children.toArray(l),p=u.find(aL);if(p){const h=p.props.children,g=u.map(f=>f===p?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:f);return m.jsx(t,{...c,ref:s,children:w.isValidElement(h)?w.cloneElement(h,void 0,g):null})}return m.jsx(t,{...c,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}function iL(e){const t=w.forwardRef((n,i)=>{const{children:s,...l}=n;if(w.isValidElement(s)){const c=cL(s),u=lL(l,s.props);return s.type!==w.Fragment&&(u.ref=i?La(i,c):c),w.cloneElement(s,u)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sL=Symbol("radix.slottable");function aL(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sL}function lL(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...u)=>{const p=l(...u);return s(...u),p}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}
vendor: 10,959 bytes, line 434
434:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function cL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Hn=uL.reduce((e,t)=>{const n=oL(`Primitive.${t}`),i=w.forwardRef((s,l)=>{const{asChild:c,...u}=s,p=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(p,{...u,ref:l})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Aw(e,t){e&&ih.flushSync(()=>e.dispatchEvent(t))}function ly(e){const t=dL(e),n=w.forwardRef((i,s)=>{const{children:l,...c}=i,u=w.Children.toArray(l),p=u.find(pL);if(p){const h=p.props.children,g=u.map(f=>f===p?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:f);return m.jsx(t,{...c,ref:s,children:w.isValidElement(h)?w.cloneElement(h,void 0,g):null})}return m.jsx(t,{...c,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}function dL(e){const t=w.forwardRef((n,i)=>{const{children:s,...l}=n;if(w.isValidElement(s)){const c=mL(s),u=hL(l,s.props);return s.type!==w.Fragment&&(u.ref=i?La(i,c):c),w.cloneElement(s,u)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fL=Symbol("radix.slottable");function pL(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fL}function hL(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...u)=>{const p=l(...u);return s(...u),p}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function mL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ow(e){const t=e+"CollectionProvider",[n,i]=Yl(t),[s,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:T,children:R}=S,P=ve.useRef(null),j=ve.useRef(new Map).current;return m.jsx(s,{scope:T,itemMap:j,collectionRef:P,children:R})};c.displayName=t;const u=e+"CollectionSlot",p=ly(u),h=ve.forwardRef((S,T)=>{const{scope:R,children:P}=S,j=l(u,R),D=rr(T,j.collectionRef);return m.jsx(p,{ref:D,children:P})});h.displayName=u;const g=e+"CollectionItemSlot",f="data-radix-collection-item",b=ly(g),y=ve.forwardRef((S,T)=>{const{scope:R,children:P,...j}=S,D=ve.useRef(null),E=rr(T,D),C=l(g,R);return ve.useEffect(()=>(C.itemMap.set(D,{ref:D,...j}),()=>void C.itemMap.delete(D))),m.jsx(b,{[f]:"",ref:E,children:P})});y.displayName=g;function v(S){const T=l(e+"CollectionConsumer",S);return ve.useCallback(()=>{const P=T.collectionRef.current;if(!P)return[];const j=Array.from(P.querySelectorAll(`[${f}]`));return Array.from(T.itemMap.values()).sort((C,L)=>j.indexOf(C.ref.current)-j.indexOf(L.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:h,ItemSlot:y},v,i]}var gL=w.createContext(void 0);function Pw(e){const t=w.useContext(gL);return e||t||"ltr"}function Jo(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>t.current?.(...n),[])}function xL(e,t=globalThis?.document){const n=Jo(e);w.useEffect(()=>{const i=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var yL="DismissableLayer",Vp="dismissableLayer.update",wL="dismissableLayer.pointerDownOutside",kL="dismissableLayer.focusOutside",cy,jw=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mw=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...p}=e,h=w.useContext(jw),[g,f]=w.useState(null),b=g?.ownerDocument??globalThis?.document,[,y]=w.useState({}),v=rr(t,L=>f(L)),S=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),R=S.indexOf(T),P=g?S.indexOf(g):-1,j=h.layersWithOutsidePointerEventsDisabled.size>0,D=P>=R,E=SL(L=>{const I=L.target,H=[...h.branches].some(F=>F.contains(I));!D||H||(s?.(L),c?.(L),L.defaultPrevented||u?.())},b),C=EL(L=>{const I=L.target;[...h.branches].some(F=>F.contains(I))||(l?.(L),c?.(L),L.defaultPrevented||u?.())},b);return xL(L=>{P===h.layers.size-1&&(i?.(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},b),w.useEffect(()=>{if(g)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(cy=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),uy(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=cy)}},[g,b,n,h]),w.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),uy())},[g,h]),w.useEffect(()=>{const L=()=>y({});return document.addEventListener(Vp,L),()=>document.removeEventListener(Vp,L)},[]),m.jsx(Hn.div,{...p,ref:v,style:{pointerEvents:j?D?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,C.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,E.onPointerDownCapture)})});Mw.displayName=yL;var bL="DismissableLayerBranch",vL=w.forwardRef((e,t)=>{const n=w.useContext(jw),i=w.useRef(null),s=rr(t,i);return w.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),m.jsx(Hn.div,{...e,ref:s})});vL.displayName=bL;function SL(e,t=globalThis?.document){const n=Jo(e),i=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const l=u=>{if(u.target&&!i.current){let p=function(){Dw(wL,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=p,t.addEventListener("click",s.current,{once:!0})):p()}else t.removeEventListener("click",s.current);i.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",l),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function EL(e,t=globalThis?.document){const n=Jo(e),i=w.useRef(!1);return w.useEffect(()=>{const s=l=>{l.target&&!i.current&&Dw(kL,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function uy(){const e=new CustomEvent(Vp);document.dispatchEvent(e)}function Dw(e,t,n,{discrete:i}){const s=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),i?Aw(s,l):s.dispatchEvent(l)}var sp=0;function CL(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dy()),document.body.insertAdjacentElement("beforeend",e[1]??dy()),sp++,()=>{sp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sp--}},[])}function dy(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ap="focusScope.autoFocusOnMount",lp="focusScope.autoFocusOnUnmount",fy={bubbles:!1,cancelable:!0},NL="FocusScope",Fw=w.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:l,...c}=e,[u,p]=w.useState(null),h=Jo(s),g=Jo(l),f=w.useRef(null),b=rr(t,S=>p(S)),y=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(i){let S=function(j){if(y.paused||!u)return;const D=j.target;u.contains(D)?f.current=D:Oi(f.current,{select:!0})},T=function(j){if(y.paused||!u)return;const D=j.relatedTarget;D!==null&&(u.contains(D)||Oi(f.current,{select:!0}))},R=function(j){if(document.activeElement===document.body)for(const E of j)E.removedNodes.length>0&&Oi(u)};document.addEventListener("focusin",S),document.addEventListener("focusout",T);const P=new MutationObserver(R);return u&&P.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",T),P.disconnect()}}},[i,u,y.paused]),w.useEffect(()=>{if(u){hy.add(y);const S=document.activeElement;if(!u.contains(S)){const R=new CustomEvent(ap,fy);u.addEventListener(ap,h),u.dispatchEvent(R),R.defaultPrevented||(RL(AL(zw(u)),{select:!0}),document.activeElement===S&&Oi(u))}return()=>{u.removeEventListener(ap,h),setTimeout(()=>{const R=new CustomEvent(lp,fy);u.addEventListener(lp,g),u.dispatchEvent(R),R.defaultPrevented||Oi(S??document.body,{select:!0}),u.removeEventListener(lp,g),hy.remove(y)},0)}}},[u,h,g,y]);const v=w.useCallback(S=>{if(!n&&!i||y.paused)return;const T=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,R=document.activeElement;if(T&&R){const P=S.currentTarget,[j,D]=_L(P);j&&D?!S.shiftKey&&R===D?(S.preventDefault(),n&&Oi(j,{select:!0})):S.shiftKey&&R===j&&(S.preventDefault(),n&&Oi(D,{select:!0})):R===P&&S.preventDefault()}},[n,i,y.paused]);return m.jsx(Hn.div,{tabIndex:-1,...c,ref:b,onKeyDown:v})});Fw.displayName=NL;function RL(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Oi(i,{select:t}),document.activeElement!==n)return}function _L(e){const t=zw(e),n=py(t,e),i=py(t.reverse(),e);return[n,i]}function zw(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function py(e,t){for(const n of e)if(!TL(n,{upTo:t}))return n}function TL(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function IL(e){return e instanceof HTMLInputElement&&"select"in e}function Oi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&IL(e)&&t&&e.select()}}var hy=LL();function LL(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=my(e,t),e.unshift(t)},remove(t){e=my(e,t),e[0]?.resume()}}}function my(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function AL(e){return e.filter(t=>t.tagName!=="A")}var OL=t0[" useId ".trim().toString()]||(()=>{}),PL=0;function Kp(e){const[t,n]=w.useState(OL());return Pi(()=>{n(i=>i??String(PL++))},[e]),e||(t?`radix-${t}`:"")}const jL=["top","right","bottom","left"],ji=Math.min,gr=Math.max,Wu=Math.round,gu=Math.floor,Ro=e=>({x:e,y:e}
vendor: 11,905 bytes, line 434
434),ML={left:"right",right:"left",bottom:"top",top:"bottom"};function Yp(e,t,n){return gr(e,ji(t,n))}function Qo(e,t){return typeof e=="function"?e(t):e}function ei(e){return e.split("-")[0]}function Aa(e){return e.split("-")[1]}function Lh(e){return e==="x"?"y":"x"}function Ah(e){return e==="y"?"height":"width"}function No(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Oh(e){return Lh(No(e))}function DL(e,t,n){n===void 0&&(n=!1);const i=Aa(e),s=Oh(e),l=Ah(s);let c=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=Hu(c)),[c,Hu(c)]}function FL(e){const t=Hu(e);return[Xp(e),t,Xp(t)]}function Xp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const gy=["left","right"],xy=["right","left"],zL=["top","bottom"],GL=["bottom","top"];function BL(e,t,n){switch(e){case"top":case"bottom":return n?t?xy:gy:t?gy:xy;case"left":case"right":return t?zL:GL;default:return[]}}function WL(e,t,n,i){const s=Aa(e);let l=BL(ei(e),n==="start",i);return s&&(l=l.map(c=>c+"-"+s),t&&(l=l.concat(l.map(Xp)))),l}function Hu(e){const t=ei(e);return ML[t]+e.slice(t.length)}function HL(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gw(e){return typeof e!="number"?HL(e):{top:e,right:e,bottom:e,left:e}}function $u(e){const{x:t,y:n,width:i,height:s}=e;return{width:i,height:s,top:n,left:t,right:t+i,bottom:n+s,x:t,y:n}}function yy(e,t,n){let{reference:i,floating:s}=e;const l=No(t),c=Oh(t),u=Ah(c),p=ei(t),h=l==="y",g=i.x+i.width/2-s.width/2,f=i.y+i.height/2-s.height/2,b=i[u]/2-s[u]/2;let y;switch(p){case"top":y={x:g,y:i.y-s.height};break;case"bottom":y={x:g,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:f};break;case"left":y={x:i.x-s.width,y:f};break;default:y={x:i.x,y:i.y}}switch(Aa(t)){case"start":y[c]-=b*(n&&h?-1:1);break;case"end":y[c]+=b*(n&&h?-1:1);break}return y}async function $L(e,t){var n;t===void 0&&(t={});const{x:i,y:s,platform:l,rects:c,elements:u,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:b=!1,padding:y=0}=Qo(t,e),v=Gw(y),T=u[b?f==="floating"?"reference":"floating":f],R=$u(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(T)))==null||n?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(u.floating)),boundary:h,rootBoundary:g,strategy:p})),P=f==="floating"?{x:i,y:s,width:c.floating.width,height:c.floating.height}:c.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u.floating)),D=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},E=$u(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:P,offsetParent:j,strategy:p}):P);return{top:(R.top-E.top+v.top)/D.y,bottom:(E.bottom-R.bottom+v.bottom)/D.y,left:(R.left-E.left+v.left)/D.x,right:(E.right-R.right+v.right)/D.x}}const UL=50,VL=async(e,t,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:l=[],platform:c}=n,u=c.detectOverflow?c:{...c,detectOverflow:$L},p=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:s}),{x:g,y:f}=yy(h,i,p),b=i,y=0;const v={};for(let S=0;S<l.length;S++){const T=l[S];if(!T)continue;const{name:R,fn:P}=T,{x:j,y:D,data:E,reset:C}=await P({x:g,y:f,initialPlacement:i,placement:b,strategy:s,middlewareData:v,rects:h,platform:u,elements:{reference:e,floating:t}});g=j??g,f=D??f,v[R]={...v[R],...E},C&&y<UL&&(y++,typeof C=="object"&&(C.placement&&(b=C.placement),C.rects&&(h=C.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:g,y:f}=yy(h,b,p)),S=-1)}return{x:g,y:f,placement:b,strategy:s,middlewareData:v}},KL=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:s,rects:l,platform:c,elements:u,middlewareData:p}=t,{element:h,padding:g=0}=Qo(e,t)||{};if(h==null)return{};const f=Gw(g),b={x:n,y:i},y=Oh(s),v=Ah(y),S=await c.getDimensions(h),T=y==="y",R=T?"top":"left",P=T?"bottom":"right",j=T?"clientHeight":"clientWidth",D=l.reference[v]+l.reference[y]-b[y]-l.floating[v],E=b[y]-l.reference[y],C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=C?C[j]:0;(!L||!await(c.isElement==null?void 0:c.isElement(C)))&&(L=u.floating[j]||l.floating[v]);const I=D/2-E/2,H=L/2-S[v]/2-1,F=ji(f[R],H),$=ji(f[P],H),Y=F,ce=L-S[v]-$,ae=L/2-S[v]/2+I,ie=Yp(Y,ae,ce),re=!p.arrow&&Aa(s)!=null&&ae!==ie&&l.reference[v]/2-(ae<Y?F:$)-S[v]/2<0,pe=re?ae<Y?ae-Y:ae-ce:0;return{[y]:b[y]+pe,data:{[y]:ie,centerOffset:ae-ie-pe,...re&&{alignmentOffset:pe}},reset:re}}}),YL=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:s,middlewareData:l,rects:c,initialPlacement:u,platform:p,elements:h}=t,{mainAxis:g=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...T}=Qo(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const R=ei(s),P=No(u),j=ei(u)===u,D=await(p.isRTL==null?void 0:p.isRTL(h.floating)),E=b||(j||!S?[Hu(u)]:FL(u)),C=v!=="none";!b&&C&&E.push(...WL(u,S,v,D));const L=[u,...E],I=await p.detectOverflow(t,T),H=[];let F=((i=l.flip)==null?void 0:i.overflows)||[];if(g&&H.push(I[R]),f){const ae=DL(s,c,D);H.push(I[ae[0]],I[ae[1]])}if(F=[...F,{placement:s,overflows:H}],!H.every(ae=>ae<=0)){var $,Y;const ae=((($=l.flip)==null?void 0:$.index)||0)+1,ie=L[ae];if(ie&&(!(f==="alignment"?P!==No(ie):!1)||F.every(X=>No(X.placement)===P?X.overflows[0]>0:!0)))return{data:{index:ae,overflows:F},reset:{placement:ie}};let re=(Y=F.filter(pe=>pe.overflows[0]<=0).sort((pe,X)=>pe.overflows[1]-X.overflows[1])[0])==null?void 0:Y.placement;if(!re)switch(y){case"bestFit":{var ce;const pe=(ce=F.filter(X=>{if(C){const J=No(X.placement);return J===P||J==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(J=>J>0).reduce((J,_)=>J+_,0)]).sort((X,J)=>X[1]-J[1])[0])==null?void 0:ce[0];pe&&(re=pe);break}case"initialPlacement":re=u;break}if(s!==re)return{reset:{placement:re}}}return{}}}};function wy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ky(e){return jL.some(t=>e[t]>=0)}const XL=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:i}=t,{strategy:s="referenceHidden",...l}=Qo(e,t);switch(s){case"referenceHidden":{const c=await i.detectOverflow(t,{...l,elementContext:"reference"}),u=wy(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:ky(u)}}}case"escaped":{const c=await i.detectOverflow(t,{...l,altBoundary:!0}),u=wy(c,n.floating);return{data:{escapedOffsets:u,escaped:ky(u)}}}default:return{}}}}},Bw=new Set(["left","top"]);async function qL(e,t){const{placement:n,platform:i,elements:s}=e,l=await(i.isRTL==null?void 0:i.isRTL(s.floating)),c=ei(n),u=Aa(n),p=No(n)==="y",h=Bw.has(c)?-1:1,g=l&&p?-1:1,f=Qo(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&typeof v=="number"&&(y=u==="end"?v*-1:v),p?{x:y*g,y:b*h}:{x:b*h,y:y*g}}const ZL=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:s,y:l,placement:c,middlewareData:u}=t,p=await qL(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:l+p.y,data:{...p,placement:c}}}}},JL=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:s,platform:l}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:p={fn:R=>{let{x:P,y:j}=R;return{x:P,y:j}}},...h}=Qo(e,t),g={x:n,y:i},f=await l.detectOverflow(t,h),b=No(ei(s)),y=Lh(b);let v=g[y],S=g[b];if(c){const R=y==="y"?"top":"left",P=y==="y"?"bottom":"right",j=v+f[R],D=v-f[P];v=Yp(j,v,D)}if(u){const R=b==="y"?"top":"left",P=b==="y"?"bottom":"right",j=S+f[R],D=S-f[P];S=Yp(j,S,D)}const T=p.fn({...t,[y]:v,[b]:S});return{...T,data:{x:T.x-n,y:T.y-i,enabled:{[y]:c,[b]:u}}}}}},QL=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:s,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:p=!0,crossAxis:h=!0}=Qo(e,t),g={x:n,y:i},f=No(s),b=Lh(f);let y=g[b],v=g[f];const S=Qo(u,t),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const j=b==="y"?"height":"width",D=l.reference[b]-l.floating[j]+T.mainAxis,E=l.reference[b]+l.reference[j]-T.mainAxis;y<D?y=D:y>E&&(y=E)}if(h){var R,P;const j=b==="y"?"width":"height",D=Bw.has(ei(s)),E=l.reference[f]-l.floating[j]+(D&&((R=c.offset)==null?void 0:R[f])||0)+(D?0:T.crossAxis),C=l.reference[f]+l.reference[j]+(D?0:((P=c.offset)==null?void 0:P[f])||0)-(D?T.crossAxis:0);v<E?v=E:v>C&&(v=C)}return{[b]:y,[f]:v}}}},eA=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:s,rects:l,platform:c,elements:u}=t,{apply:p=()=>{},...h}=Qo(e,t),g=await c.detectOverflow(t,h),f=ei(s),b=Aa(s),y=No(s)==="y",{width:v,height:S}=l.floating;let T,R;f==="top"||f==="bottom"?(T=f,R=b===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(R=f,T=b==="end"?"top":"bottom");const P=S-g.top-g.bottom,j=v-g.left-g.right,D=ji(S-g[T],P),E=ji(v-g[R],j),C=!t.middlewareData.shift;let L=D,I=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=j),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(L=P),C&&!b){const F=gr(g.left,0),$=gr(g.right,0),Y=gr(g.top,0),ce=gr(g.bottom,0);y?I=v-2*(F!==0||$!==0?F+$:gr(g.left,g.right)):L=S-2*(Y!==0||ce!==0?Y+ce:gr(g.top,g.bottom))}await p({...t,availableWidth:I,availableHeight:L});const H=await c.getDimensions(u.floating);return v!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function rd(){return typeof window<"u"}function Oa(e){return Ww(e)?(e.nodeName||"").toLowerCase():"#document"}function wr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function To(e){var t;return(t=(Ww(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ww(e){return rd()?e instanceof Node||e instanceof wr(e).Node:!1}function oo(e){return rd()?e instanceof Element||e instanceof wr(e).Element:!1}function ni(e){return rd()?e instanceof HTMLElement||e instanceof wr(e).HTMLElement:!1}function by(e){return!rd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wr(e).ShadowRoot}function Xl(e){const{overflow:t,overflowX:n,overflowY:i,display:s}=io(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&s!=="inline"&&s!=="contents"}function tA(e){return/^(table|td|th)$/.test(Oa(e))}function od(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const nA=/transform|translate|scale|rotate|perspective|filter/,rA=/paint|layout|strict|content/,ks=e=>!!e&&e!=="none";let cp;function Ph(e){const t=oo(e)?io(e):e;return ks(t.transform)||ks(t.translate)||ks(t.scale)||ks(t.rotate)||ks(t.perspective)||!jh()&&(ks(t.backdropFilter)||ks(t.filter))||nA.test(t.willChange||"")||rA.test(t.contain||"")}function oA(e){let t=Mi(e);for(;ni(t)&&!_a(t);){if(Ph(t))return t;if(od(t))return null;t=Mi(t)}return null}function jh(){return cp==null&&(cp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cp}function _a(e){return/^(html|body|#document)$/.test(Oa(e))}function io(e){return wr(e).getComputedStyle(e)}function id(e){return oo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mi(e){if(Oa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||by(e)&&e.host||To(e);return by(t)?t.host:t}function Hw(e){const t=Mi(e);return _a(t)?e.ownerDocument?e.ownerDocument.body:e.body:ni(t)&&Xl(t)?t:Hw(t)}function Dl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Hw(e),l=s===((i=e.ownerDocument)==null?void 0:i.body),c=wr(s);if(l){const u=qp(c);
vendor: 3,564 bytes, line 434
434return t.concat(c,c.visualViewport||[],Xl(s)?s:[],u&&n?Dl(u):[])}else return t.concat(s,Dl(s,[],n))}function qp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $w(e){const t=io(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const s=ni(e),l=s?e.offsetWidth:n,c=s?e.offsetHeight:i,u=Wu(n)!==l||Wu(i)!==c;return u&&(n=l,i=c),{width:n,height:i,$:u}}function Mh(e){return oo(e)?e:e.contextElement}function Ca(e){const t=Mh(e);if(!ni(t))return Ro(1);const n=t.getBoundingClientRect(),{width:i,height:s,$:l}=$w(t);let c=(l?Wu(n.width):n.width)/i,u=(l?Wu(n.height):n.height)/s;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const iA=Ro(0);function Uw(e){const t=wr(e);return!jh()||!t.visualViewport?iA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wr(e)?!1:t}function Es(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),l=Mh(e);let c=Ro(1);t&&(i?oo(i)&&(c=Ca(i)):c=Ca(e));const u=sA(l,n,i)?Uw(l):Ro(0);let p=(s.left+u.x)/c.x,h=(s.top+u.y)/c.y,g=s.width/c.x,f=s.height/c.y;if(l){const b=wr(l),y=i&&oo(i)?wr(i):i;let v=b,S=qp(v);for(;S&&i&&y!==v;){const T=Ca(S),R=S.getBoundingClientRect(),P=io(S),j=R.left+(S.clientLeft+parseFloat(P.paddingLeft))*T.x,D=R.top+(S.clientTop+parseFloat(P.paddingTop))*T.y;p*=T.x,h*=T.y,g*=T.x,f*=T.y,p+=j,h+=D,v=wr(S),S=qp(v)}}return $u({width:g,height:f,x:p,y:h})}function sd(e,t){const n=id(e).scrollLeft;return t?t.left+n:Es(To(e)).left+n}function Vw(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-sd(e,n),s=n.top+t.scrollTop;return{x:i,y:s}}function aA(e){let{elements:t,rect:n,offsetParent:i,strategy:s}=e;const l=s==="fixed",c=To(i),u=t?od(t.floating):!1;if(i===c||u&&l)return n;let p={scrollLeft:0,scrollTop:0},h=Ro(1);const g=Ro(0),f=ni(i);if((f||!f&&!l)&&((Oa(i)!=="body"||Xl(c))&&(p=id(i)),f)){const y=Es(i);h=Ca(i),g.x=y.x+i.clientLeft,g.y=y.y+i.clientTop}const b=c&&!f&&!l?Vw(c,p):Ro(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-p.scrollLeft*h.x+g.x+b.x,y:n.y*h.y-p.scrollTop*h.y+g.y+b.y}}function lA(e){return Array.from(e.getClientRects())}function cA(e){const t=To(e),n=id(e),i=e.ownerDocument.body,s=gr(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=gr(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+sd(e);const u=-n.scrollTop;return io(i).direction==="rtl"&&(c+=gr(t.clientWidth,i.clientWidth)-s),{width:s,height:l,x:c,y:u}}const vy=25;function uA(e,t){const n=wr(e),i=To(e),s=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,u=0,p=0;if(s){l=s.width,c=s.height;const g=jh();(!g||g&&t==="fixed")&&(u=s.offsetLeft,p=s.offsetTop)}const h=sd(i);if(h<=0){const g=i.ownerDocument,f=g.body,b=getComputedStyle(f),y=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,v=Math.abs(i.clientWidth-f.clientWidth-y);v<=vy&&(l-=v)}else h<=vy&&(l+=h);return{width:l,height:c,x:u,y:p}}function dA(e,t){const n=Es(e,!0,t==="fixed"),i=n.top+e.clientTop,s=n.left+e.clientLeft,l=ni(e)?Ca(e):Ro(1),c=e.clientWidth*l.x,u=e.clientHeight*l.y,p=s*l.x,h=i*l.y;return{width:c,height:u,x:p,y:h}}function Sy(e,t,n){let i;if(t==="viewport")i=uA(e,n);else if(t==="document")i=cA(To(e));else if(oo(t))i=dA(t,n);else{const s=Uw(e);i={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return $u(i)}function Kw(e,t){const n=Mi(e);return n===t||!oo(n)||_a(n)?!1:io(n).position==="fixed"||Kw(n,t)}function fA(e,t){const n=t.get(e);if(n)return n;let i=Dl(e,[],!1).filter(u=>
vendor: 5,320 bytes, line 434
434oo(u)&&Oa(u)!=="body"),s=null;const l=io(e).position==="fixed";let c=l?Mi(e):e;for(;oo(c)&&!_a(c);){const u=io(c),p=Ph(c);!p&&u.position==="fixed"&&(s=null),(l?!p&&!s:!p&&u.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Xl(c)&&!p&&Kw(e,c))?i=i.filter(g=>g!==c):s=u,c=Mi(c)}return t.set(e,i),i}function pA(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e;const c=[...n==="clippingAncestors"?od(t)?[]:fA(t,this._c):[].concat(n),i],u=Sy(t,c[0],s);let p=u.top,h=u.right,g=u.bottom,f=u.left;for(let b=1;b<c.length;b++){const y=Sy(t,c[b],s);p=gr(y.top,p),h=ji(y.right,h),g=ji(y.bottom,g),f=gr(y.left,f)}return{width:h-f,height:g-p,x:f,y:p}}function hA(e){const{width:t,height:n}=$w(e);return{width:t,height:n}}function mA(e,t,n){const i=ni(t),s=To(t),l=n==="fixed",c=Es(e,!0,l,t);let u={scrollLeft:0,scrollTop:0};const p=Ro(0);function h(){p.x=sd(s)}if(i||!i&&!l)if((Oa(t)!=="body"||Xl(s))&&(u=id(t)),i){const y=Es(t,!0,l,t);p.x=y.x+t.clientLeft,p.y=y.y+t.clientTop}else s&&h();l&&!i&&s&&h();const g=s&&!i&&!l?Vw(s,u):Ro(0),f=c.left+u.scrollLeft-p.x-g.x,b=c.top+u.scrollTop-p.y-g.y;return{x:f,y:b,width:c.width,height:c.height}}function up(e){return io(e).position==="static"}function Ey(e,t){if(!ni(e)||io(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return To(e)===n&&(n=n.ownerDocument.body),n}function Yw(e,t){const n=wr(e);if(od(e))return n;if(!ni(e)){let s=Mi(e);for(;s&&!_a(s);){if(oo(s)&&!up(s))return s;s=Mi(s)}return n}let i=Ey(e,t);for(;i&&tA(i)&&up(i);)i=Ey(i,t);return i&&_a(i)&&up(i)&&!Ph(i)?n:i||oA(e)||n}const gA=async function(e){const t=this.getOffsetParent||Yw,n=this.getDimensions,i=await n(e.floating);return{reference:mA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function xA(e){return io(e).direction==="rtl"}const yA={convertOffsetParentRelativeRectToViewportRelativeRect:aA,getDocumentElement:To,getClippingRect:pA,getOffsetParent:Yw,getElementRects:gA,getClientRects:lA,getDimensions:hA,getScale:Ca,isElement:oo,isRTL:xA};function Xw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wA(e,t){let n=null,i;const s=To(e);function l(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function c(u,p){u===void 0&&(u=!1),p===void 0&&(p=1),l();const h=e.getBoundingClientRect(),{left:g,top:f,width:b,height:y}=h;if(u||t(),!b||!y)return;const v=gu(f),S=gu(s.clientWidth-(g+b)),T=gu(s.clientHeight-(f+y)),R=gu(g),j={rootMargin:-v+"px "+-S+"px "+-T+"px "+-R+"px",threshold:gr(0,ji(1,p))||1};let D=!0;function E(C){const L=C[0].intersectionRatio;if(L!==p){if(!D)return c();L?c(!1,L):i=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!Xw(h,e.getBoundingClientRect())&&c(),D=!1}try{n=new IntersectionObserver(E,{...j,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,j)}n.observe(e)}return c(!0),l}function kA(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,h=Mh(e),g=s||l?[...h?Dl(h):[],...t?Dl(t):[]]:[];g.forEach(R=>{s&&R.addEventListener("scroll",n,{passive:!0}),l&&R.addEventListener("resize",n)});const f=h&&u?wA(h,n):null;let b=-1,y=null;c&&(y=new ResizeObserver(R=>{let[P]=R;P&&P.target===h&&y&&t&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var j;(j=y)==null||j.observe(t)})),n()}),h&&!p&&y.observe(h),t&&y.observe(t));let v,S=p?Es(e):null;p&&T();function T(){const R=Es(e);S&&!Xw(S,R)&&n(),S=R,v=requestAnimationFrame(T)}return n(),()=>{var R;g.forEach(P=>{s&&P.removeEventListener("scroll",n),l&&P.removeEventListener("resize",n)}),f?.(),(R=y)==null||R.disconnect(),y=null,p&&cancelAnimationFrame(v)}}const bA=ZL,vA=JL,SA=YL,EA=eA,CA=XL,Cy=KL,NA=QL,RA=(e,t,n)=>{const i=new Map,s={platform:yA,...n},l={...s.platform,_c:i};return VL(e,t,{...s,platform:l})};var _A=typeof document<"u",TA=function(){},Iu=_A?w.useLayoutEffect:TA;function Uu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!Uu(e[i],t[i]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,s[i]))return!1;for(i=n;i--!==0;){const l=s[i];if(!(l==="_owner"&&e.$$typeof)&&!Uu(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function qw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ny(e,t){const n=qw(e);return Math.round(t*n)/n}function dp(e){const t=w.useRef(e);return Iu(()=>{t.current=e}),t}function IA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:s,elements:{reference:l,floating:c}={},transform:u=!0,whileElementsMounted:p,open:h}=e,[g,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=w.useState(i);Uu(b,i)||y(i);const[v,S]=w.useState(null),[T,R]=w.useState(null),P=w.useCallback(X=>{X!==C.current&&(C.current=X,S(X))},[]),j=w.useCallback(X=>{X!==L.current&&(L.current=X,R(X))},[]),D=l||v,E=c||T,C=w.useRef(null),L=w.useRef(null),I=w.useRef(g),H=p!=null,F=dp(p),$=dp(s),Y=dp(h),ce=w.useCallback(()=>
vendor: 5,311 bytes, line 434
434{if(!C.current||!L.current)return;const X={placement:t,strategy:n,middleware:b};$.current&&(X.platform=$.current),RA(C.current,L.current,X).then(J=>{const _={...J,isPositioned:Y.current!==!1};ae.current&&!Uu(I.current,_)&&(I.current=_,ih.flushSync(()=>{f(_)}))})},[b,t,n,$,Y]);Iu(()=>{h===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,f(X=>({...X,isPositioned:!1})))},[h]);const ae=w.useRef(!1);Iu(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Iu(()=>{if(D&&(C.current=D),E&&(L.current=E),D&&E){if(F.current)return F.current(D,E,ce);ce()}},[D,E,ce,F,H]);const ie=w.useMemo(()=>({reference:C,floating:L,setReference:P,setFloating:j}),[P,j]),re=w.useMemo(()=>({reference:D,floating:E}),[D,E]),pe=w.useMemo(()=>{const X={position:n,left:0,top:0};if(!re.floating)return X;const J=Ny(re.floating,g.x),_=Ny(re.floating,g.y);return u?{...X,transform:"translate("+J+"px, "+_+"px)",...qw(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:_}},[n,u,re.floating,g.x,g.y]);return w.useMemo(()=>({...g,update:ce,refs:ie,elements:re,floatingStyles:pe}),[g,ce,ie,re,pe])}const LA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:s}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?Cy({element:i.current,padding:s}).fn(n):{}:i?Cy({element:i,padding:s}).fn(n):{}}}},AA=(e,t)=>{const n=bA(e);return{name:n.name,fn:n.fn,options:[e,t]}},OA=(e,t)=>{const n=vA(e);return{name:n.name,fn:n.fn,options:[e,t]}},PA=(e,t)=>({fn:NA(e).fn,options:[e,t]}),jA=(e,t)=>{const n=SA(e);return{name:n.name,fn:n.fn,options:[e,t]}},MA=(e,t)=>{const n=EA(e);return{name:n.name,fn:n.fn,options:[e,t]}},DA=(e,t)=>{const n=CA(e);return{name:n.name,fn:n.fn,options:[e,t]}},FA=(e,t)=>{const n=LA(e);return{name:n.name,fn:n.fn,options:[e,t]}};var zA="Arrow",Zw=w.forwardRef((e,t)=>{const{children:n,width:i=10,height:s=5,...l}=e;return m.jsx(Hn.svg,{...l,ref:t,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zw.displayName=zA;var GA=Zw;function BA(e){const[t,n]=w.useState(void 0);return Pi(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const l=s[0];let c,u;if("borderBoxSize"in l){const p=l.borderBoxSize,h=Array.isArray(p)?p[0]:p;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var Dh="Popper",[Jw,Qw]=Yl(Dh),[WA,ek]=Jw(Dh),tk=e=>{const{__scopePopper:t,children:n}=e,[i,s]=w.useState(null);return m.jsx(WA,{scope:t,anchor:i,onAnchorChange:s,children:n})};tk.displayName=Dh;var nk="PopperAnchor",rk=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...s}=e,l=ek(nk,n),c=w.useRef(null),u=rr(t,c),p=w.useRef(null);return w.useEffect(()=>{const h=p.current;p.current=i?.current||c.current,h!==p.current&&l.onAnchorChange(p.current)}),i?null:m.jsx(Hn.div,{...s,ref:u})});rk.displayName=nk;var Fh="PopperContent",[HA,$A]=Jw(Fh),ok=w.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:f="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:v,...S}=e,T=ek(Fh,n),[R,P]=w.useState(null),j=rr(t,Te=>P(Te)),[D,E]=w.useState(null),C=BA(D),L=C?.width??0,I=C?.height??0,H=i+(l!=="center"?"-"+l:""),F=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},$=Array.isArray(h)?h:[h],Y=$.length>0,ce={padding:F,boundary:$.filter(VA),altBoundary:Y},{refs:ae,floatingStyles:ie,placement:re,isPositioned:pe,middlewareData:X}=IA({strategy:"fixed",placement:H,whileElementsMounted:(...Te)=>kA(...Te,{animationFrame:y==="always"}),elements:{reference:T.anchor},middleware:[AA({mainAxis:s+I,alignmentAxis:c}),p&&OA({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?PA():void 0,...ce}),p&&jA({...ce}),MA({...ce,apply:({elements:Te,rects:Se,availableWidth:Ae,availableHeight:Qe})=>{const{width:vt,height:it}=Se.reference,Ye=Te.floating.style;Ye.setProperty("--radix-popper-available-width",`${Ae}px`),Ye.setProperty("--radix-popper-available-height",`${Qe}px`),Ye.setProperty("--radix-popper-anchor-width",`${vt}px`),Ye.setProperty("--radix-popper-anchor-height",`${it}px`)}}),D&&FA({element:D,padding:u}),KA({arrowWidth:L,arrowHeight:I}),b&&DA({strategy:"referenceHidden",...ce})]}),[J,_]=ak(re),z=Jo(v);Pi(()=>{pe&&z?.()},[pe,z]);const te=X.arrow?.x,A=X.arrow?.y,Ee=X.arrow?.centerOffset!==0,[de,we]=w.useState();return Pi(()=>{R&&we(window.getComputedStyle(R).zIndex)},[R]),m.jsx("div",{ref:ae.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:pe?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(HA,{scope:n,placedSide:J,onArrowChange:E,arrowX:te,arrowY:A,shouldHideArrow:Ee,children:m.jsx(Hn.div,{"data-side":J,"data-align":_,...S,ref:j,style:{...S.style,animation:pe?void 0:"none"}})})})});ok.displayName=Fh;var ik="PopperArrow",UA={top:"bottom",right:"left",bottom:"top",left:"r
434ight"},sk=w.forwardRef(function(t,n){const{__scopePopper:i,...s}=t,l=$A(ik,i),c=UA[l.placedSide];return m.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:m.jsx(GA,{...s,ref:n,style:{...s.style,display:"block"}})})});sk.displayName=ik;function VA(e){return e!==null}var KA=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:s}=t,c=s.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,p=c?0:e.arrowHeight,[h,g]=ak(n),f={start:"0%",center:"50%",end:"100%"}[g],b=(s.arrow?.x??0)+u/2,y=(s.arrow?.y??0)+p/2;let v="",S="";return h==="bottom"?(v=c?f:`${b}px`,S=`${-p}px`):h==="top"?(v=c?f:`${b}px`,S=`${i.floating.height+p}px`):h==="right"?(v=`${-p}px`,S=c?f:`${y}px`):h==="left"&&(v=`${i.floating.width+p}px`,S=c?f:`${y}px`),{data:{x:v,y:S}}}});function ak(e){const[t,n="center"]=e.split("-");return[t,n]}var YA=tk,XA=rk,qA=ok,ZA=sk,JA="Portal",lk=w.forwardRef((e,t)=>{const{container:n,...i}=e,[s,l]=w.useState(!1);Pi(()=>l(!0),[]);const c=n||s&&globalThis?.document?.body;return c?o0.createPortal(m.jsx(Hn.div,{...i,ref:t}),c):null});lk.displayName=JA;function QA(e,t){return w.useReducer((n,i)=>t[n][i]??n,e)}var ql=e=>{const{present:t,children:n}=e,i=eO(t),s=typeof n=="function"?n({present:i.isPresent}):w.Children.only(n),l=rr(i.ref,tO(s));return typeof n=="function"||i.isPresent?w.cloneElement(s,{ref:l}):null};ql.displayName="Presence";function eO(e){const[t,n]=w.useState(),i=w.useRef(null),s=w.useRef(e),l=w.useRef("none"),c=e?"mounted":"unmounted",[u,p]=QA(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const h=xu(i.current);l.current=u==="mounted"?h:"none"},[u]),Pi(()=>{const h=i.current,g=s.current;if(g!==e){const b=l.current,y=xu(h);e?p("MOUNT"):y==="none"||h?.display==="none"?p("UNMOUNT"):p(g&&b!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),Pi(()=>{if(t){let h;const g=t.ownerDocument.defaultView??window,f=y=>{const S=xu(i.current).includes(CSS.escape(y.animationName));if(y.target===t&&S&&(p("ANIMATION_END"),!s.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",h=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},b=y=>{y.target===t&&(l.current=xu(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{g.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:w.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function xu(e){return e?.animationName||"none"}function tO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fp="rovingFocusGroup.onEntryFocus",nO={bubbles:!1,cancelable:!0},Zl="RovingFocusGroup",[Zp,ck,rO]=Ow(Zl),[oO,uk]=Yl(Zl,[rO]),[iO,sO]=oO(Zl),dk=w.forwardRef((e,t)=>m.jsx(Zp.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Zp.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(aO,{...e,ref:t})})}));dk.displayName=Zl;var aO=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:s=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...f}=e,b=w.useRef(null),y=rr(t,b),v=Pw(l),[S,T]=Lw({prop:c,defaultProp:u??null,onChange:p,caller:Zl}),[R,P]=w.useState(!1),j=Jo(h),D=ck(n),E=w.useRef(!1),[C,L]=w.useState(0);return w.useEffect(()=>{const I=b.current;if(I)return I.addEventListener(fp,j),()=>I.removeEventListener(fp,j)},[j]),m.jsx(iO,{scope:n,orientation:i,dir:v,loop:s,currentTabStopId:S,onItemFocus:w.useCallback(I=>T(I),[T]),onItemShiftTab:w.useCallback(()=>P(!0),[]),onFocusableItemAdd:w.useCallback(()=>L(I=>I+1),[]),onFocusableItemRemove:w.useCallback(()=>L(I=>I-1),[]),children:m.jsx(Hn.div,{tabIndex:R||C===0?-1:0,"data-orientation":i,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:mt(e.onMouseDown,()=>{E.current=!0}),onFocus:mt(e.onFocus,I=>{const H=!E.current;if(I.target===I.currentTarget&&H&&!R){const F=new CustomEvent(fp,nO);
vendor: 9,958 bytes, lines 434-435
434if(I.currentTarget.dispatchEvent(F),!F.defaultPrevented){const $=D().filter(re=>re.focusable),Y=$.find(re=>re.active),ce=$.find(re=>re.id===S),ie=[Y,ce,...$].filter(Boolean).map(re=>re.ref.current);hk(ie,g)}}E.current=!1}),onBlur:mt(e.onBlur,()=>P(!1))})})}),fk="RovingFocusGroupItem",pk=w.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:s=!1,tabStopId:l,children:c,...u}=e,p=Kp(),h=l||p,g=sO(fk,n),f=g.currentTabStopId===h,b=ck(n),{onFocusableItemAdd:y,onFocusableItemRemove:v,currentTabStopId:S}=g;return w.useEffect(()=>{if(i)return y(),()=>v()},[i,y,v]),m.jsx(Zp.ItemSlot,{scope:n,id:h,focusable:i,active:s,children:m.jsx(Hn.span,{tabIndex:f?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:mt(e.onMouseDown,T=>{i?g.onItemFocus(h):T.preventDefault()}),onFocus:mt(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:mt(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){g.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const R=uO(T,g.orientation,g.dir);if(R!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let j=b().filter(D=>D.focusable).map(D=>D.ref.current);if(R==="last")j.reverse();else if(R==="prev"||R==="next"){R==="prev"&&j.reverse();const D=j.indexOf(T.currentTarget);j=g.loop?dO(j,D+1):j.slice(D+1)}setTimeout(()=>hk(j))}}),children:typeof c=="function"?c({isCurrentTabStop:f,hasTabStop:S!=null}):c})})});pk.displayName=fk;var lO={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cO(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uO(e,t,n){const i=cO(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return lO[i]}function hk(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function dO(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var fO=dk,pO=pk;function hO(e){const t=mO(e),n=w.forwardRef((i,s)=>{const{children:l,...c}=i,u=w.Children.toArray(l),p=u.find(xO);if(p){const h=p.props.children,g=u.map(f=>f===p?w.Children.count(h)>1?w.Children.only(null):w.isValidElement(h)?h.props.children:null:f);return m.jsx(t,{...c,ref:s,children:w.isValidElement(h)?w.cloneElement(h,void 0,g):null})}return m.jsx(t,{...c,ref:s,children:l})});return n.displayName=`${e}.Slot`,n}function mO(e){const t=w.forwardRef((n,i)=>{const{children:s,...l}=n;if(w.isValidElement(s)){const c=wO(s),u=yO(l,s.props);return s.type!==w.Fragment&&(u.ref=i?La(i,c):c),w.cloneElement(s,u)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gO=Symbol("radix.slottable");function xO(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gO}function yO(e,t){const n={...t};for(const i in t){const s=e[i],l=t[i];/^on[A-Z]/.test(i)?s&&l?n[i]=(...u)=>{const p=l(...u);return s(...u),p}:s&&(n[i]=s):i==="style"?n[i]={...s,...l}:i==="className"&&(n[i]=[s,l].filter(Boolean).join(" "))}return{...e,...n}}function wO(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kO=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xa=new WeakMap,yu=new WeakMap,wu={},pp=0,mk=function(e){return e&&(e.host||mk(e.parentNode))},bO=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=mk(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},vO=function(e,t,n,i){var s=bO(t,Array.isArray(e)?e:[e]);wu[n]||(wu[n]=new WeakMap);var l=wu[n],c=[],u=new Set,p=new Set(s),h=function(f){!f||u.has(f)||(u.add(f),h(f.parentNode))};s.forEach(h);var g=function(f){!f||p.has(f)||Array.prototype.forEach.call(f.children,function(b){if(u.has(b))g(b);else try{var y=b.getAttribute(i),v=y!==null&&y!=="false",S=(xa.get(b)||0)+1,T=(l.get(b)||0)+1;xa.set(b,S),l.set(b,T),c.push(b),S===1&&v&&yu.set(b,!0),T===1&&b.setAttribute(n,"true"),v||b.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",b,R)}})};return g(t),u.clear(),pp++,function(){c.forEach(function(f){var b=xa.get(f)-1,y=l.get(f)-1;xa.set(f,b),l.set(f,y),b||(yu.has(f)||f.removeAttribute(i),yu.delete(f)),y||f.removeAttribute(n)}),pp--,pp||(xa=new WeakMap,xa=new WeakMap,yu=new WeakMap,wu={})}},SO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=kO(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),vO(i,s,n,"aria-hidden")):function(){return null}},Co=function(){return Co=Object.assign||function(t){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Co.apply(this,arguments)};function gk(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function EO(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,l;i<s;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}var Lu="right-scroll-bar-position",Au="width-before-scroll-bar",CO="with-scroll-bars-hidden",NO="--removed-body-scroll-bar-size";function hp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function RO(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var s=n.value;s!==i&&(n.value=i,n.callback(i,s))}}}})[0];return n.callback=t,n.facade}var _O=typeof window<"u"?w.useLayoutEffect:w.useEffect,Ry=new WeakMap;function TO(e,t){var n=RO(null,function(i){return e.forEach(function(s){return hp(s,i)})});return _O(function(){var i=Ry.get(n);if(i){var s=new Set(i),l=new Set(e),c=n.current;s.forEach(function(u){l.has(u)||hp(u,null)}),l.forEach(function(u){s.has(u)||hp(u,c)})}Ry.set(n,e)},[e]),n}function IO(e){return e}function LO(e,t){t===void 0&&(t=IO);var n=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var c=t(l,i);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(l){for(i=!0;n.length;){var c=n;n=[],c.forEach(l)}n={push:function(u){return l(u)},filter:function(){return n}}},assignMedium:function(l){i=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(l),c=n}var p=function(){var g=c;c=[],g.forEach(l)},h=function(){return Promise.resolve().then(p)};h(),n={push:function(g){c.push(g),h()},filter:function(g){return c=c.filter(g),n}}}};return s}function AO(e){e===void 0&&(e={});var t=LO(null);return t.options=Co({async:!0,ssr:!1},e),t}var xk=function(e){var t=e.sideCar,n=gk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return w.createElement(i,Co({},n))};xk.isSideCarExport=!0;function OO(e,t){return e.useMedium(t),xk}var yk=AO(),mp=function(){},ad=w.forwardRef(function(e,t){var n=w.useRef(null),i=w.useState({onScrollCapture:mp,onWheelCapture:mp,onTouchMoveCapture:mp}),s=i[0],l=i[1],c=e.forwardProps,u=e.children,p=e.className,h=e.removeScrollBar,g=e.enabled,f=e.shards,b=e.sideCar,y=e.noRelative,v=e.noIsolation,S=e.inert,T=e.allowPinchZoom,R=e.as,P=R===void 0?"div":R,j=e.gapMode,D=gk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=b,C=TO([n,t]),L=Co(Co({},D),s);return w.createElement(w.Fragment,null,g&&w.createElement(E,{sideCar:yk,removeScrollBar:h,shards:f,noRelative:y,noIsolation:v,inert:S,setCallbacks:l,allowPinchZoom:!!T,lockRef:n,gapMode:j}),c?w.cloneElement(w.Children.only(u),Co(Co({},L),{ref:C})):w.createElement(P,Co({},L,{className:p,ref:C}),u))});ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ad.classNames={fullWidth:Au,zeroRight:Lu};var PO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function jO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PO();return t&&e.setAttribute("nonce",t),e}function MO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function DO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var FO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jO())&&(MO(t,n),DO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zO=function(){var e=FO();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wk=function(){var e=zO(),t=function(n){var i=n.styles,s=n.dynamic;return e(i,s),null};return t},GO={left:0,top:0,right:0,gap:0},gp=function(e){return parseInt(e||"",10)||0},BO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[gp(n),gp(i),gp(s)]},WO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return GO;var t=BO(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},HO=wk(),Na="data-scroll-locked",$O=function(e,t,n,i){var s=e.left,l=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
435  .`.concat(CO,` {
436   overflow: hidden `).concat(i,`;
437   padding-right: `).concat(u,"px ").concat(i,`;
438  }
439  body[`).concat(Na,`] {
440    overflow: hidden `).concat(i,`;
441    overscroll-behavior: contain;
442    `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
443    padding-left: `.concat(s,`px;
444    padding-top: `).concat(l,`px;
445    padding-right: `).concat(c,`px;
446    margin-left:0;
447    margin-top:0;
448    margin-right: `).concat(u,"px ").concat(i,`;
449    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";")].filter(Boolean).join(""),`
450  }
451  
452  .`).concat(Lu,` {
453    right: `).concat(u,"px ").concat(i,`;
454  }
455  
456  .`).concat(Au,` {
457    margin-right: `).concat(u,"px ").concat(i,`;
458  }
459  
460  .`).concat(Lu," .").concat(Lu,` {
461    right: 0 `).concat(i,`;
462  }
463  
464  .`).concat(Au," .").concat(Au,` {
465    margin-right: 0 `).concat(i,`;
466  }
467  
468  body[`).concat(Na,`] {
469    `).concat(NO,": ").concat(u,`px;
470  }
471`)},_y=function(){var e=parseInt(document.body.getAttribute(Na)||"0",10);return isFinite(e)?e:0},UO=function(){w.useEffect(function(){return document.body.setAttribute(Na,(_y()+1).toString()),function(){var e=_y()-1;e<=0?document.body.removeAttribute(Na):document.body.setAttribute(Na,e.toString())}},[])},VO=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;UO();var l=w.useMemo(function(){return WO(s)},[s]);return w.createElement(HO,{styles:$O(l,!t,s,n?"":"!important")})},Jp=!1;if(typeof window<"u")try{var ku=Object.defineProperty({},"passive",{get:function(){return Jp=!0,!0}});window.addEventListener("test",ku,ku),window.removeEventListener("test",ku,ku)}catch{Jp=!1}var ya=Jp?{passive:!1}:!1,KO=function(e){return e.tagName==="TEXTAREA"},kk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KO(e)&&n[t]==="visible")},YO=function(e){return kk(e,"overflowY")},XO=function(e){return kk(e,"overflowX")},Ty=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=bk(e,i);if(s){var l=vk(e,i),c=l[1],u=l[2];if(c>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},qO=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},ZO=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},bk=function(e,t){return e==="v"?YO(t):XO(t)},vk=function(e,t){return e==="v"?qO(t):ZO(t)},JO=function(e,t){return e==="h"&&t==="rtl"?-1:1},QO=function(e,t,n,i,s){var l=JO(e,window.getComputedStyle(t).direction),c=l*i,u=n.target,p=t.contains(u),h=!1,g=c>0,f=0,b=0;do{if(!u)break;var y=vk(e,u),v=y[0],S=y[1],T=y[2],R=S-T-l*v;(v||R)&&bk(e,u)&&(f+=R,b+=v);var P=u.parentNode;u=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!p&&u!==document.body||p&&(t.contains(u)||t===u));return(g&&Math.abs(f)<1||!g&&Math.abs(b)<1)&&(h=!0),h},bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Iy=function(e){return[e.deltaX,e.deltaY]},Ly=function(e){return e&&"current"in e?e.current:e},e5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},t5=function(e){return`
472  .block-interactivity-`.concat(e,` {pointer-events: none;}
473  .allow-interactivity-`).concat(e,` {pointer-events: all;}
474`)},n5=0,wa=[];function r5(e){var t=w.useRef([]),n=w.useRef([0,0]),i=w.useRef(),s=w.useState(n5++)[0],l=w.useState(wk)[0],c=w.useRef(e);w.useEffect(function(){c.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var S=EO([e.lockRef.current],(e.shards||[]).map(Ly),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var u=w.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var R=bu(S),P=n.current,j="deltaX"in S?S.deltaX:P[0]-R[0],D="deltaY"in S?S.deltaY:P[1]-R[1],E,C=S.target,L=Math.abs(j)>Math.abs(D)?"h":"v";if("touches"in S&&L==="h"&&C.type==="range")return!1;
vendor: 27,533 bytes, line 474
474var I=window.getSelection(),H=I&&I.anchorNode,F=H?H===C||H.contains(C):!1;if(F)return!1;var $=Ty(L,C);if(!$)return!0;if($?E=L:(E=L==="v"?"h":"v",$=Ty(L,C)),!$)return!1;if(!i.current&&"changedTouches"in S&&(j||D)&&(i.current=E),!E)return!0;var Y=i.current||E;return QO(Y,T,S,Y==="h"?j:D)},[]),p=w.useCallback(function(S){var T=S;if(!(!wa.length||wa[wa.length-1]!==l)){var R="deltaY"in T?Iy(T):bu(T),P=t.current.filter(function(E){return E.name===T.type&&(E.target===T.target||T.target===E.shadowParent)&&e5(E.delta,R)})[0];if(P&&P.should){T.cancelable&&T.preventDefault();return}if(!P){var j=(c.current.shards||[]).map(Ly).filter(Boolean).filter(function(E){return E.contains(T.target)}),D=j.length>0?u(T,j[0]):!c.current.noIsolation;D&&T.cancelable&&T.preventDefault()}}},[]),h=w.useCallback(function(S,T,R,P){var j={name:S,delta:T,target:R,should:P,shadowParent:o5(R)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(D){return D!==j})},1)},[]),g=w.useCallback(function(S){n.current=bu(S),i.current=void 0},[]),f=w.useCallback(function(S){h(S.type,Iy(S),S.target,u(S,e.lockRef.current))},[]),b=w.useCallback(function(S){h(S.type,bu(S),S.target,u(S,e.lockRef.current))},[]);w.useEffect(function(){return wa.push(l),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:b}),document.addEventListener("wheel",p,ya),document.addEventListener("touchmove",p,ya),document.addEventListener("touchstart",g,ya),function(){wa=wa.filter(function(S){return S!==l}),document.removeEventListener("wheel",p,ya),document.removeEventListener("touchmove",p,ya),document.removeEventListener("touchstart",g,ya)}},[]);var y=e.removeScrollBar,v=e.inert;return w.createElement(w.Fragment,null,v?w.createElement(l,{styles:t5(s)}):null,y?w.createElement(VO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function o5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const i5=OO(yk,r5);var Sk=w.forwardRef(function(e,t){return w.createElement(ad,Co({},e,{ref:t,sideCar:i5}))});Sk.classNames=ad.classNames;var Qp=["Enter"," "],s5=["ArrowDown","PageUp","Home"],Ek=["ArrowUp","PageDown","End"],a5=[...s5,...Ek],l5={ltr:[...Qp,"ArrowRight"],rtl:[...Qp,"ArrowLeft"]},c5={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Jl="Menu",[Fl,u5,d5]=Ow(Jl),[Ns,Ck]=Yl(Jl,[d5,Qw,uk]),ld=Qw(),Nk=uk(),[f5,Rs]=Ns(Jl),[p5,Ql]=Ns(Jl),Rk=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:s,onOpenChange:l,modal:c=!0}=e,u=ld(t),[p,h]=w.useState(null),g=w.useRef(!1),f=Jo(l),b=Pw(s);return w.useEffect(()=>{const y=()=>{g.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>g.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx(YA,{...u,children:m.jsx(f5,{scope:t,open:n,onOpenChange:f,content:p,onContentChange:h,children:m.jsx(p5,{scope:t,onClose:w.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:g,dir:b,modal:c,children:i})})})};Rk.displayName=Jl;var h5="MenuAnchor",zh=w.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=ld(n);return m.jsx(XA,{...s,...i,ref:t})});zh.displayName=h5;var Gh="MenuPortal",[m5,_k]=Ns(Gh,{forceMount:void 0}),Tk=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:s}=e,l=Rs(Gh,t);return m.jsx(m5,{scope:t,forceMount:n,children:m.jsx(ql,{present:n||l.open,children:m.jsx(lk,{asChild:!0,container:s,children:i})})})};Tk.displayName=Gh;var Fr="MenuContent",[g5,Bh]=Ns(Fr),Ik=w.forwardRef((e,t)=>{const n=_k(Fr,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,l=Rs(Fr,e.__scopeMenu),c=Ql(Fr,e.__scopeMenu);return m.jsx(Fl.Provider,{scope:e.__scopeMenu,children:m.jsx(ql,{present:i||l.open,children:m.jsx(Fl.Slot,{scope:e.__scopeMenu,children:c.modal?m.jsx(x5,{...s,ref:t}):m.jsx(y5,{...s,ref:t})})})})}),x5=w.forwardRef((e,t)=>{const n=Rs(Fr,e.__scopeMenu),i=w.useRef(null),s=rr(t,i);return w.useEffect(()=>{const l=i.current;if(l)return SO(l)},[]),m.jsx(Wh,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),y5=w.forwardRef((e,t)=>{const n=Rs(Fr,e.__scopeMenu);return m.jsx(Wh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),w5=hO("MenuContent.ScrollLock"),Wh=w.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:p,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:f,onInteractOutside:b,onDismiss:y,disableOutsideScroll:v,...S}=e,T=Rs(Fr,n),R=Ql(Fr,n),P=ld(n),j=Nk(n),D=u5(n),[E,C]=w.useState(null),L=w.useRef(null),I=rr(t,L,T.onContentChange),H=w.useRef(0),F=w.useRef(""),$=w.useRef(0),Y=w.useRef(null),ce=w.useRef("right"),ae=w.useRef(0),ie=v?Sk:w.Fragment,re=v?{as:w5,allowPinchZoom:!0}:void 0,pe=J=>{const _=F.current+J,z=D().filter(Te=>!Te.disabled),te=document.activeElement,A=z.find(Te=>Te.ref.current===te)?.textValue,Ee=z.map(Te=>Te.textValue),de=L5(Ee,_,A),we=z.find(Te=>Te.textValue===de)?.ref.current;(function Te(Se){F.current=Se,window.clearTimeout(H.current),Se!==""&&(H.current=window.setTimeout(()=>Te(""),1e3))})(_),we&&setTimeout(()=>we.focus())};w.useEffect(()=>()=>window.clearTimeout(H.current),[]),CL();const X=w.useCallback(J=>ce.current===Y.current?.side&&O5(J,Y.current?.area),[]);return m.jsx(g5,{scope:n,searchRef:F,onItemEnter:w.useCallback(J=>{X(J)&&J.preventDefault()},[X]),onItemLeave:w.useCallback(J=>{X(J)||(L.current?.focus(),C(null))},[X]),onTriggerLeave:w.useCallback(J=>{X(J)&&J.preventDefault()},[X]),pointerGraceTimerRef:$,onPointerGraceIntentChange:w.useCallback(J=>{Y.current=J},[]),children:m.jsx(ie,{...re,children:m.jsx(Fw,{asChild:!0,trapped:s,onMountAutoFocus:mt(l,J=>{J.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:m.jsx(Mw,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:f,onInteractOutside:b,onDismiss:y,children:m.jsx(fO,{asChild:!0,...j,dir:R.dir,orientation:"vertical",loop:i,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:mt(p,J=>{R.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(qA,{role:"menu","aria-orientation":"vertical","data-state":Vk(T.open),"data-radix-menu-content":"",dir:R.dir,...P,...S,ref:I,style:{outline:"none",...S.style},onKeyDown:mt(S.onKeyDown,J=>{const z=J.target.closest("[data-radix-menu-content]")===J.currentTarget,te=J.ctrlKey||J.altKey||J.metaKey,A=J.key.length===1;z&&(J.key==="Tab"&&J.preventDefault(),!te&&A&&pe(J.key));const Ee=L.current;if(J.target!==Ee||!a5.includes(J.key))return;J.preventDefault();const we=D().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);Ek.includes(J.key)&&we.reverse(),T5(we)}),onBlur:mt(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(H.current),F.current="")}),onPointerMove:mt(e.onPointerMove,zl(J=>{const _=J.target,z=ae.current!==J.clientX;if(J.currentTarget.contains(_)&&z){const te=J.clientX>ae.current?"right":"left";ce.current=te,ae.current=J.clientX}}))})})})})})})});Ik.displayName=Fr;var k5="MenuGroup",Hh=w.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return m.jsx(Hn.div,{role:"group",...i,ref:t})});Hh.displayName=k5;var b5="MenuLabel",Lk=w.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return m.jsx(Hn.div,{...i,ref:t})});Lk.displayName=b5;var Vu="MenuItem",Ay="menu.itemSelect",cd=w.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...s}=e,l=w.useRef(null),c=Ql(Vu,e.__scopeMenu),u=Bh(Vu,e.__scopeMenu),p=rr(t,l),h=w.useRef(!1),g=()=>{const f=l.current;if(!n&&f){const b=new CustomEvent(Ay,{bubbles:!0,cancelable:!0});f.addEventListener(Ay,y=>i?.(y),{once:!0}),Aw(f,b),b.defaultPrevented?h.current=!1:c.onClose()}};return m.jsx(Ak,{...s,ref:p,disabled:n,onClick:mt(e.onClick,g),onPointerDown:f=>{e.onPointerDown?.(f),h.current=!0},onPointerUp:mt(e.onPointerUp,f=>{h.current||f.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,f=>{const b=u.searchRef.current!=="";n||b&&f.key===" "||Qp.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});cd.displayName=Vu;var Ak=w.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:s,...l}=e,c=Bh(Vu,n),u=Nk(n),p=w.useRef(null),h=rr(t,p),[g,f]=w.useState(!1),[b,y]=w.useState("");return w.useEffect(()=>{const v=p.current;v&&y((v.textContent??"").trim())},[l.children]),m.jsx(Fl.ItemSlot,{scope:n,disabled:i,textValue:s??b,children:m.jsx(pO,{asChild:!0,...u,focusable:!i,children:m.jsx(Hn.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:h,onPointerMove:mt(e.onPointerMove,zl(v=>{i?c.onItemLeave(v):(c.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,zl(v=>c.onItemLeave(v))),onFocus:mt(e.onFocus,()=>f(!0)),onBlur:mt(e.onBlur,()=>f(!1))})})})}),v5="MenuCheckboxItem",Ok=w.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...s}=e;return m.jsx(Fk,{scope:e.__scopeMenu,checked:n,children:m.jsx(cd,{role:"menuitemcheckbox","aria-checked":Ku(n)?"mixed":n,...s,ref:t,"data-state":Uh(n),onSelect:mt(s.onSelect,()=>i?.(Ku(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ok.displayName=v5;var Pk="MenuRadioGroup",[S5,E5]=Ns(Pk,{value:void 0,onValueChange:()=>{}}),jk=w.forwardRef((e,t)=>{const{value:n,onValueChange:i,...s}=e,l=Jo(i);return m.jsx(S5,{scope:e.__scopeMenu,value:n,onValueChange:l,children:m.jsx(Hh,{...s,ref:t})})});jk.displayName=Pk;var Mk="MenuRadioItem",Dk=w.forwardRef((e,t)=>{const{value:n,...i}=e,s=E5(Mk,e.__scopeMenu),l=n===s.value;return m.jsx(Fk,{scope:e.__scopeMenu,checked:l,children:m.jsx(cd,{role:"menuitemradio","aria-checked":l,...i,ref:t,"data-state":Uh(l),onSelect:mt(i.onSelect,()=>s.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Dk.displayName=Mk;var $h="MenuItemIndicator",[Fk,C5]=Ns($h,{checked:!1}),zk=w.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...s}=e,l=C5($h,n);return m.jsx(ql,{present:i||Ku(l.checked)||l.checked===!0,children:m.jsx(Hn.span,{...s,ref:t,"data-state":Uh(l.checked)})})});zk.displayName=$h;var N5="MenuSeparator",Gk=w.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return m.jsx(Hn.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});Gk.displayName=N5;var R5="MenuArrow",Bk=w.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,s=ld(n);return m.jsx(ZA,{...s,...i,ref:t})});Bk.displayName=R5;var _5="MenuSub",[h4,Wk]=Ns(_5),Cl="MenuSubTrigger",Hk=w.forwardRef((e,t)=>{const n=Rs(Cl,e.__scopeMenu),i=Ql(Cl,e.__scopeMenu),s=Wk(Cl,e.__scopeMenu),l=Bh(Cl,e.__scopeMenu),c=w.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:p}=l,h={__scopeMenu:e.__scopeMenu},g=w.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return w.useEffect(()=>g,[g]),w.useEffect(()=>{const f=u.current;return()=>{window.clearTimeout(f),p(null)}},[u,p]),m.jsx(zh,{asChild:!0,...h,children:m.jsx(Ak,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Vk(n.open),...e,ref:La(t,s.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,zl(f=>{l.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(l.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:mt(e.onPointerLeave,zl(f=>{g();const b=n.content?.getBoundingClientRect();if(b){const y=n.content?.dataset.side,v=y==="right",S=v?-5:5,T=b[v?"left":"right"],R=b[v?"right":"left"];l.onPointerGraceIntentChange({area:[{x:f.clientX+S,y:f.clientY},{x:T,y:b.top},{x:R,y:b.top},{x:R,y:b.bottom},{x:T,y:b.bottom}],side:y}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(f),f.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:mt(e.onKeyDown,f=>{const b=l.searchRef.current!=="";e.disabled||b&&f.key===" "||l5[i.dir].includes(f.key)&&(n.onOpenChange(!0),n.content?.focus(),f.preventDefault())})})})});Hk.displayName=Cl;var $k="MenuSubContent",Uk=w.forwardRef((e,t)=>{const n=_k(Fr,e.__scopeMenu),{forceMount:i=n.forceMount,...s}=e,l=Rs(Fr,e.__scopeMenu),c=Ql(Fr,e.__scopeMenu),u=Wk($k,e.__scopeMenu),p=w.useRef(null),h=rr(t,p);return m.jsx(Fl.Provider,{scope:e.__scopeMenu,children:m.jsx(ql,{present:i||l.open,children:m.jsx(Fl.Slot,{scope:e.__scopeMenu,children:m.jsx(Wh,{id:u.contentId,"aria-labelledby":u.triggerId,...s,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{c.isUsingKeyboardRef.current&&p.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:mt(e.onFocusOutside,g=>{g.target!==u.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,g=>{c.onClose(),g.preventDefault()}),onKeyDown:mt(e.onKeyDown,g=>{const f=g.currentTarget.contains(g.target),b=c5[c.dir].includes(g.key);f&&b&&(l.onOpenChange(!1),u.trigger?.focus(),g.preventDefault())})})})})})});Uk.displayName=$k;function Vk(e){return e?"open":"closed"}function Ku(e){return e==="indeterminate"}function Uh(e){return Ku(e)?"indeterminate":e?"checked":"unchecked"}function T5(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function I5(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function L5(e,t,n){const s=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let c=I5(e,Math.max(l,0));s.length===1&&(c=c.filter(h=>h!==n));const p=c.find(h=>h.toLowerCase().startsWith(s.toLowerCase()));return p!==n?p:void 0}function A5(e,t){const{x:n,y:i}=e;let s=!1;for(let l=0,c=t.length-1;l<t.length;c=l++){const u=t[l],p=t[c],h=u.x,g=u.y,f=p.x,b=p.y;g>i!=b>i&&n<(f-h)*(i-g)/(b-g)+h&&(s=!s)}return s}function O5(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return A5(n,t)}function zl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var P5=Rk,j5=zh,M5=Tk,D5=Ik,F5=Hh,z5=Lk,G5=cd,B5=Ok,W5=jk,H5=Dk,$5=zk,U5=Gk,V5=Bk,K5=Hk,Y5=Uk,ud="DropdownMenu",[X5]=Yl(ud,[Ck]),$n=Ck(),[q5,Kk]=X5(ud),Yk=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:s,defaultOpen:l,onOpenChange:c,modal:u=!0}=e,p=$n(t),h=w.useRef(null),[g,f]=Lw({prop:s,defaultProp:l??!1,onChange:c,caller:ud});return m.jsx(q5,{scope:t,triggerId:Kp(),triggerRef:h,contentId:Kp(),open:g,onOpenChange:f,onOpenToggle:w.useCallback(()=>f(b=>!b),[f]),modal:u,children:m.jsx(P5,{...p,open:g,onOpenChange:f,dir:i,modal:u,children:n})})};Yk.displayName=ud;var Xk="DropdownMenuTrigger",qk=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...s}=e,l=Kk(Xk,n),c=$n(n);return m.jsx(j5,{asChild:!0,...c,children:m.jsx(Hn.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:La(t,l.triggerRef),onPointerDown:mt(e.onPointerDown,u=>{!i&&u.button===0&&u.ctrlKey===!1&&(l.onOpenToggle(),l.open||u.preventDefault())}),onKeyDown:mt(e.onKeyDown,u=>{i||(["Enter"," "].includes(u.key)&&l.onOpenToggle(),u.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});qk.displayName=Xk;var Z5="DropdownMenuPortal",Zk=e=>{const{__scopeDropdownMenu:t,...n}=e,i=$n(t);return m.jsx(M5,{...i,...n})};Zk.displayName=Z5;var Jk="DropdownMenuContent",Qk=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=Kk(Jk,n),l=$n(n),c=w.useRef(!1);return m.jsx(D5,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...i,ref:t,onCloseAutoFocus:mt(e.onCloseAutoFocus,u=>{c.current||s.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:mt(e.onInteractOutside,u=>{const p=u.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,g=p.button===2||h;(!s.modal||g)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qk.displayName=Jk;var J5="DropdownMenuGroup",Q5=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(F5,{...s,...i,ref:t})});Q5.displayName=J5;var eP="DropdownMenuLabel",eb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(z5,{...s,...i,ref:t})});eb.displayName=eP;var tP="DropdownMenuItem",tb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(G5,{...s,...i,ref:t})});tb.displayName=tP;var nP="DropdownMenuCheckboxItem",rP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(B5,{...s,...i,ref:t})});rP.displayName=nP;var oP="DropdownMenuRadioGroup",iP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(W5,{...s,...i,ref:t})});iP.displayName=oP;var sP="DropdownMenuRadioItem",aP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(H5,{...s,...i,ref:t})});aP.displayName=sP;var lP="DropdownMenuItemIndicator",cP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx($5,{...s,...i,ref:t})});cP.displayName=lP;var uP="DropdownMenuSeparator",nb=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(U5,{...s,...i,ref:t})});nb.displayName=uP;var dP="DropdownMenuArrow",fP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(V5,{...s,...i,ref:t})});fP.displayName=dP;var pP="DropdownMenuSubTrigger",hP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(K5,{...s,...i,ref:t})});hP.displayName=pP;var mP="DropdownMenuSubContent",gP=w.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,s=$n(n);return m.jsx(Y5,{...s,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gP.displayName=mP;var xP=Yk,yP=qk,wP=Zk,kP=Qk,bP=eb,vP=tb,SP=nb;function rb(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=rb(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function EP(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=rb(e))&&(i&&(i+=" "),i+=t);return i}const CP=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},NP=(e,t)=>({classGroupId:e,validator:t}),ob=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yu="-",Oy=[],RP="arbitrary..",_P=e=>{const t=IP(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return TP(c);const u=c.split(Yu),p=u[0]===""&&u.length>1?1:0;return ib(u,p,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const p=i[c],h=n[c];return p?h?CP(h,p):p:h||Oy}return n[c]||Oy}}},ib=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],l=n.nextPart.get(s);if(l){const h=ib(e,t+1,l);if(h)return h}const c=n.validators;if(c===null)return;const u=t===0?e.join(Yu):e.slice(t).join(Yu),p=c.length;for(let h=0;h<p;h++){const g=c[h];if(g.validator(u))return g.classGroupId}},TP=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?RP+i:void 0})(),IP=e=>{const{theme:t,classGroups:n}=e;return LP(n,t)},LP=(e,t)=>{const n=ob();for(const i in e){const s=e[i];Vh(s,n,i,t)}return n},Vh=(e,t,n,i)=>{const s=e.length;for(let l=0;l<s;l++){const c=e[l];AP(c,t,n,i)}},AP=(e,t,n,i)=>{if(typeof e=="string"){OP(e,t,n);return}if(typeof e=="function"){PP(e,t,n,i);return}jP(e,t,n,i)},OP=(e,t,n)=>{const i=e===""?t:sb(t,e);i.classGroupId=n},PP=(e,t,n,i)=>{if(MP(e)){Vh(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(NP(n,e))},jP=(e,t,n,i)=>{const s=Object.entries(e),l=s.length;for(let c=0;c<l;c++){const[u,p]=s[c];Vh(p,sb(t,u),n,i)}},sb=(e,t)=>{let n=e;const i=t.split(Yu),s=i.length;for(let l=0;l<s;l++){const c=i[l];let u=n.nextPart.get(c);u||(u=ob(),n.nextPart.set(c,u)),n=u}return n},MP=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,DP=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(l,c)=>{n[l]=c,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(l){let c=n[l];if(c!==void 0)return c;if((c=i[l])!==void 0)return s(l,c),c},set(l,c){l in n?n[l]=c:s(l,c)}}},eh="!",Py=":",FP=[],jy=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),zP=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const l=[];let c=0,u=0,p=0,h;const g=s.length;for(let S=0;S<g;S++){const T=s[S];if(c===0&&u===0){if(T===Py){l.push(s.slice(p,S)),p=S+1;continue}if(T==="/"){h=S;continue}}T==="["?c++:T==="]"?c--:T==="("?u++:T===")"&&u--}const f=l.length===0?s:s.slice(p);let b=f,y=!1;f.endsWith(eh)?(b=f.slice(0,-1),y=!0):f.startsWith(eh)&&(b=f.slice(1),y=!0);const v=h&&h>p?h-p:void 0;return jy(l,y,b,v)};if(t){const s=t+Py,l=i;i=c=>c.startsWith(s)?l(c.slice(s.length)):jy(FP,!1,c,void 0,!0)}if(n){const s=i;i=l=>n({className:l,parseClassName:s})}return i},GP=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let l=0;l<n.length;l++){const c=n[l],u=c[0]==="[",p=t.has(c);u||p?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(c)):s.push(c)}return s.length>0&&(s.sort(),i.push(...s)),i}},BP=e=>({cache:DP(e.cacheSize),parseClassName:zP(e),sortModifiers:GP(e),..._P(e)}),WP=/\s+/,HP=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],u=e.trim().split(WP);let p="";for(let h=u.length-1;h>=0;h-=1){const g=u[h],{isExternal:f,modifiers:b,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:S}=n(g);if(f){p=g+(p.length>0?" "+p:p);continue}let T=!!S,R=i(T?v.substring(0,S):v);if(!R){if(!T){p=g+(p.length>0?" "+p:p);continue}if(R=i(v),!R){p=g+(p.length>0?" "+p:p);continue}T=!1}const P=b.length===0?"":b.length===1?b[0]:l(b).join(":"),j=y?P+eh:P,D=j+R;if(c.indexOf(D)>-1)continue;c.push(D);const E=s(R,T);for(let C=0;C<E.length;++C){const L=E[C];c.push(j+L)}p=g+(p.length>0?" "+p:p)}return p},$P=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=ab(n))&&(s&&(s+=" "),s+=i);return s},ab=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=ab(e[i]))&&(n&&(n+=" "),n+=t);return n},UP=(e,...t)=>{let n,i,s,l;const c=p=>{const h=t.reduce((g,f)=>f(g),e());return n=BP(h),i=n.cache.get,s=n.cache.set,l=u,u(p)},u=p=>{const h=i(p);if(h)return h;const g=HP(p,n);return s(p,g),g};return l=c,(...p)=>l($P(...p))},VP=[],un=e=>{const t=n=>n[e]||VP;return t.isThemeGetter=!0,t},lb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KP=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,YP=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XP=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qP=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ZP=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,JP=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Li=e=>KP.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),Ai=e=>!!e&&Number.isInteger(Number(e)),xp=e=>e.endsWith("%")&&rt(e.slice(0,-1)),Yo=e=>YP.test(e),ub=()=>!0,QP=e=>XP.test(e)&&!qP.test(e),Kh=()=>!1,ej=e=>ZP.test(e),tj=e=>JP.test(e),nj=e=>!Me(e)&&!De(e),rj=e=>Fi(e,pb,Kh),Me=e=>lb.test(e),bs=e=>Fi(e,hb,QP),My=e=>Fi(e,dj,rt),oj=e=>Fi(e,gb,ub),ij=e=>Fi(e,mb,Kh),Dy=e=>Fi(e,db,Kh),sj=e=>Fi(e,fb,tj),vu=e=>Fi(e,xb,ej),De=e=>cb.test(e),Sl=e=>_s(e,hb),aj=e=>_s(e,mb),Fy=e=>_s(e,db),lj=e=>_s(e,pb),cj=e=>_s(e,fb),Su=e=>_s(e,xb,!0),uj=e=>_s(e,gb,!0),Fi=(e,t,n)=>{const i=lb.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},_s=(e,t,n=!1)=>{const i=cb.exec(e);return i?i[1]?t(i[1]):n:!1},db=e=>e==="position"||e==="percentage",fb=e=>e==="image"||e==="url",pb=e=>e==="length"||e==="size"||e==="bg-size",hb=e=>e==="length",dj=e=>e==="number",mb=e=>e==="family-name",gb=e=>e==="number"||e==="weight",xb=e=>e==="shadow",fj=()=>{const e=un("color"),t=un("font"),n=un("text"),i=un("font-weight"),s=un("tracking"),l=un("leading"),c=un("breakpoint"),u=un("container"),p=un("spacing"),h=un("radius"),g=un("shadow"),f=un("inset-shadow"),b=un("text-shadow"),y=un("drop-shadow"),v=un("blur"),S=un("perspective"),T=un("aspect"),R=un("ease"),P=un("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...D(),De,Me],C=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],I=()=>[De,Me,p],H=()=>[Li,"full","auto",...I()],F=()=>[Ai,"none","subgrid",De,Me],$=()=>["auto",{span:["full",Ai,De,Me]},Ai,De,Me],Y=()=>[Ai,"auto",De,Me],ce=()=>["auto","min","max","fr",De,Me],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...I()],pe=()=>[Li,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],X=()=>[Li,"screen","full","dvw","lvw","svw","min","max","fit",...I()],J=()=>[Li,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],_=()=>[e,De,Me],z=()=>[...D(),Fy,Dy,{position:[De,Me]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",lj,rj,{size:[De,Me]}],Ee=()=>[xp,Sl,bs],de=()=>["","none","full",h,De,Me],we=()=>["",rt,Sl,bs],Te=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>[rt,xp,Fy,Dy],Qe=()=>["","none",v,De,Me],vt=()=>["none",rt,De,Me],it=()=>["none",rt,De,Me],Ye=()=>[rt,De,Me],Rt=()=>[Li,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yo],breakpoint:[Yo],color:[ub],container:[Yo],"drop-shadow":[Yo],ease:["in","out","in-out"],font:[nj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yo],shadow:[Yo],spacing:["px",rt],text:[Yo],"text-shadow":[Yo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Li,Me,De,T]}
vendor: 6,122 bytes, line 474
474],container:["container"],columns:[{columns:[rt,Me,De,u]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ai,"auto",De,Me]}],basis:[{basis:[Li,"full","auto",u,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,Li,"auto","initial","none",Me]}],grow:[{grow:["",rt,De,Me]}],shrink:[{shrink:["",rt,De,Me]}],order:[{order:[Ai,"first","last","none",De,Me]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:pe()}],"inline-size":[{inline:["auto",...X()]}],"min-inline-size":[{"min-inline":["auto",...X()]}],"max-inline-size":[{"max-inline":["none",...X()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[u,"screen",...pe()]}],"min-w":[{"min-w":[u,"screen","none",...pe()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...pe()]}],h:[{h:["screen","lh",...pe()]}],"min-h":[{"min-h":["screen","lh","none",...pe()]}],"max-h":[{"max-h":["screen","lh",...pe()]}],"font-size":[{text:["base",n,Sl,bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,uj,oj]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xp,Me]}],"font-family":[{font:[aj,ij,t]}],"font-features":[{"font-features":[Me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,De,Me]}],"line-clamp":[{"line-clamp":[rt,"none",De,My]}],leading:[{leading:[l,...I()]}],"list-image":[{"list-image":["none",De,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",De,bs]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[rt,"auto",De,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",De,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ai,De,Me],radial:["",De,Me],conic:[Ai,De,Me]},cj,sj]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:Ee()}
vendor: 6,947 bytes, line 474
474],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-bs":[{"border-bs":we()}],"border-w-be":[{"border-be":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,De,Me]}],"outline-w":[{outline:["",rt,Sl,bs]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",g,Su,vu]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,Su,vu]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[rt,bs]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",b,Su,vu]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[rt,De,Me]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ae()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":Ae()}],"mask-image-t-to-pos":[{"mask-t-to":Ae()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":Ae()}],"mask-image-r-to-pos":[{"mask-r-to":Ae()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":Ae()}],"mask-image-b-to-pos":[{"mask-b-to":Ae()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":Ae()}],"mask-image-l-to-pos":[{"mask-l-to":Ae()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":Ae()}],"mask-image-x-to-pos":[{"mask-x-to":Ae()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":Ae()}],"mask-image-y-to-pos":[{"mask-y-to":Ae()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[De,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ae()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ae()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Me]}],filter:[{filter:["","none",De,Me]}],blur:[{blur:Qe()}],brightness:[{brightness:[rt,De,Me]}],contrast:[{contrast:[rt,De,Me]}],"drop-shadow":[{"drop-shadow":["","none",y,Su,vu]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",rt,De,Me]}],"hue-rotate":[{"hue-rotate":[rt,De,Me]}],invert:[{invert:["",rt,De,Me]}],saturate:[{saturate:[rt,De,Me]}],sepia:[{sepia:["",rt,De,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Me]}],"backdrop-blur":[{"backdrop-blur":Qe()}],"backdrop-brightness":[{"backdrop-brightness":[rt,De,Me]}],"backdrop-contrast":[{"backdrop-contrast":[rt,De,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,De,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,De,Me]}],"backdrop-invert":[{"backdrop-invert":["",rt,De,Me]}],"backdrop-opacity":[{"backdrop-opacity":[rt,De,Me]}],"backdrop-saturate":[{"backdrop-saturate":[rt,De,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,De,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",De,Me]}],ease:[{ease:["linear","initial",R,De,Me]}],delay:[{delay:[rt,De,Me]}],animate:[{animate:["none",P,De,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,De,Me]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:it()}],"scale-x":[{"scale-x":it()}],"scale-y":[{"scale-y":it()}],"scale-z":[{"scale-z":it()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}
vendor: 5,837 bytes, line 474
474],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[De,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Rt()}],"translate-x":[{"translate-x":Rt()}],"translate-y":[{"translate-y":Rt()}],"translate-z":[{"translate-z":Rt()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",De,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",De,Me]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[rt,Sl,bs,My]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pj=UP(fj);function ec(...e){return pj(EP(e))}function yp({...e}){return m.jsx(xP,{"data-slot":"dropdown-menu",...e})}function wp({...e}){return m.jsx(yP,{"data-slot":"dropdown-menu-trigger",...e})}function kp({className:e,sideOffset:t=4,...n}){return m.jsx(wP,{children:m.jsx(kP,{"data-slot":"dropdown-menu-content",sideOffset:t,className:ec("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
474de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[2rem] max-w-[6rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function Xo({className:e,inset:t,variant:n="default",...i}){return m.jsx(vP,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:ec("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function hj({className:e,inset:t,...n}){return m.jsx(bP,{"data-slot":"dropdown-menu-label","data-inset":t,className:ec("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function mj({className:e,...t}){return m.jsx(SP,{"data-slot":"dropdown-menu-separator",className:ec("bg-border -mx-1 my-1 h-px",e),...t})}function bp({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:ec("bg-accent animate-pulse rounded-md",e),...t})}function gj({className:e,nickname:t,roomNumber:n,roomCount:i,allRoomCounts:s,liveVisitCount:l,roomNames:c={},roomIcons:u={}}){const p=sr(),[h,g]=w.useState(null),f=l??h,b=w.useRef(!1),y=w.useRef(null),v=s&&Object.keys(s).length>0?Object.values(s).reduce((T,R)=>T+R,0):null;w.useEffect(()=>{const T=async()=>{if(t)try{const P=await Ih(),j=Bn();await(await fetch(`${nt}/heartbeat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fingerprint:P,deviceToken:j})})).json()}catch(P){console.error("Heartbeat error:",P)}};T(),y.current=window.setInterval(T,3e5);const R=()=>{fetch(`${nt}/leave`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({}),keepalive:!0}).catch(()=>{})};return window.addEventListener("beforeunload",R),()=>{window.removeEventListener("beforeunload",R),y.current&&clearInterval(y.current),R()}},[t]),w.useEffect(()=>{if(b.current)return;b.current=!0,(async()=>{try{const R=await fetch(`${nt}/visit`,{method:"POST",headers:{"Content-Type":"application/json"}});if(R.ok){const P=await R.json();g(P.count)}}catch(R){console.error(R)}})()},[]);const S=n!=null?p("status.inRoom",{icon:u[n]??"",room:c[n]??""}):"";return m.jsxs("div",{className:`fixed left-1/2 -translate-x-1/2 flex items-center justify-center gap-1.5 text-xs text-gray-400 select-none pointer-events-none z-50 font-mono whitespace-nowrap transition-all duration-300 ${e||"bottom-2"}`,children:[n!=null?m.jsxs(m.Fragment,{children:[m.jsxs("span",{className:"text-gray-300",children:[S," "]}),i!=null&&v!=null?m.jsx("span",{children:p("status.roomCount",{room:i,total:v})}):m.jsx(bp,{className:"h-3 w-16 rounded bg-gradient-to-r from-white/5 via-white/10 to-white/5"})]}):v===null?m.jsx(bp,{className:"h-3 w-16 rounded bg-gradient-to-r from-white/5 via-white/10 to-white/5"}):m.jsx("span",{children:p("status.totalOnly",{count:v,total:v})}),m.jsx("span",{className:"text-gray-600",children:"•"}),f===null?m.jsx(bp,{className:"h-3 w-24 rounded bg-gradient-to-r from-white/5 via-white/10 to-white/5"}):m.jsx("span",{children:p("status.buttsToday",{count:f})})]})}const xj={profiles:{GO:{name:"고인턴",job:"디자이너",description:"살림, 무인양품, 이사, 인테리어에 관심 많음."},LEE:{name:"이선임",job:"개발자",description:"주식, 시사, 국제 정치에 관심 많음."},ZUCKERBERG:{name:"고대리",job:"관리자",description:"흡연실 관리 및 모니터링 담당."},DUGONG:{name:"행복한 듀공",job:"백수",description:"아무 생각 없이 담배만 피는 듀공."},SHARK:{name:"귀여운 상어",job:"마스코트",description:"소심하고 귀여운 아기 상어."}},triggers:{GO:["고인턴"],LEE:["이선임"],ZUCKERBERG:[],DUGONG:["듀공"],SHARK:["상어"]},news:e=>[{speaker:"LEE",text:`[속보] ${e}`},{speaker:"GO",text:"와, 세상 ì°¸ 복잡하네요..."}],weather:e=>[{speaker:"GO",text:e},{speaker:"LEE",text:"오, 정보 감사합니다. 참고할게요."}],idleConversations:[[{speaker:"LEE",text:"어제 나스닥 보셨어요? 진짜 말도 안 되게 오르던데."},{speaker:"GO",text:"전 주식 안 해요... 그보다 무인양품 세일 기간 아세요?"}],[{speaker:"GO",text:"아... 이사가고 싶다. 짐이 왜 이렇게 많을까요."},{speaker:"LEE",text:"미니멀리즘 하신다면서요. 당근에 다 파시죠."}],[{speaker:"LEE",text:"요즘 뉴스 ë³´ë©´ 진짜 세상이 어떻게 돌아가는 건지..."},{speaker:"GO",text:"머리 아픈 얘기는 그만해요. 점심 뭐 드실 거예요?"}],[{speaker:"LEE",text:"이 코드 왜 안 돌아가지... 아, 세미콜론."},{speaker:"GO",text:"혼잣말이 너무 크세요 선임님..."}],[{speaker:"GO",text:"사무실 공기가 너무 탁한 ê±° 같아요."},{speaker:"LEE",text:"공기청정기 필터 교체할 때 됐나 보네요."}],[{speaker:"GO",text:"저번에 말씀하신 ê·¸ 맛집, 어제 가봤는데 대기가 2시간이더라고요."},{speaker:"LEE",text:"아, 거기 주말엔 가면 안 돼요. 평일 오픈런 하셔야죠."},{speaker:"GO",text:"먹는 거에 왜 그렇게 진심이세요..."}],[{speaker:"LEE",text:"팀장님 오늘 기분 좋아 보이시던데, 뭐 좋은 일 있나?"},{speaker:"GO",text:"아까 대표님이랑 웃으면서 통화하시던데요."},{speaker:"LEE",text:"불안한데... 일 더 주는 ê±° 아니겠죠?"}],[{speaker:"GO",text:"이번 달 카드값 대박이에요... 무인ì
474–‘품에서 너무 질렀나 봐요."},{speaker:"LEE",text:"소비 좀 줄이세요. 그러다 파산합니다."},{speaker:"GO",text:"선임님도 그래픽카드 샀으면서..."}],[{speaker:"LEE",text:"아, 로또 당첨되면 회사 바로 그만둔다."},{speaker:"GO",text:"전 그만두진 않고 카페 하나 차리고 싶어요."},{speaker:"LEE",text:"카페도 자영업이에요. 회사보다 더 힘들걸요?"}],[{speaker:"GO",text:"선임님, 어제 드라마 보셨어요? 남주 진짜 잘생겼던데."},{speaker:"LEE",text:"드라마 ë³¼ 시간 없어요. 미장 확인해야 해서."},{speaker:"GO",text:"낭만이 없으셔, 낭만이."}],[{speaker:"LEE",text:"요즘 MZ들은 회식을 싫어한다던데, 고인턴님도 그래요?"},{speaker:"GO",text:"음... 맛있는 ê±° 사주시면 좋죠. 근데 노래방은 좀..."},{speaker:"LEE",text:"아, 노래방이 진국인데. 템버린 흔들어야 스트레스 풀리죠."},{speaker:"GO",text:"세대 차이 느껴지네요..."}],[{speaker:"GO",text:"아, 폰트가 살짝 깨져 보이는 ê±° 같은데 기분 탓인가."},{speaker:"LEE",text:"그거 안티앨리어싱 문제일걸요? 윈도우 설정 확인해보세요."},{speaker:"GO",text:"아뇨, 그냥 맥북 살래요. 예쁜 게 최고야."}],[{speaker:"LEE",text:"오늘 점심은 구내식당 패스하시죠. 맛없는 날임."},{speaker:"GO",text:"저 샐러드 싸왔어요. 다이어트 중이라."},{speaker:"LEE",text:"고인턴님이 뺄 살이 어디 있다고..."},{speaker:"GO",text:"내장지방이 위험하다고요."}],[{speaker:"GO",text:"주말에 뭐 하세요? 전 전시회 보러 가려고요."},{speaker:"LEE",text:"잠이나 자야죠. 평일에 너무 달렸어."},{speaker:"GO",text:"잠만 자면 더 피곤하지 않나요? 나가서 광합성 좀 하세요."}],[{speaker:"LEE",text:"아... 개발 서버 또 터졌네. 누가 건드린 거야."},{speaker:"GO",text:"선임님이 어제 배포하신 ê±° 아니에요?"}],[{speaker:"GO",text:"선임님, 이거 색상 코드 좀 봐주세요. #FF6B6B랑 #E55A5A 차이 보여요?"},{speaker:"LEE",text:"...똑같은데요?"},{speaker:"GO",text:"역시 개발자 눈은 믿을 게 못 되네요."}],[{speaker:"LEE",text:"고인턴님, 커피 마시러 가실래요?"},{speaker:"GO",text:"전 오늘 디카페인으로요. 어제 밤에 잠을 못 잤어요."},{speaker:"LEE",text:"핸드폰 보다가 그런 ê±° 아닙니까."},{speaker:"GO",text:"맞아요. 근데 멈출 수가 없었어요. 인테리어 릴스가 자꾸 떠서..."}],[{speaker:"LEE",text:"요즘 금값이 미쳤어요. 진짜 금 모아둘 걸."},{speaker:"GO",text:"골드바 대신 골드 액세서리 사면 안 돼요?"},{speaker:"LEE",text:"그건 자산이 아니라 소비입니다, 고인턴님."}],[{speaker:"GO",text:"선임님 점심 같이 먹어요. 새로 생긴 포케 어때요?"},{speaker:"LEE",text:"포케가 뭔데 만 원이 넘어... 김밥이나 먹읍시다."},{speaker:"GO",text:"아 진짜 현실적이세요."}],[{speaker:"LEE",text:"GPT한테 코드 물어봤더니 존재하지 않는 라이브러리를 추천해줌."},{speaker:"GO",text:"AI도 허세부리나 보네요."},{speaker:"LEE",text:"사람이랑 똑같아..."}],[{speaker:"GO",text:"선임님, 혹시 관엽식물 키우세요?"},{speaker:"LEE",text:"선인장 하나 있는데 그것도 죽어가요."},{speaker:"GO",text:"선인장을 어떻게 죽여요... 물을 너무 많이 주신 ê±° 아니에요?"},{speaker:"LEE",text:"매일 줬는데..."},{speaker:"GO",text:"그건 물고문이에요 선임님."}],[{speaker:"LEE",text:"이번 주 야근 3번째다... 몸이 안 남아나겠어."},{speaker:"GO",text:"스트레칭이라도 하세요. 거북목 되면 진짜 못 고쳐요."},{speaker:"LEE",text:"이미 거북목인데요."}],[{speaker:"GO",text:"오늘 출근길에 벚꽃 폈더라고요. 너무 예뻤어요."},{speaker:"LEE",text:"꽃가루 알레르기 때문에 봄이 지옥임."},{speaker:"GO",text:"세상에 예쁜 것도 좀 보세요..."}],[{speaker:"LEE",text:"어제 새벽에 넷플 보다가 잠들었는데 7화까지 자동재생 됐더라."},{speaker:"GO",text:"뭐 보신 건데요?"},{speaker:"LEE",text:"다큐멘터리. 일론 머스크 관련."},{speaker:"GO",text:"... 선임님 취미 좀 다양하게 가지세요."}
474],[{speaker:"GO",text:"무인양품에서 아로마 디퓨저 샀는데, 사무실에 놔도 될까요?"},{speaker:"LEE",text:"향 뭔데요?"},{speaker:"GO",text:"라벤더요."},{speaker:"LEE",text:"졸릴 것 같은데... 업무 중에는 좀..."},{speaker:"GO",text:"선임님 숙면에 도움 된다고요!"}],[{speaker:"LEE",text:"코드 리뷰 좀 봐줄 사람 없나..."},{speaker:"GO",text:"저 봐드릴까요? HTML은 읽을 줄 알아요."},{speaker:"LEE",text:"감사하지만... 백엔드 코드라서요."},{speaker:"GO",text:"백엔드는 뒤쪽에 있는 코드인 거죠?"},{speaker:"LEE",text:"... 네, 뭐 맞는 말이긴 한데."}],[{speaker:"GO",text:"저 오늘 재택하고 싶었는데 회의가 있대요."},{speaker:"LEE",text:"그 회의 10분이면 끝나는 건데 굳이 출근을..."},{speaker:"GO",text:"그러게요. 이메일로 하면 안 되나..."}],[{speaker:"LEE",text:"비트코인 또 떨어졌다."},{speaker:"GO",text:"선임님 혹시 물리신 거예요?"},{speaker:"LEE",text:"... 다음 질문."}],[{speaker:"GO",text:"선임님 모니터 밝기 왜 이렇게 높아요. 눈 안 아파요?"},{speaker:"LEE",text:"어두우면 코드가 안 보여요."},{speaker:"GO",text:"다크모드 쓰세요. 눈 건강에 좋대요."},{speaker:"LEE",text:"다크모드에서 버그 찾으면 더 우울해져요."}],[{speaker:"GO",text:"퇴근하고 필라테스 등록했어요."},{speaker:"LEE",text:"3개월 뒤에 헬스장 유령회원 되는 겁니다."},{speaker:"GO",text:"아니에요! 이번엔 진짜 꾸준히 할 거예요!"},{speaker:"LEE",text:"작년에도 그러셨죠."}],[{speaker:"LEE",text:"아 오늘 배포일인데 마음이 무겁다."},{speaker:"GO",text:"괜찮을 거예요. QA 다 통과했잖아요."},{speaker:"LEE",text:"QA 통과하고 프로덕션에서 터지는 게 전통이에요."}],[{speaker:"GO",text:"이사할 집 봤는데 역에서 15분이래요. 근데 예쁘거든요."},{speaker:"LEE",text:"부동산이 예쁘다고 한 건 30분이라는 뜻이에요."},{speaker:"GO",text:"에이 설마요..."},{speaker:"LEE",text:"경험담입니다."}],[{speaker:"LEE",text:"운동을 해야 하는데 시간이 없어."},{speaker:"GO",text:"출퇴근이 운동 아닌가요? 선임님 지하철역까지 꽤 걸으시잖아요."},{speaker:"LEE",text:"그건 고문이지 운동이 아닙니다."}],[{speaker:"GO",text:"선임님, 저 오늘 디자인 발표 있는데 떨려요."},{speaker:"LEE",text:"그냥 자신감 있게 하세요. 어차피 아무도 안 봐요."},{speaker:"GO",text:"그건 위로가 아니잖아요!"},{speaker:"LEE",text:"아, 관심 안 가져서 편하다는 뜻이었는데..."}],[{speaker:"LEE",text:"고인턴님 MBTI가 뭐예요?"},{speaker:"GO",text:"INFJ요. 선임님은요?"},{speaker:"LEE",text:"ESTP."},{speaker:"GO",text:"아... 어쩐지 말이 많으시더라."},{speaker:"LEE",text:"토론을 좋아하는 거지 말이 많은 게 아닙니다."}],[{speaker:"GO",text:"퇴근하고 뭐 해요?"},{speaker:"LEE",text:"유튜브 보다가 기절."},{speaker:"GO",text:"저도요. 근데 알고리즘이 자꾸 집 인테리어만 추천해줘요."},{speaker:"LEE",text:"저는 주식 폭락 영상만 나와요. 알고리즘이 날 공격하는 느낌."}],[{speaker:"GO",text:"편의점 가는데 뭐 필요한 거 있으세요?"},{speaker:"LEE",text:"아메리카노요. 얼음 많이."},{speaker:"GO",text:"벌써 오늘 세 번째잖아요. 카페인 중독이에요."},{speaker:"LEE",text:"카페인이 없으면 코드가 안 나옵니다."}],[{speaker:"LEE",text:"요즘 ChatGPT 때문에 개발자 짤린다는 기사 나오던데."},{speaker:"GO",text:"디자이너도요... AI가 로고도 만들어주잖아요."},{speaker:"LEE",text:"우리 둘 다 위험하네요."},{speaker:"GO",text:"같이 치킨집이나 차릴까요?"}],[{speaker:"GO",text:"오늘 날씨 진짜 좋다. 이런 날 회사에 있는 게 아까워요."},{speaker:"LEE",text:"밖에 나가면 돈 쓰니까 회사에 있는 게 이득입니다."},{speaker:"GO",text:"선임님 사고방식이 너무 경제적이에요."}],[{speaker:"LEE",text:"Stack Overflow 없어지면 개발자 절반은 퇴사함."},{speaker:"GO",text:"핀터레스트 없어지면 디자이너 절반도 퇴사해요."},{speaker:"LEE",text:"서로 기대고 사는 거네요, 이 업계가."}],[{speaker:"GO",text:"선임님 책상 왜 이렇게 지저분해요. 정리 좀 하세요."},{speaker:"LEE",text:"창의적인 사람의 책상은 원래 복잡합니다."},{speaker:"GO",text:"그건 아인슈타인이 한 말이지 선임님이 할 말이 아니에요."}],[{speaker:"LEE",text:"이 기획서 읽어봤는데 뭔 소린지 하나도 모르겠음."},{speaker:"GO",text:"기획자분한테 물어보시지 그래요."},{speaker:"LEE",text:"물어보면 1시간 설명하셔서 더 모르겠어요."}],[{speaker:"GO",text:"오늘의집 앱 보다가 3시간 날렸어요."},{speaker:"LEE",text:"그거 시간 블랙홀이죠. 저도 쿠팡 보다가 새벽 됨."},{speaker:"GO",text:"우리 둘 다 문제 있는 거 아닌가요."}],[{speaker:"LEE",text:"월요일이 왜 이렇게 빨리 와..."},{speaker:"GO",text:"금요일은 눈 깜짝할 새에 끝나는데 월요일은 안 가요."},{speaker:"LEE",text:"상대성 이론 실생활 적용 사례네요."}],[{speaker:"GO",text:"선임님 연봉 협상 하셨어요?"},{speaker:"LEE",text:"했죠. 결과가 비참해서 말을 못 하겠어요."}
474,{speaker:"GO",text:"... 저도 곧인데 무섭네요."}],[{speaker:"LEE",text:"이력서 업데이트 해둬야 하나..."},{speaker:"GO",text:"갑자기요? 무슨 일 있어요?"},{speaker:"LEE",text:"아뇨, 항상 준비되어 있어야죠. 개발자의 생존 본능입니다."}],[{speaker:"GO",text:"회의실 예약 또 겹쳤어요. 누가 안 지우고 간 거예요."},{speaker:"LEE",text:"구글 캘린더 쓰면 이런 일 없는데."},{speaker:"GO",text:"팀장님이 아직도 수기로 관리하시잖아요..."},{speaker:"LEE",text:"디지털 전환이 시급합니다."}],[{speaker:"GO",text:"저 어제 공방에서 도자기 만들었어요. 머그컵!"},{speaker:"LEE",text:"사진 좀 보여주세요."},{speaker:"GO",text:"짜잔~"},{speaker:"LEE",text:"... 이거 컵이에요?"},{speaker:"GO",text:"세상에 하나뿐인 핸드메이드예요!"}],[{speaker:"LEE",text:"요즘 사이드 프로젝트 하나 하고 있는데요."},{speaker:"GO",text:"오, 뭔데요?"},{speaker:"LEE",text:"주식 자동매매 봇. 근데 아직 수익률이 마이너스..."},{speaker:"GO",text:"그냥 예금 드세요 선임님."}],[{speaker:"GO",text:"아이패드로 그림 그리는 거 배우고 싶어요."},{speaker:"LEE",text:"프로크리에이트 좋던데요."},{speaker:"GO",text:"선임님 그림 그리세요?"},{speaker:"LEE",text:"아뇨, 유튜브로만 봤어요."},{speaker:"GO",text:"영상으로만 배우는 게 특기시네요."}],[{speaker:"LEE",text:"하... PR 코멘트가 47개 달렸다."},{speaker:"GO",text:"인기가 많으시네요."},{speaker:"LEE",text:"이건 인기가 아니라 재앙입니다."}],[{speaker:"GO",text:"택배 회사로 보내면 편하긴 한데 동료들 눈치가 보여요."},{speaker:"LEE",text:"다들 그래요. 저도 어제 키보드 왔어요."},{speaker:"GO",text:"또 키보드요? 몇 개째예요?"},{speaker:"LEE",text:"... 취미입니다."}],[{speaker:"GO",text:"저 오늘 네일 받았는데 예쁘지 않아요?"},{speaker:"LEE",text:"오. 키보드 타기 불편하지 않아요?"},{speaker:"GO",text:"미적 감각이 제로시네요..."}],[{speaker:"LEE",text:"점심 먹고 나면 왜 이렇게 졸리지."},{speaker:"GO",text:"식곤증이요. 탄수화물 적게 드세요."},{speaker:"LEE",text:"라면에 밥 말아 먹었는데..."},{speaker:"GO",text:"그건 탄수화물 폭탄이잖아요!"}],[{speaker:"GO",text:"선임님 혹시 향수 추천 좀 해주실 수 있어요?"},{speaker:"LEE",text:"전 페브리즈만 써요."},{speaker:"GO",text:"대화가 안 되네요 진짜."}],[{speaker:"LEE",text:"깃허브 잔디 심기 100일 달성했다."},{speaker:"GO",text:"그게 뭔데요?"},{speaker:"LEE",text:"매일 코드를 커밋하면 초록색으로 칸이 차는 건데..."},{speaker:"GO",text:"마인크래프트 같은 건가요?"},{speaker:"LEE",text:"... 비슷한 것 같기도 하고."}],[{speaker:"GO",text:"에어컨 좀 세게 틀면 안 돼요? 너무 더워요."},{speaker:"LEE",text:"전 이미 패딩 조끼 입고 있는데요."},{speaker:"GO",text:"체감 온도가 왜 이렇게 다를까..."}],[{speaker:"LEE",text:"CSS 센터링하는 법 몇 가지나 있는 줄 아세요?"},{speaker:"GO",text:"한 두 가지 아닌가요?"},{speaker:"LEE",text:"최소 10가지인데 다 미묘하게 달라요. 지옥임."},{speaker:"GO",text:"디자이너 입장에선 그냥 가운데 놓으라고요 하면 되는데..."},{speaker:"LEE",text:"그 '그냥'이 제일 무섭습니다."}],[{speaker:"DUGONG",text:"스으읍 후"},{speaker:"GO",text:"어머, 듀공님 또 오셨네."}],[{speaker:"LEE",text:"저 듀공은 하루종일 담배만 피나..."},{speaker:"DUGONG",text:"쓰으으으으으읍...후우......"}],[{speaker:"DUGONG",text:"스읍 후우"},{speaker:"DUGONG",text:"쓰으으읍 후.."}],[{speaker:"DUGONG",text:"후우우..."},{speaker:"LEE",text:"듀공씨, 하루에 몇 갑 피우세요?"},{speaker:"DUGONG",text:"스으읍...후...스읍...후우..."},{speaker:"LEE",text:"대답은 안 하네."}],[{speaker:"GO",text:"듀공님 표정이 오늘따라 평화로워 보여요."},{speaker:"DUGONG",text:"쓰읍 후우우우..."},{speaker:"GO",text:"담배가 맛있나 봐요."}],[{speaker:"DUGONG",text:"..."},{speaker:"DUGONG",text:"스으읍"},{speaker:"DUGONG",text:"후우우우우우..."},{speaker:"DUGONG",text:"..."}],[{speaker:"LEE",text:"듀공님, 직업이 뭐예요?"},{speaker:"DUGONG",text:"쓰읍 후"},{speaker:"LEE",text:"... 프로 흡연러시구나."}],[{speaker:"GO",text:"듀공님 오늘 기분이 좋아 보이세요!"},{speaker:"DUGONG",text:"쓰으으읍... 후우우..."},{speaker:"GO",text:"연기가 하트 모양인 것 같은 건 기분 탓인가?"}],[{speaker:"DUGONG",text:"스읍"},{speaker:"LEE",text:"오늘도 열심히 피우시네요."},{speaker:"DUGONG",text:"후우우..."},{speaker:"LEE",text:"부럽다... 저렇게 한가한 거."}],[{speaker:"DUGONG",text:"쓰으읍 후..."},{speaker:"GO",text:"듀공님은 고민 같은 거 없으세요?"},{speaker:"DUGONG",text:"..."},{speaker:"GO",text:"없구나. 부러워요."}],[{speaker:"DUGONG",text:"푸우..."},{speaker:"DUGONG",text:"스으으읍"},{speaker:"DUGONG",text:"후으으으..."},{speaker:"LEE",text:"명상하는 건가..."}],[{speaker:"SHARK",text:"소근소근..."}],[{speaker:"SHARK",text:"속닥속닥"},{speaker:"GO",text:"어? 방금 무슨 소리 안 들렸어요?"}],[{speaker:"SHARK",text:"뻐끔뻐끔"},{speaker:"DUGONG",text:"푸우우우..."}],[{speaker:"SHARK",text:"소근..."},{speaker:"SHARK",text:"소근소근..."},{speaker:"LEE",text:"아 또 저 상어 뭐라 그러는데 안 들려."}],[{speaker:"SHARK",text:"속닥속닥..."},{speaker:"GO",text:"상어님! 좀 더 크게 말씀해주세요!"},{speaker:"SHARK",text:"소근..."},{speaker:"GO",text:"... 안 되나 봐요."}],[{speaker:"SHARK",text:"뻐끔..."},{speaker:"SHARK",text:"뻐끔뻐끔..."}],[{speaker:"SHARK",text:"속닥속닥"},{speaker:"DUGONG",text:"쓰읍 후"},{speaker:"SHARK",text:"소근!"},{speaker:"DUGONG",text:"후우..."}],[{speaker:"SHARK",text:"소근소근소근"},{speaker:"LEE",text:"혹시 뭐 중요한 말 하는 건가?"},{speaker:"GO",text:"안 들려서 모르겠어요..."},{speaker:"SHARK",text:"..."}],[{speaker:"GO",text:"상어님 외로워 보여요. 괜찮으세요?"},{speaker:"SHARK",text:"소근..."},{speaker:"GO",text:"토닥토닥."},{speaker:"SHARK",text:"소근소근!"}],[{speaker:"SHARK",text:"뻐끔뻐끔뻐끔"},{speaker:"LEE",text:"상어가 물 밖에 있어도 되는 건가?"},{speaker:"GO",text:"인터넷 상어니까 괜찮겠죠."}],[{speaker:"ZUCKERBERG",text:"여기 금연 구역 아닙니다. 편하게 피우세요."}],[{speaker:"ZUCKERBERG",text:"오늘 흡연실 이용자 수가 평소보다 많네요."},{speaker:"LEE",text:"금요일이라 그런가 봐요."}],[{speaker:"GO",text:"고대리님은 담배 안 피우세요?"},{speaker:"ZUCKERBERG",text:"전 관리만 합니다. 흡연은 건강에 해로우니까요."},{speaker:"GO",text:"모범적이시네요."}
474],[{speaker:"ZUCKERBERG",text:"쓰레기통 좀 비워야겠네요."},{speaker:"LEE",text:"고대리님이 직접 비우시는 거예요?"},{speaker:"ZUCKERBERG",text:"관리자의 의무죠."}],[{speaker:"ZUCKERBERG",text:"흡연 매너 좀 지켜주세요. 꽁초는 재떨이에."},{speaker:"LEE",text:"네네..."}],[{speaker:"ZUCKERBERG",text:"환기 좀 시킬게요."},{speaker:"GO",text:"감사합니다 고대리님!"}],[{speaker:"ZUCKERBERG",text:"오늘도 온라인담타 운영 현황은 양호합니다."},{speaker:"LEE",text:"보고를 왜 여기서..."}],[{speaker:"LEE",text:"고대리님 퇴근 안 하세요?"},{speaker:"ZUCKERBERG",text:"흡연실이 닫힐 때까지 있어야죠."},{speaker:"LEE",text:"24시간인데요 여기."},{speaker:"ZUCKERBERG",text:"네. 그래서 항상 있죠."}],[{speaker:"GO",text:"다들 올해 목표 뭐예요?"},{speaker:"LEE",text:"경제적 자유."},{speaker:"DUGONG",text:"스읍 후"},{speaker:"SHARK",text:"소근..."},{speaker:"GO",text:"... 듀공님이랑 상어님은 이미 자유로운 것 같은데."}],[{speaker:"LEE",text:"여기 사람 많다. 오늘 무슨 날이야?"},{speaker:"GO",text:"월요일이니까요. 월요일은 다들 힘드니까."},{speaker:"DUGONG",text:"쓰으읍... 후우..."},{speaker:"ZUCKERBERG",text:"재떨이가 금방 차겠네요."}],[{speaker:"GO",text:"와 오늘 하늘 되게 예쁘다."},{speaker:"LEE",text:"미세먼지 나쁨인데요."},{speaker:"DUGONG",text:"푸우우..."},{speaker:"GO",text:"듀공님은 미세먼지랑 담배 연기 구분이 되세요?"},{speaker:"DUGONG",text:"스읍 후"}],[{speaker:"SHARK",text:"속닥속닥"},{speaker:"DUGONG",text:"쓰읍"},{speaker:"GO",text:"저 둘이 대화하는 거예요?"},{speaker:"LEE",text:"의사소통이 되나 보죠."},{speaker:"SHARK",text:"소근소근!"},{speaker:"DUGONG",text:"후우..."}],[{speaker:"ZUCKERBERG",text:"흡연실 만족도 조사 좀 할게요."},{speaker:"LEE",text:"만족합니다."},{speaker:"GO",text:"환기가 좀 더 됐으면..."},{speaker:"DUGONG",text:"스읍 후"},{speaker:"ZUCKERBERG",text:"1명 만족, 1명 개선 요청, 1명 흡연 중. 접수했습니다."}],[{speaker:"GO",text:"퇴근하고 싶다..."},{speaker:"LEE",text:"아직 2시인데요."},{speaker:"GO",text:"마음은 이미 퇴근했어요."},{speaker:"DUGONG",text:"푸우우우..."},{speaker:"LEE",text:"듀공은 매일이 퇴근이지..."}],[{speaker:"LEE",text:"여기 와이파이 느리지 않아요?"},{speaker:"GO",text:"맞아요. 릴스가 안 올라와요."},{speaker:"ZUCKERBERG",text:"흡연실 와이파이는 제 관할이 아닙니다."},{speaker:"LEE",text:"냉정하시네요."}],[{speaker:"GO",text:"상어님이 듀공님 옆에만 있는 거 귀엽지 않아요?"},{speaker:"LEE",text:"친구 사이인가 보죠."},{speaker:"SHARK",text:"소근소근"},{speaker:"DUGONG",text:"쓰읍 후"},{speaker:"GO",text:"케미 봐... 둘이 찰떡이네."}],[{speaker:"ZUCKERBERG",text:"공지: 내일 흡연실 청소가 있습니다."},{speaker:"LEE",text:"내일 여기 못 오나?"},{speaker:"GO",text:"한 시간이면 되지 않을까요?"},{speaker:"DUGONG",text:"..."},{speaker:"GO",text:"듀공님 표정이 급 어두워졌어요."}],[{speaker:"LEE",text:"금요일이다. 오늘만 버티면 된다."},{speaker:"GO",text:"불금에 뭐 하실 거예요?"},{speaker:"LEE",text:"넷플 정주행이요."},{speaker:"GO",text:"혼자요?"},{speaker:"LEE",text:"... 네."},{speaker:"GO",text:"저랑 같이 팝업스토어 가실래요?"},{speaker:"LEE",text:"팝업스토어가 대체 뭐가 좋은..."}]],guideMessages:[{speaker:"LEE",text:`혹시 불쾌한 채팅을 보셨나요?
475우측 하단 신고하기를 눌러
476신고할 수 있어요.`},{speaker:"LEE",text:`우측 하단 ASMR 켜기 버튼을
477누른 후 주황색 담배 필터를
478꾹~눌러보세요.
479연기 내뿜는 소리가 들려요!`},{speaker:"LEE",text:`담배 필터(주황색 부분)를
4802초간 꾹 누르면
481도넛 모양 연기가 나와요!
482한번 해보세요.`},{speaker:"LEE",text:`담배 몸통(하얀색 부분)을
483툭툭 치면
484재가 떨어져요.
485아셨나요?`},{speaker:"LEE",text:`좌측 하단 슬라이더로
486담배 굵기를 조절해보세요.
487왼쪽 끝까지 밀면
488담배를 숨길 수도 있답니다!`},{speaker:"LEE",text:`고대리 고생많았어!
489오늘은 내가 커피쏘지!
490(화면 왼쪽 상단
491커피 아이콘을 누르며..)`},{speaker:"LEE",text:`담배를 좌우로 슬쩍
492스와이프해보세요.
493연초·시가·궐련형·액상형
4944종으로 바뀝니다.`},{speaker:"GO",text:`어? 저 담배 옆으로 넘기면
495시가로 바뀌는 거 아셨어요?
496저는 액상형이 제일 예뻐요 ㅎㅎ`},{speaker:"SHARK",text:`저기... 담배 화면에서
497손가락으로 옆으로 밀면
498다른 담배가 나와요...
499신기해요...`}],reactiveResponses:{GO:["네? 저 부르셨나요? 디자인 시안 ë³´ê³  있었어요.","인테리어 팁 필요하세요? 오늘의집 링크 보내드릴까요?","이사 가시나요? 포장이사 견적 잘 받으셔야 해요.","무인양품 신상 나왔대요. 같이 보러 가실래요?","저... 지금 바빠요. (먼 산)","아, 저 지금 핀터레스트 레퍼런스 찾는 중이에요.","색감 조합 추천해드릴까요? 요즘 테라코타가 트렌드예요.","전시회 같이 가실 분? 성수동에 새로 열렸대요.","살림 잘하는 사람이 인생도 잘 사는 거예요.","저 오늘 기분 좋아요. 무인ì
499–‘í’ˆ 장바구니 비웠거든요... 결제 완료.","조명 하나만 바꿔도 분위기가 확 달라진다고요!","피그마 켜놓고 딴짓하는 중이에요. 비밀이에요.","요즘 '킨포크 라이프'에 빠졌어요. 들어보셨어요?","감성 소비라고 들어보셨어요? 전 그냥 소비인 것 같긴 한데...","아, 향초 새로 샀는데 냄새 맡아보실래요?"],LEE:["네, 부르셨습니까. 버그 수정 중입니다만.","주식 종목 추천은 안 합니다. 제 계좌도 파란불이라서요.","요즘 국제 정세가 불안정해서 금을 사두시는 게...","혹시 리액트 질문이신가요? 훅 규칙 준수하셨나요?","아, 커피 마시고 싶다.","코드 리뷰 요청이면 PR 올려주세요. 구두 리뷰는 안 합니다.","이거 리팩토링 해야 하는데... 시간이 없어.","세미콜론 빠뜨린 ê±° 아닌지 먼저 확인해보세요.","개발은 체력이에요. 체력이 ê³§ êµ­ë ¥.","오늘 커밋 7개 했는데 다 리버트 당했어요.","TypeScript 쓰세요. JS 쓰면 나중에 울어요.","DB 인덱스 안 걸어놓고 왜 느리냐고 물으시면 곤란합니다.","아... 배포 실수로 프로덕션 날릴 뻔했다. 롤백 성공.","점심 먹고 하죠. 빈속에 코딩하면 버그 납니다.","환율 좀 보세요. 달러가 무섭게 올라요.","사이드 프로젝트가 본업보다 재밌는 ê±´ 왜일까.","아 모니터 하나 더 사고 싶다. 트리플은 돼야 일할 맛이 나지."],ZUCKERBERG:[`흡연은 건강에 해롭고요.
500온라인담타는 무해합니다!
501(금연상담 1544-9030)`],DUGONG:["스으읍 후","쓰으으읍 후..","쓰으으으으으읍...후우......","스읍 후우","(말 없이 담배 연기만 내뿜는다)","후우우우...","쓰으읍......후......","스읍 스읍 후우...","(평화로운 표정으로 연기를 내뱉는다)","푸우우우우...","스으으으읍...후으으...","(고개를 끄덕이며) 스읍 후","......후......","쓰으읍 쓰으읍 후우..."],SHARK:["소근소근","소근소근소근","속닥속닥","소근...","뻐끔뻐끔","소근소근!","속닥...","뻐끔...","소근소근소근소근","(수줍게) 소근...","속닥속닥속닥","뻐끔뻐끔뻐끔","(눈을 동그랗게 뜨며) 소근!","소근... 소근소근..."]}},yj={profiles:{GO:{name:"Intern Ko",job:"Designer",description:"Into homeware, IKEA runs, moving house, and interiors."},LEE:{name:"Dev Lee",job:"Developer",description:"Into stocks, headlines, and world politics."},ZUCKERBERG:{name:"Manager Ko",job:"Manager",description:"Runs and monitors the smoking room."},DUGONG:{name:"Happy Dugong",job:"Unemployed",description:"A dugong who does nothing but smoke."},SHARK:{name:"Shy Shark",job:"Mascot",description:"A timid, very small shark."}},triggers:{GO:["intern ko","intern"],LEE:["dev lee","lee"],ZUCKERBERG:[],DUGONG:["dugong"],SHARK:["shark"]},news:e=>[{speaker:"LEE",text:`[BREAKING] ${e}`},{speaker:"GO",text:"Wow. The world is a lot today."}],weather:e=>[{speaker:"GO",text:e},{speaker:"LEE",text:"Oh, useful. Thanks, I'll plan around that."}],idleConversations:[[{speaker:"LEE",text:"Did you see the Nasdaq yesterday? It went straight vertical."},{speaker:"GO",text:"I don't do stocks... more importantly, do you know when the IKEA sale starts?"}],[{speaker:"GO",text:"Ugh... I want to move. Why do I own this much stuff?"},{speaker:"LEE",text:"Weren't you the minimalist? Dump it all on Facebook Marketplace."}],[{speaker:"LEE",text:"Every time I open the news I wonder what's holding this planet together."},{speaker:"GO",text:"No headlines before lunch, please. Speaking of which — what are we eating?"}],[{speaker:"LEE",text:"Why won't this run... oh. Missing semicolon."},{speaker:"GO",text:"Lee, your inside voice is extremely outside right now."}],[{speaker:"GO",text:"The air in the office feels so stale today."},{speaker:"LEE",text:"Probably time to change the filter on the purifier."}],[{speaker:"GO",text:"That restaurant you recommended? Two-hour wait yesterday."},{speaker:"LEE",text:"Never go on a weekend. You show up ten minutes before they open. On a Tuesday."},{speaker:"GO",text:"Why are you like this about food..."}],[{speaker:"LEE",text:"The team lead looked way too cheerful today. Something's up."},{speaker:"GO",text:"They were laughing on the phone with the CEO earlier."},{speaker:"LEE",text:"That's ominous. That's how new projects get born."}],[{speaker:"GO",text:"My credit card statement is a horror movie. I blame the IKEA trip."},{speaker:"LEE",text:"Cut back a little or you'll go bankrupt."},{speaker:"GO",text:"Says the person who bought a $900 graphics card last month."}],[{speaker:"LEE",text:"If I ever win the lottery I'm quitting the same day."},{speaker:"GO",text:"I wouldn't quit. I'd open a tiny café."},{speaker:"LEE",text:"A café is a small business. That's more hours than this job, not fewer."}],[{speaker:"GO",text:"Did you watch that show last night? The lead is unfairly attractive."}
501,{speaker:"LEE",text:"No time for TV. I'm up watching the market open."},{speaker:"GO",text:"There is not one romantic bone in your body."}],[{speaker:"LEE",text:"They say Gen Z hates team dinners. Is that you too, Ko?"},{speaker:"GO",text:"I mean... free food is free food. It's the karaoke afterward I can't do."},{speaker:"LEE",text:"Karaoke is the best part! You haven't lived until you've had the tambourine."},{speaker:"GO",text:"I can feel the generation gap from here."}],[{speaker:"GO",text:"Does this font look slightly broken to you, or is it just me?"},{speaker:"LEE",text:"That's font smoothing. Check your display settings."},{speaker:"GO",text:"Or I could just buy a MacBook. Pretty wins."}],[{speaker:"LEE",text:"Skip the cafeteria today. It's one of the bad days."},{speaker:"GO",text:"I brought a salad. I'm being good this week."},{speaker:"LEE",text:"Good for what? There's nothing of you to lose."},{speaker:"GO",text:"Visceral fat is invisible, Lee. That's the whole point."}],[{speaker:"GO",text:"Any weekend plans? I'm going to a gallery."},{speaker:"LEE",text:"Sleeping. I ran myself into the ground this week."},{speaker:"GO",text:"Sleeping all weekend makes it worse. Go outside and photosynthesize a little."}],[{speaker:"LEE",text:"The dev server is down again. Who touched it."},{speaker:"GO",text:"Didn't you deploy something yesterday?"}],[{speaker:"GO",text:"Quick — can you see the difference between #FF6B6B and #E55A5A?"},{speaker:"LEE",text:"...Those are the same color."},{speaker:"GO",text:"And this is why designers don't let developers pick anything."}],[{speaker:"LEE",text:"Coffee run?"},{speaker:"GO",text:"Decaf for me. I didn't sleep last night."},{speaker:"LEE",text:"Phone in bed again?"},{speaker:"GO",text:"Yes, and I couldn't stop. The algorithm kept feeding me kitchen renovations."}],[{speaker:"LEE",text:"Gold is insane right now. I should have stacked it years ago."},{speaker:"GO",text:"Can I buy gold jewelry instead of a gold bar?"},{speaker:"LEE",text:"That's not an asset, Ko. That's shopping."}],[{speaker:"GO",text:"Lunch together? There's a new poke place."},{speaker:"LEE",text:"Sixteen dollars for cold rice and fish? Let's get sandwiches."},{speaker:"GO",text:"You are relentlessly practical."}],[{speaker:"LEE",text:"Asked an AI for help and it recommended a library that doesn't exist."},{speaker:"GO",text:"So AI bluffs too."},{speaker:"LEE",text:"Confidently wrong. Just like people."}],[{speaker:"GO",text:"Do you keep any houseplants?"},{speaker:"LEE",text:"I have a cactus and it's dying."},{speaker:"GO",text:"How do you kill a cactus? Are you overwatering it?"},{speaker:"LEE",text:"I water it every day."},{speaker:"GO",text:"Lee, that's not gardening. That's drowning."}],[{speaker:"LEE",text:"Third late night this week. My body is filing a complaint."},{speaker:"GO",text:"At least stretch. Tech neck is permanent, you know."},{speaker:"LEE",text:"Too late. Already have it."}],[{speaker:"GO",text:"The cherry blossoms are out on my walk in. So pretty."},{speaker:"LEE",text:"Spring is just pollen with good PR."},{speaker:"GO",text:"Would it kill you to enjoy one nice thing?"}],[{speaker:"LEE",text:"Fell asleep watching Netflix and woke up seven episodes deep."},{speaker:"GO",text:"What were you even watching?"},{speaker:"LEE",text:"A documentary. About tech billionaires."},{speaker:"GO",text:"...Please get one hobby that isn't money."}],[{speaker:"GO",text:"I bought a diffuser. Would it be weird to put it on my desk?"},{speaker:"LEE",text:"What scent?"},{speaker:"GO",text:"Lavender."},{speaker:"LEE",text:"That's a nap scent. In an office. During work hours."},{speaker:"GO",text:"It's for your sleep quality, which you clearly need!"}],[{speaker:"LEE",text:"Anyone want to review my pull request..."},{speaker:"GO",text:"I can look! I know how to read HTML."},{speaker:"LEE",text:"I appreciate it, but it's backend code."},{speaker:"GO",text:"Backend. That's the code at the back, right?"},{speaker:"LEE",text:"...Technically you're not wrong."}],[{speaker:"GO",text:"I wanted to work from home today but there's a meeting."},{speaker:"LEE",text:"That meeting is ten minutes long and they made you commute for it."},{speaker:"GO",text:"Right? This could have been an email."}],[{speaker:"LEE",text:"Bitcoin's down again."},{speaker:"GO",text:"Are you... holding a bag right now?"},{speaker:"LEE",text:"Next question."}],[{speaker:"GO",text:"Why is your monitor brightness at maximum? Doesn't that hurt?"},{speaker:"LEE",text:"I can't see the code when it's dim."},{speaker:"GO",text:"Use dark mode. It's better for your eyes."},{speaker:"LEE",text:"Finding a bug in dark mode is just sadder."}],[{speaker:"GO",text:"I signed up for pilates after work."},{speaker:"LEE",text:"In three months you'll be donating monthly to a gym you never visit."},{speaker:"GO",text:"No! This time I'm going to be consistent!"},{speaker:"LEE",text:"You said that last year."}],[{speaker:"LEE",text:"We ship today and I have a bad feeling."},{speaker:"GO",text:"It'll be fine. It passed QA."},{speaker:"LEE",text:"Passing QA and then exploding in production is a proud tradition."}],[{speaker:"GO",text:"I saw an apartment. Fifteen minutes from the train, they s
501aid. And it's cute!"},{speaker:"LEE",text:"When a listing says 'cute' it means small. When it says fifteen minutes it means thirty."},{speaker:"GO",text:"Surely not..."},{speaker:"LEE",text:"Speaking from experience."}],[{speaker:"LEE",text:"I need to exercise but there's no time."},{speaker:"GO",text:"Isn't your commute exercise? You walk pretty far to the station."},{speaker:"LEE",text:"That's not exercise. That's a sentence."}],[{speaker:"GO",text:"I'm presenting my design today and I'm so nervous."},{speaker:"LEE",text:"Just be confident. Nobody's really looking anyway."},{speaker:"GO",text:"That is NOT comforting!"},{speaker:"LEE",text:"I meant the stakes are low, so it's freeing... that came out wrong."}],[{speaker:"LEE",text:"What's your MBTI, Ko?"},{speaker:"GO",text:"INFJ. You?"},{speaker:"LEE",text:"ESTP."},{speaker:"GO",text:"Ah. That explains the talking."},{speaker:"LEE",text:"I enjoy debate. That is different from talking a lot."}],[{speaker:"GO",text:"What do you do after work?"},{speaker:"LEE",text:"YouTube until I lose consciousness."},{speaker:"GO",text:"Same, except my feed is nothing but people redoing their kitchens."},{speaker:"LEE",text:"Mine is nothing but market crash videos. I think the algorithm is bullying me."}],[{speaker:"GO",text:"I'm heading to the corner store. Want anything?"},{speaker:"LEE",text:"Iced americano. Extra ice."},{speaker:"GO",text:"That's your third today. You have a problem."},{speaker:"LEE",text:"No caffeine, no code. Those are the rules."}],[{speaker:"LEE",text:"Another article about AI replacing developers."},{speaker:"GO",text:"Designers too. It makes logos now."},{speaker:"LEE",text:"So we're both doomed."},{speaker:"GO",text:"Want to open a food truck together?"}],[{speaker:"GO",text:"The weather is perfect. It feels criminal to be indoors."},{speaker:"LEE",text:"Going outside costs money. Staying here is technically profit."},{speaker:"GO",text:"Your brain is a spreadsheet."}],[{speaker:"LEE",text:"If Stack Overflow vanished, half of us would quit."},{speaker:"GO",text:"If Pinterest vanished, half of us would quit."},{speaker:"LEE",text:"This whole industry is held together by other people's work."}],[{speaker:"GO",text:"Your desk is a disaster. Please clean it."},{speaker:"LEE",text:"A cluttered desk is the sign of a creative mind."},{speaker:"GO",text:"Einstein got to say that. You don't."}],[{speaker:"LEE",text:"I read this spec three times and understood less each time."},{speaker:"GO",text:"Ask the PM?"},{speaker:"LEE",text:"I did. One hour later I understood even less."}],[{speaker:"GO",text:"I lost three hours to an interior design app."},{speaker:"LEE",text:"Time black hole. I do the same thing on Amazon at 2am."},{speaker:"GO",text:"Are we okay? I don't think we're okay."}],[{speaker:"LEE",text:"How is it Monday again already."},{speaker:"GO",text:"Friday takes four seconds and Monday takes a month."},{speaker:"LEE",text:"Relativity, observed in the wild."}],[{speaker:"GO",text:"Did you do your comp review yet?"},{speaker:"LEE",text:"I did. The result was so bleak I can't discuss it."},{speaker:"GO",text:"...Mine's next week. Now I'm scared."}],[{speaker:"LEE",text:"I should update my résumé."},{speaker:"GO",text:"Out of nowhere? Did something happen?"},{speaker:"LEE",text:"No. You keep it current. It's a survival instinct."}],[{speaker:"GO",text:"The meeting room is double-booked again."},{speaker:"LEE",text:"Wouldn't happen if we used a shared calendar."},{speaker:"GO",text:"The team lead still keeps it on a paper sheet by the door."},{speaker:"LEE",text:"We need to have a talk about digital transformation."}],[{speaker:"GO",text:"I made a mug at a pottery class yesterday!"},{speaker:"LEE",text:"Show me."},{speaker:"GO",text:"Ta-daaa~"},{speaker:"LEE",text:"...Is that a cup?"},{speaker:"GO",text:"It's handmade! One of a kind!"}],[{speaker:"LEE",text:"I've got a side project going."},{speaker:"GO",text:"Ooh, what is it?"},{speaker:"LEE",text:"An automated trading bot. Returns are currently negative."},{speaker:"GO",text:"Have you considered... a savings account?"}],[{speaker:"GO",text:"I want to learn to draw on an iPad."},{speaker:"LEE",text:"Procreate is supposed to be great."},{speaker:"GO",text:"Oh, do you draw?"},{speaker:"LEE",text:"No. I've only watched videos about it."},{speaker:"GO",text:"Your real talent is learning things exclusively by watching."}],[{speaker:"LEE",text:"Forty-seven comments on my pull request."},{speaker:"GO",text:"You're so popular."},{speaker:"LEE",text:"This isn't popularity. This is a disaster."}],[{speaker:"GO",text:"Shipping packages to the office is convenient but I feel judged."},{speaker:"LEE",text:"Everyone does it. My new keyboard came yesterday."},{speaker:"GO",text:"Another keyboard? How many is that now?"},{speaker:"LEE",text:"...It's a hobby."}],[{speaker:"GO",text:"I got my nails done. Aren't they cute?"},{speaker:"LEE",text:"Huh. Doesn't that make typing harder?"},{speaker:"GO",text:"You have zero aesthetic instincts. Zero."}],[{speaker:"LEE",text:"Why am I this sleepy after lunch."},{speaker:"GO",text:"Food coma. Cut down on the carbs."},{speaker:"LEE",text:"I had ramen. With rice in it."},{speaker:"GO",text:"That's not lunch, that's a carb bomb!"}],[{speaker:"GO",text:"Do you have a cologne you'd recommend?"},{speaker:"LEE",text:"I use Febreze."},{speaker:"GO",text:"I cannot have this conversation with you."}],[{speaker:"LEE",text:"One hundred days of green squares on GitHub."},{speaker:"GO",text:"Green squares?"},{speaker:"LEE",text:"You commit code every day and the little grid fills in green."},{speaker:"GO",text:"So... Minecraft, but for work?"},{speaker:"LEE",text:"...I hate that you're kind of right."}],[{speaker:"GO",text:"Can we turn the AC up? I'm dying."},{speaker:"LEE",text:"I'm already wearing a puffer vest at my desk."},{speaker:"GO",text:"How do two people experience one room this differently?"}],[{speaker:"LEE",text:"Do you know how many ways there are to center something in CSS?"},{speaker:"GO",text:"Two? Maybe three?"},{speaker:"LEE",text:"At least ten, and they're all subtly different. It's hell."},{speaker:"GO",text:"On my side I just write 'center this.'"},{speaker:"LEE",text:"That word — 'just' — is the scariest word in this industry."}],[{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"GO",text:"Oh, the dugong's back."}],[{speaker:"LEE",text:"Does that dugong do anything but smoke?"},{speaker:"DUGONG",text:"*loooong drag*... haaaaaa......"}],[{speaker:"DUGONG",text:"*inhale* ...phew"},{speaker:"DUGONG",text:"*deep drag* ...haaa"}],[{speaker:"DUGONG",text:"*haaaaa...*"},{speaker:"LEE",text:"Hey — how many packs a day is that?"},{speaker:"DUGONG",text:"*inhale* ...haa... *inhale* ...haaaa..."},{speaker:"LEE",text:"Not a talker, huh."}],[{speaker:"GO",text:"The dugong looks especially peaceful today."},{speaker:"DUGONG",text:"*deep drag* ...haaaaaa..."},{speaker:"GO",text:"That must be a good one."}],[{speaker:"DUGONG",text:"..."},{speaker:"DUGONG",text:"*inhale*"},{speaker:"DUGONG",text:"*haaaaaaaa...*"},{speaker:"DUGONG",text:"..."}],[{speaker:"LEE",text:"So what do you do for work?"},{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"LEE",text:"...Professional smoker. Got it."}],[{speaker:"GO",text:"You seem cheerful today!"},{speaker:"DUGONG",text:"*deeep inhale*... haaaaa..."},{speaker:"GO",text:"Was that smoke ring heart-shaped, or am I imagining things?"}],[{speaker:"DUGONG",text:"*inhale*"},{speaker:"LEE",text:"Hard at work as always."},{speaker:"DUGONG",text:"*haaaaa...*"},{speaker:"LEE",text:"Honestly? I envy it. All that free time."}],[{speaker:"DUGONG",text:"*deep drag* ...haa..."},{speaker:"GO",text:"Do you ever worry about anything?"},{speaker:"DUGONG",text:"..."},{speaker:"GO",text:"Nope. Must be nice."}],[{speaker:"DUGONG",text:"*pffff...*"},{speaker:"DUGONG",text:"*innnhale*"},{speaker:"DUGONG",text:"*haaaauhh...*"},{speaker:"LEE",text:"Is this meditation? I think this is meditation."}],[{speaker:"SHARK",text:"*whisper whisper*..."}],[{speaker:"SHARK",text:"*mumble mumble*"},{speaker:"GO",text:"Wait — did anyone else hear something?"}],[{speaker:"SHARK",text:"*blub blub*"},{speaker:"DUGONG",text:"*pfffff...*"}],[{speaker:"SHARK",text:"*whisper*..."},{speaker:"SHARK",text:"*whisper whisper*..."},{speaker:"LEE",text:"That shark is saying something again and I can't hear a word of it."}],[{speaker:"SHARK",text:"*mumble mumble*..."},{speaker:"GO",text:"Shark! Could you say that a little louder?"},{speaker:"SHARK",text:"*whisper*..."},{speaker:"GO",text:"...Guess not."}],[{speaker:"SHARK",text:"*blub*..."},{speaker:"SHARK",text:"*blub blub*..."}],[{speaker:"SHARK",text:"*mumble mumble*"},{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"SHARK",text:"*whisper!*"},{speaker:"DUGONG",text:"*haaa...*"}],[{speaker:"SHARK",text:"*whisper whisper whisper*"},{speaker:"LEE",text:"Do we think that was important?"},{speaker:"GO",text:"No idea. Couldn't hear it."},{speaker:"SHARK",text:"..."}],[{speaker:"GO",text:"Shark, you look a little lonely. You okay?"},{speaker:"SHARK",text:"*whisper*..."},{speaker:"GO",text:"*pat pat*"},{speaker:"SHARK",text:"*whisper whisper!*"}],[{speaker:"SHARK",text:"*blub blub blub*"},{speaker:"LEE",text:"Should a shark be out of water this long?"},{speaker:"GO",text:"It's an internet shark. Different rules."}],[{speaker:"ZUCKERBERG",text:"This is not a no-smoking area. Smoke freely."}],[{speaker:"ZUCKERBERG",text:"Smoking room traffic is above average today."},{speaker:"LEE",text:"It's Friday. That'll do it."}],[{speaker:"GO",text:"Manager Ko, you don't smoke?"},{speaker:"ZUCKERBERG",text:"I only manage. Smoking is bad for your health."},{speaker:"GO",text:"Very responsible of you."}],[{speaker:"ZUCKERBERG",text:"The bin needs emptying."},{speaker:"LEE",text:"You empty it yourself?"},{speaker:"ZUCKERBERG",text:"It is the duty of management."}],[{speaker:"ZUCKERBERG",text:"Mind your smoking manners. Butts go in the ashtray."},{speaker:"LEE",text:"Yes, yes."}],[{speaker:"ZUCKERBERG",text:"Airing the room out."}
501,{speaker:"GO",text:"Thank you, Manager Ko!"}],[{speaker:"ZUCKERBERG",text:"Online Damta operations are nominal today as well."},{speaker:"LEE",text:"Why are you filing a status report in a smoking room."}],[{speaker:"LEE",text:"Manager Ko, do you ever go home?"},{speaker:"ZUCKERBERG",text:"I stay until the smoking room closes."},{speaker:"LEE",text:"This place is open 24 hours."},{speaker:"ZUCKERBERG",text:"Correct. That is why I am always here."}],[{speaker:"GO",text:"What's everyone's goal this year?"},{speaker:"LEE",text:"Financial independence."},{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"SHARK",text:"*whisper*..."},{speaker:"GO",text:"...I think you two already have it figured out."}],[{speaker:"LEE",text:"It's packed in here. What's the occasion?"},{speaker:"GO",text:"It's Monday. Monday is hard on everybody."},{speaker:"DUGONG",text:"*deep drag* ...haaa..."},{speaker:"ZUCKERBERG",text:"The ashtray is going to fill up fast today."}],[{speaker:"GO",text:"Wow, look at that sky."},{speaker:"LEE",text:"Air quality index says unhealthy."},{speaker:"DUGONG",text:"*pfffff...*"},{speaker:"GO",text:"Dugong, can you even tell smog from your own smoke?"},{speaker:"DUGONG",text:"*inhale* ...haa"}],[{speaker:"SHARK",text:"*mumble mumble*"},{speaker:"DUGONG",text:"*inhale*"},{speaker:"GO",text:"Are those two having a conversation?"},{speaker:"LEE",text:"Apparently it's working for them."},{speaker:"SHARK",text:"*whisper whisper!*"},{speaker:"DUGONG",text:"*haaa...*"}],[{speaker:"ZUCKERBERG",text:"Running a quick satisfaction survey."},{speaker:"LEE",text:"Satisfied."},{speaker:"GO",text:"Could use better ventilation."},{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"ZUCKERBERG",text:"One satisfied, one improvement request, one currently smoking. Logged."}],[{speaker:"GO",text:"I want to go home."},{speaker:"LEE",text:"It's two in the afternoon."},{speaker:"GO",text:"My spirit clocked out hours ago."},{speaker:"DUGONG",text:"*pffffff...*"},{speaker:"LEE",text:"For the dugong, every day is a day off."}],[{speaker:"LEE",text:"Is the wifi slow in here, or is it me?"},{speaker:"GO",text:"It's slow. My videos won't load."},{speaker:"ZUCKERBERG",text:"Smoking room wifi is outside my jurisdiction."},{speaker:"LEE",text:"Cold. Very cold."}],[{speaker:"GO",text:"Isn't it cute how the shark only ever stands next to the dugong?"},{speaker:"LEE",text:"Friends, probably."},{speaker:"SHARK",text:"*whisper whisper*"},{speaker:"DUGONG",text:"*inhale* ...haa"},{speaker:"GO",text:"Look at that chemistry. Iconic duo."}],[{speaker:"ZUCKERBERG",text:"Notice: the smoking room will be cleaned tomorrow."},{speaker:"LEE",text:"So we can't come in?"},{speaker:"GO",text:"It's probably just an hour, right?"},{speaker:"DUGONG",text:"..."},{speaker:"GO",text:"The dugong's face just fell off a cliff."}],[{speaker:"LEE",text:"It's Friday. Just have to survive today."},{speaker:"GO",text:"Any big Friday night plans?"},{speaker:"LEE",text:"Bingeing a show."},{speaker:"GO",text:"Alone?"},{speaker:"LEE",text:"...Yes."},{speaker:"GO",text:"Want to come to a pop-up shop with me?"},{speaker:"LEE",text:"What is it about pop-up shops that people even—"}]],guideMessages:[{speaker:"LEE",text:`See a message you'd rather not?
502Tap Report at the bottom right
503to let us know.`},{speaker:"LEE",text:`Turn on ASMR at the bottom
504right, then press and hold the
505orange cigarette filter.
506You'll hear the exhale!`},{speaker:"LEE",text:`Press and hold the orange
507filter for two seconds
508and you'll blow a smoke ring!
509Give it a try.`},{speaker:"LEE",text:`Tap the white part of the
510cigarette a couple of times
511and the ash falls off.
512Did you know that?`},{speaker:"LEE",text:`Use the slider at the bottom
513left to change how thick your
514cigarette is. Push it all the way
515left to hide it completely!`},{speaker:"LEE",text:`Manager Ko has been working
516so hard — today the coffee's
517on me! (tapping the coffee
518icon in the top left...)`},{speaker:"LEE",text:`Try swiping the cigarette
519left or right. It cycles through
520four kinds: cigarette, cigar,
521heated stick and vape.`},{speaker:"GO",text:`Wait, did you know swiping
522sideways turns it into a cigar?
523The vape is the prettiest one
524if you ask me.`},{speaker:"SHARK",text:`um... if you slide your finger
525sideways on the cigarette,
526a different one shows up...
527it's kind of amazing...`}],reactiveResponses:{GO:["Hm? Did someone call me? I was deep in a mockup.","Need decorating advice? I have a Pinterest board for exactly this.","Moving? Get three quotes from movers. At least three.","IKEA dropped a new collection. Want to go look?","I'm... actually pretty busy right now. (stares into the middle distance)","Sorry, I'm hunting for references at the moment.","Want a color palette? Terracotta is everywhere this year.","Anyone want to hit a gallery? A new one just opened downtown.","People who keep a nice home tend to keep a nice life.","Great day today. I finally emptied my shopping cart... by checking out.","One lamp. One lamp changes the entire room, I promise you!","Figma's open but I am not using it. Don't tell anyone.","I'm deep in a cottagecore phase right now. Is that embarrassing?","I call it investing in my space. It's shopping. I know it's shopping.","I got a new candle — do you want to smell it?"],LEE:["Yes? I'm in the middle of a bug fix.","I don't give stock tips. My own portfolio is bleeding red.","With the world the way it is, maybe put a little into gold...","Is this a React question? Did you follow the rules of hooks?","God, I want a coffee.","If you want a review, open a PR. I don't do verbal code review.","This needs a refactor and there is no time. There is never time.","Before anything else: check whether you dropped a semicolon.","Engineering is a stamina sport. Nobody tells you that up front.","Seven commits today. All seven reverted.","Use TypeScript. Plain JS is a loan you pay back with tears.","You can't skip the database index and then ask me why it's slow.","Nearly took production down with that deploy. Rollback succeeded. Barely.","Let's do it after lunch. Coding on an empty stomach makes bugs.","Have you looked at the exchange rate lately? The dollar is on a tear.","Why is the side project always more fun than the actual job.","I want a third monitor. Two isn't a workstation, it's a compromise."],ZUCKERBERG:[`Smoking is bad for your health.
528Online Damta is completely harmless!
529(Quitline: 1-800-QUIT-NOW)`],DUGONG:["*inhale* ...haa","*deep drag* ...haa..","*loooong drag*... haaaaa......","*inhale* ...phew","(says nothing, exhales a slow cloud)","*haaaaaa...*","*inhale*......haaa......","*inhale* *inhale* ...haaa...","(exhales with the calmest face you have ever seen)","*pfffffff...*","*innnnhale*... haaauhh...","(nods slowly) *inhale* ...haa","......haaa......","*drag* *drag* ...haaa..."],SHARK:["*whisper whisper*","*whisper whisper whisper*","*mumble mumble*","*whisper*...","*blub blub*","*whisper whisper!*","*mumble*...","*blub*...","*whisper whisper whisper whisper*","(shyly) *whisper*...","*mumble mumble mumble*","*blub blub blub*","(eyes going wide) *whisper!*","*whisper*... *whisper whisper*..."]}},th={GO:{id:"npc_go",age:31,mbti:"INFJ",color:"text-pink-300"},LEE:{id:"npc_lee",age:33,mbti:"ESTP",color:"text-blue-300"},ZUCKERBERG:{id:"npc_zuckerberg",age:28,mbti:"ESTJ",color:"text-yellow-400"},DUGONG:{id:"npc_dugong",age:5,mbti:"ISFP",color:"text-green-300"},SHARK:{id:"npc_shark",age:2,mbti:"INFP",color:"text-cyan-300"}},wj={ko:xj,en:yj},Ts=wj[Pl()],yb=Object.fromEntries(Object.keys(th).map(e=>[e,{...th[e],...Ts.profiles[e]}])),zy=Ts.idleConversations,Gy=Ts.guideMessages,By=Ts.reactiveResponses,kj=Ts.news,bj=Ts.weather,vj="고대리",Yh="관리자 늑구";function nh(e){return e===vj||e===Yh||e===yb.ZUCKERBERG.name}function Sj(e){return e===Yh}function Ej(e){const t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=/^[a-z0-9]/i.test(e)?"\\b":"",i=/[a-z0-9]$/i.test(e)?"\\b":"";return new RegExp(`${n}${t}${i}`,"i")}const Cj=Object.keys(th).map(e=>[e,Ts.triggers[e].map(Ej)]);function Nj(e){for(const[t,n]of Cj)if(n.some(i=>i.test(e)))return t;return null}const Rj=w.memo(function({nickname:t,text:n,x:i,dx:s,startY:l,riseY:c,isSelf:u,isGuide:p,isWhisper:h,isManager:g,isBoosted:f,isLiarPlayer:b,animationDuration:y,teamColor:v}){const S=Sj(t),T=nh(t)||p||t==="",R=!!f&&!T,P=h?"text-purple-300":T?"text-yellow-400":u?"text-blue-200":"text-gray-300",j=!T&&(g||R)?{color:"#FACC15"}:!T&&b?{color:"#C4B5FD"}:!T&&v?{color:v}:void 0;let D=t;!T&&g&&(D=`🧸 ${D} 🧸`),!T&&b&&(D=`🕵️ ${D}`),R&&(D=`📢 ${D}`);const E=w.useRef(0),C=sr(),L=x_("max-w-[16em]","max-w-[20em]"),I=()=>{const H=n.split(/(https?:\/\/[^\s]+)/g);return H.length===1?m.jsx("span",{children:n}):m.jsx("span",{children:H.map((F,$)=>{if(/^https?:\/\//.test(F)){const Y=F;return m.jsx("a",{href:Y,target:"_blank",rel:"noopener noreferrer","data-no-pull-refresh":!0,className:"pointer-events-auto cursor-pointer hover:opacity-80 inline-block px-1.5 py-0.5 -my-0.5",style:{touchAction:"manipulation"},onTouchStart:ce=>{ce.stopPropagation()},onTouchEnd:ce=>{ce.stopPropagation(),E.current=Date.now(),window.open(Y,"_blank","noopener,noreferrer")},onClick:ce=>{ce.stopPropagation(),Date.now()-E.current<500&&ce.preventDefault()},children:F},$)}return F})})};return m.jsxs("div",{className:`smoke-text absolute ${R?"text-lg font-bold":S?"text-[21px] font-medium":"text-sm font-medium"} whitespace-pre-wrap ${L} break-keep break-words px-[2px] pointer-events-none flex flex-col items-center text-center ${P}
529`,style:{top:`${l}px`,left:`calc(50% + ${i}px)`,opacity:R?.95:.8,transform:"translateX(-50%)",animationDuration:y,"--dx":`${s}px`,"--rise-y":`${c}px`},children:[m.jsx("span",{className:R?"text-sm opacity-90":S?"text-lg opacity-70":"text-xs opacity-70",style:j,children:u?C("chat.me",{name:D}):D}),I()]})}),_j=w.memo(function({chatParticles:t,hasStarted:n,isAdminViewMode:i,roomNumber:s,isMobile:l,isFocused:c,liarPlayerIds:u}){const p=l&&c;return m.jsx("div",{className:"fixed left-1/2 transform -translate-x-1/2 pointer-events-none z-[35] w-full max-w-md transition-[top] duration-300 ease-out",style:{top:p?"calc(100% - 150px)":"300px",height:"400px"},children:(n||i)&&s!==5&&t.map(h=>m.jsx(Rj,{nickname:h.nickname,text:h.text,x:h.x,dx:h.dx,startY:h.startY,riseY:h.riseY,isSelf:h.isSelf,isGuide:h.isGuide,isWhisper:h.isWhisper,isManager:h.manager,isBoosted:h.boost,isLiarPlayer:!!h.senderId&&u.includes(h.senderId),teamColor:h.teamColor,animationDuration:`${h.duration/1e3}s`},h.id))})}),Tj="ca-pub-6962006868335508",Ij=["damta.world","www.damta.world"],Lj=typeof window<"u"&&Ij.includes(window.location.hostname),vp="damta:noads";function Aj(){if(typeof window>"u")return!1;try{const e=new URLSearchParams(window.location.search).get("noads");return e==="1"&&localStorage.setItem(vp,"1"),e==="0"&&localStorage.removeItem(vp),localStorage.getItem(vp)==="1"}catch(e){return console.warn("[AdSlot] 자기제외 플래그를 읽지 못했습니다 — 평소대로 광고를 요청합니다",e),!1}}const Oj=Aj();function Pj({slot:e,format:t="auto",fullWidthResponsive:n=!0,width:i,height:s,className:l,style:c}){const u=w.useRef(!1),p=Lj&&!Oj;w.useEffect(()=>{if(p&&!u.current){u.current=!0;try{(window.adsbygoogle=window.adsbygoogle||[]).push({})}catch(b){console.warn("[AdSlot] push failed",b)}}},[p]);const h=i!=null&&s!=null;if(!p)return null;const g=h?{display:"inline-block",width:`${i}px`,height:`${s}px`,...c}:{display:"block",...c},f=h?{}:{"data-ad-format":t,"data-full-width-responsive":n?"true":"false"};return m.jsx("ins",{className:`adsbygoogle ${l??""}`.trim(),style:g,"data-ad-client":Tj,"data-ad-slot":e,...f})}const jj=34,Mj=8,Dj=4,Fj=1e3;function zj(){const[e,t]=w.useState(0);return w.useEffect(()=>{const n=document.getElementById("root");if(!n)return;const i=()=>{const c=window.innerWidth,u=[34,Math.round(c/2),Math.max(34,c-34)];let p=0;for(const g of u){const f=document.elementFromPoint(g,jj);if(!f||f===document.documentElement||f===document.body||n.contains(f))continue;const b=f.getBoundingClientRect();b.top>Dj||(p=Math.max(p,Math.ceil(b.bottom)))}const h=p>0?p+Mj:0;t(g=>Math.abs(h-g)<2?g:h)};i();const s=new MutationObserver(i);s.observe(document.body,{childList:!0});const l=window.setInterval(i,Fj);return window.addEventListener("resize",i),()=>{s.disconnect(),window.clearInterval(l),window.removeEventListener("resize",i)}},[]),e}const wb="damta:ad:served",Gj=6e4,Bj=8;let rh={n:0,last:0};function kb(){try{const e=sessionStorage.getItem(wb);if(!e)return rh;const t=JSON.parse(e);return{n:typeof t.n=="number"?t.n:0,last:typeof t.last=="number"?t.last:0}}catch(e){return console.warn("[adFrequency] sessionStorage 읽기 실패 — 인메모리 상태로 대체",e),rh}}function Wj(e){rh=e;try{sessionStorage.setItem(wb,JSON.stringify(e))}catch(t){console.warn("[adFrequency] sessionStorage 쓰기 실패 — 인메모리 상태만 갱신",t)}}function Hj(){const{n:e,last:t}=kb();return!(e>=Bj||t>0&&Date.now()-t<Gj)}function $j(){const{n:e}=kb();Wj({n:e+1,last:Date.now()})}const Ou=120,Gl=80,Uj=Ou+Gl,Vj=24,Kj=Uj+Vj,Yj="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAFMklEQVR4Ae2dv2/UShDHv77
529oSS9VrqYgTgkFj/cHIB0dBdKDvwB6KHgtKXIUNDQ8SqoHBTWkgu4OBSklgSKUZyjSJhQJSRAZduM9Ek6xvbu298fdfKSRI9mXs2c8Mzu79hzAMAzDMAwziyQIGAIu40QW1VaSFnxkR0imth/U3xviIodgqpEKF3JPyEDIthBqUAbqf18Gc4JQSFfIipBRwwovk5H6zhSzirj4nrorybO8lOeCWSEgxU/KeyE3MK1QHt9DVPxZHpFiWqA8xj+OQPGTsoLYUXf9KBKFnyWjaL2B8iFfLIqeHm+gPOT8H4liTUSG0S5CRror5aOJmBRrIvLaUjRIY1MR6sQGaCFm0qVLoIUFo8901tbQEpmQq0m+rU0jBmhT+ZJvm5ugxUXt45OvXzF/7hxaJENDRuigJm0r/xihUCN2dtAyKfKaJkVNahlAJaWXaHmo1jE1gBtS5EVbrcRc1wNWMNuzi/LaH6MG1gagXPn3wNymGnqwMoCKfX0ESuI+ZMkawSoS2HrAAA5JPn82Ot5BEj4Lq3xgbAAVelIwk6SwmLIwMkDooScAjJc8TT2gVsafEYx0pG0AyleLolgxSvzWDXLFr6d7sIkHeLv7TZNw4r9w084FWgZQFk3B6KLtBboewAWXOVpeUGkANfL5B4wpPZ26QMcDbsMzpjHduHBrj8rIoWOAW/CNn8q2CSp1V2oAVVSkYGxJqwqzKg/ogalLr2xnlQE4+danVIdT6QEBJWGJXQiigJTf+fIFEdMtywNlHsAvMjSHlQFSME1hZYC/wDRFWrSjzADhPAdpWgmHlzMKb+YoQlAA08utEYcHxE9atKP2o4lMPdgAnonDAIazoTEVblEYYFaTMOOAMgMENaMVOYUxdDo9ILwVtKxoR5kBNhAQJlPMAeaMwhMqM0AGpikKb+ZoPCBysqIdbAA3mHtAkn8ouudBQqwZylqmVY2CwvECXcWGNwJ6W7azygCrCIRAX1XV4VXZztI35dVi8nswdfg7KYkkla0KKM/g+n0CmNNkQsFLZQfoVMLPwNjyvOoAHQ+QK2PbYGxYqmroUekBST4UHSIwZPsa2UHFtI2NQ1abamkzbjUZRNOkw/v3af/1a9rd3f0le5ub9P3OHTpaWAjiHJX00CTkueXkj/PnaW99/TfFT4o0xJE4zrPipWiPHLUbNimLDuABGWb219e1mjbJWdM/r13z/WzQzaRi/D9Gez1AldNDeOD78rJ2xyx53MHTp/DIqq7yJUYty8hTYfZta8s42c5fvOjrMfUlk+RrtCKmKroncMjRlStWI50f16/DAw9MRz42S5J9OFysEUkVNngYnsqqtw9DjA2g6oKbYCa5CgusFuVVKPoXDph79w42dD5+hEMe2BZdRkl4EsrniW6hZfbfvDnOBbrIIej8hQtwxJPEdc+4U8gvbn3R5o+HD1s9vgby2vvwCeUvI4/ari4PlpdLq+CxHDx65KraHVEo71C4MsLh3bu09+nT2dMQW1t0KOaDYlN+rRxwGnLRwlhwJCpdmQ/kOJ+6XSRiDXhubQ1zL14c/+2ADA02724U4vb1/qH8xeT/IlGoiTyjmF7bEifbj0i5VRJnxzBylJxblBFNQ8eASL1BhtHpeVNUecOrCBQ/nIq7vghxcTeEbASq+B5mBcoX+kPwiNlS/CQqNMkcMXKo9Ex9J3cDOA2d/KDzsGGFb6v/GdwPOjc2FdEGKjSMOzfKrbxjF1F8544XgeUsZaa2Gwm/bMIwDMMwDBMYPwGYNAZrjVt9vQAAAABJRU5ErkJggg==",Xj="/assets/promo-icon-b-CoP7BGsm.png",bb="/assets/promo-banner-bottom-CE0X61Rj.png",qj="/assets/promo-roulette-WH_-475k.gif",Zj="/assets/promo-roulette-poster-CGqykKTd.jpg",Jj="https://s.couponwallet.co.kr/bdaa51",vb="https://s.couponwallet.co.kr/52f531";function Xh(e){window.open(e,"_blank","noopener,noreferrer")}const Qj=Date.parse("2026-08-19T23:59:59+09:00");function to(){return ro()?!1:Date.now()<=Qj}const eM=Date.parse("2026-07-20T00:00:00+09:00"),tM=15;function nM(){const e=Math.floor((Date.now()-eM)/864e5);return Math.floor(Math.max(0,e)/tM)%2===0?"A":"B"}function rM({variant:e,onClick:t}){return to()?m.jsxs("button",{onClick:n=>{n.stopPropagation(),t()},className:"fixed top-4 z-50 flex h-9 items-center gap-1 transition-opacity hover:opacity-80",style:{left:"104px"},title:"이벤트 보기",children:[m.jsx("img",{src:e==="A"?Yj:Xj,alt:"광고 이벤트",className:"h-6 w-6 rounded-full",draggable:!1}),m.jsx("span",{className:"text-[9px] font-bold leading-none text-gray-500",children:"AD"})]}):null}function oM({onClick:e}){return to()?m.jsx("button",{onClick:t=>{t.stopPropagation(),e(),Xh(vb)},className:"w-full max-w-[300px] overflow-hidden rounded-lg transition-opacity hover:opacity-90",children:m.jsx("img",{src:bb,alt:"[안내] 담타 끝! 편의점 쿠폰 받아가세요 — 5,000원 받기 (휴대폰쿠폰지갑 유료서비스 광고)",className:"block w-full",draggable:!1})}):null}let Sp=!1;function iM({onClick:e,onToggle:t}){if(!to())return null;const[n,i]=w.useState(!1),[s,l]=w.useState(()=>Sp);w.useEffect(()=>{Sp&&t?.(!1),Sp=!0;const u=requestAnimationFrame(()=>i(!0));return()=>cancelAnimationFrame(u)},[]);const c=n&&!s;return m.jsxs(m.Fragment,{children:[s&&m.jsx("button",{onClick:()=>{l(!1),t?.(!0)},"aria-label":"광고 배너 펼치기",className:"pointer-events-auto fixed left-1/2 top-0 z-[60] flex h-5 w-14 -translate-x-1/2 items-center justify-center rounded-b-lg bg-white text-gray-500 shadow-[0_3px_8px_rgba(0,0,0,0.5)] transition-colors hover:text-gray-800",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})}),m.jsx("div",{className:"pointer-events-auto fixed inset-x-0 top-0 z-[60]",style:{transform:c?"translateY(0)":"translateY(-115%)",transition:"transform 1.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:m.jsx("div",{className:"bg-black px-4 pb-3",children:m.jsxs("div",{className:"relative mx-auto w-full max-w-sm",children:[m.jsx("button",{onClick:u=>{u.stopPropagation(),e(),Xh(vb)},className:"block w-full overflow-hidden rounded-b-xl border-x-2 border-b-2 border-white shadow-2xl transition-opacity hover:opacity-90",children:m.jsx("img",{src:bb,alt:"[안내] 담타 끝! 편의점 쿠폰 받아가세요 — 5,000원 받기 (휴대폰쿠폰지갑 유료서비스 광고)",className:"block w-full",draggable:!1})}),m.jsx("button",{onClick:u=>{u.stopPropagation(),l(!0),t?.(!1)},"aria-label":"광고 배너 접기",className:"absolute left-1/2 top-full -mt-0.5 flex h-5 w-14 -translate-x-1/2 items-center justify-center rounded-b-lg bg-white text-gray-500 shadow-[0_3px_8px_rgba(0,0,0,0.5)] transition-colors hover:text-gray-800",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]})})})]})}function sM({onClose:e,onCtaClick:t}){if(!to())return null;const[n,i]=w.useState(!1);return m.jsx("div",{className:"fixed inset-0 z-[120] flex items-center justify-center bg-black/70 p-5",onClick:s=>{s.stopPropagation(),e()},children:m.jsxs("div",{className:"w-full max-w-sm rounded-2xl bg-[#1b2b47] p-4 shadow-2xl",onClick:s=>s.stopPropagation(),children:[m.jsxs("div",{className:"mb-2 flex items-start justify-between",children:[m.jsx("span",{className:"rounded border border-white/40 px-1.5 py-0.5 text-[10px] font-bold text-white/80",children:"광고예요"}),m.jsx("button",{onClick:e,"aria-label":"닫기",className:"-mr-1 -mt-1 flex h-8 w-8 items-center justify-center text-white/70 transition-colors hover:text-white",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:m.jsx("path",{d:"M6 6l12 12M18 6L6 18"})})})]}),m.jsxs("p",{className:"mb-3 break-keep text-[15px] font-bold leading-snug text-white",children:["이선임님~~ 이거 ê
529½¤ 쏠쏠해요.",m.jsx("br",{}),"가입하고 보상 받아보셔요!"]}),m.jsxs("button",{onClick:()=>{t(),Xh(Jj)},className:"relative block w-full overflow-hidden rounded-xl bg-[#141f36]",style:{aspectRatio:"1130 / 900"},children:[!n&&m.jsx("img",{src:Zj,alt:"","aria-hidden":!0,className:"absolute inset-0 block w-full",draggable:!1}),m.jsx("img",{src:qj,alt:"룰렛 돌리고 5,000원 편의점 쿠폰 받기",onLoad:()=>i(!0),className:`relative block w-full transition-opacity duration-300 ${n?"opacity-100":"opacity-0"}`,draggable:!1})]})]})})}var Nl={exports:{}},aM=Nl.exports,Wy;function lM(){return Wy||(Wy=1,(function(e,t){(function(n,i){i(t)})(aM,(function(n){function i(D,E){D.terminate=function(){const C=()=>{};this.onerror=C,this.onmessage=C,this.onopen=C;const L=new Date,I=Math.random().toString().substring(2,8),H=this.onclose;this.onclose=F=>{const $=new Date().getTime()-L.getTime();E(`Discarded socket (#${I})  closed after ${$}ms, with code/reason: ${F.code}/${F.reason}`)},this.close(),H?.call(D,{code:4001,reason:`Quick discarding socket (#${I}) without waiting for the shutdown sequence.`,wasClean:!1})}}const s={LF:`
530`,NULL:"\0"};class l{get body(){return!this._body&&this.isBinaryBody&&(this._body=new TextDecoder().decode(this._binaryBody)),this._body||""}get binaryBody(){return!this._binaryBody&&!this.isBinaryBody&&(this._binaryBody=new TextEncoder().encode(this._body)),this._binaryBody}constructor(E){const{command:C,headers:L,body:I,binaryBody:H,escapeHeaderValues:F,skipContentLengthHeader:$}=E;this.command=C,this.headers=Object.assign({},L||{}),H?(this._binaryBody=H,this.isBinaryBody=!0):(this._body=I||"",this.isBinaryBody=!1),this.escapeHeaderValues=F||!1,this.skipContentLengthHeader=$||!1}static fromRawFrame(E,C){const L={},I=H=>H.replace(/^\s+|\s+$/g,"");for(const H of E.headers.reverse()){H.indexOf(":");const F=I(H[0]);let $=I(H[1]);C&&E.command!=="CONNECT"&&E.command!=="CONNECTED"&&($=l.hdrValueUnEscape($)),L[F]=$}return new l({command:E.command,headers:L,binaryBody:E.binaryBody,escapeHeaderValues:C})}toString(){return this.serializeCmdAndHeaders()}serialize(){const E=this.serializeCmdAndHeaders();return this.isBinaryBody?l.toUnit8Array(E,this._binaryBody).buffer:E+this._body+s.NULL}serializeCmdAndHeaders(){const E=[this.command];this.skipContentLengthHeader&&delete this.headers["content-length"];for(const C of Object.keys(this.headers||{})){const L=this.headers[C];this.escapeHeaderValues&&this.command!=="CONNECT"&&this.command!=="CONNECTED"?E.push(`${C}:${l.hdrValueEscape(`${L}`)}`):E.push(`${C}:${L}`)}return(this.isBinaryBody||!this.isBodyEmpty()&&!this.skipContentLengthHeader)&&E.push(`content-length:${this.bodyLength()}`),E.join(s.LF)+s.LF+s.LF}isBodyEmpty(){return this.bodyLength()===0}bodyLength(){const E=this.binaryBody;return E?E.length:0}static sizeOfUTF8(E){return E?new TextEncoder().encode(E).length:0}static toUnit8Array(E,C){const L=new TextEncoder().encode(E),I=new Uint8Array([0]),H=new Uint8Array(L.length+C.length+I.length);return H.set(L),H.set(C,L.length),H.set(I,L.length+C.length),H}static marshall(E){return new l(E).serialize()}static hdrValueEscape(E){return E.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/:/g,"\\c")}static hdrValueUnEscape(E){return E.replace(/\\r/g,"\r").replace(/\\n
530/g,`
531`).replace(/\\c/g,":").replace(/\\\\/g,"\\")}}const c=0,u=10,p=13,h=58;class g{constructor(E,C){this.onFrame=E,this.onIncomingPing=C,this._encoder=new TextEncoder,this._decoder=new TextDecoder,this._token=[],this._initState()}parseChunk(E,C=!1){let L;if(typeof E=="string"?L=this._encoder.encode(E):L=new Uint8Array(E),C&&L[L.length-1]!==0){const I=new Uint8Array(L.length+1);I.set(L,0),I[L.length]=0,L=I}for(let I=0;I<L.length;I++){const H=L[I];this._onByte(H)}}_collectFrame(E){if(E!==c&&E!==p){if(E===u){this.onIncomingPing();return}this._onByte=this._collectCommand,this._reinjectByte(E)}}_collectCommand(E){if(E!==p){if(E===u){this._results.command=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaders;return}this._consumeByte(E)}}_collectHeaders(E){if(E!==p){if(E===u){this._setupCollectBody();return}this._onByte=this._collectHeaderKey,this._reinjectByte(E)}}_reinjectByte(E){this._onByte(E)}_collectHeaderKey(E){if(E===h){this._headerKey=this._consumeTokenAsUTF8(),this._onByte=this._collectHeaderValue;return}this._consumeByte(E)}_collectHeaderValue(E){if(E!==p){if(E===u){this._results.headers.push([this._headerKey,this._consumeTokenAsUTF8()]),this._headerKey=void 0,this._onByte=this._collectHeaders;return}this._consumeByte(E)}}_setupCollectBody(){const E=this._results.headers.filter(C=>C[0]==="content-length")[0];E?(this._bodyBytesRemaining=parseInt(E[1],10),this._onByte=this._collectBodyFixedSize):this._onByte=this._collectBodyNullTerminated}_collectBodyNullTerminated(E){if(E===c){this._retrievedBody();return}this._consumeByte(E)}_collectBodyFixedSize(E){if(this._bodyBytesRemaining--===0){this._retrievedBody();return}this._consumeByte(E)}_retrievedBody(){this._results.binaryBody=this._consumeTokenAsRaw();try{this.onFrame(this._results)}catch(E){console.log("Ignoring an exception thrown by a frame handler. Original exception: ",E)}this._initState()}_consumeByte(E){this._token.push(E)}_consumeTokenAsUTF8(){return this._decoder.decode(this._consumeTokenAsRaw())}_consumeTokenAsRaw(){const E=new Uint8Array(this._token);return this._token=[],E}_initState(){this._results={command:void 0,headers:[],binaryBody:void 0},this._token=[],this._headerKey=void 0,this._onByte=this._collectFrame}}n.StompSocketState=void 0,(function(D){D[D.CONNECTING=0]="CONNECTING",D[D.OPEN=1]="OPEN",D[D.CLOSING=2]="CLOSING",D[D.CLOSED=3]="CLOSED"})(n.StompSocketState||(n.StompSocketState={})),n.ActivationState=void 0,(function(D){D[D.ACTIVE=0]="ACTIVE",D[D.DEACTIVATING=1]="DEACTIVATING",D[D.INACTIVE=2]="INACTIVE"})(n.ActivationState||(n.ActivationState={})),n.ReconnectionTimeMode=void 0,(function(D){D[D.LINEAR=0]="LINEAR",D[D.EXPONENTIAL=1]="EXPONENTIAL"})(n.ReconnectionTimeMode||(n.ReconnectionTimeMode={})),n.TickerStrategy=void 0,(function(D){D.Interval="interval",D.Worker="worker"})(n.TickerStrategy||(n.TickerStrategy={}));class f{constructor(E,C=n.TickerStrategy.Interval,L){this._interval=E,this._strategy=C,this._debug=L,this._workerScript=`
532    var startTime = Date.now();
533    setInterval(function() {
534        self.postMessage(Date.now() - startTime);
535    }, ${this._interval});
536  `}start(E){this.stop(),this.shouldUseWorker()?this.runWorker(E):this.runInterval(E)}stop(){this.disposeWorker(),this.disposeInterval()}shouldUseWorker(){return typeof Worker<"u"&&this._strategy===n.TickerStrategy.Worker}runWorker(E){this._debug("Using runWorker for outgoing pings"),this._worker||(this._worker=new Worker(URL.createObjectURL(new Blob([this._workerScript],{type:"text/javascript"}))),this._worker.onmessage=C=>E(C.data))}runInterval(E){if(this._debug("Using runInterval for outgoing pings"),!this._timer){const C=Date.now();this._timer=setInterval(()=>{E(Date.now()-C)},this._interval)}}disposeWorker(){this._worker&&(this._worker.terminate(),delete this._worker,this._debug("Outgoing ping disposeWorker"))}disposeInterval(){this._timer&&(clearInterval(this._timer),delete this._timer,this._debug("Outgoing ping disposeInterval"))}}class b{constructor(E){this.versions=E}supportedVersions(){return this.versions.join(",")}protocolVersions(){return this.versions.map(E=>`v${E.replace(".","")}.stomp`)}}b.V1_0="1.0",b.V1_1="1.1",b.V1_2="1.2",b.default=new b([b.V1_2,b.V1_1,b.V1_0]);class y{get connectedVersion(){return this._connectedVersion}get connected(){return this._connected}constructor(E,C,L){this._client=E,this._webSocket=C,this._connected=!1,this._serverFrameHandlers={CONNECTED:I=>{this.debug(`connected to server ${I.headers.server}`),this._connected=!0,this._connectedVersion=I.headers.version,this._connectedVersion===b.V1_2&&(this._escapeHeaderValues=!0),this._setupHeartbeat(I.headers),this.onConnect(I)},MESSAGE:I=>{const H=I.headers.subscription,F=this._subscriptions[H]||this.onUnhandledMessage,$=I,Y=this,ce=this._connectedVersion===b.V1_2?$.headers.ack:$.headers["message-id"];$.ack=(ae={})=>Y.ack(ce,H,ae),$.nack=(ae={})=>Y.nack(ce,H,ae),F($)},RECEIPT:I=>{const H=this._receiptWatchers[I.headers["receipt-id"]];H?(H(I),delete this._receiptWatchers[I.headers["receipt-id"]]):this.onUnhandledReceipt(I
536)},ERROR:I=>{this.onStompError(I)}},this._counter=0,this._subscriptions={},this._receiptWatchers={},this._partialData="",this._escapeHeaderValues=!1,this._lastServerActivityTS=Date.now(),this.debug=L.debug,this.stompVersions=L.stompVersions,this.connectHeaders=L.connectHeaders,this.disconnectHeaders=L.disconnectHeaders,this.heartbeatIncoming=L.heartbeatIncoming,this.heartbeatToleranceMultiplier=L.heartbeatGracePeriods,this.heartbeatOutgoing=L.heartbeatOutgoing,this.splitLargeFrames=L.splitLargeFrames,this.maxWebSocketChunkSize=L.maxWebSocketChunkSize,this.forceBinaryWSFrames=L.forceBinaryWSFrames,this.logRawCommunication=L.logRawCommunication,this.appendMissingNULLonIncoming=L.appendMissingNULLonIncoming,this.discardWebsocketOnCommFailure=L.discardWebsocketOnCommFailure,this.onConnect=L.onConnect,this.onDisconnect=L.onDisconnect,this.onStompError=L.onStompError,this.onWebSocketClose=L.onWebSocketClose,this.onWebSocketError=L.onWebSocketError,this.onUnhandledMessage=L.onUnhandledMessage,this.onUnhandledReceipt=L.onUnhandledReceipt,this.onUnhandledFrame=L.onUnhandledFrame,this.onHeartbeatReceived=L.onHeartbeatReceived,this.onHeartbeatLost=L.onHeartbeatLost}start(){const E=new g(L=>{const I=l.fromRawFrame(L,this._escapeHeaderValues);this.logRawCommunication||this.debug(`<<< ${I}`),(this._serverFrameHandlers[I.command]||this.onUnhandledFrame)(I)},()=>{this.debug("<<< PONG"),this.onHeartbeatReceived()});this._webSocket.onmessage=L=>{if(this.debug("Received data"),this._lastServerActivityTS=Date.now(),this.logRawCommunication){const I=L.data instanceof ArrayBuffer?new TextDecoder().decode(L.data):L.data;this.debug(`<<< ${I}`)}E.parseChunk(L.data,this.appendMissingNULLonIncoming)},this._webSocket.onclose=L=>{this.debug(`Connection closed to ${this._webSocket.url}`),this._cleanUp(),this.onWebSocketClose(L)},this._webSocket.onerror=L=>{this.onWebSocketError(L)};const C=()=>{const L=Object.assign({},this.connectHeaders);this.debug("Web Socket Opened..."),L["accept-version"]=this.stompVersions.supportedVersions(),L["heart-beat"]=[this.heartbeatOutgoing,this.heartbeatIncoming].join(","),this._transmit({command:"CONNECT",headers:L})};this._webSocket.readyState===n.StompSocketState.OPEN?C():this._webSocket.onopen=C}_setupHeartbeat(E){if(E.version!==b.V1_1&&E.version!==b.V1_2||!E["heart-beat"])return;const[C,L]=E["heart-beat"].split(",").map(I=>parseInt(I,10));if(this.heartbeatOutgoing!==0&&L!==0){const I=Math.max(this.heartbeatOutgoing,L);this.debug(`send PING every ${I}ms`),this._pinger=new f(I,this._client.heartbeatStrategy,this.debug),this._pinger.start(()=>{this._webSocket.readyState===n.StompSocketState.OPEN&&(this._webSocket.send(s.LF),this.debug(">>> PING"))})}if(this.heartbeatIncoming!==0&&C!==0){const I=Math.max(this.heartbeatIncoming,C);this.debug(`check PONG every ${I}ms`),this._ponger=setInterval(()=>{const H=Date.now()-this._lastServerActivityTS;H>I*this.heartbeatToleranceMultiplier&&(this.debug(`did not receive server activity for the last ${H}ms`),this.onHeartbeatLost(),this._closeOrDiscardWebsocket())},I)}}_closeOrDiscardWebsocket(){this.discardWebsocketOnCommFailure?(this.debug("Discarding websocket, the underlying socket may linger for a while"),this.discardWebsocket()):(this.debug("Issuing close on the websocket"),this._closeWebsocket())}forceDisconnect(){this._webSocket&&(this._webSocket.readyState===n.StompSocketState.CONNECTING||this._webSocket.readyState===n.StompSocketState.OPEN)&&this._closeOrDiscardWebsocket()}_closeWebsocket(){this._webSocket.onmessage=()=>{},this._webSocket.close()}discardWebsocket(){typeof this._webSocket.terminate!="function"&&i(this._webSocket,E=>this.debug(E)),this._webSocket.terminate()}_transmit(E){const{command:C,headers:L,body:I,binaryBody:H,skipContentLengthHeader:F}=E,$=new l({command:C,headers:L,body:I,binaryBody:H,escapeHeaderValues:this._escapeHeaderValues,skipContentLengthHeader:F});let Y=$.serialize();if(this.logRawCommunication?this.debug(`>>> ${Y}`):this.debug(`>>> ${$}`),this.forceBinaryWSFrames&&typeof Y=="string"&&(Y=new TextEncoder().encode(Y)),typeof Y!="string"||!this.splitLargeFrames)this._webSocket.send(Y);else{let ce=Y;for(;ce.length>0;){const ae=ce.substring(0,this.maxWebSocketChunkSize);ce=ce.substring(this.maxWebSocketChunkSize),this._webSocket.send(ae),this.debug(`chunk sent = ${ae.length}, remaining = ${ce.length}`)}}}dispose(){if(this.connected)try{const E=Object.assign({},this.disconnectHeaders);E.receipt||(E.receipt=`close-${this._counter++}`),this.watchForReceipt(E.receipt,C=>{this._closeWebsocket(),this._cleanUp(),this.onDisconnect(C)}),this._transmit({command:"DISCONNECT",headers:E})}catch(E){this.debug(`Ignoring error during disconnect ${E}`)}else(this._webSocket.readyState===n.StompSocketState.CONNECTING||this._webSocket.readyState===n.StompSocketState.OPEN)&&this._closeWebsocket()}_cleanUp(){this._connected=!1,this._pinger&&(this._pinger.stop(),this._pinger=void 0),this._ponger&&(clearInterval(this._ponger),this._ponger=void 0)}publish(E){const{destination:C,headers:L,body:I,binaryBody:H,skipContentLengthHeader:F}=E,$=Object.assign({destination:C}
536,L);this._transmit({command:"SEND",headers:$,body:I,binaryBody:H,skipContentLengthHeader:F})}watchForReceipt(E,C){this._receiptWatchers[E]=C}subscribe(E,C,L={}){L=Object.assign({},L),L.id||(L.id=`sub-${this._counter++}`),L.destination=E,this._subscriptions[L.id]=C,this._transmit({command:"SUBSCRIBE",headers:L});const I=this;return{id:L.id,unsubscribe(H){return I.unsubscribe(L.id,H)}}}unsubscribe(E,C={}){C=Object.assign({},C),delete this._subscriptions[E],C.id=E,this._transmit({command:"UNSUBSCRIBE",headers:C})}begin(E){const C=E||`tx-${this._counter++}`;this._transmit({command:"BEGIN",headers:{transaction:C}});const L=this;return{id:C,commit(){L.commit(C)},abort(){L.abort(C)}}}commit(E){this._transmit({command:"COMMIT",headers:{transaction:E}})}abort(E){this._transmit({command:"ABORT",headers:{transaction:E}})}ack(E,C,L={}){L=Object.assign({},L),this._connectedVersion===b.V1_2?L.id=E:L["message-id"]=E,L.subscription=C,this._transmit({command:"ACK",headers:L})}nack(E,C,L={}){return L=Object.assign({},L),this._connectedVersion===b.V1_2?L.id=E:L["message-id"]=E,L.subscription=C,this._transmit({command:"NACK",headers:L})}}class v{get webSocket(){return this._stompHandler?._webSocket}get disconnectHeaders(){return this._disconnectHeaders}set disconnectHeaders(E){this._disconnectHeaders=E,this._stompHandler&&(this._stompHandler.disconnectHeaders=this._disconnectHeaders)}get connected(){return!!this._stompHandler&&this._stompHandler.connected}get connectedVersion(){return this._stompHandler?this._stompHandler.connectedVersion:void 0}get active(){return this.state===n.ActivationState.ACTIVE}_changeState(E){this.state=E,this.onChangeState(E)}constructor(E={}){this.stompVersions=b.default,this.connectionTimeout=0,this.reconnectDelay=5e3,this._nextReconnectDelay=0,this.maxReconnectDelay=900*1e3,this.reconnectTimeMode=n.ReconnectionTimeMode.LINEAR,this.heartbeatIncoming=1e4,this.heartbeatToleranceMultiplier=2,this.heartbeatOutgoing=1e4,this.heartbeatStrategy=n.TickerStrategy.Interval,this.splitLargeFrames=!1,this.maxWebSocketChunkSize=8*1024,this.forceBinaryWSFrames=!1,this.appendMissingNULLonIncoming=!1,this.discardWebsocketOnCommFailure=!1,this.state=n.ActivationState.INACTIVE;const C=()=>{};this.debug=C,this.beforeConnect=C,this.onConnect=C,this.onDisconnect=C,this.onUnhandledMessage=C,this.onUnhandledReceipt=C,this.onUnhandledFrame=C,this.onHeartbeatReceived=C,this.onHeartbeatLost=C,this.onStompError=C,this.onWebSocketClose=C,this.onWebSocketError=C,this.logRawCommunication=!1,this.onChangeState=C,this.connectHeaders={},this._disconnectHeaders={},this.configure(E)}configure(E){Object.assign(this,E),this.maxReconnectDelay>0&&this.maxReconnectDelay<this.reconnectDelay&&(this.debug(`Warning: maxReconnectDelay (${this.maxReconnectDelay}ms) is less than reconnectDelay (${this.reconnectDelay}ms). Using reconnectDelay as the maxReconnectDelay delay.`),this.maxReconnectDelay=this.reconnectDelay)}activate(){const E=()=>{if(this.active){this.debug("Already ACTIVE, ignoring request to activate");return}this._changeState(n.ActivationState.ACTIVE),this._nextReconnectDelay=this.reconnectDelay,this._connect()};this.state===n.ActivationState.DEACTIVATING?(this.debug("Waiting for deactivation to finish before activating"),this.deactivate().then(()=>{E()})):E()}async _connect(){if(await this.beforeConnect(this),this._stompHandler){this.debug("There is already a stompHandler, skipping the call to connect");return}if(!this.active){this.debug("Client has been marked inactive, will not attempt to connect");return}this.connectionTimeout>0&&(this._connectionWatcher&&clearTimeout(this._connectionWatcher),this._connectionWatcher=setTimeout(()=>{this.connected||(this.debug(`Connection not established in ${this.connectionTimeout}ms, closing socket`),this.forceDisconnect())},this.connectionTimeout)),this.debug("Opening Web Socket...");const E=this._createWebSocket();this._stompHandler=new y(this,E,{debug:this.debug,stompVersions:this.stompVersions,connectHeaders:this.connectHeaders,disconnectHeaders:this._disconnectHeaders,heartbeatIncoming:this.heartbeatIncoming,heartbeatGracePeriods:this.heartbeatToleranceMultiplier,heartbeatOutgoing:this.heartbeatOutgoing,heartbeatStrategy:this.heartbeatStrategy,splitLargeFrames:this.splitLargeFrames,maxWebSocketChunkSize:this.maxWebSocketChunkSize,forceBinaryWSFrames:this.forceBinaryWSFrames,logRawCommunication:this.logRawCommunication,appendMissingNULLonIncoming:this.appendMissingNULLonIncoming,discardWebsocketOnCommFailure:this.discardWebsocketOnCommFailure,onConnect:C=>{if(this._connectionWatcher&&(clearTimeout(this._connectionWatcher),this._connectionWatcher=void 0),this._nextReconnectDelay=this.reconnectDelay,!this.active){this.debug("STOMP got connected while deactivate was issued, will disconnect now"),this._disposeStompHandler();return}this.onConnect(C)},onDisconnect:C=>{this.onDisconnect(C)},onStompError:C=>{this.onStompError(C)},onWebSocketClose:C=>{this._stompHandler=void 0,this.state===n.ActivationState.DEACTIVATING&&this._changeState(n.ActivationState.INACTIVE),this.onWeb
536SocketClose(C),this.active&&this._schedule_reconnect()},onWebSocketError:C=>{this.onWebSocketError(C)},onUnhandledMessage:C=>{this.onUnhandledMessage(C)},onUnhandledReceipt:C=>{this.onUnhandledReceipt(C)},onUnhandledFrame:C=>{this.onUnhandledFrame(C)},onHeartbeatReceived:()=>{this.onHeartbeatReceived()},onHeartbeatLost:()=>{this.onHeartbeatLost()}}),this._stompHandler.start()}_createWebSocket(){let E;if(this.webSocketFactory)E=this.webSocketFactory();else if(this.brokerURL)E=new WebSocket(this.brokerURL,this.stompVersions.protocolVersions());else throw new Error("Either brokerURL or webSocketFactory must be provided");return E.binaryType="arraybuffer",E}_schedule_reconnect(){this._nextReconnectDelay>0&&(this.debug(`STOMP: scheduling reconnection in ${this._nextReconnectDelay}ms`),this._reconnector=setTimeout(()=>{this.reconnectTimeMode===n.ReconnectionTimeMode.EXPONENTIAL&&(this._nextReconnectDelay=this._nextReconnectDelay*2,this.maxReconnectDelay!==0&&(this._nextReconnectDelay=Math.min(this._nextReconnectDelay,this.maxReconnectDelay))),this._connect()},this._nextReconnectDelay))}async deactivate(E={}){const C=E.force||!1,L=this.active;let I;if(this.state===n.ActivationState.INACTIVE)return this.debug("Already INACTIVE, nothing more to do"),Promise.resolve();if(this._changeState(n.ActivationState.DEACTIVATING),this._nextReconnectDelay=0,this._reconnector&&(clearTimeout(this._reconnector),this._reconnector=void 0),this._stompHandler&&this.webSocket.readyState!==n.StompSocketState.CLOSED){const H=this._stompHandler.onWebSocketClose;I=new Promise((F,$)=>{this._stompHandler.onWebSocketClose=Y=>{H(Y),F()}})}else return this._changeState(n.ActivationState.INACTIVE),Promise.resolve();return C?this._stompHandler?.discardWebsocket():L&&this._disposeStompHandler(),I}forceDisconnect(){this._stompHandler&&this._stompHandler.forceDisconnect()}_disposeStompHandler(){this._stompHandler&&this._stompHandler.dispose()}publish(E){this._checkConnection(),this._stompHandler.publish(E)}_checkConnection(){if(!this.connected)throw new TypeError("There is no underlying STOMP connection")}watchForReceipt(E,C){this._checkConnection(),this._stompHandler.watchForReceipt(E,C)}subscribe(E,C,L={}){return this._checkConnection(),this._stompHandler.subscribe(E,C,L)}unsubscribe(E,C={}){this._checkConnection(),this._stompHandler.unsubscribe(E,C)}begin(E){return this._checkConnection(),this._stompHandler.begin(E)}commit(E){this._checkConnection(),this._stompHandler.commit(E)}abort(E){this._checkConnection(),this._stompHandler.abort(E)}ack(E,C,L={}){this._checkConnection(),this._stompHandler.ack(E,C,L)}nack(E,C,L={}){this._checkConnection(),this._stompHandler.nack(E,C,L)}}class S{}class T{}class R{constructor(E){this.client=E}get outgoing(){return this.client.heartbeatOutgoing}set outgoing(E){this.client.heartbeatOutgoing=E}get incoming(){return this.client.heartbeatIncoming}set incoming(E){this.client.heartbeatIncoming=E}}class P extends v{constructor(E){super(),this.maxWebSocketFrameSize=16*1024,this._heartbeatInfo=new R(this),this.reconnect_delay=0,this.webSocketFactory=E,this.debug=(...C)=>{console.log(...C)}}_parseConnect(...E){let C,L,I,H={};if(E.length<2)throw new Error("Connect requires at least 2 arguments");if(typeof E[1]=="function")[H,L,I,C]=E;else switch(E.length){case 6:[H.login,H.passcode,L,I,C,H.host]=E;break;default:[H.login,H.passcode,L,I,C]=E}return[H,L,I,C]}connect(...E){const C=this._parseConnect(...E);C[0]&&(this.connectHeaders=C[0]),C[1]&&(this.onConnect=C[1]),C[2]&&(this.onStompError=C[2]),C[3]&&(this.onWebSocketClose=C[3]),super.activate()}disconnect(E,C={}){E&&(this.onDisconnect=E),this.disconnectHeaders=C,super.deactivate()}send(E,C={},L=""){C=Object.assign({},C);const I=C["content-length"]===!1;I&&delete C["content-length"],this.publish({destination:E,headers:C,body:L,skipContentLengthHeader:I})}set reconnect_delay(E){this.reconnectDelay=E}get ws(){return this.webSocket}get version(){return this.connectedVersion}get onreceive(){return this.onUnhandledMessage}set onreceive(E){this.onUnhandledMessage=E}get onreceipt(){return this.onUnhandledReceipt}set onreceipt(E){this.onUnhandledReceipt=E}get heartbeat(){return this._heartbeatInfo}set heartbeat(E){this.heartbeatIncoming=E.incoming,this.heartbeatOutgoing=E.outgoing}}class j{static client(E,C){C==null&&(C=b.default.protocolVersions());const L=()=>{const I=j.WebSocketClass||WebSocket;return new I(E,C)};return new P(L)}static over(E){let C;return typeof E=="function"?C=E:(console.warn("Stomp.over did not receive a factory, auto reconnect will not work. Please see https://stomp-js.github.io/api-docs/latest/classe
536s/Stomp.html#over"),C=()=>E),new P(C)}}j.WebSocketClass=null,n.Client=v,n.CompatClient=P,n.FrameImpl=l,n.Parser=g,n.Stomp=j,n.StompConfig=S,n.StompHeaders=T,n.Versions=b}))})(Nl,Nl.exports)),Nl.exports}var cM=lM();const uM=["ㅅㅂ","ㅆㅂ","ㅈㄹ","지랄","쥐랄","씨발","시발","ㅅ1발","ㅅㅣ발","ㅅI발","씨벌","ㅆ1발","ㅆㅣ발","ㅆI발","애미","이년","미친년","ㅁ1친년","ㅁㅣ친년","ㅁI친년"];function dM(e){let t=e;return uM.forEach(n=>{const i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(i,"gi");t=t.replace(s,"나쁜말")}),t}function fM(e){return!e.messageKey||!pw(e.messageKey)?e:{...e,text:Ct(e.messageKey,e.messageArgs)}}function Ep(e,t){return(ro()&&t||e)??""}function pM(e){return(ro()?e.phraseEn??e.phrase:e.phrase)??""}function hM(e){return(ro()?e.hintEn??e.hint:e.hint)??""}function Eu(e){return(ro()?e.answerEn??e.answer:e.answer)??null}const Gn=5,Ln={1:"야구장",2:"회사 옥상",3:"지구 밖",4:"대학교 앞",5:"침묵의 방(쉿!)"},mM=Object.fromEntries(Array.from({length:Gn},(e,t)=>[t+1,Ct(`room.${t+1}`)])),gM={1:"⚾",2:"🏢",3:"🌑",4:"🏫",5:"🤫"},xM="damta_room_number";function Sb(e){return e.byLocale?.[Pl()]??e.byLocale?.ko??e.content??""}function yM(e){return e.reasonKey&&pw(e.reasonKey)?Ct(e.reasonKey):e.reason||null}function wM(){const[e,t]=w.useState(null),[n,i]=w.useState(!1),[s,l]=w.useState(null);w.useEffect(()=>{let ee=!1;return(async(ne=3)=>{const xe=Bn();for(let oe=0;oe<ne;oe++)try{const Ne=await fetch(`${nt}/nickname/new`,jl({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceToken:xe})}));if(!Ne.ok)throw new Error(`status ${Ne.status}`);const ut=await Ne.json();ee||(t(ut.nickname),i(ut.manager===!0||ut.manager==="true"));return}catch{oe<ne-1&&await new Promise(Ne=>setTimeout(Ne,1e3*(oe+1)))}if(!ee){const oe=ro()?["Happy","Sleepy","Hungry","Chill","Merry","Calm","Dazed","Tired","Cute","Cool"]:["행복한","졸린","배고픈","시크한","신난","차분한","멍한","피곤한","귀여운","멋진"],Ne=ro()?["Puppy","Kitten","Rabbit","Hamster","Squirrel","Fox","Panda","Koala","Otter","Penguin"]:["강아지","고양이","토끼","햄스터","다람쥐","여우","판다","코알라","수달","펭귄"],ut=Tt=>Tt[Math.floor(Math.random()*Tt.length)];t(`${ut(oe)} ${ut(Ne)}`)}})(),()=>{ee=!0}},[]);const[c,u]=w.useState("");w.useEffect(()=>{let ee=!1;return(async()=>{const he=new TextEncoder().encode(Bn()),ne=await crypto.subtle.digest("SHA-256",he),xe=new Uint8Array(ne);let oe="";for(let Ne=0;Ne<8;Ne++)oe+=xe[Ne].toString(16).padStart(2,"0");ee||u(oe)})(),()=>{ee=!0}},[]);const[p,h]=w.useState(null),[g,f]=w.useState(null),[b,y]=w.useState(null),[v,S]=w.useState(null),[T,R]=w.useState(null),[P,j]=w.useState(null),[D,E]=w.useState(null),[C,L]=w.useState(null),[I,H]=w.useState(null),[F,$]=w.useState([]),[Y,ce]=w.useState(null),[ae,ie]=w.useState(null),[re,pe]=w.useState(null),[X,J]=w.useState({}),_=w.useRef(null),z=w.useRef(null);w.useEffect(()=>{_.current=Y},[Y]);const te=w.useRef(null);w.useEffect(()=>{if(!Y){te.current=null;return}const ee=te.current,he=!ee||ee.gameId!==Y.gameId,ne=Y.phase==="DESCRIBE"&&ee?.phase!=="DESCRIBE";te.current={gameId:Y.gameId,phase:Y.phase};const xe=Y.lastSpeech??null;if(he||ne){J(xe?{...xe}:{});return}xe&&J(oe=>({...oe,...xe}))},[Y]),w.useEffect(()=>{if(!p?.senderId||!p.text)return;const ee=_.current;if(!ee||ee.phase!=="DESCRIBE"&&ee.phase!=="VOTE"&&ee.phase!=="LIAR_GUESS")return;const he=p.senderId;ee.participants.some(ne=>ne.senderId===he)&&J(ne=>({...ne,[he]:p.text}))},[p]);const[A,Ee]=w.useState(null),[de,we]=w.useState(2),[Te,Se]=w.useState(0),[Ae,Qe]=w.useState(!1),vt=mM,it=gM,Ye=w.useRef(null),Rt=w.useRef(null),dn=w.useRef(null),Un=w.useRef(null),fn=w.useRef(null),Pn=w.useRef(null),st=w.useRef(null),Ce=w.useRef(null),We=w.useRef(null),Xe=w.useRef(null),dt=w.useRef(null),gt=w.useRef(null),Zt=w.useRef(null),Z=w.useRef(null),Q=w.useRef(de),Ie=w.useRef(e),Pe=w.useRef(c),ue=w.useRef(n),ft=w.useRef(0),ct=w.useRef(0);w.useEffect(()=>{Q.current=de},[de]),w.useEffect(()=>{Ie.current=e},[e]),w.useEffect(()=>{Pe.current=c},[c]),w.useEffect(()=>{ue.current=n},[n]);const bt=w.useCallback((ee,he)=>{if(Rt.current&&Rt.current.unsubscribe(),dn.current&&dn.current.unsubscribe(),Rt.current=ee.subscribe(`/topic/room/${he}`,ne=>{const xe=fM(JSON.parse(ne.body));xe.senderId!==Pe.current&&h(xe)}),dn.current=ee.subscribe("/topic/system",()=>{}),st.current&&st.current.unsubscribe(),f(null),y(null),he!==Gn&&(st.current=ee.subscribe(`/topic/poll/${he}`,ne=>{const xe=JSON.parse(ne.body);if(f(xe),xe.type==="poll-start"){const oe=localStorage.getItem(`damta_poll_vote_${xe.pollId}`),Ne=oe===null?null:Number(oe);y(Ne!==null&&Number.isInteger(Ne)?Ne:null)}else xe.type==="poll-end"&&setTimeout(()=>{f(oe=>oe&&oe.pollId===xe.pollId?null:oe)},6e3)}),fetch(`${nt}/poll/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceToken:Bn()})}).then(ne=>ne.json()).then(ne=>{if(Q.current===he&&ne?.active&&ne.snapshot){f(ne.snapshot);const xe=localStorage.getItem(`damta_poll_vote_${ne.snapshot.pollId}`),oe=ne.myChoice??(xe===null?null:Number(xe));y(oe!==null&&Number.isInteger(oe)?oe:null)}}).catch(()=>{})),Ce.current&&Ce.current.unsubscribe(),S(null),R(null),We.current=null,he!==Gn&&(Ce.current=ee.subscribe(`/topic/worldcup/${he}`,ne=>{const xe=JSON.parse(ne.body);
536if(xe.matchId!==We.current){We.current=xe.matchId;const oe=localStorage.getItem(`damta_worldcup_vote_${xe.matchId}`),Ne=oe===null?null:Number(oe);R(Ne!==null&&Number.isInteger(Ne)?Ne:null)}S(xe),xe.type==="worldcup-end"&&setTimeout(()=>{S(oe=>oe&&oe.worldcupId===xe.worldcupId?null:oe)},6e3)}),fetch(`${nt}/worldcup/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceToken:Bn()})}).then(ne=>ne.json()).then(ne=>{if(Q.current===he&&ne?.active&&ne.snapshot){const xe=ne.snapshot;S(xe),We.current=xe.matchId;const oe=localStorage.getItem(`damta_worldcup_vote_${xe.matchId}`),Ne=ne.myChoice??(oe===null?null:Number(oe));R(Ne!==null&&Number.isInteger(Ne)?Ne:null)}}).catch(()=>{})),Xe.current&&Xe.current.unsubscribe(),j(null),he!==Gn&&(Xe.current=ee.subscribe(`/topic/quiz/${he}`,ne=>{const xe=JSON.parse(ne.body);j(xe),xe.type==="quiz-win"&&xe.winnerSenderId&&xe.winnerSenderId===Pe.current&&(ct.current=Date.now()+9e4,B.success(Ct("game.wonQuiz"))),(xe.type==="quiz-win"||xe.type==="quiz-close")&&setTimeout(()=>{j(oe=>oe&&oe.quizId===xe.quizId?null:oe)},6e3)}),fetch(`${nt}/quiz/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(ne=>ne.json()).then(ne=>{Q.current===he&&ne?.active&&ne.snapshot&&j(ne.snapshot)}).catch(()=>{})),dt.current&&dt.current.unsubscribe(),E(null),he!==Gn&&(dt.current=ee.subscribe(`/topic/typerace/${he}`,ne=>{const xe=JSON.parse(ne.body);E(xe),xe.type==="typerace-win"&&xe.winnerSenderId&&xe.winnerSenderId===Pe.current&&(ct.current=Date.now()+9e4,B.success(Ct("game.wonTypeRace"))),(xe.type==="typerace-win"||xe.type==="typerace-close")&&setTimeout(()=>{E(oe=>oe&&oe.gameId===xe.gameId?null:oe)},6e3)}),fetch(`${nt}/typerace/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(ne=>ne.json()).then(ne=>{Q.current===he&&ne?.active&&ne.snapshot&&E(ne.snapshot)}).catch(()=>{})),gt.current&&gt.current.unsubscribe(),L(null),he!==Gn&&(gt.current=ee.subscribe(`/topic/reaction/${he}`,ne=>{const xe=JSON.parse(ne.body);L(xe),xe.type==="reaction-win"&&xe.winnerSenderId&&xe.winnerSenderId===Pe.current&&(ct.current=Date.now()+9e4,B.success(Ct("game.wonReaction",{ms:xe.reactionMs}))),(xe.type==="reaction-win"||xe.type==="reaction-close")&&setTimeout(()=>{L(oe=>oe&&oe.gameId===xe.gameId?null:oe)},5e3)}),fetch(`${nt}/reaction/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(ne=>ne.json()).then(ne=>{Q.current===he&&ne?.active&&ne.snapshot&&L(ne.snapshot)}).catch(()=>{})),Zt.current&&Zt.current.unsubscribe(),H(null),$([]),he!==Gn){Zt.current=ee.subscribe(`/topic/catchmind/${he}`,xe=>{const oe=JSON.parse(xe.body);if(oe.type==="catchmind-draw"){oe.drawData&&$(Ne=>[...Ne,oe.drawData]);return}if(oe.type==="catchmind-clear"){$([]);return}if(oe.type==="catchmind-hint"){H(Ne=>Ne&&{...Ne,hint:oe.hint});return}H(oe),oe.type==="catchmind-start"&&$([]),oe.type==="catchmind-win"&&oe.winnerSenderId&&oe.winnerSenderId===Pe.current&&(ct.current=Date.now()+9e4,B.success(Ct("game.wonCatchmind"))),(oe.type==="catchmind-win"||oe.type==="catchmind-close")&&setTimeout(()=>{H(Ne=>Ne&&Ne.gameId===oe.gameId?null:Ne),$([])},6e3)});const ne=xe=>{fetch(`${nt}/catchmind/${he}/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}).then(oe=>oe.json()).then(oe=>{Q.current===he&&oe?.active&&oe.snapshot&&(H(Ne=>Ne??oe.snapshot),Array.isArray(oe.strokes)&&$(Ne=>Ne.length>=oe.strokes.length?Ne:oe.strokes))}).catch(oe=>{console.warn(`[catchmind] 복구 실패 (attempt ${xe}):`,oe),xe<3&&Q.current===he&&setTimeout(()=>ne(xe+1),600*xe)})};ne(1)}if(Z.current&&Z.current.unsubscribe(),ce(null),ie(null),pe(null),J({}),he!==Gn){Z.current=ee.subscribe(`/topic/liar/${he}`,xe=>{const oe=JSON.parse(xe.body);if(oe.type==="liar-vote-update"){ce(Ne=>Ne?{...Ne,votedCount:oe.votedCount}:oe);return}ce(oe);{const Ne=oe.participants?.some(Tt=>Tt.senderId===Pe.current)??!1,ut=z.current;oe.phase==="LOBBY"&&Ne&&ut?.gameId===oe.gameId&&!ut.wasParticipant&&B.success(Ct("liar.joinedNotice",{seconds:oe.afkSeconds??30}),{duration:6e3}),z.current={gameId:oe.gameId,wasParticipant:Ne}}if(oe.type==="liar-result"){const Ne=oe.participants?.some(He=>He.senderId===Pe.current),ut=oe.liarSenderId===Pe.current;(oe.result==="CITIZENS_WIN"&&Ne&&!ut||oe.result==="LIAR_WIN"&&ut)&&(ct.current=Date.now()+9e4,B.success(Ct("game.wonLiar"))),setTimeout(()=>{ce(He=>He&&He.gameId===oe.gameId?null:He),ie(null),pe(null),J({})},8e3)}oe.type==="liar-cancel"&&setTimeout(()=>{ce(Ne=>Ne&&Ne.gameId===oe.gameId?null:Ne),ie(null),pe(null),J({})},2500)});const ne=xe=>{fetch(`${nt}/liar/${he}/active`,jl({method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deviceToken:Bn()})})).then(oe=>oe.json()).then(oe=>{Q.current===he&&oe?.active&&oe.snapshot&&(ce(Ne=>Ne??oe.snapshot),oe.myWord&&ie(oe.myWord),oe.myVote&&pe(oe.myVote))}).catch(oe=>{console.warn(`[liar] 복구 실패 (attempt ${xe}):`,oe),xe<3&&Q.current===he&&setTimeout(()=>ne(xe+1),600*xe)})};ne(1)}Qe(!0)},[]),Jt=w.useRef(null),en=w.useRef(null),at=w.useRef(null),tn=w.useRef(null),Pt=w.useRef(null),kn=w.useCallback(()=>{Ye.current?.activate()},[]),kr=w.useRef(Date.now()),jn=w.useRef(null),pn=w.useRef(null);
536w.useEffect(()=>{if(!e)return;let ee=!1;const he={deviceToken:Bn(),locale:Pl()},ne=new cM.Client({brokerURL:qR.replace(/^http/,"ws"),reconnectDelay:3e3,heartbeatIncoming:25e3,heartbeatOutgoing:25e3,connectHeaders:he,beforeConnect:async()=>{try{const He=await Ih();ee||(he.fingerprint=He)}catch{}},onConnect:()=>{fn.current=ne.subscribe("/topic/room-counts",He=>{const le=JSON.parse(He.body);if(Jt.current){const xt={};for(let St=1;St<=Gn;St++)xt[St]=le[String(St)]??le[St]??0;Jt.current(xt)}}),ne.subscribe("/topic/visit-count",He=>{try{const le=JSON.parse(He.body);typeof le?.count=="number"&&Ee(le.count)}catch{}}),bt(ne,Q.current),Pn.current=ne.subscribe("/topic/notice",He=>{const le=JSON.parse(He.body);en.current&&en.current(Sb(le))}),Un.current=ne.subscribe("/user/queue/whisper",He=>{try{const le=JSON.parse(He.body);if(le.type==="fixed-nickname-granted"){t(le.nickname),tn.current?.(le.nickname,le.recoveryCode);return}if(le.type==="nickname-updated"){le.nickname&&t(le.nickname);return}if(le.type==="manager-status"){i(le.isManager===!0),B(le.isManager?Ct("manager.appointed"):Ct("manager.dismissed"));return}if(le.type==="catchmind-grant"){Pt.current?.();return}if(le.type==="manager-ban-result"){const xt=le.action==="ban"?"차단":"차단 해제";le.success?B.success(`'${le.displayNickname}' ${xt} 완료`):B.error(`${xt} 실패 — 대상을 찾을 수 없습니다.`);return}R_(le)}catch{}}),ne.subscribe("/user/queue/history",He=>{try{const le=JSON.parse(He.body);if(le.type!=="manager-history")return;if(!le.success){le.reason&&B.error(le.reason);return}l(xt=>({seq:(xt?.seq??0)+1,messages:Array.isArray(le.messages)?le.messages:[]}))}catch{}}
536),ne.subscribe("/user/queue/poll",He=>{try{const le=JSON.parse(He.body);le.type==="poll-create-result"?le.success?B.success("투표를 시작했어요!"):le.reason&&B.error(le.reason):le.type==="poll-end-result"&&(le.success?B.success("투표를 종료했어요."):le.reason&&B.error(le.reason))}catch{}}),ne.subscribe("/user/queue/worldcup",He=>{try{const le=JSON.parse(He.body);le.type==="worldcup-create-result"?le.success?B.success("이상형 월드컵을 시작했어요!"):le.reason&&B.error(le.reason):le.type==="worldcup-end-result"&&(le.success?B.success("월드컵을 종료했어요."):le.reason&&B.error(le.reason))}catch{}}),ne.subscribe("/user/queue/quiz",He=>{try{const le=JSON.parse(He.body);le.type==="quiz-create-result"?le.success?B.success("상식 퀴즈를 시작했어요!"):le.reason&&B.error(le.reason):le.type==="quiz-end-result"&&(le.success?B.success("퀴즈를 종료했어요."):le.reason&&B.error(le.reason))}catch{}}),ne.subscribe("/user/queue/typerace",He=>{try{const le=JSON.parse(He.body);le.type==="typerace-create-result"?le.success?B.success("타자 배틀을 시작했어요!"):le.reason&&B.error(le.reason):le.type==="typerace-end-result"&&(le.success?B.success("타자 배틀을 종료했어요."):le.reason&&B.error(le.reason))}catch{}}),ne.subscribe("/user/queue/reaction",He=>{try{const le=JSON.parse(He.body);le.type==="reaction-create-result"?le.success?B.success("반응속도 게임을 시작했어요!"):le.reason&&B.error(le.reason):le.type==="reaction-end-result"?le.success?B.success("반응속도 게임을 종료했어요."):le.reason&&B.error(le.reason):le.type==="reaction-falsestart"&&B.error(Ct("game.falseStart"))}catch{}}),ne.subscribe("/user/queue/catchmind",He=>{try{const le=JSON.parse(He.body);if(le.type==="catchmind-create-result")if(le.success)B.success(Ct("catchmind.started")),le.answer&&H(xt=>xt&&{...xt,answer:le.answer});else{const xt=yM(le);xt&&B.error(xt)}else le.type==="catchmind-end-result"?le.success?B.success("그림 맞추기를 종료했어요."):le.reason&&B.error(le.reason):le.type==="catchmind-grant-result"&&(le.success?(le.onlineSessions??0)>0?B.success(`🎨 '${le.nickname}'님에게 그림 권한을 부여했어요! 팝업이 떴을 거예요.`):B.success(`🎨 '${le.nickname}'님에게 그림 권한을 부여했어요. (현재 미접속 — 접속 후 10분 내 시작 가능)`):le.reason&&B.error(le.reason))}catch{}}),ne.subscribe("/user/queue/liar",He=>{try{const le=JSON.parse(He.body);if(le.type==="liar-word"){ie(le.word),B.success(Ct("game.yourWord",{word:le.word}));const xt=_.current?.afkSeconds??30;B(Ct("liar.speakNow",{seconds:xt}),{duration:5e3})}else le.type==="liar-create-result"?le.success?B.success("라이어 게임을 시작했어요! 🕵️"):le.reason&&B.error(le.reason):le.type==="liar-end-result"?le.success?B.success("라이어 게임을 종료했어요."):le.reason&&B.error(le.reason):le.type==="liar-afk-kicked"&&(ie(null),pe(null),B.error(Ct("liar.afkKicked")))}catch{}})},onDisconnect:()=>Qe(!1),onWebSocketClose:He=>{He?.code===4409&&(ne.deactivate(),Qe(!1),at.current?.())}});ne.activate(),Ye.current=ne;const xe=1800*1e3,oe=()=>{kr.current=Date.now(),ne.connected||ne.activate()},Ne=["pointerdown","keydown","scroll","touchstart"];Ne.forEach(He=>window.addEventListener(He,oe,{passive:!0})),jn.current=setInterval(()=>{Date.now()-kr.current>xe&&ne.connected&&(ne.deactivate(),Qe(!1))},6e4);const ut=300*1e3,Tt=()=>{document.visibilityState==="hidden"?pn.current=setTimeout(()=>{ne.deactivate(),Qe(!1)},ut):(pn.current&&(clearTimeout(pn.current),pn.current=null),kr.current=Date.now(),Qe(!1),ne.deactivate().then(()=>ne.activate()))};return document.addEventListener("visibilitychange",Tt),()=>{ee=!0,document.removeEventListener("visibilitychange",Tt),Ne.forEach(He=>window.removeEventListener(He,oe)),jn.current&&clearInterval(jn.current),pn.current&&clearTimeout(pn.current),ne.deactivate()}},[bt,e]);const ao=w.useCallback(ee=>{ee!==Q.current&&(ee<1||ee>Gn||(we(ee),Q.current=ee,sessionStorage.setItem(xM,String(ee)),Ye.current?.connected&&bt(Ye.current,ee)))},[bt]),qe=w.useCallback(async(ee,he,ne,xe,oe,Ne)=>{if(!ee.trim()||!Ie.current&&!he)return;const ut=Date.now();if(!(ne&&he==="")&&ut-ft.current<1e3)return;ft.current=ut;const He=Ye.current;if(!He?.connected)return;const le=dM(ee.trim()),xt=he===void 0&&ue.current,St=he===void 0&&Date.now()<ct.current,Gr={id:`${Date.now()}_${Math.random().toString(36).slice(2,11)}`,text:le,nickname:he!==void 0?he:Ie.current,senderId:Pe.current,timestamp:ut,...xe?{teamColor:xe}:{},...xt?{manager:!0}:{},...St?{boost:!0}:{},...oe?{messageKey:oe,messageArgs:Ne}:{}},si=En(),Er={};if(si&&(Er["X-Admin-Token"]=si),ne)for(let uo=1;uo<=Gn;uo++)He.publish({destination:`/app/chat/${uo}`,body:JSON.stringify(Gr),headers:Er});else He.publish({destination:`/app/chat/${Q.current}`,body:JSON.stringify(Gr),headers:Er});h(Gr)},[]),jt=w.useCallback((ee,he)=>{const ne=Ye.current;!ne?.connected||!he.trim()||ne.publish({destination:`/app/manager/${ee}`,body:JSON.stringify({nickname:he.trim()})})},[]),$t=w.useCallback((ee="",he="")=>{const ne=Ye.current;return ne?.connected?(ne.publish({destination:"/app/manager/history",body:JSON.stringify({nickname:ee.trim(),text:he.trim()})}),!0):!1},[]),nn=w.useCallback((ee,he,ne="GENERAL")=>{const xe=Ye.current;if(!xe?.connected)return;const oe=he.map(Tt=>Tt.trim()).filter(Tt=>Tt.length>0);if(!ee.trim()||oe.length<2)return;const Ne={},ut=En();ut&&(Ne["X-Admin-Token"]=ut),xe.publish({destination:`/app/poll/${Q.current}/create`,body:JSON.stringify({question:ee.trim(),options:oe,preset:ne}),headers:Ne})},[]),br=w.useCallback((ee,he)=>{const ne=Ye.current;ne?.connected&&(ne.publish({destination:`/app/poll/${Q.current}/vote`,body:JSON.stringify({pollId:ee,optionIdx:he})}),localStorage.setItem(`damta_poll_vote_${ee}`,String(he)),y(he))},[]),Mt=w.useCallback(()=>{const ee=Ye.current;if(!ee?.connected)return;const he={},ne=En();ne&&(he["X-Admin-Token"]=ne),ee.publish({destination:`/app/poll/${Q.current}/end`,body:"{}",headers:he})},[]),Kt=w.useCallback((ee,he)=>{const ne=Ye.current;if(!ne?.connected)return;const xe=he.map(ut=>({label:ut.label.trim(),imageUrl:(ut.imageUrl??"").trim()})).filter(ut=>ut.label.length>0);if(!ee.trim()||xe.length!==8)return;const oe={},Ne=En();Ne&&(oe["X-Admin-Token"]=Ne),ne.publish({destination:`/app/worldcup/${Q.current}/create`,body:JSON.stringify({title:ee.trim(),candidates:xe}),headers:oe})},[]),Vn=w.useCallback((ee,he,ne)=>{const xe=Ye.current;xe?.connected&&(xe.publish({destination:`/app/worldcup/${Q.current}/vote`,body:JSON.stringify({worldcupId:ee,matchId:he,seed:ne})}),localStorage.setItem(`damta_worldcup_vote_${he}`,String(ne)),R(ne))},[]),Yt=w.useCallback(()=>{const ee=Ye.current;if(!ee?.connected)return;const he={},ne=En();ne&&(he["X-Admin-Token"]=ne),ee.publish({destination:`/app/worldcup/${Q.current}/end`,body:"{}",headers:he})},[]),sn=w.useCallback(async ee=>{if(ee.size>8*1024*1024)return B.error(`이미지가 너무 커요 (${(ee.size/1024/1024).toFixed(1)}MB). 8MB 이하로 올려주세요.`),null;if(!ee.type.startsWith("image/"))return B.error("이미지 파일만 올릴 수 있어요."),null;const ne=new FormData;ne.append("file",ee),ne.append("deviceToken",Bn());const xe={},oe=En();oe&&(xe["X-Admin-Token"]=oe);try{const Ne=await fetch(`${nt}/quiz/image`,{method:"POST",headers:xe,body:ne});if(!Ne.ok){let Tt="";try{Tt=(await Ne.json())?.error??""}catch{}
536return Ne.status===413?B.error(Tt||"이미지가 너무 커요. 8MB 이하로 올려주세요."):Ne.status===403?B.error("업로드 권한이 없어요 (운영자/매니저만 가능)."):Ne.status===400?B.error(Tt||"이미지 파일이 아니거나 형식이 올바르지 않아요."):Ne.status>=500?B.error(`서버 오류로 실패했어요 (${Ne.status}). 잠시 후 다시 시도해주세요.`):B.error(Tt||`업로드 실패 (${Ne.status})`),null}const ut=await Ne.json();return typeof ut.imageId=="number"?ut.imageId:null}catch{return B.error("서버에 연결하지 못했어요. (배포 중이거나 네트워크 문제) 잠시 후 다시 시도해주세요."),null}},[]),ar=w.useCallback((ee,he,ne)=>{const xe=Ye.current;if(!xe?.connected||!he.trim()||!ne.trim())return;const oe={},Ne=En();Ne&&(oe["X-Admin-Token"]=Ne),xe.publish({destination:`/app/quiz/${Q.current}/create`,body:JSON.stringify({imageId:ee,question:he.trim(),answers:ne.trim()}),headers:oe})},[]),hn=w.useCallback(()=>{const ee=Ye.current;if(!ee?.connected)return;const he={},ne=En();ne&&(he["X-Admin-Token"]=ne),ee.publish({destination:`/app/quiz/${Q.current}/end`,body:"{}",headers:he})},[]),_t=()=>{const ee={},he=En();return he&&(ee["X-Admin-Token"]=he),ee},Mn=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/typerace/${Q.current}/create`,body:"{}",headers:_t()})},[]),_e=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/typerace/${Q.current}/end`,body:"{}",headers:_t()})},[]),Ge=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/reaction/${Q.current}/create`,body:"{}",headers:_t()})},[]),ri=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/reaction/${Q.current}/tap`,body:"{}"})},[]),vr=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/reaction/${Q.current}/end`,body:"{}",headers:_t()})},[]),Sr=w.useCallback((ee,he)=>{const ne=Ye.current;ne?.connected&&ee.trim()&&ne.publish({destination:`/app/catchmind/${Q.current}/create`,body:JSON.stringify({answers:ee.trim(),...he?{answersEn:he.trim()}:{}}),headers:_t()})},[]),Is=w.useCallback(ee=>{const he=Ye.current;!he?.connected||!ee.trim()||he.publish({destination:"/app/catchmind/grant",body:JSON.stringify({nickname:ee.trim()}),headers:_t()})},[]),lo=w.useCallback(ee=>{const he=Ye.current;he?.connected&&he.publish({destination:`/app/catchmind/${Q.current}/draw`,body:JSON.stringify({drawData:ee})})},[]),Io=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/catchmind/${Q.current}/clear`,body:"{}"})},[]),oi=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/catchmind/${Q.current}/end`,body:"{}",headers:_t()})},[]),zr=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/liar/${Q.current}/create`,body:"{}",headers:_t()})},[]),ii=w.useCallback(ee=>{const he=Ye.current;he?.connected&&he.publish({destination:`/app/liar/${Q.current}/join`,body:JSON.stringify({gameId:ee})})},[]),co=w.useCallback((ee,he)=>{const ne=Ye.current;ne?.connected&&(pe(he),ne.publish({destination:`/app/liar/${Q.current}/vote`,body:JSON.stringify({gameId:ee,targetSenderId:he})}))},[]),ja=w.useCallback(()=>{const ee=Ye.current;ee?.connected&&ee.publish({destination:`/app/liar/${Q.current}/end`,body:"{}",headers:_t()})},[]);return{nickname:e,setNickname:t,isManager:n,visitCount:A,sendManagerBan:jt,managerHistory:s,requestManagerHistory:$t,poll:g,myPollChoice:b,createPoll:nn,votePoll:br,endPoll:Mt,worldcup:v,myWorldcupChoice:T,createWorldcup:Kt,voteWorldcup:Vn,endWorldcup:Yt,quiz:P,uploadQuizImage:sn,createQuiz:ar,endQuiz:hn,typeRace:D,createTypeRace:Mn,endTypeRace:_e,reaction:C,createReaction:Ge,reactionTap:ri,endReaction:vr,catchmind:I,catchmindStrokes:F,createCatchmind:Sr,sendCatchmindGrant:Is,sendDraw:lo,sendClear:Io,endCatchmind:oi,liar:Y,liarMyWord:ae,liarMyVote:re,liarSpeech:X,createLiar:zr,joinLiar:ii,voteLiar:co,endLiar:ja,lastMessage:p,sendMessage:qe,senderId:c,roomNumber:de,roomCount:Te,isRoomReady:Ae,changeRoom:ao,MAX_ROOM_NUMBER:Gn,roomNames:vt,roomIcons:it,onRoomCountsUpdateRef:Jt,onNoticeUpdateRef:en,onKickedRef:at,onFixedNicknameGrantedRef:tn,onCatchmindGrantRef:Pt,reconnectAfterKick:kn}}function kM({lastMessage:e,onNewMessage:t,hasStarted:n}){const i=w.useRef(null),s=w.useRef([]),l=w.useRef([]),c=w.useRef(""),u=w.useRef(""),p=w.useCallback(()=>{i.current&&clearTimeout(i.current),s.current.forEach(y=>clearTimeout(y)),s.current=[]},[]),h=w.useCallback(()=>{l.current.forEach(y=>clearTimeout(y)),l.current=[]},[]),g=w.useCallback(()=>{p(),h()},[p,h]);w.useEffect(()=>()=>g(),[g]);const f=w.useCallback((y,v,S)=>{const T=yb[y];if(!T)return;const R={id:`npc-${Date.now()}-${Math.random()}`,text:v,nickname:T.name,senderId:T.id,timestamp:Date.now(),isGuide:S};t(R)},[t]),b=w.useCallback(async()=>
536{if(!n)return;let y=null;const v=Math.random();if(v<.45)try{const R=await fetch(`${nt}/news`,jl());if(R.ok){const P=await R.json();P.title&&(y=kj(P.title))}}catch{}else if(v<.65)try{const R=await fetch(`${nt}/weather`,jl());if(R.ok){const P=await R.json();P.text&&(y=bj(P.text))}}catch{}y||(y=zy[Math.floor(Math.random()*zy.length)]);let S=0;y.forEach(R=>{const P=setTimeout(()=>{f(R.speaker,R.text,!1)},S);s.current.push(P),S+=3500});const T=setTimeout(()=>{b()},S+35e3);s.current.push(T)},[f,n]);w.useEffect(()=>{if(!n)return;const y=()=>{const S=new Date,T=S.getHours(),R=S.getMinutes();if(R===1||R===15||R===31||R===45){const P=`${S.getFullYear()}-${S.getMonth()}-${S.getDate()}-${T}-${R}`;c.current!==P&&(f("ZUCKERBERG",By.ZUCKERBERG[0]),c.current=P)}},v=setInterval(y,5e3);return y(),()=>clearInterval(v)},[n,f]),w.useEffect(()=>{if(!n)return;const y=()=>{const S=new Date,T=S.getHours(),R=S.getMinutes();if(R%2===0){const P=`guide-${S.getFullYear()}-${S.getMonth()}-${S.getDate()}-${T}-${R}`;if(u.current!==P){const j=Gy[Math.floor(Math.random()*Gy.length)];f(j.speaker,j.text,!0),u.current=P}}},v=setInterval(y,5e3);return y(),()=>clearInterval(v)},[n,f]),w.useEffect(()=>{if(p(),!n)return;if(e){const v=Nj(e.text);if(v){const S=1e3+Math.random()*1500,T=setTimeout(()=>{const R=By[v],P=R[Math.floor(Math.random()*R.length)];f(v,P)},S);l.current.push(T)}}const y=e?25e3:3e4;i.current=setTimeout(()=>{b()},y)},[e,b,f,n,p])}function bM({noticeText:e,onClose:t}){const n=sr(),i=m.jsxs("div",{className:"flex items-center gap-1 whitespace-nowrap pr-12",children:[m.jsx("span",{className:"font-bold text-orange-400",children:n("notice.label")}),m.jsx("span",{className:"text-gray-200 font-medium",children:e})]});return m.jsxs("div",{className:"fixed bottom-0 left-0 right-0 z-[100] h-8 bg-[#2A2A2A] border-t border-white/10 flex items-center justify-between backdrop-blur-md select-none shadow-lg marquee-root",children:[m.jsx("style",{children:`
537        @keyframes marquee {
538          0% { transform: translateX(0); }
539          100% { transform: translateX(-100%); }
540        }
541        .animate-marquee {
542          animation: marquee 30s linear infinite;
543          display: flex;
544          min-width: 100%;
545          flex-shrink: 0;
546          align-items: center;
547        }
548        .marquee-root:hover .animate-marquee {
549          animation-play-state: paused;
550        }
551      `}),m.jsx("div",{className:"flex-1 overflow-hidden relative h-full flex items-center w-full",children:m.jsxs("div",{className:"flex min-w-full",children:[m.jsx("div",{className:"animate-marquee",children:i}),m.jsx("div",{className:"animate-marquee","aria-hidden":"true",children:i})]})}),m.jsx("button",{onClick:s=>{s.stopPropagation(),t()},className:"ml-2 mr-1 p-1 text-gray-400 hover:text-white transition-colors z-20 flex-shrink-0 bg-white/10 hover:bg-white/20 rounded-full w-6 h-6 flex items-center justify-center","aria-label":n("notice.close"),children:m.jsx(Rl,{className:"w-3.5 h-3.5"})})]})}const Pa="pointer-events-auto flex max-w-[90vw] items-center gap-1.5 overflow-hidden whitespace-nowrap rounded-full border border-white/10 bg-[#1d1d1d]/90 px-3 py-1.5 text-xs shadow-lg backdrop-blur transition-colors hover:bg-[#1d1d1d]",Hy=["#60A5FA","#F472B6","#34D399","#FBBF24","#A78BFA"],ka=e=>Hy[e%Hy.length];function vM({poll:e,myChoice:t,onVote:n}){const i=sr(),s=e.preset==="BALANCE",l=e.status==="CLOSED",c=t!==null||l,[u,p]=w.useState(()=>Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));w.useEffect(()=>{if(l)return;const E=()=>p(Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));E();const C=setInterval(E,1e3);return()=>clearInterval(C)},[e.expiresAt,l]);const[h,g]=w.useState(!1);w.useEffect(()=>{t!==null&&!l&&g(!0)},[t,l]),w.useEffect(()=>{l&&g(!1)},[l]);const f=w.useRef(null);w.useEffect(()=>{if(h||l)return;const E=C=>{f.current&&!f.current.contains(C.target)&&g(!0)};return document.addEventListener("pointerdown",E),()=>document.removeEventListener("pointerdown",E)},[h,l]);const[b,y]=w.useState(null);w.useEffect(()=>{g(!1),y(null)},[e.pollId]);const v=e.total||0,S=E=>v>0?Math.round(E/v*100):0,T=Math.max(0,...e.options.map(E=>E.count)),R=E=>l&&E>0&&E===T,P=e.options.reduce((E,C)=>C.count>E.count?C:E,e.options[0]);if(h)return m.jsxs("button",{onClick:()=>g(!1),className:Pa,children:[m.jsx("span",{className:"shrink-0 font-bold text-yellow-400",children:s?"⚖️":"🗳️"}),c&&s&&e.options.length>=2?m.jsxs("span",{className:"flex shrink-0 items-center gap-1 font-bold tabular-nums",children:[m.jsxs("span",{style:{color:ka(0)},children:[S(e.options[0].count),"%"]}),m.jsx("span",{className:"text-white/30",children:"vs"}),m.jsxs("span",{style:{color:ka(1)},children:[S(e.options[1].count),"%"]})]}):c&&v>0?m.jsxs("span",{className:"flex min-w-0 items-center gap-1 font-bold",children:[m.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:ka(P.idx)}}),m.jsx("span",{className:"min-w-0 truncate text-gray-200",children:P.label}),m.jsxs("span",{className:"shrink-0 tabular-nums",style:{color:ka(P.idx)},children:[S(P.count),"%"]})]}):c?m.jsx("span",{className:"shrink-0 font-bold tabular-nums text-gray-200",children:i("common.votes",{count:v})}):m.jsx("span",{className:"min-w-0 truncate font-bold text-gray-200",children:i(s?"poll.balance":"poll.title")}),c&&v>0&&!s&&m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",i("common.votes",{count:v})]}),!l&&m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",i("common.seconds",{n:u})]}),m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 shrink-0 text-white/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})]});const j=(E,C,L)=>{if(C<=0)return null;const I=ka(E),H=b===E,$=H?L:L.slice(0,5),Y=C-$.length;return m.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1 pl-1",children:[$.map((ce,ae)=>m.jsx("span",{className:"min-w-0 max-w-[120px] truncate rounded-full bg-white/5 px-1.5 py-0.5 text-[10px] text-white/55",children:ce},ae)),!H&&Y>0&&m.jsx("button",{onClick:()=>y(E),className:"rounded-full px-1.5 py-0.5 text-[10px] font-bold",style:{color:I},children:i("poll.morePeople",{count:Y})}),H&&Y>0&&m.jsx("span",{className:"px-1 py-0.5 text-[10px] text-white/40",children:i("poll.andMore",{count:Y})}),H&&m.jsx("button",{onClick:()=>y(null),className:"px-1 py-0.5 text-[10px] text-white/40 underline",children:i("common.collapse")})]})},D=(E,C,L)=>{const I=ka(E),H=t===E,F=R(L),$=s?`${E===0?"A":"B"}. `:"";return c?m.jsxs("div",{onClick:()=>{l||n(e.pollId,E)},role:l?void 0:"button",className:`relative w-full overflow-hidden rounded-lg border px-3 py-3 ${l?"":"cursor-pointer"}`,style:{borderColor:H||F?I:"rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.03)"},children:[m.jsx("div",{className:"absolute inset-y-0 left-0 transition-all duration-500",style:{width:`${S(L)}%`,background:I,opacity:.18}}),m.jsxs("div",{className:"relative flex items-center justify-between",children:[m.jsxs("span",{className:"text-sm font-bold",style:{color:I},children:[$,C,H&&m.jsx("span",{className:"ml-1 text-[11px] text-white/60",children:i("common.myChoice")}),F&&m.jsx("span",{className:"ml-1",children:"👑"})]}),m.jsxs("span",{className:"text-sm font-bold tabular-nums",style:{color:I},children:[S(L),"% ",m.jsxs("span",{className:"text-[11px] text-white/50",children:["(",L,")"]})]})]})]}):m.jsxs("button",{onClick:()=>n(e.pollId,E),className:"w-full rounded-lg border px-3 py-3 text-left text-sm font-bold transition-colors",style:{borderColor:I,color:I,background:"rgba(255,255,255,0.03)"},children:[$,C]})};return m.jsxs("div",{ref:f,className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[m.jsxs("div",{className:"mb-3 flex items-start justify-between gap-2",children:[m.jsx("p",{className:"break-words text-lg font-bold leading-snug text-gray-100",children:e.question}),!l&&m.jsx("button",{onClick:()=>g(!0),"aria-label":i("common.collapse"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-white/10 text-white/70 transition-colors hover:bg-white/20 hover:text-white",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]}),m.jsx("div",{className:"space-y-3",children:e.options.map(E=>m.jsxs("div",{children:[D(E.idx,E.label,E.count),c&&j(E.idx,E.count,E.voters??[])]},E.idx))}),m.jsxs("div",{className:"mt-2 flex items-start justify-between gap-2 text-[11px] text-white/40",children:[m.jsx("span",{className:"break-keep text-left",children:c?i("poll.totalVotes",{count:v})+(l?"":i("poll.canChange")):i("poll.hintVote")}),m.jsx("span",{className:"shrink-0 tabular-nums",children:l?i("common.ended"):i("common.secondsLeft",{n:u})})]})]})}const SM=100,EM=40,Cp=5,$y=["#60A5FA","#F472B6","#34D399","#FBBF24","#A78BFA"];function CM({variant:e,onCreate:t,onClose:n}){const i=e==="balance",[s,l]=w.useState(""),[c,u]=w.useState(["",""]),p=(S,T)=>u(R=>R.map((P,j)=>j===S?T:P)),h=()=>u(S=>S.length>=Cp?S:[...S,""]),g=S=>u(T=>T.length<=2?T:T.filter((R,P)=>P!==S)),f=c.map(S=>S.trim()).filter(S=>S.length>0),b=s.trim().length>0&&f.length>=2,y=()=>{b&&(t(s,c,i?"BALANCE":"GENERAL"),n())},v=i?"⚖️ 밸런스 게임 만들기":"🗳️ 투표 만들기";return m.jsx("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-black/70 p-4",onClick:n,children:m.jsxs("div",{className:"w-full max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d] p-5 shadow-2xl",onClick:S=>S.stopPropagation(),children:[m.jsx("h2",{className:"mb-4 text-sm font-bold text-yellow-400",children:v}),m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:"질문"}),m.jsx("input",{value:s,onChange:S=>l(S.target.value),maxLength:SM,placeholder:i?"예: 평생 한 가지만 먹는다면?":"예: 오늘 점심 뭐 먹을까?",className:"mb-3 w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none focus:border-yellow-400/60",autoFocus:!0}),c.map((S,T)=>{const R=$y[T%$y.length],P=i?`선택지 ${T===0?"A":"B"}`:`선택지 ${T+1}`,j=T===c.length-1;return m.jsxs("div",{children:[m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:P}),m.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[m.jsx("input",{value:S,onChange:D=>p(T,D.target.value),maxLength:EM,placeholder:i?T===0?"예: 치킨":"예: 피자":`선택지 ${T+1}`,onKeyDown:D=>{Ss(D)&&j&&y()},className:"w-full rounded-lg border bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none",style:{borderColor:`${R}66`}}),!i&&c.length>2&&m.jsx("button",{onClick:()=>g(T),"aria-label":"선택지 삭제",className:"shrink-0 rounded-lg border border-white/15 px-2.5 py-2 text-sm text-white/50 hover:bg-white/5",children:"✕"})]})]},T)}),!i&&c.length<Cp&&m.jsxs("button",{onClick:h,className:"mb-4 w-full rounded-lg border border-dashed border-white/20 px-3 py-2 text-xs text-white/50 hover:bg-white/5",children:["+ 선택지 추가 (",c.length,"/",Cp,")"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:n,className:"flex-1 rounded-lg border border-white/15 px-3 py-2 text-sm text-white/70 hover:bg-white/5",children:"취소"}),m.jsx("button",{onClick:y,disabled:!b,className:"flex-1 rounded-lg bg-yellow-400 px-3 py-2 text-sm font-bold text-black disabled:opacity-40",children:"시작"})]})]})})}const NM="#60A5FA",RM="#F472B6",Uy=e=>e===2?Ct("worldcup.final"):Ct("worldcup.roundOf",{n:e});function _M({worldcup:e,myChoice:t,onVote:n}){const i=sr(),s=e.type==="worldcup-end",l=e.type==="match-result",c=!l&&!s,u=t!==null||l||s,[p,h]=w.useState(()=>Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));w.useEffect(()=>{if(!c)return;const P=()=>h(Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));P();const j=setInterval(P,1e3);return()=>clearInterval(j)},[e.expiresAt,c]);const[g,f]=w.useState(!1),b=e.left,y=e.right,v=(b?.count??0)+(y?.count??0),S=P=>v>0?Math.round(P/v*100):0,T=l||s?b.count>y.count?b.seed:y.count>b.count?y.seed:Math.min(b.seed,y.seed):null;if(g&&!s)return m.jsxs("button",{onClick:()=>f(!1),className:Pa,children:[m.jsx("span",{className:"shrink-0 font-bold text-yellow-400",children:"🏆"}),m.jsx("span",{className:"min-w-0 truncate font-bold text-gray-200",children:Uy(e.round)}),m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:[e.matchIndex,"/",e.matchTotal]}),c&&m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",i("common.seconds",{n:p})]}),m.jsx("span",{className:"shrink-0 text-white/30",children:"▾"})]});if(s){const P=e.champion;return m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-5 text-center shadow-xl backdrop-blur",children:[m.jsx("div",{className:"mb-1 text-[11px] font-bold tracking-wide text-yellow-400",children:i("worldcup.title")}),m.jsx("p",{className:"mb-3 text-xs text-white/50",children:e.title}),P?m.jsxs(m.Fragment,{children:[P.imageUrl&&m.jsx("img",{src:P.imageUrl,alt:P.label,className:"mx-auto mb-3 h-32 w-32 rounded-xl object-cover",onError:j=>{j.currentTarget.style.display="none"}}),m.jsxs("div",{className:"text-lg font-extrabold text-yellow-300",children:["👑 ",P.label]}),m.jsx("div",{className:"mt-1 text-xs text-white/50",children:i("worldcup.champion")})]}):m.jsx("div",{className:"py-4 text-sm text-white/60",children:i("worldcup.ended")})]})}const R=(P,j)=>{const D=t===P.seed,E=T===P.seed;return m.jsxs("button",{onClick:()=>{c&&n(e.worldcupId,e.matchId,P.seed)},disabled:!c,className:`relative flex flex-1 flex-col items-center overflow-hidden rounded-xl border p-2 transition-colors ${c?"cursor-pointer hover:bg-white/5":""}`,style:{borderColor:D||E?j:"rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.03)"},children:[P.imageUrl&&m.jsx("img",{src:P.imageUrl,alt:P.label,className:"mb-2 h-24 w-full rounded-lg object-cover",onError:C=>{C.currentTarget.style.display="none"}}),m.jsxs("span",{className:"line-clamp-2 text-center text-sm font-bold text-gray-100",children:[P.label,E&&m.jsx("span",{className:"ml-1",children:"👑"})]}),D&&m.jsx("span",{className:"mt-0.5 text-[10px] text-white/60",children:i("common.myChoicePlain")}),u&&m.jsxs("span",{className:"mt-1 text-sm font-bold tabular-nums",style:{color:j},children:[S(P.count),"% ",m.jsxs("span",{className:"text-[11px] text-white/50",children:["(",P.count,")"]})]})]})};return m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsxs("span",{className:"text-[11px] font-bold tracking-wide text-yellow-400",children:["🏆 ",Uy(e.round)," · ",e.matchIndex,"/",e.matchTotal]}),m.jsxs("div",{className:"flex items-center gap-2",children:[c?m.jsx("span",{className:"text-[11px] font-bold tabular-nums text-white/50",children:i("common.seconds",{n:p})}):m.jsx("span",{className:"text-[11px] font-bold text-white/40",children:i("worldcup.result")}),m.jsx("button",{onClick:()=>f(!0),"aria-label":i("common.collapse"),className:"flex items-center gap-0.5 rounded-full bg-white/10 px-2 py-0.5 text-[10px] font-bold text-white/70 transition-colors hover:bg-white/20 hover:text-white",children:i("worldcup.collapse")})]})]}),m.jsx("p",{className:"mb-3 break-words text-center text-sm font-bold leading-snug text-gray-100",children:e.title}),m.jsxs("div",{className:"flex items-stretch gap-2",children:[R(b,NM),m.jsx("div",{className:"flex items-center text-xs font-extrabold text-white/40",children:"VS"}),R(y,RM)]}),m.jsx("p",{className:"mt-2 text-center text-[11px] text-white/40",children:c?u?i("poll.canChange").trim().replace(/^·\s*/,""):i("worldcup.pickOne"):i("worldcup.nextMatch")})]})}const TM=60,IM=40,Cu=8;function LM({onCreate:e,onClose:t}){const[n,i]=w.useState(""),[s,l]=w.useState(()=>Array.from({length:Cu},()=>({label:"",imageUrl:""}))),[c,u]=w.useState({});w.useEffect(()=>{fetch(`${nt}/worldcup/presets`).then(v=>v.json()).then(v=>u(v||{})).catch(()=>{})},[]);const p=(v,S)=>l(T=>T.map((R,P)=>P===v?{...R,label:S}:R)),h=(v,S)=>l(T=>T.map((R,P)=>P===v?{...R,ima
551geUrl:S}:R)),g=v=>{const S=c[v];S&&(i(S.title),l(S.items.slice(0,Cu).map(T=>({label:T.label,imageUrl:T.imageUrl||""}))))},f=s.filter(v=>v.label.trim().length>0).length,b=n.trim().length>0&&f===Cu,y=()=>{b&&(e(n,s),t())};return m.jsx("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-black/70 p-4",onClick:t,children:m.jsxs("div",{className:"max-h-[85vh] w-full max-w-sm overflow-y-auto rounded-2xl border border-white/10 bg-[#1d1d1d] p-5 shadow-2xl",onClick:v=>v.stopPropagation(),children:[m.jsx("h2",{className:"mb-4 text-sm font-bold text-yellow-400",children:"🏆 이상형 월드컵 만들기 (8강)"}),Object.keys(c).length>0&&m.jsxs("div",{className:"mb-3",children:[m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:"프리셋 불러오기"}),m.jsxs("select",{defaultValue:"",onChange:v=>{g(v.target.value),v.target.value=""},className:"w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none focus:border-yellow-400/60",children:[m.jsx("option",{value:"",disabled:!0,children:"테마 선택…"}),Object.entries(c).map(([v,S])=>m.jsx("option",{value:v,children:S.title},v))]})]}),m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:"제목"}),m.jsx("input",{value:n,onChange:v=>i(v.target.value),maxLength:TM,placeholder:"예: 최애 간식 월드컵",className:"mb-3 w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none focus:border-yellow-400/60"}),m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:"후보 8개 (이미지 URL은 선택)"}),m.jsx("div",{className:"space-y-2",children:s.map((v,S)=>m.jsxs("div",{className:"flex items-center gap-2",children:[v.imageUrl?.trim()?m.jsx("img",{src:v.imageUrl,alt:"",className:"h-9 w-9 shrink-0 rounded object-cover",onError:T=>{T.currentTarget.style.visibility="hidden"}}):m.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded bg-white/5 text-[10px] text-white/40",children:S+1}),m.jsxs("div",{className:"flex w-full flex-col gap-1",children:[m.jsx("input",{value:v.label,onChange:T=>p(S,T.target.value),maxLength:IM,placeholder:`후보 ${S+1}`,className:"w-full rounded-lg border border-white/15 bg-white/5 px-2.5 py-1.5 text-sm text-gray-100 outline-none focus:border-yellow-400/60"}),m.jsx("input",{value:v.imageUrl??"",onChange:T=>h(S,T.target.value),placeholder:"이미지 URL (선택, https)",className:"w-full rounded-lg border border-white/10 bg-white/5 px-2.5 py-1 text-[11px] text-white/70 outline-none focus:border-white/30"})]})]},S))}),m.jsxs("div",{className:"mt-4 flex gap-2",children:[m.jsx("button",{onClick:t,className:"flex-1 rounded-lg border border-white/15 px-3 py-2 text-sm text-white/70 hover:bg-white/5",children:"취소"}),m.jsxs("button",{onClick:y,disabled:!b,className:"flex-1 rounded-lg bg-yellow-400 px-3 py-2 text-sm font-bold text-black disabled:opacity-40",children:["시작 (",f,"/",Cu,")"]})]})]})})}function AM({quiz:e}){const t=sr(),n=e.type==="quiz-win",i=e.type==="quiz-close",s=n||i,[l,c]=w.useState(()=>Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));w.useEffect(()=>{if(s)return;const g=()=>c(Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));g();const f=setInterval(g,1e3);return()=>clearInterval(f)},[e.expiresAt,s]);const[u,p]=w.useState(!1),h=e.imageUrl?`${nt}${e.imageUrl}`:null;return u&&!s?m.jsxs("button",{onClick:()=>p(!1),className:Pa,children:[m.jsx("span",{className:"shrink-0 font-bold text-yellow-400",children:"🧠"}),m.jsx("span",{className:"min-w-0 truncate font-bold text-gray-200",children:t("quiz.title")}),m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",t("common.seconds",{n:l})]}),m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 shrink-0 text-white/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})]}):m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[h&&m.jsx("img",{src:h,alt:"",className:"mb-3 max-h-56 w-full rounded-lg object-contain",onError:g=>{g.currentTarget.style.display="none"}}),m.jsxs("div",{className:"mb-3 flex items-start justify-between gap-2",children:[m.jsx("p",{className:"break-words text-lg font-bold leading-snug text-gray-100",children:e.question}),!s&&m.jsx("button",{onClick:()=>p(!0),"aria-label":t("common.collapse"),className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-white/10 text-white/70 transition-colors hover:bg-white/20 hover:text-white",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]}),n?m.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:t("common.answerLabel")}),m.jsx("div",{className:"mt-0.5 break-words text-base font-bold text-yellow-300",children:e.answer}),m.jsx("div",{className:"mt-1.5 text-[11px] text-white/45",children:t("common.guessedBy",{nickname:e.winnerNickname})})]}):i?m.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:t("common.answerLabel")}),m.jsx("div",{className:"mt-0.5 break-words text-base font-bold text-gray-200",children:e.answer}),m.jsxs("div",{className:"mt-1.5 text-[11px] text-white/45",children:[t("common.timeUp")," · ",t("common.nobodyGotIt")]})]}):m.jsxs("div",{className:"mt-2 flex items-start justify-between gap-2 text-[11px] text-white/40",children:[m.jsx("span",{className:"text-left",children:t("quiz.guessInChat")}),m.jsx("span",{className:"shrink-0 tabular-nums",children:t("common.secondsLeft",{n:l})})]})]})}const OM=200,PM=500,Np=[{id:"common",label:"상식 퀴즈",icon:"💡",desc:"역사, 과학, 지리 등 상식 문제"},{id:"emoji",label:"이모지 퀴즈",icon:"🎬",desc:"이모지로 영화, 속담, 음식 맞히기"},{id:"choseong",label:"초성 퀴즈",icon:"🔤",desc:"초성 힌트로 단어 맞히기"},{id:"nonsense",label:"넌센스 퀴즈",icon:"🤪",desc:"말장난·발상 문제"},{id:"idiom",label:"사자성어 퀴즈",icon:"📜",desc:"뜻을 보고 사자성어 맞히기"}],Vy={common:[{question:"세계에서 가장 면적이 넓은 나라는?",answers:"러시아, russia"},{question:"세계에서 가장 높은 산은?",answers:"에베레스트, 에베레스트산, everest"},{question:"훈민정음을 창제한 조선의 국왕은?",answers:"세종대왕, 세종"},{question:"태양계에서 가장 큰 행성은?",answers:"목성, jupiter"},{question:"프랑스의 수도는?",answers:"파리, paris"}],emoji:[{question:"[영화] 🦁👑",answers:"라이온킹, 라이온 킹, the lion king"},{question:"[영화] 🚢🧊💔",answers:"타이타닉, titanic"},{question:"[속담] 🐯🪓🦶",answers:"믿는 도끼에 발등 찍힌다"},{question:"[음식] 🍕🍺",answers:"피맥, 피자 맥주"},{question:"[영화] 🧙‍♂️👓⚡🧹",answers:"해리포터, harry potter"}],choseong:[{question:"[과일] ㅂㄴㄴ",answers:"바나나"},{question:"[음식] ㄸㅂㅇ",answers:"떡볶이"},{question:"[동물] ㅋㄲㄹ",answers:"코끼리"},{question:"[영화] ㄱㅅㅊ",answers:"기생충"},{question:"[속담] ㄱㄴ ㅁㅇ ㄱㅇㅇ ㅇㄴ ㅁㅇ ㄱㄷ",answers:"가는 말이 고와야 오는 말이 곱다"}],nonsense:[{question:"문은 문인데 아무도 열 수 없는 문은?",answers:"소문"},{question:"방은 방인데 사람이 들어갈 수 없는 방은?",answers:"가방"},{question:"세상에서 가장 빠른 닭은?",answers:"후다닥"},{question:"아무리 먹어도 배부르지 않는 것은?",answers:"나이"},{question:"내 것인데 남이 더 많이 쓰는 것은?",answers:"이름"}],idiom:[{question:"고생 끝에 즐거움이 온다는 뜻의 사자성어는?",answers:"고진감래"},{question:"돌 하나로 새 두 마리를 잡는다는 뜻의 사자성어는?",answers:"일석이조"},{question:"시작은 용의 머리, 끝은 뱀의 꼬리라는 뜻의 사자성어는?",answers:"용두사미"},{question:"사방이 적으로 둘러싸여 도움받을 데 없는 처지는?",answers:"사면초가"},{question:"인생의 좋고 나쁨은 예측할 수 없다는 뜻의 사자성어는?",answers:"새옹지마"}]};function jM({initialCategory:e="common",onUploadImage:t,onCreate:n,onClose:i}){const[s,l]=w.useState(e),[c,u]=w.useState(null),[p,h]=w.useState(null),[g,f]=w.useState(""),[b,y]=w.useState(""),[v,S]=w.useState(!1),[T,R]=w.useState(!1),P=w.useRef(null),j=I=>{p&&URL.revokeObjectURL(p),u(I),h(I?URL.createObjectURL(I):null)},D=async(I=s)=>{if(!T){R(!0);try{const H=await fetch(`${nt}/quiz/random-quiz?category=${encodeURIComponent(I)}`);if(!H.ok)throw new Error(`HTTP ${H.status}`);const F=await H.json();
551if(F?.question&&F?.answers)f(F.question),y(F.answers);else throw new Error("Invalid payload")}catch(H){console.warn("[quiz] 랜덤 문제 받기 실패, 폴백 사용:",H);const F=Vy[I]||Vy.common,$=F[Math.floor(Math.random()*F.length)];f($.question),y($.answers)}finally{R(!1)}}};w.useEffect(()=>{D(e)},[e]);const E=I=>{l(I),D(I)},C=g.trim().length>0&&b.trim().length>0&&!v,L=async()=>{if(!C)return;let I=null;c&&(S(!0),I=await t(c),S(!1),I===null)||(n(I,g.trim(),b.trim()),i())};return m.jsx("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-black/70 p-4",onClick:i,children:m.jsxs("div",{className:"max-h-[90vh] w-full max-w-sm overflow-y-auto rounded-2xl border border-white/10 bg-[#1d1d1d] p-5 shadow-2xl",onClick:I=>I.stopPropagation(),children:[m.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[m.jsx("h2",{className:"text-sm font-bold text-yellow-400",children:"🧠 퀴즈 만들기"}),m.jsx("span",{className:"text-[11px] text-white/40",children:"주사위로 문제 뽑기"})]}),m.jsx("div",{className:"mb-3 flex flex-wrap gap-1.5 rounded-xl bg-black/30 p-1",children:Np.map(I=>{const H=s===I.id;return m.jsxs("button",{type:"button",onClick:()=>E(I.id),className:`flex flex-1 basis-[28%] items-center justify-center gap-1 whitespace-nowrap rounded-lg px-2 py-1.5 text-xs font-semibold transition-all ${H?"bg-yellow-400 text-black shadow-md shadow-yellow-400/20":"text-white/60 hover:bg-white/5 hover:text-white"}`,children:[m.jsx("span",{children:I.icon}),m.jsx("span",{children:I.label.replace(" 퀴즈","")})]},I.id)})}),m.jsxs("button",{type:"button",onClick:()=>D(s),disabled:T,className:"mb-4 flex w-full items-center justify-center gap-2 rounded-xl border border-yellow-400/30 bg-gradient-to-r from-yellow-500/15 via-yellow-400/20 to-amber-500/15 px-3 py-2 text-xs font-bold text-yellow-300 transition-all hover:border-yellow-400/50 hover:bg-yellow-400/25 active:scale-[0.98] disabled:opacity-50",children:[m.jsx("span",{className:`text-base transition-transform ${T?"animate-spin":""}`,children:T?"⏳":"🎲"}),m.jsx("span",{children:T?"문제 뽑는 중...":"주사위 돌려 문제 뽑기 (새로고침)"})]}),m.jsx("input",{ref:P,type:"file",accept:"image/*",onChange:I=>j(I.target.files?.[0]??null),className:"hidden"}),m.jsx("button",{onClick:()=>P.current?.click(),className:"mb-3 w-full overflow-hidden rounded-lg border border-dashed border-white/20 transition-colors hover:bg-white/5",children:p?m.jsxs("div",{className:"relative",children:[m.jsx("img",{src:p,alt:"",className:"max-h-36 w-full object-contain p-1"}),m.jsx("span",{className:"absolute bottom-1 right-2 rounded bg-black/60 px-1.5 py-0.5 text-[10px] text-white/70",children:"사진 변경"})]}):m.jsx("span",{className:"block px-3 py-2.5 text-xs text-white/50",children:"📷 이미지 첨부 (선택)"})}),m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsx("label",{className:"text-[11px] font-medium text-white/70",children:"질문"}),m.jsx("span",{className:"text-[10px] text-yellow-400/70",children:(()=>{const I=Np.find(H=>H.id===s)??Np[0];return`${I.icon} ${I.label}`})()})]}),m.jsx("input",{value:g,onChange:I=>f(I.target.value),maxLength:OM,placeholder:"질문을 입력하거나 주사위를 굴리세요",className:"mb-3 w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none transition-colors focus:border-yellow-400/60",autoFocus:!0}),m.jsx("label",{className:"mb-1 block text-[11px] font-medium text-white/70",children:"정답 (여러 개면 쉼표로 구분)"}),m.jsx("input",{value:b,onChange:I=>y(I.target.value),maxLength:PM,placeholder:"예: 정답1, 정답2",onKeyDown:I=>{Ss(I)&&L()},className:"mb-1 w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none transition-colors focus:border-yellow-400/60"}),m.jsx("p",{className:"mb-4 text-[10px] text-white/40",children:"공백·대소문자는 무시하고 채점돼요. (예: '라이온킹'ê³¼ '라이온 킹' 모두 정답 처리)"}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:i,className:"flex-1 rounded-lg border border-white/15 px-3 py-2 text-sm text-white/70 transition-colors hover:bg-white/5",children:"취소"}),m.jsx("button",{onClick:L,disabled:!C,className:"flex-1 rounded-lg bg-yellow-400 px-3 py-2 text-sm font-bold text-black transition-opacity hover:bg-yellow-300 disabled:opacity-40",children:v?"업로드 ì
551¤‘…":"시작 🚀"})]})]})})}function MM({race:e}){const t=sr(),n=e.type==="typerace-win",i=e.type==="typerace-close",s=n||i,[l,c]=w.useState(()=>Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));w.useEffect(()=>{if(s)return;const h=()=>c(Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));h();const g=setInterval(h,1e3);return()=>clearInterval(g)},[e.expiresAt,s]);const[u,p]=w.useState(!1);return u&&!s?m.jsxs("button",{onClick:()=>p(!1),className:Pa,children:[m.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full bg-yellow-400"}),m.jsx("span",{className:"min-w-0 truncate font-bold text-gray-200",children:t("typerace.title")}),m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",t("common.seconds",{n:l})]}),m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 shrink-0 text-white/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})]}):m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[m.jsxs("div",{className:"mb-3 flex items-start justify-between gap-2",children:[m.jsx("span",{className:"text-[11px] font-bold tracking-wide text-yellow-400",children:t("typerace.header")}),!s&&m.jsx("button",{onClick:()=>p(!0),"aria-label":t("common.collapse"),className:"-mt-1 flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-white/5 text-white/50 transition-colors hover:bg-white/10 hover:text-white/80",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]}),m.jsx("p",{className:"select-none break-words rounded-xl border border-white/10 bg-white/[0.04] px-4 py-4 text-center text-[17px] font-semibold leading-relaxed text-gray-100",children:pM(e)}),n?m.jsxs("div",{className:"mt-3 rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:t("typerace.winLabel")}),m.jsx("div",{className:"mt-0.5 truncate text-sm font-bold text-yellow-300",children:e.winnerNickname}),m.jsx("div",{className:"mt-1 text-[11px] text-white/40",children:t("typerace.winNote")})]}):i?m.jsx("div",{className:"mt-3 rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center text-sm text-white/55",children:t("typerace.timeUp")}):m.jsxs("div",{className:"mt-3 flex items-start justify-between gap-3 text-[11px] text-white/40",children:[m.jsx("span",{className:"break-keep text-left",children:t("typerace.instruction")}),m.jsx("span",{className:"shrink-0 tabular-nums",children:t("common.secondsLeft",{n:l})})]})]})}function DM({reaction:e,onTap:t}){const n=sr(),i=e.type==="reaction-win",s=e.type==="reaction-close",l=e.state==="GO"&&!i&&!s;return m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[m.jsx("div",{className:"mb-3 text-[11px] font-bold tracking-wide text-yellow-400",children:n("reaction.title")}),i?m.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-6 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:n("reaction.winLabel")}),m.jsx("div",{className:"mt-1 truncate text-base font-bold text-gray-100",children:e.winnerNickname}),m.jsxs("div",{className:"mt-4 flex items-baseline justify-center gap-1",children:[m.jsx("span",{className:"text-3xl font-bold tabular-nums text-yellow-300",children:e.reactionMs}),m.jsx("span",{className:"text-xs text-white/40",children:"ms"})]})]}):s?m.jsx("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-6 text-center text-sm text-white/55",children:n("reaction.nobody")}):m.jsxs("button",{onClick:t,className:"flex h-32 w-full flex-col items-center justify-center gap-2 rounded-xl border transition-colors",style:{background:l?"rgba(34,197,94,0.14)":"rgba(239,68,68,0.05)",borderColor:l?"rgba(34,197,94,0.55)":"rgba(239,68,68,0.30
551)"},children:[m.jsx("span",{className:"h-2.5 w-2.5 rounded-full",style:{background:l?"#22C55E":"#EF4444",boxShadow:l?"0 0 10px rgba(34,197,94,0.7)":"none",opacity:l?1:.65}}),m.jsx("span",{className:`text-xl font-bold ${l?"text-green-300":"text-white/70"}`,children:n(l?"reaction.now":"reaction.ready")}),m.jsx("span",{className:"break-keep px-4 text-center text-[11px] leading-relaxed text-white/40",children:n(l?"reaction.firstWins":"reaction.hint")})]})]})}const Ky=[{name:"검정",hex:"#111111",rgb:[17,17,17]},{name:"빨강",hex:"#ef4444",rgb:[239,68,68]},{name:"파랑",hex:"#3b82f6",rgb:[59,130,246]},{name:"초록",hex:"#22c55e",rgb:[34,197,94]},{name:"노랑",hex:"#facc15",rgb:[250,204,21]},{name:"주황",hex:"#f97316",rgb:[249,115,22]},{name:"보라",hex:"#a855f7",rgb:[168,85,247]},{name:"분홍",hex:"#ec4899",rgb:[236,72,153]}];function FM(e){const t=e.replace(/^#/,""),n=parseInt(t,16),i=n>>16&255,s=n>>8&255,l=n&255;return[i,s,l]}const Yy=[2,4,8,16],zM={name:"지우개",hex:"#FFFFFF",rgb:[255,255,255]},ba=480,va=360,GM=60;function BM({catchmind:e,strokes:t,senderId:n,onDraw:i,onClear:s}){const l=sr(),c=n===e.creatorSenderId,u=e.type==="catchmind-win",p=e.type==="catchmind-close",h=u||p,g=w.useRef(null),f=w.useRef(null),[b,y]=w.useState(Ky[0]),[v,S]=w.useState("#8b5cf6"),[T,R]=w.useState(Yy[1]),[P,j]=w.useState(!1),D=w.useRef(!1),E=w.useRef([]),C=w.useRef(null),L=w.useRef(null),I=w.useRef(0),H=w.useRef(!1),[F,$]=w.useState(!1),[Y,ce]=w.useState(50),[ae,ie]=w.useState({x:75,y:75}),re=w.useRef(null),pe=w.useRef(!1),X=w.useRef(!1),J=()=>{$(Ce=>!Ce)},_=Ce=>{Ce.stopPropagation();const We=re.current;if(!We)return;const Xe=We.getBoundingClientRect();let dt=0,gt=0;if("touches"in Ce){const at=Ce.touches[0]||Ce.changedTouches[0];if(!at)return;dt=at.clientX,gt=at.clientY}else dt=Ce.clientX,gt=Ce.clientY;const Zt=Math.max(0,Math.min(149,dt-Xe.left)),Z=Math.max(0,Math.min(149,gt-Xe.top)),Q=75,Ie=75,Pe=75,ue=Zt-Q,ft=Z-Ie,ct=Math.sqrt(ue*ue+ft*ft);let bt=Zt,Jt=Z;ct>Pe&&(bt=Q+ue/ct*Pe,Jt=Ie+ft/ct*Pe);const en=We.getContext("2d");if(en){const at=en.getImageData(Math.floor(bt),Math.floor(Jt),1,1).data,tn=[at[0],at[1],at[2]],Pt=qy(at[0],at[1],at[2]);y({name:"커스텀",hex:Pt,rgb:tn}),S(Pt),ie({x:bt,y:Jt})}},z=Ce=>{pe.current=!0,_(Ce)},te=Ce=>{pe.current&&_(Ce)},A=()=>{pe.current=!1},Ee=Ce=>{const We=parseInt(Ce.target.value);ce(We);const Xe=re.current;if(!Xe)return;Xy(Xe,We/100);const dt=Xe.getContext("2d");if(dt){const gt=dt.getImageData(Math.floor(ae.x),Math.floor(ae.y),1,1).data,Zt=[gt[0],gt[1],gt[2]],Z=qy(gt[0],gt[1],gt[2]);y({name:"커스텀",hex:Z,rgb:Zt}),S(Z)}};w.useEffect(()=>{if(F){const Ce=re.current;if(Ce&&(Xy(Ce,Y/100),!X.current)){const We=$M(v,Ce.width,Ce.height);ie(We)}}X.current=F},[F,Y]);const[de,we]=w.useState(()=>Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));w.useEffect(()=>{if(h)return;const Ce=()=>we(Math.max(0,Math.ceil((e.expiresAt-Date.now())/1e3)));Ce();const We=setInterval(Ce,1e3);return()=>clearInterval(We)},[e.expiresAt,h]);const[Te,Se]=w.useState(!1),Ae=w.useRef(0),Qe=w.useRef([]),vt=w.useRef(t);vt.current=t;const it=w.useCallback((Ce,We)=>{Ce.fillStyle="#FFFFFF",Ce.fillRect(0,0,ba,va);for(const Xe of We)_p(Ce,Xe);E.current.length>0&&_p(Ce,E.current)},[]),Ye=w.useCallback(Ce=>{if(g.current=Ce,!Ce)return;const We=Ce.getContext("2d");We&&(f.current=We,We.lineCap="round",We.lineJoin="round",it(We,vt.current),Ae.current=vt.current.length,Qe.current=vt.current)},[it]);w.useEffect(()=>{const Ce=f.current;if(!Ce)return;const We=Qe.current,Xe=Ae.current;if(t.length>=Xe&&(Xe===0||We[Xe-1]===t[Xe-1]))for(let gt=Xe;gt<t.length;gt++)_p(Ce,t[gt]);else it(Ce,t);Ae.current=t.length,Qe.current=t},[t,it]);const Rt=P?zM:b,dn=w.useCallback((Ce,We,Xe)=>Ce==="pen"&&We>0?Math.max(1,Math.round(Xe*(.35+We*1.3)*10)/10):Xe,[]),Un=w.useCallback(Ce=>{if(!c||h||L.current!==null)return;Ce.preventDefault();const We=g.current;if(!We)return;const Xe=We.getBoundingClientRect(),dt=(Ce.clientX-Xe.left)*(ba/Xe.width),gt=(Ce.clientY-Xe.top)*(va/Xe.height);try{We.setPointerCapture(Ce.pointerId)}catch{}L.current=Ce.pointerId,D.current=!0,H.current=!1,C.current={x:dt,y:gt},I.current=Date.now();const Zt=P?T*3:T,Z=dn(Ce.pointerType,Ce.pressure,Zt);E.current=[[dt,gt,...Rt.rgb,Z]];const Q=f.current;Q&&(Q.beginPath(),Q.arc(dt,gt,Z/2,0,Math.PI*2),Q.fillStyle=Rt.hex,Q.fill())},[c,h,Rt,T,P,dn]),fn=w.useCallback(Ce=>{if(!D.current||Ce.pointerId!==L.current||!c||h)return;Ce.preventDefault();const We=f.current,Xe=g.current;
551if(!We||!Xe||!C.current)return;const dt=Xe.getBoundingClientRect(),gt=ba/dt.width,Zt=va/dt.height,Z=P?T*3:T,Q=Ce.nativeEvent,Ie=typeof Q.getCoalescedEvents=="function"&&Q.getCoalescedEvents().length?Q.getCoalescedEvents():[Q];We.strokeStyle=Rt.hex,We.lineCap="round",We.lineJoin="round";for(const ue of Ie){const ft=(ue.clientX-dt.left)*gt,ct=(ue.clientY-dt.top)*Zt,bt=dn(ue.pointerType,ue.pressure,Z);We.lineWidth=bt,We.beginPath(),We.moveTo(C.current.x,C.current.y),We.lineTo(ft,ct),We.stroke(),E.current.push([ft,ct,...Rt.rgb,bt]),C.current={x:ft,y:ct}}const Pe=Date.now();if(Pe-I.current>=GM&&E.current.length>=2){I.current=Pe,H.current=!0;const ue=E.current;i(ue),E.current=[ue[ue.length-1]]}},[c,h,Rt,T,P,i,dn]),Pn=w.useCallback(Ce=>{if(Ce&&L.current!==null&&Ce.pointerId!==L.current)return;if(!D.current){L.current=null;return}D.current=!1,C.current=null,L.current=null;const We=E.current;(We.length>=2||We.length===1&&!H.current)&&i(We),E.current=[]},[i]),st=w.useCallback(()=>{const Ce=f.current;Ce&&(Ce.fillStyle="#FFFFFF",Ce.fillRect(0,0,ba,va)),Ae.current=0,s()},[s]);return Te&&!h?m.jsxs("button",{onClick:()=>Se(!1),className:Pa,children:[m.jsx("span",{className:"shrink-0 font-bold text-emerald-400",children:"🎨"}),m.jsx("span",{className:"min-w-0 max-w-[40vw] truncate font-bold text-gray-200",children:c?l("catchmind.drawingSelf"):l("catchmind.drawerOther",{nickname:e.creatorNickname??l("catchmind.title")})}),m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",l("common.seconds",{n:de})]}),m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 shrink-0 text-white/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})]}):m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-3 shadow-xl backdrop-blur",children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-emerald-400 font-bold text-sm",children:"🎨"}),c&&!h&&m.jsx("span",{className:"rounded bg-emerald-500/20 px-2 py-0.5 text-[10px] font-bold text-emerald-300",children:l("catchmind.wordLabel",{word:Eu(e)??"???"})}),!c&&!h&&m.jsx("span",{className:"text-sm font-bold tracking-[0.25em] text-gray-100",children:hM(e)||"○○○"}),h&&m.jsx("span",{className:"text-sm font-bold text-gray-100",children:l("catchmind.answerLabel",{answer:Eu(e)??""})})]}),!h&&m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("span",{className:"text-[11px] text-white/40 tabular-nums",children:l("common.seconds",{n:de})}),m.jsx("button",{onClick:()=>Se(!0),"aria-label":l("common.collapse"),className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-white/10 text-white/70 transition-colors hover:bg-white/20",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]})]}),!h&&m.jsxs("div",{className:"mb-2 flex items-center gap-1.5 text-[11px]",children:[m.jsx("span",{className:"inline-flex h-1.5 w-1.5 shrink-0 animate-pulse rounded-full bg-emerald-400"}),m.jsxs("span",{className:"min-w-0 truncate",children:[m.jsx("span",{className:"font-bold text-emerald-300",children:c?l("catchmind.drawerSelf"):l("catchmind.drawerOther",{nickname:e.creatorNickname??l("catchmind.someone")})}),m.jsx("span",{className:"text-white/50",children:l(c?"catchmind.predicateSelf":"catchmind.predicateOther")})]})]}),m.jsx("div",{className:"relative mb-2 overflow-hidden rounded-lg border border-white/10 bg-white",style:{aspectRatio:`${ba}/${va}`},children:m.jsx("canvas",{ref:Ye,width:ba,height:va,className:"w-full h-full",style:{touchAction:"none",cursor:c&&!h?"crosshair":"default"},onPointerDown:Un,onPointerMove:fn,onPointerUp:Pn,onPointerCancel:Pn,onPointerLeave:Pn})}),u&&m.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:l("common.answerLabel")}),m.jsx("div",{className:"mt-0.5 break-words text-base font-bold text-emerald-300",children:Eu(e)??""}),m.jsxs("div",{className:"mt-1.5 text-[11px] text-white/45",children:[l("catchmind.winner",{nickname:e.winnerNickname}),e.creatorNickname&&m.jsx("span",{className:"text-white/35",children:l("catchmind.drawnBy",{nickname:e.creatorNickname})})]})]}),p&&m.jsxs("div",{className:"rounded-xl border border-white/10 bg-white/[0.04] px-4 py-3 text-center",children:[m.jsx("div",{className:"text-[11px] tracking-wide text-white/40",children:l("common.answerLabel")}),m.jsx("div",{className:"mt-0.5 break-words text-base font-bold text-gray-200",children:Eu(e)??""}),m.jsxs("div",{className:"mt-1.5 text-[11px] text-white/45",children:[l("common.timeUp")," · ",l("catchmind.nobodyGotIt"),e.creatorNickname&&m.jsx("span",{className:"text-white/35",children:l("catchmind.drawnBy",{nickname:e.creatorNickname})})]})]}),c&&!h&&m.jsxs("div",{className:"relative mt-2 space-y-1.5",children:[F&&m.jsxs("div",{className:"absolute bottom-full left-0 z-50 mb
551-2 flex flex-col items-center gap-2.5 rounded-xl border border-white/15 bg-[#181818] p-3 shadow-2xl",onMouseDown:Ce=>Ce.stopPropagation(),children:[m.jsxs("div",{className:"relative cursor-crosshair select-none",onMouseDown:z,onMouseMove:te,onMouseUp:A,onTouchStart:z,onTouchMove:te,onTouchEnd:A,children:[m.jsx("canvas",{ref:re,width:150,height:150,className:"rounded-full"}),m.jsx("div",{className:"pointer-events-none absolute h-4 w-4 -ml-2 -mt-2 rounded-full border-2 border-white shadow-[0_0_4px_rgba(0,0,0,0.6)]",style:{left:ae.x,top:ae.y,backgroundColor:v}})]}),m.jsxs("div",{className:"w-full space-y-1",children:[m.jsxs("div",{className:"flex justify-between text-[10px] text-white/50",children:[m.jsx("span",{children:l("catchmind.darker")}),m.jsx("span",{children:l("catchmind.brightness",{value:Y})}),m.jsx("span",{children:l("catchmind.brighter")})]}),m.jsx("input",{type:"range",min:"10",max:"90",value:Y,onChange:Ee,className:"h-1 w-full cursor-pointer appearance-none rounded-lg",style:{background:`linear-gradient(to right, #000000, ${v}, #ffffff)`}})]}),m.jsxs("div",{className:"flex w-full items-center justify-between gap-3 mt-1 pt-1.5 border-t border-white/5",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[m.jsx("div",{className:"h-5 w-5 rounded-md border border-white/10",style:{backgroundColor:v}}),m.jsx("span",{className:"text-[10px] font-mono text-white/70 uppercase",children:v})]}),m.jsx("button",{onClick:()=>$(!1),className:"rounded bg-white/10 px-2 py-0.5 text-[10px] font-bold text-white/80 hover:bg-white/20",children:l("common.confirm")})]})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[Ky.map(Ce=>m.jsx("button",{onClick:()=>{y(Ce),j(!1),$(!1)},className:`h-6 w-6 rounded-full border-2 transition-all ${!P&&b.name===Ce.name?"border-white scale-125":"border-transparent hover:border-white/40"}`,style:{backgroundColor:Ce.hex},"aria-label":Ce.name},Ce.name)),m.jsx("button",{onClick:J,className:`relative h-6 w-6 rounded-full border-2 transition-all ${!P&&b.name==="커스텀"?"border-white scale-125":"border-transparent hover:border-white/40"}`,style:{background:b.name==="커스텀"?v:"linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff)"},"aria-label":l("catchmind.customColor")}),m.jsx("button",{onClick:()=>{j(!0),$(!1)},className:`ml-1 flex h-6 w-6 items-center justify-center rounded-full border-2 text-[10px] transition-all ${P?"border-white scale-125 bg-white/90":"border-transparent bg-white/20 hover:border-white/40"}`,"aria-label":l("catchmind.eraser"),children:"🧹"})]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[Yy.map(Ce=>m.jsx("button",{onClick:()=>R(Ce),className:`flex h-7 items-center justify-center rounded-md px-2 text-[10px] font-bold transition-all ${T===Ce?"bg-white/20 text-white":"bg-white/5 text-white/50 hover:bg-white/10"}`,children:m.jsx("span",{className:"rounded-full inline-block",style:{width:Math.min(Ce*1.5,18),height:Math.min(Ce*1.5,18),backgroundColor:P?"#999":b.hex}})},Ce)),m.jsx("button",{onClick:st,className:"ml-auto rounded-md bg-red-500/20 px-2 py-1 text-[10px] font-bold text-red-300 hover:bg-red-500/30",children:l("catchmind.clearAll")})]})]}),!c&&!h&&m.jsx("div",{className:"mt-2 text-center text-[11px] text-white/40",children:l("catchmind.guessInChat")})]})}function Xy(e,t){const n=e.getContext("2d");if(!n)return;const i=e.width,s=e.height,l=i/2,c=s/2,u=Math.min(l,c),p=n.createImageData(i,s),h=p.data;for(let g=0;g<s;g++)for(let f=0;f<i;f++){const b=f-l,y=g-c,v=Math.sqrt(b*b+y*y);if(v<=u){const T=Math.atan2(y,b)*180/Math.PI+180,R=v/u*100,[P,j,D]=WM(T/360,R/100,t),E=(g*i+f)*4;h[E]=P,h[E+1]=j,h[E+2]=D,h[E+3]=255}else{const S=(g*i+f)*4;h[S+3]=0}}n.putImageData(p,0,0)}function WM(e,t,n){let i,s,l;if(t===0)i=s=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Rp(u,c,e+1/3),s=Rp(u,c,e),l=Rp(u,c,e-1/3)}return[Math.round(i*255),Math.round(s*255),Math.round(l*255)]}function Rp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}
551function qy(e,t,n){const i=s=>{const l=s.toString(16);return l.length===1?"0"+l:l};return"#"+i(e)+i(t)+i(n)}function HM(e,t,n){e/=255,t/=255,n/=255;const i=Math.max(e,t,n),s=Math.min(e,t,n);let l=0,c=0,u=(i+s)/2;if(i!==s){const p=i-s;switch(c=u>.5?p/(2-i-s):p/(i+s),i){case e:l=(t-n)/p+(t<n?6:0);break;case t:l=(n-e)/p+2;break;case n:l=(e-t)/p+4;break}l/=6}return[Math.round(l*360),Math.round(c*100),Math.round(u*100)]}function $M(e,t,n){const i=FM(e),[s,l]=HM(i[0],i[1],i[2]),c=t/2,u=n/2,p=Math.min(c,u),h=(s-180)*Math.PI/180,g=l/100*p;return{x:c+g*Math.cos(h),y:u+g*Math.sin(h)}}function _p(e,t){if(t.length===0)return;const n=t[0];if(t.length===1){const i=n[5]??7;e.beginPath(),e.arc(n[0],n[1],i/2,0,Math.PI*2),e.fillStyle=`rgb(${n[2]},${n[3]},${n[4]})`,e.fill();return}e.lineCap="round",e.lineJoin="round";for(let i=1;i<t.length;i++){const s=t[i];e.strokeStyle=`rgb(${s[2]},${s[3]},${s[4]})`,e.lineWidth=s[5]??7,e.beginPath(),e.moveTo(t[i-1][0],t[i-1][1]),e.lineTo(s[0],s[1]),e.stroke()}}const UM=100;function VM({onCreate:e,onClose:t}){const n=sr(),[i,s]=w.useState(""),[l,c]=w.useState(void 0),[u,p]=w.useState(!1),h=i.trim().length>0,g=()=>{h&&(e(i,l),t())},f=async()=>{if(!u){p(!0);try{const y=await(await fetch(`${nt}/catchmind/random-word`,jl({method:"POST",headers:{"Content-Type":"application/json"},body:"{}"}))).json();if(y?.word){s(y.word);const v=[y.wordKo,y.wordEn].filter(Boolean).join(", ");c(v||void 0)}}catch(b){console.warn("[catchmind] 랜덤 단어 받기 실패:",b)}finally{p(!1)}}};return m.jsx("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-black/70 p-4",onClick:t,children:m.jsxs("div",{className:"max-h-[85vh] w-full max-w-sm overflow-y-auto rounded-2xl border border-white/10 bg-[#1d1d1d] p-5 shadow-2xl",onClick:b=>b.stopPropagation(),children:[m.jsx("h2",{className:"mb-4 text-sm font-bold text-emerald-400",children:n("catchmindComposer.title")}),m.jsxs("p",{className:"mb-3 break-keep text-[11px] text-white/50",children:[n("catchmindComposer.desc1"),m.jsx("br",{}),n("catchmindComposer.desc2")]}),m.jsx("label",{className:"mb-1 block text-[11px] text-white/50",children:n("catchmindComposer.label")}),m.jsxs("div",{className:"mb-1 flex gap-2",children:[m.jsx("input",{value:i,onChange:b=>{s(b.target.value),c(void 0)},maxLength:UM,placeholder:n("catchmindComposer.placeholder"),onKeyDown:b=>{Ss(b)&&g()},className:"w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-gray-100 outline-none focus:border-emerald-400/60",autoFocus:!0}),m.jsx("button",{type:"button",onClick:f,disabled:u,title:n("catchmindComposer.randomTitle"),className:"shrink-0 rounded-lg border border-emerald-400/40 bg-emerald-500/10 px-3 py-2 text-sm font-bold text-emerald-300 transition-colors hover:bg-emerald-500/20 disabled:opacity-50",children:u?"⏳":"🎲"})]}),m.jsxs("p",{className:"mb-4 break-keep text-[10px] text-white/40",children:[n("catchmindComposer.note1"),m.jsx("br",{}),n("catchmindComposer.note2")]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:t,className:"flex-1 rounded-lg border border-white/15 px-3 py-2 text-sm text-white/70 hover:bg-white/5",children:n("common.cancel")}),m.jsx("button",{onClick:g,disabled:!h,className:"flex-1 rounded-lg bg-emerald-500 px-3 py-2 text-sm font-bold text-white disabled:opacity-40",children:n("catchmindComposer.start")})]})]})})}function KM({liar:e,myWord:t,myVote:n,speech:i,senderId:s,onJoin:l,onVote:c}){const u=sr(),p=e.type==="liar-result"||e.type==="liar-cancel",[h,g]=w.useState(()=>Math.max(0,Math.ceil((e.phaseEndsAt-Date.now())/1e3)));w.useEffect(()=>{if(p)return;const L=()=>g(Math.max(0,Math.ceil((e.phaseEndsAt-Date.now())/1e3)));L();const I=setInterval(L,500);return()=>clearInterval(I)},[e.phaseEndsAt,p]);const f=e.participants.some(L=>L.senderId===s),b=e.participants.length,y=e.afkDeadlineAt??0,[v,S]=w.useState(()=>y?Math.max(0,Math.ceil((y-Date.now())/1e3)):0);w.useEffect(()=>{if(!y)return;const L=()=>S(Math.max(0,Math.ceil((y-Date.now())/1e3)));L();const I=setInterval(L,300);return()=>clearInterval(I)},[y]);const T=s in i,R=e.afkSeconds??30,[P,j]=w.useState(!1);w.useEffect(()=>{j(!1)},[e.gameId]),w.useEffect(()=>{f&&j(!1)},[e.phase,f]);const D=L=>m.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[m.jsx("p",{className:"text-[11px] font-bold tracking-wide text-purple-300",children:L}),m.jsxs("span",{className:"flex shrink-0 items-center gap-1.5 text-[11px] text-white/40",children:[m.jsx("span",{className:"rounded-full bg-white/[0.06] px-2 py-0.5 text-white/50",children:Ep(e.category,e.categoryEn)}),!p&&m.jsx("span",{className:"tabular-nums",children:u("common.seconds",{n:h})}),!p&&m.jsx("button",{onClick:()=>j(!0),"aria-label":u("common.collapse"),className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-white/5 text-white/50 transition-colors hover:bg-white/10 hover:text-white/80",children:m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 15l6-6 6 6"})})})]})]});if(P&&!p){const L=e.phase==="LOBBY"?u("liar.lobby",{count:b,max:e.maxPlayers}):e.phase==="VOTE"?u("liar.voting"):e.phase==="LIAR_GUESS"?u("liar.lastChance"):u("liar.playing");return m.jsxs("button",{onClick:()=>j(!1),className:Pa,children:[m.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full bg-purple-400"}),m.jsx("span",{className:"min-w-0 max-w-[40vw] truncate font-bold text-gray-200",children:L}),m.jsxs("span",{className:"shrink-0 text-white/40 tabular-nums",children:["· ",u("common.seconds",{n:h})]}),m.jsx("svg",{viewBox:"0 0 24 24",className:"h-3.5 w-3.5 shrink-0 text-white/40",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:"M6 9l6 6 6-6"})})]})}const E=m.jsx("div",{className:"mb-2 flex flex-wrap gap-1",children:e.participants.map(L=>m.jsx("span",{className:`min-w-0 max-w-[120px] truncate rounded-full px-2 py-0.5 text-[10px] ${L.senderId===s?"bg-purple-500/25 font-bold text-purple-200":"bg-white/5 text-white/55"}`,children:L.nickname},L.senderId))});let C;if(e.type==="liar-cancel")C=m.jsx("p",{className:"py-2 text-center text-sm text-white/60",children:e.resultReason==="NOT_ENOUGH_PLAYERS"?u("liar.cancelled",{min:e.minPlayers}):e.resultReason==="AFK_NOT_ENOUGH_PLAYERS"?u("liar.cancelledAfk",{min:e.minPlayers}):u("liar.ended")});else if(p){const L=e.result==="CITIZENS_WIN",I=e.result==="CANCELLED";C=m.jsxs("div",{children:[m.jsx("p",{className:`mb-1 text-center text-sm font-bold ${L?"text-emerald-300":I?"text-white/60":"text-rose-300"}`,children:u(I?"liar.resultCancelled":L?"liar.citizensWin":"liar.liarWin")}),!I&&m.jsxs("p",{className:"mb-3 text-center text-[11px] text-white/45",children:[e.resultReason==="GUESS_CORRECT"&&u("liar.reasonGuessCorrect"),e.resultReason==="GUESS_TIMEOUT"&&u("liar.reasonGuessTimeout"),e.resultReason==="VOTE_MISSED"&&u("liar.reasonVoteMissed"),e.resultReason==="VOTE_TIE"&&u("liar.reasonVoteTie"),e.resultReason==="LIAR_AFK"&&u("liar.reasonLiarAfk")]}),m.jsxs("div",{className:"mb-3 rounded-xl border border-white/10 bg-white/[0.04] p-3 text-center text-sm",children:[m.jsx("p",{className:"font-bold text-purple-200",children:u("liar.wasLiar",{nickname:e.liarNickname})}),m.jsxs("p",{className:"mt-1.5 break-keep text-[12px] text-white/60",children:[u("liar.citizenWordLabel")," ",m.jsxs("b",{className:"text-emerald-300",children:['"',Ep(e.citizenWord,e.citizenWordEn),'"']})," · ",u("liar.liarWordLabel")," ",m.jsxs("b",{className:"text-rose-300",children:['"',Ep(e.liarWord,e.liarWordEn),'"']})]})]}),e.voteCounts&&Object.keys(e.voteCounts).length>0&&(()=>{const H=$=>e.participants.find(Y=>Y.senderId===$)?.nickname??"?",F={};if(e.votes)for(const[$,Y]of Object.entries(e.votes))(F[Y]??=[]).push(H($));return m.jsx("div",{className:"space-y-1",children:e.participants.map($=>({...$,votes:e.voteCounts?.[$.senderId]??0})).filter($=>$.votes>0).sort(($,Y)=>Y.votes-$.votes).map($=>m.jsxs("div",{className:"text-[11px] text-white/55",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[m.jsx("span",{className:"truncate font-bold",children:$.nickname}),$.senderId===e.liarSenderId&&m.jsx("span",{className:"shrink-0 rounded-full bg-rose-500/15 px-1.5 py-px text-[9px] font-bold text-rose-300",children:u("liar.tagLiar")})]}),m.jsx("span",{className:"shrink-0 tabular-nums",children:u("liar.votes",{count:$.votes})})]}),F[$.senderId]&&m.jsxs("p",{className:"truncate pl-2 text-[10px] text-white/35",children:["← ",F[$.senderId].join(", ")
551]})]},$.senderId))})})()]})}else if(e.phase==="LOBBY")C=m.jsxs("div",{children:[m.jsxs("p",{className:"mb-2 break-keep text-[11px] text-white/50",children:[u("liar.howTo1"),m.jsx("br",{}),u("liar.howTo2")]}),m.jsxs("p",{className:"mb-2 break-keep rounded-lg border border-amber-400/25 bg-amber-400/[0.07] px-2.5 py-1.5 text-[11px] font-bold text-amber-200/90",children:["⏱ ",u("liar.afkNotice",{seconds:R})]}),b>0&&E,m.jsx("p",{className:"mb-2 text-center text-sm font-bold text-gray-200 tabular-nums",children:u("liar.playerCount",{count:b,max:e.maxPlayers})}),f?m.jsxs("div",{className:"w-full rounded-xl border border-purple-400/30 bg-purple-500/[0.08] px-3 py-2.5 text-center",children:[m.jsx("p",{className:"text-sm font-bold text-purple-200",children:u("liar.joined")}),m.jsx("p",{className:"mt-1 break-keep text-[11px] font-bold text-amber-200/90",children:u("liar.joinedHint",{seconds:R})})]}):m.jsx("button",{onClick:()=>l(e.gameId),className:"w-full rounded-xl bg-purple-500 px-3 py-3 text-sm font-bold text-white transition-colors hover:bg-purple-400",children:u("liar.join")}),m.jsx("p",{className:"mt-2 break-keep text-center text-[10px] text-white/40",children:u("liar.startHint",{min:e.minPlayers,max:e.maxPlayers})})]});else if(e.phase==="DESCRIBE")C=m.jsxs("div",{children:[m.jsx("div",{className:"mb-3 space-y-1.5",children:e.participants.map(L=>{const I=L.senderId in i,H=i[L.senderId],F=L.senderId===s;return m.jsxs("div",{className:"flex items-center gap-1.5 text-[11px]",children:[m.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${I?"bg-purple-300":"bg-white/15"}`}),m.jsxs("span",{className:`max-w-[100px] shrink-0 truncate font-bold ${I?"text-purple-200":"text-white/35"}`,children:[L.nickname,F&&u("liar.me")]}),m.jsx("span",{className:`min-w-0 flex-1 truncate ${I?"text-white/65":"text-white/25"}`,children:I?H||"…":u("liar.stillQuiet")})]},L.senderId)})}),f&&!T&&v>0&&m.jsx("p",{className:"mb-2 animate-pulse break-keep rounded-xl border border-rose-400/40 bg-rose-500/[0.12] px-3 py-2 text-center text-[12px] font-bold text-rose-200",children:u("liar.afkHurry",{seconds:v})}),f?m.jsxs("div",{className:"mb-2 rounded-xl border border-purple-400/30 bg-purple-500/[0.08] p-3 text-center",children:[m.jsx("p",{className:"text-[10px] tracking-wide text-white/45",children:u("liar.yourWord")}),m.jsx("p",{className:"mt-0.5 text-lg font-bold text-purple-200",children:t??"—"})]}):m.jsx("p",{className:"mb-2 py-1 text-center text-sm text-white/45",children:u("liar.spectating")}),m.jsxs("p",{className:"break-keep text-center text-[10px] text-white/40",children:[u("liar.describe1"),m.jsx("br",{}),u("liar.describe2")]})]});else if(e.phase==="VOTE")C=m.jsxs("div",{children:[m.jsx("p",{className:"mb-2 text-center text-sm font-bold text-gray-200",children:u("liar.whoIsLiar")}),f?m.jsx("div",{className:"space-y-1.5",children:e.participants.filter(L=>L.senderId!==s).map(L=>{const I=n===L.senderId,H=i[L.senderId];return m.jsxs("button",{onClick:()=>c(e.gameId,L.senderId),className:`w-full rounded-xl border px-3 py-2.5 text-left text-sm font-bold transition-colors ${I?"border-purple-400/70 bg-purple-500/15 text-purple-200":"border-white/10 bg-white/[0.04] text-gray-200 hover:bg-white/[0.08]"}`,children:[m.jsxs("span",{className:"block truncate",children:[L.nickname,I&&m.jsx("span",{className:"ml-1 text-[10px] text-white/60",children:u("liar.myVote")})]}),m.jsx("span",{className:"block truncate text-[10px] font-normal text-white/40",children:H?u("liar.saidQuote",{text:H}):u("liar.noComment")})]},L.senderId)})}):m.jsxs("div",{className:"space-y-1",children:[e.participants.map(L=>{const I=i[L.senderId];return m.jsxs("div",{className:"flex items-center gap-1.5 text-[11px]",children:[m.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${I?"bg-purple-300":"bg-white/15"}`}),m.jsx("span",{className:`max-w-[100px] shrink-0 truncate font-bold ${I?"text-purple-200":"text-white/35"}`,children:L.nickname}),m.jsx("span",{className:`min-w-0 flex-1 truncate ${I?"text-white/65":"text-white/25"}`,children:I??u("liar.noCommentPlain")})]},L.senderId)}),m.jsx("p",{className:"pt-2 text-center text-sm text-white/45",children:u("liar.othersVoting")})]}),m.jsxs("p",{className:"mt-2 text-center text-[11px] text-white/40 tabular-nums",children:[u("liar.voteProgress",{voted:e.votedCount,total:b}),f&&u("liar.canChangeVote")]})]});else{const L=e.accusedSenderId===s;C=m.jsxs("div",{className:"text-center",children:[m.jsx("p",{className:"mb-2 break-keep text-sm font-bold text-rose-300",children:u("liar.accused",{nickname:e.accusedNickname})}),L?m.jsxs("p",{className:"break-keep rounded-xl border border-rose-400/30 bg-rose-500/[0.08] p-3 text-[12px] font-bold text-rose-200",children:[u("liar.twistTitle"),m.jsx("br",{}),u("liar.twistBody",{seconds:h})]}):m.jsx("p",{className:"break-keep text-[11px] text-white/45",children:u("liar.twistWatch")})]})}return m.jsxs("div",{className:"pointer-events-auto w-[90vw] max-w-sm rounded-2xl border border-white/10 bg-[#1d1d1d]/95 p-4 shadow-xl backdrop-blur",children:[D(u("liar.title")),C]})}const YM="https://qr.kakaopay.com/281006011179561901002958",XM=250,qM=18,ZM=XM+qM,JM=720,QM=624,e4=1500,t4=3e4,n4=-50,r4=350,o4=[25,65,105],i4=[-25,-65,-105],s4=1500,a4=70,Nu=392,Xu=4,qh=8,qu=7,Zh=10,Eb=10,Cb=100,Nb=6,Rb=90,_b=36,l4=Xu+qh,c4=qu+Zh,Qr={cigarette:{hasA
551sh:!0,bodyH:Nu-Xu-qh-Gl,ash:{baseH:Xu,growth:1,thresholdScale:1},smoke:{sizeHold:40,sizeIdle:30,opacityHold:.6,opacityIdle:.2,chanceHold:.08,chanceIdle:.02,colorClass:"bg-gray-500",blurClass:"blur-xl"},vortexScale:1,vortexCount:36,cloudAlpha:.4},cigar:{hasAsh:!0,bodyH:Nu-qu-Zh-Gl,ash:{baseH:qu,growth:1.6,thresholdScale:1.9},smoke:{sizeHold:52,sizeIdle:38,opacityHold:.72,opacityIdle:.28,chanceHold:.09,chanceIdle:.025,colorClass:"bg-stone-500",blurClass:"blur-xl"},vortexScale:1.25,vortexCount:40,cloudAlpha:.5},heated:{hasAsh:!1,bodyH:Nu-Eb-Cb-Nb,smoke:{sizeHold:28,sizeIdle:20,opacityHold:.45,opacityIdle:.15,chanceHold:.06,chanceIdle:.015,colorClass:"bg-gray-300",blurClass:"blur-lg"},vortexScale:.8,vortexCount:30,cloudAlpha:.35},vape:{hasAsh:!1,bodyH:Nu-Rb-_b,smoke:{sizeHold:56,sizeIdle:36,opacityHold:.75,opacityIdle:.3,chanceHold:.05,chanceIdle:.015,colorClass:"bg-gray-100",blurClass:"blur-xl"},vortexScale:1.3,vortexCount:20,cloudAlpha:.55}},Zy=e=>{const t=Qr[e];return t.hasAsh?t.ash:null},Ll={link:["/연동","/link"],whisper:["/귓속말 ","/귓뿅 ","/whisper ","/w "],draw:["/그림","/캐치","/draw"]};function Jy(e,t){return Ll[t].includes(e)}function u4(e,t){return Ll[t].find(n=>e.startsWith(n))??null}const d4=[{code:"abuse",key:"report.reason.abuse"},{code:"spam",key:"report.reason.spam"},{code:"sexual",key:"report.reason.sexual"},{code:"other",key:"report.reason.other"}];function Qy(e){return ro()?e.nameEn:e.name}function f4(e){return ro()?e.shortEn:e.short}function p4(){const e=sr();w.useEffect(()=>{l_()&&(c_(),B(e("locale.offerEnglish"),{action:{label:e("locale.offerEnglishAction"),onClick:()=>{Ze("locale_switched",{from:"ko",to:"en",source:"banner"}),Hx("en")}},duration:15e3}))},[e]);const[t,n]=w.useState(!1),[i,s]=w.useState(0),[l,c]=w.useState(!1),[u,p]=w.useState(!1),[h,g]=w.useState(!1),[f,b]=w.useState(!1),[y,v]=w.useState(0),[S,T]=w.useState(()=>qI()),R=w.useRef(S);w.useEffect(()=>{R.current=S},[S]);const[P,j]=w.useState(null),{nickname:D,setNickname:E,isManager:C,visitCount:L,sendManagerBan:I,managerHistory:H,requestManagerHistory:F,poll:$,myPollChoice:Y,createPoll:ce,votePoll:ae,endPoll:ie,worldcup:re,myWorldcupChoice:pe,createWorldcup:X,voteWorldcup:J,endWorldcup:_,quiz:z,uploadQuizImage:te,createQuiz:A,endQuiz:Ee,typeRace:de,createTypeRace:we,endTypeRace:Te,reaction:Se,createReaction:Ae,reactionTap:Qe,endReaction:vt,catchmind:it,catchmindStrokes:Ye,createCatchmind:Rt,sendCatchmindGrant:dn,sendDraw:Un,sendClear:fn,endCatchmind:Pn,liar:st,liarMyWord:Ce,liarMyVote:We,liarSpeech:Xe,createLiar:dt,joinLiar:gt,voteLiar:Zt,endLiar:Z,lastMessage:Q,sendMessage:Ie,senderId:Pe,roomNumber:ue,changeRoom:ft,roomNames:ct,roomIcons:bt,onRoomCountsUpdateRef:Jt,onNoticeUpdateRef:en,onKickedRef:at,onFixedNicknameGrantedRef:tn,onCatchmindGrantRef:Pt,reconnectAfterKick:kn}=wM(),[kr,jn]=w.useState(null),[pn,ao]=w.useState(!1),[qe,jt]=w.useState(!1),[$t,nn]=w.useState("common"),[br,Mt]=w.useState(!1),Kt=w.useMemo(()=>st?st.participants.map(O=>O.senderId):[],[st]),[Vn,Yt]=w.useState(null);w.useEffect(()=>{tn.current=(O,K)=>{Yt({nickname:O,recoveryCode:K})}},[tn]);const sn=w.useRef(!1);w.useEffect(()=>{Pt.current=()=>{sn.current=!0,setTimeout(()=>{sn.current=!1},600*1e3),B.success(e("toast.catchmindGranted")),Mt(!0)}},[Pt]),w.useEffect(()=>{at.current=()=>{B.warning(e("toast.sessionTakenOver"),{duration:1/0,closeButton:!0,action:{label:e("toast.useThisDevice"),onClick:()=>kn()}})}},[at,kn]),w.useEffect(()=>{Jt.current=Gs},[Jt]),w.useEffect(()=>{fetch(`${nt}/room-counts`).then(O=>O.json()).then(O=>{const K={};for(let fe=1;fe<=Gn;fe++)K[fe]=O[String(fe)]??O[fe]??0;Gs(K)}).catch(()=>{})},[]),w.useEffect(()=>{en.current=O=>{O===""?(co(!1),ee("")):(ee(O),co(!0))}},[en]),w.useEffect(()=>{fetch(`${nt}/notice`).then(O=>O.json()).then(O=>{const K=Sb(O);K?(ee(K),co(!0)):co(!1)}).catch(()=>{})},[]);const[ar,hn]=w.useState([]),[_t,Mn]=w.useState(!1),[_e,Ge]=w.useState(""),[ri,vr]=w.useState(!1),[Sr,Is]=w.useState(!1),[lo,Io]=w.useState(0),[oi,zr]=w.useState(!1),[ii,co]=w.useState(!1),[ja,ee]=w.useState(()=>e("notice.default")),[he,ne]=w.useState(!1),[xe,oe]=w.useState(64),[Ne,ut]=w.useState(100),[Tt,He]=w.useState(!1),[le,xt]=w.useState(!1),[St,Gr]=w.useState(!1),si=w.useRef(!1),Er=zj(),[uo,ai]=w.useState(!1),[zi,dd]=w.useState(()=>typeof window>
551"u"?0:window.visualViewport?.height??window.innerHeight),Ls=w.useRef(Date.now()),Gi=w.useRef(!1),Ma=w.useRef(!1);w.useEffect(()=>{si.current=St},[St]),w.useEffect(()=>{Ma.current=Sr&&ri},[Sr,ri]);const[li,fo]=w.useState(!1),[As,Bi]=w.useState(!1),[pt,Wi]=w.useState(!1),[Os,Ps]=w.useState(""),[Da,Fa]=w.useState(!1),[Hi,$i]=w.useState(!1),[Lo,Br]=w.useState(""),[lr,Wr]=w.useState(""),[ci,ui]=w.useState([]),po=async(O="",K="")=>{try{const fe=new URLSearchParams;O&&fe.append("nickname",O),K&&fe.append("text",K);const Re=await fetch(`${nt}/chat/history/all?${fe.toString()}`,xr());if(Re.status===401)return B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),!1;if(Re.ok){const Fe=await Re.json();return ui(Fe),!0}else return B.error("히스토리를 불러오는데 실패했습니다."),!1}catch(fe){return console.error(fe),B.error("히스토리를 불러오는데 실패했습니다."),!1}},js=async(O="",K="")=>{if(En()){await po(O,K)&&$i(!0);return}if(C){F(O,K);return}B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요.")};w.useEffect(()=>{H&&(ui(H.messages),$i(!0))},[H]);const[Ms,di]=w.useState(""),[za,Ga]=w.useState(""),[Ui,Ba]=w.useState(""),fd=[{name:"LG 트윈스",short:"LG",nameEn:"LG Twins",shortEn:"LG",flag:"",color:"#FF99FF"},{name:"KT 위즈",short:"KT",nameEn:"KT Wiz",shortEn:"KT",flag:"",color:"#99FF99"},{name:"SSG 랜더스",short:"SSG",nameEn:"SSG Landers",shortEn:"SSG",flag:"",color:"#FFFF99"},{name:"NC 다이노스",short:"NC",nameEn:"NC Dinos",shortEn:"NC",flag:"",color:"#99FFCC"},{name:"두산 베어스",short:"두산",nameEn:"Doosan Bears",shortEn:"Doosan",flag:"",color:"#FFFFFF"},{name:"KIA 타이거즈",short:"KIA",nameEn:"KIA Tigers",shortEn:"KIA",flag:"",color:"#FF9999"},{name:"롯데 자이언츠",short:"롯데",nameEn:"Lotte Giants",shortEn:"Lotte",flag:"",color:"#99FFFF"},{name:"삼성 라이온즈",short:"삼성",nameEn:"Samsung Lions",shortEn:"Samsung",flag:"",color:"#99CCFF"},{name:"한화 이글스",short:"한화",nameEn:"Hanwha Eagles",shortEn:"Hanwha",flag:"",color:"#FFCC99"},{name:"키움 히어로즈",short:"키움",nameEn:"Kiwoom Heroes",shortEn:"Kiwoom",flag:"",color:"#CC99FF"}],Vi=[{name:"대한민국",short:"한국",nameEn:"Korea",shortEn:"Korea",flag:"🇰🇷",color:"#B8D8FF"},{name:"중국",short:"중국",nameEn:"China",shortEn:"China",flag:"🇨🇳",color:"#FF9A9A"}],Cr=new Intl.DateTimeFormat("en-CA",{timeZone:"Asia/Seoul",year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date)==="2026-09-26",Hr=Cr?Vi:fd,Wa=Cr?"damta_asian_games_baseball_team":"damta_kbo_team",[Ao,Fs]=w.useState(()=>{const O=localStorage.getItem(Wa);return Hr.some(K=>K.name===O)?O:null}),Oo=Hr.find(O=>O.name===Ao)?.color??null,[zs,Gs]=w.useState({}),Nr=w.useRef(null),Nn=w.useRef(!1),ho=w.useRef(!1),bn=w.useRef(null),mo=w.useRef(null);w.useEffect(()=>{bn.current=new Audio("/smokesound.m4a"),bn.current.loop=!0,mo.current=new Audio("/exhalesound.mp3"),mo.current.volume=.5},[]);const Ki=w.useRef(0),Ha=w.useRef(1),It=w.useRef(0),Rr=w.useRef(0),Po=w.useRef(25),Kn=w.useRef(null),_r=w.useRef(null),Tr=w.useRef(null),Yi=w.useRef(null),cr=w.useRef(null),jo=w.useRef(null),go=w.useRef(null),Xi=w.useRef(!1),tc=w.useRef(0),$a=w.useRef(null),Bs=w.useRef(null),$r=w.useRef(null),qi=w.useRef(null),Zi=w.useRef(null),Ws=w.useRef(),nc=w.useRef(0),xo=w.useRef([]),Mo=w.useRef([]),pd=w.useRef(ue),Ji=w.useRef(!1),Qi=w.useRef(!1),es=w.useRef(!1),Ua=w.useRef(!1),Do=w.useRef([]),rc=w.useRef(0),[fi,oc]=w.useState(0),ts=w.useRef(null),Hs=80,Fo=150,ic=1.2,hd=120,md=45;w.useEffect(()=>{const O=()=>Is(window.innerWidth<=768);return O(),window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[]),w.useEffect(()=>{const O=()=>{$a.current&&(Bs.current=$a.current.getBoundingClientRect())};return O(),window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[S]),w.useEffect(()=>{const O="G-Y2LM2B1T0Z";if(!document.querySelector('script[src*="googletagmanager.com/gtag/js"]')){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",O);const K=document.createElement("script");
551K.async=!0,K.src=`https://www.googletagmanager.com/gtag/js?id=${O}`,document.head.appendChild(K)}},[]);const Ze=w.useCallback((O,K)=>{typeof window.gtag=="function"&&(window.gtag("event",O,K),console.log(`[GA4] Event tracked: ${O}`,K))},[]);w.useEffect(()=>{const O=new Image;O.src=Kx},[]);const pi=w.useMemo(()=>to(),[]),Ur=w.useMemo(()=>nM(),[]),[sc,ac]=w.useState(()=>to()),[lc,Va]=w.useState(!1),Ka=w.useRef(!1);w.useEffect(()=>{pi&&(Ka.current||(Ka.current=!0,Ze("promo_icon_impression",{promo_variant:Ur}),Ze("promo_top_banner_impression",{promo_variant:Ur})))},[pi,Ze,Ur]);const hi=()=>{to()&&(Ze("promo_popup_open",{promo_variant:Ur}),Va(!0))},mi=w.useCallback((O,K)=>{if(typeof window>"u")return;const fe=window.gtag;typeof fe=="function"&&(fe("event","page_view",{page_path:O,page_title:K??document.title,page_location:window.location.origin+O}),console.log(`[GA4] page_view: ${O}`))},[]);w.useEffect(()=>{window.location.hostname==="sharp-chalk-23283122.figma.site"&&window.location.replace("https://www.damta.world")},[]);const $s=S==="cigarette"?[e("hint.cig.holdFilter"),e("hint.cig.tapTwice"),e("hint.cig.swipe"),e("hint.tapBackground")]:S==="cigar"?[e("hint.cigar.hold"),e("hint.cigar.tapTwice"),e("hint.cigar.swipe"),e("hint.tapBackground")]:[e("hint.device.hold"),e("hint.device.swipe"),e("hint.tapBackground")];w.useEffect(()=>{h&&y===0?v(1):h||v(0)},[h,y]),w.useEffect(()=>{h&&(Ze("smoking_started",{room_number:ue,room_name:Ln[ue]}),mi("/smoking"))},[h,ue,Ze,mi]),w.useEffect(()=>{if(!h||l)return;const O=setInterval(()=>{Ze("user_engagement",{room_number:ue,room_name:Ln[ue],elapsed_time:i})},3e4);return()=>clearInterval(O)},[h,l,ue,i,Ze]),w.useEffect(()=>{if(y>0&&y<=$s.length){const O=setTimeout(()=>{v(K=>K+1)},4e3);return()=>clearTimeout(O)}},[y,$s.length]),w.useEffect(()=>{_t&&v(4)},[_t]),w.useEffect(()=>{pd.current=ue},[ue]),w.useEffect(()=>{if(lo>0){const K=setInterval(()=>{Date.now()>lo&&(Io(0),xo.current=[],Mo.current=[],Ji.current=!1,Qi.current=!1,es.current=!1,Do.current=[],B.success(e("toast.chatUnblocked")))},1e3);return()=>clearInterval(K)}},[lo]);const cc=w.useRef({self:[0,0,0],other:[0,0,0]}),Us=w.useCallback(O=>{const K=O.senderId===Pe,fe=K?o4:i4,Re=K?cc.current.self:cc.current.other;let Fe=0;for(let zo=1;zo<Re.length;zo++)Re[zo]<Re[Fe]&&(Fe=zo);const tt=Date.now(),Nt=tt-Re[Fe];Re[Fe]=tt;const Lt=Math.round(fe[Fe]+(Math.random()-.5)*16),Yn=Math.round((K?-1:1)*(30+Math.random()*30)),se=Math.max(0,1-Nt/s4)*a4*(.6+Math.random()*.4),$e=`${O.id}_${tt}_${Math.random().toString(36).slice(2,11)}`,At=nh(O.nickname)||O.isGuide||O.isWhisper||O.nickname==="",an=Ma.current,Vr=an?window.innerHeight-150:300;let Ks;const Ja=Qr[R.current].hasAsh?_r.current:Yi.current;!an&&Ja?Ks=Ja.getBoundingClientRect().top:Ks=Vr-20;const Kr=Ks+se,Qa=Kr-Vr,Ys=n4-Kr,wd=At?12500+Math.random()*3e3:8500+Math.random()*2500,kd=Math.abs(Ys)/r4,ss=wd*Math.max(kd,.5),bd={...O,id:$e,x:Lt,dx:Yn,yOffset:se,startY:Qa,riseY:Ys,isSelf:K,createdAt:tt,duration:ss};hn(zo=>[...zo,bd])},[Pe]),Ya=ar.length>0;w.useEffect(()=>{if(!Ya)return;const O=setInterval(()=>{const K=Date.now();hn(fe=>{const Re=fe.filter(Fe=>K-Fe.createdAt<Fe.duration);return Re.length===fe.length?fe:Re})},1e3);return()=>clearInterval(O)},[Ya]),w.useEffect(()=>{Q&&Us(Q)},[Q,Us]),kM({lastMessage:Q,onNewMessage:Us,hasStarted:h});const ns=async O=>{if(O?.preventDefault(),ue===5){B(e("toast.silentRoom")),Ge("");return}{const se=_e.trim(),$e=["/이선임토큰뿡",...Ll.whisper,...Ll.link].some(Vr=>se.startsWith(Vr)),At=C&&(["/차단 ","/차단해제 ","/캐치권한 "].some(Vr=>se.startsWith(Vr))||se==="/히스"||se==="/투표"||se==="/투표종료"||se==="/월드컵"||se==="/월드컵종료"||se==="/퀴즈"||se.startsWith("/퀴즈 ")||se==="/퀴즈종료"||se==="/타자"||se==="/타자종료"||se==="/반응"||se==="/반응종료"||se==="/캐치"||se==="/캐치종료"||se==="/그림"||se==="/그림종료"||se==="/라이어"||se==="/라이어종료"),an=sn.current&&Jy(se,"draw");if(se.startsWith("/")&&!$e&&!At&&!an&&!En()){B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),Ge("");return}}if(_e.trim()==="/투표"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):jn("general"),Ge("");return}if(_e.trim()==="/투표종료"){$?ie():B(e("toast.noPoll")),Ge("");return}if(_e.trim()==="/월드컵"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):ao(!0),Ge("");return}if(_e.trim()==="/월드컵종료"){re?_():B(e("toast.noWorldcup")),Ge("");return}if(_e.trim()==="/퀴즈"||_e.trim().startsWith("/퀴즈 ")){if($||re||z||de||Se||it||st)B(e("toast.activityInProgress"));else{const se=_e.trim().substring(3).trim().toLowerCase();let $e="common";se==="이모지"||se==="emoji"?$e="emoji":se==="초성"||se==="choseong"?$e="choseong":se==="상식"||se==="common"?$e="common":se==="넌센스"||se==="난센스"||se==="nonsense"?$e="nonsense":(se
551==="사자성어"||se==="성어"||se==="idiom")&&($e="idiom"),nn($e),jt(!0)}Ge("");return}if(_e.trim()==="/퀴즈종료"){z?Ee():B(e("toast.noQuiz")),Ge("");return}if(_e.trim()==="/타자"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):we(),Ge("");return}if(_e.trim()==="/타자종료"){de?Te():B(e("toast.noTypeRace")),Ge("");return}if(_e.trim()==="/반응"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):Ae(),Ge("");return}if(_e.trim()==="/반응종료"){Se?vt():B(e("toast.noReaction")),Ge("");return}if(_e.trim()==="/그림"||_e.trim()==="/캐치"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):Mt(!0),Ge("");return}if(_e.trim()==="/그림종료"||_e.trim()==="/캐치종료"){it?Pn():B(e("toast.noCatchmind")),Ge("");return}if(_e.trim()==="/라이어"){$||re||z||de||Se||it||st?B(e("toast.activityInProgress")):dt(),Ge("");return}if(_e.trim()==="/라이어종료"){st?Z():B(e("toast.noLiar")),Ge("");return}if(_e.trim()==="/고대리모드뿅뿅"){const se=!Tt;He(se),se?(xt(!1),B.success("고대리 글쓰기 모드가 활성화되었습니다! 이제 당신은 고대리...✨")):B.info("고대리 글쓰기 모드가 해제되었습니다."),Ge("");return}if(_e.trim()==="/관리"){const se=!le;xt(se),se?(He(!1),B.success("관리자 늑구 글쓰기 모드가 활성화되었습니다.")):B.info("관리자 늑구 글쓰기 모드가 해제되었습니다."),Ge("");return}if(_e.trim()==="/관리선임온"){Gr(!0),Mn(!0),B.success("관리선임 모드 ON - 메시지만 표시됩니다."),Ge("");return}if(_e.trim()==="/관리선임오프"){Gr(!1),B.info("관리선임 모드 OFF - 일반 화면으로 전환됩니다."),Ge("");return}if(_e.trim()==="/표어"){await Ie(`흡연은 건강에 해롭고요.
552온라인담타는 무해합니다!
553(금연상담 1544-9030)`,"고대리"),Ge("");return}if(_e.trim().startsWith("/이선임토큰뿡")){const se=_e.trim().slice(7).trim();!se||se==="해제"?(JR(),B.success("운영자 토큰이 해제되었습니다.")):(ZR(se),B.success("운영자 토큰이 설정되었습니다.")),Ge("");return}if(_e.trim()==="/히스"){Br(""),Wr(""),await js("",""),Ge("");return}if(_e.trim().startsWith("/닉뿅 ")){const se=_e.trim().slice(4).trim();if(!se){Ge("");return}if(se.length>10){B.error("닉네임은 10자 이하여야 합니다."),Ge("");return}const $e=await fetch(`${nt}/nickname/override`,xr({method:"POST",body:JSON.stringify({deviceToken:Bn(),nickname:se})}));if($e.status===401)B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요.");else if($e.ok)E(se),B.success(`닉네임이 '${se}'(으)로 변경되었습니다.`);else{const At=await $e.json().catch(()=>null);B.error(At?.error??"닉네임 변경에 실패했습니다.")}Ge("");return}if(_e.trim().startsWith("/고대리공지뿅뿅 ")){const se=_e.trim().slice(9).trim();if(se){const $e=await fetch(`${nt}/notice`,xr({method:"POST",body:JSON.stringify({content:se})}));$e.status===401?B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."):$e.ok?B.success("공지가 업데이트되었습니다!"):B.error("공지 업데이트 실패")}Ge("");return}if(_e.trim()==="/고대리공지해제"){co(!1),ee("");const se=await fetch(`${nt}/notice`,xr({method:"POST",body:JSON.stringify({content:""})}));se.status===401?B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."):se.ok&&B.success("공지가 해제되었습니다!"),Ge("");return}if(_e.trim().startsWith("/차단해제 ")){const $e=_e.trim().substring("/차단해제 ".length).trim();if(!En()&&C){I("unban",$e),Ge("");return}const At=await Bx($e);At&&await Ie(e("sys.wolfUnbanned",{nickname:At}),"",!0,void 0,"sys.wolfUnbanned",{nickname:At}),Ge("");return}const K=u4(_e.trim(),"whisper");if(K){const se=_e.trim().substring(K.length),$e=se.indexOf("->");if(En()&&$e>=0){const At=se.slice(0,$e).trim().replace(/^\[.+?]\s*/,""),an=se.slice($e+2).trim();await hw(At,an)&&N_(At,an)}else await mw(se.trim());Ge("");return}if(Jy(_e.trim(),"link")){await w_(),Ge("");return}const fe=Ll.link.map(se=>se+" ").find(se=>_e.trim().startsWith(se));if(fe){const se=_e.trim().substring(fe.length).trim(),$e=await k_(se);$e&&(E($e),B.success(e("toast.deviceLinked",{nickname:$e})),Ze("fixed_nickname_device_linked")),Ge("");return}if(_e.trim().startsWith("/캐치권한 ")){const se=_e.trim().substring(6).trim();if(!se){B.error("대상 닉네임을 입력하세요. 예: /캐치권한 행복한 개구리"),Ge("");return}dn(se),Ge("");return}if(_e.trim().startsWith("/매니저임명뿅 ")){const se=_e.trim().substring(8).trim();await t_(se),Ge("");return}if(_e.trim().startsWith("/매니저해임뿅 ")){const se=_e.trim().substring(8).trim();await n_(se),Ge("");return}if(_e.trim().startsWith("/고정닉뿅해제 ")){const se=_e.trim().substring(8).trim();await e_(se),Ge("");return}if(_e.trim().startsWith("/고정닉뿅 ")){const se=_e.trim().substring(6),$e=se.indexOf("->");if($e<0){B.error("사용법: /고정닉뿅 현재닉 -> 고정닉"),Ge("");return}const At=se.slice(0,$e).trim(),an=se.slice($e+2).trim();await QR(At,an),Ge("");return}if(_e.trim().startsWith("/차단 ")){const $e=_e.trim().substring("/차단 ".length).trim();if(!En()&&C){I("ban",$e),Ge("");return}const At=await Gx($e);At&&await Ie(e("sys.wolfBanned",{nickname:At}),"",!0,void 0,"sys.wolfBanned",{nickname:At}),Ge("");return}if(_e.trim()==="/stats"){try{B.info("📊 접속자 통계 불러오는 중...");const se=await fetch(`${nt}/visit-stats`,xr());if(se.status===401){B.error("운영자 인증이 필요합니다. /이선임토큰뿡 <토큰> 으로 설정하세요."),Ge("");return}const $e=await se.json();if(Array.isArray($e)&&$e.length>0){const At=$e.map(an=>`${an.date}: ${an.count}명`).join(`
554`);B("📊 일일 접속 현황 (최근 30일)",{description:m.jsx("pre",{className:"mt-2 w-full max-h-60 overflow-y-auto font-mono text-sm text-black font-bold whitespace-pre-wrap",children:At}),duration:1e4,action:{label:"닫기",onClick:()=>console.log("Closed")}})}else B.error("통계를 불러올 수 없습니다.")}catch(se){console.error(se),Ze("error_occurred",{type:"statistics_fetch_failed",message:se instanceof Error?se.message:"Unknown error"}),B.error("통계 요청 실패")}Ge("");return}if(lo>Date.now()){B.error(e("moderation.spamBlocked"));return}if(!_e.trim())return;if(new RegExp([...JI,...QI].join("|"),"gi").test(_e)){B.error(e("moderation.political")),Ge("");return}if(_e.includes("항")&&_e.includes("문")){B.error(e("moderation.bannedCombo")),Ge("");return}if(_e.includes("자")&&_e.includes("위")){B.error(e("moderation.bannedCombo")),Ge("");return}if(_e.includes("섹")&&_e.includes("스")){B.error(e("moderation.bannedCombo")),Ge("");return}if(/o\s*p\s*e\s*n\s*[.\[(쩜·,]+\s*k\s*a\s*k\s*a\s*o\s*[.\[(쩜·,]+\s*c\s*o\s*m|k\s*a\s*k\s*a\s*o\s*[.\[(쩜·,]+\s*c\s*o\s*m\s*\/\s*o\s*\/|오\s*픈\s*채\s*팅|옵\s*챗|옾\s*챗/i.test(_e)){B.error(e("moderation.externalChat")),Ge("");return}const tt=Date.now();if(xo.current=xo.current.filter(se=>tt-se<4e3),xo.current.push(tt),xo.current.length>=6)if(Ji.current){Io(tt+180*1e3),B.error(e("moderation.spamBlocked")),Mn(!1),Ge("");return}else{B.warning(e("moderation.spamWarn")),Ji.current=!0,xo.current=[],Ge("");return}else!Ji.current&&xo.current.length<=2&&(Ji.current=!1);Do.current.push(_e.trim()),Do.current.length>5&&Do.current.shift();const Nt=_e.trim();if(Do.current.filter(se=>se===Nt).length>=3)if(es.current){Io(tt+180*1e3),B.error(e("moderation.repeatBlocked")),Mn(!1),Ge(""),Do.current=[];return}else{B.warning(e("moderation.repeatWarn")),es.current=!0,Do.current=[],Ge("");return}let yt=_e;yt=yt.replace(/010[-.\\s]?\d{3,4}[-.\\s]?\d{4}/g,se=>"x".repeat(se.length)),yt=yt.replace(/010\d{8}/g,se=>"x".repeat(se.length)),yt=yt.replace(/\d{8,}/g,se=>"x".repeat(se.length));const Yn=new RegExp(P_.join("|"),"gi");yt=yt.replace(Yn,"나쁜말");const gn=new RegExp(j_.join("|"),"gi");if(yt=yt.replace(gn,"*bleep*"),le)await Ie(yt,Yh,!0);else if(Tt)await Ie(yt,"고대리",!0);else{const se=ue===1?Oo??void 0:void 0,$e=ue===1?Hr.find(an=>an.name===Ao)?.short:null,At=$e?`[${$e}] ${D}`:void 0;await Ie(yt,At,void 0,se)}Ze("chat_sent",{room_number:ue,room_name:Ln[ue],message_length:yt.length,is_godaeri_mode:Tt}),Ge(""),zr(!1)},rs=async O=>{if(ue===5){B(e("toast.silentRoom"));return}if(lo>Date.now()){B.error(e("moderation.spamBlocked"));return}const K=Date.now();if(Mo.current=Mo.current.filter(tt=>K-tt<1e4),Mo.current.push(K),Mo.current.length>=10)if(Qi.current){Io(K+180*1e3),B.error(e("moderation.spamBlocked")),Mn(!1),zr(!1);return}else{B.warning(e("moderation.spamWarn")),Qi.current=!0,Mo.current=[],zr(!1);return}else!Qi.current&&Mo.current.length<=2&&(Qi.current=!1);const fe=ue===1?Oo??void 0:void 0,Re=ue===1?Hr.find(tt=>tt.name===Ao)?.short:null,Fe=Re?`[${Re}] ${D}`:void 0;await Ie(O,Fe,void 0,fe),Ze("chat_sent",{room_number:ue,room_name:Ln[ue],message_length:O.length,is_shortcut:!0}),zr(!1)},gd=O=>
554{if(!h&&!l){g(!0),n(!0),It.current=.001;return}h&&!l&&(_t?(Mn(!1),Nr.current?.blur(),zr(!1)):(Mn(!0),Nr.current?.focus(),Ze("chat_opened",{room_number:ue,room_name:Ln[ue]})))};w.useEffect(()=>{const O=()=>{Nn.current&&(p(!1),Nn.current=!1)},K=()=>{Nn.current&&(p(!1),Nn.current=!1)},fe=Re=>{if(Nn.current&&Re.touches.length>0){const Fe=Re.touches[0],tt=Fe.force&&Fe.force>0?Fe.force:1;Ha.current=tt}};return document.addEventListener("touchend",O,{passive:!1}),document.addEventListener("touchcancel",K,{passive:!1}),document.addEventListener("touchmove",fe,{passive:!1}),()=>{document.removeEventListener("touchend",O),document.removeEventListener("touchcancel",K),document.removeEventListener("touchmove",fe)}},[]),w.useEffect(()=>{let O=null;return t&&!l&&(O=setInterval(()=>{s(K=>K+1)},1e3)),()=>{O&&clearInterval(O)}},[t,l]),w.useEffect(()=>{l&&si.current&&(Gr(!1),Mn(!1),ut(100))},[l]),w.useEffect(()=>{l&&i>0&&(Ze("smoking_finished",{duration_seconds:i,room_number:ue,room_name:Ln[ue]}),mi("/result"))},[l,i,ue,Ze,mi]),w.useEffect(()=>{const O=()=>{Gi.current=!0,Ls.current=Date.now()},K=()=>{Gi.current=!1,Ls.current=Date.now()},fe=()=>{Ls.current=Date.now()};return window.addEventListener("pointerdown",O,{passive:!0}),window.addEventListener("pointerup",K,{passive:!0}),window.addEventListener("pointercancel",K,{passive:!0}),window.addEventListener("keydown",fe,{passive:!0}),()=>{window.removeEventListener("pointerdown",O),window.removeEventListener("pointerup",K),window.removeEventListener("pointercancel",K),window.removeEventListener("keydown",fe)}},[]),w.useEffect(()=>{const O=window.visualViewport,K=()=>dd(O?.height??window.innerHeight);return K(),O?.addEventListener("resize",K),window.addEventListener("resize",K),()=>{O?.removeEventListener("resize",K),window.removeEventListener("resize",K)}},[]),w.useEffect(()=>{if(!l){ai(!1);return}if(Date.now()-Ls.current>t4||!Hj())return;let O=!1,K=0;const fe=()=>{window.clearTimeout(K),K=window.setTimeout(()=>{if(!O){if(Gi.current){fe();return}$j(),ai(!0)}},e4)};return fe(),window.addEventListener("pointerup",fe,{passive:!0}),()=>{O=!0,window.clearTimeout(K),window.removeEventListener("pointerup",fe)}},[l]);const Vs=O=>{if(!$r.current||$r.current.childElementCount>=35)return;const K=Bs.current;if(!K)return;const fe=Qr[R.current].smoke,Re=R.current==="vape",Fe=document.createElement("div");Fe.className=`${Re?"vapor-particle":"smoke-particle"} absolute rounded-full ${fe.colorClass} ${fe.blurClass} pointer-events-none`;const tt=O?fe.sizeHold:fe.sizeIdle,Nt=O?Math.random()*40-20:Math.random()*100-50,Lt=O?fe.opacityHold:fe.opacityIdle;Fe.style.width=`${tt}px`,Fe.style.height=`${tt}px`,Fe.style.left=`${K.left+K.width/2+Nt}px`,Fe.style.top=`${K.top}px`,Fe.style.transform="translateX(-50%)",Fe.style.opacity=Lt.toString(),Fe.addEventListener("animationend",()=>Fe.remove()),$r.current.appendChild(Fe)},uc=O=>{if(!Zi.current)return;const K=20,fe=["#1f2937","#374151","#4b5563","#6b7280","#9ca3af"],Re=document.createDocumentFragment();for(let Fe=0;Fe<K;Fe++){const tt=fe[Math.floor(Math.random()*fe.length)],Nt=document.createElement("div");Nt.className="ash-debris rounded-sm z-10 pointer-events-none absolute";const Lt=Math.random()*64,yt=Math.random()*Math.min(O,40),Yn=(Math.random()-.5)*150,gn=100+Math.random()*200,se=Math.random()*720-360,$e=.5+Math.random()*1;Nt.style.left=`${Lt}px`,Nt.style.top=`${yt}px`,Nt.style.width=`${4*$e}px`,Nt.style.height=`${4*$e}px`,Nt.style.backgroundColor=tt,Nt.style.setProperty("--tx",`${Yn}px`),Nt.style.setProperty("--ty",`${gn}px`),Nt.style.setProperty("--r",`${se}deg`),Nt.style.setProperty("--s",`${$e}`),Nt.addEventListener("animationend",()=>Nt.remove()),Re.appendChild(Nt)}Zi.current.appendChild(Re)},dc=()=>{if(!qi.current||Ua.current)return;const O=Date.now()-Ki.current,K=.9,fe=Math.min(K,O/2e3*K);if(fe<.05)return;Ua.current=!0,setTimeout(()=>{Ua.current=!1},3e3);const Re=Qr[R.current],Fe=Re.vortexCount;if($r.current)for(;$r.current.childElementCount>20;)$r.current.firstElementChild?.remove();const tt=document.createDocumentFragment();for(let Nt=0;Nt<Fe;Nt++){const Lt=document.createElement("div");Lt.className="vortex-particle fixed bottom-0 pointer-events-none opacity-0";const yt=70*Re.vortexScale,Yn=Nt/Fe*Math.PI*2,gn=140,se=Math.cos(Yn)*gn,$e=Math.sin(Yn)*gn,At=0,an=4.5;Lt.style.width=`${yt}px`,Lt.style.height=`${yt}px`,Lt.style.left="50%",Lt.style.setProperty("--dx",`${se}px`),Lt.style.setProperty("--dy",`${$e}px`),Lt.style.setProperty("--start-x",`${At}px`),Lt.style.setProperty("--target-opacity",fe.toString()),Lt.style.setProperty("--cloud-alpha",Re.cloudAlpha.toString()),Lt.style.animationDuration=`${an}s`,Lt.addEventListener("animationend",()=>Lt.remove()),tt.appendChild(Lt)}qi.current.appendChild(tt)},os=w.useCallback(O=>{const K=Math.min(.1,Math.max(0,(O-nc.current)/1e3));nc.current=O;const fe=Nn.current,Re=It.current>0;if((fe||Re)&&!l&&It.current<Fo&&!si.current){const tt=Fo/md,Nt=Fo/hd,Lt=fe?tt:Nt;It.current+=Lt*K;const yt=Qr[R.current];
554if(yt.hasAsh){const gn=yt.ash;if(Kn.current){let se=yt.bodyH*(1-It.current/Fo);Kn.current.style.height=`${Math.max(0,se)}px`}if(_r.current){const se=It.current-Rr.current,$e=gn.baseH+se*ic*gn.growth;$e>Po.current?(uc($e),Rr.current=It.current,_r.current.style.height=`${gn.baseH}px`,Math.random()<.3?Po.current=(100+Math.random()*100)*gn.thresholdScale:Po.current=(25+Math.random()*45)*gn.thresholdScale):_r.current.style.height=`${$e}px`}}else if(Tr.current){const gn=(1-It.current/Fo)*100;Tr.current.style.height=`${Math.max(0,gn)}%`}const Yn=fe?yt.smoke.chanceHold:yt.smoke.chanceIdle;Math.random()<Yn&&Vs(fe),It.current>=Fo&&(It.current=Fo,c(!0),p(!1),Nn.current=!1,Kn.current&&(Kn.current.style.height="0px"),Tr.current&&(Tr.current.style.height="0%"))}Ws.current=requestAnimationFrame(os)},[l]);w.useEffect(()=>(Ws.current=requestAnimationFrame(os),()=>{Ws.current&&cancelAnimationFrame(Ws.current)}),[os]);const mn=()=>{if(l)return;p(!0),n(!0),g(!0),Nn.current=!0,Ki.current=Date.now(),navigator.vibrate&&navigator.vibrate(50),ho.current&&bn.current&&(bn.current.volume=.4);const O=Date.now();O-rc.current>1e4&&(rc.current=O,Ze("hold_started",{room_number:ue,room_name:Ln[ue]}))},Bt=()=>{Nn.current&&(dc(),ho.current&&mo.current&&(mo.current.currentTime=0,mo.current.play().catch(()=>{}))),p(!1),Nn.current=!1,ho.current&&bn.current&&(bn.current.volume=.25)},fc=()=>{p(!1),Nn.current=!1,ho.current&&bn.current&&(bn.current.volume=.25)},pc=O=>{P||l||j({dir:O,phase:"out"})},xd=()=>{if(P)if(P.phase==="out"){const O=El.indexOf(R.current),K=El[(O+P.dir+El.length)%El.length];R.current=K,T(K),ZI(K),Xa(),Ze("skin_changed",{skin:K,room_number:ue,room_name:Ln[ue]}),j({dir:P.dir,phase:"in"})}else j(null)},hc=(O,K)=>{l||P||(jo.current={x:O,y:K},go.current=null,Xi.current=!1)},mc=(O,K)=>{const fe=jo.current;if(!fe)return;const Re=O-fe.x,Fe=K-fe.y;if(!go.current){if(Math.max(Math.abs(Re),Math.abs(Fe))<12)return;go.current=Math.abs(Re)>Math.abs(Fe)?"h":"v",go.current==="h"&&fc()}go.current==="h"&&(Xi.current=!0,cr.current&&(cr.current.style.transition="none",cr.current.style.transform=`translateX(${Re*.5}px) rotate(${Re*.02}deg)`))},gc=O=>{const K=jo.current;jo.current=null;const fe=go.current;if(go.current=null,!K||fe!=="h")return;const Re=(O??K.x)-K.x,Fe=cr.current;Math.abs(Re)>60?(Fe&&(Fe.style.transition="",Fe.style.transform=""),pc(Re<0?1:-1)):Fe&&(Fe.style.transition="transform 200ms ease-out",Fe.style.transform="",setTimeout(()=>{cr.current&&(cr.current.style.transition="")},220))},yd=O=>{if(O.stopPropagation(),!_r.current||l)return;Ze("ash_tapped",{room_number:ue,room_name:Ln[ue]});const K=Zy(R.current);if(!K)return;const fe=It.current-Rr.current,Re=K.baseH+fe*ic*K.growth;Re>K.baseH&&(uc(Re),Rr.current=It.current,_r.current.style.height=`${K.baseH}px`)},ur=O=>{if(O.stopPropagation(),Xi.current){Xi.current=!1;return}if(!Qr[R.current].hasAsh)return;const K=Date.now();K-tc.current<300&&yd(O),tc.current=K},is=w.useCallback(async O=>{if(O===ue)return;const K=ue;hn([]),Gs(fe=>({...fe,[K]:Math.max(0,(fe[K]||0)-1),[O]:(fe[O]||0)+1})),await ft(O),B(e("room.moved",{icon:bt[O],room:ct[O]}),{id:"room-move",duration:1500}),Ze("room_changed",{from_room_number:K,from_room_name:Ln[K],to_room_number:O,to_room_name:Ln[O]}),mi(`/room/${O}`)},[ue,ft,Ze,mi,bt,ct,e]),Xa=()=>{It.current=0,Ha.current=1,Nn.current=!1,Rr.current=0;const O=Zy(R.current),K=O?.thresholdScale??1;Math.random()<.2?Po.current=500*K:Po.current=(25+Math.random()*45)*K,Kn.current&&(Kn.current.style.height=`${Qr[R.current].bodyH}px`),_r.current&&(_r.current.style.height=`${O?.baseH??4}px`),Tr.current&&(Tr.current.style.height="100%"),Xi.current=!1,p(!1)},xc=()=>{Xa(),n(!1),s(0),c(!1),$r.current&&($r.current.innerHTML=""),qi.current&&(qi.current.innerHTML=""),Zi.current&&(Zi.current.innerHTML=""),g(!1)},qa=()=>{Ze("session_reset",{room_number:ue,room_name:Ln[ue],elapsed_time:i}),xc()},Za=O=>{const K=Math.floor(O/60),fe=O%60;return e("common.timeMinSec",{mins:K,secs:fe})},yo=lo>Date.now();if(typeof window<"u"){if(window.location.pathname==="/ads.txt")return m.jsx("div",{style:{backgroundColor:"white",height:"100vh",width:"100vw",margin:0,padding:0,position:"fixed",top:0,left:0,zIndex:9999},children:m.jsx("pre",{style:{wordWrap:"break-word",whiteSpace:"pre-wrap",fontFamily:"monospace",padding:"10px",margin:0,color:"black",fontSize:"14px"},children:"google.com, pub-6962006868335508, DIRECT, f08c47fec0942fa0"})});if(window.location.pathname==="/robots.txt")return m.jsx("div",{style:{backgroundColor:"white",height:"100vh",width:"100vw",margin:0,padding:0,position:"fixed",top:0,left:0,zIndex:9999},children:m.jsx("pre",{style:{fontFamily:"monospace",padding:"10px",color:"black"},children:`User-agent: *
555Allow: /`})})}return m.jsxs("div",{className:"fixed inset-0 w-full h-full bg-black flex items-center justify-center overflow-hidden touch-none select-none",onTouchStart:O=>{if(!(Hi||As||li||he||pt||_t)){if(O.target?.closest?.("[data-no-pull-refresh]")){ts.current=null;return}ts.current=O.touches[0].clientY}},onTouchMove:O=>{if(Hi||As||li||he||pt||_t||ts.current===null)return;const K=O.touches[0].clientY-ts.current;K>
5550&&oc(Math.min(K,Hs+30))},onTouchEnd:()=>{Hi||As||li||he||pt||_t||(fi>=Hs&&window.location.reload(),oc(0),ts.current=null)},children:[fi>0&&m.jsx("div",{className:"absolute top-0 left-0 right-0 z-50 flex items-end justify-center pb-2 pointer-events-none",style:{height:`${fi}px`,opacity:fi/Hs},children:m.jsx("div",{className:"text-white flex items-center justify-center transition-transform",style:{transform:`rotate(${fi>=Hs?180:0}deg)`},children:m.jsx(zf,{size:20})})}),m.jsx("div",{className:"absolute inset-0 z-0",onClick:gd,onMouseDown:O=>O.preventDefault()}),m.jsx("style",{children:`
556        html, body {
557          height: 100%;
558          width: 100%;
559          overflow: hidden;
560          position: fixed;
561          background-color: black;
562          overscroll-behavior: none;
563          touch-action: none;
564        }
565        @keyframes smokeTextRise {
566          from {
567            opacity: 0.9;
568            transform: translate(0, 0) scale(0.8);
569          }
570          to {
571            opacity: 0;
572            transform: translate(var(--dx, 0px), var(--rise-y, -350px)) scale(1.2);
573          }
574        }
575
576        @keyframes smokeRise {
577          from {
578            opacity: 0.9;
579            transform: translateY(0) scale(0.8);
580          }
581          to {
582            opacity: 0;
583            transform: translateY(-300px) scale(2.5);
584          }
585        }
586
587        .smoke-text {
588          animation: smokeTextRise 7s ease-out forwards;
589          will-change: transform, opacity;
590          text-shadow: 0 0 4px rgba(0,0,0,0.8);
591          contain: layout style; /* ⚡ 각 파티클의 레이아웃을 격리하여 리렌더 영향 최소화 */
592        }
593
594        @keyframes ashExplode {
595          0% {
596            opacity: 1;
597            transform: translate(0, 0) rotate(0deg) scale(1);
598          }
599          100% {
600            opacity: 0;
601            transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(var(--s));
602          }
603        }
604        
605        @keyframes glow {
606          0%, 100% { opacity: 0.8; }
607          50% { opacity: 1; }
608        }
609        
610        .smoke-particle {
611          animation: smokeRise 8s ease-out forwards;
612          will-change: transform, opacity;
613        }
614
615        .ash-debris {
616          animation: ashExplode 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
617          will-change: transform, opacity;
618          position: absolute;
619        }
620        
621        .glow-effect {
622          animation: glow 0.5s ease-in-out infinite;
623        }
624        
625        .filter-texture {
626          background: linear-gradient(to bottom, #e8a862 0%, #dda15e 50%, #d4a574 100%);
627          position: relative;
628        }
629        
630        .filter-texture::before {
631          content: '';
632          position: absolute;
633          inset: 0;
634          background-image: repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(255, 140, 0, 0.15) 1px, rgba(255, 140, 0, 0.15) 2px);
635        }
636        
637        .filter-texture::after {
638          content: '';
639          position: absolute;
640          top: 0;
641          left: 0;
642          right: 0;
643          height: 2px;
644          background: linear-gradient(to right, #ff6b35, #ff8c42, #ff6b35);
645          box-shadow: 0 -1px 2px rgba(255, 107, 53, 0.4);
646        }
647        
648        .ember-glow {
649          filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 50, 0, 0.6));
650        }
651        
652        .paper-texture {
653          position: relative;
654          background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
655          will-change: height;
656        }
657        
658        .paper-texture::before {
659          content: '';
660          position: absolute;
661          inset: 0;
662          background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.02) 3px, rgba(0, 0, 0, 0.02) 4px);
663        }
664
665        /* 시가 — 가로 폭은 다른 스킨과 같고, 원통 명암과 감긴 잎 결로 두께감을 만든다.
666           (좌우 그라데이션의 어두운 가장자리 → 밝은 중앙이 원기둥처럼 부풀어 보이게 하는 핵심) */
667        .cigar-texture {
668          position: relative;
669          background: linear-gradient(90deg,
670            #1d1108 0%,
671            #4a2c14 12%,
672            #8a5a2e 32%,
673            #ab7644 44%,
674            #7a4a24 62%,
675            #3c2210 84%,
676            #150c05 100%);
677          box-shadow:
678            inset 0 6px 10px rgba(0, 0, 0, 0.45),
679            0 4px 10px rgba(0, 0, 0, 0.5);
680          will-change: height;
681        }
682
683        /* 감긴 담뱃잎 나선 이음매 */
684        .cigar-texture::before {
685          content: '';
686          position: absolute;
687          inset: 0;
688          background-image: repeating-linear-gradient(62deg,
689            transparent 0px,
690            transparent 9px,
691            rgba(0, 0, 0, 0.22) 9px,
692            rgba(0, 0, 0, 0.22) 10px,
693            rgba(255, 214, 160, 0.07) 10px,
694            rgba(255, 214, 160, 0.07) 11px);
695        }
696
697        /* 잎맥 세로 결 */
698        .cigar-texture::after {
699          content: '';
700          position: absolute;
701          inset: 0;
702          opacity: 0.6;
703          background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 3px);
704        }
705
706        /* 시가 머리(무는 쪽) — 몸통보다 어둡고 아래로 둥글게 마감된 캡 */
707        .cigar-head {
708          background: linear-gradient(90deg,
709            #150c05 0%,
710            #3a2110 14%,
711            #6b4423 34%,
712            #87562f 46%,
713            #5b3819 64%,
714            #2a180b 86%,
715            #100903 100%);
716          box-shadow:
717            inset 0 -8px 12px rgba(0, 0, 0, 0.55),
718            0 4px 10px rgba(0, 0, 0, 0.5);
719        }
720
721        .cigar-head::after {
722          content: '';
723          position: absolute;
724          left: 0;
725          right: 0;
726          bottom: 0;
727          height: 16px;
728          background: radial-gradient(ellipse at 38% 0%, rgba(255, 220, 170, 0.16), rgba(0, 0, 0, 0.55) 72%);
729        }
730
731        /* 라벨 밴드 — 금박도 좌우 명암을 줘야 몸통과 같은 원통으로 읽힌다 */
732        .cigar-band {
733          background: linear-gradient(90deg,
734            #3a2a08 0%,
735            #8a6b18 14%,
736            #d8b449 34%,
737            #f6df92 46%,
738            #c9a63c 62%,
739            #6f5312 86%,
740            #2f2206 100%);
741          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
742        }
743
744        .cigar-band::after {
745          content: '';
746          position: absolute;
747          inset: 3px 4px;
748          border: 1px solid rgba(90, 60, 10, 0.55);
749        }
750
751        /* 시가 재 — 연초보다 굵고 밝은 회백색 원통.
752           가로 줄무늬 없이 좌우 명암만으로 둥근 부피감을 낸다 */
753        .cigar-ash {
754          background: linear-gradient(90deg,
755            #2a2724 0%,
756            #55504a 16%,
757            #9c958c 38%,
758            #cbc4ba 48%,
759            #8a837a 66%,
760            #45403a 86%,
761            #201d1a 100%);
762          box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5);
763        }
764
765
766        /* 불붙기 전 연초 절단면 — 종이 안쪽으로 담뱃잎이 촘촘히 박힌 단면 */
767        .unlit-tip-cigarette {
768          background: linear-gradient(to bottom, #c8a273 0%, #a87d49 55%, #855f31 100%);
769          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
770        }
771
772        .unlit-tip-cigarette::before {
773          content: '';
774          position: absolute;
775          inset: 0;
776          opacity: 0.55;
777          background-image: repeating-radial-gradient(circle at 50% 65%, rgba(0, 0, 0, 0.38) 0 1px, transparent 1px 3px);
778        }
779
780        /* 불붙기 전 시가 발(foot) — 감긴 잎이 그대로 드러난 단면.
781           몸통과 같은 좌우 명암을 써야 같은 원기둥으로 읽힌다 */
782        .unlit-tip-cigar {
783          background: linear-gradient(90deg,
784            #150c05 0%,
785            #35200f 14%,
786            #6b4a28 34%,
787            #8a6238 46%,
788            #5a3a1c 64%,
789            #2a180b 86%,
790            #100903 100%);
791          box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.55);
792        }
793
794        .unlit-tip-cigar::before {
795          content: '';
796          position: absolute;
797          inset: 0;
798          opacity: 0.6;
799          background-image: repeating-radial-gradient(circle at 50% 58%, rgba(0, 0, 0, 0.4) 0 1px, rgba(255, 214, 160, 0.06) 1px 3px);
800        }
801
802        /* 시가 잉걸 — 가운데가 깊게 타들어간 링 */
803        .cigar-ember {
804          background: radial-gradient(ellipse at 50% 40%,
805            #ffd08a 0%,
806            #ff8c1a 24%,
807            #e14b06 52%,
808            #7a1d02 78%,
809            #2a0d02 100%);
810        }
811
812        .cigar-ember::after {
813          content: '';
814          position: absolute;
815          inset: 0;
816          opacity: 0.5;
817          background-image: repeating-radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
818        }
819
820        /* 궐련형 디바이스 바디 — 다크메탈 + 좌측 하이라이트 */
821        .device-texture {
822          background: linear-gradient(145deg, #3a3f47 0%, #262a31 45%, #15181d 100%);
823          position: relative;
824        }
825
826        .device-texture::before {
827          content: '';
828          position: absolute;
829          top: 8px;
830          bottom: 8px;
831          left: 3px;
832          width: 2px;
833          border-radius: 2px;
834          background: rgba(255, 255, 255, 0.12);
835        }
836
837        /* 액상형 모드 바디 — 브러시드 메탈 */
838        .metal-texture {
839          background: linear-gradient(105deg, #6b7280 0%, #b3bac4 16%, #4b5563 48%, #9ca3af 80%, #5b6470 100%);
840          position: relative;
841        }
842
843        .metal-texture::before {
844          content: '';
845          position: absolute;
846          inset: 0;
847          border-radius: inherit;
848          background-image: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(255, 255, 255, 0.04) 5px, rgba(255, 255, 255, 0.04) 6px);
849        }
850
851        /* 유리 탱크 세로 광택 */
852        .glass-tank::before {
853          content: '';
854          position: absolute;
855          top: 4px;
856          bottom: 4px;
857          left: 18%;
858          width: 3px;
859          border-radius: 2px;
860          background: linear-gradient(to bottom, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
861          z-index: 1;
862        }
863
864        /* 베이프 증기 — 연초 연기보다 크고 하얗게 퍼짐 */
865        @keyframes vaporRise {
866          from {
867            opacity: 0.9;
868            transform: translateY(0) scale(0.9);
869          }
870          to {
871            opacity: 0;
872            transform: translateY(-340px) scale(3.5);
873          }
874        }
875
876        .vapor-particle {
877          animation: vaporRise 5s ease-out forwards;
878          will-change: transform, opacity;
879        }
880
881        /* 스킨 전환: 스와이프 방향(--dir)으로 퇴장 → 반대편에서 오버슈트 등장 */
882        @keyframes skinExit {
883          to {
884            opacity: 0;
885            transform: translateX(calc(var(--dir, 1) * -120%)) rotate(calc(var(--dir, 1) * -10deg));
886          }
887        }
888
889        @keyframes skinEnter {
890          from {
891            opacity: 0;
892            transform: translateX(calc(var(--dir, 1) * 120%)) rotate(calc(var(--dir, 1) * 10deg));
893          }
894          to {
895            opacity: 1;
896            transform: none;
897          }
898        }
899
900        .skin-exit {
901          animation: skinExit 0.18s ease-in forwards;
902        }
903
904        .skin-enter {
905          animation: skinEnter 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
906        }
907        
908        @keyframes fadeInUp {
909          from { opacity: 0; transform: translateY(20px); }
910          to { opacity: 1; transform: translateY(0); }
911        }
912
913        @keyframes fadeOut {
914          0% { opacity: 1; }
915          100% { opacity: 0; }
916        }
917        
918        .hint-fade-out {
919          animation: fadeOut 1s ease-out 3s forwards;
920        }
921
922        @keyframes vortexMove {
923          0% {
924            opacity: 0;
925            transform: translate(-50%, 100px) scale(0.5);
926          }
927          10% {
928            opacity: var(--target-opacity, 0.8);
929            /* 초기 폭발: 약간 위로 올라가면서 링 형성 시작 */
930            transform: translate(calc(-50% + var(--dx) * 0.2), calc(-10vh + var(--dy) * 0.2)) scale(1.0);
931          }
932          100% {
933            opacity: 0;
934            /* 최종: 화면 위로 사라지면서 링이 크게 확장됨. Y축 상승 + Y축 확산(dy) 결합 */
935            transform: translate(calc(-50% + var(--dx)), calc(-120vh + var(--dy))) scale(2.0);
936          }
937        }
938
939        .vortex-particle {
940          background: radial-gradient(circle at center, rgba(255,255,255,var(--cloud-alpha, 0.4)) 0%, rgba(255,255,255,0) 60%);
941          border-radius: 50%;
942          /* filter: blur(15px); Removed for performance */
943          animation: vortexMove ease-out forwards;
944          will-change: transform, opacity;
945          z-index: 30;
946          opacity: 0;
947        }
948      `}),!St&&!t&&!l&&!sc&&m.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 text-center text-gray-500 pointer-events-none whitespace-nowrap",style:{bottom:`${Ou+380+24}px`},children:e("start.guide")}),!St&&h&&!l&&y>0&&y<=$s.length&&!_t&&m.jsx("div",{className:"absolute left-1/2 transform -translate-x-1/2 text-center text-gray-500 pointer-events-none hint-fade-out w-full px-4",style:{bottom:`${Ou+380+24}px`},children:$s[y-1]},y),m.jsx("div",{className:`fixed inset-0 bg-black/90 pointer-events-none z-[25] transition-opacity duration-300 ${Sr&&ri?"opacity-100":"opacity-0"}`}),m.jsx(_j,{chatParticles:ar,hasStarted:h,isAdminViewMode:St,roomNumber:ue,isMobile:Sr,isFocused:ri,liarPlayerIds:Kt}),ue!==Gn&&($||re||z||de||Se||it||st)&&m.jsxs("div",{"data-no-pull-refresh":!0,className:`pointer-events-none fixed z-40 flex flex-col ${Sr?"bottom-[
948140px] left-1/2 -translate-x-1/2 items-center":"top-20 right-4 items-end"}`,children:[$&&m.jsx(vM,{poll:$,myChoice:Y,onVote:ae}),re&&m.jsx(_M,{worldcup:re,myChoice:pe,onVote:J}),z&&m.jsx(AM,{quiz:z}),de&&m.jsx(MM,{race:de}),Se&&m.jsx(DM,{reaction:Se,onTap:Qe}),it&&m.jsx(BM,{catchmind:it,strokes:Ye,senderId:Pe,onDraw:Un,onClear:fn}),st&&m.jsx(KM,{liar:st,myWord:Ce,myVote:We,speech:Xe,senderId:Pe,onJoin:gt,onVote:Zt})]}),kr&&m.jsx(CM,{variant:kr,onCreate:ce,onClose:()=>jn(null)}),pn&&m.jsx(LM,{onCreate:X,onClose:()=>ao(!1)}),qe&&m.jsx(jM,{initialCategory:$t,onUploadImage:te,onCreate:A,onClose:()=>jt(!1)}),br&&m.jsx(VM,{onCreate:Rt,onClose:()=>Mt(!1)}),!St&&m.jsx("div",{ref:$r,className:"fixed inset-0 pointer-events-none z-0"}),!St&&m.jsx("div",{ref:qi,className:"fixed inset-0 pointer-events-none z-30"}),!St&&!l&&m.jsx("div",{ref:$a,"data-no-pull-refresh":!0,className:"absolute left-1/2 transform -translate-x-1/2 select-none z-10 cursor-pointer",style:{bottom:`${Ou}px`},onClick:ur,onTouchStart:O=>hc(O.touches[0].clientX,O.touches[0].clientY),onTouchMove:O=>mc(O.touches[0].clientX,O.touches[0].clientY),onTouchEnd:O=>gc(O.changedTouches[0]?.clientX??null),onMouseDown:O=>{hc(O.clientX,O.clientY);const K=Re=>mc(Re.clientX,Re.clientY),fe=Re=>{window.removeEventListener("mousemove",K),window.removeEventListener("mouseup",fe),gc(Re.clientX)};window.addEventListener("mousemove",K),window.addEventListener("mouseup",fe)},children:m.jsxs("div",{ref:cr,className:`flex flex-col relative ${P?P.phase==="out"?"skin-exit":"skin-enter":""}`,style:{width:`${xe}px`,"--dir":P?String(P.dir):"1"},onAnimationEnd:O=>{O.target===O.currentTarget&&xd()},children:[m.jsx("div",{ref:Zi}),S==="cigarette"&&m.jsxs(m.Fragment,{children:[!h&&m.jsx("div",{className:"unlit-tip-cigarette relative overflow-hidden rounded-tl-[30px] rounded-tr-[30px] pointer-events-none",style:{height:`${l4}px`}}),h&&m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:_r,className:"bg-gradient-to-b from-gray-800 via-gray-600 to-gray-400 relative rounded-tl-[30px] rounded-tr-[30px] transition-none z-20 pointer-events-none",style:{height:`${Xu}px`,willChange:"height"},children:m.jsx("div",{className:"absolute inset-0 opacity-50 pointer-events-none rounded-tl-[30px] rounded-tr-[30px]",style:{background:"repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 3px)"}})}),m.jsx("div",{className:`ember-glow glow-effect bg-gradient-to-b from-red-600 via-orange-500 to-orange-300 relative pointer-events-none transition-all duration-300 ${u?"brightness-125 saturate-150":""}`,style:{height:`${qh}px`,...u?{boxShadow:"0 0 15px rgba(255, 50, 0, 0.8), 0 0 25px rgba(255, 20, 0, 0.6)"}:{}},children:m.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-yellow-400 via-orange-600 to-red-700 opacity-80"})})]}),m.jsx("div",{ref:Kn,className:"paper-texture transition-none overflow-hidden pointer-events-none",style:{height:`${Qr.cigarette.bodyH}px`}}),m.jsx("div",{className:"filter-texture rounded-b-sm relative overflow-hidden cursor-pointer",style:{height:`${Gl}px`,WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:O=>{mn()},onTouchEnd:O=>{Bt()}})]}),S==="cigar"&&m.jsxs(m.Fragment,{children:[!h&&m.jsx("div",{className:"unlit-tip-cigar relative overflow-hidden rounded-tl-[40px] rounded-tr-[40px] pointer-events-none",style:{height:`${c4}px`}}),h&&m.jsxs(m.Fragment,{children:[m.jsx("div",{ref:_r,className:"cigar-ash relative rounded-tl-[40px] rounded-tr-[40px] overflow-hidden transition-none z-20 pointer-events-none",style:{height:`${qu}px`,willChange:"height"}}),m.jsx("div",{className:`cigar-ember ember-glow relative pointer-events-none transition-all duration-300 ${u?"brightness-125 saturate-150":""}`,style:{height:`${Zh}px`,...u?{boxShadow:"0 0 18px rgba(255, 70, 0, 0.85), 0 0 30px rgba(255, 30, 0, 0.6)"}:{}}})]}),m.jsx("div",{ref:Kn,className:"cigar-texture transition-none overflow-hidden pointer-events-none",style:{height:`${Qr.cigar.bodyH}px`}}),m.jsx("div",{className:"cigar-head relative overflow-hidden rounded-b-[12px] curs
948or-pointer",style:{height:`${Gl}px`,WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt(),children:m.jsx("div",{className:"cigar-band absolute left-0 right-0 top-0 pointer-events-none",style:{height:"16px"}})})]}),S==="heated"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{ref:Yi,className:"device-texture relative w-full rounded-t-[18px] rounded-b-[14px] overflow-hidden cursor-pointer",style:{height:`${Qr.heated.bodyH}px`,WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt(),children:[m.jsx("div",{className:"absolute rounded-full overflow-hidden pointer-events-none",style:{right:"18%",top:"20%",bottom:"20%",width:"6px",background:"rgba(255,255,255,0.08)"},children:m.jsx("div",{ref:Tr,className:"absolute bottom-0 left-0 right-0 rounded-full transition-shadow duration-300",style:{height:"100%",background:"linear-gradient(to top, #10b981, #6ee7b7)",boxShadow:u?"0 0 6px rgba(52,211,153,0.7)":void 0,willChange:"height"}})}),m.jsx("div",{className:"absolute rounded-full pointer-events-none",style:{left:"20%",top:"12%",width:"10px",height:"10px",background:"radial-gradient(circle at 35% 35%, #4a515a, #14171c)",boxShadow:"inset 0 1px 2px rgba(0,0,0,0.6)"}}),m.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 rounded-t-full pointer-events-none transition-shadow duration-300",style:{height:"14px",width:"70%",background:"radial-gradient(ellipse at bottom, #0b0d10 0%, #1c2026 80%)",boxShadow:u?"0 0 12px rgba(255,150,40,0.7), 0 0 20px rgba(255,120,20,0.4)":void 0}})]}),m.jsxs("div",{className:"relative flex flex-col self-center cursor-pointer",style:{width:"55%",WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt(),children:[m.jsx("div",{className:"pointer-events-none",style:{height:`${Eb}px`,background:"linear-gradient(to bottom, #6e441f, #8a5a2b)"}}),m.jsx("div",{className:"paper-texture pointer-events-none",style:{height:`${Cb}px`}}),m.jsx("div",{className:"rounded-b-sm pointer-events-none",style:{height:`${Nb}px`,background:"linear-gradient(to bottom, #e8d5bc, #f3e8d8)"}})]})]}),S==="vape"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{ref:Yi,className:"metal-texture relative w-full rounded-t-[14px] rounded-b-[6px] overflow-hidden cursor-pointer",style:{height:`${Qr.vape.bodyH}px`,WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt(),children:[m.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 flex gap-1 pointer-events-none",style:{top:"8%"},children:[0,1,2].map(O=>m.jsx("div",{className:"rounded-full",style:{width:"4px",height:"4px",background:"#1f2937",boxShadow:"inset 0 1px 1px rgba(0,0,0,0.8)"}},O))}),m.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 rounded-full transition-all duration-200 pointer-events-none",style:{bottom:"18%",width:"26px",height:"26px",background:"radial-gradient(circle at 35% 30%, #374151, #1f2937 70%)",border:"2px solid #374151",boxShadow:u?"0 0 0 2px rgba(34,211,238,0.9), 0 0 14px rgba(34,211,238,0.8)":"inset 0 1px 3px rgba(0,0,0,0.7)"}})]}),m.jsx("div",{className:"glass-tank relative self-center overflow-hidden rounded-sm cursor-pointer",style:{width:"85%",height:`${Rb}px`,background:"rgba(30,41,59,0.5)",borderLeft:"1px solid #52525b",borderRight:"1px solid #52525b",borderBottom:"1px solid #52525b",WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt(),children:m.jsx("div",{ref:Tr,className:"absolute bottom-0 left-0 right-0 pointer-events-none",style:{height:"100%",background:"linear-gradient(to bottom, rgba(125,211,252,0.25), rgba(56,189,248,0.5))",willChange:"height"}})}),m.jsx("div",{className:"self-center rounded-b-[10px] cursor-pointer",style:{width:"40%",height:`${_b}
948px`,background:"linear-gradient(105deg, #111113 0%, #3f3f46 30%, #0a0a0a 70%)",WebkitTapHighlightColor:"transparent",touchAction:"none"},onClick:O=>O.stopPropagation(),onMouseDown:mn,onMouseUp:Bt,onMouseLeave:Bt,onTouchStart:()=>mn(),onTouchEnd:()=>Bt()})]})]})}),!St&&l&&(()=>{const O=zi>=QM,K=O&&zi<JM;return m.jsx("div",{className:"absolute inset-0 z-30 pointer-events-none animate-[fadeInUp_0.5s_ease-out_forwards]",children:m.jsxs("div",{className:`absolute inset-x-0 flex flex-col items-center pointer-events-none [&>*]:pointer-events-auto ${K?"gap-4":"gap-8"}`,style:O?{bottom:`${Kj}px`}:{top:"50%",transform:"translateY(-50%)"},children:[m.jsx("div",{className:`text-white tabular-nums ${K?"text-4xl":"text-5xl"}`,children:Za(i)}),m.jsx("button",{onClick:qa,className:"w-16 h-16 rounded-full bg-gray-800 hover:bg-gray-700 flex items-center justify-center transition-all",children:m.jsx(zf,{className:"w-8 h-8 text-white"})}),O&&m.jsx("div",{className:"w-full max-w-[300px] px-4 flex flex-col items-center justify-center",style:{minHeight:`${ZM}px`},children:to()?m.jsx(oM,{onClick:()=>Ze("promo_banner_click",{promo_variant:Ur})}):uo&&!_t&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-[11px] text-gray-400 text-center mb-1 select-none",children:e("common.ad")}),m.jsx(Pj,{slot:"7105818640",width:300,height:250})]})})]})})})(),m.jsx("div",{className:"fixed left-4 z-50 transition-[top] duration-200",style:{to
948p:`${16+Er}px`},onClick:O=>O.stopPropagation(),children:m.jsxs(yp,{children:[m.jsx(wp,{asChild:!0,children:m.jsx("button",{className:"w-9 h-9 flex items-center justify-center transition-all text-gray-400 hover:text-white outline-none",title:e("menu.title"),children:m.jsx(Mv,{className:"w-6 h-6"})})}),m.jsxs(kp,{align:"start",className:"bg-gray-900 border-gray-800 text-gray-200 min-w-[160px] max-w-[80vw]",children:[m.jsx(Xo,{onClick:O=>{O.stopPropagation();const K=Pl()==="ko"?"en":"ko";Ze("locale_switched",{from:Pl(),to:K,source:"menu"}),Hx(K)},className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("div",{className:"flex items-center gap-2 text-gray-400 whitespace-nowrap",children:[m.jsx(Fv,{className:"w-4 h-4 shrink-0"}),m.jsx("span",{children:e("menu.switchLanguage")})]})}),m.jsx(Xo,{onClick:async O=>{O.stopPropagation();const K="https://www.damta.world";if(navigator.share)try{await navigator.share({title:e("app.name"),url:K}),Ze("share_completed",{method:"navigator.share"})}catch(fe){console.error(fe),Ze("error_occurred",{type:"share_failed",method:"navigator.share",message:fe instanceof Error?fe.message:"Unknown error"})}else try{await navigator.clipboard.writeText(K),Ze("share_completed",{method:"clipboard"}),B(e("toast.linkCopied"))}catch(fe){Ze("error_occurred",{type:"share_failed",method:"clipboard",message:fe instanceof Error?fe.message:"Unknown error"});try{const Re=document.createElement("textarea");Re.value=K,Re.style.position="fixed",Re.style.left="-9999px",document.body.appendChild(Re),Re.focus(),Re.select(),document.execCommand("copy"),document.body.removeChild(Re),Ze("share_completed",{method:"clipboard_fallback"}),B(e("toast.linkCopied"))}catch(Re){Ze("error_occurred",{type:"share_failed",method:"clipboard_fallback",message:Re instanceof Error?Re.message:"Unknown error"}),B(e("toast.linkCopyFailed"))}}},className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Yv,{className:"w-4 h-4"}),m.jsx("span",{children:e("menu.share")})]})}),m.jsx(Xo,{asChild:!0,className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("a",{href:"https://forms.gle/3wHFnxLvcQ5ZmKX7A",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2",children:[m.jsx(Kg,{className:"w-4 h-4"}),m.jsx("span",{children:e("menu.feedback")})]})}),m.jsx(Xo,{asChild:!0,className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("a",{href:"https://wiseojk.notion.site/2b9e0d17dd05803cb75df3f7ba80127d?pvs=74",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2",children:[m.jsx(Gv,{className:"w-4 h-4"}),m.jsx("span",{children:e("menu.releaseNotes")})]})}),m.jsx(Xo,{onClick:O=>{O.stopPropagation(),navigator.clipboard.writeText("[email protected]").then(()=>{B.success(e("toast.adEmailCopied"))}).catch(()=>{B.info(e("toast.adEmailCopyFallback"))});const fe=encodeURIComponent(e("menu.advertise").replace(/⭐/g,"").trim());window.location.href=`mailto:[email protected]?subject=${fe}`},className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("div",{className:"flex items-center gap-2 text-gray-400 whitespace-nowrap",children:[m.jsx(r0,{className:"w-4 h-4 shrink-0"}),m.jsx("span",{children:e("menu.advertise")})]})}),m.jsx(Xo,{onClick:O=>{O.stopPropagation(),Ps(""),Wi(!0)},className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("div",{className:"flex items-center gap-2 text-gray-400 whitespace-nowrap",children:[m.jsx(Tp,{className:"w-4 h-4 shrink-0"}),m.jsx("span",{children:e("menu.recoverNickname")})]})}),m.jsx(Xo,{onClick:O=>{O.stopPropagation(),Bi(!0)},className:"focus:bg-gray-800 focus:text-white cursor-pointer",children:m.jsxs("div",{className:"flex items-center gap-2 text-gray-400 whitespace-nowrap",children:[m.jsx(Yg,{className:"w-4 h-4 shrink-0"}),m.jsx("span",{children:e("menu.privacy")})]})})]})]})}),!St&&m.jsx("button",{onClick:O=>{O.stopPropagation(),Ze("coffee_modal_opened",{room_number:ue,room_name:Ln[ue]}),ne(!0)},className:"fixed w-9 h-9 flex items-center justify-center transition-all text-gray-400 hover:text-yellow-400 z-50",style:{left:"60px",top:`${16+Er}px`},title:e("menu.coffee"),children:m.jsx(Av,{className:"w-6 h-6"})}),!St&&to()&&m.jsx(rM,{variant:Ur,onClick:hi}),!St&&to()&&m.jsx(iM,{onClick:()=>Ze("promo_top_banner_click",{promo_variant:Ur}),onToggle:ac}),lc&&to()&&m.jsx(sM,{onClose:()=>{Ze("promo_popup_close",{promo_variant:Ur}),Va(!1)},onCtaClick:()=>Ze("promo_cta_click",{promo_variant:Ur})}),li&&m.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",onClick:()=>fo(!1),children:m.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-xl p-5 w-full max-w-sm",onClick:O=>O.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between mb-4",children:[m.jsx("h3",{className:"text-white font-bold text-base",children:e("report.title")}),m.jsx("button",{onClick:()=>fo(!1),className:"text-gray-400 hover:text-white",children:m.jsx(Rl,{className:"w-5 h-5"})})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{children:[m.jsx("label",{className:"text-gray-400 text-xs mb-1 block",children:e("report.targetLabel")}),m.jsx("input",{type:"text",value:Ms,onChange:O=>di(O.target.value),placeholder:e("report.targetPlaceholder"),className:"w-full bg-gray-800 border border-gray-600 rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-gray-400"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-gray-400 text-xs mb-1 block",children:e("report.reasonLabel")}),m.jsx("div",{className:"grid grid-cols-2 gap-2",children:d4.map(O=>m.jsx("button",{onClick:()=>Ga(O.code),className:`px-3 py-1.5 rounded-lg text-xs border transition-colors ${za===O.code?"bg-red-900/50 border-red-500 text-red-300":"bg-gray-800 border-gray-600 text-gray-300 hover:border-gray-400"}`,children:e(O.key)},O.code))})]}),m.jsxs("div",{children:[m.jsx("label",{className:"text-gray-400 text-xs mb-1 block",children:e("report.detailLabel")}),m.jsx("textarea",{value:Ui,onChange:O=>Ba(O.target.value),placeholder:e("report.detailPlaceholder"),rows:2,className:"w-full bg-gray-800 border border-gray-600 rounded-lg px-3 py-2 text-white text-sm outline-none focus:border-gray-400 resize-none"})]}),m.jsx("button",{onClick:async()=>
948{if(!Ms.trim()){B.error(e("report.needTarget"));return}if(!za){B.error(e("report.needReason"));return}try{const O=await Ih(),K=Bn(),fe=await fetch(`${nt}/report`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reportedNickname:Ms.trim(),roomId:String(ue),reporterNickname:D,reporterFingerprint:O,reporterDeviceToken:K,reasonType:za,reasonDetail:Ui.trim()||null})}),Re=await fe.json();fe.ok?(B.success(e("report.submitted")),fo(!1),di(""),Ga(""),Ba("")):B.error(Re.error||e("report.failed"))}catch{B.error(e("report.failed"))}},className:"w-full bg-red-600 hover:bg-red-700 text-white font-medium py-2 rounded-lg text-sm transition-colors",children:e("report.submit")})]})]})}),Hi&&m.jsx("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:m.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-5 w-full max-w-lg relative shadow-2xl h-[600px] max-h-[80vh] flex flex-col",onClick:O=>O.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[m.jsxs("h3",{className:"text-white font-bold text-base flex items-center gap-2",children:[m.jsx(Kg,{className:"w-5 h-5 text-gray-400"}),"최근 대화 히스토리"]}),m.jsx("button",{onClick:()=>$i(!1),className:"text-gray-400 hover:text-white transition-colors text-2xl leading-none",children:"×"})]}),m.jsxs("div",{className:"flex gap-1.5 mb-4 flex-shrink-0",children:[m.jsx("input",{type:"text",placeholder:"닉네임",value:Lo,onChange:O=>Br(O.target.value),onKeyDown:O=>Ss(O)&&js(Lo,lr),className:"w-[30%] min-w-0 basis-[9ch] bg-gray-800 border border-gray-700 rounded-lg px-2 py-1.5 text-xs text-white focus:outline-none focus:border-gray-500 placeholder-gray-500"}),m.jsx("input",{type:"text",placeholder:"내용 검색",value:lr,onChange:O=>Wr(O.target.value),onKeyDown:O=>Ss(O)&&js(Lo,lr),className:"flex-1 min-w-0 bg-gray-800 border border-gray-700 rounded-lg px-2 py-1.5 text-xs text-white focus:outline-none focus:border-gray-500 placeholder-gray-500"}),m.jsx("button",{onClick:()=>js(Lo,lr),className:"bg-gray-700 hover:bg-gray-600 text-white px-3 py-1.5 rounded-lg text-xs transition-colors whitespace-nowrap font-medium flex-shrink-0",children:"검색"})]}),m.jsx("div",{className:"overflow-y-auto flex-1 min-h-0 space-y-3 pr-2 custom-scrollbar",children:ci.length>0?ci.slice().reverse().map((O,K)=>{const fe=new Date(O.timestamp||Date.now()),Re=`${fe.getFullYear().toString().slice(-2)}.${String(fe.getMonth()+1).padStart(2,"0")}.${String(fe.getDate()).padStart(2,"0")}-${String(fe.getHours()).padStart(2,"0")}:${String(fe.getMinutes()).padStart(2,"0")}`;return m.jsxs("div",{className:"flex flex-col border-b border-gray-800 pb-2",children:[m.jsxs("div",{className:"flex justify-between items-start mb-1 gap-2",children:[m.jsxs("div",{className:"flex flex-col gap-0.5",children:[m.jsx("span",{className:"text-xs text-gray-400 font-bold break-all",children:O.nickname||"알 수 없음"}),m.jsx("span",{className:"text-[10px] text-gray-600 font-mono tracking-tighter",children:Re})]}),O.nickname&&!nh(O.nickname)&&m.jsxs("div",{className:"flex gap-1.5 flex-shrink-0 mt-0.5",children:[m.jsx("button",{onClick:async()=>{const Fe=O.nickname.replace(/^\[.+?]\s*/,"");if(!En()&&C){I("ban",Fe);return}const tt=await Gx(Fe);tt&&await Ie(e("sys.wolfBanned",{nickname:tt}),"",!0,void 0,"sys.wolfBanned",{nickname:tt})},className:"text-[10px] bg-red-900/40 text-red-400 hover:bg-red-800 hover:text-white border border-red-800/60 px-2 py-0.5 rounded transition-colors",children:"차단하기"}),m.jsx("button",{onClick:async()=>{const Fe=O.nickname.replace(/^\[.+?]\s*/,"");if(!En()&&C){I("unban",Fe);return}const tt=await Bx(Fe);tt&&await Ie(e("sys.wolfUnbanned",{nickname:tt}),"",!0,void 0,"sys.wolfUnbanned",{nickname:tt})},className:"text-[10px] bg-blue-900/40 text-blue-400 hover:bg-blue-800 hover:text-white border border-blue-800/60 px-2 py-0.5 rounded transition-colors",children:"차단해제"})]})]}),m.jsx("span",{className:"text-sm text-gray-200 break-words whitespace-pre-wrap",children:O.text})]},K)}):m.jsx("div",{className:"text-center text-gray-500 py-8 text-sm",children:"기록된 대화가 없습니다."})})]})}),Vn&&m.jsx(__,{nickname:Vn.nickname,recoveryCode:Vn.recoveryCode,onClose:()=>Yt(null)}),pt&&m.jsx("div",{onClick:()=>Wi(!1),className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:m.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-6 w-full max-w-sm relative shadow-2xl",onClick:O=>O.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between mb-4",children:[m.jsxs("h3",{className:"text-white font-bold text-base flex items-center gap-2",children:[m.jsx(Tp,{className:"w-4 h-4 text-gray-400"}),e("recover.title")]}),m.jsx("button",{onClick:()=>Wi(!1),className:"text-gray-400 hover:text-white transition-colors text-xl leading-none",children:"×"})]}),m.jsxs("p",{className:"text-sm text-gray-400 leading-relaxed break-keep mb-4",children:[e("recover.desc1"),e("recover.desc2")]}),m.jsx("input",{type:"text",value:Os,onChange:O=>Ps(O.target.value),placeholder:"DAMTA-XXXX-XXXX",autoCapitalize:"characters",autoCorrect:"off",spellCheck:!1,className:"w-full bg-gray-800 border border-gray-700 rounded-xl px-4 py-3 text-white text-center tracking-widest placeholder:text-gray-600 focus:outline-none focus:border-gray-500 mb-4"}),m.jsx("button",{disabled:Da||!Os.trim(),onClick:async()=>{Fa(!0);try{const O=await o_(Os,Bn());O&&(E(O),Wi(!1),B.success(e("recover.success",{nickname:O})),Ze("fixed_nickname_recovered"))}finally{Fa(!1)}},className:"w-full py-3 rounded-xl bg-white text-black font-semibold disabled:opacity-40 disabled:cursor-not-allowed active:scale-[0.98] transition-transform",children:e(Da?"recover.checking":"recover.submit")})]})}),As&&m.jsx("div",{onClick:()=>Bi(!1),className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:m.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-6 w-full max-w-lg relative shadow-2xl max-h-[80vh] flex flex-col",onClick:O=>O.stopPropagation(),children:[m.jsxs("div",{className:"flex items-center justify-between mb-4",children:[m.jsxs("h3",{className:"text-white font-bold text-base flex items-center gap-2",children:[m.jsx(Yg,{className:"w-4 h-4 text-gray-400"}),e("menu.privacy")]}),m.jsx("button",{onClick:()=>Bi(!1),className:"text-gray-400 hover:text-white transition-colors text-xl leading-none",children:"×"})]}),m.jsx("div",{className:`overflow-y-auto flex-1 text-gray-300 text-sm leading-relaxed prose prose-invert prose-sm max-w-none pr-3 custom-scrollbar
949                            [&_h1]:text-white [&_h1]:text-lg [&_h1]:font-bold [&_h1]:mb-3
950                            [&_h2]:text-gray-200 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:mt-4 [&_h2]:mb-2
951                            [&_hr]:border-gray-700 [&_hr]:my-3
952                            [&_table]:w-full [&_table]:text-xs [&_table]:border-collapse
953                            [&_th]:text-gray-400 [&_th]:border [&_th]:border-gray-700 [&_th]:px-2 [&_th]:py-1 [&_th]:text-left
954                            [&_td]:border [&_td]:border-gray-700 [&_td]:px-2 [&_td]:py-1
955                            [&_blockquote]:border-l-2 [&_blockquote]:border-gray-600 [&_blockquote]:pl-3 [&_blockquote]:text-gray-400
956                            [&_strong]:text-gray-200
957                            [&_a]:text-blue-400 [&_a]:underline
958                            [&_li]:my-0.5
959                            [&_em]:text-gray-500`,children:m.jsx(P2,{remarkPlugins:[KR],children:ro()?XR:YR}
959)})]})}),he&&m.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm animate-[fadeIn_0.2s_ease-out]",children:m.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-6 w-full max-w-sm relative shadow-2xl",onClick:O=>O.stopPropagation(),children:[m.jsx("button",{onClick:()=>{Ze("coffee_modal_closed",{room_number:ue,room_name:Ln[ue]}),ne(!1)},className:"absolute top-4 right-4 text-gray-400 hover:text-white transition-colors",children:m.jsx(Rl,{className:"w-6 h-6"})}),m.jsxs("div",{className:"flex flex-col items-center text-center gap-5 mt-2",children:[m.jsxs("h3",{className:"text-lg font-medium text-white leading-relaxed break-keep",children:[e("coffee.line1"),m.jsx("br",{}),e("coffee.line2")]}),!Sr&&m.jsx("div",{className:"w-full bg-white p-4 rounded-xl aspect-square",children:m.jsx("img",{src:Kx,alt:"KakaoPay QR",loading:"eager",decoding:"async",className:"w-full h-full object-contain"})}),Sr?m.jsxs(m.Fragment,{children:[m.jsx("a",{href:YM,target:"_blank",rel:"noopener noreferrer",onClick:()=>Ze("coffee_kakaopay_click",{room_number:ue,room_name:Ln[ue]}),className:"w-full flex items-center justify-center gap-2 py-4 rounded-xl bg-[#FEE500] text-[#191600] font-semibold text-base active:scale-[0.98] transition-transform",children:e("coffee.cta")}),m.jsx("p",{className:"text-xs text-gray-500 leading-relaxed break-keep",children:e("coffee.note")})]}):m.jsx("p",{className:"text-xs text-gray-500 leading-relaxed break-keep",children:e("coffee.note")})]})]})}),!St&&h&&!l&&m.jsxs("div",{className:"fixed right-4 flex items-center gap-2 z-50 transition-[top] duration-200",style:{to
959p:`${16+Er}px`},onClick:O=>O.stopPropagation(),children:[m.jsx("span",{className:"tabular-nums font-mono text-sm text-gray-400 select-none",children:Za(i)}),m.jsx("button",{onClick:qa,className:"w-9 h-9 flex items-center justify-center transition-all text-gray-400 hover:text-white group",title:e("toolbar.reset"),children:m.jsx(zf,{className:"w-6 h-6 group-hover:rotate-180 transition-transform duration-500"})})]}),!l&&(!_t||St)&&m.jsxs("div",{className:"fixed left-0 right-0 z-50 transition-opacity duration-300",style:{bottom:"60px"},onClick:O=>O.stopPropagation(),children:[m.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-10 z-10 pointer-events-none",style:{background:"linear-gradient(to right, black, transparent)"}}),m.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-10 z-10 pointer-events-none",style:{background:"linear-gradient(to left, black, transparent)"}}),m.jsxs("div",{className:"flex items-center gap-3 px-10 py-3 overflow-x-auto",style:{scrollbarWidth:"none",WebkitOverflowScrolling:"touch",touchAction:"pan-x"},children:[m.jsx("div",{className:"shrink-0 ml-auto"}),m.jsx("div",{className:"relative w-20 shrink-0 -translate-y-0.5",children:m.jsx("input",{type:"range",min:"0",max:"100",step:"0.5",value:Ne,onChange:O=>{const K=Number(O.target.value),fe=14,Re=22.5;let Fe=K;if(K>Re-fe&&K<Re+fe){const tt=K-Re;Fe=Re+Math.sign(tt)*Math.pow(Math.abs(tt)/fe,5)*fe}ut(Fe),Fe>=Re?(oe(40+(Fe-Re)/77.5*20),St&&(Gr(!1),Mn(!1))):St||(Gr(!0),Mn(!0))},onMouseUp:()=>Ze("slider_changed",{value:Ne,cigarette_width:xe}),onTouchEnd:()=>Ze("slider_changed",{value:Ne,cigarette_width:xe}),className:"slider-touch-enhanced w-full h-1.5 rounded-lg appearance-none cursor-pointer accent-gray-400",style:{background:Ne>=22.5?`linear-gradient(to right, #374151 0%, #374151 21.5%, transparent 21.5%, transparent 23.5%, #374151 23.5%, #374151 ${Ne}%, #9ca3af ${Ne}%, #9ca3af 100%)`:`linear-gradient(to right, #374151 ${Ne}%, #9ca3af ${Ne}%, #9ca3af 21.5%, transparent 21.5%, transparent 23.5%, #374151 23.5%, #374151 100%)`,touchAction:"none"}})}),m.jsxs("div",{className:`flex items-center gap-3 transition-opacity duration-300 ${St?"opacity-0 pointer-events-none":"opacity-100"}`,children:[m.jsxs(yp,{children:[m.jsx(wp,{asChild:!0,children:m.jsxs("button",{className:"shrink-0 flex items-center justify-center gap-1 px-3 h-7 rounded-sm bg-gray-800/60 transition-all outline-none flex-nowrap text-gray-400 hover:text-white",title:e("toolbar.teleportTitle"),children:[m.jsx("span",{className:"text-xs whitespace-nowrap",children:e("toolbar.teleport")}),m.jsx("svg",{className:"w-3 h-3 opacity-70 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),m.jsx(kp,{align:"start",side:"top",className:"bg-gray-900 border-gray-800 text-gray-200 min-w-[10rem] max-w-[min(16rem,80vw)]",children:Array.from({length:Gn},(O,K)=>K+1).map(O=>{const K=O===ue;return m.jsx(Xo,{onClick:()=>!K&&is(O),className:`focus:bg-gray-800 focus:text-white cursor-pointer ${K?"text-amber-400":""}`,children:m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[K&&m.jsx("span",{className:"text-xs",children:"✓"}),m.jsx("span",{children:bt[O]}),m.jsx("span",{className:"flex-1",children:ct[O]})]})},O)})})]}),ue===1&&m.jsxs(yp,{children:[m.jsx(wp,{asChild:!0,children:m.jsxs("button",{className:"shrink-0 flex items-center justify-center gap-1 px-3 h-7 rounded-sm bg-gray-800/60 transition-all outline-none flex-nowrap text-gray-400 hover:text-white",title:e(Cr?"baseball.matchPickTitle":"toolbar.pickTeamTitle"),children:[Ao?m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"w-2.5 h-2.5 rounded-full inline-block flex-shrink-0",style:{backgroundColor:Oo??void 0}}),m.jsx("span",{className:"text-xs whitespace-nowrap",style:{color:Oo??void 0},children:(()=>{const O=Hr.find(K=>K.name===Ao);return O?`${O.flag?`${O.flag} `:""}${f4(O)}`:Ao})()})]}):m.jsx("span",{className:"text-xs whitespace-nowrap",children:e(Cr?"baseball.matchCta":"toolbar.pickTeam")}),m.jsx("svg",{className:"w-3 h-3 opacity-70 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})}),m.jsxs(kp,{align:"start",side:"top",className:"bg-gray-900 border-gray-800 text-gray-200 min-w-[13.5rem] max-w-[13.5rem]",children:[Cr&&m.jsxs(m.Fragment,{children:[m.jsxs(hj,{className:"px-2 py-2 font-normal",children:[m.jsx("div",{className:"text-xs font-semibold text-white",children:e("baseball.matchTitle")}),m.jsx("div",{className:"mt-0.5 text-[11px] text-gray-400",children:e("baseball.matchMeta")})]}),m.jsx(mj,{className:"bg-gray-800"})]}),Hr.map(O=>{const K=Ao===O.name;return m.jsx(Xo,{onClick:()=>{K?(Fs(null),localStorage.removeItem(Wa),B(e("toast.teamCleared"))):(Fs(O.name),localStorage.setItem(Wa,O.name),B.success(e("toast.teamSelected",{team:Qy(O)})))},className:`focus:bg-gray-800 focus:text-white cursor-pointer ${K?"text-amber-400":""}`,children:m.jsxs("div",{className:"flex items-center gap-2 w-full",children:[O.flag?m.jsx("span",{className:"text-base leading-none","aria-hidden":"true",children:O.flag}):m.jsx("span",{className:"w-2.5 h-2.5 rounded-full inline-block flex-shrink-0 border border-white/20",style:{backgroundColor:O.color}}),m.jsx("span",{className:"flex-1",style:{color:K?O.color:void 0},children:Qy(O)}),K&&m.jsx("span",{className:"text-xs",children:"✓"})]})},O.name)})]})]}),m.jsx("button",{onClick:O=>{O.stopPropagation();const K=!f;b(K),ho.current=K,K?(bn.current&&(bn.current.volume=.25,bn.current.play().catch(()=>{})),B.success(e("toast.smokeSoundOn")),Ze("asmr_toggled",{state:"on",room_number:ue})):(bn.current&&(bn.current.pause(),bn.current.currentTime=0),B.success(e("toast.smokeSoundOff")),Ze("asmr_toggled",{state:"off",room_number:ue}))},className:"shrink-0 flex items-center justify-center px-3 h-7 rounded-sm bg-gray-800/60 transition-all text-gray-400 hover:text-white",title:e("toolbar.asmrTitle"),children:m.jsx("span",{className:"text-xs whitespace-nowrap",children:e(f?"toolbar.asmrOff":"toolbar.asmrOn")})}),m.jsx("button",{onClick:O=>{O.stopPropagation(),fo(!0),Ze("report_modal_opened",{room_number:ue})},className:"shrink-0 flex items-center justify-center px-3 h-7 rounded-sm bg-gray-800/60 transition-all text-gray-400 hover:text-white",title:e("toolbar.reportTitle"),children:m.jsx("span",{className:"text-xs whitespace-nowrap",children:e("toolbar.report")})})]}),m.jsx("div",{className:"shrink-0 mr-auto"})]})]}),m.jsxs("div",{className:`fixed left-0 right-0 z-40 transition-all duration-300 ease-out ${ii?"bottom-8":"bottom-0"} ${_t||St?"translate-y-0":"translate-y-[120%]"}`,onClick:O=>O.stopPropagation(),children:[m.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-48 bg-gradient-to-t from-black via-black/90 to-transparent -z-10 pointer-events-none"}),m.jsxs("form",{onSubmit:ns,className:"w-full max-w-md mx-auto p-4 pb-0 flex items-center justify-center gap-2",children:[m.jsxs("div",{className:"relative flex-1",children:[m.jsx("input",{ref:Nr,type:"text",value:_e,onFocus:()=>vr(!0),onBlur:()=>vr(!1),onChange:O=>Ge(O.target.value),onKeyDown:v_,onPaste:O=>O.preventDefault(),onCopy:O=>O.preventDefault(),onCut:O=>O.preventDefault(),placeholder:e(yo?"chat.blockedPlaceholder":"chat.placeholder"),className:`w-full bg-transparent border-none text-gray-200 rounded-full px-4 py-2.5 pr-10 focus:outline-none placeholder:text-gray-600 text-base transition-all ${yo?"opacity-50 cursor-not-allowed":""}`,maxLength:_e.startsWith("/고대리공지뿅뿅")?200:50,enterKeyHint:"send",disabled:yo}),_e&&m.jsx("button",{type:"button",onClick:()=>Ge(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-600 hover:text-gray-300 transition-colors",children:m.jsx(Rl,{className:"w-3.5 h-3.5"})})]}),m.jsxs("div",{className:"relative",children:[m.jsx("button",{type:"button",onMouseDown:O=>O.preventDefault(),onClick:()=>{Ze(oi?"shortcuts_closed":"shortcuts_opened",{room_number:ue,room_name:Ln[ue]}),zr(!oi)},disabled:yo,className:`text-2xl w-10 h-10 flex items-center justify-center rounded-full hover:bg-gray-800 transition-all ${yo?"opacity-50 cursor-not-allowed":""}`,title:e("toolbar.quickMessages"),children:"💨"}),oi&&!yo&&m.jsx("div",{className:"absolute bottom-full right-0 mb-2 bg-black/80 rounded-2xl p-2 min-w-[140px] max-w-[80vw] shadow-2xl",children:["💨",e("quick.inhale"),e("quick.inhaleOut"),e("quick.deepDrag"),e("quick.exhale")].map((O,K)=>m.jsx("button",{type:"button",onMouseDown:fe=>fe.preventDefault(),onClick:()=>rs(O),className:"w-full text-left px-3 py-2 text-gray-200 hover:bg-gray-800 rounded-lg transition-all text-sm whitespace-nowrap",children:O},K))})]}),m.jsx("button",{type:"submit",className:"hidden"})]})]}),!St&&m.jsx(gj,{className:`${ii?"bottom-10":"bottom-4"} ${_t?"opacity-0":""}`,nickname:D??void 0,roomNumber:ue,roomCount:zs[ue],allRoomCounts:zs,liveVisitCount:L,roomNames:ct,roomIcons:bt}),!St&&ii&&m.jsx(bM,{noticeText:ja,onClose:()=>co(!1)}),m.jsx(O_,{position:"bottom-center",theme:"dark",duration:2e3,visibleToasts:1,toastOptions:{className:"text-center justify-center",style:{marginBottom:"80px",textAlign:"center"}}})]})}u_().finally(()=>{Cv.createRoot(document.getElementById("root")).render(m.jsx(y_,{children:m.jsx(p4,{})}))});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.