@dsrcjs/ai-widget 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-dana-chat.js +26 -26
- package/dist/index-a7_Grh8c.js +19 -0
- package/dist/index.js +1 -1
- package/dist/{markdown-impl-7ocPztMu.js → markdown-impl-DU_yACyd.js} +1 -1
- package/dist/{stream-entry-CdtxSd08.js → stream-entry-YMTCTel8.js} +1 -1
- package/package.json +1 -1
- package/dist/index-2rcu8aIP.js +0 -19
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var lb=Object.defineProperty,cb=(r,n,o)=>n in r?lb(r,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[n]=o,ia=(r,n,o)=>cb(r,typeof n!="symbol"?n+"":n,o);function db(r,n){for(var o=0;o<n.length;o++){const s=n[o];if(typeof s!="string"&&!Array.isArray(s)){for(const d in s)if(d!=="default"&&!(d in r)){const p=Object.getOwnPropertyDescriptor(s,d);p&&Object.defineProperty(r,d,p.get?p:{enumerable:!0,get:()=>s[d]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function rp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ap={exports:{}},Ga={},np={exports:{}},je={},op;function ub(){if(op)return je;op=1;var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),j=Symbol.iterator;function k(w){return w===null||typeof w!="object"?null:(w=j&&w[j]||w["@@iterator"],typeof w=="function"?w:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,E={};function M(w,L,H){this.props=w,this.context=L,this.refs=E,this.updater=H||S}M.prototype.isReactComponent={},M.prototype.setState=function(w,L){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,L,"setState")},M.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function F(){}F.prototype=M.prototype;function Z(w,L,H){this.props=w,this.context=L,this.refs=E,this.updater=H||S}var oe=Z.prototype=new F;oe.constructor=Z,z(oe,M.prototype),oe.isPureReactComponent=!0;var J=Array.isArray,re=Object.prototype.hasOwnProperty,$={current:null},X={key:!0,ref:!0,__self:!0,__source:!0};function K(w,L,H){var V,pe={},fe=null,Se=null;if(L!=null)for(V in L.ref!==void 0&&(Se=L.ref),L.key!==void 0&&(fe=""+L.key),L)re.call(L,V)&&!X.hasOwnProperty(V)&&(pe[V]=L[V]);var ke=arguments.length-2;if(ke===1)pe.children=H;else if(1<ke){for(var xe=Array(ke),it=0;it<ke;it++)xe[it]=arguments[it+2];pe.children=xe}if(w&&w.defaultProps)for(V in ke=w.defaultProps,ke)pe[V]===void 0&&(pe[V]=ke[V]);return{$$typeof:r,type:w,key:fe,ref:Se,props:pe,_owner:$.current}}function he(w,L){return{$$typeof:r,type:w.type,key:L,ref:w.ref,props:w.props,_owner:w._owner}}function ee(w){return typeof w=="object"&&w!==null&&w.$$typeof===r}function ue(w){var L={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(H){return L[H]})}var W=/\/+/g;function Q(w,L){return typeof w=="object"&&w!==null&&w.key!=null?ue(""+w.key):L.toString(36)}function be(w,L,H,V,pe){var fe=typeof w;(fe==="undefined"||fe==="boolean")&&(w=null);var Se=!1;if(w===null)Se=!0;else switch(fe){case"string":case"number":Se=!0;break;case"object":switch(w.$$typeof){case r:case n:Se=!0}}if(Se)return Se=w,pe=pe(Se),w=V===""?"."+Q(Se,0):V,J(pe)?(H="",w!=null&&(H=w.replace(W,"$&/")+"/"),be(pe,L,H,"",function(it){return it})):pe!=null&&(ee(pe)&&(pe=he(pe,H+(!pe.key||Se&&Se.key===pe.key?"":(""+pe.key).replace(W,"$&/")+"/")+w)),L.push(pe)),1;if(Se=0,V=V===""?".":V+":",J(w))for(var ke=0;ke<w.length;ke++){fe=w[ke];var xe=V+Q(fe,ke);Se+=be(fe,L,H,xe,pe)}else if(xe=k(w),typeof xe=="function")for(w=xe.call(w),ke=0;!(fe=w.next()).done;)fe=fe.value,xe=V+Q(fe,ke++),Se+=be(fe,L,H,xe,pe);else if(fe==="object")throw L=String(w),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Se}function Ne(w,L,H){if(w==null)return w;var V=[],pe=0;return be(w,V,"","",function(fe){return L.call(H,fe,pe++)}),V}function ve(w){if(w._status===-1){var L=w._result;L=L(),L.then(function(H){(w._status===0||w._status===-1)&&(w._status=1,w._result=H)},function(H){(w._status===0||w._status===-1)&&(w._status=2,w._result=H)}),w._status===-1&&(w._status=0,w._result=L)}if(w._status===1)return w._result.default;throw w._result}var ye={current:null},U={transition:null},D={ReactCurrentDispatcher:ye,ReactCurrentBatchConfig:U,ReactCurrentOwner:$};function T(){throw Error("act(...) is not supported in production builds of React.")}return je.Children={map:Ne,forEach:function(w,L,H){Ne(w,function(){L.apply(this,arguments)},H)},count:function(w){var L=0;return Ne(w,function(){L++}),L},toArray:function(w){return Ne(w,function(L){return L})||[]},only:function(w){if(!ee(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},je.Component=M,je.Fragment=o,je.Profiler=d,je.PureComponent=Z,je.StrictMode=s,je.Suspense=m,je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,je.act=T,je.cloneElement=function(w,L,H){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var V=z({},w.props),pe=w.key,fe=w.ref,Se=w._owner;if(L!=null){if(L.ref!==void 0&&(fe=L.ref,Se=$.current),L.key!==void 0&&(pe=""+L.key),w.type&&w.type.defaultProps)var ke=w.type.defaultProps;for(xe in L)re.call(L,xe)&&!X.hasOwnProperty(xe)&&(V[xe]=L[xe]===void 0&&ke!==void 0?ke[xe]:L[xe])}var xe=arguments.length-2;if(xe===1)V.children=H;else if(1<xe){ke=Array(xe);for(var it=0;it<xe;it++)ke[it]=arguments[it+2];V.children=ke}return{$$typeof:r,type:w.type,key:pe,ref:fe,props:V,_owner:Se}},je.createContext=function(w){return w={$$typeof:f,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:p,_context:w},w.Consumer=w},je.createElement=K,je.createFactory=function(w){var L=K.bind(null,w);return L.type=w,L},je.createRef=function(){return{current:null}},je.forwardRef=function(w){return{$$typeof:h,render:w}},je.isValidElement=ee,je.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:ve}},je.memo=function(w,L){return{$$typeof:v,type:w,compare:L===void 0?null:L}},je.startTransition=function(w){var L=U.transition;U.transition={};try{w()}finally{U.transition=L}},je.unstable_act=T,je.useCallback=function(w,L){return ye.current.useCallback(w,L)},je.useContext=function(w){return ye.current.useContext(w)},je.useDebugValue=function(){},je.useDeferredValue=function(w){return ye.current.useDeferredValue(w)},je.useEffect=function(w,L){return ye.current.useEffect(w,L)},je.useId=function(){return ye.current.useId()},je.useImperativeHandle=function(w,L,H){return ye.current.useImperativeHandle(w,L,H)},je.useInsertionEffect=function(w,L){return ye.current.useInsertionEffect(w,L)},je.useLayoutEffect=function(w,L){return ye.current.useLayoutEffect(w,L)},je.useMemo=function(w,L){return ye.current.useMemo(w,L)},je.useReducer=function(w,L,H){return ye.current.useReducer(w,L,H)},je.useRef=function(w){return ye.current.useRef(w)},je.useState=function(w){return ye.current.useState(w)},je.useSyncExternalStore=function(w,L,H){return ye.current.useSyncExternalStore(w,L,H)},je.useTransition=function(){return ye.current.useTransition()},je.version="18.3.1",je}var ip;function Hs(){return ip||(ip=1,np.exports=ub()),np.exports}var sp;function pb(){if(sp)return Ga;sp=1;var r=Hs(),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function f(h,m,v){var b,j={},k=null,S=null;v!==void 0&&(k=""+v),m.key!==void 0&&(k=""+m.key),m.ref!==void 0&&(S=m.ref);for(b in m)s.call(m,b)&&!p.hasOwnProperty(b)&&(j[b]=m[b]);if(h&&h.defaultProps)for(b in m=h.defaultProps,m)j[b]===void 0&&(j[b]=m[b]);return{$$typeof:n,type:h,key:k,ref:S,props:j,_owner:d.current}}return Ga.Fragment=o,Ga.jsx=f,Ga.jsxs=f,Ga}var lp;function fb(){return lp||(lp=1,ap.exports=pb()),ap.exports}var l=fb(),x=Hs();const hb=rp(x),gb=db({__proto__:null,default:hb},[x]);var Ro={},Xs={exports:{}},ot={},cp={exports:{}},dp={},up;function mb(){return up||(up=1,(function(r){function n(U,D){var T=U.length;U.push(D);e:for(;0<T;){var w=T-1>>>1,L=U[w];if(0<d(L,D))U[w]=D,U[T]=L,T=w;else break e}}function o(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var D=U[0],T=U.pop();if(T!==D){U[0]=T;e:for(var w=0,L=U.length,H=L>>>1;w<H;){var V=2*(w+1)-1,pe=U[V],fe=V+1,Se=U[fe];if(0>d(pe,T))fe<L&&0>d(Se,pe)?(U[w]=Se,U[fe]=T,w=fe):(U[w]=pe,U[V]=T,w=V);else if(fe<L&&0>d(Se,T))U[w]=Se,U[fe]=T,w=fe;else break e}}return D}function d(U,D){var T=U.sortIndex-D.sortIndex;return T!==0?T:U.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;r.unstable_now=function(){return p.now()}}else{var f=Date,h=f.now();r.unstable_now=function(){return f.now()-h}}var m=[],v=[],b=1,j=null,k=3,S=!1,z=!1,E=!1,M=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(U){for(var D=o(v);D!==null;){if(D.callback===null)s(v);else if(D.startTime<=U)s(v),D.sortIndex=D.expirationTime,n(m,D);else break;D=o(v)}}function J(U){if(E=!1,oe(U),!z)if(o(m)!==null)z=!0,ve(re);else{var D=o(v);D!==null&&ye(J,D.startTime-U)}}function re(U,D){z=!1,E&&(E=!1,F(K),K=-1),S=!0;var T=k;try{for(oe(D),j=o(m);j!==null&&(!(j.expirationTime>D)||U&&!ue());){var w=j.callback;if(typeof w=="function"){j.callback=null,k=j.priorityLevel;var L=w(j.expirationTime<=D);D=r.unstable_now(),typeof L=="function"?j.callback=L:j===o(m)&&s(m),oe(D)}else s(m);j=o(m)}if(j!==null)var H=!0;else{var V=o(v);V!==null&&ye(J,V.startTime-D),H=!1}return H}finally{j=null,k=T,S=!1}}var $=!1,X=null,K=-1,he=5,ee=-1;function ue(){return!(r.unstable_now()-ee<he)}function W(){if(X!==null){var U=r.unstable_now();ee=U;var D=!0;try{D=X(!0,U)}finally{D?Q():($=!1,X=null)}}else $=!1}var Q;if(typeof Z=="function")Q=function(){Z(W)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,Ne=be.port2;be.port1.onmessage=W,Q=function(){Ne.postMessage(null)}}else Q=function(){M(W,0)};function ve(U){X=U,$||($=!0,Q())}function ye(U,D){K=M(function(){U(r.unstable_now())},D)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(U){U.callback=null},r.unstable_continueExecution=function(){z||S||(z=!0,ve(re))},r.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<U?Math.floor(1e3/U):5},r.unstable_getCurrentPriorityLevel=function(){return k},r.unstable_getFirstCallbackNode=function(){return o(m)},r.unstable_next=function(U){switch(k){case 1:case 2:case 3:var D=3;break;default:D=k}var T=k;k=D;try{return U()}finally{k=T}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(U,D){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var T=k;k=U;try{return D()}finally{k=T}},r.unstable_scheduleCallback=function(U,D,T){var w=r.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?w+T:w):T=w,U){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=T+L,U={id:b++,callback:D,priorityLevel:U,startTime:T,expirationTime:L,sortIndex:-1},T>w?(U.sortIndex=T,n(v,U),o(m)===null&&U===o(v)&&(E?(F(K),K=-1):E=!0,ye(J,T-w))):(U.sortIndex=L,n(m,U),z||S||(z=!0,ve(re))),U},r.unstable_shouldYield=ue,r.unstable_wrapCallback=function(U){var D=k;return function(){var T=k;k=D;try{return U.apply(this,arguments)}finally{k=T}}}})(dp)),dp}var pp;function bb(){return pp||(pp=1,cp.exports=mb()),cp.exports}var fp;function xb(){if(fp)return ot;fp=1;var r=Hs(),n=bb();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,d={};function p(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(d[e]=t,e=0;e<t.length;e++)s.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,v=/^[: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]*$/,b={},j={};function k(e){return m.call(j,e)?!0:m.call(b,e)?!1:v.test(e)?j[e]=!0:(b[e]=!0,!1)}function S(e,t,a,i){if(a!==null&&a.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function z(e,t,a,i){if(t===null||typeof t>"u"||S(e,t,a,i))return!0;if(i)return!1;if(a!==null)switch(a.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function E(e,t,a,i,c,u,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=c,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=g}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];M[t]=new E(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new E(e,2,!1,e,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(e){M[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var F=/[\-:]([a-z])/g;function Z(e){return e[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(e){var t=e.replace(F,Z);M[t]=new E(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(F,Z);M[t]=new E(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(F,Z);M[t]=new E(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function oe(e,t,a,i){var c=M.hasOwnProperty(t)?M[t]:null;(c!==null?c.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(z(t,a,c,i)&&(a=null),i||c===null?k(t)&&(a===null?e.removeAttribute(t):e.setAttribute(t,""+a)):c.mustUseProperty?e[c.propertyName]=a===null?c.type===3?!1:"":a:(t=c.attributeName,i=c.attributeNamespace,a===null?e.removeAttribute(t):(c=c.type,a=c===3||c===4&&a===!0?"":""+a,i?e.setAttributeNS(i,t,a):e.setAttribute(t,a))))}var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,re=Symbol.for("react.element"),$=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),ee=Symbol.for("react.provider"),ue=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),be=Symbol.for("react.suspense_list"),Ne=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),U=Symbol.iterator;function D(e){return e===null||typeof e!="object"?null:(e=U&&e[U]||e["@@iterator"],typeof e=="function"?e:null)}var T=Object.assign,w;function L(e){if(w===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);w=t&&t[1]||""}return`
|
|
2
|
+
`+w+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(P){var i=P}Reflect.construct(e,[],t)}else{try{t.call()}catch(P){i=P}e.call(t.prototype)}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var c=P.stack.split(`
|
|
3
|
+
`),u=i.stack.split(`
|
|
4
|
+
`),g=c.length-1,y=u.length-1;1<=g&&0<=y&&c[g]!==u[y];)y--;for(;1<=g&&0<=y;g--,y--)if(c[g]!==u[y]){if(g!==1||y!==1)do if(g--,y--,0>y||c[g]!==u[y]){var C=`
|
|
5
|
+
`+c[g].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=g&&0<=y);break}}}finally{H=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?L(e):""}function pe(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1),e;case 11:return e=V(e.type.render,!1),e;case 1:return e=V(e.type,!0),e;default:return""}}function fe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case $:return"Portal";case he:return"Profiler";case K:return"StrictMode";case Q:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ue:return(e.displayName||"Context")+".Consumer";case ee:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ne:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case ve:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function Se(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===K?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function it(e){var t=xe(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var c=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(g){i=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return i},setValue:function(g){i=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vn(e){e._valueTracker||(e._valueTracker=it(e))}function sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=xe(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function yn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ei(e,t){var a=t.checked;return T({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function lc(e,t){var a=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;a=ke(t.value!=null?t.value:a),e._wrapperState={initialChecked:i,initialValue:a,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cc(e,t){t=t.checked,t!=null&&oe(e,"checked",t,!1)}function ti(e,t){cc(e,t);var a=ke(t.value),i=t.type;if(a!=null)i==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ri(e,t.type,a):t.hasOwnProperty("defaultValue")&&ri(e,t.type,ke(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dc(e,t,a){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,a||t===e.value||(e.value=t),e.defaultValue=t}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function ri(e,t,a){(t!=="number"||yn(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var ha=Array.isArray;function Tr(e,t,a,i){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&i&&(e[a].defaultSelected=!0)}else{for(a=""+ke(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,i&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function ai(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(o(91));return T({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uc(e,t){var a=t.value;if(a==null){if(a=t.children,t=t.defaultValue,a!=null){if(t!=null)throw Error(o(92));if(ha(a)){if(1<a.length)throw Error(o(93));a=a[0]}t=a}t==null&&(t=""),a=t}e._wrapperState={initialValue:ke(a)}}function pc(e,t){var a=ke(t.value),i=ke(t.defaultValue);a!=null&&(a=""+a,a!==e.value&&(e.value=a),t.defaultValue==null&&e.defaultValue!==a&&(e.defaultValue=a)),i!=null&&(e.defaultValue=""+i)}function fc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hc(e){switch(e){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 ni(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wn,gc=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,a,i,c){MSApp.execUnsafeLocalFunction(function(){return e(t,a,i,c)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wn=wn||document.createElement("div"),wn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ga(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ma={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},pg=["Webkit","ms","Moz","O"];Object.keys(ma).forEach(function(e){pg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ma[t]=ma[e]})});function mc(e,t,a){return t==null||typeof t=="boolean"||t===""?"":a||typeof t!="number"||t===0||ma.hasOwnProperty(e)&&ma[e]?(""+t).trim():t+"px"}function bc(e,t){e=e.style;for(var a in t)if(t.hasOwnProperty(a)){var i=a.indexOf("--")===0,c=mc(a,t[a],i);a==="float"&&(a="cssFloat"),i?e.setProperty(a,c):e[a]=c}}var fg=T({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 oi(e,t){if(t){if(fg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function ii(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var si=null;function li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ci=null,Ir=null,Ar=null;function xc(e){if(e=Oa(e)){if(typeof ci!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Bn(t),ci(e.stateNode,e.type,t))}}function vc(e){Ir?Ar?Ar.push(e):Ar=[e]:Ir=e}function yc(){if(Ir){var e=Ir,t=Ar;if(Ar=Ir=null,xc(e),t)for(e=0;e<t.length;e++)xc(t[e])}}function wc(e,t){return e(t)}function kc(){}var di=!1;function jc(e,t,a){if(di)return e(t,a);di=!0;try{return wc(e,t,a)}finally{di=!1,(Ir!==null||Ar!==null)&&(kc(),yc())}}function ba(e,t){var a=e.stateNode;if(a===null)return null;var i=Bn(a);if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ui=!1;if(h)try{var xa={};Object.defineProperty(xa,"passive",{get:function(){ui=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{ui=!1}function hg(e,t,a,i,c,u,g,y,C){var P=Array.prototype.slice.call(arguments,3);try{t.apply(a,P)}catch(A){this.onError(A)}}var va=!1,kn=null,jn=!1,pi=null,gg={onError:function(e){va=!0,kn=e}};function mg(e,t,a,i,c,u,g,y,C){va=!1,kn=null,hg.apply(gg,arguments)}function bg(e,t,a,i,c,u,g,y,C){if(mg.apply(this,arguments),va){if(va){var P=kn;va=!1,kn=null}else throw Error(o(198));jn||(jn=!0,pi=P)}}function hr(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function Sc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Cc(e){if(hr(e)!==e)throw Error(o(188))}function xg(e){var t=e.alternate;if(!t){if(t=hr(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var c=a.return;if(c===null)break;var u=c.alternate;if(u===null){if(i=c.return,i!==null){a=i;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===a)return Cc(c),e;if(u===i)return Cc(c),t;u=u.sibling}throw Error(o(188))}if(a.return!==i.return)a=c,i=u;else{for(var g=!1,y=c.child;y;){if(y===a){g=!0,a=c,i=u;break}if(y===i){g=!0,i=c,a=u;break}y=y.sibling}if(!g){for(y=u.child;y;){if(y===a){g=!0,a=u,i=c;break}if(y===i){g=!0,i=u,a=c;break}y=y.sibling}if(!g)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function Nc(e){return e=xg(e),e!==null?Ec(e):null}function Ec(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ec(e);if(t!==null)return t;e=e.sibling}return null}var zc=n.unstable_scheduleCallback,_c=n.unstable_cancelCallback,vg=n.unstable_shouldYield,yg=n.unstable_requestPaint,Ae=n.unstable_now,wg=n.unstable_getCurrentPriorityLevel,fi=n.unstable_ImmediatePriority,Rc=n.unstable_UserBlockingPriority,Sn=n.unstable_NormalPriority,kg=n.unstable_LowPriority,Mc=n.unstable_IdlePriority,Cn=null,Rt=null;function jg(e){if(Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Cn,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Ng,Sg=Math.log,Cg=Math.LN2;function Ng(e){return e>>>=0,e===0?32:31-(Sg(e)/Cg|0)|0}var Nn=64,En=4194304;function ya(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zn(e,t){var a=e.pendingLanes;if(a===0)return 0;var i=0,c=e.suspendedLanes,u=e.pingedLanes,g=a&268435455;if(g!==0){var y=g&~c;y!==0?i=ya(y):(u&=g,u!==0&&(i=ya(u)))}else g=a&~c,g!==0?i=ya(g):u!==0&&(i=ya(u));if(i===0)return 0;if(t!==0&&t!==i&&(t&c)===0&&(c=i&-i,u=t&-t,c>=u||c===16&&(u&4194240)!==0))return t;if((i&4)!==0&&(i|=a&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)a=31-kt(t),c=1<<a,i|=e[a],t&=~c;return i}function Eg(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 zg(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes;0<u;){var g=31-kt(u),y=1<<g,C=c[g];C===-1?((y&a)===0||(y&i)!==0)&&(c[g]=Eg(y,t)):C<=t&&(e.expiredLanes|=y),u&=~y}}function hi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Pc(){var e=Nn;return Nn<<=1,(Nn&4194240)===0&&(Nn=64),e}function gi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function wa(e,t,a){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(t),e[t]=a}function _g(e,t){var a=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<a;){var c=31-kt(a),u=1<<c;t[c]=0,i[c]=-1,e[c]=-1,a&=~u}}function mi(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-kt(a),c=1<<i;c&t|e[i]&t&&(e[i]|=t),a&=~c}}var ze=0;function Lc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Dc,bi,Tc,Ic,Ac,xi=!1,_n=[],Wt=null,Ht=null,Xt=null,ka=new Map,ja=new Map,Kt=[],Rg="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 Oc(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Xt=null;break;case"pointerover":case"pointerout":ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ja.delete(t.pointerId)}}function Sa(e,t,a,i,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:u,targetContainers:[c]},t!==null&&(t=Oa(t),t!==null&&bi(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Mg(e,t,a,i,c){switch(t){case"focusin":return Wt=Sa(Wt,e,t,a,i,c),!0;case"dragenter":return Ht=Sa(Ht,e,t,a,i,c),!0;case"mouseover":return Xt=Sa(Xt,e,t,a,i,c),!0;case"pointerover":var u=c.pointerId;return ka.set(u,Sa(ka.get(u)||null,e,t,a,i,c)),!0;case"gotpointercapture":return u=c.pointerId,ja.set(u,Sa(ja.get(u)||null,e,t,a,i,c)),!0}return!1}function $c(e){var t=gr(e.target);if(t!==null){var a=hr(t);if(a!==null){if(t=a.tag,t===13){if(t=Sc(a),t!==null){e.blockedOn=t,Ac(e.priority,function(){Tc(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=yi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);si=i,a.target.dispatchEvent(i),si=null}else return t=Oa(a),t!==null&&bi(t),e.blockedOn=a,!1;t.shift()}return!0}function Fc(e,t,a){Rn(e)&&a.delete(t)}function Pg(){xi=!1,Wt!==null&&Rn(Wt)&&(Wt=null),Ht!==null&&Rn(Ht)&&(Ht=null),Xt!==null&&Rn(Xt)&&(Xt=null),ka.forEach(Fc),ja.forEach(Fc)}function Ca(e,t){e.blockedOn===t&&(e.blockedOn=null,xi||(xi=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Pg)))}function Na(e){function t(c){return Ca(c,e)}if(0<_n.length){Ca(_n[0],e);for(var a=1;a<_n.length;a++){var i=_n[a];i.blockedOn===e&&(i.blockedOn=null)}}for(Wt!==null&&Ca(Wt,e),Ht!==null&&Ca(Ht,e),Xt!==null&&Ca(Xt,e),ka.forEach(t),ja.forEach(t),a=0;a<Kt.length;a++)i=Kt[a],i.blockedOn===e&&(i.blockedOn=null);for(;0<Kt.length&&(a=Kt[0],a.blockedOn===null);)$c(a),a.blockedOn===null&&Kt.shift()}var Or=J.ReactCurrentBatchConfig,Mn=!0;function Lg(e,t,a,i){var c=ze,u=Or.transition;Or.transition=null;try{ze=1,vi(e,t,a,i)}finally{ze=c,Or.transition=u}}function Dg(e,t,a,i){var c=ze,u=Or.transition;Or.transition=null;try{ze=4,vi(e,t,a,i)}finally{ze=c,Or.transition=u}}function vi(e,t,a,i){if(Mn){var c=yi(e,t,a,i);if(c===null)Ai(e,t,i,Pn,a),Oc(e,i);else if(Mg(c,e,t,a,i))i.stopPropagation();else if(Oc(e,i),t&4&&-1<Rg.indexOf(e)){for(;c!==null;){var u=Oa(c);if(u!==null&&Dc(u),u=yi(e,t,a,i),u===null&&Ai(e,t,i,Pn,a),u===c)break;c=u}c!==null&&i.stopPropagation()}else Ai(e,t,i,null,a)}}var Pn=null;function yi(e,t,a,i){if(Pn=null,e=li(i),e=gr(e),e!==null)if(t=hr(e),t===null)e=null;else if(a=t.tag,a===13){if(e=Sc(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pn=e,null}function Uc(e){switch(e){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(wg()){case fi:return 1;case Rc:return 4;case Sn:case kg:return 16;case Mc:return 536870912;default:return 16}default:return 16}}var Qt=null,wi=null,Ln=null;function qc(){if(Ln)return Ln;var e,t=wi,a=t.length,i,c="value"in Qt?Qt.value:Qt.textContent,u=c.length;for(e=0;e<a&&t[e]===c[e];e++);var g=a-e;for(i=1;i<=g&&t[a-i]===c[u-i];i++);return Ln=c.slice(e,1<i?1-i:void 0)}function Dn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tn(){return!0}function Vc(){return!1}function st(e){function t(a,i,c,u,g){this._reactName=a,this._targetInst=c,this.type=i,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Tn:Vc,this.isPropagationStopped=Vc,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Tn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),t}var $r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ki=st($r),Ea=T({},$r,{view:0,detail:0}),Tg=st(Ea),ji,Si,za,In=T({},Ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ni,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==za&&(za&&e.type==="mousemove"?(ji=e.screenX-za.screenX,Si=e.screenY-za.screenY):Si=ji=0,za=e),ji)},movementY:function(e){return"movementY"in e?e.movementY:Si}}),Bc=st(In),Ig=T({},In,{dataTransfer:0}),Ag=st(Ig),Og=T({},Ea,{relatedTarget:0}),Ci=st(Og),$g=T({},$r,{animationName:0,elapsedTime:0,pseudoElement:0}),Fg=st($g),Ug=T({},$r,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qg=st(Ug),Vg=T({},$r,{data:0}),Wc=st(Vg),Bg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wg={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hg[e])?!!t[e]:!1}function Ni(){return Xg}var Kg=T({},Ea,{key:function(e){if(e.key){var t=Bg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Dn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ni,charCode:function(e){return e.type==="keypress"?Dn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qg=st(Kg),Yg=T({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hc=st(Yg),Zg=T({},Ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ni}),Jg=st(Zg),Gg=T({},$r,{propertyName:0,elapsedTime:0,pseudoElement:0}),em=st(Gg),tm=T({},In,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),rm=st(tm),am=[9,13,27,32],Ei=h&&"CompositionEvent"in window,_a=null;h&&"documentMode"in document&&(_a=document.documentMode);var nm=h&&"TextEvent"in window&&!_a,Xc=h&&(!Ei||_a&&8<_a&&11>=_a),Kc=" ",Qc=!1;function Yc(e,t){switch(e){case"keyup":return am.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fr=!1;function om(e,t){switch(e){case"compositionend":return Zc(t);case"keypress":return t.which!==32?null:(Qc=!0,Kc);case"textInput":return e=t.data,e===Kc&&Qc?null:e;default:return null}}function im(e,t){if(Fr)return e==="compositionend"||!Ei&&Yc(e,t)?(e=qc(),Ln=wi=Qt=null,Fr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xc&&t.locale!=="ko"?null:t.data;default:return null}}var sm={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 Jc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sm[e.type]:t==="textarea"}function Gc(e,t,a,i){vc(i),t=Un(t,"onChange"),0<t.length&&(a=new ki("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Ra=null,Ma=null;function lm(e){bd(e,0)}function An(e){var t=Wr(e);if(sc(t))return e}function cm(e,t){if(e==="change")return t}var ed=!1;if(h){var zi;if(h){var _i="oninput"in document;if(!_i){var td=document.createElement("div");td.setAttribute("oninput","return;"),_i=typeof td.oninput=="function"}zi=_i}else zi=!1;ed=zi&&(!document.documentMode||9<document.documentMode)}function rd(){Ra&&(Ra.detachEvent("onpropertychange",ad),Ma=Ra=null)}function ad(e){if(e.propertyName==="value"&&An(Ma)){var t=[];Gc(t,Ma,e,li(e)),jc(lm,t)}}function dm(e,t,a){e==="focusin"?(rd(),Ra=t,Ma=a,Ra.attachEvent("onpropertychange",ad)):e==="focusout"&&rd()}function um(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return An(Ma)}function pm(e,t){if(e==="click")return An(t)}function fm(e,t){if(e==="input"||e==="change")return An(t)}function hm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:hm;function Pa(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var c=a[i];if(!m.call(t,c)||!jt(e[c],t[c]))return!1}return!0}function nd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function od(e,t){var a=nd(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=nd(a)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=yn();t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=yn(e.document)}return t}function Ri(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gm(e){var t=sd(),a=e.focusedElem,i=e.selectionRange;if(t!==a&&a&&a.ownerDocument&&id(a.ownerDocument.documentElement,a)){if(i!==null&&Ri(a)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in a)a.selectionStart=t,a.selectionEnd=Math.min(e,a.value.length);else if(e=(t=a.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var c=a.textContent.length,u=Math.min(i.start,c);i=i.end===void 0?u:Math.min(i.end,c),!e.extend&&u>i&&(c=i,i=u,u=c),c=od(a,u);var g=od(a,i);c&&g&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),e.removeAllRanges(),u>i?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=a;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<t.length;a++)e=t[a],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mm=h&&"documentMode"in document&&11>=document.documentMode,Ur=null,Mi=null,La=null,Pi=!1;function ld(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Pi||Ur==null||Ur!==yn(i)||(i=Ur,"selectionStart"in i&&Ri(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),La&&Pa(La,i)||(La=i,i=Un(Mi,"onSelect"),0<i.length&&(t=new ki("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=Ur)))}function On(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var qr={animationend:On("Animation","AnimationEnd"),animationiteration:On("Animation","AnimationIteration"),animationstart:On("Animation","AnimationStart"),transitionend:On("Transition","TransitionEnd")},Li={},cd={};h&&(cd=document.createElement("div").style,"AnimationEvent"in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),"TransitionEvent"in window||delete qr.transitionend.transition);function $n(e){if(Li[e])return Li[e];if(!qr[e])return e;var t=qr[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in cd)return Li[e]=t[a];return e}var dd=$n("animationend"),ud=$n("animationiteration"),pd=$n("animationstart"),fd=$n("transitionend"),hd=new Map,gd="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 Yt(e,t){hd.set(e,t),p(t,[e])}for(var Di=0;Di<gd.length;Di++){var Ti=gd[Di],bm=Ti.toLowerCase(),xm=Ti[0].toUpperCase()+Ti.slice(1);Yt(bm,"on"+xm)}Yt(dd,"onAnimationEnd"),Yt(ud,"onAnimationIteration"),Yt(pd,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(fd,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="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(" "),vm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Da));function md(e,t,a){var i=e.type||"unknown-event";e.currentTarget=a,bg(i,t,void 0,e),e.currentTarget=null}function bd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],c=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var g=i.length-1;0<=g;g--){var y=i[g],C=y.instance,P=y.currentTarget;if(y=y.listener,C!==u&&c.isPropagationStopped())break e;md(c,y,P),u=C}else for(g=0;g<i.length;g++){if(y=i[g],C=y.instance,P=y.currentTarget,y=y.listener,C!==u&&c.isPropagationStopped())break e;md(c,y,P),u=C}}}if(jn)throw e=pi,jn=!1,pi=null,e}function Re(e,t){var a=t[Vi];a===void 0&&(a=t[Vi]=new Set);var i=e+"__bubble";a.has(i)||(xd(t,e,2,!1),a.add(i))}function Ii(e,t,a){var i=0;t&&(i|=4),xd(a,e,i,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function Ta(e){if(!e[Fn]){e[Fn]=!0,s.forEach(function(a){a!=="selectionchange"&&(vm.has(a)||Ii(a,!1,e),Ii(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fn]||(t[Fn]=!0,Ii("selectionchange",!1,t))}}function xd(e,t,a,i){switch(Uc(t)){case 1:var c=Lg;break;case 4:c=Dg;break;default:c=vi}a=c.bind(null,t,a,e),c=void 0,!ui||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),i?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function Ai(e,t,a,i,c){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var y=i.stateNode.containerInfo;if(y===c||y.nodeType===8&&y.parentNode===c)break;if(g===4)for(g=i.return;g!==null;){var C=g.tag;if((C===3||C===4)&&(C=g.stateNode.containerInfo,C===c||C.nodeType===8&&C.parentNode===c))return;g=g.return}for(;y!==null;){if(g=gr(y),g===null)return;if(C=g.tag,C===5||C===6){i=u=g;continue e}y=y.parentNode}}i=i.return}jc(function(){var P=u,A=li(a),O=[];e:{var I=hd.get(e);if(I!==void 0){var Y=ki,ae=e;switch(e){case"keypress":if(Dn(a)===0)break e;case"keydown":case"keyup":Y=Qg;break;case"focusin":ae="focus",Y=Ci;break;case"focusout":ae="blur",Y=Ci;break;case"beforeblur":case"afterblur":Y=Ci;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":Y=Bc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Jg;break;case dd:case ud:case pd:Y=Fg;break;case fd:Y=em;break;case"scroll":Y=Tg;break;case"wheel":Y=rm;break;case"copy":case"cut":case"paste":Y=qg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Hc}var ne=(t&4)!==0,Oe=!ne&&e==="scroll",_=ne?I!==null?I+"Capture":null:I;ne=[];for(var N=P,R;N!==null;){R=N;var q=R.stateNode;if(R.tag===5&&q!==null&&(R=q,_!==null&&(q=ba(N,_),q!=null&&ne.push(Ia(N,q,R)))),Oe)break;N=N.return}0<ne.length&&(I=new Y(I,ae,null,a,A),O.push({event:I,listeners:ne}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",I&&a!==si&&(ae=a.relatedTarget||a.fromElement)&&(gr(ae)||ae[Tt]))break e;if((Y||I)&&(I=A.window===A?A:(I=A.ownerDocument)?I.defaultView||I.parentWindow:window,Y?(ae=a.relatedTarget||a.toElement,Y=P,ae=ae?gr(ae):null,ae!==null&&(Oe=hr(ae),ae!==Oe||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(Y=null,ae=P),Y!==ae)){if(ne=Bc,q="onMouseLeave",_="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Hc,q="onPointerLeave",_="onPointerEnter",N="pointer"),Oe=Y==null?I:Wr(Y),R=ae==null?I:Wr(ae),I=new ne(q,N+"leave",Y,a,A),I.target=Oe,I.relatedTarget=R,q=null,gr(A)===P&&(ne=new ne(_,N+"enter",ae,a,A),ne.target=R,ne.relatedTarget=Oe,q=ne),Oe=q,Y&&ae)t:{for(ne=Y,_=ae,N=0,R=ne;R;R=Vr(R))N++;for(R=0,q=_;q;q=Vr(q))R++;for(;0<N-R;)ne=Vr(ne),N--;for(;0<R-N;)_=Vr(_),R--;for(;N--;){if(ne===_||_!==null&&ne===_.alternate)break t;ne=Vr(ne),_=Vr(_)}ne=null}else ne=null;Y!==null&&vd(O,I,Y,ne,!1),ae!==null&&Oe!==null&&vd(O,Oe,ae,ne,!0)}}e:{if(I=P?Wr(P):window,Y=I.nodeName&&I.nodeName.toLowerCase(),Y==="select"||Y==="input"&&I.type==="file")var ie=cm;else if(Jc(I))if(ed)ie=fm;else{ie=um;var ce=dm}else(Y=I.nodeName)&&Y.toLowerCase()==="input"&&(I.type==="checkbox"||I.type==="radio")&&(ie=pm);if(ie&&(ie=ie(e,P))){Gc(O,ie,a,A);break e}ce&&ce(e,I,P),e==="focusout"&&(ce=I._wrapperState)&&ce.controlled&&I.type==="number"&&ri(I,"number",I.value)}switch(ce=P?Wr(P):window,e){case"focusin":(Jc(ce)||ce.contentEditable==="true")&&(Ur=ce,Mi=P,La=null);break;case"focusout":La=Mi=Ur=null;break;case"mousedown":Pi=!0;break;case"contextmenu":case"mouseup":case"dragend":Pi=!1,ld(O,a,A);break;case"selectionchange":if(mm)break;case"keydown":case"keyup":ld(O,a,A)}var de;if(Ei)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Fr?Yc(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(Xc&&a.locale!=="ko"&&(Fr||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Fr&&(de=qc()):(Qt=A,wi="value"in Qt?Qt.value:Qt.textContent,Fr=!0)),ce=Un(P,ge),0<ce.length&&(ge=new Wc(ge,e,null,a,A),O.push({event:ge,listeners:ce}),de?ge.data=de:(de=Zc(a),de!==null&&(ge.data=de)))),(de=nm?om(e,a):im(e,a))&&(P=Un(P,"onBeforeInput"),0<P.length&&(A=new Wc("onBeforeInput","beforeinput",null,a,A),O.push({event:A,listeners:P}),A.data=de))}bd(O,t)})}function Ia(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Un(e,t){for(var a=t+"Capture",i=[];e!==null;){var c=e,u=c.stateNode;c.tag===5&&u!==null&&(c=u,u=ba(e,a),u!=null&&i.unshift(Ia(e,u,c)),u=ba(e,t),u!=null&&i.push(Ia(e,u,c))),e=e.return}return i}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vd(e,t,a,i,c){for(var u=t._reactName,g=[];a!==null&&a!==i;){var y=a,C=y.alternate,P=y.stateNode;if(C!==null&&C===i)break;y.tag===5&&P!==null&&(y=P,c?(C=ba(a,u),C!=null&&g.unshift(Ia(a,C,y))):c||(C=ba(a,u),C!=null&&g.push(Ia(a,C,y)))),a=a.return}g.length!==0&&e.push({event:t,listeners:g})}var ym=/\r\n?/g,wm=/\u0000|\uFFFD/g;function yd(e){return(typeof e=="string"?e:""+e).replace(ym,`
|
|
6
|
+
`).replace(wm,"")}function qn(e,t,a){if(t=yd(t),yd(e)!==t&&a)throw Error(o(425))}function Vn(){}var Oi=null,$i=null;function Fi(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ui=typeof setTimeout=="function"?setTimeout:void 0,km=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,jm=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(e){return wd.resolve(null).then(e).catch(Sm)}:Ui;function Sm(e){setTimeout(function(){throw e})}function qi(e,t){var a=t,i=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"){if(i===0){e.removeChild(c),Na(t);return}i--}else a!=="$"&&a!=="$?"&&a!=="$!"||i++;a=c}while(a);Na(t)}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}var Br=Math.random().toString(36).slice(2),Mt="__reactFiber$"+Br,Aa="__reactProps$"+Br,Tt="__reactContainer$"+Br,Vi="__reactEvents$"+Br,Cm="__reactListeners$"+Br,Nm="__reactHandles$"+Br;function gr(e){var t=e[Mt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Tt]||a[Mt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=kd(e);e!==null;){if(a=e[Mt])return a;e=kd(e)}return t}e=a,a=e.parentNode}return null}function Oa(e){return e=e[Mt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function Bn(e){return e[Aa]||null}var Bi=[],Hr=-1;function Jt(e){return{current:e}}function Me(e){0>Hr||(e.current=Bi[Hr],Bi[Hr]=null,Hr--)}function _e(e,t){Hr++,Bi[Hr]=e.current,e.current=t}var Gt={},Xe=Jt(Gt),et=Jt(!1),mr=Gt;function Xr(e,t){var a=e.type.contextTypes;if(!a)return Gt;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var c={},u;for(u in a)c[u]=t[u];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=c),c}function tt(e){return e=e.childContextTypes,e!=null}function Wn(){Me(et),Me(Xe)}function jd(e,t,a){if(Xe.current!==Gt)throw Error(o(168));_e(Xe,t),_e(et,a)}function Sd(e,t,a){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return a;i=i.getChildContext();for(var c in i)if(!(c in t))throw Error(o(108,Se(e)||"Unknown",c));return T({},a,i)}function Hn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,mr=Xe.current,_e(Xe,e),_e(et,et.current),!0}function Cd(e,t,a){var i=e.stateNode;if(!i)throw Error(o(169));a?(e=Sd(e,t,mr),i.__reactInternalMemoizedMergedChildContext=e,Me(et),Me(Xe),_e(Xe,e)):Me(et),_e(et,a)}var It=null,Xn=!1,Wi=!1;function Nd(e){It===null?It=[e]:It.push(e)}function Em(e){Xn=!0,Nd(e)}function er(){if(!Wi&&It!==null){Wi=!0;var e=0,t=ze;try{var a=It;for(ze=1;e<a.length;e++){var i=a[e];do i=i(!0);while(i!==null)}It=null,Xn=!1}catch(c){throw It!==null&&(It=It.slice(e+1)),zc(fi,er),c}finally{ze=t,Wi=!1}}return null}var Kr=[],Qr=0,Kn=null,Qn=0,ft=[],ht=0,br=null,At=1,Ot="";function xr(e,t){Kr[Qr++]=Qn,Kr[Qr++]=Kn,Kn=e,Qn=t}function Ed(e,t,a){ft[ht++]=At,ft[ht++]=Ot,ft[ht++]=br,br=e;var i=At;e=Ot;var c=32-kt(i)-1;i&=~(1<<c),a+=1;var u=32-kt(t)+c;if(30<u){var g=c-c%5;u=(i&(1<<g)-1).toString(32),i>>=g,c-=g,At=1<<32-kt(t)+c|a<<c|i,Ot=u+e}else At=1<<u|a<<c|i,Ot=e}function Hi(e){e.return!==null&&(xr(e,1),Ed(e,1,0))}function Xi(e){for(;e===Kn;)Kn=Kr[--Qr],Kr[Qr]=null,Qn=Kr[--Qr],Kr[Qr]=null;for(;e===br;)br=ft[--ht],ft[ht]=null,Ot=ft[--ht],ft[ht]=null,At=ft[--ht],ft[ht]=null}var lt=null,ct=null,Le=!1,St=null;function zd(e,t){var a=xt(5,null,null,0);a.elementType="DELETED",a.stateNode=t,a.return=e,t=e.deletions,t===null?(e.deletions=[a],e.flags|=16):t.push(a)}function _d(e,t){switch(e.tag){case 5:var a=e.type;return t=t.nodeType!==1||a.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,lt=e,ct=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,lt=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(a=br!==null?{id:At,overflow:Ot}:null,e.memoizedState={dehydrated:t,treeContext:a,retryLane:1073741824},a=xt(18,null,null,0),a.stateNode=t,a.return=e,e.child=a,lt=e,ct=null,!0):!1;default:return!1}}function Ki(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Qi(e){if(Le){var t=ct;if(t){var a=t;if(!_d(e,t)){if(Ki(e))throw Error(o(418));t=Zt(a.nextSibling);var i=lt;t&&_d(e,t)?zd(i,a):(e.flags=e.flags&-4097|2,Le=!1,lt=e)}}else{if(Ki(e))throw Error(o(418));e.flags=e.flags&-4097|2,Le=!1,lt=e}}}function Rd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;lt=e}function Yn(e){if(e!==lt)return!1;if(!Le)return Rd(e),Le=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Fi(e.type,e.memoizedProps)),t&&(t=ct)){if(Ki(e))throw Md(),Error(o(418));for(;t;)zd(e,t),t=Zt(t.nextSibling)}if(Rd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"){if(t===0){ct=Zt(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=lt?Zt(e.stateNode.nextSibling):null;return!0}function Md(){for(var e=ct;e;)e=Zt(e.nextSibling)}function Yr(){ct=lt=null,Le=!1}function Yi(e){St===null?St=[e]:St.push(e)}var zm=J.ReactCurrentBatchConfig;function $a(e,t,a){if(e=a.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(o(309));var i=a.stateNode}if(!i)throw Error(o(147,e));var c=i,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(g){var y=c.refs;g===null?delete y[u]:y[u]=g},t._stringRef=u,t)}if(typeof e!="string")throw Error(o(284));if(!a._owner)throw Error(o(290,e))}return e}function Zn(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Pd(e){var t=e._init;return t(e._payload)}function Ld(e){function t(_,N){if(e){var R=_.deletions;R===null?(_.deletions=[N],_.flags|=16):R.push(N)}}function a(_,N){if(!e)return null;for(;N!==null;)t(_,N),N=N.sibling;return null}function i(_,N){for(_=new Map;N!==null;)N.key!==null?_.set(N.key,N):_.set(N.index,N),N=N.sibling;return _}function c(_,N){return _=lr(_,N),_.index=0,_.sibling=null,_}function u(_,N,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<N?(_.flags|=2,N):R):(_.flags|=2,N)):(_.flags|=1048576,N)}function g(_){return e&&_.alternate===null&&(_.flags|=2),_}function y(_,N,R,q){return N===null||N.tag!==6?(N=Fs(R,_.mode,q),N.return=_,N):(N=c(N,R),N.return=_,N)}function C(_,N,R,q){var ie=R.type;return ie===X?A(_,N,R.props.children,q,R.key):N!==null&&(N.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Pd(ie)===N.type)?(q=c(N,R.props),q.ref=$a(_,N,R),q.return=_,q):(q=ko(R.type,R.key,R.props,null,_.mode,q),q.ref=$a(_,N,R),q.return=_,q)}function P(_,N,R,q){return N===null||N.tag!==4||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation?(N=Us(R,_.mode,q),N.return=_,N):(N=c(N,R.children||[]),N.return=_,N)}function A(_,N,R,q,ie){return N===null||N.tag!==7?(N=Nr(R,_.mode,q,ie),N.return=_,N):(N=c(N,R),N.return=_,N)}function O(_,N,R){if(typeof N=="string"&&N!==""||typeof N=="number")return N=Fs(""+N,_.mode,R),N.return=_,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case re:return R=ko(N.type,N.key,N.props,null,_.mode,R),R.ref=$a(_,null,N),R.return=_,R;case $:return N=Us(N,_.mode,R),N.return=_,N;case ve:var q=N._init;return O(_,q(N._payload),R)}if(ha(N)||D(N))return N=Nr(N,_.mode,R,null),N.return=_,N;Zn(_,N)}return null}function I(_,N,R,q){var ie=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return ie!==null?null:y(_,N,""+R,q);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case re:return R.key===ie?C(_,N,R,q):null;case $:return R.key===ie?P(_,N,R,q):null;case ve:return ie=R._init,I(_,N,ie(R._payload),q)}if(ha(R)||D(R))return ie!==null?null:A(_,N,R,q,null);Zn(_,R)}return null}function Y(_,N,R,q,ie){if(typeof q=="string"&&q!==""||typeof q=="number")return _=_.get(R)||null,y(N,_,""+q,ie);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case re:return _=_.get(q.key===null?R:q.key)||null,C(N,_,q,ie);case $:return _=_.get(q.key===null?R:q.key)||null,P(N,_,q,ie);case ve:var ce=q._init;return Y(_,N,R,ce(q._payload),ie)}if(ha(q)||D(q))return _=_.get(R)||null,A(N,_,q,ie,null);Zn(N,q)}return null}function ae(_,N,R,q){for(var ie=null,ce=null,de=N,ge=N=0,Be=null;de!==null&&ge<R.length;ge++){de.index>ge?(Be=de,de=null):Be=de.sibling;var Ee=I(_,de,R[ge],q);if(Ee===null){de===null&&(de=Be);break}e&&de&&Ee.alternate===null&&t(_,de),N=u(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee,de=Be}if(ge===R.length)return a(_,de),Le&&xr(_,ge),ie;if(de===null){for(;ge<R.length;ge++)de=O(_,R[ge],q),de!==null&&(N=u(de,N,ge),ce===null?ie=de:ce.sibling=de,ce=de);return Le&&xr(_,ge),ie}for(de=i(_,de);ge<R.length;ge++)Be=Y(de,_,ge,R[ge],q),Be!==null&&(e&&Be.alternate!==null&&de.delete(Be.key===null?ge:Be.key),N=u(Be,N,ge),ce===null?ie=Be:ce.sibling=Be,ce=Be);return e&&de.forEach(function(cr){return t(_,cr)}),Le&&xr(_,ge),ie}function ne(_,N,R,q){var ie=D(R);if(typeof ie!="function")throw Error(o(150));if(R=ie.call(R),R==null)throw Error(o(151));for(var ce=ie=null,de=N,ge=N=0,Be=null,Ee=R.next();de!==null&&!Ee.done;ge++,Ee=R.next()){de.index>ge?(Be=de,de=null):Be=de.sibling;var cr=I(_,de,Ee.value,q);if(cr===null){de===null&&(de=Be);break}e&&de&&cr.alternate===null&&t(_,de),N=u(cr,N,ge),ce===null?ie=cr:ce.sibling=cr,ce=cr,de=Be}if(Ee.done)return a(_,de),Le&&xr(_,ge),ie;if(de===null){for(;!Ee.done;ge++,Ee=R.next())Ee=O(_,Ee.value,q),Ee!==null&&(N=u(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee);return Le&&xr(_,ge),ie}for(de=i(_,de);!Ee.done;ge++,Ee=R.next())Ee=Y(de,_,ge,Ee.value,q),Ee!==null&&(e&&Ee.alternate!==null&&de.delete(Ee.key===null?ge:Ee.key),N=u(Ee,N,ge),ce===null?ie=Ee:ce.sibling=Ee,ce=Ee);return e&&de.forEach(function(sb){return t(_,sb)}),Le&&xr(_,ge),ie}function Oe(_,N,R,q){if(typeof R=="object"&&R!==null&&R.type===X&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case re:e:{for(var ie=R.key,ce=N;ce!==null;){if(ce.key===ie){if(ie=R.type,ie===X){if(ce.tag===7){a(_,ce.sibling),N=c(ce,R.props.children),N.return=_,_=N;break e}}else if(ce.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ve&&Pd(ie)===ce.type){a(_,ce.sibling),N=c(ce,R.props),N.ref=$a(_,ce,R),N.return=_,_=N;break e}a(_,ce);break}else t(_,ce);ce=ce.sibling}R.type===X?(N=Nr(R.props.children,_.mode,q,R.key),N.return=_,_=N):(q=ko(R.type,R.key,R.props,null,_.mode,q),q.ref=$a(_,N,R),q.return=_,_=q)}return g(_);case $:e:{for(ce=R.key;N!==null;){if(N.key===ce)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){a(_,N.sibling),N=c(N,R.children||[]),N.return=_,_=N;break e}else{a(_,N);break}else t(_,N);N=N.sibling}N=Us(R,_.mode,q),N.return=_,_=N}return g(_);case ve:return ce=R._init,Oe(_,N,ce(R._payload),q)}if(ha(R))return ae(_,N,R,q);if(D(R))return ne(_,N,R,q);Zn(_,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,N!==null&&N.tag===6?(a(_,N.sibling),N=c(N,R),N.return=_,_=N):(a(_,N),N=Fs(R,_.mode,q),N.return=_,_=N),g(_)):a(_,N)}return Oe}var Zr=Ld(!0),Dd=Ld(!1),Jn=Jt(null),Gn=null,Jr=null,Zi=null;function Ji(){Zi=Jr=Gn=null}function Gi(e){var t=Jn.current;Me(Jn),e._currentValue=t}function es(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Gr(e,t){Gn=e,Zi=Jr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(rt=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Zi!==e)if(e={context:e,memoizedValue:t,next:null},Jr===null){if(Gn===null)throw Error(o(308));Jr=e,Gn.dependencies={lanes:0,firstContext:e}}else Jr=Jr.next=e;return t}var vr=null;function ts(e){vr===null?vr=[e]:vr.push(e)}function Td(e,t,a,i){var c=t.interleaved;return c===null?(a.next=a,ts(t)):(a.next=c.next,c.next=a),t.interleaved=a,$t(e,i)}function $t(e,t){e.lanes|=t;var a=e.alternate;for(a!==null&&(a.lanes|=t),a=e,e=e.return;e!==null;)e.childLanes|=t,a=e.alternate,a!==null&&(a.childLanes|=t),a=e,e=e.return;return a.tag===3?a.stateNode:null}var tr=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Id(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ft(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rr(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ce&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,$t(e,a)}return c=i.interleaved,c===null?(t.next=t,ts(i)):(t.next=c.next,c.next=t),i.interleaved=t,$t(e,a)}function eo(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,mi(e,a)}}function Ad(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var c=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var g={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};u===null?c=u=g:u=u.next=g,a=a.next}while(a!==null);u===null?c=u=t:u=u.next=t}else c=u=t;a={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:i.shared,effects:i.effects},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function to(e,t,a,i){var c=e.updateQueue;tr=!1;var u=c.firstBaseUpdate,g=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var C=y,P=C.next;C.next=null,g===null?u=P:g.next=P,g=C;var A=e.alternate;A!==null&&(A=A.updateQueue,y=A.lastBaseUpdate,y!==g&&(y===null?A.firstBaseUpdate=P:y.next=P,A.lastBaseUpdate=C))}if(u!==null){var O=c.baseState;g=0,A=P=C=null,y=u;do{var I=y.lane,Y=y.eventTime;if((i&I)===I){A!==null&&(A=A.next={eventTime:Y,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var ae=e,ne=y;switch(I=t,Y=a,ne.tag){case 1:if(ae=ne.payload,typeof ae=="function"){O=ae.call(Y,O,I);break e}O=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ne.payload,I=typeof ae=="function"?ae.call(Y,O,I):ae,I==null)break e;O=T({},O,I);break e;case 2:tr=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,I=c.effects,I===null?c.effects=[y]:I.push(y))}else Y={eventTime:Y,lane:I,tag:y.tag,payload:y.payload,callback:y.callback,next:null},A===null?(P=A=Y,C=O):A=A.next=Y,g|=I;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;I=y,y=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);if(A===null&&(C=O),c.baseState=C,c.firstBaseUpdate=P,c.lastBaseUpdate=A,t=c.shared.interleaved,t!==null){c=t;do g|=c.lane,c=c.next;while(c!==t)}else u===null&&(c.shared.lanes=0);kr|=g,e.lanes=g,e.memoizedState=O}}function Od(e,t,a){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],c=i.callback;if(c!==null){if(i.callback=null,i=a,typeof c!="function")throw Error(o(191,c));c.call(i)}}}var Fa={},Pt=Jt(Fa),Ua=Jt(Fa),qa=Jt(Fa);function yr(e){if(e===Fa)throw Error(o(174));return e}function as(e,t){switch(_e(qa,t),_e(Ua,e),_e(Pt,Fa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ni(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ni(t,e)}Me(Pt),_e(Pt,t)}function ea(){Me(Pt),Me(Ua),Me(qa)}function $d(e){yr(qa.current);var t=yr(Pt.current),a=ni(t,e.type);t!==a&&(_e(Ua,e),_e(Pt,a))}function ns(e){Ua.current===e&&(Me(Pt),Me(Ua))}var De=Jt(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var os=[];function is(){for(var e=0;e<os.length;e++)os[e]._workInProgressVersionPrimary=null;os.length=0}var ao=J.ReactCurrentDispatcher,ss=J.ReactCurrentBatchConfig,wr=0,Te=null,Fe=null,qe=null,no=!1,Va=!1,Ba=0,_m=0;function Ke(){throw Error(o(321))}function ls(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!jt(e[a],t[a]))return!1;return!0}function cs(e,t,a,i,c,u){if(wr=u,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ao.current=e===null||e.memoizedState===null?Lm:Dm,e=a(i,c),Va){u=0;do{if(Va=!1,Ba=0,25<=u)throw Error(o(301));u+=1,qe=Fe=null,t.updateQueue=null,ao.current=Tm,e=a(i,c)}while(Va)}if(ao.current=so,t=Fe!==null&&Fe.next!==null,wr=0,qe=Fe=Te=null,no=!1,t)throw Error(o(300));return e}function ds(){var e=Ba!==0;return Ba=0,e}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Te.memoizedState=qe=e:qe=qe.next=e,qe}function mt(){if(Fe===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=qe===null?Te.memoizedState:qe.next;if(t!==null)qe=t,Fe=e;else{if(e===null)throw Error(o(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},qe===null?Te.memoizedState=qe=e:qe=qe.next=e}return qe}function Wa(e,t){return typeof t=="function"?t(e):t}function us(e){var t=mt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=Fe,c=i.baseQueue,u=a.pending;if(u!==null){if(c!==null){var g=c.next;c.next=u.next,u.next=g}i.baseQueue=c=u,a.pending=null}if(c!==null){u=c.next,i=i.baseState;var y=g=null,C=null,P=u;do{var A=P.lane;if((wr&A)===A)C!==null&&(C=C.next={lane:0,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),i=P.hasEagerState?P.eagerState:e(i,P.action);else{var O={lane:A,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null};C===null?(y=C=O,g=i):C=C.next=O,Te.lanes|=A,kr|=A}P=P.next}while(P!==null&&P!==u);C===null?g=i:C.next=y,jt(i,t.memoizedState)||(rt=!0),t.memoizedState=i,t.baseState=g,t.baseQueue=C,a.lastRenderedState=i}if(e=a.interleaved,e!==null){c=e;do u=c.lane,Te.lanes|=u,kr|=u,c=c.next;while(c!==e)}else c===null&&(a.lanes=0);return[t.memoizedState,a.dispatch]}function ps(e){var t=mt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,c=a.pending,u=t.memoizedState;if(c!==null){a.pending=null;var g=c=c.next;do u=e(u,g.action),g=g.next;while(g!==c);jt(u,t.memoizedState)||(rt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,i]}function Fd(){}function Ud(e,t){var a=Te,i=mt(),c=t(),u=!jt(i.memoizedState,c);if(u&&(i.memoizedState=c,rt=!0),i=i.queue,fs(Bd.bind(null,a,i,e),[e]),i.getSnapshot!==t||u||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,Ha(9,Vd.bind(null,a,i,c,t),void 0,null),Ve===null)throw Error(o(349));(wr&30)!==0||qd(a,t,c)}return c}function qd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Vd(e,t,a,i){t.value=a,t.getSnapshot=i,Wd(t)&&Hd(e)}function Bd(e,t,a){return a(function(){Wd(t)&&Hd(e)})}function Wd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!jt(e,a)}catch{return!0}}function Hd(e){var t=$t(e,1);t!==null&&zt(t,e,1,-1)}function Xd(e){var t=Lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Pm.bind(null,Te,e),[t.memoizedState,e]}function Ha(e,t,a,i){return e={tag:e,create:t,destroy:a,deps:i,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e)),e}function Kd(){return mt().memoizedState}function oo(e,t,a,i){var c=Lt();Te.flags|=e,c.memoizedState=Ha(1|t,a,void 0,i===void 0?null:i)}function io(e,t,a,i){var c=mt();i=i===void 0?null:i;var u=void 0;if(Fe!==null){var g=Fe.memoizedState;if(u=g.destroy,i!==null&&ls(i,g.deps)){c.memoizedState=Ha(t,a,u,i);return}}Te.flags|=e,c.memoizedState=Ha(1|t,a,u,i)}function Qd(e,t){return oo(8390656,8,e,t)}function fs(e,t){return io(2048,8,e,t)}function Yd(e,t){return io(4,2,e,t)}function Zd(e,t){return io(4,4,e,t)}function Jd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gd(e,t,a){return a=a!=null?a.concat([e]):null,io(4,4,Jd.bind(null,t,e),a)}function hs(){}function eu(e,t){var a=mt();t=t===void 0?null:t;var i=a.memoizedState;return i!==null&&t!==null&&ls(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function tu(e,t){var a=mt();t=t===void 0?null:t;var i=a.memoizedState;return i!==null&&t!==null&&ls(t,i[1])?i[0]:(e=e(),a.memoizedState=[e,t],e)}function ru(e,t,a){return(wr&21)===0?(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=a):(jt(a,t)||(a=Pc(),Te.lanes|=a,kr|=a,e.baseState=!0),t)}function Rm(e,t){var a=ze;ze=a!==0&&4>a?a:4,e(!0);var i=ss.transition;ss.transition={};try{e(!1),t()}finally{ze=a,ss.transition=i}}function au(){return mt().memoizedState}function Mm(e,t,a){var i=ir(e);if(a={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null},nu(e))ou(t,a);else if(a=Td(e,t,a,i),a!==null){var c=Je();zt(a,e,i,c),iu(a,t,i)}}function Pm(e,t,a){var i=ir(e),c={lane:i,action:a,hasEagerState:!1,eagerState:null,next:null};if(nu(e))ou(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,y=u(g,a);if(c.hasEagerState=!0,c.eagerState=y,jt(y,g)){var C=t.interleaved;C===null?(c.next=c,ts(t)):(c.next=C.next,C.next=c),t.interleaved=c;return}}catch{}a=Td(e,t,c,i),a!==null&&(c=Je(),zt(a,e,i,c),iu(a,t,i))}}function nu(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function ou(e,t){Va=no=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function iu(e,t,a){if((a&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,mi(e,a)}}var so={readContext:gt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},Lm={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Qd,useImperativeHandle:function(e,t,a){return a=a!=null?a.concat([e]):null,oo(4194308,4,Jd.bind(null,t,e),a)},useLayoutEffect:function(e,t){return oo(4194308,4,e,t)},useInsertionEffect:function(e,t){return oo(4,2,e,t)},useMemo:function(e,t){var a=Lt();return t=t===void 0?null:t,e=e(),a.memoizedState=[e,t],e},useReducer:function(e,t,a){var i=Lt();return t=a!==void 0?a(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=Mm.bind(null,Te,e),[i.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:Xd,useDebugValue:hs,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=Xd(!1),t=e[0];return e=Rm.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,a){var i=Te,c=Lt();if(Le){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ve===null)throw Error(o(349));(wr&30)!==0||qd(i,t,a)}c.memoizedState=a;var u={value:a,getSnapshot:t};return c.queue=u,Qd(Bd.bind(null,i,u,e),[e]),i.flags|=2048,Ha(9,Vd.bind(null,i,u,a,t),void 0,null),a},useId:function(){var e=Lt(),t=Ve.identifierPrefix;if(Le){var a=Ot,i=At;a=(i&~(1<<32-kt(i)-1)).toString(32)+a,t=":"+t+"R"+a,a=Ba++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=_m++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Dm={readContext:gt,useCallback:eu,useContext:gt,useEffect:fs,useImperativeHandle:Gd,useInsertionEffect:Yd,useLayoutEffect:Zd,useMemo:tu,useReducer:us,useRef:Kd,useState:function(){return us(Wa)},useDebugValue:hs,useDeferredValue:function(e){var t=mt();return ru(t,Fe.memoizedState,e)},useTransition:function(){var e=us(Wa)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:au,unstable_isNewReconciler:!1},Tm={readContext:gt,useCallback:eu,useContext:gt,useEffect:fs,useImperativeHandle:Gd,useInsertionEffect:Yd,useLayoutEffect:Zd,useMemo:tu,useReducer:ps,useRef:Kd,useState:function(){return ps(Wa)},useDebugValue:hs,useDeferredValue:function(e){var t=mt();return Fe===null?t.memoizedState=e:ru(t,Fe.memoizedState,e)},useTransition:function(){var e=ps(Wa)[0],t=mt().memoizedState;return[e,t]},useMutableSource:Fd,useSyncExternalStore:Ud,useId:au,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=T({},t),e=e.defaultProps;for(var a in e)t[a]===void 0&&(t[a]=e[a]);return t}return t}function gs(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var lo={isMounted:function(e){return(e=e._reactInternals)?hr(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var i=Je(),c=ir(e),u=Ft(i,c);u.payload=t,a!=null&&(u.callback=a),t=rr(e,u,c),t!==null&&(zt(t,e,c,i),eo(t,e,c))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=Je(),c=ir(e),u=Ft(i,c);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=rr(e,u,c),t!==null&&(zt(t,e,c,i),eo(t,e,c))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Je(),i=ir(e),c=Ft(a,i);c.tag=2,t!=null&&(c.callback=t),t=rr(e,c,i),t!==null&&(zt(t,e,i,a),eo(t,e,i))}};function su(e,t,a,i,c,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,g):t.prototype&&t.prototype.isPureReactComponent?!Pa(a,i)||!Pa(c,u):!0}function lu(e,t,a){var i=!1,c=Gt,u=t.contextType;return typeof u=="object"&&u!==null?u=gt(u):(c=tt(t)?mr:Xe.current,i=t.contextTypes,u=(i=i!=null)?Xr(e,c):Gt),t=new t(a,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=lo,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=u),t}function cu(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&lo.enqueueReplaceState(t,t.state,null)}function ms(e,t,a,i){var c=e.stateNode;c.props=a,c.state=e.memoizedState,c.refs={},rs(e);var u=t.contextType;typeof u=="object"&&u!==null?c.context=gt(u):(u=tt(t)?mr:Xe.current,c.context=Xr(e,u)),c.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(gs(e,t,u,a),c.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(t=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),t!==c.state&&lo.enqueueReplaceState(c,c.state,null),to(e,a,c,i),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function ta(e,t){try{var a="",i=t;do a+=pe(i),i=i.return;while(i);var c=a}catch(u){c=`
|
|
7
|
+
Error generating stack: `+u.message+`
|
|
8
|
+
`+u.stack}return{value:e,source:t,stack:c,digest:null}}function bs(e,t,a){return{value:e,source:null,stack:a??null,digest:t??null}}function xs(e,t){try{console.error(t.value)}catch(a){setTimeout(function(){throw a})}}var Im=typeof WeakMap=="function"?WeakMap:Map;function du(e,t,a){a=Ft(-1,a),a.tag=3,a.payload={element:null};var i=t.value;return a.callback=function(){mo||(mo=!0,Ps=i),xs(e,t)},a}function uu(e,t,a){a=Ft(-1,a),a.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var c=t.value;a.payload=function(){return i(c)},a.callback=function(){xs(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(a.callback=function(){xs(e,t),typeof i!="function"&&(nr===null?nr=new Set([this]):nr.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),a}function pu(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new Im;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(c.add(a),e=Ym.bind(null,e,t,a),t.then(e,e))}function fu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hu(e,t,a,i,c){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(t=Ft(-1,1),t.tag=2,rr(a,t,1))),a.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var Am=J.ReactCurrentOwner,rt=!1;function Ze(e,t,a,i){t.child=e===null?Dd(t,null,a,i):Zr(t,e.child,a,i)}function gu(e,t,a,i,c){a=a.render;var u=t.ref;return Gr(t,c),i=cs(e,t,a,i,u,c),a=ds(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Ut(e,t,c)):(Le&&a&&Hi(t),t.flags|=1,Ze(e,t,i,c),t.child)}function mu(e,t,a,i,c){if(e===null){var u=a.type;return typeof u=="function"&&!$s(u)&&u.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(t.tag=15,t.type=u,bu(e,t,u,i,c)):(e=ko(a.type,null,i,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&c)===0){var g=u.memoizedProps;if(a=a.compare,a=a!==null?a:Pa,a(g,i)&&e.ref===t.ref)return Ut(e,t,c)}return t.flags|=1,e=lr(u,i),e.ref=t.ref,e.return=t,t.child=e}function bu(e,t,a,i,c){if(e!==null){var u=e.memoizedProps;if(Pa(u,i)&&e.ref===t.ref)if(rt=!1,t.pendingProps=i=u,(e.lanes&c)!==0)(e.flags&131072)!==0&&(rt=!0);else return t.lanes=e.lanes,Ut(e,t,c)}return vs(e,t,a,i,c)}function xu(e,t,a){var i=t.pendingProps,c=i.children,u=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(aa,dt),dt|=a;else{if((a&1073741824)===0)return e=u!==null?u.baseLanes|a:a,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(aa,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=u!==null?u.baseLanes:a,_e(aa,dt),dt|=i}else u!==null?(i=u.baseLanes|a,t.memoizedState=null):i=a,_e(aa,dt),dt|=i;return Ze(e,t,c,a),t.child}function vu(e,t){var a=t.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(t.flags|=512,t.flags|=2097152)}function vs(e,t,a,i,c){var u=tt(a)?mr:Xe.current;return u=Xr(t,u),Gr(t,c),a=cs(e,t,a,i,u,c),i=ds(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~c,Ut(e,t,c)):(Le&&i&&Hi(t),t.flags|=1,Ze(e,t,a,c),t.child)}function yu(e,t,a,i,c){if(tt(a)){var u=!0;Hn(t)}else u=!1;if(Gr(t,c),t.stateNode===null)uo(e,t),lu(t,a,i),ms(t,a,i,c),i=!0;else if(e===null){var g=t.stateNode,y=t.memoizedProps;g.props=y;var C=g.context,P=a.contextType;typeof P=="object"&&P!==null?P=gt(P):(P=tt(a)?mr:Xe.current,P=Xr(t,P));var A=a.getDerivedStateFromProps,O=typeof A=="function"||typeof g.getSnapshotBeforeUpdate=="function";O||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==i||C!==P)&&cu(t,g,i,P),tr=!1;var I=t.memoizedState;g.state=I,to(t,i,g,c),C=t.memoizedState,y!==i||I!==C||et.current||tr?(typeof A=="function"&&(gs(t,a,A,i),C=t.memoizedState),(y=tr||su(t,a,y,i,I,C,P))?(O||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=C),g.props=i,g.state=C,g.context=P,i=y):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{g=t.stateNode,Id(e,t),y=t.memoizedProps,P=t.type===t.elementType?y:Ct(t.type,y),g.props=P,O=t.pendingProps,I=g.context,C=a.contextType,typeof C=="object"&&C!==null?C=gt(C):(C=tt(a)?mr:Xe.current,C=Xr(t,C));var Y=a.getDerivedStateFromProps;(A=typeof Y=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(y!==O||I!==C)&&cu(t,g,i,C),tr=!1,I=t.memoizedState,g.state=I,to(t,i,g,c);var ae=t.memoizedState;y!==O||I!==ae||et.current||tr?(typeof Y=="function"&&(gs(t,a,Y,i),ae=t.memoizedState),(P=tr||su(t,a,P,i,I,ae,C)||!1)?(A||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(i,ae,C),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(i,ae,C)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=ae),g.props=i,g.state=ae,g.context=C,i=P):(typeof g.componentDidUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),i=!1)}return ys(e,t,a,i,u,c)}function ys(e,t,a,i,c,u){vu(e,t);var g=(t.flags&128)!==0;if(!i&&!g)return c&&Cd(t,a,!1),Ut(e,t,u);i=t.stateNode,Am.current=t;var y=g&&typeof a.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&g?(t.child=Zr(t,e.child,null,u),t.child=Zr(t,null,y,u)):Ze(e,t,y,u),t.memoizedState=i.state,c&&Cd(t,a,!0),t.child}function wu(e){var t=e.stateNode;t.pendingContext?jd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jd(e,t.context,!1),as(e,t.containerInfo)}function ku(e,t,a,i,c){return Yr(),Yi(c),t.flags|=256,Ze(e,t,a,i),t.child}var ws={dehydrated:null,treeContext:null,retryLane:0};function ks(e){return{baseLanes:e,cachePool:null,transitions:null}}function ju(e,t,a){var i=t.pendingProps,c=De.current,u=!1,g=(t.flags&128)!==0,y;if((y=g)||(y=e!==null&&e.memoizedState===null?!1:(c&2)!==0),y?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),_e(De,c&1),e===null)return Qi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(g=i.children,e=i.fallback,u?(i=t.mode,u=t.child,g={mode:"hidden",children:g},(i&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=g):u=jo(g,i,0,null),e=Nr(e,i,a,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=ks(a),t.memoizedState=ws,e):js(t,g));if(c=e.memoizedState,c!==null&&(y=c.dehydrated,y!==null))return Om(e,t,g,i,y,c,a);if(u){u=i.fallback,g=t.mode,c=e.child,y=c.sibling;var C={mode:"hidden",children:i.children};return(g&1)===0&&t.child!==c?(i=t.child,i.childLanes=0,i.pendingProps=C,t.deletions=null):(i=lr(c,C),i.subtreeFlags=c.subtreeFlags&14680064),y!==null?u=lr(y,u):(u=Nr(u,g,a,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,g=e.child.memoizedState,g=g===null?ks(a):{baseLanes:g.baseLanes|a,cachePool:null,transitions:g.transitions},u.memoizedState=g,u.childLanes=e.childLanes&~a,t.memoizedState=ws,i}return u=e.child,e=u.sibling,i=lr(u,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=a),i.return=t,i.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=i,t.memoizedState=null,i}function js(e,t){return t=jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function co(e,t,a,i){return i!==null&&Yi(i),Zr(t,e.child,null,a),e=js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Om(e,t,a,i,c,u,g){if(a)return t.flags&256?(t.flags&=-257,i=bs(Error(o(422))),co(e,t,g,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=i.fallback,c=t.mode,i=jo({mode:"visible",children:i.children},c,0,null),u=Nr(u,c,g,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,(t.mode&1)!==0&&Zr(t,e.child,null,g),t.child.memoizedState=ks(g),t.memoizedState=ws,u);if((t.mode&1)===0)return co(e,t,g,null);if(c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var y=i.dgst;return i=y,u=Error(o(419)),i=bs(u,i,void 0),co(e,t,g,i)}if(y=(g&e.childLanes)!==0,rt||y){if(i=Ve,i!==null){switch(g&-g){case 4:c=2;break;case 16:c=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:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(i.suspendedLanes|g))!==0?0:c,c!==0&&c!==u.retryLane&&(u.retryLane=c,$t(e,c),zt(i,e,c,-1))}return Os(),i=bs(Error(o(421))),co(e,t,g,i)}return c.data==="$?"?(t.flags|=128,t.child=e.child,t=Zm.bind(null,e),c._reactRetry=t,null):(e=u.treeContext,ct=Zt(c.nextSibling),lt=t,Le=!0,St=null,e!==null&&(ft[ht++]=At,ft[ht++]=Ot,ft[ht++]=br,At=e.id,Ot=e.overflow,br=t),t=js(t,i.children),t.flags|=4096,t)}function Su(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),es(e.return,t,a)}function Ss(e,t,a,i,c){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:c}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=i,u.tail=a,u.tailMode=c)}function Cu(e,t,a){var i=t.pendingProps,c=i.revealOrder,u=i.tail;if(Ze(e,t,i.children,a),i=De.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Su(e,a,t);else if(e.tag===19)Su(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(_e(De,i),(t.mode&1)===0)t.memoizedState=null;else switch(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&ro(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),Ss(t,!1,c,a,u);break;case"backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&ro(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}Ss(t,!0,a,null,u);break;case"together":Ss(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ut(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,(a&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=lr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=lr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function $m(e,t,a){switch(t.tag){case 3:wu(t),Yr();break;case 5:$d(t);break;case 1:tt(t.type)&&Hn(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,c=t.memoizedProps.value;_e(Jn,i._currentValue),i._currentValue=c;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(_e(De,De.current&1),t.flags|=128,null):(a&t.child.childLanes)!==0?ju(e,t,a):(_e(De,De.current&1),e=Ut(e,t,a),e!==null?e.sibling:null);_e(De,De.current&1);break;case 19:if(i=(a&t.childLanes)!==0,(e.flags&128)!==0){if(i)return Cu(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),_e(De,De.current),i)break;return null;case 22:case 23:return t.lanes=0,xu(e,t,a)}return Ut(e,t,a)}var Nu,Cs,Eu,zu;Nu=function(e,t){for(var a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Cs=function(){},Eu=function(e,t,a,i){var c=e.memoizedProps;if(c!==i){e=t.stateNode,yr(Pt.current);var u=null;switch(a){case"input":c=ei(e,c),i=ei(e,i),u=[];break;case"select":c=T({},c,{value:void 0}),i=T({},i,{value:void 0}),u=[];break;case"textarea":c=ai(e,c),i=ai(e,i),u=[];break;default:typeof c.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Vn)}oi(a,i);var g;a=null;for(P in c)if(!i.hasOwnProperty(P)&&c.hasOwnProperty(P)&&c[P]!=null)if(P==="style"){var y=c[P];for(g in y)y.hasOwnProperty(g)&&(a||(a={}),a[g]="")}else P!=="dangerouslySetInnerHTML"&&P!=="children"&&P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(d.hasOwnProperty(P)?u||(u=[]):(u=u||[]).push(P,null));for(P in i){var C=i[P];if(y=c?.[P],i.hasOwnProperty(P)&&C!==y&&(C!=null||y!=null))if(P==="style")if(y){for(g in y)!y.hasOwnProperty(g)||C&&C.hasOwnProperty(g)||(a||(a={}),a[g]="");for(g in C)C.hasOwnProperty(g)&&y[g]!==C[g]&&(a||(a={}),a[g]=C[g])}else a||(u||(u=[]),u.push(P,a)),a=C;else P==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,y=y?y.__html:void 0,C!=null&&y!==C&&(u=u||[]).push(P,C)):P==="children"?typeof C!="string"&&typeof C!="number"||(u=u||[]).push(P,""+C):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&(d.hasOwnProperty(P)?(C!=null&&P==="onScroll"&&Re("scroll",e),u||y===C||(u=[])):(u=u||[]).push(P,C))}a&&(u=u||[]).push("style",a);var P=u;(t.updateQueue=P)&&(t.flags|=4)}},zu=function(e,t,a,i){a!==i&&(t.flags|=4)};function Xa(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags&14680064,i|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function Fm(e,t,a){var i=t.pendingProps;switch(Xi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return tt(t.type)&&Wn(),Qe(t),null;case 3:return i=t.stateNode,ea(),Me(et),Me(Xe),is(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Yn(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,St!==null&&(Ts(St),St=null))),Cs(e,t),Qe(t),null;case 5:ns(t);var c=yr(qa.current);if(a=t.type,e!==null&&t.stateNode!=null)Eu(e,t,a,i,c),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(e=yr(Pt.current),Yn(t)){i=t.stateNode,a=t.type;var u=t.memoizedProps;switch(i[Mt]=t,i[Aa]=u,e=(t.mode&1)!==0,a){case"dialog":Re("cancel",i),Re("close",i);break;case"iframe":case"object":case"embed":Re("load",i);break;case"video":case"audio":for(c=0;c<Da.length;c++)Re(Da[c],i);break;case"source":Re("error",i);break;case"img":case"image":case"link":Re("error",i),Re("load",i);break;case"details":Re("toggle",i);break;case"input":lc(i,u),Re("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!u.multiple},Re("invalid",i);break;case"textarea":uc(i,u),Re("invalid",i)}oi(a,u),c=null;for(var g in u)if(u.hasOwnProperty(g)){var y=u[g];g==="children"?typeof y=="string"?i.textContent!==y&&(u.suppressHydrationWarning!==!0&&qn(i.textContent,y,e),c=["children",y]):typeof y=="number"&&i.textContent!==""+y&&(u.suppressHydrationWarning!==!0&&qn(i.textContent,y,e),c=["children",""+y]):d.hasOwnProperty(g)&&y!=null&&g==="onScroll"&&Re("scroll",i)}switch(a){case"input":vn(i),dc(i,u,!0);break;case"textarea":vn(i),fc(i);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(i.onclick=Vn)}i=c,t.updateQueue=i,i!==null&&(t.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=hc(a)),e==="http://www.w3.org/1999/xhtml"?a==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=g.createElement(a,{is:i.is}):(e=g.createElement(a),a==="select"&&(g=e,i.multiple?g.multiple=!0:i.size&&(g.size=i.size))):e=g.createElementNS(e,a),e[Mt]=t,e[Aa]=i,Nu(e,t,!1,!1),t.stateNode=e;e:{switch(g=ii(a,i),a){case"dialog":Re("cancel",e),Re("close",e),c=i;break;case"iframe":case"object":case"embed":Re("load",e),c=i;break;case"video":case"audio":for(c=0;c<Da.length;c++)Re(Da[c],e);c=i;break;case"source":Re("error",e),c=i;break;case"img":case"image":case"link":Re("error",e),Re("load",e),c=i;break;case"details":Re("toggle",e),c=i;break;case"input":lc(e,i),c=ei(e,i),Re("invalid",e);break;case"option":c=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},c=T({},i,{value:void 0}),Re("invalid",e);break;case"textarea":uc(e,i),c=ai(e,i),Re("invalid",e);break;default:c=i}oi(a,c),y=c;for(u in y)if(y.hasOwnProperty(u)){var C=y[u];u==="style"?bc(e,C):u==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&gc(e,C)):u==="children"?typeof C=="string"?(a!=="textarea"||C!=="")&&ga(e,C):typeof C=="number"&&ga(e,""+C):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(d.hasOwnProperty(u)?C!=null&&u==="onScroll"&&Re("scroll",e):C!=null&&oe(e,u,C,g))}switch(a){case"input":vn(e),dc(e,i,!1);break;case"textarea":vn(e),fc(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ke(i.value));break;case"select":e.multiple=!!i.multiple,u=i.value,u!=null?Tr(e,!!i.multiple,u,!1):i.defaultValue!=null&&Tr(e,!!i.multiple,i.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=Vn)}switch(a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qe(t),null;case 6:if(e&&t.stateNode!=null)zu(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(a=yr(qa.current),yr(Pt.current),Yn(t)){if(i=t.stateNode,a=t.memoizedProps,i[Mt]=t,(u=i.nodeValue!==a)&&(e=lt,e!==null))switch(e.tag){case 3:qn(i.nodeValue,a,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qn(i.nodeValue,a,(e.mode&1)!==0)}u&&(t.flags|=4)}else i=(a.nodeType===9?a:a.ownerDocument).createTextNode(i),i[Mt]=t,t.stateNode=i}return Qe(t),null;case 13:if(Me(De),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&ct!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Md(),Yr(),t.flags|=98560,u=!1;else if(u=Yn(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Mt]=t}else Yr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),u=!1}else St!==null&&(Ts(St),St=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=a,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Ue===0&&(Ue=3):Os())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return ea(),Cs(e,t),e===null&&Ta(t.stateNode.containerInfo),Qe(t),null;case 10:return Gi(t.type._context),Qe(t),null;case 17:return tt(t.type)&&Wn(),Qe(t),null;case 19:if(Me(De),u=t.memoizedState,u===null)return Qe(t),null;if(i=(t.flags&128)!==0,g=u.rendering,g===null)if(i)Xa(u,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(g=ro(e),g!==null){for(t.flags|=128,Xa(u,!1),i=g.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=a,a=t.child;a!==null;)u=a,e=i,u.flags&=14680066,g=u.alternate,g===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,e=g.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),a=a.sibling;return _e(De,De.current&1|2),t.child}e=e.sibling}u.tail!==null&&Ae()>na&&(t.flags|=128,i=!0,Xa(u,!1),t.lanes=4194304)}else{if(!i)if(e=ro(g),e!==null){if(t.flags|=128,i=!0,a=e.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),Xa(u,!0),u.tail===null&&u.tailMode==="hidden"&&!g.alternate&&!Le)return Qe(t),null}else 2*Ae()-u.renderingStartTime>na&&a!==1073741824&&(t.flags|=128,i=!0,Xa(u,!1),t.lanes=4194304);u.isBackwards?(g.sibling=t.child,t.child=g):(a=u.last,a!==null?a.sibling=g:t.child=g,u.last=g)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ae(),t.sibling=null,a=De.current,_e(De,i?a&1|2:a&1),t):(Qe(t),null);case 22:case 23:return As(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(dt&1073741824)!==0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Um(e,t){switch(Xi(t),t.tag){case 1:return tt(t.type)&&Wn(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(),Me(et),Me(Xe),is(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ns(t),null;case 13:if(Me(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Me(De),null;case 4:return ea(),null;case 10:return Gi(t.type._context),null;case 22:case 23:return As(),null;case 24:return null;default:return null}}var po=!1,Ye=!1,qm=typeof WeakSet=="function"?WeakSet:Set,te=null;function ra(e,t){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(i){Ie(e,t,i)}else a.current=null}function _u(e,t,a){try{a()}catch(i){Ie(e,t,i)}}var Ru=!1;function Vm(e,t){if(Oi=Mn,e=sd(),Ri(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var g=0,y=-1,C=-1,P=0,A=0,O=e,I=null;t:for(;;){for(var Y;O!==a||c!==0&&O.nodeType!==3||(y=g+c),O!==u||i!==0&&O.nodeType!==3||(C=g+i),O.nodeType===3&&(g+=O.nodeValue.length),(Y=O.firstChild)!==null;)I=O,O=Y;for(;;){if(O===e)break t;if(I===a&&++P===c&&(y=g),I===u&&++A===i&&(C=g),(Y=O.nextSibling)!==null)break;O=I,I=O.parentNode}O=Y}a=y===-1||C===-1?null:{start:y,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for($i={focusedElem:e,selectionRange:a},Mn=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var ae=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ne=ae.memoizedProps,Oe=ae.memoizedState,_=t.stateNode,N=_.getSnapshotBeforeUpdate(t.elementType===t.type?ne:Ct(t.type,ne),Oe);_.__reactInternalSnapshotBeforeUpdate=N}break;case 3:var R=t.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(q){Ie(t,t.return,q)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return ae=Ru,Ru=!1,ae}function Ka(e,t,a){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var c=i=i.next;do{if((c.tag&e)===e){var u=c.destroy;c.destroy=void 0,u!==void 0&&_u(t,a,u)}c=c.next}while(c!==i)}}function fo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var a=t=t.next;do{if((a.tag&e)===e){var i=a.create;a.destroy=i()}a=a.next}while(a!==t)}}function Ns(e){var t=e.ref;if(t!==null){var a=e.stateNode;e.tag,e=a,typeof t=="function"?t(e):t.current=e}}function Mu(e){var t=e.alternate;t!==null&&(e.alternate=null,Mu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[Aa],delete t[Vi],delete t[Cm],delete t[Nm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pu(e){return e.tag===5||e.tag===3||e.tag===4}function Lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Es(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Vn));else if(i!==4&&(e=e.child,e!==null))for(Es(e,t,a),e=e.sibling;e!==null;)Es(e,t,a),e=e.sibling}function zs(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(zs(e,t,a),e=e.sibling;e!==null;)zs(e,t,a),e=e.sibling}var We=null,Nt=!1;function ar(e,t,a){for(a=a.child;a!==null;)Du(e,t,a),a=a.sibling}function Du(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Cn,a)}catch{}switch(a.tag){case 5:Ye||ra(a,t);case 6:var i=We,c=Nt;We=null,ar(e,t,a),We=i,Nt=c,We!==null&&(Nt?(e=We,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):We.removeChild(a.stateNode));break;case 18:We!==null&&(Nt?(e=We,a=a.stateNode,e.nodeType===8?qi(e.parentNode,a):e.nodeType===1&&qi(e,a),Na(e)):qi(We,a.stateNode));break;case 4:i=We,c=Nt,We=a.stateNode.containerInfo,Nt=!0,ar(e,t,a),We=i,Nt=c;break;case 0:case 11:case 14:case 15:if(!Ye&&(i=a.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){c=i=i.next;do{var u=c,g=u.destroy;u=u.tag,g!==void 0&&((u&2)!==0||(u&4)!==0)&&_u(a,t,g),c=c.next}while(c!==i)}ar(e,t,a);break;case 1:if(!Ye&&(ra(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=a.memoizedProps,i.state=a.memoizedState,i.componentWillUnmount()}catch(y){Ie(a,t,y)}ar(e,t,a);break;case 21:ar(e,t,a);break;case 22:a.mode&1?(Ye=(i=Ye)||a.memoizedState!==null,ar(e,t,a),Ye=i):ar(e,t,a);break;default:ar(e,t,a)}}function Tu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new qm),t.forEach(function(i){var c=Jm.bind(null,e,i);a.has(i)||(a.add(i),i.then(c,c))})}}function Et(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];try{var u=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 5:We=y.stateNode,Nt=!1;break e;case 3:We=y.stateNode.containerInfo,Nt=!0;break e;case 4:We=y.stateNode.containerInfo,Nt=!0;break e}y=y.return}if(We===null)throw Error(o(160));Du(u,g,c),We=null,Nt=!1;var C=c.alternate;C!==null&&(C.return=null),c.return=null}catch(P){Ie(c,t,P)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Iu(t,e),t=t.sibling}function Iu(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Et(t,e),Dt(e),i&4){try{Ka(3,e,e.return),fo(3,e)}catch(ne){Ie(e,e.return,ne)}try{Ka(5,e,e.return)}catch(ne){Ie(e,e.return,ne)}}break;case 1:Et(t,e),Dt(e),i&512&&a!==null&&ra(a,a.return);break;case 5:if(Et(t,e),Dt(e),i&512&&a!==null&&ra(a,a.return),e.flags&32){var c=e.stateNode;try{ga(c,"")}catch(ne){Ie(e,e.return,ne)}}if(i&4&&(c=e.stateNode,c!=null)){var u=e.memoizedProps,g=a!==null?a.memoizedProps:u,y=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{y==="input"&&u.type==="radio"&&u.name!=null&&cc(c,u),ii(y,g);var P=ii(y,u);for(g=0;g<C.length;g+=2){var A=C[g],O=C[g+1];A==="style"?bc(c,O):A==="dangerouslySetInnerHTML"?gc(c,O):A==="children"?ga(c,O):oe(c,A,O,P)}switch(y){case"input":ti(c,u);break;case"textarea":pc(c,u);break;case"select":var I=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!u.multiple;var Y=u.value;Y!=null?Tr(c,!!u.multiple,Y,!1):I!==!!u.multiple&&(u.defaultValue!=null?Tr(c,!!u.multiple,u.defaultValue,!0):Tr(c,!!u.multiple,u.multiple?[]:"",!1))}c[Aa]=u}catch(ne){Ie(e,e.return,ne)}}break;case 6:if(Et(t,e),Dt(e),i&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,u=e.memoizedProps;try{c.nodeValue=u}catch(ne){Ie(e,e.return,ne)}}break;case 3:if(Et(t,e),Dt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Na(t.containerInfo)}catch(ne){Ie(e,e.return,ne)}break;case 4:Et(t,e),Dt(e);break;case 13:Et(t,e),Dt(e),c=e.child,c.flags&8192&&(u=c.memoizedState!==null,c.stateNode.isHidden=u,!u||c.alternate!==null&&c.alternate.memoizedState!==null||(Ms=Ae())),i&4&&Tu(e);break;case 22:if(A=a!==null&&a.memoizedState!==null,e.mode&1?(Ye=(P=Ye)||A,Et(t,e),Ye=P):Et(t,e),Dt(e),i&8192){if(P=e.memoizedState!==null,(e.stateNode.isHidden=P)&&!A&&(e.mode&1)!==0)for(te=e,A=e.child;A!==null;){for(O=te=A;te!==null;){switch(I=te,Y=I.child,I.tag){case 0:case 11:case 14:case 15:Ka(4,I,I.return);break;case 1:ra(I,I.return);var ae=I.stateNode;if(typeof ae.componentWillUnmount=="function"){i=I,a=I.return;try{t=i,ae.props=t.memoizedProps,ae.state=t.memoizedState,ae.componentWillUnmount()}catch(ne){Ie(i,a,ne)}}break;case 5:ra(I,I.return);break;case 22:if(I.memoizedState!==null){$u(O);continue}}Y!==null?(Y.return=I,te=Y):$u(O)}A=A.sibling}e:for(A=null,O=e;;){if(O.tag===5){if(A===null){A=O;try{c=O.stateNode,P?(u=c.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(y=O.stateNode,C=O.memoizedProps.style,g=C!=null&&C.hasOwnProperty("display")?C.display:null,y.style.display=mc("display",g))}catch(ne){Ie(e,e.return,ne)}}}else if(O.tag===6){if(A===null)try{O.stateNode.nodeValue=P?"":O.memoizedProps}catch(ne){Ie(e,e.return,ne)}}else if((O.tag!==22&&O.tag!==23||O.memoizedState===null||O===e)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===e)break e;for(;O.sibling===null;){if(O.return===null||O.return===e)break e;A===O&&(A=null),O=O.return}A===O&&(A=null),O.sibling.return=O.return,O=O.sibling}}break;case 19:Et(t,e),Dt(e),i&4&&Tu(e);break;case 21:break;default:Et(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var a=e.return;a!==null;){if(Pu(a)){var i=a;break e}a=a.return}throw Error(o(160))}switch(i.tag){case 5:var c=i.stateNode;i.flags&32&&(ga(c,""),i.flags&=-33);var u=Lu(e);zs(e,u,c);break;case 3:case 4:var g=i.stateNode.containerInfo,y=Lu(e);Es(e,y,g);break;default:throw Error(o(161))}}catch(C){Ie(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bm(e,t,a){te=e,Au(e)}function Au(e,t,a){for(var i=(e.mode&1)!==0;te!==null;){var c=te,u=c.child;if(c.tag===22&&i){var g=c.memoizedState!==null||po;if(!g){var y=c.alternate,C=y!==null&&y.memoizedState!==null||Ye;y=po;var P=Ye;if(po=g,(Ye=C)&&!P)for(te=c;te!==null;)g=te,C=g.child,g.tag===22&&g.memoizedState!==null?Fu(c):C!==null?(C.return=g,te=C):Fu(c);for(;u!==null;)te=u,Au(u),u=u.sibling;te=c,po=y,Ye=P}Ou(e)}else(c.subtreeFlags&8772)!==0&&u!==null?(u.return=c,te=u):Ou(e)}}function Ou(e){for(;te!==null;){var t=te;if((t.flags&8772)!==0){var a=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ye||fo(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Ye)if(a===null)i.componentDidMount();else{var c=t.elementType===t.type?a.memoizedProps:Ct(t.type,a.memoizedProps);i.componentDidUpdate(c,a.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Od(t,u,i);break;case 3:var g=t.updateQueue;if(g!==null){if(a=null,t.child!==null)switch(t.child.tag){case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}Od(t,g,a)}break;case 5:var y=t.stateNode;if(a===null&&t.flags&4){a=y;var C=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&a.focus();break;case"img":C.src&&(a.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var P=t.alternate;if(P!==null){var A=P.memoizedState;if(A!==null){var O=A.dehydrated;O!==null&&Na(O)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Ye||t.flags&512&&Ns(t)}catch(I){Ie(t,t.return,I)}}if(t===e){te=null;break}if(a=t.sibling,a!==null){a.return=t.return,te=a;break}te=t.return}}function $u(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var a=t.sibling;if(a!==null){a.return=t.return,te=a;break}te=t.return}}function Fu(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var a=t.return;try{fo(4,t)}catch(C){Ie(t,a,C)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var c=t.return;try{i.componentDidMount()}catch(C){Ie(t,c,C)}}var u=t.return;try{Ns(t)}catch(C){Ie(t,u,C)}break;case 5:var g=t.return;try{Ns(t)}catch(C){Ie(t,g,C)}}}catch(C){Ie(t,t.return,C)}if(t===e){te=null;break}var y=t.sibling;if(y!==null){y.return=t.return,te=y;break}te=t.return}}var Wm=Math.ceil,ho=J.ReactCurrentDispatcher,_s=J.ReactCurrentOwner,bt=J.ReactCurrentBatchConfig,Ce=0,Ve=null,$e=null,He=0,dt=0,aa=Jt(0),Ue=0,Qa=null,kr=0,go=0,Rs=0,Ya=null,at=null,Ms=0,na=1/0,qt=null,mo=!1,Ps=null,nr=null,bo=!1,or=null,xo=0,Za=0,Ls=null,vo=-1,yo=0;function Je(){return(Ce&6)!==0?Ae():vo!==-1?vo:vo=Ae()}function ir(e){return(e.mode&1)===0?1:(Ce&2)!==0&&He!==0?He&-He:zm.transition!==null?(yo===0&&(yo=Pc()),yo):(e=ze,e!==0||(e=window.event,e=e===void 0?16:Uc(e.type)),e)}function zt(e,t,a,i){if(50<Za)throw Za=0,Ls=null,Error(o(185));wa(e,a,i),((Ce&2)===0||e!==Ve)&&(e===Ve&&((Ce&2)===0&&(go|=a),Ue===4&&sr(e,He)),nt(e,i),a===1&&Ce===0&&(t.mode&1)===0&&(na=Ae()+500,Xn&&er()))}function nt(e,t){var a=e.callbackNode;zg(e,t);var i=zn(e,e===Ve?He:0);if(i===0)a!==null&&_c(a),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(a!=null&&_c(a),t===1)e.tag===0?Em(qu.bind(null,e)):Nd(qu.bind(null,e)),jm(function(){(Ce&6)===0&&er()}),a=null;else{switch(Lc(i)){case 1:a=fi;break;case 4:a=Rc;break;case 16:a=Sn;break;case 536870912:a=Mc;break;default:a=Sn}a=Yu(a,Uu.bind(null,e))}e.callbackPriority=t,e.callbackNode=a}}function Uu(e,t){if(vo=-1,yo=0,(Ce&6)!==0)throw Error(o(327));var a=e.callbackNode;if(oa()&&e.callbackNode!==a)return null;var i=zn(e,e===Ve?He:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=wo(e,i);else{t=i;var c=Ce;Ce|=2;var u=Bu();(Ve!==e||He!==t)&&(qt=null,na=Ae()+500,Sr(e,t));do try{Km();break}catch(y){Vu(e,y)}while(!0);Ji(),ho.current=u,Ce=c,$e!==null?t=0:(Ve=null,He=0,t=Ue)}if(t!==0){if(t===2&&(c=hi(e),c!==0&&(i=c,t=Ds(e,c))),t===1)throw a=Qa,Sr(e,0),sr(e,i),nt(e,Ae()),a;if(t===6)sr(e,i);else{if(c=e.current.alternate,(i&30)===0&&!Hm(c)&&(t=wo(e,i),t===2&&(u=hi(e),u!==0&&(i=u,t=Ds(e,u))),t===1))throw a=Qa,Sr(e,0),sr(e,i),nt(e,Ae()),a;switch(e.finishedWork=c,e.finishedLanes=i,t){case 0:case 1:throw Error(o(345));case 2:Cr(e,at,qt);break;case 3:if(sr(e,i),(i&130023424)===i&&(t=Ms+500-Ae(),10<t)){if(zn(e,0)!==0)break;if(c=e.suspendedLanes,(c&i)!==i){Je(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=Ui(Cr.bind(null,e,at,qt),t);break}Cr(e,at,qt);break;case 4:if(sr(e,i),(i&4194240)===i)break;for(t=e.eventTimes,c=-1;0<i;){var g=31-kt(i);u=1<<g,g=t[g],g>c&&(c=g),i&=~u}if(i=c,i=Ae()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wm(i/1960))-i,10<i){e.timeoutHandle=Ui(Cr.bind(null,e,at,qt),i);break}Cr(e,at,qt);break;case 5:Cr(e,at,qt);break;default:throw Error(o(329))}}}return nt(e,Ae()),e.callbackNode===a?Uu.bind(null,e):null}function Ds(e,t){var a=Ya;return e.current.memoizedState.isDehydrated&&(Sr(e,t).flags|=256),e=wo(e,t),e!==2&&(t=at,at=a,t!==null&&Ts(t)),e}function Ts(e){at===null?at=e:at.push.apply(at,e)}function Hm(e){for(var t=e;;){if(t.flags&16384){var a=t.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var i=0;i<a.length;i++){var c=a[i],u=c.getSnapshot;c=c.value;try{if(!jt(u(),c))return!1}catch{return!1}}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sr(e,t){for(t&=~Rs,t&=~go,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var a=31-kt(t),i=1<<a;e[a]=-1,t&=~i}}function qu(e){if((Ce&6)!==0)throw Error(o(327));oa();var t=zn(e,0);if((t&1)===0)return nt(e,Ae()),null;var a=wo(e,t);if(e.tag!==0&&a===2){var i=hi(e);i!==0&&(t=i,a=Ds(e,i))}if(a===1)throw a=Qa,Sr(e,0),sr(e,t),nt(e,Ae()),a;if(a===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cr(e,at,qt),nt(e,Ae()),null}function Is(e,t){var a=Ce;Ce|=1;try{return e(t)}finally{Ce=a,Ce===0&&(na=Ae()+500,Xn&&er())}}function jr(e){or!==null&&or.tag===0&&(Ce&6)===0&&oa();var t=Ce;Ce|=1;var a=bt.transition,i=ze;try{if(bt.transition=null,ze=1,e)return e()}finally{ze=i,bt.transition=a,Ce=t,(Ce&6)===0&&er()}}function As(){dt=aa.current,Me(aa)}function Sr(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;if(a!==-1&&(e.timeoutHandle=-1,km(a)),$e!==null)for(a=$e.return;a!==null;){var i=a;switch(Xi(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Wn();break;case 3:ea(),Me(et),Me(Xe),is();break;case 5:ns(i);break;case 4:ea();break;case 13:Me(De);break;case 19:Me(De);break;case 10:Gi(i.type._context);break;case 22:case 23:As()}a=a.return}if(Ve=e,$e=e=lr(e.current,null),He=dt=t,Ue=0,Qa=null,Rs=go=kr=0,at=Ya=null,vr!==null){for(t=0;t<vr.length;t++)if(a=vr[t],i=a.interleaved,i!==null){a.interleaved=null;var c=i.next,u=a.pending;if(u!==null){var g=u.next;u.next=c,i.next=g}a.pending=i}vr=null}return e}function Vu(e,t){do{var a=$e;try{if(Ji(),ao.current=so,no){for(var i=Te.memoizedState;i!==null;){var c=i.queue;c!==null&&(c.pending=null),i=i.next}no=!1}if(wr=0,qe=Fe=Te=null,Va=!1,Ba=0,_s.current=null,a===null||a.return===null){Ue=1,Qa=t,$e=null;break}e:{var u=e,g=a.return,y=a,C=t;if(t=He,y.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var P=C,A=y,O=A.tag;if((A.mode&1)===0&&(O===0||O===11||O===15)){var I=A.alternate;I?(A.updateQueue=I.updateQueue,A.memoizedState=I.memoizedState,A.lanes=I.lanes):(A.updateQueue=null,A.memoizedState=null)}var Y=fu(g);if(Y!==null){Y.flags&=-257,hu(Y,g,y,u,t),Y.mode&1&&pu(u,P,t),t=Y,C=P;var ae=t.updateQueue;if(ae===null){var ne=new Set;ne.add(C),t.updateQueue=ne}else ae.add(C);break e}else{if((t&1)===0){pu(u,P,t),Os();break e}C=Error(o(426))}}else if(Le&&y.mode&1){var Oe=fu(g);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),hu(Oe,g,y,u,t),Yi(ta(C,y));break e}}u=C=ta(C,y),Ue!==4&&(Ue=2),Ya===null?Ya=[u]:Ya.push(u),u=g;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var _=du(u,C,t);Ad(u,_);break e;case 1:y=C;var N=u.type,R=u.stateNode;if((u.flags&128)===0&&(typeof N.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(nr===null||!nr.has(R)))){u.flags|=65536,t&=-t,u.lanes|=t;var q=uu(u,y,t);Ad(u,q);break e}}u=u.return}while(u!==null)}Hu(a)}catch(ie){t=ie,$e===a&&a!==null&&($e=a=a.return);continue}break}while(!0)}function Bu(){var e=ho.current;return ho.current=so,e===null?so:e}function Os(){(Ue===0||Ue===3||Ue===2)&&(Ue=4),Ve===null||(kr&268435455)===0&&(go&268435455)===0||sr(Ve,He)}function wo(e,t){var a=Ce;Ce|=2;var i=Bu();(Ve!==e||He!==t)&&(qt=null,Sr(e,t));do try{Xm();break}catch(c){Vu(e,c)}while(!0);if(Ji(),Ce=a,ho.current=i,$e!==null)throw Error(o(261));return Ve=null,He=0,Ue}function Xm(){for(;$e!==null;)Wu($e)}function Km(){for(;$e!==null&&!vg();)Wu($e)}function Wu(e){var t=Qu(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?Hu(e):$e=t,_s.current=null}function Hu(e){var t=e;do{var a=t.alternate;if(e=t.return,(t.flags&32768)===0){if(a=Fm(a,t,dt),a!==null){$e=a;return}}else{if(a=Um(a,t),a!==null){a.flags&=32767,$e=a;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ue=6,$e=null;return}}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);Ue===0&&(Ue=5)}function Cr(e,t,a){var i=ze,c=bt.transition;try{bt.transition=null,ze=1,Qm(e,t,a,i)}finally{bt.transition=c,ze=i}return null}function Qm(e,t,a,i){do oa();while(or!==null);if((Ce&6)!==0)throw Error(o(327));a=e.finishedWork;var c=e.finishedLanes;if(a===null)return null;if(e.finishedWork=null,e.finishedLanes=0,a===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var u=a.lanes|a.childLanes;if(_g(e,u),e===Ve&&($e=Ve=null,He=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||bo||(bo=!0,Yu(Sn,function(){return oa(),null})),u=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||u){u=bt.transition,bt.transition=null;var g=ze;ze=1;var y=Ce;Ce|=4,_s.current=null,Vm(e,a),Iu(a,e),gm($i),Mn=!!Oi,$i=Oi=null,e.current=a,Bm(a),yg(),Ce=y,ze=g,bt.transition=u}else e.current=a;if(bo&&(bo=!1,or=e,xo=c),u=e.pendingLanes,u===0&&(nr=null),jg(a.stateNode),nt(e,Ae()),t!==null)for(i=e.onRecoverableError,a=0;a<t.length;a++)c=t[a],i(c.value,{componentStack:c.stack,digest:c.digest});if(mo)throw mo=!1,e=Ps,Ps=null,e;return(xo&1)!==0&&e.tag!==0&&oa(),u=e.pendingLanes,(u&1)!==0?e===Ls?Za++:(Za=0,Ls=e):Za=0,er(),null}function oa(){if(or!==null){var e=Lc(xo),t=bt.transition,a=ze;try{if(bt.transition=null,ze=16>e?16:e,or===null)var i=!1;else{if(e=or,or=null,xo=0,(Ce&6)!==0)throw Error(o(331));var c=Ce;for(Ce|=4,te=e.current;te!==null;){var u=te,g=u.child;if((te.flags&16)!==0){var y=u.deletions;if(y!==null){for(var C=0;C<y.length;C++){var P=y[C];for(te=P;te!==null;){var A=te;switch(A.tag){case 0:case 11:case 15:Ka(8,A,u)}var O=A.child;if(O!==null)O.return=A,te=O;else for(;te!==null;){A=te;var I=A.sibling,Y=A.return;if(Mu(A),A===P){te=null;break}if(I!==null){I.return=Y,te=I;break}te=Y}}}var ae=u.alternate;if(ae!==null){var ne=ae.child;if(ne!==null){ae.child=null;do{var Oe=ne.sibling;ne.sibling=null,ne=Oe}while(ne!==null)}}te=u}}if((u.subtreeFlags&2064)!==0&&g!==null)g.return=u,te=g;else e:for(;te!==null;){if(u=te,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:Ka(9,u,u.return)}var _=u.sibling;if(_!==null){_.return=u.return,te=_;break e}te=u.return}}var N=e.current;for(te=N;te!==null;){g=te;var R=g.child;if((g.subtreeFlags&2064)!==0&&R!==null)R.return=g,te=R;else e:for(g=N;te!==null;){if(y=te,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:fo(9,y)}}catch(ie){Ie(y,y.return,ie)}if(y===g){te=null;break e}var q=y.sibling;if(q!==null){q.return=y.return,te=q;break e}te=y.return}}if(Ce=c,er(),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Cn,e)}catch{}i=!0}return i}finally{ze=a,bt.transition=t}}return!1}function Xu(e,t,a){t=ta(a,t),t=du(e,t,1),e=rr(e,t,1),t=Je(),e!==null&&(wa(e,1,t),nt(e,t))}function Ie(e,t,a){if(e.tag===3)Xu(e,e,a);else for(;t!==null;){if(t.tag===3){Xu(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(nr===null||!nr.has(i))){e=ta(a,e),e=uu(t,e,1),t=rr(t,e,1),e=Je(),t!==null&&(wa(t,1,e),nt(t,e));break}}t=t.return}}function Ym(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&a,Ve===e&&(He&a)===a&&(Ue===4||Ue===3&&(He&130023424)===He&&500>Ae()-Ms?Sr(e,0):Rs|=a),nt(e,t)}function Ku(e,t){t===0&&((e.mode&1)===0?t=1:(t=En,En<<=1,(En&130023424)===0&&(En=4194304)));var a=Je();e=$t(e,t),e!==null&&(wa(e,t,a),nt(e,a))}function Zm(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ku(e,a)}function Jm(e,t){var a=0;switch(e.tag){case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(o(314))}i!==null&&i.delete(t),Ku(e,a)}var Qu;Qu=function(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)rt=!0;else{if((e.lanes&a)===0&&(t.flags&128)===0)return rt=!1,$m(e,t,a);rt=(e.flags&131072)!==0}else rt=!1,Le&&(t.flags&1048576)!==0&&Ed(t,Qn,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;uo(e,t),e=t.pendingProps;var c=Xr(t,Xe.current);Gr(t,a),c=cs(null,t,i,e,c,a);var u=ds();return t.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(i)?(u=!0,Hn(t)):u=!1,t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,rs(t),c.updater=lo,t.stateNode=c,c._reactInternals=t,ms(t,i,e,a),t=ys(null,t,i,!0,u,a)):(t.tag=0,Le&&u&&Hi(t),Ze(null,t,c,a),t=t.child),t;case 16:i=t.elementType;e:{switch(uo(e,t),e=t.pendingProps,c=i._init,i=c(i._payload),t.type=i,c=t.tag=eb(i),e=Ct(i,e),c){case 0:t=vs(null,t,i,e,a);break e;case 1:t=yu(null,t,i,e,a);break e;case 11:t=gu(null,t,i,e,a);break e;case 14:t=mu(null,t,i,Ct(i.type,e),a);break e}throw Error(o(306,i,""))}return t;case 0:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:Ct(i,c),vs(e,t,i,c,a);case 1:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:Ct(i,c),yu(e,t,i,c,a);case 3:e:{if(wu(t),e===null)throw Error(o(387));i=t.pendingProps,u=t.memoizedState,c=u.element,Id(e,t),to(t,i,null,a);var g=t.memoizedState;if(i=g.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){c=ta(Error(o(423)),t),t=ku(e,t,i,a,c);break e}else if(i!==c){c=ta(Error(o(424)),t),t=ku(e,t,i,a,c);break e}else for(ct=Zt(t.stateNode.containerInfo.firstChild),lt=t,Le=!0,St=null,a=Dd(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Yr(),i===c){t=Ut(e,t,a);break e}Ze(e,t,i,a)}t=t.child}return t;case 5:return $d(t),e===null&&Qi(t),i=t.type,c=t.pendingProps,u=e!==null?e.memoizedProps:null,g=c.children,Fi(i,c)?g=null:u!==null&&Fi(i,u)&&(t.flags|=32),vu(e,t),Ze(e,t,g,a),t.child;case 6:return e===null&&Qi(t),null;case 13:return ju(e,t,a);case 4:return as(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zr(t,null,i,a):Ze(e,t,i,a),t.child;case 11:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:Ct(i,c),gu(e,t,i,c,a);case 7:return Ze(e,t,t.pendingProps,a),t.child;case 8:return Ze(e,t,t.pendingProps.children,a),t.child;case 12:return Ze(e,t,t.pendingProps.children,a),t.child;case 10:e:{if(i=t.type._context,c=t.pendingProps,u=t.memoizedProps,g=c.value,_e(Jn,i._currentValue),i._currentValue=g,u!==null)if(jt(u.value,g)){if(u.children===c.children&&!et.current){t=Ut(e,t,a);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var y=u.dependencies;if(y!==null){g=u.child;for(var C=y.firstContext;C!==null;){if(C.context===i){if(u.tag===1){C=Ft(-1,a&-a),C.tag=2;var P=u.updateQueue;if(P!==null){P=P.shared;var A=P.pending;A===null?C.next=C:(C.next=A.next,A.next=C),P.pending=C}}u.lanes|=a,C=u.alternate,C!==null&&(C.lanes|=a),es(u.return,a,t),y.lanes|=a;break}C=C.next}}else if(u.tag===10)g=u.type===t.type?null:u.child;else if(u.tag===18){if(g=u.return,g===null)throw Error(o(341));g.lanes|=a,y=g.alternate,y!==null&&(y.lanes|=a),es(g,a,t),g=u.sibling}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===t){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}Ze(e,t,c.children,a),t=t.child}return t;case 9:return c=t.type,i=t.pendingProps.children,Gr(t,a),c=gt(c),i=i(c),t.flags|=1,Ze(e,t,i,a),t.child;case 14:return i=t.type,c=Ct(i,t.pendingProps),c=Ct(i.type,c),mu(e,t,i,c,a);case 15:return bu(e,t,t.type,t.pendingProps,a);case 17:return i=t.type,c=t.pendingProps,c=t.elementType===i?c:Ct(i,c),uo(e,t),t.tag=1,tt(i)?(e=!0,Hn(t)):e=!1,Gr(t,a),lu(t,i,c),ms(t,i,c,a),ys(null,t,i,!0,e,a);case 19:return Cu(e,t,a);case 22:return xu(e,t,a)}throw Error(o(156,t.tag))};function Yu(e,t){return zc(e,t)}function Gm(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,a,i){return new Gm(e,t,a,i)}function $s(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eb(e){if(typeof e=="function")return $s(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W)return 11;if(e===Ne)return 14}return 2}function lr(e,t){var a=e.alternate;return a===null?(a=xt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function ko(e,t,a,i,c,u){var g=2;if(i=e,typeof e=="function")$s(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case X:return Nr(a.children,c,u,t);case K:g=8,c|=8;break;case he:return e=xt(12,a,t,c|2),e.elementType=he,e.lanes=u,e;case Q:return e=xt(13,a,t,c),e.elementType=Q,e.lanes=u,e;case be:return e=xt(19,a,t,c),e.elementType=be,e.lanes=u,e;case ye:return jo(a,c,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ee:g=10;break e;case ue:g=9;break e;case W:g=11;break e;case Ne:g=14;break e;case ve:g=16,i=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=xt(g,a,t,c),t.elementType=e,t.type=i,t.lanes=u,t}function Nr(e,t,a,i){return e=xt(7,e,i,t),e.lanes=a,e}function jo(e,t,a,i){return e=xt(22,e,i,t),e.elementType=ye,e.lanes=a,e.stateNode={isHidden:!1},e}function Fs(e,t,a){return e=xt(6,e,null,t),e.lanes=a,e}function Us(e,t,a){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tb(e,t,a,i,c){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gi(0),this.expirationTimes=gi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.identifierPrefix=i,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function qs(e,t,a,i,c,u,g,y,C){return e=new tb(e,t,a,y,C),t===1?(t=1,u===!0&&(t|=8)):t=0,u=xt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:i,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},rs(u),e}function rb(e,t,a){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:i==null?null:""+i,children:e,containerInfo:t,implementation:a}}function Zu(e){if(!e)return Gt;e=e._reactInternals;e:{if(hr(e)!==e||e.tag!==1)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(o(171))}if(e.tag===1){var a=e.type;if(tt(a))return Sd(e,a,t)}return t}function Ju(e,t,a,i,c,u,g,y,C){return e=qs(a,i,!0,e,c,u,g,y,C),e.context=Zu(null),a=e.current,i=Je(),c=ir(a),u=Ft(i,c),u.callback=t??null,rr(a,u,c),e.current.lanes=c,wa(e,c,i),nt(e,i),e}function So(e,t,a,i){var c=t.current,u=Je(),g=ir(c);return a=Zu(a),t.context===null?t.context=a:t.pendingContext=a,t=Ft(u,g),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=rr(c,t,g),e!==null&&(zt(e,c,g,u),eo(e,c,g)),g}function Co(e){return e=e.current,e.child?(e.child.tag,e.child.stateNode):null}function Gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vs(e,t){Gu(e,t),(e=e.alternate)&&Gu(e,t)}function ab(){return null}var ep=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bs(e){this._internalRoot=e}No.prototype.render=Bs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));So(e,t,null,null)},No.prototype.unmount=Bs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){So(null,e,null,null)}),t[Tt]=null}};function No(e){this._internalRoot=e}No.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ic();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Kt.length&&t!==0&&t<Kt[a].priority;a++);Kt.splice(a,0,e),a===0&&$c(e)}};function Ws(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Eo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tp(){}function nb(e,t,a,i,c){if(c){if(typeof i=="function"){var u=i;i=function(){var P=Co(g);u.call(P)}}var g=Ju(t,i,e,0,null,!1,!1,"",tp);return e._reactRootContainer=g,e[Tt]=g.current,Ta(e.nodeType===8?e.parentNode:e),jr(),g}for(;c=e.lastChild;)e.removeChild(c);if(typeof i=="function"){var y=i;i=function(){var P=Co(C);y.call(P)}}var C=qs(e,0,!1,null,null,!1,!1,"",tp);return e._reactRootContainer=C,e[Tt]=C.current,Ta(e.nodeType===8?e.parentNode:e),jr(function(){So(t,C,a,i)}),C}function zo(e,t,a,i,c){var u=a._reactRootContainer;if(u){var g=u;if(typeof c=="function"){var y=c;c=function(){var C=Co(g);y.call(C)}}So(t,g,e,c)}else g=nb(a,t,e,c,i);return Co(g)}Dc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var a=ya(t.pendingLanes);a!==0&&(mi(t,a|1),nt(t,Ae()),(Ce&6)===0&&(na=Ae()+500,er()))}break;case 13:jr(function(){var i=$t(e,1);if(i!==null){var c=Je();zt(i,e,1,c)}}),Vs(e,1)}},bi=function(e){if(e.tag===13){var t=$t(e,134217728);if(t!==null){var a=Je();zt(t,e,134217728,a)}Vs(e,134217728)}},Tc=function(e){if(e.tag===13){var t=ir(e),a=$t(e,t);if(a!==null){var i=Je();zt(a,e,t,i)}Vs(e,t)}},Ic=function(){return ze},Ac=function(e,t){var a=ze;try{return ze=e,t()}finally{ze=a}},ci=function(e,t,a){switch(t){case"input":if(ti(e,a),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var c=Bn(i);if(!c)throw Error(o(90));sc(i),ti(i,c)}}}break;case"textarea":pc(e,a);break;case"select":t=a.value,t!=null&&Tr(e,!!a.multiple,t,!1)}},wc=Is,kc=jr;var ob={usingClientEntryPoint:!1,Events:[Oa,Wr,Bn,vc,yc,Is]},Ja={findFiberByHostInstance:gr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ib={bundleType:Ja.bundleType,version:Ja.version,rendererPackageName:Ja.rendererPackageName,rendererConfig:Ja.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Nc(e),e===null?null:e.stateNode},findFiberByHostInstance:Ja.findFiberByHostInstance||ab,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 _o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_o.isDisabled&&_o.supportsFiber)try{Cn=_o.inject(ib),Rt=_o}catch{}}return ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ob,ot.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ws(t))throw Error(o(200));return rb(e,t,null,a)},ot.createRoot=function(e,t){if(!Ws(e))throw Error(o(299));var a=!1,i="",c=ep;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=qs(e,1,!1,null,null,a,!1,i,c),e[Tt]=t.current,Ta(e.nodeType===8?e.parentNode:e),new Bs(t)},ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Nc(t),e=e===null?null:e.stateNode,e},ot.flushSync=function(e){return jr(e)},ot.hydrate=function(e,t,a){if(!Eo(t))throw Error(o(200));return zo(null,e,t,!0,a)},ot.hydrateRoot=function(e,t,a){if(!Ws(e))throw Error(o(405));var i=a!=null&&a.hydratedSources||null,c=!1,u="",g=ep;if(a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onRecoverableError!==void 0&&(g=a.onRecoverableError)),t=Ju(t,null,e,1,a??null,c,!1,u,g),e[Tt]=t.current,Ta(e),i)for(e=0;e<i.length;e++)a=i[e],c=a._getVersion,c=c(a._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[a,c]:t.mutableSourceEagerHydrationData.push(a,c);return new No(t)},ot.render=function(e,t,a){if(!Eo(t))throw Error(o(200));return zo(null,e,t,!1,a)},ot.unmountComponentAtNode=function(e){if(!Eo(e))throw Error(o(40));return e._reactRootContainer?(jr(function(){zo(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},ot.unstable_batchedUpdates=Is,ot.unstable_renderSubtreeIntoContainer=function(e,t,a,i){if(!Eo(a))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return zo(e,t,a,!1,i)},ot.version="18.3.1-next-f1338f8080-20240426",ot}var hp;function vb(){if(hp)return Xs.exports;hp=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),Xs.exports=xb(),Xs.exports}var gp;function yb(){if(gp)return Ro;gp=1;var r=vb();return Ro.createRoot=r.createRoot,Ro.hydrateRoot=r.hydrateRoot,Ro}var wb=yb();const kb=".aid-root{color-scheme:light;--background: 0 0% 100%;--background-secondary: 210, 40%, 96%;--foreground: 222.2 47.4% 11.2%;--foreground-secondary: 253, 40%, 16%;--scroll: 0, 0%, 78%;--sidebar-menu-background: 202, 100%, 18%;--sidebar: 210, 40%, 96%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 42%;--popover: 0 0% 100%;--popover-foreground: 222.2 47.4% 11.2%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--card: 0 0% 100%;--card-foreground: 222.2 47.4% 11.2%;--primary: 201, 100%, 29%;--primary-text: 201, 100%, 29%;--primary-foreground: 210, 40%, 96%;--primary-hovered: 202, 54%, 67%;--primary-pressed: 202, 100%, 18%;--disabled: 223, 8%, 18%, .15;--disabled-foreground: 223, 8%, 18%, .65;--main: 252, 39%, 16%;--main-foreground: 210, 40%, 96%;--secondary: 201, 95%, 36%, .1;--secondary-foreground: 201, 100%, 29%, 1;--secondary-hovered: 202, 54%, 67%;--secondary-pressed: 202, 100%, 18%;--accent: 223, 8%, 18%, .06;--accent-foreground: 223, 8%, 18%, 1;--destructive: 359, 84%, 50%, 1;--destructive-foreground: 0, 0%, 100%, 1;--destructive-background: 359, 84%, 50%, .1;--destructive-hovered: 359, 84%, 58%, 1;--destructive-pressed: 359, 84%, 44%, 1;--ring: 215 20.2% 65.1%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 202, 100%, 18%;--table-header-background: 223, 8%, 18%;--table-header-opacity: .02;--table-background-hover: 223, 8%, 18%;--chart-card: 210, 27%, 95%;--filled-filter: 343, 79%, 45%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359, 84%, 50%;--processing: 201.2, 100%, 29.41%;--success-background: 90, 100%, 96%;--warning-background: 50, 100%, 95%, 1;--error-background: 8, 100%, 97%, 1;--processing-background: 204, 42%, 95%, 1;--default-background: 223, 8%, 18%, .02;--transfer-hovered: 223, 8%, 18%, .04;--transfer-selected: 204, 42%, 95%;--transfer-selected-hovered: 203, 55%, 91%;--toast-background: 204, 42%, 95%;--toast-border: 202, 55%, 85%;--toast-success-background: 90, 100%, 96%;--toast-success-border: 94, 70%, 74%;--toast-error-background: 8, 100%, 97%;--toast-error-border: 5, 100%, 89%, 1;--toast-warning-background: 50, 100%, 95%;--toast-warning-border: 46, 100%, 78%;--toast-info-background: 204, 42%, 95%;--toast-info-border: 202, 55%, 85%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 0%;--gray-soft: 220, 27%, 92%;--gray-softer: 0 0% 95%}.aid-root.dark{color-scheme:dark;--background: 222 47% 11%;--background-secondary: 217, 33%, 17%;--foreground: 210 40% 98%;--foreground-secondary: 210, 40%, 90%;--scroll: 215, 14%, 34%;--sidebar-menu-background: 222, 47%, 11%;--sidebar: 217, 33%, 17%;--muted: 217 33% 17%;--muted-foreground: 215 20.2% 65.1%;--popover: 222 47% 11%;--popover-foreground: 210 40% 98%;--border: 217 33% 25%;--input: 217 33% 25%;--card: 222 47% 11%;--card-foreground: 210 40% 98%;--primary: 201, 100%, 35%;--primary-text: 201, 90%, 60%;--primary-foreground: 210, 40%, 98%;--primary-hovered: 201, 100%, 39%;--primary-pressed: 201, 100%, 29%;--disabled: 215, 14%, 34%, .2;--disabled-foreground: 210, 40%, 90%, .5;--main: 210, 40%, 90%;--main-foreground: 222, 47%, 11%;--secondary: 201, 95%, 40%, .2;--secondary-foreground: 201, 100%, 70%, 1;--secondary-hovered: 201, 90%, 75%;--secondary-pressed: 201, 100%, 60%;--accent: 210, 40%, 90%, .1;--accent-foreground: 210, 40%, 90%, 1;--destructive: 0, 100%, 65%, 1;--destructive-foreground: 210, 40%, 98%, 1;--destructive-background: 359, 100%, 65%, .1;--destructive-hovered: 0, 100%, 70%, 1;--destructive-pressed: 0, 100%, 60%, 1;--ring: 215 20.2% 50%;--radius: 12px;--header-height: 64px;--table-radius: 10px;--table-background: 222, 47%, 15%;--table-header-background: 0, 0%, 100%;--table-header-opacity: .04;--table-background-hover: 0, 0%, 100%;--chart-card: 210, 25%, 18%;--filled-filter: 343, 79%, 55%;--success: 100.24, 76.58%, 43.53%;--warning: 39.91, 95.83%, 52.94%;--error: 359.33, 100%, 65.1%;--processing: 201, 90%, 60%;--success-background: 100, 77%, 44%, .12;--warning-background: 40, 96%, 53%, .12;--error-background: 359, 100%, 65%, .12;--processing-background: 201, 90%, 60%, .12;--default-background: 0, 0%, 100%, .04;--transfer-hovered: 0, 0%, 100%, .06;--transfer-selected: 201, 95%, 40%, .2;--transfer-selected-hovered: 201, 95%, 40%, .3;--toast-background: 222, 47%, 15%;--toast-border: 217, 33%, 25%;--toast-success-background: 142, 70%, 15%;--toast-success-border: 142, 70%, 25%;--toast-error-background: 0, 70%, 15%;--toast-error-border: 0, 70%, 25%;--toast-warning-background: 48, 70%, 15%;--toast-warning-border: 48, 70%, 25%;--toast-info-background: 201, 70%, 15%;--toast-info-border: 201, 70%, 25%;--custom-magenta: 330 84% 33%;--custom-peach: 36 100% 94%;--custom-orange-soft: 18 100% 63%;--custom-orange-strong: 27, 95%, 55%;--chart-stroke: 0, 0%, 100%;--gray-soft: 217, 33%, 22%;--gray-softer: 217 33% 17%}.aid-root{--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}",Ks=25,jb={ru:"ru-RU",kk:"kk-KZ",en:"en-US"};function _t(r,n,o){return r===null?"\u2014":new Intl.NumberFormat(jb[n],{minimumFractionDigits:o,maximumFractionDigits:o}).format(r).replace(new RegExp("\\u202F","g"),"\xA0")}const Qs=r=>typeof r=="number"&&Number.isFinite(r)?r:null;function Sb(r,n,o){const s=o==="asc"?1:-1,d=n.type==="number"||n.type==="integer",p=[],f=[];for(const h of r){const m=h[n.key];((d?Qs(m)===null:m==null)?f:p).push(h)}return p.sort((h,m)=>d?s*((Qs(h[n.key])??0)-(Qs(m[n.key])??0)):s*String(h[n.key]).localeCompare(String(m[n.key]))),[...p,...f]}function Cb(r,n){let o=r.data;const s=n.query?.trim().toLowerCase();if(s){const b=r.columns.filter(j=>j.type==="string").map(j=>j.key);o=o.filter(j=>b.some(k=>String(j[k]??"").toLowerCase().includes(s)))}const d=r.columns.find(b=>b.key===n.sortKey);d&&(o=Sb(o,d,n.dir??"asc"));const p=o.length,f=Math.max(1,Math.ceil(p/Ks)),h=Math.min(Math.max(1,Math.trunc(n.page)||1),f),m=(h-1)*Ks,v=o.slice(m,m+Ks);return{rows:v,page:h,pages:f,from:p===0?0:m+1,to:m+v.length,total:p}}function Nb(r){return r.split(`
|
|
9
|
+
`).map(n=>{const o=n.trim();return o.startsWith("|")?/^\|[\s:|-]+\|?$/.test(o)?null:o.replace(/^\||\|$/g,"").split("|").map(s=>s.trim()).join(" \u2014 "):n}).filter(n=>n!==null).join(`
|
|
10
|
+
`).replace(/^\s{0,3}#+\s*/gm,"").replace(/[*_`]/g,"").trim()}function Eb(r){const n=r.blocks.find(s=>s.kind==="plan"),o=[];return n&&n.passport.length>0&&o.push(n.passport.join(`
|
|
11
|
+
`)),o.push(Nb(r.content)),n?.source&&o.push(`\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: ${n.source.name}`),o.join(`
|
|
12
|
+
|
|
13
|
+
`)}function mp(r,n){return n.isLastInBranch?n.now.getTime()>Date.parse(r.expires_at)?"expired":"open":"answered"}function zb(r,n){const o=n.trim().toLowerCase();return o?r.filter(s=>s.label.toLowerCase().includes(o)):r}function en(r){return[...new Set(r.data.map(n=>n.period))].sort((n,o)=>n.localeCompare(o,void 0,{numeric:!0}))}const bp=r=>r.value_kind!=="level",xp=(r,n)=>{const o=en(r),s=o.indexOf(n);return s>0?o[s-1]:void 0},vp=(r,n)=>r.national?.period===n?r.national.value:null,_b=r=>{if(r.length===0)return null;const n=[...r].sort((s,d)=>s-d),o=Math.floor(n.length/2);return n.length%2?n[o]:(n[o-1]+n[o])/2},Rb=r=>[r.territory_code??r.territory_name,r.item].filter(n=>!!n).join("|"),Mb=r=>[r.territory_name??r.territory_code,r.item].filter(n=>!!n).join(", ");function Ys(r,n){const o=new Map;for(const s of r.data)s.period===n&&o.set(Rb(s),{name:Mb(s),value:s.value});return o}function Pb(r,n,o){return n===null||o===null||o===void 0?null:bp(r)?n-o:o<=0?null:(n/o-1)*100}const yp=r=>r!==null&&Number.isFinite(r)?r:null;function Lb(r,n){const o=Ys(r,n.period),s=xp(r,n.period),d=s?Ys(r,s):void 0,p=[...o.values()].map(m=>m.value).filter(m=>m!==null),f=p.reduce((m,v)=>m+v,0),h=n.base==="national"?vp(r,n.period):_b(p);return[...o].map(([m,{name:v,value:b}])=>{const j=yp(d?Pb(r,b,d.get(m)?.value):null);let k=b;n.mode==="deviation"?k=b===null||h===null?null:b-h:n.mode==="change"&&(k=j);const S=r.value_kind==="level"&&b!==null&&f!==0?b/f*100:null;return{key:m,name:v,value:b,display:yp(k),share:S,delta:j}}).sort((m,v)=>m.display===null||v.display===null?+(m.display===null)-+(v.display===null):v.display-m.display)}function Db(r,n){return{deviation:[...Ys(r,n).values()].filter(o=>o.value!==null).length>=2,national:vp(r,n)!==null,change:xp(r,n)!==void 0}}function Tb(r,n){return n==="value"?r.unit.label:bp(r)?"\u043F.\u043F.":n==="deviation"?r.unit.label:"%"}function Ib(r){const n=r.filter(Number.isFinite);if(n.length<2)return!0;const o=Math.max(...n),s=Math.min(...n);return o<=0||o===s?!0:(o-s)/o>=.2}function wp(r){switch(r){case"pdf":return"report";case"docx":return"document";case"pptx":return"presentation";case"xlsx":return"excel";case"csv":return"csv"}}const vt=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),se=r=>typeof r=="string",Vt=r=>typeof r=="number"&&Number.isFinite(r),Zs=r=>r===null||se(r),yt=(r,n)=>Array.isArray(r)&&r.every(o=>vt(o)&&n(o)),Mo=r=>Array.isArray(r)&&r.every(se),Ab=["self","regions","districts"],Ob=["string","number","integer","period"],$b=["indicator","territory","topic","period","scope","plan_confirm"];function Fb(r){const{period:n}=r;return yt(r.indicators,o=>se(o.id)&&se(o.name)&&se(o.unit))&&yt(r.alternatives,o=>se(o.id)&&se(o.name))&&yt(r.territories,o=>se(o.code)&&se(o.name))&&se(r.scope)&&Ab.includes(r.scope)&&vt(n)&&se(n.label)&&typeof n.substituted=="boolean"&&Zs(n.reason)&&se(r.breakdown)&&Mo(r.passport)&&(r.source===void 0||vt(r.source)&&se(r.source.name))&&(r.methodology===void 0||vt(r.methodology)&&se(r.methodology.title)&&se(r.methodology.url))}function Ub(r){return se(r.section_id)&&yt(r.columns,n=>se(n.key)&&se(n.title)&&se(n.type)&&Ob.includes(n.type))&&yt(r.data,()=>!0)&&typeof r.truncated=="boolean"&&Vt(r.total_rows)}function qb(r){return se(r.topic)&&yt(r.sections,n=>se(n.id)&&Mo(n.path)&&Vt(n.count))&&yt(r.indicators,n=>se(n.entity_id)&&se(n.name)&&se(n.unit)&&se(n.years)&&se(n.section))&&Vt(r.total)&&Mo(r.examples)}function Vb(r){return se(r.id)&&se(r.type)&&$b.includes(r.type)&&se(r.slot)&&se(r.question)&&yt(r.options,n=>se(n.value)&&se(n.label)&&Zs(n.hint))&&Zs(r.default)&&typeof r.allow_free_text=="boolean"&&Vt(r.round)&&se(r.expires_at)}const Bb=["regional","trend","breakdown","multi"],Wb=["level","percent","index","rate"],Hb=["pdf","docx","pptx","xlsx","csv"],Xb=["queued","running","done","failed","expired"],kp=["territory_code","territory_name","item"],tn=r=>r==null,sa=r=>tn(r)||se(r),Kb=r=>se(r.period)&&(r.value===null||Vt(r.value))&&kp.every(n=>sa(r[n])),Qb=r=>vt(r)&&se(r.title)&&se(r.url);function Yb(r){return tn(r)?!0:!vt(r)||!sa(r.label)?!1:tn(r.editions)?!0:vt(r.editions)&&Object.values(r.editions).every(Qb)}function Zb(r){const{unit:n,national:o}=r;return se(r.id)&&se(r.title)&&se(r.shape)&&Bb.includes(r.shape)&&vt(n)&&se(n.code)&&se(n.label)&&se(r.value_kind)&&Wb.includes(r.value_kind)&&Vt(r.decimals)&&se(r.freq)&&se(r.period)&&se(r.latest_period)&&yt(r.data,Kb)&&(tn(o)||vt(o)&&se(o.period)&&Vt(o.value))&&yt(r.kpis,s=>se(s.label)&&se(s.value)&&sa(s.sub)&&sa(s.tone))&&Mo(r.findings)&&typeof r.truncated=="boolean"&&Vt(r.total_rows)&&Yb(r.methodology)&&sa(r.source_url)&&sa(r.source_name)}function Jb(r){const n={...r};for(const o of kp)n[o]===null&&delete n[o];return n}function Gb(r){if(!se(r.title)||!Array.isArray(r.sections))return;const n=r.sections.filter(o=>vt(o)&&Zb(o)).map(o=>({...o,national:o.national??null,data:o.data.map(Jb)}));if(n.length!==0)return{kind:"dashboard",title:r.title,auto_open:r.auto_open===!0,sections:n}}const jp=r=>se(r.format)&&Hb.includes(r.format)&&se(r.filename)&&se(r.title)&&se(r.download_url)&&Vt(r.size_bytes);function e0(r){const{error:n}=r;return se(r.job_id)&&se(r.status)&&Xb.includes(r.status)&&yt(r.files,jp)&&(tn(n)||vt(n)&&se(n.code)&&se(n.message))}function Sp(r){if(vt(r))switch(r.kind){case"plan":return Fb(r)?r:void 0;case"table":return Ub(r)?r:void 0;case"catalog":return qb(r)?r:void 0;case"clarification":return Vb(r)?r:void 0;case"dashboard":return Gb(r);case"export":return yt(r.files,jp)?r:void 0;case"report":return e0(r)?r:void 0;default:return}}const Js="/chat/stream",t0=100;class Ge extends Error{constructor(n,o,s=null){super(o),ia(this,"status"),ia(this,"code"),ia(this,"body"),this.name="ApiError",this.status=n,this.code=o,this.body=s}get resetAt(){const n=this.body;if(n&&typeof n=="object"&&"reset_at"in n&&typeof n.reset_at=="string")return n.reset_at}}function r0(r,n){if(r&&typeof r=="object"){if("detail"in r&&typeof r.detail=="string"&&r.detail)return r.detail;if("errors"in r&&Array.isArray(r.errors)){const o=r.errors[0];if(o&&typeof o=="object"&&"code"in o&&typeof o.code=="string"&&o.code)return o.code}}return`http_${n}`}async function a0(r){const n=await r.text();if(!n)return null;try{return JSON.parse(n)}catch{return null}}async function Gs(r){const n=await a0(r);return new Ge(r.status,r0(n,r.status),n)}const rn=r=>typeof r=="string"&&r.trim()!==""?r.trim():void 0,n0=["\u041E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435: ","\u041A\u0430\u043A \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C: "],o0="\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0434\u0438\u0430\u043B\u043E\u0433:",Cp=`
|
|
14
|
+
\u041D\u043E\u0432\u044B\u0439 \u0432\u043E\u043F\u0440\u043E\u0441: `;function i0(r){let n=r;if(n0.some(o=>n.startsWith(o))){const o=n.indexOf(`
|
|
15
|
+
|
|
16
|
+
`);o!==-1&&(n=n.slice(o+2))}if(n.startsWith(o0)){const o=n.lastIndexOf(Cp);o!==-1&&(n=n.slice(o+Cp.length))}return n}const s0=["streaming","done","stopped","error"];function l0(r){return{...typeof r.id=="string"?{id:r.id}:{},node:typeof r.node=="string"?r.node:"",status:r.status==="running"?"running":"done",attempt:typeof r.attempt=="number"?r.attempt:1,...typeof r.durationMs=="number"?{durationMs:r.durationMs}:{},...typeof r.label=="string"?{label:r.label}:{},...typeof r.total=="number"||r.total===null?{total:r.total}:{},...rn(r.detail)!==void 0?{detail:rn(r.detail)}:{},...rn(r.result)!==void 0?{result:rn(r.result)}:{},...typeof r.startedAt=="number"?{startedAt:r.startedAt}:{}}}function Np(r){return{id:r.id,parentId:r.parent_id,role:r.role==="user"?"user":"assistant",content:r.role==="user"?i0(r.content):r.content,mode:r.mode,status:s0.find(n=>n===r.status)??"done",steps:r.steps.map(l0),durationMs:r.duration_ms,rating:r.rating,feedback:r.feedback,feedbackReason:r.feedback_reason??"",attachments:r.attachments??[],blocks:(r.blocks??[]).flatMap(n=>{const o=Sp(n);return o!=null?[o]:[]}),createdAt:r.created_at}}const c0=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ep=r=>c0.test(r);class zp extends Error{constructor(n){super(n),this.name="StreamFailure"}}const d0=(r,n)=>Date.parse(r.createdAt)-Date.parse(n.createdAt)||(r.id<n.id?-1:r.id>n.id?1:0);function _p(r){const n=new Map,o=new Map;for(const s of r){n.set(s.id,s);const d=o.get(s.parentId);d?d.push(s):o.set(s.parentId,[s])}for(const s of o.values())s.sort(d0);return{byId:n,children:o}}function u0(r,n){const o=[],s=new Set;let d=r.byId.get(n);for(;d&&!s.has(d.id);)s.add(d.id),o.push(d),d=d.parentId===null?void 0:r.byId.get(d.parentId);return o.reverse()}function Rp(r,n){if(!r.byId.has(n))return null;let o=n;for(;;){const s=r.children.get(o),d=s?.[s.length-1];if(!d)return o;o=d.id}}function p0(r,n){const o=r.byId.get(n);if(!o)return{list:[],position:-1};const s=r.children.get(o.parentId)??[];return{list:s,position:s.findIndex(d=>d.id===n)}}function Mp(r,n){if(n&&r.byId.has(n))return n;const o=r.children.get(null),s=o?.[o.length-1];return s?Rp(r,s.id):null}let f0=0;const h0=r=>`temp-${r}-${Date.now().toString(36)}-${(f0++).toString(36)}`;function el(r,n,o){return{id:h0(r==="user"?"user":"stream"),parent_id:o,role:r,content:"",mode:n,status:r==="user"?"done":"streaming",steps:[],duration_ms:null,rating:null,feedback:"",created_at:new Date().toISOString()}}function g0(r){return!r||r.messages.length===0?null:Mp(_p(r.messages.map(Np)),r.current_leaf_id)}function m0(r,n){if(r.regenerateOf!=null){const d=n?.messages.find(p=>p.id===r.regenerateOf);return{assistant:el("assistant",r.mode,d?.parent_id??null)}}const o=r.parentId===void 0?g0(n):r.parentId||null,s={...el("user",r.mode,o),content:r.query,...r.file?{attachments:[{name:r.file.name,url:""}]}:{}};return{user:s,assistant:el("assistant",r.mode,s.id)}}function b0(r,n,o){const s=new Map([[n.assistantId,o.assistantMessageId]]);n.userId!=null&&s.set(n.userId,o.userMessageId);const d=p=>p!=null?s.get(p)??p:p;return{...r,id:o.threadId,current_leaf_id:d(r.current_leaf_id),messages:r.messages.map(p=>s.has(p.id)||p.parent_id!=null&&s.has(p.parent_id)?{...p,id:d(p.id)??p.id,parent_id:d(p.parent_id)}:p)}}function x0(r,n){return{...r,content:n.text,steps:n.steps.map(o=>({...o})),...n.attachments.length>0?{attachments:n.attachments}:{},...n.blocks.length>0?{blocks:n.blocks.map(o=>({...o}))}:{}}}function v0(r,n,o,s){const d={...r,status:n,duration_ms:Date.now()-s};return n==="error"&&!r.content?{...d,content:o}:d}const y0=["thread_busy","mode_overloaded","daily_limit","rate_limit","concurrency_limit","file_too_large","file_not_allowed","invalid_query","invalid_parent","mode_not_found","thread_not_found","interrupted"],w0=r=>y0.includes(r);function k0(r){if(r instanceof Ge)return r.code;if(r instanceof zp)return r.message}function Po(r){const n=k0(r);return n!=null&&w0(n)?{kind:"code",code:n}:r instanceof Ge?{kind:"status",status:r.status}:{kind:"generic"}}async function Lo(r,n,o={}){const s=o.method??"GET",d=new Headers(o.headers),p=await r.headers?.({method:s})??{};for(const[f,h]of Object.entries(p))d.set(f,h);return(r.fetch??fetch)(`${r.baseUrl}${n}`,{...o,method:s,headers:d,...r.credentials?{credentials:r.credentials}:{}})}const Pp="text/event-stream";function j0({query:r,mode:n,file:o,parentId:s,regenerateOf:d,clarification:p},f){const h=new FormData;return h.set("mode",n),d==null&&h.set("query",r),f!=null&&h.set("thread_id",f),s!==void 0&&h.set("parent_id",s),d!=null&&h.set("regenerate_of",d),o&&h.set("file",o),p&&h.set("clarification",JSON.stringify(p)),h}function S0(r,n,o){return Lo(r,Js,{method:"POST",body:n,headers:{Accept:Pp},signal:o})}function C0(r,n,o){return Lo(r,`${Js}/${n}`,{headers:{Accept:Pp},signal:o})}async function N0(r,n){const o=await Lo(r,`${Js}/${n}/stop`,{method:"POST"});if(!o.ok)throw await Gs(o)}async function E0(r){if(!r.ok)throw await Gs(r);if(r.body==null)throw new Error("empty_stream");return r.body}const tl="/api/v1/widget",rl="aid_visitor",Lp=4e3,al=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Dp=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:[\w-]{10,100}$/i,z0=()=>{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const r=new Uint8Array(16);crypto.getRandomValues(r),r[6]=(r[6]??0)&15|64,r[8]=(r[8]??0)&63|128;const n=Array.from(r,o=>o.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`},_0=(r,n)=>{if(r&&al.test(r))return r;try{const s=n?.getItem(rl);if(s&&(al.test(s)||Dp.test(s)))return s}catch{}const o=z0();try{n?.setItem(rl,o)}catch{}return o},R0=/\/api\/v1\/attachments\/([0-9a-f-]{36})\/?(?:[?#].*)?$/i,Do=(r,n)=>{const o=R0.exec(r);if(!o?.[1]){const s=/\/api\/v1\/widget\/attachments\/([0-9a-f-]{36})\/?$/i.exec(r);return s?.[1]?`${nl(n)}/attachments/${s[1]}`:null}return`${nl(n)}/attachments/${o[1]}`},nl=r=>`${r.replace(/\/+$/,"")}${tl}`,M0=r=>{if(r==="")return r;let n;try{n=new URL(r)}catch{throw new TypeError(`AiDanaChat: api-url must be an absolute http(s) URL, got "${r}"`)}if(n.protocol!=="https:"&&n.protocol!=="http:")throw new TypeError(`AiDanaChat: api-url must be an http(s) URL, got "${r}"`);return r},ol=r=>r&&(/^https:\/\//i.test(r)||/^\/(?!\/)/.test(r)||/^data:image\/(?:png|jpeg|webp|gif);/i.test(r))?r:void 0,To=r=>typeof r=="object"&&r!==null&&!Array.isArray(r),P0=r=>{if(!To(r)||!To(r.site)||!Array.isArray(r.modes)||!r.modes.every(n=>To(n)&&typeof n.slug=="string")||!To(r.visitor))throw new Error("bad config");return r},L0=r=>{const n={};if(!r||typeof r!="object")return n;const o=S=>{const z=r[S];return typeof z=="string"&&z?z:void 0},s=o("primary"),d=o("font"),p=ol(o("logoUrl")),f=o("title"),h=o("scheme");s&&(n.primary=s),d&&(n.font=d),p&&(n.logoUrl=p),f&&(n.title=f),(h==="light"||h==="dark"||h==="auto")&&(n.scheme=h);const m=o("launcher");(m==="icon"||m==="label")&&(n.launcher=m);const v=o("launcherLabel");v&&(n.launcherLabel=v);const b=o("launcherShape");(b==="circle"||b==="rounded"||b==="square")&&(n.launcherShape=b),(typeof r.radius=="number"||typeof r.radius=="string"&&r.radius)&&(n.radius=r.radius);for(const S of["background","foreground","bubble","border"]){const z=o(S);z&&(n[S]=z)}const j=S=>{const z=r[S],E=typeof z=="number"?z:typeof z=="string"&&z?Number(z):NaN;return Number.isFinite(E)?E:void 0};for(const S of["windowWidth","windowHeight","offsetX","offsetY"]){const z=j(S);z!==void 0&&(n[S]=z)}const k=o("position");return(k==="bottom-right"||k==="bottom-left")&&(n.position=k),n},Tp=r=>{throw r instanceof Ge||r instanceof Error&&r.name==="AbortError"?r:new Ge(0,"network",null)},D0=({apiUrl:r,siteKey:n,visitorId:o,rememberVisitor:s,fetch:d})=>{let p=o;const f=M0(r),h=encodeURIComponent,m={baseUrl:nl(f),headers:()=>({"X-Visitor-Id":p,...n?{"X-Widget-Key":n}:{}}),credentials:"omit",...d?{fetch:d}:{}},v=async(k,S={})=>{const z=await Lo(m,k,S).catch(Tp);if(!z.ok)throw await Gs(z);return z},b=async(k,S)=>(await v(k,S)).json(),j=(k,S)=>({method:k,headers:{"Content-Type":"application/json"},body:JSON.stringify(S)});return{transport:m,apiUrl:f,config:async()=>P0(await b("/config")),health:()=>b("/modes/health"),threads:()=>b("/threads?limit=50"),thread:k=>b(`/threads/${h(k)}`),setLeaf:async(k,S)=>{await v(`/threads/${h(k)}`,j("PATCH",{current_leaf_id:S}))},deleteThread:async k=>{await v(`/threads/${h(k)}`,{method:"DELETE"})},rate:async(k,S)=>{await v(`/messages/${h(k)}/rating`,j("POST",{rating:S}))},feedback:async(k,S,z)=>{await v(`/messages/${h(k)}/feedback`,j("POST",z?{feedback:S,reason:z}:{feedback:S}))},stop:k=>N0(m,h(k)).catch(Tp),createReport:(k,S)=>b(`/messages/${h(k)}/report`,j("POST",{language:S})),reportStatus:k=>al.test(k)?b(`/report-jobs/${k}`):Promise.reject(new Ge(0,"bad_job_id",null)),request:k=>v(k),attachment:async k=>{const S=Do(k,f);if(!S)throw new Ge(0,"not_attachment",null);const z=S.slice(m.baseUrl.length),E=await(await v(z)).blob();return URL.createObjectURL(E)},adoptVisitor:k=>!k||!Dp.test(k)||k===p?!1:(p=k,s?.(k),!0)}},il=["kk","ru","en"],T0=r=>il.includes(r),Ip=r=>{const n=[r,typeof document<"u"?document.documentElement.lang:void 0,typeof navigator<"u"?navigator.language:void 0];for(const o of n){const s=o?.toLowerCase().split("-")[0];if(T0(s))return s}return"ru"},Ap={title:"AI-Dana",open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0447\u0430\u0442",unreadAnswers:"\u043D\u043E\u0432\u044B\u0445 \u043E\u0442\u0432\u0435\u0442\u043E\u0432: {count}",ask:"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",history:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F",closeHistory:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",newChat:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",untitled:"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442",historyEmpty:"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0447\u0430\u0442\u043E\u0432",historyError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0441\u0442\u043E\u0440\u0438\u044E",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteConfirm:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442?",deleteYes:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",deleteNo:"\u041E\u0442\u043C\u0435\u043D\u0430",deleteError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0447\u0430\u0442",modeLabel:"\u0420\u0435\u0436\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u0430","health.idle":"\u0421\u0432\u043E\u0431\u043E\u0434\u0435\u043D","health.busy":"\u0417\u0430\u043D\u044F\u0442","health.unavailable":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",placeholder:"\u0417\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B",inputLabel:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",send:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",stop:"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C",attach:"\u041F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0444\u0430\u0439\u043B",attachOne:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B",attachHint:"\u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C \u043E\u0434\u0438\u043D \u0444\u0430\u0439\u043B: XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD \u0434\u043E {size} \u041C\u0411",disclaimer:"\u0418\u0418 \u043C\u043E\u0436\u0435\u0442 \u043E\u0448\u0438\u0431\u0430\u0442\u044C\u0441\u044F \u2014 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0432\u0430\u0436\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E",removeFile:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B",counter:"{count} / {max}",counterLimit:"\u0414\u043E\u0441\u0442\u0438\u0433\u043D\u0443\u0442 \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",counterOver:"\u041F\u0440\u0435\u0432\u044B\u0448\u0435\u043D \u043F\u0440\u0435\u0434\u0435\u043B \u0437\u043D\u0430\u043A\u043E\u0432",fileTooLarge:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u0431\u043E\u043B\u044C\u0448\u0435 {size} \u041C\u0411",fileType:"\u0424\u0430\u0439\u043B \xAB{name}\xBB \u043D\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442. \u041C\u043E\u0436\u043D\u043E \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C XLS, XLSX, CSV, TXT \u0438\u043B\u0438 MD",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439",greeting:"\u0427\u0435\u043C \u043C\u043E\u0433\u0443 \u043F\u043E\u043C\u043E\u0447\u044C?",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430\u2026",configError:"\u0427\u0430\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",overloaded:"\u0421\u0435\u0440\u0432\u0438\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",retry:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",dismiss:"\u0421\u043A\u0440\u044B\u0442\u044C",scrollDown:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u044C \u0432\u043D\u0438\u0437",settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438","settings.language":"\u042F\u0437\u044B\u043A","settings.theme":"\u0422\u0435\u043C\u0430","settings.themeLight":"\u0421\u0432\u0435\u0442\u043B\u0430\u044F","settings.themeDark":"\u0422\u0451\u043C\u043D\u0430\u044F","settings.themeAuto":"\u041A\u0430\u043A \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0435","settings.model":"\u041C\u043E\u0434\u0435\u043B\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","settings.modelHint":"\u0421 \u043D\u0435\u0451 \u043D\u0430\u0447\u0438\u043D\u0430\u0435\u0442\u0441\u044F \u043A\u0430\u0436\u0434\u044B\u0439 \u043D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","settings.shortcuts":"\u0413\u043E\u0440\u044F\u0447\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438","shortcut.search":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C","shortcut.newChat":"\u041D\u043E\u0432\u044B\u0439 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0438\u043B\u0438 \u0441\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C","shortcut.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043E\u043A\u043D\u043E",search:"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0447\u0430\u0442\u0430\u043C",searchEmpty:"\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",collapseSidebar:"\u0421\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expandSidebar:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043D\u0430 \u0432\u0441\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443",shrink:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",examples:"\u041F\u0440\u0438\u043C\u0435\u0440\u044B \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432","examples.whatCanDo":"\u0427\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0441\u0434\u0435\u043B\u0430\u0442\u044C","group.pinned":"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435","group.today":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F","group.yesterday":"\u0412\u0447\u0435\u0440\u0430","group.week":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 7 \u0434\u043D\u0435\u0439","group.earlier":"\u0420\u0430\u043D\u0435\u0435","errors.thread_busy":"AI-Dana \u0435\u0449\u0451 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0432 \u044D\u0442\u043E\u043C \u0447\u0430\u0442\u0435. \u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u0442\u0432\u0435\u0442\u0430 \u0438\u043B\u0438 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0435\u0433\u043E.","errors.mode_overloaded":"AI-Dana \u0441\u0435\u0439\u0447\u0430\u0441 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0447\u0443\u0442\u044C \u043F\u043E\u0437\u0436\u0435","errors.daily_limit":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","errors.rate_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u0434\u0440\u044F\u0434. \u041F\u043E\u0434\u043E\u0436\u0434\u0438\u0442\u0435 \u043C\u0438\u043D\u0443\u0442\u0443.","errors.ip_limit":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u0441\u0435\u0433\u043E\u0434\u043D\u044F. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0432\u0442\u0440\u0430.","errors.concurrency_limit":"\u0414\u043E\u0436\u0434\u0438\u0442\u0435\u0441\u044C \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043E\u0442\u0432\u0435\u0442\u0430","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0439","errors.file_not_allowed":"\u042D\u0442\u043E\u0442 \u0444\u0430\u0439\u043B \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u0438\u043A\u0440\u0435\u043F\u0438\u0442\u044C. \u041F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 XLS, XLSX, CSV, TXT \u0438 MD","errors.invalid_query":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u0443\u0441\u0442\u043E\u0435 \u0438\u043B\u0438 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u043E\u0435","errors.invalid_parent":"\u042D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435\u043B\u044C\u0437\u044F \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C","errors.mode_not_found":"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0440\u0435\u0436\u0438\u043C.","errors.thread_not_found":"\u0427\u0430\u0442 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","errors.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","errors.code":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442 (\u043A\u043E\u0434 {code}).","errors.generic":"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","errors.network":"\u041D\u0435\u0442 \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435.","errors.render":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u044D\u0442\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435.","agent.thinking":"\u0414\u0443\u043C\u0430\u044E\u2026","agent.done":"\u0413\u043E\u0442\u043E\u0432\u043E","agent.stopped":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E","agent.stopping":"\u041E\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u044E\u2026","agent.interrupted":"\u041E\u0442\u0432\u0435\u0442 \u043F\u0440\u0435\u0440\u0432\u0430\u043D","agent.answerStopped":"\u041E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D. \u0417\u0430\u0434\u0430\u0439\u0442\u0435 \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E, \u0435\u0441\u043B\u0438 \u043D\u0443\u0436\u043D\u043E","agent.seconds":"{value} \u0441","agent.attempt":"\u043F\u043E\u043F\u044B\u0442\u043A\u0430 {count}","agent.showSteps":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0448\u0430\u0433\u0438","agent.hideSteps":"\u0421\u043A\u0440\u044B\u0442\u044C \u0448\u0430\u0433\u0438","steps.router":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.context_builder":"\u0418\u0449\u0443 \u043D\u0443\u0436\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435","steps.sql_architect":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u0440\u0430\u0441\u0447\u0451\u0442","steps.executor":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.responder":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.rag":"\u0418\u0449\u0443 \u0432 \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430\u0445","steps.sql":"\u0418\u0449\u0443 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0445 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0430\u0445","steps.document":"\u0427\u0438\u0442\u0430\u044E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","steps.understand":"\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.search_law":"\u0418\u0449\u0443 \u0432 \u0437\u0430\u043A\u043E\u043D\u0430\u0445","steps.run_sql":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","steps.run_query":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.data":"\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0434\u0430\u043D\u043D\u044B\u0435","steps.lookup_taxpayer":"\u0418\u0449\u0443 \u043D\u0430\u043B\u043E\u0433\u043E\u043F\u043B\u0430\u0442\u0435\u043B\u044C\u0449\u0438\u043A\u0430","steps.find_taxpayer":"\u0418\u0449\u0443 \u043A\u043E\u043C\u043F\u0430\u043D\u0438\u044E \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044E","steps.ask_clarification":"\u0423\u0442\u043E\u0447\u043D\u044F\u044E \u0432\u043E\u043F\u0440\u043E\u0441","steps.answer":"\u0413\u043E\u0442\u043E\u0432\u043B\u044E \u043E\u0442\u0432\u0435\u0442","steps.think":"\u0410\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u043E\u0435","steps.file":"\u0427\u0438\u0442\u0430\u044E \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","waiting.router.1":"\u0412\u044B\u0431\u0438\u0440\u0430\u044E, \u0433\u0434\u0435 \u0438\u0441\u043A\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442\u2026","waiting.router.2":"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E \u0432\u043E\u043F\u0440\u043E\u0441 \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u0438 \u043D\u043E\u0440\u043C\u0430\u043C\u0438\u2026","waiting.responder.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u0446\u0438\u0444\u0440\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438\u2026","waiting.responder.2":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u044E \u0441\u0441\u044B\u043B\u043A\u0438 \u043D\u0430 \u043D\u043E\u0440\u043C\u044B\u2026","waiting.responder.3":"\u041F\u0440\u0438\u0432\u043E\u0436\u0443 \u043E\u0442\u0432\u0435\u0442 \u0432 \u043F\u043E\u0440\u044F\u0434\u043E\u043A\u2026","waiting.law.1":"\u0427\u0438\u0442\u0430\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u044B\u0435 \u0441\u0442\u0430\u0442\u044C\u0438\u2026","waiting.law.2":"\u0421\u0432\u0435\u0440\u044F\u044E \u0440\u0435\u0434\u0430\u043A\u0446\u0438\u0438 \u043D\u043E\u0440\u043C\u2026","waiting.data.1":"\u0421\u0447\u0438\u0442\u0430\u044E \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438\u2026","waiting.data.2":"\u0421\u0432\u0435\u0440\u044F\u044E \u0438\u0442\u043E\u0433\u0438\u2026","waiting.executor.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u0438\u0442\u043E\u0433\u0438\u2026","waiting.executor.2":"\u041F\u0440\u0438\u0432\u043E\u0436\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u0443 \u0432 \u043F\u043E\u0440\u044F\u0434\u043E\u043A\u2026","waiting.taxpayer.1":"\u0421\u043E\u0431\u0438\u0440\u0430\u044E \u043A\u0430\u0440\u0442\u043E\u0447\u043A\u0443\u2026","waiting.taxpayer.2":"\u0421\u043C\u043E\u0442\u0440\u044E \u043F\u043E\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u044F \u043F\u043E \u0433\u043E\u0434\u0430\u043C\u2026","waiting.findCompany.1":"\u0421\u0432\u0435\u0440\u044F\u044E \u043F\u043E\u0445\u043E\u0436\u0438\u0435 \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u2026","waiting.findCompany.2":"\u0412\u044B\u0431\u0438\u0440\u0430\u044E \u0441\u0430\u043C\u043E\u0435 \u0442\u043E\u0447\u043D\u043E\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0435\u2026","waiting.think.1":"\u0421\u043E\u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E \u043D\u0430\u0439\u0434\u0435\u043D\u043D\u043E\u0435 \u0441 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u043C\u2026","waiting.think.2":"\u0420\u0435\u0448\u0430\u044E, \u0447\u0442\u043E \u043F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0435\u0449\u0451\u2026","waiting.unknown.1":"\u0415\u0449\u0451 \u043D\u0435\u043C\u043D\u043E\u0433\u043E\u2026","waiting.unknown.2":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u044E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u2026","steps.unknown":"\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u043D\u0430\u0434 \u043E\u0442\u0432\u0435\u0442\u043E\u043C",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copied:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C",regenerate:"\u041E\u0442\u0432\u0435\u0442\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",edit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",editLabel:"\u0422\u0435\u043A\u0441\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",actionsLabel:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C",rate:"\u041E\u0446\u0435\u043D\u0438\u0442\u044C \u043D\u0430 {count} \u0438\u0437 3",ratingError:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043E\u0446\u0435\u043D\u043A\u0443",feedbackOpen:"\u041E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackEdit:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043E\u0442\u0437\u044B\u0432",feedbackLabel:"\u041E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u0442\u0432\u0435\u0442\u0435",feedbackPlaceholder:"\u0412\u0430\u0448 \u043E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u0442\u0432\u0435\u0442\u0435",save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C","branch.label":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B","branch.prev":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.next":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442","branch.error":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u0430\u0440\u0438\u0430\u043D\u0442","limit.remaining":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C {count} \u0438\u0437 {limit} \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439","limit.exhausted":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043D\u0430 \u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D","limit.until":"\u041B\u0438\u043C\u0438\u0442 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D. \u041D\u043E\u0432\u044B\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u2014 \u043F\u043E\u0441\u043B\u0435 {time}.","blocks.data":"\u0414\u0430\u043D\u043D\u044B\u0435","blocks.hideData":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435","blocks.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","blocks.passport":"\u0427\u0442\u043E \u043F\u043E\u0441\u0447\u0438\u0442\u0430\u043D\u043E","blocks.indicator":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","blocks.territory":"\u0422\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","blocks.period":"\u041F\u0435\u0440\u0438\u043E\u0434","blocks.breakdown":"\u0420\u0430\u0437\u0440\u0435\u0437","blocks.breakdown.sex":"\u043F\u043E \u043F\u043E\u043B\u0443","blocks.breakdown.age":"\u043F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0443","blocks.breakdown.urban_rural":"\u0433\u043E\u0440\u043E\u0434 \u0438 \u0441\u0435\u043B\u043E","blocks.breakdown.activity":"\u043F\u043E \u0432\u0438\u0434\u0430\u043C \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438","blocks.breakdown.item":"\u043F\u043E \u0442\u043E\u0432\u0430\u0440\u0430\u043C","blocks.substituted":"\u043F\u043E\u0434\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430","blocks.alternatives":"\u041F\u043E\u0445\u043E\u0436\u0438\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.table":"\u0422\u0430\u0431\u043B\u0438\u0446\u0430 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.tableSearch":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0442\u0430\u0431\u043B\u0438\u0446\u0435\u2026","blocks.tableEmpty":"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445","blocks.page":"{a} \u0438\u0437 {b}","blocks.prevPage":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.nextPage":"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430","blocks.truncated":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u043F\u0435\u0440\u0432\u044B\u0435 {n} \u0441\u0442\u0440\u043E\u043A \u2014 \u043F\u043E\u043B\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0432 Excel","blocks.catalogMore":"\u2026\u0438 \u0435\u0449\u0451 {count} \u0432 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0435","blocks.catalogExamples":"\u041C\u043E\u0436\u043D\u043E \u0441\u043F\u0440\u043E\u0441\u0438\u0442\u044C","blocks.options":"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B \u043E\u0442\u0432\u0435\u0442\u0430","blocks.default":"\u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E","blocks.freeTextHint":"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0438\u043B\u0438 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043E\u0439 \u0432 \u043F\u043E\u043B\u0435 \u043D\u0438\u0436\u0435","blocks.findOption":"\u041D\u0430\u0439\u0442\u0438 \u0432 \u0441\u043F\u0438\u0441\u043A\u0435\u2026","blocks.chosen":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {label}","blocks.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C","blocks.cancelPlan":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C","blocks.expired":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u043B\u043E","blocks.askAgain":"\u0417\u0430\u0434\u0430\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441 \u0437\u0430\u043D\u043E\u0432\u043E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","blocks.hideDashboard":"\u0421\u043A\u0440\u044B\u0442\u044C \u0434\u0430\u0448\u0431\u043E\u0440\u0434","chart.kinds":"\u0412\u0438\u0434 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u044B","chart.kind.bar":"\u041F\u043E\u043B\u043E\u0441\u044B","chart.kind.column":"\u0421\u0442\u043E\u043B\u0431\u0446\u044B","chart.kind.pie":"\u041A\u0440\u0443\u0433\u043E\u0432\u0430\u044F","chart.kind.line":"\u041B\u0438\u043D\u0438\u0438","chart.kind.area":"\u041E\u0431\u043B\u0430\u0441\u0442\u0438","chart.national":"\u0420\u041A {value}","chart.top":"\u0422\u043E\u043F-{n} \u0438\u0437 {total} \u2014 \u0432\u0441\u0451 \u0432 \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0435","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u044B","files.report":"\u0413\u043E\u0442\u043E\u0432\u044B\u0439 \u043E\u0442\u0447\u0451\u0442","files.document":"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442","files.presentation":"\u041F\u0440\u0435\u0437\u0435\u043D\u0442\u0430\u0446\u0438\u044F","files.excel":"\u0414\u0430\u043D\u043D\u044B\u0435 Excel","files.csv":"\u0414\u0430\u043D\u043D\u044B\u0435 CSV","files.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B","report.create":"\u0421\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0442\u0447\u0451\u0442","report.pending":"\u0424\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430 \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u044E\u0442\u0441\u044F\u2026","report.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u0444\u043E\u0440\u043C\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B\u044B \u043E\u0442\u0447\u0451\u0442\u0430","report.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","report.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u043E\u0432 \u0438\u0441\u0442\u0451\u043A","dashboard.eyebrow":"\u0410\u043D\u0430\u043B\u0438\u0442\u0438\u043A\u0430","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.sections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0430","dashboard.regions":"\u0440\u0435\u0433\u0438\u043E\u043D\u043E\u0432: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u0439: {n}","dashboard.openSource":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0435","dashboard.methodology":"\u041C\u0435\u0442\u043E\u0434\u043E\u043B\u043E\u0433\u0438\u044F","dashboard.fullscreen":"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C","dashboard.close":"\u0417\u0430\u043A\u0440\u044B\u0442\u044C","dashboard.chatTab":"\u0427\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.view":"\u0427\u0430\u0442 \u0438\u043B\u0438 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u0420\u0435\u0433\u0438\u043E\u043D","dashboard.allRegions":"\u0412\u0441\u0435 \u0440\u0435\u0433\u0438\u043E\u043D\u044B","dashboard.period":"\u041F\u0435\u0440\u0438\u043E\u0434","dashboard.mode.label":"\u0420\u0435\u0436\u0438\u043C","dashboard.mode.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.mode.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435","dashboard.mode.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.base.label":"\u0411\u0430\u0437\u0430 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F","dashboard.base.median":"\u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.base.national":"\u043E\u0442 \u0420\u041A","dashboard.noPrevious":"\u041D\u0435\u0442 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.noNational":"\u041D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u043F\u043E \u0441\u0442\u0440\u0430\u043D\u0435 \u0437\u0430 \u044D\u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","dashboard.fewRegions":"\u041D\u0443\u0436\u043D\u043E \u0445\u043E\u0442\u044F \u0431\u044B \u0434\u0432\u0430 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F","dashboard.ranking":"\u0420\u0435\u0439\u0442\u0438\u043D\u0433","dashboard.trend":"\u0414\u0438\u043D\u0430\u043C\u0438\u043A\u0430","dashboard.findings":"\u0412\u044B\u0432\u043E\u0434\u044B","dashboard.data":"\u0414\u0430\u043D\u043D\u044B\u0435","dashboard.kpis":"\u041A\u043B\u044E\u0447\u0435\u0432\u044B\u0435 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","dashboard.table.rank":"\u2116","dashboard.table.position":"\u041F\u043E\u0437\u0438\u0446\u0438\u044F","dashboard.table.value":"\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435, {unit}","dashboard.table.share":"\u0414\u043E\u043B\u044F, %","dashboard.table.deviation":"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.table.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435, {unit}","dashboard.source":"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","dashboard.points":"\u043F.\u043F.","dashboard.kpi.national":"\u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","dashboard.kpi.max":"\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C","dashboard.kpi.min":"\u041C\u0438\u043D\u0438\u043C\u0443\u043C","dashboard.kpi.median":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430 \u043F\u043E \u0440\u0435\u0433\u0438\u043E\u043D\u0430\u043C","dashboard.kpi.spread":"\u0420\u0430\u0437\u043C\u0430\u0445","dashboard.kpi.gap":"\u0420\u0430\u0437\u0440\u044B\u0432","dashboard.kpi.last":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435","dashboard.kpi.first":"\u041D\u0430\u0447\u0430\u043B\u043E \u043F\u0435\u0440\u0438\u043E\u0434\u0430","dashboard.kpi.change":"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435","dashboard.kpi.place":"\u041C\u0435\u0441\u0442\u043E","dashboard.kpi.placeOf":"{n} \u0438\u0437 {m}","dashboard.kpi.deviation":"\u041E\u0442\u043A\u043B. \u043E\u0442 \u043C\u0435\u0434\u0438\u0430\u043D\u044B","dashboard.kpi.previous":"\u041A \u043F\u0440\u043E\u0448\u043B\u043E\u043C\u0443 \u043F\u0435\u0440\u0438\u043E\u0434\u0443","steps.counter":"{done} \u0438\u0437 {total}","feedback.reason.wrong_number":"\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0446\u0438\u0444\u0440\u0430","feedback.reason.wrong_indicator":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u044C","feedback.reason.wrong_territory":"\u041D\u0435 \u0442\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u044F","feedback.reason.wrong_period":"\u041D\u0435 \u0442\u043E\u0442 \u043F\u0435\u0440\u0438\u043E\u0434","feedback.reason.not_answered":"\u041D\u0435\u0442 \u043E\u0442\u0432\u0435\u0442\u0430 \u043D\u0430 \u0432\u043E\u043F\u0440\u043E\u0441","feedback.reason.language":"\u042F\u0437\u044B\u043A \u043E\u0442\u0432\u0435\u0442\u0430","feedback.reason.slow":"\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043E\u043B\u0433\u043E","feedback.reason.other":"\u0414\u0440\u0443\u0433\u043E\u0435","intro.title":"\u041F\u0435\u0440\u0435\u0434 \u043D\u0430\u0447\u0430\u043B\u043E\u043C","intro.continue":"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C",source:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A: {name}","shell.siteBlocked":"\u0427\u0430\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u043D\u0430 \u044D\u0442\u043E\u043C \u0441\u0430\u0439\u0442\u0435","shell.siteBlockedHint":"\u0412\u043B\u0430\u0434\u0435\u043B\u0435\u0446 \u0441\u0430\u0439\u0442\u0430 \u0435\u0449\u0451 \u043D\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u043B AI-Dana \u0438\u043B\u0438 \u0434\u043E\u0441\u0442\u0443\u043F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D.","modes.none":"\u0420\u0435\u0436\u0438\u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.","attachment.sending":"\u043E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u0442\u0441\u044F","agent.steps":"\u0428\u0430\u0433\u0438","agent.unfinished":"\u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D",rateGroup:"\u041E\u0446\u0435\u043D\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0420\u0430\u0437\u0434\u0435\u043B\u044B","blocks.catalogIndicators":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u0438","blocks.catalogSendHint":"\u0412\u043E\u043F\u0440\u043E\u0441 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u0441\u044F \u0441\u0440\u0430\u0437\u0443 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0431\u043E\u0440\u0430","blocks.clarification":"\u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435","files.expired":"\u0421\u0440\u043E\u043A \u0444\u0430\u0439\u043B\u0430 \u0438\u0441\u0442\u0451\u043A","files.notFound":"\u0424\u0430\u0439\u043B \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D","files.unavailable":"\u0424\u0430\u0439\u043B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D"},I0={title:"AI-Dana",open:"\u0427\u0430\u0442\u0442\u044B \u0430\u0448\u0443",unreadAnswers:"\u0436\u0430\u04A3\u0430 \u0436\u0430\u0443\u0430\u043F\u0442\u0430\u0440: {count}",ask:"\u0421\u04B1\u0440\u0430\u049B \u049B\u043E\u044E",close:"\u0416\u0430\u0431\u0443",history:"\u0422\u0430\u0440\u0438\u0445",closeHistory:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443",newChat:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",untitled:"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442",historyEmpty:"\u04D8\u0437\u0456\u0440\u0433\u0435 \u0447\u0430\u0442\u0442\u0430\u0440 \u0436\u043E\u049B",historyError:"\u0422\u0430\u0440\u0438\u0445\u0442\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",delete:"\u0416\u043E\u044E",deleteConfirm:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043A\u0435\u0440\u0435\u043A \u043F\u0435?",deleteYes:"\u0416\u043E\u044E",deleteNo:"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",deleteError:"\u0427\u0430\u0442\u0442\u044B \u0436\u043E\u044E \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",modeLabel:"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0456","health.idle":"\u0411\u043E\u0441","health.busy":"\u0411\u043E\u0441 \u0435\u043C\u0435\u0441","health.unavailable":"\u049A\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",placeholder:"\u0421\u04B1\u0440\u0430\u049B\u0442\u0430\u0440\u044B\u04A3\u044B\u0437\u0434\u044B \u049B\u043E\u0439\u044B\u04A3\u044B\u0437",inputLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430",send:"\u0416\u0456\u0431\u0435\u0440\u0443",stop:"\u0422\u043E\u049B\u0442\u0430\u0442\u0443",attach:"\u0424\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443",attachOne:"\u0422\u0435\u043A \u0431\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",attachHint:"\u0411\u0456\u0440 \u0444\u0430\u0439\u043B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B: XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD, {size} \u041C\u0411-\u049B\u0430 \u0434\u0435\u0439\u0456\u043D",disclaimer:"\u0416\u0418 \u049B\u0430\u0442\u0435\u043B\u0435\u0441\u0443\u0456 \u043C\u04AF\u043C\u043A\u0456\u043D \u2014 \u043C\u0430\u04A3\u044B\u0437\u0434\u044B \u0430\u049B\u043F\u0430\u0440\u0430\u0442\u0442\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437",removeFile:"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u043E\u044E",counter:"{count} / {max}",counterLimit:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435 \u0436\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",counterOver:"\u0422\u0430\u04A3\u0431\u0430 \u0448\u0435\u0433\u0456\u043D\u0435\u043D \u0430\u0441\u044B\u043F \u043A\u0435\u0442\u0442\u0456\u04A3\u0456\u0437",fileTooLarge:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B {size} \u041C\u0411-\u0442\u0430\u043D \u04AF\u043B\u043A\u0435\u043D",fileType:"\xAB{name}\xBB \u0444\u0430\u0439\u043B\u044B \u0436\u0430\u0440\u0430\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u043D\u0435\u043C\u0435\u0441\u0435 MD \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B",modeUnavailable:"\u0420\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437, \u0431\u0430\u0441\u049B\u0430\u0441\u044B\u043D \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437",greeting:"\u049A\u0430\u043B\u0430\u0439 \u043A\u04E9\u043C\u0435\u043A\u0442\u0435\u0441\u0435 \u0430\u043B\u0430\u043C\u044B\u043D?",loading:"\u0416\u04AF\u043A\u0442\u0435\u043B\u0443\u0434\u0435\u2026",configError:"\u0427\u0430\u0442 \u0443\u0430\u049B\u044B\u0442\u0448\u0430 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437",overloaded:"\u049A\u044B\u0437\u043C\u0435\u0442 \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.",retry:"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443",dismiss:"\u0416\u0430\u0441\u044B\u0440\u0443",scrollDown:"\u0422\u04E9\u043C\u0435\u043D\u0433\u0435 \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u0443",settings:"\u0411\u0430\u043F\u0442\u0430\u0443\u043B\u0430\u0440","settings.language":"\u0422\u0456\u043B","settings.theme":"\u0422\u0430\u049B\u044B\u0440\u044B\u043F","settings.themeLight":"\u0410\u0448\u044B\u049B","settings.themeDark":"\u049A\u0430\u0440\u0430\u04A3\u0493\u044B","settings.themeAuto":"\u0416\u04AF\u0439\u0435\u0434\u0435\u0433\u0456\u0434\u0435\u0439","settings.model":"\u04D8\u0434\u0435\u043F\u043A\u0456 \u043C\u043E\u0434\u0435\u043B\u044C","settings.modelHint":"\u04D8\u0440 \u0436\u0430\u04A3\u0430 \u0447\u0430\u0442 \u043E\u0441\u044B\u0434\u0430\u043D \u0431\u0430\u0441\u0442\u0430\u043B\u0430\u0434\u044B","settings.shortcuts":"\u0416\u044B\u043B\u0434\u0430\u043C \u043F\u0435\u0440\u043D\u0435\u043B\u0435\u0440","shortcut.search":"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443","shortcut.newChat":"\u0416\u0430\u04A3\u0430 \u0447\u0430\u0442","shortcut.sidebar":"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443 \u043D\u0435 \u0436\u0430\u0441\u044B\u0440\u0443","shortcut.close":"\u0422\u0435\u0440\u0435\u0437\u0435\u043D\u0456 \u0436\u0430\u0431\u0443",search:"\u0427\u0430\u0442\u0442\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443",searchEmpty:"\u0415\u0448\u0442\u0435\u04A3\u0435 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B",collapseSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443",expandSidebar:"\u041F\u0430\u043D\u0435\u043B\u044C\u0434\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u0443",expand:"\u0411\u04AF\u043A\u0456\u043B \u0431\u0435\u0442\u043A\u0435 \u0436\u0430\u044E",shrink:"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443",examples:"\u0421\u04B1\u0440\u0430\u0443 \u043C\u044B\u0441\u0430\u043B\u0434\u0430\u0440\u044B","examples.whatCanDo":"\u041D\u0435 \u0456\u0441\u0442\u0435\u0439 \u0430\u043B\u0430\u0441\u044B\u0437","group.pinned":"\u0411\u0435\u043A\u0456\u0442\u0456\u043B\u0433\u0435\u043D\u0434\u0435\u0440","group.today":"\u0411\u04AF\u0433\u0456\u043D","group.yesterday":"\u041A\u0435\u0448\u0435","group.week":"\u0421\u043E\u04A3\u0493\u044B 7 \u043A\u04AF\u043D","group.earlier":"\u0411\u04B1\u0440\u044B\u043D\u044B\u0440\u0430\u049B","errors.thread_busy":"AI-Dana \u0431\u04B1\u043B \u0447\u0430\u0442\u0442\u0430 \u04D9\u043B\u0456 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440. \u0416\u0430\u0443\u0430\u043F\u0442\u044B \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u04A3\u044B\u0437.","errors.mode_overloaded":"AI-Dana \u049B\u0430\u0437\u0456\u0440 \u0448\u0430\u043C\u0430\u0434\u0430\u043D \u0442\u044B\u0441 \u0436\u04AF\u043A\u0442\u0435\u043B\u0433\u0435\u043D, \u0441\u04D9\u043B \u043A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437","errors.daily_limit":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","errors.rate_limit":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u0436\u0438\u0456 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0411\u0456\u0440 \u043C\u0438\u043D\u0443\u0442 \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437.","errors.ip_limit":"\u0411\u04AF\u0433\u0456\u043D \u0441\u0456\u0437\u0434\u0456\u04A3 \u0436\u0435\u043B\u0456\u04A3\u0456\u0437\u0434\u0435\u043D \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440 \u0442\u044B\u043C \u043A\u04E9\u043F \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0434\u0456. \u0415\u0440\u0442\u0435\u04A3 \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","errors.concurrency_limit":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0436\u0430\u0443\u0430\u043F\u0442\u044B\u04A3 \u0430\u044F\u049B\u0442\u0430\u043B\u0443\u044B\u043D \u043A\u04AF\u0442\u0456\u04A3\u0456\u0437","errors.file_too_large":"\u0424\u0430\u0439\u043B \u0442\u044B\u043C \u04AF\u043B\u043A\u0435\u043D","errors.file_not_allowed":"\u0411\u04B1\u043B \u0444\u0430\u0439\u043B\u0434\u044B \u0442\u0456\u0440\u043A\u0435\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B. XLS, XLSX, CSV, TXT \u0436\u04D9\u043D\u0435 MD \u0436\u0430\u0440\u0430\u0439\u0434\u044B","errors.invalid_query":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0431\u043E\u0441 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u044B\u043C \u04B1\u0437\u044B\u043D","errors.invalid_parent":"\u0411\u04B1\u043B \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u0435\u043D\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443\u0433\u0435 \u0431\u043E\u043B\u043C\u0430\u0439\u0434\u044B","errors.mode_not_found":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0440\u0435\u0436\u0438\u043C \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u0411\u0430\u0441\u049B\u0430 \u0440\u0435\u0436\u0438\u043C\u0434\u0456 \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437.","errors.thread_not_found":"\u0427\u0430\u0442 \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","errors.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","errors.code":"\u0416\u0430\u0443\u0430\u043F \u0430\u043B\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B (\u043A\u043E\u0434 {code}).","errors.generic":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u0436\u0456\u0431\u0435\u0440\u0443 \u043A\u0435\u0437\u0456\u043D\u0434\u0435 \u049B\u0430\u0442\u0435 \u043E\u0440\u044B\u043D \u0430\u043B\u0434\u044B.","errors.network":"\u0421\u0435\u0440\u0432\u0435\u0440\u043C\u0435\u043D \u0431\u0430\u0439\u043B\u0430\u043D\u044B\u0441 \u0436\u043E\u049B. \u049A\u043E\u0441\u044B\u043B\u044B\u043C\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u04A3\u0456\u0437.","errors.render":"\u0411\u04B1\u043B \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u043A\u04E9\u0440\u0441\u0435\u0442\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B.","agent.thinking":"\u041E\u0439\u043B\u0430\u043D\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.done":"\u0414\u0430\u0439\u044B\u043D","agent.stopped":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B","agent.stopping":"\u0422\u043E\u049B\u0442\u0430\u0442\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","agent.interrupted":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0437\u0456\u043B\u0434\u0456","agent.answerStopped":"\u0416\u0430\u0443\u0430\u043F \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0434\u044B. \u049A\u0430\u0436\u0435\u0442 \u0431\u043E\u043B\u0441\u0430, \u0441\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u0439\u044B\u04A3\u044B\u0437","agent.seconds":"{value} \u0441","agent.attempt":"{count}-\u04D9\u0440\u0435\u043A\u0435\u0442","agent.showSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u043A\u04E9\u0440\u0441\u0435\u0442\u0443","agent.hideSteps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440\u0434\u044B \u0436\u0430\u0441\u044B\u0440\u0443","steps.router":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.context_builder":"\u049A\u0430\u0436\u0435\u0442 \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql_architect":"\u0415\u0441\u0435\u043F\u0442\u0435\u0443\u0434\u0456 \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.executor":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.responder":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.rag":"\u0410\u043D\u044B\u049B\u0442\u0430\u043C\u0430\u043B\u044B\u049B \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0434\u0430\u0440\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.sql":"\u0410\u0448\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435\u0440\u0434\u0435\u043D \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.document":"\u049A\u04B1\u0436\u0430\u0442\u0442\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.understand":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.search_law":"\u0417\u0430\u04A3\u043D\u0430\u043C\u0430\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_sql":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.run_query":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0430\u043B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.lookup_taxpayer":"\u0421\u0430\u043B\u044B\u049B \u0442\u04E9\u043B\u0435\u0443\u0448\u0456\u043D\u0456 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.find_taxpayer":"\u041A\u043E\u043C\u043F\u0430\u043D\u0438\u044F\u043D\u044B \u0430\u0442\u0430\u0443\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u0456\u0437\u0434\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.ask_clarification":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u043D\u0430\u049B\u0442\u044B\u043B\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.answer":"\u0416\u0430\u0443\u0430\u043F \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.think":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D\u0434\u044B \u0442\u0430\u043B\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","steps.file":"\u049A\u04B1\u0436\u0430\u0442\u0442\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D","waiting.router.1":"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u049B\u0430\u0439\u0434\u0430\u043D \u0456\u0437\u0434\u0435\u0443 \u043A\u0435\u0440\u0435\u0433\u0456\u043D \u0442\u0430\u04A3\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.router.2":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u043C\u0435\u043D \u0436\u04D9\u043D\u0435 \u043D\u043E\u0440\u043C\u0430\u043B\u0430\u0440\u043C\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.1":"\u0421\u0430\u043D\u0434\u0430\u0440\u0434\u044B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u043C\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.2":"\u041D\u043E\u0440\u043C\u0430\u043B\u0430\u0440\u0493\u0430 \u0441\u0456\u043B\u0442\u0435\u043C\u0435\u043B\u0435\u0440\u0434\u0456 \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.responder.3":"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u0440\u0435\u0442\u043A\u0435 \u043A\u0435\u043B\u0442\u0456\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.law.1":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D \u0431\u0430\u043F\u0442\u0430\u0440\u0434\u044B \u043E\u049B\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.law.2":"\u041D\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0446\u0438\u044F\u043B\u0430\u0440\u044B\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.data.1":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440\u0434\u0456 \u0435\u0441\u0435\u043F\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.data.2":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.executor.1":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440\u0434\u044B \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.executor.2":"\u041A\u0435\u0441\u0442\u0435\u043D\u0456 \u0440\u0435\u0442\u043A\u0435 \u043A\u0435\u043B\u0442\u0456\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.taxpayer.1":"\u041A\u0430\u0440\u0442\u043E\u0447\u043A\u0430\u043D\u044B \u0436\u0438\u043D\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.taxpayer.2":"\u0416\u044B\u043B\u0434\u0430\u0440 \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u0442\u04AF\u0441\u0456\u043C\u0434\u0435\u0440\u0434\u0456 \u049B\u0430\u0440\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.findCompany.1":"\u04B0\u049B\u0441\u0430\u0441 \u0430\u0442\u0430\u0443\u043B\u0430\u0440\u0434\u044B \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.findCompany.2":"\u0415\u04A3 \u0434\u04D9\u043B \u0441\u04D9\u0439\u043A\u0435\u0441\u0442\u0456\u043A\u0442\u0456 \u0442\u0430\u04A3\u0434\u0430\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.think.1":"\u0422\u0430\u0431\u044B\u043B\u0493\u0430\u043D\u0434\u044B \u0441\u04B1\u0440\u0430\u049B\u043F\u0435\u043D \u0441\u0430\u043B\u044B\u0441\u0442\u044B\u0440\u044B\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.think.2":"\u0422\u0430\u0493\u044B \u043D\u0435 \u049B\u0430\u0440\u0430\u0443 \u043A\u0435\u0440\u0435\u0433\u0456\u043D \u0448\u0435\u0448\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","waiting.unknown.1":"\u0422\u0430\u0493\u044B \u0430\u0437 \u0493\u0430\u043D\u0430\u2026","waiting.unknown.2":"\u041D\u04D9\u0442\u0438\u0436\u0435\u043D\u0456 \u0442\u0435\u043A\u0441\u0435\u0440\u0456\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D\u2026","steps.unknown":"\u0416\u0430\u0443\u0430\u043F \u04AF\u0441\u0442\u0456\u043D\u0434\u0435 \u0436\u04B1\u043C\u044B\u0441 \u0456\u0441\u0442\u0435\u043F \u0436\u0430\u0442\u044B\u0440\u043C\u044B\u043D",copy:"\u041A\u04E9\u0448\u0456\u0440\u0443",copied:"\u041A\u04E9\u0448\u0456\u0440\u0456\u043B\u0434\u0456",download:"\u0416\u04AF\u043A\u0442\u0435\u0443",regenerate:"\u049A\u0430\u0439\u0442\u0430 \u0436\u0430\u0443\u0430\u043F \u0431\u0435\u0440\u0443",edit:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",editLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043C\u04D9\u0442\u0456\u043D\u0456",cancel:"\u0411\u043E\u043B\u0434\u044B\u0440\u043C\u0430\u0443",actionsLabel:"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u04D9\u0440\u0435\u043A\u0435\u0442\u0442\u0435\u0440\u0456",rate:"3-\u0442\u0435\u043D {count} \u0434\u0435\u043F \u0431\u0430\u0493\u0430\u043B\u0430\u0443",ratingError:"\u0411\u0430\u0493\u0430\u043D\u044B \u0441\u0430\u049B\u0442\u0430\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B",feedbackOpen:"\u041F\u0456\u043A\u0456\u0440 \u049B\u0430\u043B\u0434\u044B\u0440\u0443",feedbackEdit:"\u041F\u0456\u043A\u0456\u0440\u0434\u0456 \u04E9\u0437\u0433\u0435\u0440\u0442\u0443",feedbackLabel:"\u0416\u0430\u0443\u0430\u043F \u0442\u0443\u0440\u0430\u043B\u044B \u043F\u0456\u043A\u0456\u0440",feedbackPlaceholder:"\u0416\u0430\u0443\u0430\u043F \u0442\u0443\u0440\u0430\u043B\u044B \u043F\u0456\u043A\u0456\u0440\u0456\u04A3\u0456\u0437",save:"\u0421\u0430\u049B\u0442\u0430\u0443","branch.label":"\u041D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440","branch.prev":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043D\u04B1\u0441\u049B\u0430","branch.next":"\u041A\u0435\u043B\u0435\u0441\u0456 \u043D\u04B1\u0441\u049B\u0430","branch.error":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0430\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","limit.remaining":"\u0411\u04AF\u0433\u0456\u043D {limit} \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043D\u044B\u04A3 {count} \u049B\u0430\u043B\u0434\u044B","limit.exhausted":"\u0411\u04AF\u0433\u0456\u043D\u0433\u0456 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B","limit.until":"\u0425\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430 \u043B\u0438\u043C\u0438\u0442\u0456 \u0442\u0430\u0443\u0441\u044B\u043B\u0434\u044B. \u0416\u0430\u04A3\u0430 \u0445\u0430\u0431\u0430\u0440\u043B\u0430\u043C\u0430\u043B\u0430\u0440\u0434\u044B {time} \u043A\u0435\u0439\u0456\u043D \u0436\u0456\u0431\u0435\u0440\u0443\u0433\u0435 \u0431\u043E\u043B\u0430\u0434\u044B.","blocks.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","blocks.hideData":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0434\u0456 \u0436\u0430\u0441\u044B\u0440\u0443","blocks.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","blocks.passport":"\u041D\u0435 \u0435\u0441\u0435\u043F\u0442\u0435\u043B\u0434\u0456","blocks.indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448","blocks.territory":"\u0410\u0443\u043C\u0430\u049B","blocks.period":"\u041A\u0435\u0437\u0435\u04A3","blocks.breakdown":"\u049A\u0438\u043C\u0430","blocks.breakdown.sex":"\u0436\u044B\u043D\u044B\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.age":"\u0436\u0430\u0441\u044B \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.urban_rural":"\u049B\u0430\u043B\u0430 \u0436\u04D9\u043D\u0435 \u0430\u0443\u044B\u043B","blocks.breakdown.activity":"\u049B\u044B\u0437\u043C\u0435\u0442 \u0442\u04AF\u0440\u043B\u0435\u0440\u0456 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.breakdown.item":"\u0442\u0430\u0443\u0430\u0440\u043B\u0430\u0440 \u0431\u043E\u0439\u044B\u043D\u0448\u0430","blocks.substituted":"\u0430\u043B\u043C\u0430\u0441\u0442\u044B\u0440\u044B\u043B\u0434\u044B","blocks.alternatives":"\u04B0\u049B\u0441\u0430\u0441 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.table":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u043A\u0435\u0441\u0442\u0435\u0441\u0456","blocks.tableSearch":"\u041A\u0435\u0441\u0442\u0435\u0434\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.tableEmpty":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440 \u0436\u043E\u049B","blocks.page":"{b} \u0456\u0448\u0456\u043D\u0435\u043D {a}","blocks.prevPage":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u0431\u0435\u0442","blocks.nextPage":"\u041A\u0435\u043B\u0435\u0441\u0456 \u0431\u0435\u0442","blocks.truncated":"\u0410\u043B\u0493\u0430\u0448\u049B\u044B {n} \u0436\u043E\u043B \u043A\u04E9\u0440\u0441\u0435\u0442\u0456\u043B\u0434\u0456 \u2014 \u0442\u043E\u043B\u044B\u049B \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440 Excel-\u0434\u0435","blocks.catalogMore":"\u2026\u0436\u04D9\u043D\u0435 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0442\u0430 \u0442\u0430\u0493\u044B {count}","blocks.catalogExamples":"\u0421\u04B1\u0440\u0430\u0443\u0493\u0430 \u0431\u043E\u043B\u0430\u0434\u044B","blocks.options":"\u0416\u0430\u0443\u0430\u043F \u043D\u04B1\u0441\u049B\u0430\u043B\u0430\u0440\u044B","blocks.default":"\u04D9\u0434\u0435\u043F\u043A\u0456","blocks.freeTextHint":"\u041D\u04B1\u0441\u049B\u0430\u043D\u044B \u0442\u0430\u04A3\u0434\u0430\u04A3\u044B\u0437 \u043D\u0435\u043C\u0435\u0441\u0435 \u0442\u04E9\u043C\u0435\u043D\u0434\u0435\u0433\u0456 \u04E9\u0440\u0456\u0441\u043A\u0435 \u04E9\u0437\u0456\u04A3\u0456\u0437\u0434\u0456\u043A\u0456\u043D \u0436\u0430\u0437\u044B\u04A3\u044B\u0437","blocks.findOption":"\u0422\u0456\u0437\u0456\u043C\u043D\u0435\u043D \u0456\u0437\u0434\u0435\u0443\u2026","blocks.chosen":"\u0422\u0430\u04A3\u0434\u0430\u043B\u0434\u044B: {label}","blocks.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443","blocks.cancelPlan":"\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443","blocks.expired":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","blocks.askAgain":"\u0421\u04B1\u0440\u0430\u049B\u0442\u044B \u049B\u0430\u0439\u0442\u0430 \u049B\u043E\u044E","blocks.dashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0430\u0448\u0443","blocks.hideDashboard":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u044B \u0436\u0430\u0441\u044B\u0440\u0443","chart.kinds":"\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0442\u04AF\u0440\u0456","chart.kind.bar":"\u0416\u043E\u043B\u0430\u049B\u0442\u0430\u0440","chart.kind.column":"\u0411\u0430\u0493\u0430\u043D\u0434\u0430\u0440","chart.kind.pie":"\u0414\u04E9\u04A3\u0433\u0435\u043B\u0435\u043A","chart.kind.line":"\u0421\u044B\u0437\u044B\u049B\u0442\u0430\u0440","chart.kind.area":"\u0410\u0439\u043C\u0430\u049B\u0442\u0430\u0440","chart.national":"\u049A\u0420 {value}","chart.top":"\u04AE\u0437\u0434\u0456\u043A {n}, \u0431\u0430\u0440\u043B\u044B\u0493\u044B {total} \u2014 \u0442\u043E\u043B\u044B\u0493\u044B \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u0442\u0430","chart.label":"{title}, {period}","files.list":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440","files.report":"\u0414\u0430\u0439\u044B\u043D \u0435\u0441\u0435\u043F","files.document":"\u04E8\u04A3\u0434\u0435\u043B\u0435\u0442\u0456\u043D \u049B\u04B1\u0436\u0430\u0442","files.presentation":"\u0422\u0430\u043D\u044B\u0441\u0442\u044B\u0440\u044B\u043B\u044B\u043C","files.excel":"Excel \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.csv":"CSV \u0434\u0435\u0440\u0435\u043A\u0442\u0435\u0440\u0456","files.failed":"\u0424\u0430\u0439\u043B\u0434\u044B \u0436\u04AF\u043A\u0442\u0435\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.create":"\u0415\u0441\u0435\u043F \u049B\u04B1\u0440\u0443","report.pending":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B \u0434\u0430\u0439\u044B\u043D\u0434\u0430\u043B\u0443\u0434\u0430\u2026","report.failed":"\u0415\u0441\u0435\u043F \u0444\u0430\u0439\u043B\u0434\u0430\u0440\u044B\u043D \u049B\u04B1\u0440\u0443 \u043C\u04AF\u043C\u043A\u0456\u043D \u0431\u043E\u043B\u043C\u0430\u0434\u044B","report.retry":"\u049A\u0430\u0439\u0442\u0430\u043B\u0430\u0443","report.expired":"\u0424\u0430\u0439\u043B\u0434\u0430\u0440\u0434\u044B\u04A3 \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","dashboard.eyebrow":"\u0422\u0430\u043B\u0434\u0430\u0443","dashboard.label":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.sections":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0431\u04E9\u043B\u0456\u043C\u0434\u0435\u0440\u0456","dashboard.regions":"\u04E9\u04A3\u0456\u0440\u043B\u0435\u0440: {n}","dashboard.items":"\u043F\u043E\u0437\u0438\u0446\u0438\u044F\u043B\u0430\u0440: {n}","dashboard.openSource":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437\u0434\u0435 \u0430\u0448\u0443","dashboard.methodology":"\u04D8\u0434\u0456\u0441\u0442\u0435\u043C\u0435","dashboard.fullscreen":"\u0422\u043E\u043B\u044B\u049B \u044D\u043A\u0440\u0430\u043D","dashboard.collapse":"\u041A\u0456\u0448\u0456\u0440\u0435\u0439\u0442\u0443","dashboard.close":"\u0416\u0430\u0431\u0443","dashboard.chatTab":"\u0421\u04B1\u0445\u0431\u0430\u0442","dashboard.dashboardTab":"\u0414\u0430\u0448\u0431\u043E\u0440\u0434 \u0442\u0430\u049B\u0442\u0430\u0441\u044B","dashboard.view":"\u0421\u04B1\u0445\u0431\u0430\u0442 \u043D\u0435\u043C\u0435\u0441\u0435 \u0434\u0430\u0448\u0431\u043E\u0440\u0434","dashboard.region":"\u04E8\u04A3\u0456\u0440","dashboard.allRegions":"\u0411\u0430\u0440\u043B\u044B\u049B \u04E9\u04A3\u0456\u0440\u043B\u0435\u0440","dashboard.period":"\u041A\u0435\u0437\u0435\u04A3","dashboard.mode.label":"\u041A\u04E9\u0440\u0456\u043D\u0456\u0441","dashboard.mode.value":"\u041C\u04D9\u043D","dashboard.mode.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443","dashboard.mode.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.base.label":"\u0410\u0443\u044B\u0442\u049B\u0443 \u0431\u0430\u0437\u0430\u0441\u044B","dashboard.base.median":"\u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D","dashboard.base.national":"\u049A\u0420-\u0434\u0430\u043D","dashboard.noPrevious":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3 \u0436\u043E\u049B","dashboard.noNational":"\u0411\u04B1\u043B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435 \u0435\u043B \u0431\u043E\u0439\u044B\u043D\u0448\u0430 \u043C\u04D9\u043D \u0436\u043E\u049B","dashboard.fewRegions":"\u041A\u0435\u043C\u0456\u043D\u0434\u0435 \u0435\u043A\u0456 \u043C\u04D9\u043D \u049B\u0430\u0436\u0435\u0442","dashboard.ranking":"\u041E\u0440\u044B\u043D\u0434\u0430\u0440 \u0440\u0435\u0439\u0442\u0438\u043D\u0433\u0456","dashboard.trend":"\u0421\u0435\u0440\u043F\u0456\u043D","dashboard.findings":"\u049A\u043E\u0440\u044B\u0442\u044B\u043D\u0434\u044B\u043B\u0430\u0440","dashboard.data":"\u0414\u0435\u0440\u0435\u043A\u0442\u0435\u0440","dashboard.kpis":"\u041D\u0435\u0433\u0456\u0437\u0433\u0456 \u043A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","dashboard.table.rank":"\u2116","dashboard.table.position":"\u0410\u0442\u0430\u0443\u044B","dashboard.table.value":"\u041C\u04D9\u043D\u0456, {unit}","dashboard.table.share":"\u04AE\u043B\u0435\u0441\u0456, %","dashboard.table.deviation":"\u0410\u0443\u044B\u0442\u049B\u0443, {unit}","dashboard.table.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441, {unit}","dashboard.source":"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","dashboard.points":"\u043F.\u0442.","dashboard.kpi.national":"\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0420\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","dashboard.kpi.max":"\u0415\u04A3 \u0436\u043E\u0493\u0430\u0440\u044B","dashboard.kpi.min":"\u0415\u04A3 \u0442\u04E9\u043C\u0435\u043D","dashboard.kpi.median":"\u04E8\u04A3\u0456\u0440\u043B\u0435\u0440 \u043C\u0435\u0434\u0438\u0430\u043D\u0430\u0441\u044B","dashboard.kpi.spread":"\u049A\u04B1\u043B\u0430\u0448","dashboard.kpi.gap":"\u0410\u043B\u0448\u0430\u049B\u0442\u044B\u049B","dashboard.kpi.last":"\u0421\u043E\u04A3\u0493\u044B \u043C\u04D9\u043D","dashboard.kpi.first":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u044B","dashboard.kpi.change":"\u04E8\u0437\u0433\u0435\u0440\u0456\u0441","dashboard.kpi.place":"\u041E\u0440\u044B\u043D","dashboard.kpi.placeOf":"{m} \u0456\u0448\u0456\u043D\u0435\u043D {n}","dashboard.kpi.deviation":"\u041C\u0435\u0434\u0438\u0430\u043D\u0430\u0434\u0430\u043D \u0430\u0443\u044B\u0442\u049B\u0443","dashboard.kpi.previous":"\u0410\u043B\u0434\u044B\u04A3\u0493\u044B \u043A\u0435\u0437\u0435\u04A3\u0433\u0435","steps.counter":"{total} \u0456\u0448\u0456\u043D\u0435\u043D {done}","feedback.reason.wrong_number":"\u0421\u0430\u043D \u049B\u0430\u0442\u0435","feedback.reason.wrong_indicator":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448 \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_territory":"\u0410\u0443\u043C\u0430\u049B \u0431\u0430\u0441\u049B\u0430","feedback.reason.wrong_period":"\u041A\u0435\u0437\u0435\u04A3 \u0431\u0430\u0441\u049B\u0430","feedback.reason.not_answered":"\u0421\u04B1\u0440\u0430\u049B\u049B\u0430 \u0436\u0430\u0443\u0430\u043F \u0436\u043E\u049B","feedback.reason.language":"\u0416\u0430\u0443\u0430\u043F \u0442\u0456\u043B\u0456","feedback.reason.slow":"\u0422\u044B\u043C \u04B1\u0437\u0430\u049B","feedback.reason.other":"\u0411\u0430\u0441\u049B\u0430","intro.title":"\u0411\u0430\u0441\u0442\u0430\u043C\u0430\u0441 \u0431\u04B1\u0440\u044B\u043D","intro.continue":"\u0416\u0430\u043B\u0493\u0430\u0441\u0442\u044B\u0440\u0443",source:"\u0414\u0435\u0440\u0435\u043A\u043A\u04E9\u0437: {name}","shell.siteBlocked":"\u0411\u04B1\u043B \u0441\u0430\u0439\u0442\u0442\u0430 \u0447\u0430\u0442 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437","shell.siteBlockedHint":"\u0421\u0430\u0439\u0442 \u0438\u0435\u0441\u0456 AI-Dana-\u043D\u044B \u04D9\u043B\u0456 \u049B\u043E\u0441\u043F\u0430\u0493\u0430\u043D \u043D\u0435\u043C\u0435\u0441\u0435 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0434\u0456\u043B\u0456\u043A \u0442\u043E\u049B\u0442\u0430\u0442\u044B\u043B\u0493\u0430\u043D.","modes.none":"\u0416\u0430\u0443\u0430\u043F \u0440\u0435\u0436\u0438\u043C\u0434\u0435\u0440\u0456 \u049B\u0430\u0437\u0456\u0440 \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437. \u041A\u0435\u0439\u0456\u043D\u0456\u0440\u0435\u043A \u049B\u0430\u0439\u0442\u0430\u043B\u0430\u043F \u043A\u04E9\u0440\u0456\u04A3\u0456\u0437.","attachment.sending":"\u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0443\u0434\u0435","agent.steps":"\u049A\u0430\u0434\u0430\u043C\u0434\u0430\u0440","agent.unfinished":"\u0430\u044F\u049B\u0442\u0430\u043B\u043C\u0430\u0434\u044B",rateGroup:"\u0416\u0430\u0443\u0430\u043F\u0442\u044B \u0431\u0430\u0493\u0430\u043B\u0430\u0443","blocks.catalogTitle":"\u041A\u0430\u0442\u0430\u043B\u043E\u0433: {topic}","blocks.catalogSections":"\u0411\u04E9\u043B\u0456\u043C\u0434\u0435\u0440","blocks.catalogIndicators":"\u041A\u04E9\u0440\u0441\u0435\u0442\u043A\u0456\u0448\u0442\u0435\u0440","blocks.catalogSendHint":"\u0421\u04B1\u0440\u0430\u049B \u0442\u0430\u04A3\u0434\u0430\u043B\u0493\u0430\u043D \u0431\u043E\u0439\u0434\u0430 \u0436\u0456\u0431\u0435\u0440\u0456\u043B\u0435\u0434\u0456","blocks.clarification":"\u041D\u0430\u049B\u0442\u044B\u043B\u0430\u0443","files.expired":"\u0424\u0430\u0439\u043B \u043C\u0435\u0440\u0437\u0456\u043C\u0456 \u04E9\u0442\u0442\u0456","files.notFound":"\u0424\u0430\u0439\u043B \u0442\u0430\u0431\u044B\u043B\u043C\u0430\u0434\u044B","files.unavailable":"\u0424\u0430\u0439\u043B \u049B\u043E\u043B\u0436\u0435\u0442\u0456\u043C\u0441\u0456\u0437"},A0={title:"AI-Dana",open:"Open chat",unreadAnswers:"new answers: {count}",ask:"Ask a question",close:"Close",history:"History",closeHistory:"Hide history",newChat:"New chat",untitled:"New chat",historyEmpty:"No chats yet",historyError:"Could not load the history",delete:"Delete",deleteConfirm:"Delete this chat?",deleteYes:"Delete",deleteNo:"Cancel",deleteError:"Could not delete the chat",modeLabel:"Answer mode","health.idle":"Available","health.busy":"Busy","health.unavailable":"Unavailable",placeholder:"Ask your questions",inputLabel:"Message",send:"Send",stop:"Stop",attach:"Attach file",attachOne:"Only one file can be attached",attachHint:"You can attach one file: XLS, XLSX, CSV, TXT or MD, up to {size} MB",disclaimer:"AI can make mistakes \u2014 check important information",removeFile:"Remove file",counter:"{count} / {max}",counterLimit:"Character limit reached",counterOver:"Character limit exceeded",fileTooLarge:"File \u201C{name}\u201D is larger than {size} MB",fileType:"File \u201C{name}\u201D is not supported. You can attach XLS, XLSX, CSV, TXT or MD",modeUnavailable:"This mode is unavailable right now, choose another one",greeting:"How can I help?",loading:"Loading\u2026",configError:"The chat is temporarily unavailable",overloaded:"The service is overloaded right now. Please try again later.",retry:"Retry",dismiss:"Dismiss",scrollDown:"Scroll to bottom",settings:"Settings","settings.language":"Language","settings.theme":"Theme","settings.themeLight":"Light","settings.themeDark":"Dark","settings.themeAuto":"System","settings.model":"Default model","settings.modelHint":"Every new chat starts with it","settings.shortcuts":"Keyboard shortcuts","shortcut.search":"Search chats","shortcut.newChat":"New chat","shortcut.sidebar":"Show or hide the sidebar","shortcut.close":"Close the window",search:"Search chats",searchEmpty:"Nothing found",collapseSidebar:"Hide sidebar",expandSidebar:"Show sidebar",expand:"Expand to the whole page",shrink:"Shrink",examples:"Example queries","examples.whatCanDo":"What you can do","group.pinned":"Pinned","group.today":"Today","group.yesterday":"Yesterday","group.week":"Previous 7 days","group.earlier":"Earlier","errors.thread_busy":"AI-Dana is still answering in this chat. Wait for the answer or stop it.","errors.mode_overloaded":"AI-Dana is overloaded right now, please try again a bit later","errors.daily_limit":"You have used up today's message limit","errors.rate_limit":"Too many messages in a row. Please wait a minute.","errors.ip_limit":"Too many messages from your network today. Please try again tomorrow.","errors.concurrency_limit":"Wait for the previous answer to finish","errors.file_too_large":"The file is too large","errors.file_not_allowed":"This file cannot be attached. XLS, XLSX, CSV, TXT and MD are allowed","errors.invalid_query":"The message is empty or too long","errors.invalid_parent":"This message can no longer be changed","errors.mode_not_found":"The selected mode is unavailable right now. Choose another mode.","errors.thread_not_found":"Chat not found","errors.interrupted":"The answer was interrupted","errors.code":"Could not get an answer (code {code}).","errors.generic":"Something went wrong while sending the message.","errors.network":"No connection to the server. Check your network.","errors.render":"This message could not be shown.","agent.thinking":"Thinking\u2026","agent.done":"Done","agent.stopped":"Stopped","agent.stopping":"Stopping\u2026","agent.interrupted":"Answer interrupted","agent.answerStopped":"Answer stopped. Ask again if needed","agent.seconds":"{value} s","agent.attempt":"attempt {count}","agent.showSteps":"Show steps","agent.hideSteps":"Hide steps","steps.router":"Understanding the question","steps.context_builder":"Looking for the data","steps.sql_architect":"Preparing the calculation","steps.executor":"Calculating the figures","steps.responder":"Preparing the answer","steps.rag":"Looking in reference materials","steps.sql":"Looking for data in open sources","steps.document":"Reading the document","steps.understand":"Understanding the question","steps.search_law":"Searching the law","steps.run_sql":"Calculating the figures","steps.run_query":"Getting the data","steps.data":"Getting the data","steps.lookup_taxpayer":"Looking up the taxpayer","steps.find_taxpayer":"Finding the company by name","steps.ask_clarification":"Clarifying the question","steps.answer":"Preparing the answer","steps.think":"Analysing the findings","steps.file":"Reading the document","waiting.router.1":"Choosing where to look\u2026","waiting.router.2":"Matching the question to data and law\u2026","waiting.responder.1":"Checking the figures against the data\u2026","waiting.responder.2":"Checking the references to the law\u2026","waiting.responder.3":"Tidying up the answer\u2026","waiting.law.1":"Reading the articles found\u2026","waiting.law.2":"Comparing versions of the law\u2026","waiting.data.1":"Calculating the figures\u2026","waiting.data.2":"Checking the totals\u2026","waiting.executor.1":"Checking the totals\u2026","waiting.executor.2":"Tidying up the table\u2026","waiting.taxpayer.1":"Putting the profile together\u2026","waiting.taxpayer.2":"Looking at receipts by year\u2026","waiting.findCompany.1":"Comparing similar names\u2026","waiting.findCompany.2":"Picking the closest match\u2026","waiting.think.1":"Matching the findings to the question\u2026","waiting.think.2":"Deciding what else to look at\u2026","waiting.unknown.1":"Almost there\u2026","waiting.unknown.2":"Checking the result\u2026","steps.unknown":"Working on the answer",copy:"Copy",copied:"Copied",download:"Download",regenerate:"Regenerate",edit:"Edit message",editLabel:"Message text",cancel:"Cancel",actionsLabel:"Message actions",rate:"Rate {count} out of 3",ratingError:"Could not save the rating",feedbackOpen:"Leave feedback",feedbackEdit:"Edit feedback",feedbackLabel:"Feedback on the answer",feedbackPlaceholder:"Your feedback on the answer",save:"Save","branch.label":"Versions","branch.prev":"Previous version","branch.next":"Next version","branch.error":"Could not switch the version","limit.remaining":"{count} of {limit} messages left today","limit.exhausted":"You have used up today's message limit","limit.until":"Message limit reached. You can write again after {time}.","blocks.data":"Data","blocks.hideData":"Hide data","blocks.methodology":"Methodology","blocks.passport":"What was calculated","blocks.indicator":"Indicator","blocks.territory":"Territory","blocks.period":"Period","blocks.breakdown":"Breakdown","blocks.breakdown.sex":"by sex","blocks.breakdown.age":"by age","blocks.breakdown.urban_rural":"urban and rural","blocks.breakdown.activity":"by economic activity","blocks.breakdown.item":"by item","blocks.substituted":"substituted","blocks.alternatives":"Similar indicators","blocks.table":"Data table","blocks.tableSearch":"Search the table\u2026","blocks.tableEmpty":"No data","blocks.page":"{a} of {b}","blocks.prevPage":"Previous page","blocks.nextPage":"Next page","blocks.truncated":"Showing the first {n} rows \u2014 full data in Excel","blocks.catalogMore":"\u2026and {count} more in the catalog","blocks.catalogExamples":"You can ask","blocks.options":"Answer options","blocks.default":"default","blocks.freeTextHint":"Choose an option or type your own below","blocks.findOption":"Find in the list\u2026","blocks.chosen":"Selected: {label}","blocks.continue":"Continue","blocks.cancelPlan":"Cancel","blocks.expired":"This clarification has expired","blocks.askAgain":"Ask the question again","blocks.dashboard":"Dashboard","blocks.hideDashboard":"Hide dashboard","chart.kinds":"Chart type","chart.kind.bar":"Bars","chart.kind.column":"Columns","chart.kind.pie":"Pie","chart.kind.line":"Lines","chart.kind.area":"Areas","chart.national":"KZ {value}","chart.top":"Top {n} of {total} \u2014 all in the dashboard","chart.label":"{title}, {period}","files.list":"Files","files.report":"Final report","files.document":"Editable document","files.presentation":"Presentation","files.excel":"Excel data","files.csv":"CSV data","files.failed":"Could not download the file","report.create":"Generate report","report.pending":"Report files are being prepared\u2026","report.failed":"Could not generate the report files","report.retry":"Retry","report.expired":"The files have expired","dashboard.eyebrow":"Analytics","dashboard.label":"Dashboard","dashboard.sections":"Dashboard sections","dashboard.regions":"regions: {n}","dashboard.items":"items: {n}","dashboard.openSource":"Open in source","dashboard.methodology":"Methodology","dashboard.fullscreen":"Full screen","dashboard.collapse":"Collapse","dashboard.close":"Close","dashboard.chatTab":"Chat","dashboard.dashboardTab":"Dashboard","dashboard.view":"Chat or dashboard","dashboard.region":"Region","dashboard.allRegions":"All regions","dashboard.period":"Period","dashboard.mode.label":"Mode","dashboard.mode.value":"Value","dashboard.mode.deviation":"Deviation","dashboard.mode.change":"Change","dashboard.base.label":"Deviation base","dashboard.base.median":"from median","dashboard.base.national":"from KZ","dashboard.noPrevious":"No previous period","dashboard.noNational":"No national value for this period","dashboard.fewRegions":"At least two values are needed","dashboard.ranking":"Ranking","dashboard.trend":"Trend","dashboard.findings":"Findings","dashboard.data":"Data","dashboard.kpis":"Key figures","dashboard.table.rank":"#","dashboard.table.position":"Item","dashboard.table.value":"Value, {unit}","dashboard.table.share":"Share, %","dashboard.table.deviation":"Deviation, {unit}","dashboard.table.change":"Change, {unit}","dashboard.source":"Source: {name}","dashboard.points":"p.p.","dashboard.kpi.national":"Republic of Kazakhstan","dashboard.kpi.max":"Maximum","dashboard.kpi.min":"Minimum","dashboard.kpi.median":"Regional median","dashboard.kpi.spread":"Range","dashboard.kpi.gap":"Gap","dashboard.kpi.last":"Latest value","dashboard.kpi.first":"Start of period","dashboard.kpi.change":"Change","dashboard.kpi.place":"Rank","dashboard.kpi.placeOf":"{n} of {m}","dashboard.kpi.deviation":"Deviation from median","dashboard.kpi.previous":"vs previous period","steps.counter":"{done} of {total}","feedback.reason.wrong_number":"Wrong number","feedback.reason.wrong_indicator":"Wrong indicator","feedback.reason.wrong_territory":"Wrong territory","feedback.reason.wrong_period":"Wrong period","feedback.reason.not_answered":"Question not answered","feedback.reason.language":"Answer language","feedback.reason.slow":"Too slow","feedback.reason.other":"Other","intro.title":"Before you start","intro.continue":"Continue",source:"Source: {name}","shell.siteBlocked":"The chat is not available on this site","shell.siteBlockedHint":"The site owner has not connected AI-Dana yet or access is suspended.","modes.none":"Answer modes are unavailable right now. Please try again later.","attachment.sending":"sending","agent.steps":"Steps","agent.unfinished":"not finished",rateGroup:"Rate the answer","blocks.catalogTitle":"Catalog: {topic}","blocks.catalogSections":"Sections","blocks.catalogIndicators":"Indicators","blocks.catalogSendHint":"The question is sent as soon as you pick it","blocks.clarification":"Clarification","files.expired":"The file has expired","files.notFound":"File not found","files.unavailable":"File unavailable"},O0={kk:I0,ru:Ap,en:A0},wt=(r,n,o)=>{const s=O0[r][n];return o?s.replace(/\{(\w+)\}/g,(d,p)=>String(o[p]??d)):s},sl=r=>r in Ap,an=(r,n)=>{if(!r)return"";for(const o of[r[n],r.ru,...Object.values(r)])if(o)return o;return""},Op="aid_prefs",$0=["light","dark","auto"],$p=r=>{try{const n=JSON.parse(r?.getItem(Op)??"{}"),o={};return il.includes(n.lang)&&(o.lang=n.lang),$0.includes(n.scheme)&&(o.scheme=n.scheme),o}catch{return{}}},F0=(r,n)=>{try{r?.setItem(Op,JSON.stringify(n))}catch{}},Fp=({scheme:r})=>r?{scheme:r}:{},U0=(r,n,o)=>n?!o||r.expanded?r:{expanded:!0,byDashboard:!0}:r.byDashboard?{expanded:!1,byDashboard:!1}:r,ll=x.createContext(null),cl=()=>{const r=x.useContext(ll);if(!r)throw new Error("usePrefs outside PrefsContext");return r},Up="@dsrcjs/ai-widget",q0=/^https:\/\/cdn\.jsdelivr\.net\/npm\/@dsrcjs\/ai-widget@([^/]+)\/dist\/ai-dana-chat\.js(?:[?#].*)?$/,qp=/^\d+\.\d+\.\d+$/,V0=1500,B0=(r,n)=>{const o=r.split(".").map(Number),s=n.split(".").map(Number);for(let d=0;d<3;d++){const p=(o[d]??0)-(s[d]??0);if(p!==0)return p>0}return!1},W0=r=>`https://cdn.jsdelivr.net/npm/${Up}@${r}/dist/ai-dana-chat.js`,H0=(r,n,o=typeof document>"u"?null:document.currentScript)=>{const s=o instanceof HTMLScriptElement?o.src:"",d=q0.exec(s)?.[1];if(!d||qp.test(d)||typeof fetch!="function"){r();return}let p=!1;const f=h=>{if(!p){if(p=!0,typeof h=="string"&&qp.test(h)&&B0(h,n)){const m=document.createElement("script");m.src=W0(h),m.async=!0,m.onerror=r,document.head.append(m);return}r()}};window.setTimeout(f,V0),fetch(`https://data.jsdelivr.com/v1/packages/npm/${Up}/resolved?specifier=${encodeURIComponent(d)}`).then(h=>h.ok?h.json():null).then(h=>{f(h?.version)},()=>{f()})},X0=r=>{let n=r;const o=new Set;return{get:()=>n,set:s=>{n={...n,...s};for(const d of o)d()},subscribe:s=>(o.add(s),()=>o.delete(s))}};class dl extends x.Component{constructor(){super(...arguments),ia(this,"state",{failed:!1})}static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}}const K0='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--aid-c-border)}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--aid-c-font);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important;margin-right:auto!important;margin-left:auto!important;padding-right:32px!important;padding-left:32px!important}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:32px;padding-left:32px}@media(min-width:1400px){.\\!container{max-width:1400px!important}.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-\\[3px\\]{inset:3px}.inset-y-0{top:0;bottom:0}.bottom-3{bottom:12px}.bottom-\\[3\\.2rem\\]{bottom:51.2px}.bottom-\\[calc\\(100\\%\\+6px\\)\\]{bottom:calc(100% + 6px)}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.left-\\[11px\\]{left:11px}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1\\/2{top:50%}.top-\\[calc\\(100\\%\\+6px\\)\\]{top:calc(100% + 6px)}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.m-0{margin:0}.mx-1\\.5{margin-left:6px;margin-right:6px}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-top:2px;margin-bottom:2px}.my-4{margin-top:16px;margin-bottom:16px}.-ml-2{margin-left:-8px}.mb-2{margin-bottom:8px}.ml-0\\.5{margin-left:2px}.ml-1\\.5{margin-left:6px}.mr-1{margin-right:4px}.mr-auto{margin-right:auto}.mt-0\\.5{margin-top:2px}.mt-1{margin-top:4px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-5{margin-top:20px}.mt-\\[18px\\]{margin-top:18px}.mt-px{margin-top:1px}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.\\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-10{width:40px;height:40px}.size-2{width:8px;height:8px}.size-3{width:12px;height:12px}.size-3\\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.size-6{width:24px;height:24px}.size-7{width:28px;height:28px}.size-8{width:32px;height:32px}.size-9{width:36px;height:36px}.size-\\[26px\\]{width:26px;height:26px}.size-\\[30px\\]{width:30px;height:30px}.size-\\[34px\\]{width:34px;height:34px}.size-\\[52px\\]{width:52px;height:52px}.h-10{height:40px}.h-3{height:12px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[11px\\]{height:11px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[22px\\]{height:22px}.h-\\[38px\\]{height:38px}.h-full{height:100%}.h-side-head{height:var(--aid-c-side-head-height)}.h-toolbar{height:var(--aid-c-toolbar-height)}.max-h-56{max-height:224px}.max-h-\\[28rem\\]{max-height:448px}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-10{min-height:40px}.min-h-11{min-height:44px}.min-h-6{min-height:24px}.min-h-7{min-height:28px}.min-h-8{min-height:32px}.min-h-9{min-height:36px}.min-h-\\[30px\\]{min-height:30px}.min-h-\\[34px\\]{min-height:34px}.min-h-\\[76px\\]{min-height:76px}.w-1\\/2{width:50%}.w-10{width:40px}.w-\\[18px\\]{width:18px}.w-\\[340px\\]{width:340px}.w-\\[62\\%\\]{width:62%}.w-\\[7px\\]{width:7px}.w-\\[max-content\\]{width:-moz-max-content;width:max-content}.w-\\[min\\(400px\\,100\\%\\)\\]{width:min(400px,100%)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.w-side{width:var(--aid-c-side-width)}.w-side-over{width:var(--aid-c-side-over-width)}.min-w-0{min-width:0px}.min-w-16{min-width:64px}.min-w-24{min-width:96px}.min-w-32{min-width:128px}.min-w-4{min-width:16px}.min-w-40{min-width:160px}.min-w-5{min-width:20px}.min-w-\\[220px\\]{min-width:220px}.min-w-\\[22px\\]{min-width:22px}.min-w-\\[30px\\]{min-width:30px}.min-w-\\[480px\\]{min-width:480px}.min-w-full{min-width:100%}.max-w-60{max-width:240px}.max-w-\\[300px\\]{max-width:300px}.max-w-\\[340px\\]{max-width:340px}.max-w-\\[420px\\]{max-width:420px}.max-w-\\[440px\\]{max-width:440px}.max-w-\\[520px\\]{max-width:520px}.max-w-\\[640px\\]{max-width:640px}.max-w-\\[78\\%\\]{max-width:78%}.max-w-\\[820px\\]{max-width:820px}.max-w-\\[844px\\]{max-width:844px}.max-w-\\[calc\\(100\\%-2rem\\)\\]{max-width:calc(100% - 32px)}.max-w-\\[min\\(360px\\,100\\%\\)\\]{max-width:min(360px,100%)}.max-w-\\[min\\(360px\\,80vw\\)\\]{max-width:min(360px,80vw)}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: 8px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[3px\\]{--tw-translate-y: 3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\\[repeat\\(auto-fit\\,minmax\\(9\\.5rem\\,1fr\\)\\)\\]{grid-template-columns:repeat(auto-fit,minmax(152px,1fr))}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:2px}.gap-1{gap:4px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-2\\.5{gap:10px}.gap-3{gap:12px}.gap-3\\.5{gap:14px}.gap-4{gap:16px}.gap-5{gap:20px}.gap-\\[22px\\]{gap:22px}.gap-\\[3px\\]{gap:3px}.gap-\\[7px\\]{gap:7px}.gap-px{gap:1px}.gap-x-3\\.5{-moz-column-gap:14px;column-gap:14px}.gap-y-1{row-gap:4px}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.overscroll-x-contain{overscroll-behavior-x:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:var(--aid-c-radius)}.rounded-2xl{border-radius:16px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[14px\\]{border-radius:14px}.rounded-\\[18px\\]{border-radius:18px}.rounded-\\[22\\.5\\%\\]{border-radius:22.5%}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[7px\\]{border-radius:7px}.rounded-\\[calc\\(var\\(--aid-c-radius\\)\\+6px\\)\\]{border-radius:calc(var(--aid-c-radius) + 6px)}.rounded-aid-field{border-radius:var(--aid-c-radius-field)}.rounded-aid-window{border-radius:var(--aid-c-radius-window)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--aid-c-radius)}.rounded-md{border-radius:calc(var(--aid-c-radius) - 2px)}.rounded-sm{border-radius:calc(var(--aid-c-radius) - 4px)}.rounded-xl{border-radius:12px}.rounded-br-\\[6px\\]{border-bottom-right-radius:6px}.border{border-width:1px}.border-0{border-width:0px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-\\[3px\\]{border-left-width:3px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-border{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-current{border-color:currentColor}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\\/30{border-color:hsl(var(--destructive) / .3)}.border-error\\/30{border-color:hsl(var(--error),.3)}.border-error\\/35{border-color:hsl(var(--error),.35)}.border-input{border-color:hsl(var(--input))}.border-muted-foreground{border-color:hsl(var(--muted-foreground))}.border-primary{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-primary-30{border-color:color-mix(in srgb,var(--aid-c-primary) 30%,transparent)}.border-primary-35{border-color:color-mix(in srgb,var(--aid-c-primary) 35%,transparent)}.border-primary-pressed{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.border-processing\\/25{border-color:hsl(var(--processing),.25)}.border-warning\\/40{border-color:hsl(var(--warning),.4)}.border-r-transparent{border-right-color:transparent}.bg-\\[\\#F3F5FA\\]{--tw-bg-opacity: 1;background-color:rgb(243 245 250 / var(--tw-bg-opacity, 1))}.bg-\\[hsl\\(var\\(--chart-card\\)\\)\\]{background-color:hsl(var(--chart-card))}.bg-accent{background-color:hsl(var(--accent))}.bg-background{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-border{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-border) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-card{background-color:hsl(var(--card))}.bg-current{background-color:currentColor}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive-background{background-color:hsla(var(--destructive-background))}.bg-destructive-pressed{background-color:hsl(var(--destructive-pressed))}.bg-error-background{background-color:hsla(var(--error-background))}.bg-file-csv{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-csv)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-doc{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-doc)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-other{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-other)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-pdf{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-pdf)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-ppt{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-ppt)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-file-xls{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--file-xls)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-foreground{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-hl{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--hl)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-busy{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-down{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-mode-idle{--tw-bg-opacity: 1;background-color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-muted-foreground\\/40{background-color:hsl(var(--muted-foreground) / .4)}.bg-muted\\/60{background-color:color-mix(in srgb,var(--aid-c-muted) 60%,transparent)}.bg-primary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-primary-pressed{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-processing-background{background-color:hsla(var(--processing-background))}.bg-scrim{background-color:var(--scrim)}.bg-secondary{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-secondary) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.bg-transparent{background-color:transparent}.bg-warning-background{background-color:hsla(var(--warning-background))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-1\\.5{padding:6px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-3\\.5{padding:14px}.p-4{padding:16px}.p-6{padding:24px}.p-8{padding:32px}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:2px;padding-right:2px}.px-1{padding-left:4px;padding-right:4px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-3\\.5{padding-left:14px;padding-right:14px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-\\[18px\\]{padding-left:18px;padding-right:18px}.px-\\[5px\\]{padding-left:5px;padding-right:5px}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2{padding-top:8px;padding-bottom:8px}.py-2\\.5{padding-top:10px;padding-bottom:10px}.py-3{padding-top:12px;padding-bottom:12px}.py-3\\.5{padding-top:14px;padding-bottom:14px}.py-6{padding-top:24px;padding-bottom:24px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-2{padding-bottom:8px}.pb-2\\.5{padding-bottom:10px}.pb-3{padding-bottom:12px}.pb-4{padding-bottom:16px}.pb-5{padding-bottom:20px}.pb-\\[18px\\]{padding-bottom:18px}.pl-0\\.5{padding-left:2px}.pl-2{padding-left:8px}.pl-2\\.5{padding-left:10px}.pl-3{padding-left:12px}.pl-3\\.5{padding-left:14px}.pl-4{padding-left:16px}.pl-5{padding-left:20px}.pl-\\[18px\\]{padding-left:18px}.pl-\\[22px\\]{padding-left:22px}.pl-\\[34px\\]{padding-left:34px}.pr-1\\.5{padding-right:6px}.pr-2{padding-right:8px}.pr-2\\.5{padding-right:10px}.pr-3{padding-right:12px}.pr-3\\.5{padding-right:14px}.pr-4{padding-right:16px}.pr-7{padding-right:28px}.pr-9{padding-right:36px}.pt-0\\.5{padding-top:2px}.pt-1{padding-top:4px}.pt-1\\.5{padding-top:6px}.pt-14{padding-top:56px}.pt-2{padding-top:8px}.pt-3{padding-top:12px}.pt-3\\.5{padding-top:14px}.pt-7{padding-top:28px}.pt-\\[18px\\]{padding-top:18px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--aid-c-font)}.text-2xl{font-size:20px}.text-2xs{font-size:12px}.text-3xl{font-size:24px}.text-\\[11px\\]{font-size:11px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.text-\\[17px\\]{font-size:17px}.text-\\[9\\.5px\\]{font-size:9.5px}.text-base{font-size:15px}.text-lg{font-size:16px}.text-sm{font-size:14px}.text-xl{font-size:18px}.text-xs{font-size:13px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-6{line-height:24px}.leading-\\[1\\.35\\]{line-height:1.35}.leading-\\[1\\.3\\]{line-height:1.3}.leading-\\[1\\.55\\]{line-height:1.55}.leading-\\[1\\.65\\]{line-height:1.65}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-\\[0\\.02em\\]{letter-spacing:.02em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-\\[hsl\\(var\\(--foreground\\)\\)\\]{color:hsl(var(--foreground))}.text-background{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-inherit{color:inherit}.text-mode-busy{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-busy)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-down{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-down)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-mode-idle{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--mode-idle)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--muted-foreground) / .7)}.text-primary{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-primary-foreground{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-warn-text{--tw-text-opacity: 1;color:color-mix(in srgb,hsl(var(--warn-text)) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.text-warning{--tw-text-opacity: 1;color:hsl(var(--warning),var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_0_3px_var\\(--aid-c-secondary\\)\\]{--tw-shadow: 0 0 0 3px var(--aid-c-secondary);--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[inset_0_0_0_1px_var\\(--aid-c-border\\)\\]{--tw-shadow: inset 0 0 0 1px var(--aid-c-border);--tw-shadow-colored: inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-panel{--tw-shadow: var(--aid-c-shadow-panel);--tw-shadow-colored: var(--aid-c-shadow-panel);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-pop{--tw-shadow: var(--shadow-pop);--tw-shadow-colored: var(--shadow-pop);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-side{--tw-shadow: var(--aid-c-shadow-side);--tw-shadow-colored: var(--aid-c-shadow-side);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-window{--tw-shadow: var(--aid-c-shadow-window);--tw-shadow-colored: var(--aid-c-shadow-window);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\\[3px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-border{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-border) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-secondary{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.ring-offset-background{--tw-ring-offset-color: color-mix(in srgb, var(--aid-c-background) 100% , transparent)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in{--tw-enter-opacity: 0}.slide-in-from-left-2{--tw-enter-translate-x: -8px}.duration-150{animation-duration:.15s}.duration-200{animation-duration:.2s}.running{animation-play-state:running}.paused{animation-play-state:paused}:host{display:block}:host([hidden]){display:none!important}.aid-root{all:initial;display:block;width:100%;height:100%;box-sizing:border-box;--aid-d-primary-hovered: color-mix(in oklch, var(--aid-primary) 84%, white);--aid-d-primary-pressed: color-mix(in oklch, var(--aid-primary) 80%, black);--aid-d-primary-foreground: oklch(from var(--aid-primary) clamp(0, (.62 - l) * 1000, 1) 0 0);--aid-d-secondary: color-mix(in srgb, var(--aid-primary) 10%, transparent);--aid-d-ring: color-mix(in srgb, var(--aid-primary) 50%, transparent);--aid-c-primary: var(--aid-primary, hsl(var(--primary)));--aid-c-primary-hovered: var(--aid-primary-hovered, var(--aid-d-primary-hovered, hsl(var(--primary-hovered))));--aid-c-primary-pressed: var(--aid-primary-pressed, var(--aid-d-primary-pressed, hsl(var(--primary-pressed))));--aid-c-primary-foreground: var( --aid-primary-foreground, var(--aid-d-primary-foreground, hsl(var(--primary-foreground))) );--aid-c-secondary: var(--aid-secondary, var(--aid-d-secondary, hsl(var(--secondary))));--aid-c-ring: var(--aid-ring, var(--aid-d-ring, hsl(var(--ring))));--aid-c-background: var(--aid-background, hsl(var(--background)));--aid-c-foreground: var(--aid-foreground, hsl(var(--foreground)));--aid-c-muted: var(--aid-muted, hsl(var(--muted)));--aid-c-border: var(--aid-border, hsl(var(--border)));--aid-c-radius: var(--aid-radius, var(--radius));--aid-c-font: var( --aid-font, var( --aid-theme-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif ) );--aid-c-z: var(--aid-z-index, 2147483000);font-family:var(--aid-c-font);font-size:15px;line-height:1.5;color:var(--aid-c-foreground);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-align:left}.aid-root{--warning: 21, 90%, 48%;--warning-background: 27, 96%, 61%, .2;--ring: 201 100% 35%;--chart-1: 201 100% 35%;--chart-2: 174 72% 30%;--chart-3: 27 95% 46%;--chart-4: 330 70% 42%;--chart-5: 252 45% 52%;--chart-ref: 222 47% 11%;--chart-neg: 359 72% 48%;--chart-dim: 201 45% 80%;--chart-grid: 214 32% 88%;--mode-idle: 142 72% 29%;--mode-busy: 32 95% 36%;--mode-down: 359 78% 44%;--file-pdf: 0 72% 45%;--file-doc: 214 80% 44%;--file-ppt: 18 88% 44%;--file-xls: 145 63% 30%;--file-csv: 174 70% 28%;--file-other: 215 16% 42%;--warn-text: 24 90% 30%;--hl: 45 100% 55% / .45;--scrim: rgb(2 6 23 / .48);--persona-ring: 214 32% 88%;--shadow-pop: 0 10px 28px -10px rgb(15 23 42 / .28);--aid-c-radius-window: calc(var(--aid-c-radius) + 6px);--aid-c-radius-field: calc(var(--aid-c-radius) + 4px);--aid-c-radius-bubble-corner: 6px;--aid-c-side-width: 248px;--aid-c-side-over-width: 290px;--aid-c-toolbar-height: 52px;--aid-c-side-head-height: 56px;--aid-c-shadow-launcher: 0 10px 30px -8px rgb(2 6 23 / .45), 0 2px 6px rgb(2 6 23 / .2);--aid-c-shadow-launcher-drag: 0 22px 44px -10px rgb(2 6 23 / .55);--aid-c-shadow-window: 0 30px 70px -20px rgb(2 6 23 / .55);--aid-c-shadow-panel: 0 20px 50px -16px rgb(2 6 23 / .5);--aid-c-shadow-side: 12px 0 30px -12px rgb(2 6 23 / .45)}.aid-root.dark{--ring: 201 90% 60%;--chart-1: 201 90% 60%;--chart-2: 170 60% 52%;--chart-3: 30 95% 62%;--chart-4: 330 75% 70%;--chart-5: 252 75% 76%;--chart-ref: 210 40% 98%;--chart-neg: 359 92% 70%;--chart-dim: 201 30% 32%;--chart-grid: 217 33% 25%;--mode-idle: 142 60% 55%;--mode-busy: 35 95% 62%;--mode-down: 359 95% 72%;--file-pdf: 0 80% 62%;--file-doc: 214 85% 62%;--file-ppt: 20 92% 60%;--file-xls: 145 55% 48%;--file-csv: 172 55% 46%;--file-other: 215 20% 60%;--warn-text: 32 95% 66%;--hl: 45 100% 55% / .35;--scrim: rgb(0 0 0 / .6);--persona-ring: 217 33% 30%;--shadow-pop: 0 12px 32px -10px rgb(0 0 0 / .6)}:where(.aid-root svg.lucide){width:16px;height:16px;flex-shrink:0}:where(.aid-root *),:where(.aid-root *):before,:where(.aid-root *):after{border-color:var(--aid-c-border)}.aid-root[data-mode=launcher]{width:0;height:0}.aid-root{--aid-c-launcher-size: 60px}@media(max-width:639px){.aid-root{--aid-c-launcher-size: 56px}}.aid-launcher{position:fixed;z-index:var(--aid-c-z);isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-width:var(--aid-c-launcher-size);height:var(--aid-c-launcher-size);padding:0;border:0;border-radius:9999px;background:var(--aid-c-primary);color:var(--aid-c-primary-foreground);box-shadow:var(--aid-c-shadow-launcher),0 8px 26px -6px color-mix(in srgb,var(--aid-c-primary) 65%,transparent);font:600 15px/1 var(--aid-c-font);cursor:pointer;outline:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color .16s ease-out,transform .26s cubic-bezier(.34,1.56,.64,1),box-shadow .2s ease-out}.aid-launcher:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:conic-gradient(var(--aid-c-primary),color-mix(in srgb,var(--aid-c-primary) 40%,#7dd3fc),var(--aid-c-primary) 45%,color-mix(in srgb,var(--aid-c-primary) 55%,#c4b5fd),var(--aid-c-primary))}.aid-launcher[data-shape=circle][data-variant=icon]:before{animation:aid-launcher-spin 7s linear infinite}.aid-launcher[data-variant=icon]:after{content:"";position:absolute;inset:0;z-index:-2;border:2px solid var(--aid-c-primary);border-radius:inherit;opacity:0;pointer-events:none;animation:aid-launcher-ping 2.4s cubic-bezier(0,0,.2,1) 1.2s 3}.aid-launcher[data-unread=true]:after{animation:aid-launcher-ping 2s cubic-bezier(0,0,.2,1) infinite}.aid-launcher[data-open=true]:after,.aid-launcher[data-dragging=true]:after{animation:none}.aid-launcher-face{position:relative;display:block;flex:none;width:calc(var(--aid-c-launcher-size) - 10px);height:calc(var(--aid-c-launcher-size) - 10px);overflow:hidden;border-radius:inherit;background:radial-gradient(circle at 50% 28%,#fff,#dfe8f6 72%);box-shadow:0 0 0 2px #ffffffe6;transition:opacity .18s ease-out,transform .32s cubic-bezier(.34,1.56,.64,1)}.aid-launcher[data-variant=label] .aid-launcher-face{width:44px;height:44px;border-radius:9999px}.aid-launcher-face>.dana-av{width:112%!important;height:112%!important;margin:4% 0 0 -6%;animation:aid-launcher-bob 4.5s ease-in-out infinite;transition:scale .3s cubic-bezier(.34,1.56,.64,1)}.aid-launcher-close{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transform:rotate(90deg) scale(.4);transition:opacity .18s ease-out,transform .32s cubic-bezier(.34,1.56,.64,1)}.aid-launcher[data-open=true] .aid-launcher-face{opacity:0;transform:rotate(-90deg) scale(.4)}.aid-launcher[data-open=true] .aid-launcher-close{opacity:1;transform:none}.aid-launcher-hint{position:absolute;top:50%;right:calc(100% + 14px);padding:9px 14px;border-radius:12px;background:var(--aid-c-background);color:var(--aid-c-foreground);box-shadow:var(--shadow-pop),0 0 0 1px var(--aid-c-border);font:600 14px/1.2 var(--aid-c-font);white-space:nowrap;opacity:0;transform:translate(8px,-50%) scale(.96);transform-origin:right center;pointer-events:none;transition:opacity .16s ease-out,transform .26s cubic-bezier(.34,1.56,.64,1)}.aid-launcher[data-side=left] .aid-launcher-hint{right:auto;left:calc(100% + 14px);transform:translate(-8px,-50%) scale(.96);transform-origin:left center}.aid-launcher:focus-visible .aid-launcher-hint{opacity:1;transform:translateY(-50%)}.aid-launcher[data-variant=label]{max-width:300px;padding:0 20px 0 8px}.aid-launcher[data-shape=rounded]{border-radius:16px}.aid-launcher[data-shape=square]{border-radius:4px}@media(hover:hover){.aid-launcher:hover{background:var(--aid-c-primary-hovered);transform:translateY(-2px);box-shadow:var(--aid-c-shadow-launcher),0 12px 34px -6px color-mix(in srgb,var(--aid-c-primary) 80%,transparent)}.aid-launcher:hover .aid-launcher-face>.dana-av{scale:1.08}.aid-launcher:hover .aid-launcher-hint{opacity:1;transform:translateY(-50%)}}.aid-launcher:active{transform:scale(.96)}.aid-launcher:focus-visible{outline:3px solid var(--aid-c-ring);outline-offset:3px}.aid-launcher[data-dragging=true]{transform:scale(1.06);box-shadow:var(--aid-c-shadow-launcher-drag)}.aid-launcher[data-dragging=true] .aid-launcher-hint{opacity:0}@keyframes aid-launcher-spin{to{transform:rotate(1turn)}}@keyframes aid-launcher-ping{0%{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.6)}}@keyframes aid-launcher-bob{50%{transform:translateY(-3%)}}@media(prefers-reduced-motion:reduce){.aid-launcher,.aid-launcher:hover,.aid-launcher:active,.aid-launcher[data-dragging=true]{transition:none;transform:none}.aid-launcher:before,.aid-launcher:after,.aid-launcher-face>.dana-av{animation:none!important}}.aid-launcher[data-dragging=true],.aid-window-header[data-dragging=true]{cursor:grabbing}.aid-launcher-origin{position:fixed;z-index:calc(var(--aid-c-z) - 1);box-sizing:border-box;border:1.5px dashed hsl(var(--muted-foreground) / .55);border-radius:9999px;pointer-events:none}.aid-launcher-origin[data-shape=rounded]{border-radius:16px}.aid-launcher-origin[data-shape=square]{border-radius:4px}.aid-root{--aid-c-window-gap: 24px;--aid-c-overlay: var(--aid-overlay, rgb(2 6 23 / .35))}.aid-window{position:fixed;z-index:var(--aid-c-z);display:flex;flex-direction:column;overflow:hidden;transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.dana-av{position:relative;display:inline-block;flex-shrink:0;overflow:hidden}.dana-av>*{position:absolute;inset:0;width:100%;height:100%;display:block}.dana-av-body{transform-origin:50% 100%}.dana-av-dot{transform-box:fill-box;transform-origin:50% 50%}.dana-av[data-animated][data-mood=calm] .dana-av-body,.dana-av[data-animated][data-mood=listen] .dana-av-body{animation:dana-breathe 3.6s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=typing] .dana-av-body{animation:dana-bob .34s ease-in-out infinite}.dana-av[data-animated][data-mood=think] .dana-av-body{animation:dana-sway 3.4s ease-in-out infinite alternate}.dana-av[data-animated][data-mood=eureka] .dana-av-body{animation:dana-lift 1.3s cubic-bezier(.3,0,.4,1) infinite}.dana-av[data-animated][data-mood=sorry] .dana-av-body{animation:dana-slump 2.8s ease-in-out infinite}.dana-av[data-animated] .dana-av-bubble,.dana-av[data-animated] .dana-av-dots{animation:dana-float 2.2s ease-in-out infinite alternate}.dana-av[data-animated] .dana-av-dot{animation:dana-dot 1.1s ease-in-out infinite}.dana-av[data-animated] .dana-av-dot:nth-child(3n+2){animation-delay:.18s}.dana-av[data-animated] .dana-av-dot:nth-child(3n){animation-delay:.36s}.dana-av[data-animated] .dana-av-spark{transform-origin:13% 30%;animation:dana-twinkle 1.3s ease-in-out infinite}.dana-av[data-animated] .dana-av-drop{animation:dana-drip 1.8s ease-in infinite}@keyframes dana-breathe{to{transform:translateY(-.5%) scale(1.004,1.01)}}@keyframes dana-bob{50%{transform:translateY(.5%)}}@keyframes dana-sway{0%{transform:rotate(-1.2deg)}to{transform:rotate(1.2deg)}}@keyframes dana-lift{15%{transform:scale(1.02,.98)}42%{transform:translateY(-2.5%) scale(.99,1.015)}65%{transform:scale(1.01,.99)}80%{transform:none}}@keyframes dana-slump{8%{transform:translate(-.7%) rotate(-.6deg)}16%{transform:translate(.7%) rotate(.6deg)}24%{transform:none}60%{transform:translateY(1%) rotate(-.8deg)}}@keyframes dana-float{to{transform:translateY(-1.5%)}}@keyframes dana-dot{0%,60%,to{transform:translateY(0);opacity:.45}30%{transform:translateY(-40%);opacity:1}}@keyframes dana-twinkle{0%,to{transform:scale(.75);opacity:.6}45%{transform:scale(1.08) rotate(12deg);opacity:1}}@keyframes dana-drip{0%{transform:translateY(-1.5%);opacity:0}15%{opacity:1}70%{transform:translateY(3.5%);opacity:1}to{transform:translateY(5.5%);opacity:0}}@media(prefers-reduced-motion:reduce){.dana-av *{animation:none!important}}.aid-overlay{position:fixed;inset:0;z-index:var(--aid-c-z);background:var(--aid-c-overlay);transition:opacity .2s ease-out,visibility 0s linear 0s}.aid-overlay[data-state=closed]{opacity:0;visibility:hidden;transition:opacity .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window{top:var(--aid-c-window-gap);right:var(--aid-c-window-gap);bottom:var(--aid-c-window-gap);width:min(calc(100vw - 2 * var(--aid-c-window-gap)),max(720px,var(--aid-window-width, 60vw)));transition:opacity .2s ease-out,transform .26s cubic-bezier(.32,.72,0,1),width .26s cubic-bezier(.32,.72,0,1),visibility 0s linear 0s}.aid-root[data-mode=launcher] .aid-window[data-expanded=true]{width:calc(100vw - 2 * var(--aid-c-window-gap))}.aid-root .aid-window[data-state=closed]{opacity:0;transform:translateY(8px);visibility:hidden;pointer-events:none;transition:opacity .16s ease-in,transform .2s ease-in,visibility 0s linear .2s}.aid-root[data-mode=launcher] .aid-window[data-fullscreen=true]{inset:0;width:100%;border-width:0;border-radius:0;box-shadow:none}.aid-root[data-mode=window] .aid-window{position:relative;width:100%;height:100%;box-shadow:none}@media(prefers-reduced-motion:reduce){.aid-root .aid-window,.aid-root .aid-window[data-state=closed],.aid-overlay,.aid-overlay[data-state=closed]{transition:none}}.aid-launcher-badge{position:absolute;top:-4px;right:-4px;box-sizing:content-box;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border:2px solid var(--aid-c-background);border-radius:9999px;background:hsl(var(--destructive));color:hsl(var(--destructive-foreground));font:700 11px/1 var(--aid-c-font)}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\\:mt-0:first-child{margin-top:0}.last\\:border-b-0:last-child{border-bottom-width:0px}.empty\\:hidden:empty{display:none}.focus-within\\:border-destructive:focus-within{border-color:hsl(var(--destructive))}.focus-within\\:border-primary:focus-within{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-within\\:ring-\\[3px\\]:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-within\\:ring-secondary:focus-within{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.hover\\:border-primary:hover{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.hover\\:border-primary\\/50:hover{border-color:color-mix(in srgb,var(--aid-c-primary) 50%,transparent)}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-background:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-background) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-background\\/60:hover{background-color:color-mix(in srgb,var(--aid-c-background) 60%,transparent)}.hover\\:bg-destructive-hovered:hover{background-color:hsl(var(--destructive-hovered))}.hover\\:bg-muted:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-primary-hovered:hover{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.hover\\:bg-secondary-hovered:hover{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-hovered),var(--tw-bg-opacity, 1))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-foreground:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary-hovered:hover{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-hovered) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.hover\\:text-primary\\/80:hover{color:color-mix(in srgb,var(--aid-c-primary) 80%,transparent)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-primary:focus{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus\\:ring-\\[3px\\]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-secondary:focus{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:border-primary:focus-visible{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.focus-visible\\:bg-accent:focus-visible{background-color:hsl(var(--accent))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[3px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-inset:focus-visible{--tw-ring-inset: inset}.focus-visible\\:ring-destructive:focus-visible{--tw-ring-color: hsl(var(--destructive))}.focus-visible\\:ring-primary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-primary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-ring) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-secondary:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: color-mix(in srgb, var(--aid-c-secondary) calc(var(--tw-ring-opacity, 1) * 100%), transparent)}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.active\\:border-primary-pressed:active{--tw-border-opacity: 1;border-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-border-opacity, 1) * 100%),transparent)}.active\\:bg-destructive-pressed:active{background-color:hsl(var(--destructive-pressed))}.active\\:bg-primary-pressed:active{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.active\\:bg-secondary-pressed:active{--tw-bg-opacity: 1;background-color:hsl(var(--secondary-pressed),var(--tw-bg-opacity, 1))}.active\\:text-primary-foreground:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-foreground) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.active\\:text-primary-pressed:active{--tw-text-opacity: 1;color:color-mix(in srgb,var(--aid-c-primary-pressed) calc(var(--tw-text-opacity, 1) * 100%),transparent)}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-disabled:disabled{background-color:hsl(var(--disabled))}.disabled\\:bg-muted:disabled{--tw-bg-opacity: 1;background-color:color-mix(in srgb,var(--aid-c-muted) calc(var(--tw-bg-opacity, 1) * 100%),transparent)}.disabled\\:bg-transparent:disabled{background-color:transparent}.disabled\\:text-disabled-foreground:disabled{color:hsl(var(--disabled-foreground))}.disabled\\:text-muted-foreground:disabled{color:hsl(var(--muted-foreground))}.disabled\\:opacity-100:disabled{opacity:1}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:opacity-60:disabled{opacity:.6}.group\\/attach:focus-within .group-focus-within\\/attach\\:block{display:block}.group:focus-within .group-focus-within\\:opacity-100{opacity:1}.group\\/attach:hover .group-hover\\/attach\\:block{display:block}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}@media(prefers-reduced-motion:reduce){.motion-reduce\\:animate-none{animation:none}.motion-reduce\\:transition-none{transition-property:none}}.\\[\\&\\:\\:-webkit-search-cancel-button\\]\\:hidden::-webkit-search-cancel-button{display:none}.\\[\\&_a\\]\\:no-underline a{text-decoration-line:none}.\\[\\&_li\\+li\\]\\:mt-1 li+li{margin-top:4px}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_ul\\]\\:mt-1 ul{margin-top:4px}@media(hover:none){.\\[\\@media\\(hover\\:none\\)\\]\\:opacity-100{opacity:1}}',Vp=3e3,ul=6*6e4,Bp={phase:"idle"},Wp={phase:"pending"},nn={phase:"failed"},Hp={phase:"expired"},Q0=new Set(["pdf","docx","pptx","xlsx","csv"]),pl=r=>{switch(r.status){case"queued":case"running":return Wp;case"done":{const n=r.files.filter(o=>Q0.has(o.format));return n.length>0?{phase:"done",files:n}:nn}case"expired":return Hp;default:return nn}},ut=new Map,Io=new Set,Y0=new Set(["done","failed","expired"]),Ao=new Set;let Er=0;const dr=(r,n)=>{const o=ut.get(r)??{view:Bp};ut.set(r,{...o,...n});for(const s of Ao)s()},Z0=r=>{const n=ut.get(r);if(n?.jobId===void 0||n.deadline===void 0||n.api===void 0)return;if(clearTimeout(n.timer),Date.now()+Vp>n.deadline){dr(r,{view:nn,timer:void 0});return}const{jobId:o,api:s}=n,d=Er,p=setTimeout(()=>{s.reportStatus(o).then(f=>{d===Er&&ut.get(r)?.jobId===o&&fl(r,f)},()=>{d===Er&&ut.get(r)?.jobId===o&&dr(r,{view:nn,timer:void 0})})},Vp);dr(r,{timer:p})},fl=(r,n)=>{const o=pl(n),s=ut.get(r)?.jobId;s!==void 0&&s!==n.job_id&&Io.add(s);const d=ut.get(r)?.deadline??Date.now()+ul;dr(r,{view:o,jobId:n.job_id,deadline:d,timer:void 0}),o.phase==="pending"&&Z0(r)},on={subscribe:r=>(Ao.add(r),()=>{Ao.delete(r)}),view:r=>ut.get(r)?.view,adopt:(r,n,o)=>{if(Io.has(n.job_id))return;const s=ut.get(r);if(s!==void 0&&(s.jobId!==void 0||s.view.phase!=="idle")){if(s.view.phase==="pending")return;const d=n.job_id===s.jobId;if(d&&(!Y0.has(n.status)||pl(n).phase===s.view.phase)||d&&s.view.phase==="expired")return}clearTimeout(s?.timer),dr(r,{deadline:Date.now()+ul,timer:void 0,api:o}),fl(r,n)},start:(r,n,o)=>{const s=ut.get(r);if(s?.view.phase==="pending")return;clearTimeout(s?.timer),s?.jobId!==void 0&&Io.add(s.jobId),dr(r,{view:Wp,jobId:void 0,deadline:Date.now()+ul,timer:void 0,api:n});const d=Er;n.createReport(r,o).then(p=>{d===Er&&fl(r,p)},()=>{d===Er&&dr(r,{view:nn})})},expire:r=>{ut.get(r)?.view.phase==="done"&&dr(r,{view:Hp})}},J0=()=>{Er+=1;for(const r of ut.values())clearTimeout(r.timer);ut.clear(),Io.clear();for(const r of Ao)r()},G0={calm:"idle",listen:"idle",think:"thinking",typing:"typing",eureka:"success",sorry:"fail"},ex={think:"bubble",eureka:"spark",sorry:"drop"},tx=(r,n)=>r==="error"?"sorry":r==="streaming"?n?"typing":"think":"calm",Xp=r=>`${r.replace(/\/+$/,"")}/static/avatars/dana`,rx={animated:!0,assetsBase:Xp("")},hl=x.createContext(rx),ax=()=>x.useContext(hl),Kp=({mood:r="calm",size:n=40,animated:o=!0,label:s,className:d,bare:p})=>{const{animated:f,assetsBase:h}=ax(),m=ex[r],v=b=>`${h}/${b}.webp`;return l.jsxs("span",{className:`dana-av ${p?"":"rounded-[22.5%] bg-[#F3F5FA] ring-1 ring-border"} ${d??""}`.trim(),style:{width:n,height:n},"data-mood":r,"data-animated":o&&f?"":void 0,role:s?"img":void 0,"aria-label":s,"aria-hidden":s?void 0:!0,children:[l.jsx("img",{className:"dana-av-body",src:v(G0[r]),alt:"",decoding:"async",draggable:!1}),m&&l.jsx("img",{className:`dana-av-${m}`,src:v(m),alt:"",decoding:"async",draggable:!1}),r==="typing"&&l.jsxs("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[l.jsx("rect",{x:"189",y:"32",width:"38.4",height:"18.6",rx:"9.3",fill:"#fff",stroke:"#1F3F75",strokeWidth:"1.3"}),[199.9,208.3,216.6].map(b=>l.jsx("circle",{className:"dana-av-dot",cx:b,cy:"41.3",r:"2.6",fill:"#1F3F75"},b))]}),r==="think"&&l.jsx("svg",{className:"dana-av-dots",viewBox:"0 0 240 240","aria-hidden":"true",focusable:"false",children:[26.1,34.4,43.4].map(b=>l.jsx("circle",{className:"dana-av-dot",cx:b,cy:"31.7",r:"1.8",fill:"#1C2B4A"},b))})]})},nx="data:image/webp;base64,UklGRpYIAABXRUJQVlA4IIoIAADQIwCdASpwAHAAPm0uk0akIqGhK9Y72IANiWQAxuvVyV/S/1j9kvbRsf+g5AVFELnbV+aTzb/S5/gPTA6lr0AOl7/vdBQ6Rfgygp2zwU8AJ5XaBQJV0zyK0e/or6Ffqj2D/16POXfH888gDRu18u1KNmLjeGZLr4ZqVBsgkMVoc7x041yO1f02tSm9bXIEMheVf/RC95sCsVfjmj6ZpRJaU0EfkyhyLIKL+4RI2eN+9oPYg2GHTILNrqgZdg1SBnFHnA1Smd6iSfn5pyVe3ojxs8c/LfQnYkJ+3wLZ9OdUZVABr9W6TXOW8qsrvaf/wRx85mXHieeHFKrMQw2YU2wWKYDYaMHzZ8twg9q12hBQ79ZvuvOBUZuIcnX1p+t0A3fD5ZcoLWFAAP737520S//JE2oOadP/5Q45B1okw2bCtFaM+O748Wjvux3RAtWs04/kNzKk8ppPo7yePNJ+AxmgjXPzjaeUNmvG2UQ2x8TUO0Edi4VSjdmoWQ5Vd4+xsz54cTpxyLUlHuEyUiUyryG+WmSkpXT6mxujFjRjxEG1tCbMQVVOfChvnfC8V1rItnZvA7NfHwOA75r6n02xxiv/qbe70ddBODl041drqrVudxVRWfgEhEd7DIL9ok2TdcacHsGGTrvAybKHdFfgZcykgIEHslkMSmxkTB8IoDiH613vvKir02MksykRXvJZjfut5+2IYL6xf+R4g6GNqXNiXitNngYZj/N+cE+Do2m1y2V03crdiRU/5qSn/6ZodaMpMsd3vy8mI1Q1H7rsg+AR2W8D6KaNKIZjkaeeVaB8Qmp87cnwiN6+7hTmWE37fUEcRazbLbFO748ZXg39mzeY7uTvKvoAIzjSEeGX1FzXUZJ4s3+w1IR7c9uP6ATBaNfRJzexpmKP1QVVLzOYKe2NBz8go9mrf8m9lVcADhUVr8BOXG+fMy46SWi6ny/wuDJNbhSMwtqTxcIUAQjWYa1DAE6M93iSC2DUkjdqrEyaURKLpqbowpeHHcMRqhQ3+AHoCEFi0vLc2nCoxfK4WJtPgpPlEcSKUPm7iyiKvPkL1QRHlfdBXno/05iednD/vQtgcTaL1uOdOjD/Sx6ZDh0RooGvKVW+Vttsz2xXhmKPX6Jd7Kl79psRWr7stM2zgdS8kWReL/lI/1BBTnVRzDYZ6fH+fv9lSMhM0GQW36rKIX+/FhQNOc7VR42UaQkam2KJl7HIQX1dPgJUSfnmJwRb6Uc/TUn0/ZaK6kNKrL04IeBGDGC4498SpKPVhJZJ7sjxmJcq9Eq7JCMIF9ZCBBJhT+xedmBqkQoqRomT9viuclt2H6nOtcrEfkdW1QZXwekmNNztzTFFKyjLGjZ9ZX7T9Y87Nrfq/73NX4R7yVR7uDRHH9Z+0rNEJI+peKTZYzPnz6/36AsVNtSuicFfh1b1v0NFT3j31Du9Jdk2hcaCucJwGEAC0c7IIlMXoj9Z0jIeuAwybKlAhd21JC846LajEuSjwTopQ5S7tto3ON6TVq8z5hg7OUq85HTUjcPVWKKvfJFsBljn03iJ/sfIidkMJ/uVS5CXRYuWpR/bryfsfwWdTJyj2f1uve5+qoieJcituK6wtoOXykZvpDQfJ4U9zlojaU93OYITNLrfN/AYJRQV2jcTLK0nOYgn+kvprvetp9RnfQ0VHs94F6/hng2wbFDm9b6mUAg3Hf5nYhvMlfY/Qbdh3ijqNVigPYfw+ix9GjswaLcejjxDgmhuzd4QyBoLvm7v4VT03vKwBk+Gv7ZuLsx8FaYtIYzJCA7Kl8poIDOBqYkMomDkEP5ievaDin4jO246dw4OlZIq3Y+Wira7W5xiEQeVrkuHwPP2eUM1nADmbNfuYbuP0MnNINp7eKOiznGTEThnhJwTWh0f49LlBXl2oYISvB/+X9BadPoy+evraDwmhC+Z5XYaQ6Tvv4GwsRUcjZdzdJsjJuBME2S62+TihY1X6vZMAgjp5R0d8nIy8+pLivBB0RPrqVnceBl8NMpe6yU2vDGpO0TCRd9/UqYMo6gUaVYrS1l7POCpczA0KZHXLjSV5a/fzt/5Z/LzR3dJSaJn3PsUHgXZ4P7z8M1+VF2KShO0wFRx1IZ7KKNb5S6NOUbIrT6+1pzfjwCY/RVV8O9atS1k/ceAStA4rjXzrrbpPTcd3Lk0WuYYe+U2ZOHaQwCFVPo+l0WCK8y5ihO9ync70xx+C6Lq9Df/2C4hz04w8/YyV0Q+5Wsmz0I5ExOL8f5+ji7XEjEZdPLEBLl8kdWWpuR3A0/cfEY5jr1a2o1O+V41P+m194wHcTICK7bDbBUb+/ICvLe1AcyhQ+9yaV7vYFiTy6awXdJEhy65yekSv6TfowRyEHbtJsJezXehZLybqO9HDGzsdFXRBIiVsqvZiUiPhGUejFZ+lF0nJziqfCpnCtUIC9rSN8M+aFckWUJ8vKCA6NKgGkqqVEEG4+vC40rhqgsUXRJ0H/9+y7C6ZGq1ENXqTTXJRWLD83CI8JN2nwOmAMO25yQ6cXpmxjy0inoyoUOZSVsm7MDvbO5vaSJCSvmcZtv7Uat401+l7V6/LB1RZu+iPnSqam3uw/fO44/eI4mLSfsQ7OLArFZQ1ylKfoB/HcgGo7iD+fB6acnYezP3w2NxJLvjc5UtXTlJPMuvkF0Nxyg1QbcjBtUasNt7rvvCTy9lgz8JV0CcH64235Mn4BoBcntan44xuSr8UN58yw/DcWuMjuFt7A3U8U7g2hfjIhJctCIGyLSiInT3A1rZOBW/bGVCM7U7iSdIkwMKpFvtjl/f1cfTlcmVEJolcZLmJWbYIhDbeLnCcbMt3abT1Krt8aNGIzDpLWS2ExTquZsm1ovhXMZgUce3eGDgDEvKs57tBvAZfoWOxP61pG1esNYGstg70/AoPBegAA==",Qp=({size:r,className:n})=>l.jsx("img",{src:nx,alt:"",width:r,height:r,decoding:"async",draggable:!1,className:`shrink-0 rounded-full object-cover ${n??""}`.trim()}),ox=2500,ix=(r,n)=>{const[o,s]=x.useState(!1),[d,p]=x.useState(r);return d!==r&&(p(r),d&&!r&&n==="done"&&s(!0)),x.useEffect(()=>{if(!o)return;const f=window.setTimeout(()=>{s(!1)},ox);return()=>{window.clearTimeout(f)}},[o]),o},sx=12e3,lx=5e3,Yp="aid_mode",Zp=x.createContext(null),G=()=>{const r=x.useContext(Zp);if(!r)throw new Error("useChat outside ChatProvider");return r},gl=(r,n)=>n.kind==="code"?wt(r,`errors.${n.code}`):n.kind==="status"?n.status===0?wt(r,"errors.network"):wt(r,"errors.code",{code:n.status}):wt(r,"errors.generic"),la="temp-thread",cx=(r=null)=>({config:null,configError:!1,configErrorCode:null,health:{},mode:r,threads:[],threadsError:!1,threadsLoaded:!1,thread:null,loadingThread:null,turn:null,limit:{remaining:null,daily:null,blocked:!1,overloaded:!1},notice:null}),ml=(r,n,o)=>r&&{...r,messages:r.messages.map(s=>s.id===n?o(s):s)},dx=(r,n,o)=>{const s=new Map;for(const d of r?.steps??[])typeof d.id=="string"&&typeof d.startedAt=="number"&&s.set(d.id,d.startedAt);return{...n,steps:n.steps.map(d=>({...d,startedAt:s.get(d.id)??o}))}},ux=(r,n)=>{const o=new Date(n).toISOString();return{id:la,title:r.query.slice(0,80),mode:r.mode,pinned:!1,created_at:o,updated_at:o,current_leaf_id:null,messages:[]}},px=r=>({id:r.id,title:r.title,mode:r.mode,pinned:r.pinned,created_at:r.created_at,updated_at:r.updated_at}),fx=["widget_unauthorized","origin_not_allowed","origin_blocked"],hx=r=>r.configError?r.limit.overloaded?"overloaded":r.configErrorCode!==null&&fx.includes(r.configErrorCode)?"siteBlocked":"unavailable":r.config?null:"loading",gx=(r,n)=>{switch(n.type){case"config":{const{config:o}=n,s=o.modes.map(f=>f.slug),d=r.mode&&s.includes(r.mode)?r.mode:s[0]??null,p=o.visitor.remaining_today;return{...r,config:o,configError:!1,configErrorCode:null,mode:d,limit:{remaining:p,daily:o.visitor.daily_limit,blocked:p<=0,overloaded:!1,...p<=0&&(o.visitor.resets_at??r.limit.resetAt)?{resetAt:o.visitor.resets_at??r.limit.resetAt}:{}}}}case"configError":return{...r,configError:!0,configErrorCode:n.code??null,...n.overloaded?{limit:{...r.limit,blocked:!0,overloaded:!0}}:{}};case"health":return{...r,health:n.health};case"mode":return{...r,mode:n.mode};case"threads":return{...r,threads:n.threads,threadsError:!1,threadsLoaded:!0};case"threadsError":return{...r,threadsError:!0,threadsLoaded:!0};case"threadLoading":return{...r,loadingThread:n.id};case"thread":{if(r.turn&&r.thread?.id===n.thread.id||r.loadingThread!==n.thread.id&&r.thread?.id!==n.thread.id)return r;const o=r.config?.modes.map(s=>s.slug)??[];return{...r,thread:n.thread,loadingThread:null,mode:o.includes(n.thread.mode)?n.thread.mode:r.mode}}case"threadFailed":return r.loadingThread===n.id?{...r,loadingThread:null,notice:{kind:"error",reason:n.reason}}:r;case"newChat":return{...r,thread:null,loadingThread:null,turn:null,notice:null};case"threadDeleted":{const o=r.thread?.id===n.id;return{...r,threads:r.threads.filter(s=>s.id!==n.id),...o?{thread:null,turn:null}:{}}}case"turnStart":{const{request:o,token:s,at:d}=n,p=r.thread??ux(o,d),{user:f,assistant:h}=m0(o,p);return{...r,notice:null,thread:{...p,current_leaf_id:h.id,messages:[...p.messages,...f?[f]:[],h]},turn:{token:s,assistantId:h.id,...f?{userId:f.id}:{},startedAt:d,adopted:!1,previousLeaf:p.current_leaf_id,optimisticIds:[h.id,...f?[f.id]:[]]}}}case"resumeStart":return{...r,turn:{token:n.token,assistantId:n.messageId,startedAt:n.at,adopted:!0,previousLeaf:r.thread?.current_leaf_id??null,optimisticIds:[]}};case"adopt":{const{turn:o,thread:s}=r;if(o?.token!==n.token||o.adopted||!s)return r;const{metadata:d}=n,p=s.id===la,f=b0(s,{...o.userId?{userId:o.userId}:{},assistantId:o.assistantId},d),h=r.limit.remaining===null?null:Math.max(0,r.limit.remaining-1);return{...r,thread:f,threads:p?[px(f),...r.threads.filter(m=>m.id!==f.id)]:r.threads,turn:{...o,adopted:!0,assistantId:d.assistantMessageId,...o.userId?{userId:d.userMessageId}:{}},limit:{...r.limit,remaining:h}}}case"snapshot":{const{turn:o}=r;if(o?.token!==n.token)return r;const s=r.thread?.messages.find(p=>p.id===o.assistantId),d=dx(s,n.snapshot,n.at);return{...r,thread:ml(r.thread,o.assistantId,p=>x0(p,d))}}case"turnEnd":{const{turn:o}=r;if(o?.token!==n.token)return r;const s=n.status==="detached"?r.thread:ml(r.thread,o.assistantId,d=>v0(d,n.status,n.errorText,o.startedAt));return{...r,thread:s,turn:null,limit:{...r.limit,blocked:r.limit.blocked||r.limit.remaining===0}}}case"turnStopping":return r.turn?.token===n.token?{...r,turn:{...r.turn,stopping:!0}}:r;case"turnRejected":{const{turn:o,thread:s}=r;if(o?.token!==n.token)return r;const d=new Set(o.optimisticIds),p=s?.messages.filter(j=>!d.has(j.id))??[],f=s&&(s.id!==la||p.length>0)?{...s,current_leaf_id:o.previousLeaf,messages:p}:null,{error:h}=n,m=h.status===429&&h.code==="daily_limit",v=h.status===503&&h.code==="anon_budget";let b=r.limit;return m?b={...b,remaining:0,blocked:!0,...h.resetAt?{resetAt:h.resetAt}:{}}:v&&(b={...b,blocked:!0,overloaded:!0}),{...r,thread:f,turn:null,notice:m||v?null:{kind:"error",reason:h.reason},limit:b}}case"leaf":return r.thread?{...r,thread:{...r.thread,current_leaf_id:n.leafId}}:r;case"rating":return{...r,thread:ml(r.thread,n.messageId,o=>({...o,rating:n.rating,...n.feedback!==void 0?{feedback:n.feedback}:{},...n.feedbackReason!==void 0?{feedback_reason:n.feedbackReason}:{}}))};case"notice":return{...r,notice:n.notice}}},bl=r=>{const n=r?r.messages.map(Np):[],o=_p(n),s=Mp(o,r?.current_leaf_id??null);return{index:o,path:s?u0(o,s):[]}},mx=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bx=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,o,s)=>s?s.toUpperCase():o.toLowerCase()),Jp=r=>{const n=bx(r);return n.charAt(0).toUpperCase()+n.slice(1)},Gp=(...r)=>r.filter((n,o,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===o).join(" ").trim(),xx=r=>{for(const n in r)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var vx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yx=x.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:d="",children:p,iconNode:f,...h},m)=>x.createElement("svg",{ref:m,...vx,width:n,height:n,stroke:r,strokeWidth:s?Number(o)*24/Number(n):o,className:Gp("lucide",d),...!p&&!xx(h)&&{"aria-hidden":"true"},...h},[...f.map(([v,b])=>x.createElement(v,b)),...Array.isArray(p)?p:[p]])),le=(r,n)=>{const o=x.forwardRef(({className:s,...d},p)=>x.createElement(yx,{ref:p,iconNode:n,className:Gp(`lucide-${mx(Jp(r))}`,`lucide-${r}`,s),...d}));return o.displayName=Jp(r),o},wx=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],ef=le("arrow-down",wx),kx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],jx=le("arrow-right",kx),Sx=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Cx=le("arrow-up-down",Sx),Nx=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],tf=le("arrow-up",Nx),Ex=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Oo=le("book-open",Ex),zx=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],_x=le("bot",zx),Rx=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["rect",{x:"15",y:"5",width:"4",height:"12",rx:"1",key:"q8uenq"}],["rect",{x:"7",y:"8",width:"4",height:"9",rx:"1",key:"sr5ea"}]],Mx=le("chart-column-big",Rx),Px=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zr=le("check",Px),Lx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ca=le("chevron-down",Lx),Dx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rf=le("chevron-left",Dx),Tx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$o=le("chevron-right",Tx),Ix=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_r=le("circle-alert",Ix),Ax=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],af=le("circle-minus",Ax),Ox=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],xl=le("clock",Ox),$x=[["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"}]],vl=le("copy",$x),Fx=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ux=le("database",Fx),qx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],nf=le("download",qx),Vx=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],yl=le("external-link",Vx),Bx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]],Wx=le("file-chart-column-increasing",Bx),Hx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Xx=le("file-down",Hx),Kx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Qx=le("file-text",Kx),Yx=[["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"}]],Zx=le("globe",Yx),Jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],of=le("info",Jx),Gx=[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]],ev=le("landmark",Gx),tv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Rr=le("loader-circle",tv),rv=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],sf=le("lock",rv),av=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],nv=le("map",av),ov=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],lf=le("maximize-2",ov),iv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],sv=le("message-circle-question",iv),lv=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],cv=le("message-circle",lv),dv=[["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"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],cf=le("message-square-text",dv),uv=[["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"}]],df=le("message-square",uv),pv=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],uf=le("minimize-2",pv),fv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],hv=le("panel-left-close",fv),gv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],mv=le("panel-left",gv),bv=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],xv=le("paperclip",bv),vv=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],pf=le("pen-line",vv),yv=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],wv=le("pencil",yv),kv=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],jv=le("receipt",kv),Sv=[["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"}]],ff=le("rotate-ccw",Sv),Cv=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],hf=le("rotate-cw",Cv),Nv=[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]],Ev=le("scale",Nv),zv=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],sn=le("search",zv),_v=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rv=le("settings",_v),Mv=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],wl=le("sparkles",Mv),Pv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],gf=le("square",Pv),Lv=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Dv=le("star",Lv),Tv=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],Iv=le("table-2",Tv),Av=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ov=le("trash-2",Av),$v=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fo=le("triangle-alert",$v),Fv=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],Uv=le("trending-up",Fv),qv=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Vv=le("users",qv),Bv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ln=le("x",Bv);function mf(r){var n,o,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(o=mf(r[n]))&&(s&&(s+=" "),s+=o);else for(n in r)r[n]&&(s&&(s+=" "),s+=n);return s}function Wv(){for(var r,n,o=0,s="";o<arguments.length;)(r=arguments[o++])&&(n=mf(r))&&(s&&(s+=" "),s+=n);return s}const kl="-",Hv=r=>{const n=Kv(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=r;return{getClassGroupId:d=>{const p=d.split(kl);return p[0]===""&&p.length!==1&&p.shift(),bf(p,n)||Xv(d)},getConflictingClassGroupIds:(d,p)=>{const f=o[d]||[];return p&&s[d]?[...f,...s[d]]:f}}},bf=(r,n)=>{if(r.length===0)return n.classGroupId;const o=r[0],s=n.nextPart.get(o),d=s?bf(r.slice(1),s):void 0;if(d)return d;if(n.validators.length===0)return;const p=r.join(kl);return n.validators.find(({validator:f})=>f(p))?.classGroupId},xf=/^\[(.+)\]$/,Xv=r=>{if(xf.test(r)){const n=xf.exec(r)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},Kv=r=>{const{theme:n,prefix:o}=r,s={nextPart:new Map,validators:[]};return Yv(Object.entries(r.classGroups),o).forEach(([d,p])=>{jl(p,s,d,n)}),s},jl=(r,n,o,s)=>{r.forEach(d=>{if(typeof d=="string"){const p=d===""?n:vf(n,d);p.classGroupId=o;return}if(typeof d=="function"){if(Qv(d)){jl(d(s),n,o,s);return}n.validators.push({validator:d,classGroupId:o});return}Object.entries(d).forEach(([p,f])=>{jl(f,vf(n,p),o,s)})})},vf=(r,n)=>{let o=r;return n.split(kl).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Qv=r=>r.isThemeGetter,Yv=(r,n)=>n?r.map(([o,s])=>{const d=s.map(p=>typeof p=="string"?n+p:typeof p=="object"?Object.fromEntries(Object.entries(p).map(([f,h])=>[n+f,h])):p);return[o,d]}):r,Zv=r=>{if(r<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,s=new Map;const d=(p,f)=>{o.set(p,f),n++,n>r&&(n=0,s=o,o=new Map)};return{get(p){let f=o.get(p);if(f!==void 0)return f;if((f=s.get(p))!==void 0)return d(p,f),f},set(p,f){o.has(p)?o.set(p,f):d(p,f)}}},yf="!",Jv=r=>{const{separator:n,experimentalParseClassName:o}=r,s=n.length===1,d=n[0],p=n.length,f=h=>{const m=[];let v=0,b=0,j;for(let M=0;M<h.length;M++){let F=h[M];if(v===0){if(F===d&&(s||h.slice(M,M+p)===n)){m.push(h.slice(b,M)),b=M+p;continue}if(F==="/"){j=M;continue}}F==="["?v++:F==="]"&&v--}const k=m.length===0?h:h.substring(b),S=k.startsWith(yf),z=S?k.substring(1):k,E=j&&j>b?j-b:void 0;return{modifiers:m,hasImportantModifier:S,baseClassName:z,maybePostfixModifierPosition:E}};return o?h=>o({className:h,parseClassName:f}):f},Gv=r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(s=>{s[0]==="["?(n.push(...o.sort(),s),o=[]):o.push(s)}),n.push(...o.sort()),n},e1=r=>({cache:Zv(r.cacheSize),parseClassName:Jv(r),...Hv(r)}),t1=/\s+/,r1=(r,n)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:d}=n,p=[],f=r.trim().split(t1);let h="";for(let m=f.length-1;m>=0;m-=1){const v=f[m],{modifiers:b,hasImportantModifier:j,baseClassName:k,maybePostfixModifierPosition:S}=o(v);let z=!!S,E=s(z?k.substring(0,S):k);if(!E){if(!z){h=v+(h.length>0?" "+h:h);continue}if(E=s(k),!E){h=v+(h.length>0?" "+h:h);continue}z=!1}const M=Gv(b).join(":"),F=j?M+yf:M,Z=F+E;if(p.includes(Z))continue;p.push(Z);const oe=d(E,z);for(let J=0;J<oe.length;++J){const re=oe[J];p.push(F+re)}h=v+(h.length>0?" "+h:h)}return h};function a1(){let r=0,n,o,s="";for(;r<arguments.length;)(n=arguments[r++])&&(o=wf(n))&&(s&&(s+=" "),s+=o);return s}const wf=r=>{if(typeof r=="string")return r;let n,o="";for(let s=0;s<r.length;s++)r[s]&&(n=wf(r[s]))&&(o&&(o+=" "),o+=n);return o};function n1(r,...n){let o,s,d,p=f;function f(m){const v=n.reduce((b,j)=>j(b),r());return o=e1(v),s=o.cache.get,d=o.cache.set,p=h,h(m)}function h(m){const v=s(m);if(v)return v;const b=r1(m,o);return d(m,b),b}return function(){return p(a1.apply(null,arguments))}}const Pe=r=>{const n=o=>o[r]||[];return n.isThemeGetter=!0,n},kf=/^\[(?:([a-z-]+):)?(.+)\]$/i,o1=/^\d+\/\d+$/,i1=new Set(["px","full","screen"]),s1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l1=/\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$/,c1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,d1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,u1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bt=r=>da(r)||i1.has(r)||o1.test(r),ur=r=>ua(r,"length",v1),da=r=>!!r&&!Number.isNaN(Number(r)),Sl=r=>ua(r,"number",da),cn=r=>!!r&&Number.isInteger(Number(r)),p1=r=>r.endsWith("%")&&da(r.slice(0,-1)),we=r=>kf.test(r),pr=r=>s1.test(r),f1=new Set(["length","size","percentage"]),h1=r=>ua(r,f1,jf),g1=r=>ua(r,"position",jf),m1=new Set(["image","url"]),b1=r=>ua(r,m1,w1),x1=r=>ua(r,"",y1),dn=()=>!0,ua=(r,n,o)=>{const s=kf.exec(r);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):o(s[2]):!1},v1=r=>l1.test(r)&&!c1.test(r),jf=()=>!1,y1=r=>d1.test(r),w1=r=>u1.test(r),k1=()=>{const r=Pe("colors"),n=Pe("spacing"),o=Pe("blur"),s=Pe("brightness"),d=Pe("borderColor"),p=Pe("borderRadius"),f=Pe("borderSpacing"),h=Pe("borderWidth"),m=Pe("contrast"),v=Pe("grayscale"),b=Pe("hueRotate"),j=Pe("invert"),k=Pe("gap"),S=Pe("gradientColorStops"),z=Pe("gradientColorStopPositions"),E=Pe("inset"),M=Pe("margin"),F=Pe("opacity"),Z=Pe("padding"),oe=Pe("saturate"),J=Pe("scale"),re=Pe("sepia"),$=Pe("skew"),X=Pe("space"),K=Pe("translate"),he=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",we,n],W=()=>[we,n],Q=()=>["",Bt,ur],be=()=>["auto",da,we],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",we],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[da,we];return{cacheSize:500,separator:":",theme:{colors:[dn],spacing:[Bt,ur],blur:["none","",pr,we],brightness:w(),borderColor:[r],borderRadius:["none","","full",pr,we],borderSpacing:W(),borderWidth:Q(),contrast:w(),grayscale:D(),hueRotate:w(),invert:D(),gap:W(),gradientColorStops:[r],gradientColorStopPositions:[p1,ur],inset:ue(),margin:ue(),opacity:w(),padding:W(),saturate:w(),scale:w(),sepia:D(),skew:w(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",we]}],container:["container"],columns:[{columns:[pr]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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"],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:[...Ne(),we]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:he()}],"overscroll-x":[{"overscroll-x":he()}],"overscroll-y":[{"overscroll-y":he()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",cn,we]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",we]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",cn,we]}],"grid-cols":[{"grid-cols":[dn]}],"col-start-end":[{col:["auto",{span:["full",cn,we]},we]}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":[dn]}],"row-start-end":[{row:["auto",{span:[cn,we]},we]}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",we]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",we]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Z]}],px:[{px:[Z]}],py:[{py:[Z]}],ps:[{ps:[Z]}],pe:[{pe:[Z]}],pt:[{pt:[Z]}],pr:[{pr:[Z]}],pb:[{pb:[Z]}],pl:[{pl:[Z]}],m:[{m:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",we,n]}],"min-w":[{"min-w":[we,n,"min","max","fit"]}],"max-w":[{"max-w":[we,n,"none","full","min","max","fit","prose",{screen:[pr]},pr]}],h:[{h:[we,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[we,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[we,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[we,n,"auto","min","max","fit"]}],"font-size":[{text:["base",pr,ur]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sl]}],"font-family":[{font:[dn]}],"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:["tighter","tight","normal","wide","wider","widest",we]}],"line-clamp":[{"line-clamp":["none",da,Sl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Bt,we]}],"list-image":[{"list-image":["none",we]}],"list-style-type":[{list:["none","disc","decimal",we]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Bt,ur]}],"underline-offset":[{"underline-offset":["auto",Bt,we]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),g1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",h1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b1]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[z]}],"gradient-via-pos":[{via:[z]}],"gradient-to-pos":[{to:[z]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[p]}],"rounded-s":[{"rounded-s":[p]}],"rounded-e":[{"rounded-e":[p]}],"rounded-t":[{"rounded-t":[p]}],"rounded-r":[{"rounded-r":[p]}],"rounded-b":[{"rounded-b":[p]}],"rounded-l":[{"rounded-l":[p]}],"rounded-ss":[{"rounded-ss":[p]}],"rounded-se":[{"rounded-se":[p]}],"rounded-ee":[{"rounded-ee":[p]}],"rounded-es":[{"rounded-es":[p]}],"rounded-tl":[{"rounded-tl":[p]}],"rounded-tr":[{"rounded-tr":[p]}],"rounded-br":[{"rounded-br":[p]}],"rounded-bl":[{"rounded-bl":[p]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...ve(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:ve()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[Bt,we]}],"outline-w":[{outline:[Bt,ur]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[Bt,ur]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",pr,x1]}],"shadow-color":[{shadow:[dn]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",pr,we]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[j]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[f]}],"border-spacing-x":[{"border-spacing-x":[f]}],"border-spacing-y":[{"border-spacing-y":[f]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",we]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",we]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",we]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[cn,we]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",we]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],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",we]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"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",we]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[Bt,ur,Sl]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},j1=n1(k1),B=(...r)=>j1(Wv(r));x.createContext(!0),x.createContext(!1);const Cl="opacity-0 transition-opacity motion-reduce:transition-none group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",Sf=120,S1=200,Cf=".xls,.xlsx,.csv,.txt,.md",Nl=2e3,Nf=["wrong_number","wrong_indicator","wrong_territory","wrong_period","not_answered","language","slow","other"],Ef=[1,2,3],zf=r=>r==null?null:Math.min(r,Ef.length),pa=r=>{const n=r?.trim();if(!n)return null;if(n.startsWith("#"))return n;if(!/^https?:\/\//i.test(n))return null;try{return new URL(n),n}catch{return null}},_f=r=>r.replace(/[\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),El=async r=>{try{return await navigator.clipboard.writeText(r),!0}catch{return C1(r)}},C1=r=>{const n=document.createElement("textarea");n.value=r,n.setAttribute("readonly",""),n.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.appendChild(n),n.select();try{return document.execCommand("copy")}catch{return!1}finally{n.remove()}},N1=(r,n)=>{const o=document.createElement("a");o.href=r,o.download=n,o.rel="noopener",o.style.display="none",document.body.append(o),o.click(),o.remove(),window.setTimeout(()=>{URL.revokeObjectURL(r)},6e4)},E1=["group.pinned","group.today","group.yesterday","group.week","group.earlier"],Rf=864e5,z1=(r,n=new Date)=>{const o=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),s=new Map;for(const d of r){const p=new Date(d.updated_at).getTime();let f;d.pinned?f="group.pinned":p>=o?f="group.today":p>=o-Rf?f="group.yesterday":p>=o-7*Rf?f="group.week":f="group.earlier",s.set(f,[...s.get(f)??[],d])}return E1.flatMap(d=>{const p=s.get(d);return p?[[d,p]]:[]})},Uo={text:2e5,steps:500,blocks:100,attachments:50},Mf=r=>r.text.length>Uo.text||r.steps.length>Uo.steps||r.blocks.length>Uo.blocks||r.attachments.length>Uo.attachments,_1=r=>r.code==="ip_limit"?{kind:"code",code:"ip_limit"}:Po(r),Pf=()=>{try{return window.localStorage}catch{return null}},R1=()=>{try{return Pf()?.getItem(Yp)??null}catch{return null}},M1=r=>r instanceof TypeError,P1=({api:r,lang:n,open:o,onAdminTheme:s,children:d})=>{const[p,f]=x.useReducer(gx,null,()=>cx(R1())),h=x.useRef(p),m=x.useRef(null),v=x.useRef(0),b=x.useRef(n),j=x.useRef(s);x.useLayoutEffect(()=>{h.current=p,b.current=n,j.current=s});const k=x.useCallback(()=>{r.threads().then(D=>{f({type:"threads",threads:D})},()=>{f({type:"threadsError"})})},[r]),S=x.useCallback(()=>{r.config().then(D=>{f({type:"config",config:D}),j.current(L0(D.site.theme)),r.adoptVisitor(D.visitor.token)&&k()},D=>{const T=D instanceof Ge&&D.status===503,w=D instanceof Ge?D.code:null;f({type:"configError",...T?{overloaded:T}:{},...w?{code:w}:{}})})},[r,k]),z=x.useCallback(D=>{r.thread(D).then(T=>{f({type:"thread",thread:T})},()=>{})},[r]);x.useEffect(()=>{S(),k()},[S,k]);const E=p.config!==null;x.useEffect(()=>{if(!o||!E)return;const D=()=>{typeof document<"u"&&document.visibilityState==="hidden"||r.health().then(w=>{f({type:"health",health:w})},()=>{})};D();const T=window.setInterval(D,sx);return window.addEventListener("focus",D),()=>{window.clearInterval(T),window.removeEventListener("focus",D)}},[r,o,E]);const M=x.useCallback(()=>{m.current?.controller.abort(),m.current=null},[]);x.useEffect(()=>M,[M]);const F=D=>{const T={token:++v.current,controller:new AbortController,stopRequested:!1,...D?{assistantId:D}:{}};return m.current=T,T},Z=(D,T)=>D.stopRequested?"stopped":D.tooBig?"error":D.controller.signal.aborted?"detached":T?"error":"done",oe=D=>{m.current===D&&(m.current=null)},J=(D,T,w)=>{oe(D),k(),w&&T&&T!==la&&z(T)},re=x.useCallback(async D=>{const T=h.current;if(T.turn||m.current||T.limit.blocked)return"busy";const w=T.thread&&T.thread.id!==la?T.thread.id:void 0,L=F(),{token:H}=L;f({type:"turnStart",token:H,request:D,at:Date.now()});let V=w;const pe=xe=>{if(Mf(xe)){L.tooBig=!0,L.controller.abort();return}xe.metadata&&L.assistantId===void 0&&(L.assistantId=xe.metadata.assistantMessageId,V=xe.metadata.threadId,f({type:"adopt",token:H,metadata:xe.metadata})),f({type:"snapshot",token:H,snapshot:xe,at:Date.now()})};let fe,Se=!1;try{const{streamChatAnswer:xe}=await import("./stream-entry-YMTCTel8.js");await xe({transport:r.transport,request:D,...w?{threadId:w}:{},signal:L.controller.signal,onSnapshot:pe})}catch(xe){Se=!0,fe=xe}if(L.assistantId===void 0&&(fe instanceof Ge||M1(fe))){const xe=fe instanceof Ge?fe:new Ge(0,"network",null);return f({type:"turnRejected",token:H,error:{status:xe.status,code:xe.code,resetAt:xe.resetAt,reason:_1(xe)}}),oe(L),xe.status===429&&S(),"rejected"}const ke=Z(L,Se);return f({type:"turnEnd",token:H,status:ke,errorText:ke==="error"?gl(b.current,Po(fe)):""}),J(L,V,ke==="done"||ke==="stopped"),"sent"},[r,S,k,z]),$=x.useCallback(async(D,T)=>{if(m.current)return;const w=F(T),{token:L}=w;f({type:"resumeStart",token:L,messageId:T,at:Date.now()});let H,V=!1;try{const{resumeChatAnswer:fe}=await import("./stream-entry-YMTCTel8.js");await fe(r.transport,T,w.controller.signal,Se=>{if(Mf(Se)){w.tooBig=!0,w.controller.abort();return}f({type:"snapshot",token:L,snapshot:Se,at:Date.now()})})}catch(fe){V=!0,H=fe}if(H instanceof Ge){f({type:"turnEnd",token:L,status:"detached",errorText:""}),J(w,D.id,!0);return}const pe=Z(w,V);f({type:"turnEnd",token:L,status:pe,errorText:pe==="error"?gl(b.current,Po(H)):""}),J(w,D.id,pe==="done"||pe==="stopped")},[r,k,z]),X=x.useCallback(()=>{const D=m.current;if(!D)return;if(D.stopRequested=!0,f({type:"turnStopping",token:D.token}),D.assistantId===void 0){D.controller.abort();return}const T=window.setTimeout(()=>{D.controller.abort()},lx);D.controller.signal.addEventListener("abort",()=>{window.clearTimeout(T)},{once:!0}),r.stop(D.assistantId).catch(()=>{D.controller.abort()})},[r]),K=x.useCallback(D=>{h.current.thread?.id!==D&&(M(),f({type:"newChat"}),f({type:"threadLoading",id:D}),r.thread(D).then(T=>{f({type:"thread",thread:T});const{path:w}=bl(T),L=w[w.length-1];L?.role==="assistant"&&L.status==="streaming"&&$(T,L.id)},T=>{f({type:"threadFailed",id:D,reason:Po(T)})}))},[r,M,$]),he=x.useCallback(()=>{M(),f({type:"newChat"})},[M]),ee=x.useCallback(async D=>{try{await r.deleteThread(D),h.current.thread?.id===D&&M(),f({type:"threadDeleted",id:D})}catch{f({type:"notice",notice:{kind:"text",key:"deleteError"}})}},[r,M]),ue=x.useMemo(()=>bl(p.thread),[p.thread]),W=x.useCallback(D=>{const{thread:T}=h.current;if(!T||h.current.turn)return;const w=Rp(bl(T).index,D),L=T.current_leaf_id;!w||w===L||(f({type:"leaf",leafId:w}),r.setLeaf(T.id,w).catch(()=>{f({type:"leaf",leafId:L}),f({type:"notice",notice:{kind:"text",key:"branch.error"}})}))},[r]),Q=x.useCallback((D,T)=>{const w=h.current.thread?.messages.find(V=>V.id===D);if(!w)return;const L=w.rating,H=T===zf(L)?null:T;f({type:"rating",messageId:D,rating:H}),r.rate(D,H).catch(()=>{f({type:"rating",messageId:D,rating:L}),f({type:"notice",notice:{kind:"text",key:"ratingError"}})})},[r]),be=x.useCallback(async(D,T,w)=>{const L=h.current.thread?.messages.find(H=>H.id===D);try{return await r.feedback(D,T,w),f({type:"rating",messageId:D,rating:L?.rating??null,feedback:T,feedbackReason:w??""}),!0}catch{return!1}},[r]),Ne=x.useCallback(D=>{f({type:"mode",mode:D});try{Pf()?.setItem(Yp,D)}catch{}},[]),ve=x.useCallback(()=>{f({type:"notice",notice:null})},[]),ye=x.useCallback((D,T)=>wt(n,D,T),[n]),U=x.useMemo(()=>({state:p,lang:n,api:r,t:ye,path:ue.path,index:ue.index,send:re,stop:X,openThread:K,newChat:he,deleteThread:ee,refreshThreads:k,switchBranch:W,rate:Q,saveFeedback:be,selectMode:Ne,reload:()=>{S(),k()},dismissNotice:ve}),[p,n,r,ye,ue,re,X,K,he,ee,k,W,Q,be,Ne,S,ve]);return l.jsx(Zp.Provider,{value:U,children:d})},zl=r=>x.useSyncExternalStore(n=>{if(typeof matchMedia>"u")return()=>{};const o=matchMedia(r);return o.addEventListener("change",n),()=>{o.removeEventListener("change",n)}},()=>typeof matchMedia<"u"&&matchMedia(r).matches,()=>!1),L1=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),D1=(r,n)=>{if(r.getAttribute("tabindex")==="-1"||r.getAttribute("aria-hidden")==="true"||getComputedStyle(r).visibility==="hidden")return!1;for(let o=r;o;o=o.parentElement){if(o.hasAttribute("inert")||o.hasAttribute("hidden")||getComputedStyle(o).display==="none")return!1;if(o===n)break}return!n.closest("[inert]")},Lf=r=>Array.from(r.querySelectorAll(L1)).filter(n=>D1(n,r)),Mr=(r,n)=>{x.useLayoutEffect(()=>{r.current?.toggleAttribute("inert",n)},[r,n])},Df=r=>{const n=r.getRootNode();return n instanceof ShadowRoot||n instanceof Document?n.activeElement:null},qo=(r,n,o)=>{const s=x.useRef(o);x.useEffect(()=>{s.current=o}),x.useEffect(()=>{const d=r.current;if(!n||!d)return;const p=Df(d);(d.querySelector("[data-autofocus]")??Lf(d)[0])?.focus({preventScroll:!0});const f=h=>{if(h.key!=="Tab")return;const m=Lf(d),v=m[0],b=m[m.length-1];if(!v||!b){h.preventDefault();return}const j=Df(d);h.shiftKey&&(j===v||!d.contains(j))?(h.preventDefault(),b.focus()):!h.shiftKey&&(j===b||!d.contains(j))&&(h.preventDefault(),v.focus())};return d.addEventListener("keydown",f),()=>{d.removeEventListener("keydown",f),((p instanceof HTMLElement&&p.tagName!=="BODY"&&p.isConnected&&!d.contains(p)?p:null)??s.current?.())?.focus({preventScroll:!0})}},[r,n])},T1=8,I1=9,fr=(r,n)=>r.find(o=>o.kind===n),Tf=r=>r.filter(n=>n.kind==="report").at(-1),A1=r=>r.filter(n=>n.kind==="export").flatMap(n=>n.files),O1=(r,n)=>{const o=r.findIndex(p=>p.id===n),s=o>0?r[o-1]:void 0,d=o>=0?r[o+1]:void 0;return{question:s?.role==="user"?s.content:"",reply:d?.role==="user"?d.content:""}},$1=500,F1=(r,n,o)=>{const s=n.trim();if(s.length<1||s.length>$1)return;const d=r[r.length-1];if(d?.role!=="assistant")return;const p=fr(d.blocks,"clarification");if(p?.allow_free_text&&mp(p,{isLastInBranch:!0,now:o})==="open")return{clarification_id:p.id,slot:p.slot,value:null,free_text:s}},U1=r=>{if(!(r instanceof HTMLElement))return!1;if(r.isContentEditable)return!0;const n=r.tagName;return n==="TEXTAREA"||n==="SELECT"||n==="INPUT"&&!["button","checkbox","radio"].includes(r.type)},q1=r=>typeof r=="number"&&Number.isFinite(r)?r:null,_l=r=>typeof r=="string"?r:typeof r=="number"&&Number.isFinite(r)?String(r):"",un={messageId:null,sectionId:null,fullscreen:!1,view:"chat"},Rl=(r,n=null)=>({messageId:r,sectionId:n,fullscreen:!1,view:"dashboard"}),If=x.createContext(null),Pr=()=>{},V1={state:un,open:Pr,toggle:Pr,autoOpen:Pr,close:Pr,setSection:Pr,setFullscreen:Pr,setView:Pr},Lr=()=>x.useContext(If)??V1,B1=1200;function W1(r){const{state:n,setFullscreen:o,close:s}=Lr(),d=x.useRef({fullscreen:n.fullscreen,setFullscreen:o,close:s});x.useEffect(()=>{d.current={fullscreen:n.fullscreen,setFullscreen:o,close:s}}),x.useEffect(()=>{if(!r)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;f.preventDefault();const h=d.current;h.fullscreen?h.setFullscreen(!1):h.close()};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[r])}const H1=(r,n,o)=>r&&!n&&!o,X1=()=>{const{t:r}=G(),{state:n,setView:o}=Lr(),s=(d,p)=>l.jsx("button",{type:"button",role:"tab","aria-selected":n.view===d,onClick:()=>{o(d)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",n.view===d?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:p});return l.jsxs("div",{part:"dashboard-tabs",role:"tablist","aria-label":r("dashboard.view"),className:"inline-flex shrink-0 gap-0.5 rounded-md border bg-background p-0.5",children:[s("chat",r("dashboard.chatTab")),s("dashboard",r("dashboard.dashboardTab"))]})},K1=({wide:r,chat:n,panel:o,onPanelFocusChange:s})=>{const{state:d}=Lr(),{view:p,fullscreen:f}=d,h=o!=null,m=h&&!r&&p==="dashboard",v=h&&!r&&p==="chat"&&!f,b=x.useRef(null);return Mr(b,h&&f),l.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1",children:[l.jsx("div",{ref:b,hidden:m,className:B("relative min-h-0 min-w-0 flex-1 flex-col",m?"hidden":"flex"),children:n}),h?l.jsx("aside",{part:"dashboard","data-fullscreen":f,hidden:v,onFocus:()=>{s?.(!0)},onBlur:j=>{j.currentTarget.contains(j.relatedTarget)||s?.(!1)},className:B("min-h-0 min-w-0 flex-col bg-background",v?"hidden":"flex",f&&"absolute inset-0 z-30",!f&&r&&"w-1/2 min-w-[480px] shrink-0 border-l",!f&&!r&&"flex-1 border-t"),children:o}):null]})};var Q1=Object.defineProperty,Ml=(r,n)=>Q1(r,"name",{value:n,configurable:!0});function Pl(r,n){if(typeof r=="function")return r(n);r!=null&&(r.current=n)}Ml(Pl,"setRef");function Af(...r){return n=>{let o=!1;const s=r.map(d=>{const p=Pl(d,n);return!o&&typeof p=="function"&&(o=!0),p});if(o)return()=>{for(let d=0;d<s.length;d++){const p=s[d];typeof p=="function"?p():Pl(r[d],null)}}}}Ml(Af,"composeRefs");function Of(...r){return x.useCallback(Af(...r),r)}Ml(Of,"useComposedRefs");var Y1=Object.defineProperty,pt=(r,n)=>Y1(r,"name",{value:n,configurable:!0});function $f(r){const n=x.forwardRef((o,s)=>{let{children:d,...p}=o,f=null,h=!1;const m=[];d=Wf(d),x.Children.forEach(d,k=>{if(Vf(k)){h=!0;const S=k;let z="child"in S.props?S.props.child:S.props.children;for(;Ll(z)&&typeof Vo=="function";)z=Vo(z._payload);f=G1(S,z),m.push(f?.props?.children)}else m.push(k)}),f?f=x.cloneElement(f,void 0,m):!h&&x.Children.count(d)===1&&x.isValidElement(d)&&(f=d);const v=f?qf(f):void 0,b=Of(s,v);if(!f){if(d||d===0)throw new Error(h?ry(r):ty(r));return d}const j=Uf(p,f.props??{});return f.type!==x.Fragment&&(j.ref=s?b:v),x.cloneElement(f,j)});return n.displayName=`${r}.Slot`,n}pt($f,"createSlot");var Z1=$f("Slot"),Ff=Symbol.for("radix.slottable");function J1(r){const n=pt(o=>"child"in o?o.children(o.child):o.children,"Slottable");return n.displayName=`${r}.Slottable`,n.__radixId=Ff,n}pt(J1,"createSlottable");var G1=pt((r,n)=>"child"in r.props?x.isValidElement(n)?x.cloneElement(n,void 0,r.props.children(n.props.children)):null:x.isValidElement(n)?n:null,"getSlottableElementFromSlottable");function Uf(r,n){const o={...n};for(const s in n){const d=r[s],p=n[s];/^on[A-Z]/.test(s)?d&&p?o[s]=(...f)=>{const h=p(...f);return d(...f),h}:d&&(o[s]=d):s==="style"?o[s]={...d,...p}:s==="className"?o[s]=[d,p].filter(Boolean).join(" "):s==="aria-describedby"&&(o[s]=Hf(p,d))}return{...r,...o}}pt(Uf,"mergeProps");function qf(r){let n=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?r.ref:(n=Object.getOwnPropertyDescriptor(r,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?r.props.ref:r.props.ref||r.ref)}pt(qf,"getElementRef");function Vf(r){return x.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Ff}pt(Vf,"isSlottable");var ey=Symbol.for("react.lazy");function Ll(r){return r!=null&&typeof r=="object"&&"$$typeof"in r&&r.$$typeof===ey&&"_payload"in r&&Bf(r._payload)}pt(Ll,"isLazyComponent");function Bf(r){return typeof r=="object"&&r!==null&&"then"in r}pt(Bf,"isPromiseLike");function Wf(r){let n=r;for(;Ll(n)&&typeof Vo=="function";)n=Vo(n._payload);return n}pt(Wf,"useUnwrappedLazy");function Hf(...r){const n=new Set;for(const o of r)if(typeof o=="string")for(const s of String(o).trim().split(/\s+/))s&&n.add(s);return n.size>0?Array.from(n).join(" "):void 0}pt(Hf,"concatAriaDescribedby");var ty=pt(r=>`${r} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ry=pt(r=>`${r} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Vo=gb[" use ".trim().toString()];function Xf(r){var n,o,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var d=r.length;for(n=0;n<d;n++)r[n]&&(o=Xf(r[n]))&&(s&&(s+=" "),s+=o)}else for(o in r)r[o]&&(s&&(s+=" "),s+=o);return s}function ay(){for(var r,n,o=0,s="",d=arguments.length;o<d;o++)(r=arguments[o])&&(n=Xf(r))&&(s&&(s+=" "),s+=n);return s}const Kf=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Qf=ay,ny=(r,n)=>o=>{var s;if(n?.variants==null)return Qf(r,o?.class,o?.className);const{variants:d,defaultVariants:p}=n,f=Object.keys(d).map(v=>{const b=o?.[v],j=p?.[v];if(b===null)return null;const k=Kf(b)||Kf(j);return d[v][k]}),h=o&&Object.entries(o).reduce((v,b)=>{let[j,k]=b;return k===void 0||(v[j]=k),v},{}),m=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((v,b)=>{let{class:j,className:k,...S}=b;return Object.entries(S).every(z=>{let[E,M]=z;return Array.isArray(M)?M.includes({...p,...h}[E]):{...p,...h}[E]===M})?[...v,j,k]:v},[]);return Qf(r,f,m,o?.class,o?.className)},Yf=ny("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 w-[max-content] disabled:bg-disabled disabled:text-disabled-foreground overflow-hidden shrink-0 whitespace-nowrap [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary-hovered focus-visible:ring-primary active:bg-primary-pressed",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive-hovered focus-visible:ring-destructive active:bg-destructive-pressed",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",ghost:"hover:bg-accent hover:text-accent-foreground focus-visible:ring-primary disabled:bg-transparent",link:"overflow-visible text-primary underline-offset-4 hover:text-primary-hovered focus-visible:ring-primary active:text-primary-pressed disabled:bg-transparent",outline:"bg-secondary text-secondary-foreground hover:bg-secondary-hovered focus-visible:ring-primary active:bg-secondary-pressed hover:text-primary-foreground active:text-primary-foreground",input:"bg-background border border-input focus-visible:ring-primary hover:border-primary active:border-primary-pressed"},size:{default:"h-10 px-4 text-base",xsm:"h-5 px-1 text-xs",xs:"h-6 px-3",sm:"h-8 px-3",md:"h-9 px-4",icon:"size-8 text-base",smIcon:"size-6 rounded-full text-base",lgIcon:"size-10 text-base"},isMenu:{true:"w-full justify-start"}},defaultVariants:{variant:"default",size:"default",isMenu:!1}}),me=x.forwardRef(({className:r,variant:n,size:o,asChild:s=!1,loading:d=!1,isMenu:p=!1,type:f,...h},m)=>{const v=s?{}:{type:f??"button"};return l.jsx(s?Z1:"button",d?{className:B(Yf({variant:n,size:o,className:r,isMenu:p})),ref:m,...v,...h,disabled:!0,children:l.jsx(Rr,{className:"size-4 animate-spin min-w-16"})}:{className:B(Yf({variant:n,size:o,className:r,isMenu:p})),ref:m,...v,...h})});me.displayName="Button";function Dl(r,n,o){if(r===null)return _t(null,n);const s=_t(r,n,o);return r>0?`+${s}`:s}function Zf(r){return[r.territory_code??r.territory_name,r.item].filter(Boolean).join("|")}function Jf(r,n){return r.national?.period===n?r.national.value:null}function oy(r,n,o){const s=en(r);return pn(r,{period:n,mode:"value",base:"median"}).filter(d=>d.value!==null).slice(0,o).map(d=>{const p=new Map(r.data.filter(f=>Zf(f)===d.key).map(f=>[f.period,f.value]));return{key:d.key,name:d.name,points:s.map(f=>({period:f,value:p.get(f)??null}))}})}function iy(r,n){if(new Set(r.data.map(s=>s.territory_code??s.territory_name??"")).size!==1||!r.data.every(s=>s.item!=null&&s.item!==""))return n;const o=new Map(r.data.map(s=>[Zf(s),s.item??""]));return n.map(s=>({...s,name:o.get(s.key)??s.name}))}function pn(r,n){return iy(r,Lb(r,n))}function Gf(r,n,o){const s=Jf(r,n);if(s===null||r.value_kind!=="level")return s;const d=o.filter(p=>p!==null&&Number.isFinite(p));return d.length===0?null:s<=Math.max(...d)*1.05?s:null}const sy=["12 76% 61%","173 58% 39%","197 37% 24%","43 74% 66%","27 87% 67%"],Tl=r=>r.clientWidth>0&&r.clientWidth<ly,ly=360;function Il(r){const n=document.createElement("span");r.appendChild(n);const o=d=>(n.style.color=d,getComputedStyle(n).color),s={series:sy.map((d,p)=>o(`hsl(var(--chart-${p+1}, ${d}))`)),text:o("hsl(var(--foreground))"),muted:o("hsl(var(--muted-foreground))"),border:o("hsl(var(--chart-grid, var(--border)))"),negative:o("hsl(var(--chart-neg, var(--destructive)))"),reference:o("hsl(var(--chart-ref, var(--foreground)))"),font:getComputedStyle(r).fontFamily,narrow:Tl(r)};return n.remove(),s}function cy({option:r,signature:n,label:o,height:s}){const d=x.useRef(null),p=x.useRef(null),f=x.useRef(r);return x.useEffect(()=>{f.current=r}),x.useEffect(()=>{const h=d.current;if(!h)return;let m=!0,v;return import("./echarts-3nlHlFS7.js").then(({init:b})=>{if(!m)return;p.current=b(h),p.current.setOption(f.current(Il(h)));let j=Tl(h);v=new ResizeObserver(()=>{Tl(h)!==j&&(j=!j,p.current?.setOption(f.current(Il(h)),!0)),p.current?.resize()}),v.observe(h)}).catch(()=>{}),()=>{m=!1,v?.disconnect(),p.current?.dispose(),p.current=null}},[]),x.useEffect(()=>{const h=d.current;h&&p.current&&p.current.setOption(f.current(Il(h)),!0)},[n]),l.jsx("div",{ref:d,role:"img","aria-label":o,style:{height:s},className:"w-full min-w-0"})}const dy=[[/товариществ[оа] с ограниченной ответственностью/giu,"\u0422\u041E\u041E"],[/республиканско(е|го) государственно(е|го) учреждени[ея]/giu,"\u0420\u0413\u0423"],[/республиканско(е|го) государственно(е|го) предприяти[ея]/giu,"\u0420\u0413\u041F"],[/государственно(е|го) учреждени[ея]/giu,"\u0413\u0423"],[/акционерно(е|го) обществ[оа]/giu,"\u0410\u041E"],[/индивидуальный предприниматель/giu,"\u0418\u041F"]],eh=r=>dy.reduce((n,[o,s])=>n.replace(o,s),r).replace(/\s+/g," ").trim(),uy=7.6,py=56,fy=160,hy=r=>Math.min(fy,Math.max(py,Math.ceil(r.reduce((n,o)=>Math.max(n,o.length),0)*uy)));function gy(r){if(r.trend)return["line","area","column"];const n=["bar","column"],o=r.rows.map(s=>s.value).filter(s=>s!==null);return!r.signed&&o.length>1&&o.every(s=>s>0)&&n.push("pie"),!r.signed&&r.periods.length>1&&r.series.length>0&&n.push("line"),n}const my=.3;function by(r,n,o,s){const{lang:d,decimals:p}=s,f=$=>typeof $=="number"?n.signed?Dl($,d,p):_t($,d,p):"\u2014",h=new Intl.NumberFormat(d,{notation:"compact",maximumFractionDigits:1}),m={color:o.muted,formatter:$=>h.format($)},v={lineStyle:{color:o.border}},b=$=>X=>{const K=eh(X);return K.length>$?`${K.slice(0,$-1)}\u2026`:K},j={color:o.muted,formatter:b(o.narrow?12:22)},k={animationDuration:400,color:o.series,textStyle:{fontFamily:o.font,color:o.text},tooltip:{trigger:r==="pie"?"item":"axis",confine:!0,valueFormatter:f}},S=n.rows.map($=>$.value).filter($=>$!==null),z=!n.signed&&S.every($=>$>0)&&!Ib(S);if(r==="pie")return{...k,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted},formatter:eh,tooltip:{show:!0}},series:[{type:"pie",radius:["40%","68%"],center:["50%","44%"],itemStyle:{borderColor:"transparent",borderRadius:4},label:{show:!1},data:n.rows.filter($=>$.value!==null).map($=>({name:$.name,value:$.value}))}]};if(n.trend||r==="line"||r==="area")return{...k,legend:{type:"scroll",bottom:0,textStyle:{color:o.muted}},grid:{left:8,right:16,top:12,bottom:32,containLabel:!0},xAxis:{type:"category",data:n.periods,axisLabel:{color:o.muted},boundaryGap:r==="column"},yAxis:{type:"value",scale:r!=="column",axisLabel:m,splitLine:v},series:n.series.map($=>({type:r==="column"?"bar":"line",name:$.name,data:n.periods.map(X=>$.points.find(K=>K.period===X)?.value??null),symbolSize:6,...r==="area"?{areaStyle:{opacity:.15}}:{}}))};const E=r==="bar",M=E?[...n.rows].reverse():n.rows,F=M.map($=>$.name),Z=n.national??null,oe=hy(M.map($=>$.value===null?"\u2014":f($.value))),J={type:"value",scale:z,axisLabel:m,splitLine:v,...o.narrow?{splitNumber:2}:{}},re={type:"category",data:F,axisTick:{show:!1},axisLabel:E?j:{...j,formatter:b(14),rotate:30,interval:0}};return{...k,tooltip:{...k.tooltip,axisPointer:{type:"shadow"}},grid:{left:8,right:E?oe:16,top:Z===null?12:24,bottom:8,containLabel:!0},xAxis:E?J:re,yAxis:E?re:J,series:[{type:"bar",barMaxWidth:28,data:M.map($=>({value:$.value,itemStyle:{color:$.value!==null&&$.value<0?o.negative:o.series[0],opacity:n.highlightKey!==void 0&&$.key!==n.highlightKey?my:1,borderRadius:E?[0,4,4,0]:[4,4,0,0]}})),label:{show:E,position:"right",color:o.text,formatter:$=>f($.value)},...Z===null?{}:{markLine:{symbol:"none",silent:!0,lineStyle:{type:"dashed",color:o.reference},label:{formatter:s.nationalLabel(f(Z)),color:o.reference,position:E?"end":"insideEndTop"},data:[E?{xAxis:Z}:{yAxis:Z}]}}}]}}const xy=5,th=({section:r,period:n,rows:o,national:s=null,signed:d=!1,highlightKey:p,compact:f=!1,label:h})=>{const{lang:m,t:v}=G(),b={rows:o,series:oy(r,n,xy),periods:en(r),trend:r.shape==="trend",national:s,signed:d,highlightKey:p},j=gy(b),[k,S]=x.useState(j[0]),z=j.includes(k)?k:j[0],E=z==="bar"&&!b.trend?Math.max(f?180:240,o.length*24+40):f?240:320;return l.jsxs("div",{part:"section-chart",className:"flex min-w-0 flex-col gap-2",children:[j.length>1?l.jsx("div",{role:"group","aria-label":v("chart.kinds"),className:"inline-flex flex-wrap gap-0.5 self-start rounded-md border bg-background p-0.5",children:j.map(M=>l.jsx("button",{type:"button","aria-pressed":M===z,onClick:()=>{S(M)},className:B("inline-flex h-7 items-center whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",M===z?"bg-secondary text-secondary-foreground":"text-muted-foreground hover:text-foreground"),children:v(`chart.kind.${M}`)},M))}):null,l.jsx(cy,{label:h,height:E,signature:JSON.stringify([z,m,b]),option:M=>by(z,b,M,{lang:m,decimals:r.decimals,nationalLabel:F=>v("chart.national",{value:F})})})]})},rh=(r,n)=>{const{api:o,lang:s}=G(),d=x.useSyncExternalStore(on.subscribe,()=>on.view(r))??(n?pl(n):Bp);x.useEffect(()=>{n&&on.adopt(r,n,o)},[r,n,o]);const p=x.useCallback(()=>{on.start(r,o,s)},[r,o,s]),f=x.useCallback(()=>{on.expire(r)},[r]);return{view:d,start:p,expire:f}},ah=({messageId:r,block:n,disabled:o=!1,className:s})=>{const{t:d}=G(),{view:p,start:f}=rh(r,n);return p.phase!=="idle"?null:l.jsxs(me,{part:"report",variant:"input",size:"sm",className:B("gap-1.5 text-[13px]",s),disabled:o,onClick:f,children:[l.jsx(Xx,{"aria-hidden":"true"}),d("report.create")]})},nh={pdf:"pdf",doc:"doc",docx:"doc",ppt:"ppt",pptx:"ppt",xls:"xls",xlsx:"xls",csv:"csv"},Al=r=>{const n=r.lastIndexOf(".");return n<0?"":r.slice(n+1).toLowerCase()},oh=r=>Object.hasOwn(nh,r)?nh[r]??"other":"other",vy={pdf:"bg-file-pdf",doc:"bg-file-doc",ppt:"bg-file-ppt",xls:"bg-file-xls",csv:"bg-file-csv",other:"bg-file-other"},Ol=({ext:r,className:n})=>l.jsx("span",{part:"file-type","data-kind":oh(r),"aria-hidden":"true",className:B("flex size-[34px] shrink-0 items-center justify-center rounded-lg text-[9.5px] font-bold leading-none tracking-[0.02em] text-background",vy[oh(r)],n),children:r?r.slice(0,4).toUpperCase():"FILE"}),ih=["byte","kilobyte","megabyte","gigabyte"];function $l(r,n){let o=r,s=0;for(;o>=1024&&s<ih.length-1;)o/=1024,s+=1;return new Intl.NumberFormat(n,{style:"unit",unit:ih[s]??"byte",unitDisplay:"short",maximumFractionDigits:s===0?0:1}).format(o)}const yy=/^\/api\/v1\/((?:report-jobs|messages)\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/files\/\d{1,4})$/i,sh=r=>{const n=yy.exec(r);return n?.[1]?`${tl}/${n[1]}`:null},wy=1e3,ky=async(r,n,o,s)=>{const d=sh(n);if(!d)return"unavailable";let p;try{p=await(await r.request(d.slice(tl.length))).blob()}catch(m){return m instanceof Ge&&m.status===410?"expired":m instanceof Ge&&m.status===404?"notFound":"unavailable"}const f=URL.createObjectURL(p),h=document.createElement("a");h.href=f,h.download=_f(o),h.hidden=!0,s.appendChild(h);try{h.click()}finally{h.remove(),window.setTimeout(()=>{URL.revokeObjectURL(f)},wy)}return"ok"},jy=["pdf","docx","pptx","xlsx","csv"],Sy=r=>{const n=r.getRootNode();return n instanceof ShadowRoot?n:r.parentElement??r},lh=({files:r,onExpired:n,className:o})=>{const{api:s,lang:d,t:p}=G(),[f,h]=x.useState(null),[m,v]=x.useState({}),b=x.useRef(m);x.useEffect(()=>{b.current=m});const j=r.filter(S=>jy.includes(S.format)&&sh(S.download_url)!==null);if(j.length===0)return null;const k=(S,z)=>{f===null&&(h(S.download_url),v(E=>Object.fromEntries(Object.entries(E).filter(([M])=>M!==S.download_url))),ky(s,S.download_url,S.filename,Sy(z.currentTarget)).then(E=>{if(h(null),E==="ok")return;const M={...b.current,[S.download_url]:E};v(M),j.every(F=>M[F.download_url]==="expired")&&n?.()}))};return l.jsxs("div",{part:"files",role:"group","aria-label":p("files.list"),className:B("flex flex-col gap-1.5",o),children:[l.jsx("div",{className:"text-2xs text-muted-foreground",children:p("files.list")}),l.jsx("ul",{"aria-label":p("files.list"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:j.map(S=>{const z=f===S.download_url,E=m[S.download_url];return l.jsxs("li",{"data-state":m[S.download_url]??void 0,className:B("flex min-w-0 items-center gap-3 rounded-xl border bg-card p-2",m[S.download_url]&&"border-error/35 bg-error-background"),children:[l.jsx(Ol,{ext:S.format}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[l.jsx("span",{className:"truncate text-sm font-medium leading-tight",title:S.filename,children:p(`files.${wp(S.format)}`)}),l.jsxs("span",{className:"text-2xs leading-tight text-muted-foreground",children:[S.format.toUpperCase(),S.size_bytes>0?` \xB7 ${$l(S.size_bytes,d)}`:null]})]}),E?l.jsxs("span",{role:"alert",className:"flex shrink-0 items-center gap-1.5 text-[13px]",children:[l.jsx(_r,{className:"text-destructive","aria-hidden":"true"}),p(`files.${E}`)]}):l.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5",title:S.filename,"aria-busy":z,disabled:f!==null,"aria-label":`${p("download")}: ${p(`files.${wp(S.format)}`)}`,onClick:M=>{k(S,M)},children:[z?l.jsx(Rr,{className:"animate-spin motion-reduce:animate-none","aria-hidden":"true"}):l.jsx(nf,{"aria-hidden":"true"}),p("download")]})]},`${S.format}-${S.download_url}`)})})]})},Fl="flex items-center gap-2.5 rounded-xl border px-3 py-2.5 text-sm",ch=({messageId:r,block:n,className:o})=>{const{t:s}=G(),{view:d,start:p,expire:f}=rh(r,n);switch(d.phase){case"idle":return null;case"pending":return l.jsxs("div",{part:"report",role:"status","data-state":"pending",className:B(Fl,"border-processing/25 bg-processing-background",o),children:[l.jsx(Rr,{className:"shrink-0 animate-spin text-primary-text motion-reduce:animate-none","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.pending")})]});case"done":return l.jsx(lh,{files:d.files,onExpired:f,className:o});case"expired":return l.jsxs("div",{part:"report",role:"status","data-state":"expired",className:B(Fl,"bg-card",o),children:[l.jsx(xl,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.expired")}),l.jsx(me,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:s("report.create")})]});case"failed":return l.jsxs("div",{part:"report",role:"alert","data-state":"failed",className:B(Fl,"border-error/30 bg-error-background",o),children:[l.jsx(_r,{className:"shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:s("report.failed")}),l.jsx(me,{variant:"input",size:"sm",className:"gap-1.5 text-[13px]",onClick:p,children:s("report.retry")})]})}},Cy=4;function Bo(r,n,o){const s=Tb(r,n);return s==="\u043F.\u043F."?o("dashboard.points"):s}function dh(r){if(r.length===0)return null;const n=[...r].sort((s,d)=>s-d),o=Math.floor(n.length/2);return n.length%2?n[o]??null:((n[o-1]??0)+(n[o]??0))/2}function fn(r){const n=new Set;return r.filter(o=>!n.has(o.label)&&n.add(o.label)).slice(0,Cy)}function Ny(r,{period:n,region:o,lang:s,t:d}){if(o===void 0&&n===r.latest_period&&r.kpis.length>0)return fn(r.kpis.map(z=>({label:z.label,value:z.value,sub:z.sub??null})));const p=z=>`${_t(z,s,r.decimals)} ${r.unit.label}`,f=(z,E)=>z===null?_t(null,s):`${Dl(z,s,r.decimals)} ${E}`,h=pn(r,{period:n,mode:"value",base:"median"}).filter(z=>z.value!==null),m=h.map(z=>z.value??0),v=h[0],b=h[h.length-1];if(v===void 0||b===void 0)return[];if(o!==void 0){const z=h.findIndex(F=>F.key===o),E=h[z];if(E===void 0)return[];const M=dh(m);return fn([{label:E.name,value:p(E.value),sub:n},{label:d("dashboard.kpi.place"),value:d("dashboard.kpi.placeOf",{n:z+1,m:h.length})},{label:d("dashboard.kpi.deviation"),value:f(M===null||E.value===null?null:E.value-M,Bo(r,"deviation",d))},{label:d("dashboard.kpi.previous"),value:f(E.delta,Bo(r,"change",d))}])}if(r.shape==="trend"){const z=en(r).filter(J=>J<=n),E=J=>r.data.find(re=>re.period===J&&re.value!==null)?.value??null,M=z[0],F=E(n),Z=M===void 0?null:E(M);let oe=null;return F!==null&&Z!==null&&M!==n&&(oe=r.value_kind==="level"?Z>0?(F/Z-1)*100:null:F-Z),fn([{label:d("dashboard.kpi.last"),value:p(F),sub:n},...M!==void 0&&M!==n?[{label:d("dashboard.kpi.first"),value:p(Z),sub:M},{label:d("dashboard.kpi.change"),value:f(oe,Bo(r,"change",d))}]:[]])}if(r.shape==="breakdown")return fn([...h.slice(0,3).map(z=>({label:z.name,value:p(z.value),sub:z.share===null?n:`${_t(z.share,s,1)} %`})),...h.length>1?[{label:d("dashboard.kpi.gap"),value:p((v.value??0)-(b.value??0)),sub:`${v.name} \u2212 ${b.name}`}]:[]]);const j=Jf(r,n),k=dh(m),S=[{label:d("dashboard.kpi.max"),value:p(v.value),sub:v.name},{label:d("dashboard.kpi.min"),value:p(b.value),sub:b.name},{label:d("dashboard.kpi.median"),value:p(k),sub:n}];return fn(j!==null?[{label:d("dashboard.kpi.national"),value:p(j),sub:n},...S]:[...S,{label:d("dashboard.kpi.spread"),value:p((v.value??0)-(b.value??0)),sub:`${v.name} \u2212 ${b.name}`}])}const Ey=({kpis:r})=>{const{t:n}=G();return r.length===0?null:l.jsx("ul",{"aria-label":n("dashboard.kpis"),className:"m-0 grid list-none grid-cols-[repeat(auto-fit,minmax(9.5rem,1fr))] gap-2.5 p-0",children:r.map((o,s)=>l.jsxs("li",{className:"flex min-w-0 flex-col gap-0.5 rounded-xl border bg-card px-3.5 py-3",children:[l.jsx("span",{"data-kpi-label":"",className:"truncate text-2xs text-muted-foreground",title:o.label,children:o.label}),l.jsx("span",{className:"text-xl font-semibold tabular-nums leading-snug",children:o.value}),o.sub!=null&&o.sub!==""?l.jsx("span",{className:"truncate text-2xs text-muted-foreground",title:o.sub,children:o.sub}):null]},s))})};function uh({label:r,value:n,options:o,onChange:s}){return l.jsx("div",{role:"group","aria-label":r,className:"inline-flex gap-0.5 rounded-md border bg-background p-0.5",children:o.map(d=>{const p=d.value===n,f=d.disabledHint!==void 0;return l.jsx("button",{type:"button","aria-pressed":p,"aria-disabled":f||void 0,title:d.disabledHint,onClick:()=>{f||s(d.value)},className:B("h-7 whitespace-nowrap rounded-[7px] px-2.5 text-[13px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",p?"bg-secondary text-secondary-foreground":"text-muted-foreground",f?"cursor-not-allowed opacity-50":!p&&"hover:text-foreground"),children:d.label},d.value)})})}const hn="whitespace-nowrap px-3 py-[7px] text-[13px] font-semibold text-foreground",fa="whitespace-nowrap text-right tabular-nums",zy=({section:r,rows:n,mode:o,lang:s,highlightKey:d})=>{const{t:p}=G(),f=r.value_kind==="level",h=o==="value"?null:p(o==="change"?"dashboard.table.change":"dashboard.table.deviation",{unit:Bo(r,o,p)});return l.jsx("div",{className:"max-h-[28rem] overflow-auto overscroll-contain rounded-[10px] border bg-card",children:l.jsxs("table",{className:"w-full border-collapse text-[13.5px]",children:[l.jsx("thead",{className:"sticky top-0 bg-muted",children:l.jsxs("tr",{className:"border-b",children:[l.jsx("th",{scope:"col",className:B(hn,"w-10 text-right"),children:p("dashboard.table.rank")}),l.jsx("th",{scope:"col",className:B(hn,"text-left"),children:p("dashboard.table.position")}),l.jsx("th",{scope:"col",className:B(hn,fa),children:p("dashboard.table.value",{unit:r.unit.label})}),h!==null?l.jsx("th",{scope:"col",className:B(hn,fa),children:h}):null,f?l.jsx("th",{scope:"col",className:B(hn,fa),children:p("dashboard.table.share")}):null]})}),l.jsx("tbody",{children:n.map((m,v)=>l.jsxs("tr",{className:B("h-9 border-b last:border-b-0",m.key===d&&"bg-accent"),children:[l.jsx("td",{className:"px-3 text-right tabular-nums text-muted-foreground",children:v+1}),l.jsx("td",{className:"px-3",children:m.name}),l.jsx("td",{className:B("px-3",fa),children:_t(m.value,s,r.decimals)}),h!==null?l.jsx("td",{className:B("px-3",fa),children:Dl(m.display,s,r.decimals)}):null,f?l.jsx("td",{className:B("px-3",fa),children:_t(m.share,s,1)}):null]},m.key))})]})})},Ul="__all__",ql="size-8 text-muted-foreground hover:text-foreground",_y=({message:r})=>{const{t:n}=G(),{state:o,setSection:s}=Lr(),d=fr(r.blocks,"dashboard")?.sections??[],p=d.find(h=>h.id===o.sectionId)??d[0];if(p===void 0)return null;const f=d.length>1?l.jsx("div",{role:"tablist","aria-label":n("dashboard.sections"),className:"flex gap-1 self-start overflow-x-auto rounded-md bg-secondary p-1",children:d.map(h=>{const m=h.id===p.id;return l.jsx("button",{type:"button",role:"tab","aria-selected":m,onClick:()=>{s(h.id)},className:B("min-h-8 shrink-0 rounded-lg px-3 py-1.5 text-left text-sm font-medium leading-snug transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",m?"bg-background text-foreground shadow-sm":"text-secondary-foreground hover:text-foreground"),children:h.title},h.id)})}):null;return l.jsx("section",{"aria-label":n("dashboard.label"),className:"flex h-full min-h-0 min-w-0 flex-1 flex-col bg-background",children:l.jsx(Ry,{section:p,message:r,tabs:f},p.id)})},ph=({label:r,value:n,onChange:o,children:s,className:d})=>l.jsxs("div",{className:B("flex flex-col gap-1",d),children:[l.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),l.jsxs("span",{className:"relative inline-flex",children:[l.jsx("select",{"aria-label":r,value:n,onChange:p=>{o(p.target.value)},className:"h-8 w-full min-w-0 appearance-none truncate rounded-md border border-input bg-background py-0 pl-2.5 pr-7 text-sm text-foreground transition-colors hover:bg-muted focus-visible:border-primary focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-secondary motion-reduce:transition-none",children:s}),l.jsx(ca,{className:"pointer-events-none absolute right-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground","aria-hidden":"true"})]})]}),fh=({label:r,children:n})=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-2xs text-muted-foreground","aria-hidden":"true",children:r}),n]}),Ry=({section:r,message:n,tabs:o})=>{const{lang:s,t:d}=G(),{state:p,setFullscreen:f,close:h}=Lr(),{fullscreen:m}=p,v=en(r),[b,j]=x.useState(()=>v.includes(r.latest_period)?r.latest_period:v.at(-1)??r.latest_period),[k,S]=x.useState(),[z,E]=x.useState("value"),[M,F]=x.useState("median"),Z=Db(r,b),oe=r.shape==="trend",J=oe||z==="change"&&!Z.change||z==="deviation"&&!Z.deviation?"value":z,re=M==="national"&&Z.national?"national":"median",$=pn(r,{period:b,mode:J,base:re}),X=J==="value"?$:pn(r,{period:b,mode:"value",base:re}),K=[...X].sort((w,L)=>w.name.localeCompare(L.name,s)),he=k!==void 0&&K.some(w=>w.key===k)?k:void 0,ee=Ny(r,{period:b,region:he,lang:s,t:d}),ue=b===r.latest_period&&he===void 0?r.findings:[],W=r.shape==="regional",Q=X.filter(w=>w.value!==null).length,be=[b,r.unit.label,d(W?"dashboard.regions":"dashboard.items",{n:Q})].join(" \xB7 "),Ne=pa(r.source_url),ve=r.methodology?.editions,ye=ve?.[s]??ve?.ru,U=pa(ye?.url),D=`${d(oe?"dashboard.trend":"dashboard.ranking")}: ${r.title}, ${b}`,T=Tf(n.blocks);return l.jsxs(l.Fragment,{children:[l.jsxs("header",{className:"flex shrink-0 flex-col gap-2 border-b py-3.5 pl-5 pr-4",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"min-w-0 flex-1 text-2xs font-semibold uppercase tracking-wide text-primary-text",children:d("dashboard.eyebrow")}),U!==null?l.jsx(me,{variant:"ghost",size:"icon",className:ql,asChild:!0,children:l.jsx("a",{href:U,target:"_blank",rel:"noopener noreferrer","aria-label":d("dashboard.methodology"),title:ye?.title??d("dashboard.methodology"),children:l.jsx(Oo,{"aria-hidden":"true"})})}):null,Ne!==null?l.jsx(me,{variant:"ghost",size:"icon",className:ql,asChild:!0,children:l.jsx("a",{href:Ne,target:"_blank",rel:"noopener noreferrer","aria-label":d("dashboard.openSource"),title:d("dashboard.openSource"),children:l.jsx(yl,{"aria-hidden":"true"})})}):null,l.jsxs(me,{variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground hover:text-foreground","aria-pressed":m,onClick:()=>{f(!m)},children:[m?l.jsx(uf,{"aria-hidden":"true"}):l.jsx(lf,{"aria-hidden":"true"}),d(m?"dashboard.collapse":"dashboard.fullscreen")]}),l.jsx(me,{variant:"ghost",size:"icon",className:ql,"aria-label":d("dashboard.close"),title:d("dashboard.close"),onClick:h,children:l.jsx(ln,{"aria-hidden":"true"})})]}),l.jsx("h2",{className:"m-0 text-xl font-semibold leading-snug",children:r.title}),l.jsx("span",{className:"text-xs text-muted-foreground",children:be})]}),l.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3.5 overflow-y-auto overscroll-contain px-5 pb-5 pt-3.5",children:[o,l.jsxs("div",{className:"flex flex-wrap items-end gap-3",children:[W&&K.length>1?l.jsxs(ph,{label:d("dashboard.region"),value:he??Ul,onChange:w=>{S(w===Ul?void 0:w)},className:"min-w-40 max-w-60",children:[l.jsx("option",{value:Ul,children:d("dashboard.allRegions")}),K.map(w=>l.jsx("option",{value:w.key,children:w.name},w.key))]}):null,v.length>1?l.jsx(ph,{label:d("dashboard.period"),value:b,onChange:j,className:"min-w-24",children:[...v].reverse().map(w=>l.jsx("option",{value:w,children:w},w))}):null,oe?null:l.jsx(fh,{label:d("dashboard.mode.label"),children:l.jsx(uh,{label:d("dashboard.mode.label"),value:J,onChange:E,options:[{value:"value",label:d("dashboard.mode.value")},{value:"deviation",label:d("dashboard.mode.deviation"),disabledHint:Z.deviation?void 0:d("dashboard.fewRegions")},{value:"change",label:d("dashboard.mode.change"),disabledHint:Z.change?void 0:d("dashboard.noPrevious")}]})}),J==="deviation"?l.jsx(fh,{label:d("dashboard.base.label"),children:l.jsx(uh,{label:d("dashboard.base.label"),value:re,onChange:F,options:[{value:"median",label:d("dashboard.base.median")},{value:"national",label:d("dashboard.base.national"),disabledHint:Z.national?void 0:d("dashboard.noNational")}]})}):null]}),l.jsx(Ey,{kpis:ee}),l.jsx(Vl,{title:d(oe?"dashboard.trend":"dashboard.ranking"),card:!0,children:l.jsx(th,{section:r,period:b,label:D,rows:$.map(w=>({key:w.key,name:w.name,value:w.display})),national:J==="value"?Gf(r,b,$.map(w=>w.value)):null,signed:J!=="value",highlightKey:he})}),ue.length>0?l.jsx(Vl,{title:d("dashboard.findings"),children:l.jsx("ul",{className:"flex list-disc flex-col gap-1 pl-5 text-sm",children:ue.map((w,L)=>l.jsx("li",{children:w},L))})}):null,l.jsx(Vl,{title:d("dashboard.data"),children:l.jsx(zy,{section:r,rows:$,mode:J,lang:s,highlightKey:he})}),l.jsxs("footer",{className:"flex flex-col gap-3 border-t pt-3.5",children:[r.source_name!=null&&r.source_name!==""?l.jsx("p",{className:"text-xs text-muted-foreground",children:d("dashboard.source",{name:r.source_name})}):null,l.jsx("div",{className:"-ml-2 empty:hidden",children:l.jsx(ah,{messageId:n.id,block:T})}),l.jsx(ch,{messageId:n.id,block:T})]})]})]})},Vl=({title:r,children:n,card:o=!1})=>l.jsxs("section",{className:"flex flex-col gap-2",children:[l.jsx("h3",{className:"m-0 text-sm font-semibold",children:r}),o?l.jsx("div",{className:"rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:n}):n]}),My=({threadId:r,children:n})=>{const[o,s]=x.useState(un),[d,p]=x.useState(r);d!==r&&(p(r),d!==void 0&&s(un));const f=x.useRef(new Set),h=x.useCallback((E,M)=>{s(Rl(E,M??null))},[]),m=x.useCallback(E=>{s(M=>M.messageId===E?un:Rl(E))},[]),v=x.useCallback(E=>{f.current.has(E)||(f.current.add(E),s(Rl(E)))},[]),b=x.useCallback(()=>{s(un)},[]),j=x.useCallback(E=>{s(M=>({...M,sectionId:E}))},[]),k=x.useCallback(E=>{s(M=>({...M,fullscreen:E}))},[]),S=x.useCallback(E=>{s(M=>({...M,view:E}))},[]),z=x.useMemo(()=>({state:o,open:h,toggle:m,autoOpen:v,close:b,setSection:j,setFullscreen:k,setView:S}),[o,h,m,v,b,j,k,S]);return l.jsx(If.Provider,{value:z,children:n})},hh="aid_intro_ack",Py=()=>{try{return window.localStorage.getItem(hh)!==null}catch{return!1}},Ly=({active:r=!0})=>{const{state:n,lang:o,t:s}=G(),d=an(n.config?.intro_notice??void 0,o).trim(),[p,f]=x.useState(Py),h=r&&d!==""&&!p,m=x.useId(),v=d.split(`
|
|
17
|
+
`).filter(k=>k.trim()!==""),b=x.useRef(null);Mr(b,!h),qo(b,h,()=>{const k=b.current?.getRootNode();return k instanceof ShadowRoot||k instanceof Document?k.querySelector('[part="input"]'):null});const j=x.useCallback(()=>{f(!0);try{window.localStorage.setItem(hh,"1")}catch{}},[]);return x.useEffect(()=>{if(!h)return;const k=S=>{S.key==="Escape"&&(S.preventDefault(),j())};return window.addEventListener("keydown",k,!0),()=>{window.removeEventListener("keydown",k,!0)}},[h,j]),d===""?null:l.jsxs("div",{ref:b,className:B("absolute inset-0 z-50 flex items-center justify-center p-4 transition-opacity duration-150 motion-reduce:transition-none",h?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!h,children:[l.jsx("div",{"aria-hidden":"true",className:"absolute inset-0 bg-scrim"}),l.jsxs("div",{part:"intro",role:"dialog","aria-modal":"true","aria-labelledby":m,className:B("relative flex max-h-full w-[min(400px,100%)] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",h?"translate-y-0":"translate-y-2"),children:[l.jsx("h2",{id:m,className:"m-0 py-3.5 pl-[18px] pr-3 pb-2.5 text-lg font-semibold",children:s("intro.title")}),l.jsx("div",{className:"flex min-h-0 flex-col gap-2.5 overflow-y-auto px-[18px] pt-1",children:v.map((k,S)=>l.jsx("p",{className:"text-[13px] leading-[1.55]",children:k},`${S}-${k}`))}),l.jsx("footer",{className:"flex shrink-0 justify-end px-[18px] pb-[18px] pt-3.5",children:l.jsx(me,{"data-autofocus":!0,size:"md",onClick:j,children:s("intro.continue")})})]})]})},gn=r=>r?!r.available||r.status==="down"||r.status==="overloaded"?"unavailable":r.status==="idle"?"idle":r.status==="busy"||r.status==="degraded"?"busy":"unknown":"unknown",Dy={idle:"text-mode-idle",busy:"text-mode-busy",unavailable:"text-mode-down",unknown:"text-muted-foreground"},Ty={idle:"health.idle",busy:"health.busy",unavailable:"health.unavailable"},gh=r=>Ty[r],Iy={bot:_x,"book-open":Oo,database:Ux,"file-text":Qx,globe:Zx,lock:sf,"message-circle":cv,"message-square":df,search:sn,sparkles:wl},Bl=({name:r,className:n})=>{const o=Iy[r]??wl;return l.jsx(o,{className:B("size-4 shrink-0",n),"aria-hidden":"true"})},Wl=({level:r,lang:n})=>r==="unknown"?null:l.jsxs("span",{part:"mode-health","data-level":r,className:B("inline-flex shrink-0 items-center gap-1.5 text-2xs font-semibold",Dy[r]),children:[l.jsx("span",{"aria-hidden":"true",className:"size-2 shrink-0 rounded-full bg-current"}),wt(n,gh(r))]}),mh="inline-flex h-8 min-w-0 max-w-[min(360px,100%)] items-center gap-[7px] rounded-full border bg-background pl-2.5 pr-2 text-[13px] font-medium text-foreground",bh=(r,n)=>an(r.title,n)||r.slug,xh=({modes:r,health:n,value:o,onChange:s,lang:d,label:p,variant:f="field",placement:h="top"})=>{const m=f==="pill",[v,b]=x.useState(!1),j=Math.max(0,r.findIndex(ee=>ee.slug===o)),[k,S]=x.useState(j),z=x.useId(),E=x.useRef(null),M=x.useRef(null),F=r[j],Z=gn(F?n[F.slug]:void 0),oe=x.useRef(null);x.useEffect(()=>{v&&M.current?.focus()},[v]),x.useEffect(()=>{if(!v)return;const ee=W=>{W.key==="Escape"&&(W.preventDefault(),W.stopPropagation(),b(!1),E.current?.focus())},ue=W=>{oe.current&&!W.composedPath().includes(oe.current)&&b(!1)};return window.addEventListener("keydown",ee,!0),window.addEventListener("pointerdown",ue,!0),()=>{window.removeEventListener("keydown",ee,!0),window.removeEventListener("pointerdown",ue,!0)}},[v]);const J=ee=>{b(!1),ee&&E.current?.focus()},re=()=>{S(j),b(!0)},$=ee=>{const ue=r[ee];ue&&s(ue.slug),J(!0)},X=ee=>{switch(ee.key){case"ArrowDown":ee.preventDefault(),S(ue=>Math.min(r.length-1,ue+1));break;case"ArrowUp":ee.preventDefault(),S(ue=>Math.max(0,ue-1));break;case"Home":ee.preventDefault(),S(0);break;case"End":ee.preventDefault(),S(r.length-1);break;case"Enter":case" ":ee.preventDefault(),$(k);break;case"Tab":J(!1);break}},K=F?bh(F,d):"",he=Z==="unknown"?"":wt(d,gh(Z));return l.jsxs("div",{ref:oe,className:B(m?"min-w-0":"flex flex-col gap-1.5"),onBlur:ee=>{v&&ee.relatedTarget instanceof Node&&!ee.currentTarget.contains(ee.relatedTarget)&&b(!1)},children:[l.jsxs("button",{ref:E,part:m?"mode-select":void 0,type:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-controls":v?`${z}-list`:void 0,"aria-label":`${p}: ${K}${m&&he?`, ${he}`:""}`,onClick:()=>{v?J(!1):re()},onKeyDown:ee=>{ee.key==="ArrowDown"&&!v&&(ee.preventDefault(),re())},className:B(m?B(mh,"transition-colors hover:bg-muted motion-reduce:transition-none"):"inline-flex h-8 w-full items-center justify-between gap-2 rounded-md border bg-background pl-2.5 pr-2 text-xs","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",v&&"border-primary shadow-[0_0_0_3px_var(--aid-c-secondary)]"),children:[m&&F?l.jsx(Bl,{name:F.icon}):null,l.jsx("span",{className:B("truncate",m&&"min-w-0"),children:K}),m?l.jsx(Wl,{level:Z,lang:d}):null,l.jsx(ca,{className:B("size-3.5 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",(m?h==="top"!==v:v)&&"rotate-180"),"aria-hidden":"true"})]}),v?l.jsxs("ul",{ref:M,id:`${z}-list`,part:m?"mode-list":void 0,role:"listbox",tabIndex:-1,"aria-label":p,"aria-activedescendant":`${z}-${k}`,onKeyDown:X,className:B("flex max-h-56 flex-col overflow-y-auto rounded-md border bg-background p-1 shadow-pop focus-visible:outline-none",m&&B("absolute left-0 z-20 w-[340px] max-w-full duration-150 animate-in fade-in motion-reduce:animate-none",h==="top"?"bottom-[calc(100%+6px)]":"top-[calc(100%+6px)]")),children:[m?l.jsx("li",{role:"presentation",className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:p}):null,r.map((ee,ue)=>{const W=gn(n[ee.slug]),Q=an(ee.description,d);return l.jsxs("li",{id:`${z}-${ue}`,part:m?"mode-option":void 0,role:"option","aria-selected":ue===j,onMouseDown:be=>{be.preventDefault()},onMouseEnter:()=>{S(ue)},onClick:()=>{$(ue)},className:B("flex cursor-pointer items-start gap-2.5 rounded-lg px-2.5 py-2",ue===k&&"bg-accent",ue===j&&"bg-secondary"),children:[l.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted",children:l.jsx(Bl,{name:ee.icon})}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[l.jsx("span",{className:"truncate text-sm font-medium leading-[1.35]",children:bh(ee,d)}),Q?l.jsx("span",{className:"line-clamp-2 text-2xs leading-[1.35] text-muted-foreground",children:Q}):null,l.jsx(Wl,{level:W,lang:d})]}),l.jsx(zr,{className:B("mt-1 size-4 shrink-0 text-primary",ue!==j&&"invisible"),"aria-hidden":"true"})]},ee.slug)})]}):null]})},vh=(r,n)=>r===(n>=0?n:0)?0:-1,Ay={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"start",End:"end"},yh=(r,n=!1)=>{const o=Ay[r.key];if(o===void 0)return;const s=Array.from(r.currentTarget.querySelectorAll('[role="radio"]:not(:disabled)')),d=r.currentTarget.getRootNode(),p=s.findIndex(h=>h===d.activeElement);if(s.length===0)return;r.preventDefault();const f=o==="start"?0:o==="end"?s.length-1:(Math.max(p,0)+o+s.length)%s.length;s[f]?.focus(),n&&s[f]?.click()},Oy=({label:r,className:n,children:o})=>l.jsx("div",{role:"radiogroup","aria-label":r,className:n,onKeyDown:s=>{yh(s,!0)},children:o}),$y=()=>typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),Fy=["search","newChat","sidebar","close"],Uy=r=>{const n=r?"\u2318":"Ctrl",o=r?"\u21E7":"Shift",s=d=>r?[o,n,d]:[n,o,d];return{search:[n,"K"],newChat:s("O"),sidebar:s("S"),close:["Esc"]}},qy={kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English"},Wo=({title:r,hint:n,children:o})=>l.jsxs("section",{className:"flex flex-col gap-2",children:[l.jsx("h3",{className:"text-xs font-semibold text-muted-foreground",children:r}),o,n?l.jsx("p",{className:"text-xs text-muted-foreground",children:n}):null]}),wh=({value:r,options:n,onChange:o,label:s})=>{const d=n.findIndex(p=>p.value===r);return l.jsx(Oy,{label:s,className:"grid grid-cols-3 gap-2",children:n.map((p,f)=>{const h=p.value===r;return l.jsxs("button",{type:"button",role:"radio","aria-checked":h,tabIndex:vh(f,d),lang:p.lang,onClick:()=>{o(p.value)},className:B("flex min-w-0 items-center gap-2.5 rounded-md border px-3 py-2.5 text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",h?"border-primary bg-secondary":"bg-background hover:border-primary/50"),children:[l.jsx("span",{"aria-hidden":"true",className:B("relative size-4 shrink-0 rounded-full border-[1.5px] bg-background",h?"border-primary":"border-muted-foreground"),children:h?l.jsx("span",{className:"absolute inset-[3px] rounded-full bg-primary"}):null}),l.jsx("span",{className:"truncate",children:p.label})]},p.value)})})},Vy=({children:r})=>l.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded border bg-background px-[5px] font-sans text-[11px] font-medium leading-none text-muted-foreground",children:r}),By=({open:r,onClose:n})=>{const{state:o,lang:s,t:d,selectMode:p}=G(),f=cl(),h=x.useRef(null);Mr(h,!r),qo(h,r),x.useEffect(()=>{if(!r)return;const k=S=>{S.key==="Escape"&&(h.current?.querySelector('[aria-haspopup="listbox"][aria-expanded="true"]')||(S.preventDefault(),n()))};return window.addEventListener("keydown",k,!0),()=>{window.removeEventListener("keydown",k,!0)}},[r,n]);const m=o.config?.modes??[],v=[{value:"light",label:d("settings.themeLight")},{value:"dark",label:d("settings.themeDark")},{value:"auto",label:d("settings.themeAuto")}],b=Uy($y()),j={search:d("shortcut.search"),newChat:d("shortcut.newChat"),sidebar:d("shortcut.sidebar"),close:d("shortcut.close")};return l.jsxs("div",{ref:h,className:B("absolute inset-0 z-40 flex items-start justify-center p-6 transition-opacity duration-150 motion-reduce:transition-none",r?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!r,children:[l.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 bg-scrim",onClick:n}),l.jsxs("div",{part:"settings",role:"dialog","aria-modal":"true","aria-label":d("settings"),className:B("relative flex max-h-full w-full max-w-[520px] flex-col overflow-hidden rounded-aid-field border bg-background shadow-panel transition-transform duration-200 motion-reduce:transition-none",r?"translate-y-0":"translate-y-2"),children:[l.jsxs("header",{className:"flex shrink-0 items-center justify-between pb-2.5 pl-[18px] pr-3 pt-3.5",children:[l.jsx("h2",{className:"text-lg font-semibold",children:d("settings")}),l.jsx(me,{"data-autofocus":!0,variant:"ghost",size:"icon","aria-label":d("close"),onClick:n,children:l.jsx(ln,{"aria-hidden":"true"})})]}),l.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-[18px] pb-[18px] pt-1",children:[l.jsx(Wo,{title:d("settings.language"),children:l.jsx(wh,{label:d("settings.language"),value:s,options:il.map(k=>({value:k,label:qy[k],lang:k})),onChange:k=>{f.update({lang:k})}})}),l.jsx(Wo,{title:d("settings.theme"),children:l.jsx(wh,{label:d("settings.theme"),value:f.scheme,options:v,onChange:k=>{f.update({scheme:k})}})}),m.length>0?l.jsx(Wo,{title:d("settings.model"),hint:d("settings.modelHint"),children:l.jsx(xh,{modes:m,health:o.health,value:o.mode,onChange:p,lang:s,label:d("settings.model")})}):null,l.jsx(Wo,{title:d("settings.shortcuts"),children:l.jsx("div",{className:"flex flex-col",children:Fy.map(k=>l.jsxs("div",{className:"flex items-center justify-between py-1 text-xs",children:[l.jsx("span",{children:j[k]}),l.jsx("span",{className:"flex gap-[3px]",children:b[k].map(S=>l.jsx(Vy,{children:S},S))})]},k))})})]})]})]})},Wy={muted:"rounded-[10px] border bg-muted px-3 py-2",blocked:"rounded-[10px] border border-processing/25 bg-processing-background px-3 py-2",overloaded:"rounded-[10px] border border-warning/40 bg-warning-background px-3 py-2",hint:"px-1 pb-2 text-warn-text"},Ho=({tone:r,icon:n,children:o,role:s="status",part:d,state:p})=>l.jsxs("div",{part:d,role:s,"data-tone":r,"data-state":p,className:B("mb-2 flex items-center gap-2.5 text-xs leading-snug",Wy[r]),children:[l.jsx("span",{className:"flex shrink-0",children:n}),l.jsx("span",{className:"min-w-0 flex-1",children:o})]}),kh=({children:r,onDismiss:n,dismissLabel:o,part:s})=>l.jsxs("div",{part:s,role:"alert",className:"mb-2 flex items-center gap-2.5 rounded-[10px] border border-error/30 bg-error-background py-2 pl-3 pr-2 text-xs leading-snug text-[hsl(var(--foreground))]",children:[l.jsx(_r,{className:"shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:r}),l.jsx(me,{variant:"ghost",size:"xs",onClick:n,children:o})]}),Hy=r=>new Intl.DateTimeFormat(r,{hour:"2-digit",minute:"2-digit"}),Xy=()=>{const{state:r,lang:n,t:o}=G(),{remaining:s,daily:d,blocked:p,resetAt:f,overloaded:h}=r.limit;if(h&&r.config)return l.jsx(Ho,{tone:"overloaded",part:"limit-banner",state:"overloaded",icon:l.jsx(Fo,{"aria-hidden":"true"}),children:o("overloaded")});if(p){const m=f?new Date(f):null,v=m&&!Number.isNaN(m.getTime())?o("limit.until",{time:Hy(n).format(m)}):o("limit.exhausted");return l.jsx(Ho,{tone:"blocked",part:"limit-banner",state:"blocked",icon:l.jsx(xl,{"aria-hidden":"true"}),children:v})}return s===null||d===null||s>3?null:l.jsx(Ho,{tone:"muted",part:"limit-banner",state:"low",icon:l.jsx(of,{"aria-hidden":"true"}),children:o("limit.remaining",{count:s,limit:d})})},Ky=()=>{const{state:r,lang:n,t:o,dismissNotice:s}=G(),{notice:d}=r;if(!d)return null;const p=d.kind==="error"?gl(n,d.reason):o(d.key);return l.jsx(kh,{part:"notice",onDismiss:s,dismissLabel:o("dismiss"),children:p})},Hl=({value:r,onChange:n,onSubmit:o,maxHeight:s=S1,className:d,onKeyDown:p,...f})=>{const h=x.useRef(null),m=x.useCallback(()=>{const b=h.current;b&&(b.style.height="auto",b.style.height=`${Math.min(b.scrollHeight,s)}px`,b.style.overflowY=b.scrollHeight>s?"auto":"hidden")},[s]);x.useLayoutEffect(m,[r,m]),x.useEffect(()=>{const b=h.current;if(!b||typeof ResizeObserver>"u")return;let j=b.clientWidth;const k=new ResizeObserver(()=>{b.clientWidth!==j&&(j=b.clientWidth,m())});return k.observe(b),()=>{k.disconnect()}},[m]);const v=b=>{p?.(b),!(b.defaultPrevented||!o)&&b.key==="Enter"&&!b.shiftKey&&!b.nativeEvent.isComposing&&(b.preventDefault(),o())};return l.jsx("textarea",{ref:h,rows:1,value:r,onChange:b=>{n(b.target.value)},onKeyDown:v,className:B("block w-full resize-none bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60",d),...f})},Qy=({file:r,onRemove:n})=>{const{lang:o,t:s}=G();return l.jsxs("div",{part:"composer-file",className:"flex w-fit max-w-full items-center gap-2.5 self-start rounded-xl border bg-muted p-1.5",children:[l.jsx(Ol,{ext:Al(r.name)}),l.jsxs("span",{className:"flex min-w-0 flex-col",children:[l.jsx("span",{className:"max-w-[420px] truncate text-[13px] font-medium leading-tight max-sm:max-w-[190px]",title:r.name,children:r.name}),l.jsx("span",{className:"text-2xs leading-tight text-muted-foreground",children:$l(r.size,o)})]}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":s("removeFile"),onClick:n,children:l.jsx(ln,{"aria-hidden":"true"})})]})},Yy=({children:r,text:n,id:o})=>l.jsxs("span",{className:"group/attach inline-flex",children:[r,l.jsx("span",{id:o,role:"tooltip",className:"pointer-events-none absolute bottom-[3.2rem] left-4 z-10 hidden w-max max-w-[calc(100%-2rem)] rounded-md bg-foreground px-2 py-1 text-2xs font-medium leading-snug text-background shadow-pop group-focus-within/attach:block group-hover/attach:block",children:n})]}),Zy=({message:r,onDismiss:n})=>{const{t:o}=G();return r===null?null:l.jsx(kh,{part:"notice",dismissLabel:o("dismiss"),onDismiss:n,children:r})},Jy=.9,Gy=(r,n)=>r>n?"over":r===n?"limit":r>=n*Jy?"near":"hidden",jh=({count:r,max:n,id:o,part:s,className:d})=>{const{t:p}=G(),f=Gy(r,n);return l.jsxs(l.Fragment,{children:[l.jsx("span",{id:o,part:s,className:B("shrink-0 whitespace-nowrap px-1 text-2xs tabular-nums text-muted-foreground",f==="hidden"&&"hidden",f==="limit"&&"font-semibold text-warn-text",f==="over"&&"font-semibold text-destructive",d),children:p("counter",{count:r,max:n})}),l.jsx("span",{"aria-live":"polite",className:"sr-only",children:f==="limit"?p("counterLimit"):f==="over"?p("counterOver"):""})]})},ew=()=>{const{state:r,t:n}=G(),{config:o}=r;if(!o)return null;const s=o.modes.find(p=>p.slug===r.mode),d=o.modes.length===0?n("modes.none"):s&&gn(r.health[s.slug])==="unavailable"?n("modeUnavailable"):null;return d===null?null:l.jsx(Ho,{tone:"hint",part:"composer-hint",icon:l.jsx(Fo,{"aria-hidden":"true"}),children:d})},tw=500,rw=(r=!0)=>{const n=G().t("placeholder"),o=zl("(prefers-reduced-motion: reduce)"),s=r&&!o,[d,p]=x.useState(0);return x.useEffect(()=>{if(!s)return;const f=window.setInterval(()=>{p(h=>h+1)},tw);return()=>{window.clearInterval(f)}},[s]),n+".".repeat(s?d%3+1:3)},aw=({placement:r="top"})=>{const{state:n,lang:o,t:s,selectMode:d}=G(),p=n.config?.modes??[],f=p.find(h=>h.slug===n.mode);if(!f)return null;if(p.length<2){const h=gn(n.health[f.slug]),m=an(f.title,o)||f.slug,v=h==="unknown"?"":s(`health.${h}`),b=`${s("modeLabel")}: ${m}${v?`, ${v}`:""}`;return l.jsxs("div",{part:"mode-select",role:"group","aria-label":b,className:mh,children:[l.jsx(Bl,{name:f.icon}),l.jsx("span",{className:"min-w-0 truncate",children:m}),l.jsx(Wl,{level:h,lang:o})]})}return l.jsx(xh,{variant:"pill",placement:r,modes:p,health:n.health,value:n.mode,onChange:d,lang:o,label:s("modeLabel")})},Sh="{name}",nw=(r,n)=>{const[o="",s=""]=r.split(Sh);return l.jsxs(l.Fragment,{children:[o,n,s]})},Ch=x.forwardRef(({onDraftChange:r},n)=>{const{state:o,lang:s,path:d,t:p,send:f,stop:h}=G(),[m,v]=x.useState(""),b=rw(m===""),j=x.useRef(null),k=x.useId(),S=x.useRef(!1),z=x.useId();x.useImperativeHandle(n,()=>({setText:V=>{v(V),setTimeout(()=>j.current?.querySelector("textarea")?.focus(),0)}}));const E=m.trim()!=="";x.useEffect(()=>{r?.(E)},[E,r]);const[M,F]=x.useState(null),[Z,oe]=x.useState(null),J=x.useRef(null),{config:re,turn:$,limit:X}=o,K=re?.modes.find(V=>V.slug===o.mode),he=re?.max_query_chars??Lp,ee=K?gn(o.health[K.slug])==="unavailable":!1,ue=!!(re?.site.allow_files&&K?.allow_files),W=$!==null,Q=$?.stopping===!0,be=!re||X.blocked||o.loadingThread!==null,Ne=m.trim(),ve=m.length>he,ye=!be&&!W&&!ee&&!!K&&Ne.length>0&&!ve;x.useEffect(()=>{if(W)return;const V=j.current?.getRootNode(),pe=V instanceof ShadowRoot||V instanceof Document?V.activeElement:null,fe=pe===null||pe===document.body;(S.current||fe)&&j.current?.querySelector("textarea")?.focus({preventScroll:!0}),S.current=!1},[W]);const U=()=>{if(!ye||!K)return;const V=Ne,pe=M,fe=F1(d,V,new Date);v(""),F(null),f({query:V,mode:K.slug,...pe?{file:pe}:{},...fe?{clarification:fe}:{}}).then(Se=>{Se==="rejected"&&(v(ke=>ke||V),F(ke=>ke??pe))})},D=V=>{if(oe(null),!(!V||!K)){if(!Cf.split(",").includes(`.${Al(V.name)}`)){oe(p("fileType",{name:V.name}));return}if(V.size>K.max_file_mb*1024*1024){oe(p("fileTooLarge",{name:V.name,size:K.max_file_mb}));return}F(V)}},T=re?.answer_source,w=T?.[s]??T?.ru??Object.values(T??{})[0],L=pa(w?.url),H=L?l.jsxs("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary-text hover:underline",children:[w?.name,l.jsx(yl,{className:"size-3","aria-hidden":"true"})]}):w?.name;return l.jsxs("div",{part:"composer",className:"flex w-full shrink-0 flex-col",children:[l.jsx(ew,{}),l.jsx(Zy,{message:Z,onDismiss:()=>{oe(null)}}),l.jsxs("div",{ref:j,className:B("relative flex flex-col gap-2.5 rounded-aid-field border border-input bg-background py-3 pl-4 pr-2.5 shadow-sm transition-colors motion-reduce:transition-none","focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",ve&&"border-destructive focus-within:border-destructive",be&&"bg-muted"),children:[M?l.jsx(Qy,{file:M,onRemove:()=>{F(null)}}):null,l.jsx(Hl,{part:"input","data-autofocus":!0,value:m,onChange:v,onSubmit:U,disabled:be,placeholder:b,"aria-label":p("inputLabel"),"aria-invalid":ve||void 0,"aria-describedby":k,className:"block min-h-6 w-full pr-1.5 text-lg leading-6 disabled:text-muted-foreground disabled:opacity-100"}),l.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[l.jsx(aw,{placement:"top"}),ue?l.jsxs(l.Fragment,{children:[l.jsx(Yy,{id:z,text:M?p("attachOne"):p("attachHint",{size:K?.max_file_mb??0}),children:l.jsx(me,{part:"attach",variant:"ghost",size:"icon",className:"size-8 rounded-full text-muted-foreground","aria-label":p(M?"attachOne":"attach"),"aria-describedby":z,disabled:be||W||M!==null,onClick:()=>J.current?.click(),children:l.jsx(xv,{"aria-hidden":"true"})})}),l.jsx("input",{ref:J,type:"file",hidden:!0,accept:Cf,onChange:V=>{D(V.target.files?.[0]),V.target.value=""}})]}):null,l.jsx("span",{className:"flex-1"}),l.jsx(jh,{id:k,part:"counter",count:m.length,max:he}),W?l.jsx(me,{part:"stop",size:"icon",className:"size-9 rounded-full aria-disabled:pointer-events-none aria-disabled:opacity-50","aria-label":p(Q?"agent.stopping":"stop"),title:p(Q?"agent.stopping":"stop"),"aria-disabled":Q||void 0,onFocus:()=>{S.current=!0},onBlur:V=>{V.relatedTarget&&(S.current=!1)},onClick:()=>{Q||h()},children:l.jsx(gf,{className:"size-3.5 fill-current","aria-hidden":"true"})}):l.jsx(me,{part:"send",size:"icon",className:"size-9 rounded-full","aria-label":p("send"),title:p("send"),disabled:!ye,onClick:U,children:l.jsx(tf,{"aria-hidden":"true"})})]})]}),l.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-3.5 gap-y-1 pt-2 text-center text-2xs leading-snug text-muted-foreground",children:[l.jsx("p",{part:"disclaimer",className:"text-2xs",children:p("disclaimer")}),w?.name?l.jsx("p",{part:"source",className:"text-2xs",children:nw(p("source",{name:Sh}),H)}):null]})]})});Ch.displayName="Composer";const ow=({composerRef:r,onDraftChange:n})=>{const{state:o}=G();return l.jsxs("div",{className:"mx-auto w-full max-w-[844px] shrink-0 px-3 pb-2.5",children:[l.jsx(Xy,{}),l.jsx(Ky,{}),o.config&&!o.configError?l.jsx(Ch,{ref:r,onDraftChange:n}):null]})},Nh={receipt:jv,landmark:ev,map:nv,"trending-up":Uv,scale:Ev,users:Vv,"file-chart":Wx,"alert-triangle":Fo},iw=({name:r})=>{const n=(Object.hasOwn(Nh,r)?Nh[r]:void 0)??wl;return l.jsx(n,{className:"size-4 shrink-0 text-primary","aria-hidden":"true"})},sw=10,Eh=(r,n)=>r?.[n]??r?.ru??Object.values(r??{})[0],lw=({children:r,id:n})=>l.jsx("h2",{id:n,className:"m-0 px-0.5 text-2xs font-semibold text-muted-foreground",children:r}),cw=({example:r,onPick:n,sub:o})=>l.jsx("li",{className:"min-w-0",children:l.jsxs("button",{part:"example",type:"button",title:r.title,onClick:()=>{n(r.prompt)},className:B("flex w-full items-center gap-2.5 rounded-lg border bg-background px-3 py-2 text-left leading-snug text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",o?"min-h-9 border-dashed text-[13px]":"min-h-10 text-sm"),children:[l.jsx("span",{className:"min-w-0 flex-1",children:r.prompt}),l.jsx(jx,{className:"text-muted-foreground","aria-hidden":"true"})]})}),dw=r=>`${r.title}-${r.prompt}`,uw=({onPick:r})=>{const{state:n,lang:o,t:s}=G(),d=x.useId(),[p,f]=x.useState(null),h=Eh(n.config?.prompt_examples,o)??[],m=(Eh(n.config?.prompt_categories,o)??[]).filter(j=>h.some(k=>k.category===j.key));if(h.length===0||m.length===0)return null;const v=m.find(j=>j.key===p),b=v?h.filter(j=>j.category===v.key).slice(0,sw):[];return l.jsxs("div",{className:"flex flex-col gap-5",children:[l.jsxs("section",{className:"flex flex-col gap-1.5",children:[l.jsx(lw,{id:d,children:s("examples.whatCanDo")}),l.jsx("div",{role:"group","aria-labelledby":d,className:"flex flex-col gap-1.5",children:m.map(j=>{const k=j.key===v?.key,S=k?ca:$o;return l.jsxs(x.Fragment,{children:[l.jsxs("button",{part:"category",type:"button","aria-expanded":k,onClick:()=>{f(k?null:j.key)},className:B("flex min-h-11 w-full items-center gap-2.5 rounded-lg border bg-background px-2.5 py-1.5 text-left text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",k&&"border-primary"),children:[l.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-lg bg-secondary",children:l.jsx(iw,{name:j.icon})}),l.jsx("span",{className:"min-w-0 flex-1 truncate",children:j.title}),l.jsx(S,{className:"text-muted-foreground","aria-hidden":"true"})]}),k&&b.length>0?l.jsx("ul",{"aria-label":j.title,className:"m-0 flex w-full list-none flex-col gap-1.5 pb-1.5 pl-[18px] pt-0.5",children:b.map(z=>l.jsx(cw,{example:z,onPick:r,sub:!0},dw(z)))}):null]},j.key)})})]}),null]})},pw=({wide:r,onPick:n})=>{const{state:o,lang:s,t:d}=G(),p=an(o.config?.site.welcome,s),f=p?p.split(`
|
|
18
|
+
`).filter(h=>h.trim()!==""):[];return l.jsxs("div",{part:"empty",className:B("mx-auto flex w-full max-w-[640px] flex-col gap-5 px-4 pb-3",r?"pt-14":"pt-7"),children:[l.jsxs("div",{className:"flex flex-col items-center gap-2.5 text-center",children:[l.jsx("div",{part:"avatar",children:l.jsx(Qp,{size:56})}),f.length>0?l.jsx("div",{part:"welcome",className:"flex max-w-[340px] flex-col gap-1 text-[15px] leading-normal",children:f.map((h,m)=>l.jsx("p",{className:B(m===0&&"text-xl font-semibold"),children:h},`${m}-${h}`))}):l.jsx("h2",{className:"m-0 text-2xl font-semibold tracking-tight",children:d("greeting")})]}),l.jsx(uw,{onPick:n})]})},zh=()=>{const{t:r}=G();return n=>{const o=`steps.${n.node}`;return r(sl(o)?o:"steps.unknown")}},_h=r=>{const n=r?.trim();return n===""?void 0:n},Xl=r=>_h(r.detail),fw=r=>_h(r.result),hw={router:"router",understand:"router",responder:"responder",answer:"responder",search_law:"law",data:"data",run_query:"data",executor:"executor",run_sql:"executor",lookup_taxpayer:"taxpayer",find_taxpayer:"findCompany",think:"think"},gw=6e3,mw=4e3,bw=2500,Rh=r=>`${r.id??r.node}#${r.attempt}`,Mh=(r,n)=>{const o=[];for(let s=1;n(`waiting.${r}.${s}`);s+=1)o.push(`waiting.${r}.${s}`);return o},xw=(r,n)=>{const{t:o}=G(),s=r==null?"":Rh(r),[d,p]=x.useState({key:"",tick:-1});x.useEffect(()=>{if(!n||s==="")return;let b;const j=setTimeout(()=>{p({key:s,tick:0}),b=setInterval(()=>{p(k=>({key:s,tick:k.key===s?k.tick+1:0}))},mw)},gw);return()=>{clearTimeout(j),b!==void 0&&clearInterval(b)}},[s,n]);const f=n&&d.key===s?d.tick:-1;if(f<0||r==null)return null;const h=Mh(hw[r.node]??"unknown",sl),m=h.length>0?h:Mh("unknown",sl),v=m[f%m.length];return v?o(v):null},vw=(r,n)=>{const o=r.map(Rh).join("|"),s=n&&r.length>1,[d,p]=x.useState({key:"",index:0});x.useEffect(()=>{if(!s)return;const h=setInterval(()=>{p(m=>({key:o,index:m.key===o?m.index+1:1}))},bw);return()=>{clearInterval(h)}},[o,s]);const f=s&&d.key===o?d.index%r.length:0;return r[f]},Kl=({step:r,position:n})=>{const{t:o}=G(),s=zh();return l.jsxs(l.Fragment,{children:[s(r),Xl(r)!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",Xl(r)]}):null,n!=null&&r.total!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("steps.counter",{done:n,total:r.total})]}):null,r.attempt>1?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \xB7 ",o("agent.attempt",{count:r.attempt})]}):null]})},Ph=()=>l.jsx(Rr,{className:"size-3 shrink-0 animate-spin text-primary motion-reduce:animate-none","aria-hidden":"true","data-testid":"step-spinner"}),yw=({steps:r,status:n,stopping:o})=>{const{t:s}=G(),d=r.filter(m=>m.status==="running"),p=n==="streaming"&&!o,f=vw(d,p),h=xw(f,p&&d.length===1&&f!=null&&Xl(f)==null);return n==="streaming"?l.jsxs(l.Fragment,{children:[l.jsx(Ph,{}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:o?s("agent.stopping"):f==null?s("agent.thinking"):h!=null?l.jsxs(l.Fragment,{children:[l.jsx("span",{"aria-hidden":"true",children:h}),l.jsx("span",{className:"sr-only",children:l.jsx(Kl,{step:f,position:r.indexOf(f)+1})})]}):l.jsx(Kl,{step:f,position:r.indexOf(f)+1})})]}):n==="stopped"?l.jsxs(l.Fragment,{children:[l.jsx(gf,{className:"size-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.stopped")})]}):n==="error"?l.jsxs(l.Fragment,{children:[l.jsx(af,{className:"size-3.5 shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.interrupted")})]}):l.jsxs(l.Fragment,{children:[l.jsx(zr,{className:"size-3.5 shrink-0 text-mode-idle","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 truncate font-medium text-foreground",children:s("agent.done")})]})},ww=({steps:r,status:n,stopping:o})=>{const{t:s}=G(),d=zh();if(n==="streaming"){if(o)return s("agent.stopping");const p=r.find(f=>f.status==="running");return p?d(p):s("agent.thinking")}return s(n==="stopped"?"agent.stopped":n==="error"?"agent.interrupted":"agent.done")},Lh="inline-flex min-h-[30px] max-w-full items-center gap-2 self-start rounded-full border bg-background py-1 pl-2 pr-2.5 text-left text-[13px] text-muted-foreground",kw=x.memo(function(r){const{t:n}=G(),[o,s]=x.useState(!1),{steps:d,status:p}=r,f=p==="streaming",h=ww(r),m=l.jsx(l.Fragment,{children:l.jsx(yw,{...r})});return l.jsxs("div",{part:"steps",className:"flex flex-col gap-2 text-[13px] text-muted-foreground",children:[d.length>0?l.jsxs("button",{type:"button","aria-expanded":o,"aria-label":`${n(o?"agent.hideSteps":"agent.showSteps")}: ${h}`,onClick:()=>{s(!o)},className:B(Lh,"hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",f&&"border-primary-35"),children:[m,o?l.jsx(ca,{className:"size-3.5 shrink-0 rotate-180","aria-hidden":"true"}):l.jsx(ca,{className:"size-3.5 shrink-0","aria-hidden":"true"})]}):l.jsx("div",{className:B(Lh,f&&"border-primary-35"),role:"status",children:m}),o&&d.length>0?l.jsx("ol",{"aria-label":n("agent.steps"),className:"m-0 flex list-none flex-col self-stretch rounded-xl border bg-background px-3.5 py-1.5",children:d.map((v,b)=>{const j=v.status==="running",k=j&&!f,S=fw(v);return l.jsxs("li",{className:"flex min-h-[34px] items-center gap-2.5 border-b border-dashed last:border-b-0",children:[l.jsx("span",{className:"flex w-[18px] shrink-0 justify-center",children:j&&f?l.jsx(Ph,{}):k?l.jsx(af,{className:"size-3.5","aria-hidden":"true"}):l.jsx(zr,{className:"size-3.5 text-mode-idle","aria-hidden":"true"})}),l.jsxs("span",{className:B("min-w-0 flex-1 break-words py-1",k?"text-muted-foreground":"text-foreground"),children:[l.jsx(Kl,{step:v}),S!=null?l.jsxs("span",{className:"text-muted-foreground/70",children:[" \u2014 ",S]}):null]}),k?l.jsx("span",{className:"shrink-0 whitespace-nowrap",children:n("agent.unfinished")}):null]},v.id??`${v.node}-${b}`)})}):null]})}),jw=(r,n)=>{const o=(r.split(/[?#]/)[0]??"").split("/").filter(Boolean).pop();if(!o||/^[0-9a-f-]{36}$/i.test(o))return n;try{return decodeURIComponent(o)}catch{return o}},Sw=r=>{try{return new URL(r,window.location.href).host}catch{return null}},Dh=({url:r,name:n,className:o,children:s})=>{const{api:d}=G(),[p,f]=x.useState(!1);if(Do(r,d.apiUrl)===null){const h=pa(r);return h?l.jsx("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:o,children:s}):l.jsx("span",{className:o,children:s})}return l.jsx("button",{type:"button",part:"attachment",className:B(o,p&&"opacity-70"),disabled:p,onClick:()=>{f(!0),d.attachment(r).then(h=>{N1(h,n)}).catch(()=>{}).finally(()=>{f(!1)})},children:s})},Th=({attachment:r})=>{const{api:n,lang:o,t:s}=G(),d=_f(r.name||jw(r.url,"file")),p=r.url&&Do(r.url,n.apiUrl)===null?Sw(r.url):null,f="inline-flex max-w-full items-center gap-2.5 rounded-xl border bg-muted p-1.5 text-left text-foreground",h=l.jsxs(l.Fragment,{children:[l.jsx(Ol,{ext:Al(d)}),l.jsxs("span",{className:"flex min-w-0 flex-col",children:[l.jsx("span",{className:"truncate text-[13px] font-medium leading-tight",children:d}),l.jsxs("span",{className:"flex items-center gap-1.5 text-2xs leading-tight text-muted-foreground",children:[p??(r.size?$l(r.size,o):null),r.url?null:l.jsxs(l.Fragment,{children:[r.size?l.jsx("span",{"aria-hidden":"true",children:"\xB7"}):null,l.jsx("span",{children:s("attachment.sending")}),l.jsx(Rr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"})]})]})]}),r.url&&p?l.jsx(yl,{className:"mr-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):r.url?l.jsx(nf,{className:"mr-1 size-4 shrink-0 text-muted-foreground","aria-hidden":"true"}):null]});return r.url?l.jsxs(Dh,{url:r.url,name:d,className:B(f,"transition-colors hover:bg-accent"),children:[p?null:l.jsxs("span",{className:"sr-only",children:[s("download"),": "]}),h]}):l.jsx("span",{className:f,children:h})},Cw=({url:r,alt:n})=>{const{api:o}=G(),[s,d]=x.useState(null),[p,f]=x.useState(!1);return x.useEffect(()=>{let h=null,m=!1;return o.attachment(r).then(v=>{m?URL.revokeObjectURL(v):(h=v,d(v))},()=>{m||f(!0)}),()=>{m=!0,h&&URL.revokeObjectURL(h)}},[o,r]),p?l.jsx("span",{className:"text-muted-foreground",children:n||r}):s?l.jsx("img",{src:s,alt:n,className:"max-w-full rounded-lg"}):l.jsx(Rr,{className:"size-4 animate-spin text-muted-foreground","aria-label":n})},Nw=8,Ql=({children:r})=>l.jsx("div",{className:"text-2xs text-muted-foreground",children:r}),Ew=({block:r,onAsk:n})=>{const{lang:o,t:s}=G(),d=Array.isArray(r.sections)?r.sections:[],p=(Array.isArray(r.indicators)?r.indicators:[]).slice(0,Nw),f=Math.max(0,r.total-p.length),h=Array.isArray(r.examples)?r.examples.filter(m=>typeof m=="string"&&m):[];return l.jsxs("section",{part:"catalog",className:"flex min-w-0 flex-col rounded-xl border bg-card",children:[r.topic?l.jsxs("h3",{className:"m-0 flex items-center gap-2 border-b px-3.5 py-2.5 text-sm font-semibold",children:[l.jsx(Oo,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),s("blocks.catalogTitle",{topic:r.topic})]}):null,l.jsxs("div",{className:"flex flex-col gap-2.5 px-3.5 py-3",children:[d.length>0?l.jsxs("div",{children:[l.jsx(Ql,{children:s("blocks.catalogSections")}),l.jsx("ul",{className:"m-0 list-none p-0",children:d.map(m=>l.jsxs("li",{className:"flex items-center gap-2 border-b py-[7px] text-[13px] last:border-b-0",children:[l.jsx($o,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1 leading-snug",children:m.path.join(" \u203A ")}),l.jsx("span",{className:"whitespace-nowrap tabular-nums text-muted-foreground",children:_t(m.count,o)})]},m.id))})]}):null,p.length>0?l.jsxs("div",{children:[l.jsx(Ql,{children:s("blocks.catalogIndicators")}),l.jsx("ul",{className:"m-0 list-none p-0",children:p.map(m=>l.jsxs("li",{className:"flex flex-col border-b py-1.5 last:border-b-0",children:[l.jsx("span",{className:"text-[13px] font-medium leading-snug",children:m.name}),m.unit||m.years?l.jsx("span",{className:"text-2xs text-muted-foreground",children:[_l(m.unit),_l(m.years)].filter(Boolean).join(" \xB7 ")}):null]},m.entity_id))}),f>0?l.jsx("p",{className:"m-0 pt-1 text-[13px] text-muted-foreground",children:s("blocks.catalogMore",{count:_t(f,o)})}):null]}):null,h.length>0?l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(Ql,{children:s("blocks.catalogExamples")}),h.map(m=>l.jsxs("button",{type:"button",className:"flex w-full items-center gap-2.5 rounded-[10px] border bg-background px-2.5 py-2 text-left text-[13px] leading-snug transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:()=>{n(m)},children:[l.jsx(sv,{className:"shrink-0 text-primary","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:m})]},m)),l.jsx("div",{className:"text-2xs text-muted-foreground",children:s("blocks.catalogSendHint")})]}):null]})]})},Xo=({rootRef:r,question:n,tone:o,children:s})=>{const{t:d}=G();return l.jsxs("section",{part:"clarification",ref:r,role:"group","aria-label":d("blocks.clarification"),"data-state":o,className:B("overflow-hidden rounded-[14px] border",o==="open"&&"border-primary-30 bg-card",o==="done"&&"bg-card",o==="expired"&&"bg-muted"),children:[l.jsx("div",{className:"flex items-center gap-2 px-3.5 pb-1 pt-3",children:l.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2 py-0.5 text-2xs font-medium text-secondary-foreground",children:[l.jsx(cf,{className:"size-3","aria-hidden":"true"}),d("blocks.clarification")]})}),l.jsx("p",{className:"m-0 px-3.5 pb-2.5 text-[15px] font-medium leading-snug",children:n}),s]})},Ih=({children:r})=>l.jsx("kbd",{className:"inline-flex h-4 min-w-4 items-center justify-center rounded border border-current/40 px-1 font-sans text-2xs leading-none opacity-80",children:r}),Yl=({children:r})=>l.jsx("div",{className:"flex items-center gap-2 border-t px-3.5 py-2.5 text-[13px] text-muted-foreground",children:r}),zw=2**31-1,_w=(r,n)=>{const[o,s]=x.useState(()=>new Date);return x.useEffect(()=>{if(!n)return;const d=Date.parse(r)-Date.now();if(!(d>0))return;const p=window.setTimeout(()=>{s(new Date)},Math.min(d+50,zw));return()=>{window.clearTimeout(p)}},[r,n]),o},Rw=({block:r,isLastInBranch:n,question:o,reply:s,disabled:d,onAsk:p})=>{const{t:f}=G(),h=x.useRef(null),m=_w(r.expires_at,n),v=mp(r,{isLastInBranch:n,now:m}),[b,j]=x.useState(""),k=x.useRef(!1),[S,z]=x.useState(!1),E=r.options,M=d||S,F=(Q,be=Q.label)=>{if(k.current||d)return;k.current=!0,z(!0);const Ne=p(be,{clarification_id:r.id,slot:r.slot,value:Q.value,free_text:null});Promise.resolve(Ne).then(ve=>{ve===!1&&(k.current=!1,z(!1))})},Z=x.useRef(F);x.useEffect(()=>{Z.current=F});const oe=r.type==="plan_confirm",J=E.find(Q=>Q.value===r.default)??E[0],re=E.find(Q=>Q!==J),$=oe?[...J?[{option:J,text:f("blocks.continue")}]:[],...re?[{option:re,text:f("blocks.cancelPlan")}]:[]]:E.slice(0,I1).map(Q=>({option:Q,text:Q.label})),X=x.useRef($);x.useEffect(()=>{X.current=$});const K=v==="open"&&!M,he=$.length;x.useEffect(()=>{if(!K||he===0)return;const Q=h.current?.getRootNode();if(!Q)return;const be=Ne=>{const ve=Ne;if(ve.defaultPrevented||ve.ctrlKey||ve.metaKey||ve.altKey||ve.repeat||U1(ve.composedPath()[0]))return;const ye=Number(ve.key),U=Number.isInteger(ye)&&ye>=1?X.current[ye-1]:void 0;U&&(ve.preventDefault(),Z.current(U.option,U.text))};return Q.addEventListener("keydown",be),()=>{Q.removeEventListener("keydown",be)}},[K,he]);const ee=v==="answered"&&o!==""&&s===o;if(v==="answered"&&!ee)return l.jsx(Xo,{rootRef:h,question:r.question,tone:"done",children:s?l.jsxs(Yl,{children:[l.jsx(zr,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.chosen",{label:s})})]}):null});if(v==="expired"||ee)return l.jsx(Xo,{rootRef:h,question:r.question,tone:"expired",children:l.jsxs(Yl,{children:[l.jsx(xl,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.expired")}),o&&!ee?l.jsxs(me,{variant:"input",size:"sm",className:"gap-1.5",disabled:d,onClick:()=>{p(o)},children:[l.jsx(hf,{"aria-hidden":"true"}),f("blocks.askAgain")]}):null]})});if(oe){const[Q,be]=$;return l.jsx(Xo,{rootRef:h,question:r.question,tone:"open",children:l.jsxs("div",{className:"flex flex-wrap gap-2 px-2.5 pb-2.5",children:[Q?l.jsxs(me,{size:"sm",disabled:M,onClick:()=>{F(Q.option,Q.text)},children:[l.jsx(Ih,{children:"1"}),Q.text]}):null,be?l.jsxs(me,{variant:"input",size:"sm",disabled:M,onClick:()=>{F(be.option,be.text)},children:[l.jsx(Ih,{children:"2"}),be.text]}):null]})})}const ue=E.length>=T1,W=ue?zb(E,b):E;return l.jsxs(Xo,{rootRef:h,question:r.question,tone:"open",children:[l.jsxs("div",{className:"flex flex-col gap-1.5 px-2.5 pb-2.5",children:[ue?l.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[l.jsx(sn,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{type:"search",value:b,placeholder:f("blocks.findOption"),"aria-label":f("blocks.findOption"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:Q=>{j(Q.target.value)}})]}):null,W.length>0?l.jsx("ul",{"aria-label":f("blocks.options"),className:"m-0 flex list-none flex-col gap-1.5 p-0",children:W.map(Q=>{const be=E.indexOf(Q)+1;return l.jsx("li",{children:l.jsxs("button",{type:"button",disabled:M,className:B("flex w-full items-start gap-3 rounded-[10px] border bg-background px-3 py-[9px] text-left transition-colors motion-reduce:transition-none","hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:bg-muted disabled:text-disabled-foreground"),onClick:()=>{F(Q)},children:[l.jsx("span",{className:"mt-px flex h-[22px] min-w-[22px] shrink-0 items-center justify-center rounded-md border text-2xs font-semibold tabular-nums text-muted-foreground",children:be}),l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[l.jsxs("span",{className:"text-sm font-medium leading-snug",children:[Q.label,Q.value===r.default?l.jsx("span",{className:"ml-1.5 whitespace-nowrap rounded-full bg-muted px-1.5 py-px text-2xs font-normal text-muted-foreground",children:f("blocks.default")}):null]}),Q.hint?l.jsx("span",{className:"text-[13px] leading-snug text-muted-foreground",children:Q.hint}):null]})]})},Q.value)})}):l.jsx("p",{className:"px-1 py-2 text-sm text-muted-foreground",children:f("searchEmpty")})]}),r.allow_free_text?l.jsxs(Yl,{children:[l.jsx(cf,{className:"shrink-0","aria-hidden":"true"}),l.jsx("span",{className:"min-w-0 flex-1",children:f("blocks.freeTextHint")})]}):null]})},Mw=10,Pw=({section:r})=>{const{t:n}=G(),o=r.latest_period,s=r.shape==="trend",d=s?[]:pn(r,{period:o,mode:"value",base:"median"}),p=d.slice(0,Mw);return l.jsxs("div",{part:"dashboard-preview",className:"flex min-w-0 flex-col gap-3 rounded-xl bg-[hsl(var(--chart-card))] px-4 py-3.5",children:[l.jsxs("div",{className:"min-w-0",children:[l.jsx("p",{className:"text-sm font-semibold leading-snug",children:r.title}),s?null:l.jsxs("p",{className:"text-2xs text-muted-foreground",children:[o,", ",r.unit.label]})]}),l.jsx(th,{compact:!0,section:r,period:o,label:n("chart.label",{title:r.title,period:o}),rows:p,national:Gf(r,o,p.map(f=>f.value))}),d.length>p.length?l.jsx("p",{className:"text-2xs text-muted-foreground",children:n("chart.top",{n:p.length,total:d.length})}):null]})},Ko=r=>r.type==="number"||r.type==="integer",Lw=(r,n,o)=>Ko(r)?_t(q1(n),o,r.type==="integer"?0:void 0):_l(n)||"\u2014",Dw={asc:tf,desc:ef},Tw=({block:r})=>{const{lang:n,t:o}=G(),[s,d]=x.useState(),[p,f]=x.useState("asc"),[h,m]=x.useState(1),[v,b]=x.useState(""),j=Array.isArray(r.columns)?r.columns:[],k=Cb({...r,columns:j,data:Array.isArray(r.data)?r.data:[]},{...s?{sortKey:s,dir:p}:{},page:h,query:v}),S=j.some(E=>E.type==="string"),z=E=>{E===s?f(M=>M==="asc"?"desc":"asc"):(d(E),f("asc")),m(1)};return l.jsxs("div",{part:"data-table",className:"flex min-w-0 flex-col gap-2",children:[S?l.jsxs("label",{className:"flex h-8 items-center gap-2 rounded-md border border-input bg-background px-2.5 text-sm focus-within:border-primary focus-within:ring-[3px] focus-within:ring-secondary",children:[l.jsx(sn,{className:"shrink-0 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{type:"search",value:v,placeholder:o("blocks.tableSearch"),"aria-label":o("blocks.tableSearch"),className:"min-w-0 flex-1 bg-transparent outline-none placeholder:text-muted-foreground",onChange:E=>{b(E.target.value),m(1)}})]}):null,l.jsxs("div",{className:"max-w-full overflow-x-auto overscroll-x-contain rounded-[10px] border bg-background",children:[l.jsxs("table",{className:"w-full border-collapse text-[13.5px]","aria-label":o("blocks.table"),children:[l.jsx("thead",{children:l.jsx("tr",{className:"border-b bg-muted",children:j.map(E=>{const M=E.key===s,F=M?Dw[p]:Cx;return l.jsx("th",{scope:"col","aria-sort":M?p==="asc"?"ascending":"descending":"none",className:B("p-0 font-semibold",Ko(E)?"text-right":"text-left"),children:l.jsxs("button",{type:"button",className:B("inline-flex w-full items-center gap-1 whitespace-nowrap px-3 py-[7px] text-[13.5px] font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",Ko(E)&&"flex-row-reverse"),onClick:()=>{z(E.key)},children:[l.jsx("span",{children:E.title}),E.unit?l.jsxs("span",{className:"font-normal",children:[", ",E.unit]}):null,l.jsx(F,{className:B("shrink-0 text-muted-foreground",!M&&"opacity-50"),"aria-hidden":"true"})]})},E.key)})})}),l.jsx("tbody",{children:k.rows.map((E,M)=>l.jsx("tr",{className:"border-b last:border-b-0",children:j.map(F=>l.jsx("td",{className:B("px-3 py-[7px] align-top",Ko(F)?"whitespace-nowrap text-right tabular-nums":"min-w-32"),children:Lw(F,E[F.key],n)},F.key))},k.from+M))})]}),k.total===0?l.jsx("p",{className:"px-3 py-3 text-center text-sm text-muted-foreground",children:o(v?"searchEmpty":"blocks.tableEmpty")}):null]}),k.pages>1?l.jsxs("div",{className:"flex items-center justify-end gap-1 text-2xs tabular-nums text-muted-foreground",children:[l.jsx(me,{variant:"ghost",size:"icon",className:"size-7",disabled:k.page<=1,"aria-label":o("blocks.prevPage"),onClick:()=>{m(k.page-1)},children:l.jsx(rf,{"aria-hidden":"true"})}),l.jsx("span",{"aria-live":"polite",children:o("blocks.page",{a:k.page,b:k.pages})}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-7",disabled:k.page>=k.pages,"aria-label":o("blocks.nextPage"),onClick:()=>{m(k.page+1)},children:l.jsx($o,{"aria-hidden":"true"})})]}):null,r.truncated?l.jsx("p",{className:"text-2xs text-muted-foreground",children:o("blocks.truncated",{n:Array.isArray(r.data)?r.data.length:0})}):null]})},Zl="inline-flex min-h-[30px] max-w-full items-center gap-1.5 rounded-lg bg-muted px-2.5 py-1 text-[13px]",Iw=["sex","age","urban_rural","activity","item"],Aw=r=>Iw.includes(r),Jl=({label:r,children:n,title:o})=>l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"shrink-0 whitespace-nowrap text-muted-foreground",children:r}),l.jsx("span",{className:"min-w-0 truncate font-medium",title:o,children:n})]}),Gl=({label:r,children:n,className:o})=>l.jsx("li",{className:B(Zl,o),title:r,children:l.jsx(Jl,{label:r,children:n})}),Ow=({block:r,question:n,onAsk:o})=>{const{t:s}=G(),[d,p]=x.useState(!1),f=x.useId(),h=r.indicators.map(j=>j.name).join(", "),m=r.territories.map(j=>j.name).join(", "),v=r.breakdown&&Aw(r.breakdown)?s(`blocks.breakdown.${r.breakdown}`):"",b=r.alternatives.length>0&&n!=="";return l.jsxs("div",{part:"plan",role:"group","aria-label":s("blocks.passport"),className:"flex flex-col gap-1.5",children:[l.jsx("div",{className:"text-2xs text-muted-foreground",children:s("blocks.passport")}),l.jsxs("ul",{"aria-label":s("blocks.passport"),className:"m-0 flex list-none flex-wrap items-center gap-1.5 p-0",children:[h?b?l.jsxs("li",{className:"relative max-w-full",children:[l.jsxs("button",{type:"button",className:B(Zl,"border border-border bg-background transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",d&&"border-primary ring-[3px] ring-secondary"),title:h,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":f,onClick:()=>{p(j=>!j)},children:[l.jsx(Jl,{label:s("blocks.indicator"),children:h}),l.jsx(ca,{className:B("shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none",d&&"rotate-180"),"aria-hidden":"true"})]}),d?l.jsxs("div",{id:f,role:"menu","aria-label":s("blocks.alternatives"),className:"absolute left-0 top-full z-20 mt-1 flex min-w-[220px] max-w-[min(360px,80vw)] flex-col rounded-md border bg-background p-1 shadow-pop",children:[l.jsx("div",{className:"px-2.5 pb-1 pt-1.5 text-2xs text-muted-foreground",children:s("blocks.alternatives")}),r.alternatives.map(j=>l.jsx("button",{type:"button",role:"menuitem",className:"flex min-h-9 w-full items-center rounded-md px-2.5 py-1.5 text-left text-sm transition-colors hover:bg-accent focus-visible:bg-accent focus-visible:outline-none motion-reduce:transition-none",onClick:()=>{p(!1),o(`${n} \u2014 ${j.name}`)},children:j.name},j.id))]}):null]}):l.jsx(Gl,{label:s("blocks.indicator"),children:h}):null,m?l.jsx(Gl,{label:s("blocks.territory"),children:m}):null,r.period.label?l.jsxs("li",{className:B(Zl,r.period.substituted&&"border border-warning/40"),title:r.period.reason??s("blocks.period"),children:[l.jsx(Jl,{label:s("blocks.period"),children:r.period.label}),r.period.substituted?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-muted-foreground","aria-hidden":"true",children:"\xB7"}),l.jsx("span",{className:"text-warn-text",children:s("blocks.substituted")})]}):null]}):null,v?l.jsx(Gl,{label:s("blocks.breakdown"),children:v}):null]})]})},Ah="gap-1.5 text-[13px]",Oh="gap-1.5 text-[13px] text-muted-foreground hover:text-foreground",$w=({text:r})=>{const{t:n}=G(),[o,s]=x.useState(!1),d=x.useRef(void 0);return x.useEffect(()=>()=>{window.clearTimeout(d.current)},[]),l.jsxs(me,{part:"copy",variant:"ghost",size:"sm",className:Oh,onClick:()=>{El(r).then(p=>{p&&(s(!0),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{s(!1)},2e3))})},children:[o?l.jsx(zr,{"aria-hidden":"true"}):l.jsx(vl,{"aria-hidden":"true"}),n(o?"copied":"copy")]})},Fw=({message:r,isLastInBranch:n,onAsk:o,children:s,dashboardOpen:d=!1,onToggleDashboard:p})=>{const{path:f,t:h}=G(),[m,v]=x.useState(!1),{blocks:b}=r,j=fr(b,"plan"),k=fr(b,"table"),S=fr(b,"catalog"),z=fr(b,"clarification"),{question:E,reply:M}=O1(f,r.id),F=r.status==="streaming",Z=j?.methodology?pa(j.methodology.url):null,oe=b.length>0&&!F?Eb(r):"",J=!F&&r.status!=="error"&&Ep(r.id),re=fr(b,"dashboard"),$=re?.sections[0],X=J&&re!==void 0,K=X?p:void 0,he=Tf(b),ee=F?[]:A1(b);return l.jsxs(l.Fragment,{children:[j?l.jsx(Ow,{block:j,question:E,onAsk:o}):null,s,S?l.jsx(Ew,{block:S,onAsk:o}):null,z?l.jsx(Rw,{block:z,isLastInBranch:n,question:E,reply:M,disabled:F,onAsk:o}):null,$?l.jsx(Pw,{section:$}):null,k&&m?l.jsx(Tw,{block:k}):null,ee.length>0?l.jsx(lh,{files:ee}):null,J?l.jsx(ch,{messageId:r.id,block:he}):null,b.length>0&&!F?l.jsxs("div",{part:"answer-actions",role:"group",className:"flex flex-wrap items-center gap-1.5",children:[k?l.jsxs(me,{part:"data-toggle",variant:"input",size:"sm",className:Ah,"aria-expanded":m,onClick:()=>{v(ue=>!ue)},children:[l.jsx(Iv,{"aria-hidden":"true"}),h(m?"blocks.hideData":"blocks.data")]}):null,K?l.jsxs(me,{part:"dashboard-toggle","data-message-id":r.id,variant:"input",size:"sm",className:B(Ah,d&&"border-primary bg-secondary text-secondary-foreground"),"aria-expanded":d,onClick:()=>{K(r.id)},children:[l.jsx(Mx,{"aria-hidden":"true"}),h(d?"blocks.hideDashboard":"blocks.dashboard")]}):null,X?l.jsx(ah,{messageId:r.id,block:he}):null,j?.methodology&&Z?l.jsx(me,{part:"methodology",variant:"ghost",size:"sm",className:Oh,asChild:!0,children:l.jsxs("a",{href:Z,target:"_blank",rel:"noopener noreferrer",title:j.methodology.title,children:[l.jsx(Oo,{"aria-hidden":"true"}),h("blocks.methodology")]})}):null,oe?l.jsx($w,{text:oe}):null]}):null]})},Uw=5e4,$h=2e5,qw=x.lazy(()=>import("./markdown-impl-DU_yACyd.js").then(r=>({default:r.MarkdownImpl}))),Vw=x.memo(function({children:r,streaming:n=!1,className:o}){const s=l.jsx("span",{className:"whitespace-pre-wrap",children:r.length>$h?`${r.slice(0,$h)}\u2026`:r});return l.jsxs("div",{part:"markdown",className:B("min-w-0 break-words text-[15px] leading-[1.65] text-foreground",o),children:[r.length>Uw?s:l.jsx(dl,{fallback:s,children:l.jsx(x.Suspense,{fallback:s,children:l.jsx(qw,{children:r})})}),n?l.jsx("span",{"aria-hidden":"true",className:"ml-0.5 inline-block h-[17px] w-[7px] translate-y-[3px] rounded-sm bg-primary animate-pulse motion-reduce:animate-none"}):null]})}),mn="size-7 shrink-0 text-muted-foreground hover:text-foreground",Fh=({messageId:r,disabled:n})=>{const{index:o,switchBranch:s,t:d}=G(),{list:p,position:f}=p0(o,r);if(p.length<2||f<0)return null;const h=p[f-1],m=p[f+1];return l.jsxs("div",{part:"branch",className:"flex items-center text-[13px] tabular-nums text-muted-foreground",role:"group","aria-label":d("branch.label"),children:[l.jsx(me,{variant:"ghost",size:"icon",className:mn,disabled:n||!h,"aria-label":d("branch.prev"),onClick:()=>{h&&s(h.id)},children:l.jsx(rf,{"aria-hidden":"true"})}),l.jsxs("span",{"aria-live":"polite",className:"min-w-[30px] text-center",children:[f+1,"/",p.length]}),l.jsx(me,{variant:"ghost",size:"icon",className:mn,disabled:n||!m,"aria-label":d("branch.next"),onClick:()=>{m&&s(m.id)},children:l.jsx($o,{"aria-hidden":"true"})})]})},Bw=({text:r})=>{const{t:n}=G(),[o,s]=x.useState(!1),d=x.useRef(void 0);x.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);const p=n(o?"copied":"copy");return l.jsx(me,{part:"copy",variant:"ghost",size:"icon",className:mn,"aria-label":p,title:p,onClick:()=>{El(r).then(f=>{f&&(s(!0),window.clearTimeout(d.current),d.current=window.setTimeout(()=>{s(!1)},2e3))})},children:o?l.jsx(zr,{"aria-hidden":"true"}):l.jsx(vl,{"aria-hidden":"true"})})},Ww=({message:r})=>{const{rate:n,t:o}=G(),[s,d]=x.useState(),p=zf(r.rating)??0;return l.jsx("span",{part:"rating",role:"radiogroup","aria-label":o("rateGroup"),className:"inline-flex items-center",onKeyDown:yh,onMouseLeave:()=>{d(void 0)},children:Ef.map((f,h)=>{const m=f<=p,v=!m&&p===0&&s!==void 0&&f<=s;return l.jsx("button",{type:"button",role:"radio",tabIndex:vh(h,p-1),"aria-checked":p===f,"aria-label":o("rate",{count:f}),className:B("inline-flex size-[30px] items-center justify-center rounded-md text-muted-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",(m||v)&&"text-warning"),onMouseEnter:()=>{d(f)},onClick:()=>{n(r.id,f)},children:l.jsx(Dv,{className:B("size-4",m&&"fill-current"),"aria-hidden":"true"})},f)})})},Hw=({message:r,isLast:n,busy:o,ready:s,persisted:d,canFeedback:p,feedbackOpen:f,onOpenFeedback:h})=>{const{send:m,state:v,t:b}=G(),j=r.status==="error",k=n&&s&&!o&&!v.limit.blocked;if(j&&!k)return null;const S=Nf.find(F=>F===r.feedbackReason),z=!!(r.feedback||S),E=r.blocks.length>0,M=()=>{m({query:"",mode:v.mode??r.mode,regenerateOf:r.id})};return l.jsxs("div",{part:"actions",role:"toolbar","aria-label":b("actionsLabel"),className:B("flex min-h-8 flex-wrap items-center gap-0.5",!j&&r.rating==null&&!z&&Cl),children:[s&&!j&&r.content&&!E?l.jsx(Bw,{text:r.content}):null,k?j?l.jsxs(me,{part:"regenerate",variant:"input",size:"sm",className:"gap-1.5",onClick:M,children:[l.jsx(ff,{"aria-hidden":"true"}),b("regenerate")]}):l.jsxs(me,{part:"regenerate",variant:"ghost",size:"icon",className:B(mn,"max-sm:h-8 max-sm:w-auto max-sm:gap-1.5 max-sm:px-2.5 max-sm:text-[13px]"),"aria-label":b("regenerate"),title:b("regenerate"),onClick:M,children:[l.jsx(ff,{"aria-hidden":"true"}),l.jsx("span",{className:"hidden max-sm:inline",children:b("regenerate")})]}):null,s&&!j?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"mx-1.5 h-[18px] w-px bg-border","aria-hidden":"true"}),l.jsx(Ww,{message:r})]}):null,l.jsx(Fh,{messageId:r.id,disabled:o||!d}),p&&!f?l.jsx(me,{variant:"link",size:"sm",onClick:h,children:b(z?"feedbackEdit":"feedbackOpen")}):null]})},Xw=({message:r,onClose:n})=>{const{saveFeedback:o,t:s}=G(),[d,p]=x.useState(r.feedback),[f,h]=x.useState(!1),[m,v]=x.useState(!1),b=()=>{h(!0),v(!1),o(r.id,d.trim()).then(j=>{h(!1),j?n():v(!0)})};return l.jsxs("form",{part:"feedback","aria-label":s("feedbackLabel"),onSubmit:j=>{j.preventDefault()},className:"flex flex-col gap-3 rounded-[14px] border bg-background p-3.5",children:[l.jsx(Hl,{autoFocus:!0,value:d,onChange:p,placeholder:s("feedbackPlaceholder"),"aria-label":s("feedbackLabel"),maxLength:Nl,disabled:f,className:"min-h-[76px] rounded-md border border-input bg-background px-3 py-2.5 text-[15px] leading-normal focus:border-primary focus:ring-[3px] focus:ring-secondary"}),m?l.jsxs("div",{role:"alert",className:"flex items-start gap-1.5 text-[13px] text-destructive",children:[l.jsx(_r,{className:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:s("ratingError")})]}):null,l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsxs("span",{className:B("mr-auto text-2xs tabular-nums text-muted-foreground",d.length>=Nl&&"font-semibold text-warn-text"),children:[d.length,"/",Nl]}),l.jsx(me,{variant:"ghost",size:"sm",onClick:n,disabled:f,children:s("cancel")}),l.jsxs(me,{size:"sm",disabled:f,onClick:b,children:[f?l.jsx(Rr,{className:"size-3 animate-spin motion-reduce:animate-none","aria-hidden":"true"}):null,s("save")]})]})]})},Kw=({message:r})=>{const{t:n}=G(),o=Nf.find(s=>s===r.feedbackReason);return!o&&!r.feedback?null:l.jsxs("div",{part:"feedback-saved",className:"flex flex-col gap-1 rounded-xl bg-muted px-3 py-2.5 text-sm",children:[o?l.jsx("span",{className:"font-semibold",children:n(`feedback.reason.${o}`)}):null,r.feedback?l.jsx("span",{className:"whitespace-pre-line break-words",children:r.feedback}):null]})},Qw=60,Yw=3,Zw=.1,Jw=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function Gw(r,n){const o=r.charCodeAt(n-1);return o>=55296&&o<=56319?n+1:n}function ek(r,n){const[o]=x.useState(Jw),[s,d]=x.useState(!1);n&&!s&&!o&&d(!0);const[p,f]=x.useState(r.length),h=x.useRef(p),m=x.useRef(r);return x.useLayoutEffect(()=>{m.current=r},[r]),x.useEffect(()=>{if(!s)return;h.current>r.length&&(h.current=r.length,f(r.length));let v=0,b=null;const j=k=>{const S=m.current,z=b==null?1/60:Math.min((k-b)/1e3,Zw);b=k;const E=S.length-h.current;if(E<=0)return;const M=Math.max(1,Math.round(Math.max(Qw*z,E*Math.min(1,Yw*z))));h.current=Math.min(S.length,Gw(S,h.current+M)),f(h.current),v=requestAnimationFrame(j)};return v=requestAnimationFrame(j),()=>{cancelAnimationFrame(v)}},[r,s]),!s||p>=r.length?r:r.slice(0,p)}const tk=({message:r,isLast:n,busy:o,persisted:s,dashboardOpen:d,onToggleDashboard:p})=>{const{send:f,state:h,t:m}=G(),[v,b]=x.useState(!1),j=r.status==="streaming",k=r.status==="error",S=ek(r.content,j),z=j||S.length<r.content.length,E=ix(j,r.status),M=!j&&s,F=M&&!k,Z=!k&&(j||r.steps.length>0),oe=Date.parse(r.createdAt)||0,J=E?"eureka":tx(r.status,r.content.length>0),re=($,X)=>f({query:$,mode:h.mode??r.mode,...X?{clarification:X}:{}}).then(K=>K==="sent");return l.jsxs("article",{part:"message","data-role":"assistant","data-status":r.status,"aria-busy":j,className:"group flex items-start gap-3",children:[l.jsx("div",{part:"avatar",className:"w-10 shrink-0 max-sm:hidden",children:l.jsx(Kp,{mood:J,size:40,animated:j||E})}),l.jsxs("div",{part:k?"bubble assistant-bubble error-bubble":"bubble assistant-bubble",className:"flex min-w-0 flex-1 flex-col gap-3",children:[Z?l.jsx(kw,{steps:r.steps,status:r.status,startedAt:oe,durationMs:r.durationMs,stopping:h.turn?.stopping===!0&&h.turn.assistantId===r.id}):null,k?l.jsxs("div",{role:"alert",className:"flex items-start gap-2.5 rounded-xl border border-error/30 bg-destructive-background px-3.5 py-3 text-sm",children:[l.jsx(_r,{className:"mt-0.5 size-4 shrink-0 text-destructive","aria-hidden":"true"}),l.jsx("span",{children:r.content||m("errors.generic")})]}):null,l.jsx(Fw,{message:r,isLastInBranch:n,onAsk:re,dashboardOpen:d,onToggleDashboard:p,children:r.content&&!k?l.jsx(Vw,{streaming:z,children:S}):null}),r.attachments.length>0?l.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.attachments.map(($,X)=>l.jsx(Th,{attachment:$},$.id??`${$.name}-${X}`))}):null,r.status==="stopped"?l.jsxs("div",{className:"flex items-center gap-2 text-[13px] text-muted-foreground",children:[l.jsx(of,{className:"size-4 shrink-0","aria-hidden":"true"}),l.jsx("span",{children:m("agent.answerStopped")})]}):null,j?null:l.jsx(Hw,{message:r,isLast:n,busy:o,ready:M,persisted:s,canFeedback:F,feedbackOpen:v,onOpenFeedback:()=>{b(!0)}}),F&&v?l.jsx(Xw,{message:r,onClose:()=>{b(!1)}}):null,F&&!v?l.jsx(Kw,{message:r}):null]})]})},rk=({message:r,onClose:n})=>{const{send:o,state:s,t:d}=G(),p=x.useId(),[f,h]=x.useState(r.content),m=s.mode??r.mode,v=s.config?.max_query_chars??Lp,b=f.trim(),j=b!==r.content.trim(),k=f.length>v,S=b.length>0&&j&&!k&&!s.turn&&!s.limit.blocked,z=()=>{S&&(n(),o({query:b,mode:m,parentId:r.parentId??""}))};return l.jsxs("div",{part:"edit",onKeyDown:E=>{E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),n())},className:"flex w-full max-w-[640px] flex-col gap-2 rounded-2xl border border-primary bg-background px-3 py-2.5 ring-[3px] ring-secondary",children:[l.jsx(Hl,{autoFocus:!0,value:f,onChange:h,"aria-label":d("editLabel"),"aria-invalid":k||void 0,"aria-describedby":p,className:"py-0.5 text-lg",onSubmit:z}),l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(jh,{id:p,count:f.length,max:v,className:"mr-auto px-0"}),l.jsx(me,{variant:"ghost",size:"sm",onClick:n,children:d("cancel")}),l.jsx(me,{size:"sm",disabled:!S,onClick:z,children:d("send")})]})]})},ak=({message:r,busy:n,persisted:o})=>{const{t:s}=G(),[d,p]=x.useState(!1);return l.jsx("div",{part:"message","data-role":"user",className:"group flex flex-col items-end gap-1.5",children:d?l.jsx(rk,{message:r,onClose:()=>{p(!1)}}):l.jsxs(l.Fragment,{children:[r.attachments.length>0?l.jsx("div",{className:"flex max-w-[78%] flex-wrap justify-end gap-1.5 max-sm:max-w-[88%]",children:r.attachments.map((f,h)=>l.jsx(Th,{attachment:f},f.id??`${f.name}-${h}`))}):null,l.jsx("div",{part:"bubble user-bubble",className:"max-w-[78%] whitespace-pre-wrap break-words rounded-[calc(var(--aid-c-radius)+6px)] rounded-br-[6px] bg-primary px-3.5 py-2.5 text-[15px] leading-normal text-primary-foreground max-sm:max-w-[88%]",children:r.content}),l.jsxs("div",{className:"flex min-h-7 items-center gap-0.5",children:[o?l.jsx(me,{part:"edit-button",variant:"ghost",size:"icon",className:B(mn,Cl),disabled:n,"aria-label":s("edit"),title:s("edit"),onClick:()=>{p(!0)},children:l.jsx(wv,{"aria-hidden":"true"})}):null,l.jsx(Fh,{messageId:r.id,disabled:n||!o})]})]})})},nk=x.memo(function({message:r,isLast:n,busy:o,dashboardOpen:s,onToggleDashboard:d}){const{t:p}=G(),f=Ep(r.id),h=l.jsx("p",{part:"message-error",className:"text-sm text-muted-foreground",children:p("errors.render")});return l.jsx(dl,{fallback:h,children:r.role==="user"?l.jsx(ak,{message:r,busy:o,persisted:f}):l.jsx(tk,{message:r,isLast:n,busy:o,persisted:f,dashboardOpen:s,onToggleDashboard:d})})}),Uh=r=>r.scrollHeight-r.scrollTop-r.clientHeight,ok=16,ik=({resetKey:r,followKey:n})=>{const o=x.useRef(null),s=x.useRef(null),d=x.useRef(!0),p=x.useRef(0),f=x.useRef(!1),h=x.useRef(null),[m,v]=x.useState(!0),b=x.useCallback(()=>{const S=o.current;if(!S)return;const z=S.querySelectorAll('[data-role="user"]'),E=z[z.length-1];if(!f.current&&E){const M=S.scrollTop+E.getBoundingClientRect().top-S.getBoundingClientRect().top-ok;if(M<S.scrollHeight-S.clientHeight){f.current=!0,d.current=!1,S.scrollTop=Math.max(0,M),h.current=S.scrollTop;return}}S.scrollTop=S.scrollHeight},[]),j=x.useCallback(()=>{const S=o.current;if(!S)return;d.current=!0;const z=typeof matchMedia<"u"&&matchMedia("(prefers-reduced-motion: reduce)").matches;S.scrollTo({top:S.scrollHeight,behavior:z?"auto":"smooth"})},[]),k=x.useCallback(()=>{const S=o.current;if(!S)return;const z=Uh(S)<Sf,E=h.current!==null&&Math.abs(S.scrollTop-h.current)<1;E||(h.current=null),z&&!E?d.current=!0:S.scrollTop<p.current-1&&(d.current=!1),p.current=S.scrollTop,v(z)},[]);return x.useLayoutEffect(()=>{d.current=!0,f.current=!1,h.current=null,b()},[r,n,b]),x.useEffect(()=>{const S=s.current,z=o.current;if(!S||!z||typeof ResizeObserver>"u")return;const E=new ResizeObserver(()=>{d.current&&b(),v(Uh(z)<Sf)});return E.observe(S),()=>{E.disconnect()}},[b]),{scrollRef:o,contentRef:s,onScroll:k,atBottom:m,scrollToBottom:j}},sk=()=>{const{state:r,path:n,t:o}=G(),{state:s,toggle:d}=Lr(),p=n.filter(S=>S.role==="user").length,{scrollRef:f,contentRef:h,onScroll:m,atBottom:v,scrollToBottom:b}=ik({resetKey:r.thread?.id??null,followKey:p}),j=r.turn!==null,k=n[n.length-1];return l.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[l.jsx("div",{ref:f,part:"messages",onScroll:m,"aria-live":"polite","aria-busy":j,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:l.jsx("div",{ref:h,className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:n.map(S=>l.jsx(nk,{message:S,isLast:S===k,busy:j,dashboardOpen:S.id===s.messageId,onToggleDashboard:d},S.id))})}),v?null:l.jsxs("button",{part:"scroll-down",type:"button",className:"absolute bottom-3 left-1/2 inline-flex h-9 -translate-x-1/2 items-center gap-1.5 whitespace-nowrap rounded-full border bg-background pl-3 pr-3.5 text-[13px] font-medium text-foreground shadow-pop transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",onClick:b,children:[l.jsx(ef,{"aria-hidden":"true"}),o("scrollDown")]})]})},lk={error:"bg-error-background text-destructive",warning:"bg-warning-background text-warn-text",lock:"bg-muted text-muted-foreground"},qh=({tone:r,children:n})=>l.jsx("span",{className:B("flex size-[52px] items-center justify-center rounded-full",lk[r]),children:n}),ck=({kind:r,onRetry:n})=>{const{t:o}=G();if(r==="loading")return l.jsxs("div",{part:"shell-status","data-state":"loading","aria-busy":"true",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx("span",{"aria-hidden":"true",className:"size-[26px] animate-spin rounded-full border-[3px] border-current border-r-transparent text-primary motion-reduce:animate-none"}),l.jsx("span",{role:"status",className:"text-xs text-muted-foreground",children:o("loading")})]});if(r==="siteBlocked")return l.jsxs("div",{part:"shell-status","data-state":"siteBlocked",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx(qh,{tone:"lock",children:l.jsx(sf,{className:"size-6","aria-hidden":"true"})}),l.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o("shell.siteBlocked")}),l.jsx("p",{className:"max-w-[440px] text-xs text-muted-foreground",children:o("shell.siteBlockedHint")})]});const s=r==="overloaded";return l.jsxs("div",{part:"shell-status","data-state":s?"overloaded":"unavailable",role:"alert",className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-8 text-center",children:[l.jsx(qh,{tone:s?"warning":"error",children:s?l.jsx(Fo,{className:"size-6","aria-hidden":"true"}):l.jsx(_r,{className:"size-6","aria-hidden":"true"})}),l.jsx("p",{className:"max-w-[300px] text-lg font-semibold",children:o(s?"overloaded":"configError")}),n?l.jsxs(me,{variant:"input",size:"sm",onClick:n,children:[l.jsx(hf,{"aria-hidden":"true"}),o("retry")]}):null]})},dk=()=>{const{state:r,reload:n}=G(),o=hx(r);return o===null?null:l.jsx(ck,{kind:o,onRetry:o==="siteBlocked"?void 0:n})},uk="h-3 rounded-md bg-muted animate-pulse motion-reduce:animate-none",pk=()=>{const{t:r}=G();return l.jsxs("div",{"aria-busy":"true",className:"min-h-0 flex-1 overflow-hidden",children:[l.jsxs("div",{className:"mx-auto flex w-full max-w-[820px] flex-col gap-[22px] px-4 pb-4 pt-[18px]",children:[l.jsx("div",{className:"flex justify-end",children:l.jsx("div",{className:"h-[38px] w-[62%] rounded-[18px] rounded-br-[6px] bg-muted animate-pulse motion-reduce:animate-none"})}),l.jsx("div",{className:"flex flex-col gap-2.5",children:[90,76,84,40].map(n=>l.jsx("div",{className:uk,style:{width:`${n}%`}},n))})]}),l.jsx("span",{role:"status",className:"sr-only",children:r("loading")})]})},fk=({composerRef:r,wide:n})=>{const{state:o,path:s}=G(),d=!!o.config&&!o.loadingThread&&!o.configError,p=d&&s.length===0,f=m=>{r&&"current"in r&&r.current?.setText(m)};let h;return d?p?h=l.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:l.jsx(pw,{wide:n,onPick:f})}):h=l.jsx(sk,{}):h=o.loadingThread&&o.config&&!o.configError?l.jsx(pk,{}):l.jsx(dk,{}),l.jsxs(l.Fragment,{children:[h,l.jsx(ow,{composerRef:r})]})},bn="size-8 shrink-0 text-muted-foreground hover:text-foreground",hk=({historyHidden:r,onShowHistory:n,onOpenSettings:o,title:s,logoUrl:d,threadTitle:p,tabs:f,inert:h=!1})=>{const{t:m,newChat:v}=G(),b=cl(),j=x.useRef(null);Mr(j,h);const k=p!==void 0&&p!==""?p:r?s:"";return l.jsxs("div",{ref:j,part:"toolbar",className:"flex h-toolbar shrink-0 items-center gap-1 border-b py-0 pl-2.5 pr-2",children:[r?l.jsx(me,{part:"history-toggle",variant:"ghost",size:"icon",className:bn,"aria-expanded":!1,"aria-label":m("history"),title:m("history"),onClick:n,children:l.jsx(mv,{"aria-hidden":"true"})}):null,r&&d?l.jsx("img",{part:"logo",src:d,alt:"",referrerPolicy:"no-referrer",className:"size-6 shrink-0 rounded-md object-contain"}):null,l.jsx("span",{className:"min-w-0 flex-1 truncate px-1.5 text-sm font-semibold",children:k}),f,l.jsx(me,{variant:"ghost",size:"icon",className:bn,"aria-label":m("newChat"),title:m("newChat"),onClick:v,children:l.jsx(pf,{"aria-hidden":"true"})}),b.canExpand?l.jsx(me,{part:"expand",variant:"ghost",size:"icon",className:bn,"aria-label":b.expanded?m("shrink"):m("expand"),title:b.expanded?m("shrink"):m("expand"),onClick:()=>{b.setExpanded(!b.expanded)},children:b.expanded?l.jsx(uf,{"aria-hidden":"true"}):l.jsx(lf,{"aria-hidden":"true"})}):null,l.jsx(me,{part:"settings-button",variant:"ghost",size:"icon",className:bn,"aria-label":m("settings"),title:m("settings"),onClick:o,children:l.jsx(Rv,{"aria-hidden":"true"})}),b.close?l.jsx(me,{part:"close",variant:"ghost",size:"icon",className:bn,"aria-label":m("close"),title:m("close"),onClick:b.close,children:l.jsx(ln,{"aria-hidden":"true"})}):null]})},gk="flex shrink-0 flex-col border-r duration-200 animate-in fade-in slide-in-from-left-2 motion-reduce:animate-none",mk="w-side bg-muted",bk="absolute inset-y-0 left-0 z-30 w-side-over max-w-full bg-muted shadow-side",xk=({title:r,logoUrl:n,onHide:o})=>{const{t:s}=G();return l.jsxs("div",{part:"header",className:"flex h-side-head shrink-0 items-center gap-2.5 pl-3.5 pr-2",children:[n?l.jsx("img",{part:"logo",src:n,alt:"",referrerPolicy:"no-referrer",className:"size-7 shrink-0 rounded-lg object-cover"}):l.jsx(Qp,{size:28}),l.jsx("span",{part:"title",className:"min-w-0 flex-1 truncate text-[15px] font-bold",children:r}),l.jsx(me,{variant:"ghost",size:"icon",className:"size-8 text-muted-foreground hover:text-foreground","aria-label":s("closeHistory"),title:s("closeHistory"),onClick:o,children:l.jsx(hv,{"aria-hidden":"true"})})]})},vk=({onClick:r})=>{const{t:n}=G();return l.jsxs("button",{part:"new-chat",type:"button",onClick:r,className:"flex h-9 w-full items-center gap-2.5 rounded-md border bg-background pl-3 pr-2.5 text-left text-sm font-medium transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",children:[l.jsx(pf,{className:"size-4","aria-hidden":"true"}),n("newChat")]})},yk=({name:r,onConfirm:n,onCancel:o})=>{const{t:s}=G(),d=x.useRef(null);return x.useEffect(()=>{d.current?.querySelector("[data-cancel]")?.focus()},[]),l.jsxs("div",{ref:d,role:"alertdialog","aria-label":s("deleteConfirm"),onKeyDown:p=>{p.key==="Escape"&&(p.preventDefault(),p.stopPropagation(),o())},className:"my-0.5 flex flex-col gap-2 rounded-[10px] border border-error/35 bg-destructive-background p-2.5",children:[l.jsx("div",{className:"text-[13px] font-semibold",children:s("deleteConfirm")}),l.jsx("div",{className:"truncate text-2xs text-muted-foreground",children:r}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(me,{variant:"destructive",size:"xs",onClick:n,children:s("deleteYes")}),l.jsx(me,{variant:"ghost",size:"xs","data-cancel":!0,onClick:o,children:s("deleteNo")})]})]})},wk=(r,n)=>{let o="";const s=[];let d=0;for(const h of r){const m=h.toLowerCase();s.push(...Array.from({length:m.length},()=>d)),o+=m,d+=h.length}s.push(d);const p=o.indexOf(n);if(p<0)return null;let f=p+n.length;for(;f<s.length&&s[f]===s[f-1];)f+=1;return[s[p]??0,s[f]??r.length]},kk=({text:r,query:n})=>{const o=n.trim().toLowerCase(),s=o?wk(r,o):null;if(!s)return l.jsx(l.Fragment,{children:r});const[d,p]=s;return l.jsxs(x.Fragment,{children:[r.slice(0,d),l.jsx("mark",{className:"rounded-[3px] bg-hl px-px text-inherit",children:r.slice(d,p)}),r.slice(p)]})},jk=({groups:r,query:n,activeId:o,confirmId:s,onOpen:d,onAskDelete:p,onCancelDelete:f,onDelete:h})=>{const{t:m}=G();return l.jsx(l.Fragment,{children:r.map(([v,b])=>l.jsxs("section",{className:"pb-1","aria-label":m(v),children:[l.jsx("h3",{className:"px-2 pb-1 pt-3.5 text-2xs font-medium text-muted-foreground",children:m(v)}),l.jsx("ul",{className:"flex flex-col gap-px",children:b.map(j=>{const k=j.id===o,S=j.title||m("untitled");return s===j.id?l.jsx("li",{children:l.jsx(yk,{name:S,onConfirm:()=>{h(j.id)},onCancel:f})},j.id):l.jsxs("li",{className:"group relative",children:[l.jsx("button",{part:"thread-item",type:"button","aria-current":k?"page":void 0,title:S,onClick:()=>{d(j.id)},className:B("flex min-h-9 w-full items-center rounded-lg py-1 pl-2.5 pr-9 text-left text-sm transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none",k&&"bg-background font-medium shadow-[inset_0_0_0_1px_var(--aid-c-border)] hover:bg-background"),children:l.jsx("span",{className:"min-w-0 truncate",children:l.jsx(kk,{text:S,query:n})})}),l.jsx(me,{variant:"ghost",size:"icon",className:B("absolute right-1 top-1/2 size-7 -translate-y-1/2 text-muted-foreground",!k&&Cl),"aria-label":`${m("delete")}: ${S}`,onClick:()=>{p(j.id)},children:l.jsx(Ov,{"aria-hidden":"true"})})]},j.id)})})]},v))})},ec=({icon:r,children:n})=>l.jsxs("div",{className:"flex flex-col items-center gap-1.5 px-3 py-6 text-center text-sm text-muted-foreground",children:[r,n]}),Sk=[82,64,90,58,76,70],Ck=({query:r})=>{const{state:n,t:o,refreshThreads:s}=G();return n.threadsLoaded?r.trim()!==""?l.jsx(ec,{icon:l.jsx(sn,{"aria-hidden":"true"}),children:l.jsx("span",{children:o("searchEmpty")})}):n.threadsError?l.jsxs(ec,{icon:l.jsx(_r,{"aria-hidden":"true"}),children:[l.jsx("span",{children:o("historyError")}),l.jsx(me,{variant:"input",size:"xs",onClick:s,children:o("retry")})]}):l.jsx(ec,{icon:l.jsx(df,{"aria-hidden":"true"}),children:l.jsx("span",{children:o("historyEmpty")})}):l.jsxs("div",{"aria-busy":"true",className:"flex flex-col",children:[Sk.map(d=>l.jsx("div",{className:"flex min-h-9 items-center px-2.5",children:l.jsx("span",{className:"h-[11px] animate-pulse rounded-md bg-border motion-reduce:animate-none",style:{width:`${d}%`}})},d)),l.jsx("span",{role:"status",className:"sr-only",children:o("loading")})]})},Nk=(r,n,o)=>{qo(r,n);const s=x.useRef(o);x.useEffect(()=>{s.current=o}),x.useEffect(()=>{if(!n)return;const p=f=>{if(f.key!=="Escape"||f.defaultPrevented)return;const h=f.composedPath(),m=h[0];m instanceof HTMLInputElement&&m.type==="search"&&m.value!==""||h.some(v=>v instanceof HTMLElement&&v.getAttribute("role")==="alertdialog")||(f.preventDefault(),f.stopPropagation(),s.current())};return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}},[n]);const d=x.useRef(!1);x.useEffect(()=>{const p=r.current?.getRootNode();if(d.current&&!n){const f=window.setTimeout(()=>{p?.querySelector('[part~="history-toggle"]')?.focus()},0);return d.current=!1,()=>{window.clearTimeout(f)}}d.current=n},[n,r])},Ek=({query:r,onQuery:n,inputRef:o,autoFocus:s})=>{const{t:d}=G();return l.jsxs("label",{className:"relative flex items-center",children:[l.jsx(sn,{className:"pointer-events-none absolute left-[11px] size-4 text-muted-foreground","aria-hidden":"true"}),l.jsx("input",{ref:o,part:"search",type:"search",value:r,"data-autofocus":s?"":void 0,onChange:p=>{n(p.target.value)},onKeyDown:p=>{p.key==="Escape"&&r&&(p.preventDefault(),n(""))},placeholder:d("search"),"aria-label":d("search"),className:"h-8 w-full rounded-md border border-input bg-background pl-[34px] pr-9 text-sm outline-none placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-secondary [&::-webkit-search-cancel-button]:hidden"}),r?l.jsx("button",{type:"button","aria-label":d("dismiss"),className:"absolute right-2 rounded p-0.5 text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:()=>{n(""),o.current?.focus()},children:l.jsx(ln,{className:"size-3.5","aria-hidden":"true"})}):null]})},zk=({collapsed:r,onCollapsedChange:n,searchRef:o,searchSignal:s,overlay:d=!1,title:p,logoUrl:f,inert:h=!1})=>{const m=x.useRef(null);Mr(m,h);const{state:v,t:b,openThread:j,newChat:k,deleteThread:S}=G(),[z,E]=x.useState(""),[M,F]=x.useState(null),Z=d&&!r;Nk(m,Z,()=>{n(!0)});const oe=x.useMemo(()=>{const re=z.trim().toLowerCase(),$=re?v.threads.filter(X=>(X.title||b("untitled")).toLowerCase().includes(re)):v.threads;return z1($)},[v.threads,z,b]);x.useEffect(()=>{s>0&&!r&&o.current?.focus()},[s,r,o]);const J=re=>()=>{re(),d&&n(!0)};return r?l.jsx("nav",{ref:m,part:"sidebar","data-state":"collapsed","aria-label":b("history"),hidden:!0}):l.jsxs("nav",{ref:m,part:"sidebar","data-state":"expanded","aria-label":b("history"),className:B(gk,d?bk:mk),children:[l.jsx(xk,{title:p,logoUrl:f,onHide:()=>{n(!0)}}),l.jsxs("div",{className:"flex shrink-0 flex-col gap-2 px-2.5 pb-2",children:[l.jsx(vk,{onClick:J(k)}),l.jsx(Ek,{query:z,onQuery:E,inputRef:o,autoFocus:Z})]}),l.jsxs("div",{part:"history",className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 pb-2",children:[oe.length===0?l.jsx(Ck,{query:z}):null,l.jsx(jk,{groups:oe,query:z,activeId:v.thread?.id,confirmId:M,onOpen:re=>{J(()=>{j(re)})()},onAskDelete:F,onCancelDelete:()=>{F(null)},onDelete:re=>{F(null),S(re)}})]})]})};function _k(r){const n=x.useRef(null),[o,s]=x.useState(r);return x.useLayoutEffect(()=>{const d=n.current;if(!d)return;const p=Math.round(d.getBoundingClientRect().width);if(p>0&&s(p),typeof ResizeObserver>"u")return;const f=new ResizeObserver(([h])=>{const m=Math.round(h?.contentRect.width??0);m>0&&s(m)});return f.observe(d),()=>{f.disconnect()}},[]),[n,o]}const Vh="aid_sidebar",Rk=720,Mk=r=>{try{const n=window.localStorage.getItem(Vh);return n===null?r:n==="collapsed"}catch{return r}},Pk=r=>{const{state:n}=G(),o=n.thread?.id,s=o!==void 0&&o!==la?o:void 0;return l.jsx(My,{threadId:s,children:l.jsx(Lk,{...r})})},Lk=({open:r,title:n,logoUrl:o,compact:s})=>{const{state:d,path:p,newChat:f}=G(),h=cl(),{expandForDashboard:m}=h,[v,b]=_k(0),j=(h.canExpand&&h.expanded?Math.max(b,window.innerWidth):b)>=B1,k=Lr(),S=s||b>0&&b<Rk,[z,E]=x.useState(()=>S||Mk(!1)),[M,F]=x.useState(S);S!==M&&(F(S),S&&E(!0));const[Z,oe]=x.useState(!1),J=x.useRef(null),[re,$]=x.useState(0),X=()=>{he(!1),$(H=>H+1)},K=x.useRef(null),he=H=>{if(E(H),!S)try{window.localStorage.setItem(Vh,H?"collapsed":"expanded")}catch{}},ee=x.useRef({collapsed:z,newChat:f,setCollapsed:he,focusSearch:X});x.useEffect(()=>{ee.current={collapsed:z,newChat:f,setCollapsed:he,focusSearch:X}}),x.useEffect(()=>{if(!r)return;const H=V=>{if(!(V.metaKey||V.ctrlKey)||V.altKey)return;const{collapsed:pe,newChat:fe,setCollapsed:Se,focusSearch:ke}=ee.current,xe=V.key.toLowerCase();if(xe==="k"&&!V.shiftKey)ke();else if(xe==="o"&&V.shiftKey)fe(),setTimeout(()=>K.current?.setText(""),0);else if(xe==="s"&&V.shiftKey)Se(!pe);else return;V.preventDefault()};return window.addEventListener("keydown",H),()=>{window.removeEventListener("keydown",H)}},[r]);const ue=p.find(H=>H.id===k.state.messageId&&fr(H.blocks,"dashboard")!==void 0),W=ue!==void 0;x.useEffect(()=>{if(W)return m(!0),()=>{m(!1)}},[W,m]);const Q=x.useRef(null),be=x.useRef(!1),Ne=ue?.id??null,ve=x.useRef(null);x.useEffect(()=>{const H=ve.current;if(ve.current=Ne,H===null||Ne!==null||!be.current)return;be.current=!1;const V=Q.current;(Array.from(V?.querySelectorAll('[part="dashboard-toggle"]')??[]).find(pe=>pe.dataset.messageId===H)??V?.querySelector('[part="composer"] textarea'))?.focus()},[Ne]);const ye=W&&k.state.fullscreen;Mr(Q,S&&!z);const[U,D]=x.useState(r);r!==U&&(D(r),!r&&S&&E(!0));const T=H1(W,j,k.state.fullscreen);W1(r&&W&&(!T||k.state.view==="dashboard"));const w=d.thread?d.threads.find(H=>H.id===d.thread?.id)?.title:void 0,L=d.config&&!d.loadingThread&&!d.configError;return l.jsxs("div",{ref:v,className:"relative flex min-h-0 flex-1",children:[l.jsx(zk,{collapsed:z,onCollapsedChange:he,overlay:S,searchRef:J,searchSignal:re,title:n,logoUrl:o,inert:ye}),l.jsxs("div",{ref:Q,className:"flex min-w-0 flex-1 flex-col",children:[l.jsx(hk,{historyHidden:z,onShowHistory:()=>{he(!1)},onOpenSettings:()=>{oe(!0)},title:n,logoUrl:o,threadTitle:w,tabs:T?l.jsx(X1,{}):null,inert:ye}),l.jsx(K1,{wide:j,onPanelFocusChange:H=>{be.current=H},panel:ue?l.jsx(_y,{message:ue}):null,chat:l.jsx(fk,{composerRef:K,wide:b>=720})})]}),S&&!z?l.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:"absolute inset-0 z-20 bg-scrim",onClick:()=>{he(!0)}}):null,l.jsx(Ly,{active:r&&!!L}),l.jsx(By,{open:Z,onClose:()=>{oe(!1)}})]})},Bh=({open:r,title:n,logoUrl:o,fullscreen:s,expanded:d=!1,style:p,onClose:f})=>{const h=x.useRef(null);return Mr(h,!r),qo(h,r),x.useEffect(()=>{if(!r)return;const m=v=>{v.key==="Escape"&&!v.defaultPrevented&&f()};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[r,f]),l.jsx("div",{ref:h,part:"window",role:"dialog","aria-modal":s,"aria-label":n,"aria-hidden":!r,"data-state":r?"open":"closed","data-fullscreen":s,"data-expanded":d,className:"aid-window rounded-aid-window border bg-background text-foreground shadow-window",style:p,children:l.jsx(Pk,{open:r,title:n,logoUrl:o,compact:s})})},tc=60,Dk=6,Tk=8,Wh={x:20,y:20},Ik=639,Hh="aid_pos",Ak=(r,n,o=Dk)=>r*r+n*n>=o*o,Qo=(r,n,o=tc,s=Tk)=>{const d=typeof o=="number"?{width:o,height:o}:o,p=(f,h)=>Math.round(Math.min(Math.max(f,s),Math.max(s,h)));return{x:p(r.x,n.width-d.width-s),y:p(r.y,n.height-d.height-s)}},Xh=(r,n,o,s)=>({x:s==="bottom-right"?r.x-n:r.x+n,y:r.y-o}),Ok=r=>{try{const n=r?.getItem(Hh);if(!n)return null;const o=JSON.parse(n);if(typeof o=="object"&&o!==null&&typeof o.x=="number"&&typeof o.y=="number"&&Number.isFinite(o.x)&&Number.isFinite(o.y))return{x:o.x,y:o.y}}catch{}return null},$k=(r,n)=>{try{r?.setItem(Hh,JSON.stringify(n))}catch{}},Fk={width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},Uk=({size:r=24})=>l.jsx("svg",{...Fk,width:r,height:r,children:l.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Kh=()=>({width:window.innerWidth,height:window.innerHeight}),rc=r=>({width:r.offsetWidth,height:r.offsetHeight}),qk=()=>{try{return window.localStorage}catch{return null}},Qh=x.forwardRef(({open:r,lang:n,corner:o,offset:s,draggable:d,unread:p=0,variant:f,label:h,shape:m,onOffsetChange:v,onToggle:b},j)=>{const k=x.useRef(null),S=x.useRef(!1),[z,E]=x.useState(null),M=z!==null,F=X=>{!d||X.button!==0||(k.current={pointerX:X.clientX,pointerY:X.clientY,offset:s,moved:!1},X.currentTarget.setPointerCapture(X.pointerId))},Z=X=>{const K=k.current;if(!K)return;const he=X.clientX-K.pointerX,ee=X.clientY-K.pointerY;!K.moved&&!Ak(he,ee)||(K.moved||(K.moved=!0,E({offset:K.offset,...rc(X.currentTarget)})),v(Qo(Xh(K.offset,he,ee,o),Kh(),rc(X.currentTarget))))},oe=X=>{const K=k.current;if(k.current=null,X.currentTarget.hasPointerCapture(X.pointerId)&&X.currentTarget.releasePointerCapture(X.pointerId),!K?.moved)return;E(null),S.current=!0;const he=X.clientX-K.pointerX,ee=X.clientY-K.pointerY;$k(qk(),Qo(Xh(K.offset,he,ee,o),Kh(),rc(X.currentTarget)))},J=()=>{if(S.current){S.current=!1;return}b()},re=o==="bottom-right"?"right":"left",$=f==="label"&&!r?h??wt(n,"ask"):null;return l.jsxs(l.Fragment,{children:[z?l.jsx("span",{"data-testid":"launcher-origin","aria-hidden":"true","data-shape":m??"circle",className:"aid-launcher-origin",style:{[re]:z.offset.x,bottom:z.offset.y,width:z.width,height:z.height}}):null,l.jsxs("button",{ref:j,part:"launcher",type:"button","aria-label":`${$??wt(n,r?"close":"open")}${p>0&&!r?`, ${wt(n,"unreadAnswers",{count:p})}`:""}`,"aria-expanded":r,"data-dragging":M,"data-variant":$?"label":"icon","data-shape":m??"circle","data-open":r,"data-side":re,"data-unread":p>0&&!r,className:"aid-launcher",style:{[re]:s.x,bottom:s.y},onPointerDown:F,onPointerMove:Z,onPointerUp:oe,onPointerCancel:oe,onClick:J,children:[l.jsx("span",{className:"aid-launcher-face","aria-hidden":"true",children:l.jsx(Kp,{size:52,animated:!1,bare:!0})}),l.jsx("span",{className:"aid-launcher-close","aria-hidden":"true",children:l.jsx(Uk,{})}),!$&&!r?l.jsx("span",{part:"launcher-hint",className:"aid-launcher-hint","aria-hidden":"true",children:h??wt(n,"ask")}):null,$?l.jsx("span",{part:"launcher-label",className:"truncate",children:$}):null,p>0&&!r?l.jsx("span",{part:"badge",className:"aid-launcher-badge",children:p>9?"9+":p}):null]})]})});Qh.displayName="Launcher";const Vk=r=>{const{state:n}=G(),{turn:o,thread:s}=n,[d,p]=x.useState({turn:o,open:r}),[f,h]=x.useState(0);return(d.turn!==o||d.open!==r)&&(p({turn:o,open:r}),r?f!==0&&h(0):d.turn&&!o&&s?.messages.find(m=>m.id===d.turn?.assistantId)?.status==="done"&&h(f+1)),f},Yh=x.forwardRef((r,n)=>{const o=Vk(r.open);return l.jsx(Qh,{ref:n,...r,unread:o})});Yh.displayName="UnreadLauncher";const xn=(r,n,o)=>Math.min(o,Math.max(n,r)),Bk={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",orange:"#ffa500",purple:"#800080",teal:"#008080",navy:"#000080",gray:"#808080",grey:"#808080"},Zh=r=>{if(!/^[0-9a-f]+$/i.test(r)||![3,4,6,8].includes(r.length))return null;const n=r.length<=4?r.replace(/./g,s=>s+s):r,o=s=>parseInt(n.slice(s,s+2),16);return{r:o(0),g:o(2),b:o(4),a:n.length===8?o(6)/255:1}},Jh=r=>{const n=r.replace(/\//g," ").replace(/,/g," ").trim().split(/\s+/).filter(Boolean);return n.length===3||n.length===4?n:null},Yo=r=>{const n=Number(r);return r!==""&&Number.isFinite(n)?n:null},Wk=r=>{if(r===void 0)return 1;const n=Yo(r.endsWith("%")?r.slice(0,-1):r);return n===null?null:xn(r.endsWith("%")?n/100:n,0,1)},ac=r=>{const n=Yo(r.endsWith("%")?r.slice(0,-1):r);return n===null?null:xn(r.endsWith("%")?n/100*255:n,0,255)},Gh=r=>{const n=/^(-?[\d.]+)(deg|turn|rad|grad)?$/.exec(r);if(!n?.[1])return null;const o=Yo(n[1]);if(o===null)return null;const s=n[2]??"deg";return((s==="turn"?o*360:s==="rad"?o*180/Math.PI:s==="grad"?o*.9:o)%360+360)%360},Zo=r=>{const n=Yo(r.endsWith("%")?r.slice(0,-1):r);return n===null?null:xn(n,0,100)},Jo=({h:r,s:n,l:o,a:s})=>{const d=n/100,p=o/100,f=m=>(m+r/30)%12,h=m=>p-d*Math.min(p,1-p)*Math.max(-1,Math.min(f(m)-3,9-f(m),1));return{r:Math.round(h(0)*255),g:Math.round(h(8)*255),b:Math.round(h(4)*255),a:s}},Hk=({r,g:n,b:o,a:s})=>{const d=r/255,p=n/255,f=o/255,h=Math.max(d,p,f),m=Math.min(d,p,f),v=(h+m)/2,b=h-m;if(b===0)return{h:0,s:0,l:v*100,a:s};const j=b/(1-Math.abs(2*v-1));let k;return h===d?k=(p-f)/b%6:h===p?k=(f-d)/b+2:k=(d-p)/b+4,{h:(k*60+360)%360,s:j*100,l:v*100,a:s}},eg=r=>{const n=Xk(r);if(!n)return null;const o=/^hsla?\((.*)\)$/.exec(r.trim().toLowerCase()),s=o?.[1]!==void 0?Jh(o[1]):null;if(s){const[d,p,f]=[Gh(s[0]??""),Zo(s[1]??""),Zo(s[2]??"")];if(d!==null&&p!==null&&f!==null)return{h:d,s:p,l:f,a:n.a}}return Hk(n)},Xk=r=>{const n=r.trim().toLowerCase(),o=Bk[n];if(o)return Zh(o.slice(1));if(n.startsWith("#"))return Zh(n.slice(1));const s=/^(rgba?|hsla?)\((.*)\)$/.exec(n);if(!s?.[1]||s[2]===void 0)return null;const d=Jh(s[2]);if(!d)return null;const[p="",f="",h="",m]=d,v=Wk(m);if(v===null)return null;if(s[1].startsWith("rgb")){const[S,z,E]=[ac(p),ac(f),ac(h)];return S===null||z===null||E===null?null:{r:Math.round(S),g:Math.round(z),b:Math.round(E),a:v}}const[b,j,k]=[Gh(p),Zo(f),Zo(h)];return b===null||j===null||k===null?null:Jo({h:b,s:j,l:k,a:v})},tg=({r,g:n,b:o})=>{const s=d=>{const p=d/255;return p<=.03928?p/12.92:((p+.055)/1.055)**2.4};return .2126*s(r)+.7152*s(n)+.0722*s(o)},rg=(r,n)=>{const[o,s]=[tg(r),tg(n)].sort((d,p)=>p-d);return(o+.05)/(s+.05)},Go=r=>Math.round(r*10)/10,Dr=({h:r,s:n,l:o,a:s})=>`${Go(r)}, ${Go(n)}%, ${Go(o)}%${s<1?`, ${Go(s*100)/100}`:""}`,ag={h:210,s:40,l:98,a:1},ng={h:222.2,s:47.4,l:11.2,a:1},Kk=r=>{const n=eg(r);if(!n)return null;const o={...n,a:1},s={...o,l:xn(o.l>70?o.l-6:o.l+8,0,100)},d={...o,l:xn(o.l-10,0,100)},p=Jo(o),f=rg(p,Jo(ag)),h=f>=4.5||f>=rg(p,Jo(ng))?ag:ng;return{primary:Dr(o),primaryHovered:Dr(s),primaryPressed:Dr(d),primaryForeground:Dr(h),secondary:Dr({...o,a:.1}),ring:Dr({...o,a:.5})}},Qk=(...r)=>{const n={};for(const o of r)if(o)for(const[s,d]of Object.entries(o))d===void 0||d===""||(n[s]=d);return n},Yk=r=>{const n={},o=r.primary?Kk(r.primary):null;o&&(n["--primary"]=o.primary,n["--primary-text"]=o.primary,n["--primary-hovered"]=o.primaryHovered,n["--primary-pressed"]=o.primaryPressed,n["--primary-foreground"]=o.primaryForeground,n["--secondary"]=o.secondary,n["--secondary-foreground"]=o.primary,n["--ring"]=o.ring),r.radius!==void 0&&r.radius!==""&&(n["--radius"]=typeof r.radius=="number"?`${r.radius}px`:r.radius),r.font&&(n["--aid-theme-font"]=r.font);const s=v=>{const b=v?eg(v):null;return b?Dr(b):null},d=s(r.background);if(d)for(const v of["--background","--card","--popover"])n[v]=d;const p=s(r.foreground);if(p)for(const v of["--foreground","--card-foreground","--popover-foreground","--secondary-foreground"])n[v]=p;const f=s(r.bubble);if(f)for(const v of["--secondary","--muted","--accent"])n[v]=f;const h=s(r.border);if(h)for(const v of["--border","--input"])n[v]=h;const m=(v,b)=>{typeof b=="number"&&Number.isFinite(b)&&(n[v]=`${b}px`)};return m("--aid-t-window-width",r.windowWidth),m("--aid-t-window-height",r.windowHeight),m("--aid-t-offset-x",r.offsetX),m("--aid-t-offset-y",r.offsetY),n},Zk=(r,n)=>r==="dark"||r==="auto"&&n?"dark":"light",Jk=(r,n,o={})=>{for(const s of Object.keys(o))s in n||r.style.removeProperty(s);for(const[s,d]of Object.entries(n))r.style.setProperty(s,d)},Gk=(r,n)=>{r.classList.toggle("dark",n==="dark"),r.dataset.scheme=n},og=(r,n)=>{const o=parseFloat(r);return Number.isFinite(o)?o:n},nc=()=>{try{return window.localStorage}catch{return null}},ig=(r,n,o)=>og(r.getPropertyValue(`--aid-${n}`),og(r.getPropertyValue(`--aid-t-${n}`),o)),e2=r=>{const n=getComputedStyle(r);return{x:ig(n,"offset-x",Wh.x),y:ig(n,"offset-y",Wh.y)}},sg=()=>({width:window.innerWidth,height:window.innerHeight}),t2={scheme:"auto"},r2=(r,n)=>{const o=x.useSyncExternalStore(r.subscribe,()=>r.get().theme),s=x.useSyncExternalStore(r.subscribe,()=>r.get().adminTheme),d=zl("(prefers-color-scheme: dark)"),p=Qk(t2,s,o),f=Zk(p.scheme,d),h=x.useRef({}),m=JSON.stringify(Yk(p));return x.useLayoutEffect(()=>{const v=JSON.parse(m);Jk(n,v,h.current),h.current=v},[n,m]),x.useLayoutEffect(()=>{Gk(n,f)},[n,f]),p},a2=r=>{const{store:n,api:o}=r,s=x.useSyncExternalStore(n.subscribe,()=>n.get().open),d=x.useSyncExternalStore(n.subscribe,()=>n.get().lang),p=x.useCallback(f=>{n.set({adminTheme:f})},[n]);return l.jsx(P1,{api:o,lang:d,open:s,onAdminTheme:p,children:l.jsx(n2,{...r})})},n2=({store:r,root:n,mode:o,corner:s,draggable:d,api:p})=>{const f=x.useSyncExternalStore(r.subscribe,()=>r.get().open),h=x.useSyncExternalStore(r.subscribe,()=>r.get().lang),m=r2(r,n),v=s??m.position??"bottom-right",b=zl(`(max-width: ${Ik}px)`),j=x.useRef(null),[k,S]=x.useState(()=>Qo(Ok(nc())??e2(n),sg(),tc));x.useEffect(()=>{if(o!=="launcher")return;const W=()=>{const Q=j.current,be=Q?{width:Q.offsetWidth,height:Q.offsetHeight}:tc;S(Ne=>Qo(Ne,sg(),be))};return window.addEventListener("resize",W),()=>{window.removeEventListener("resize",W)}},[o]);const z=x.useCallback(()=>{r.set({open:!1})},[r]),E=x.useCallback(()=>{r.set({open:!r.get().open})},[r]),M=x.useRef(f);x.useEffect(()=>{M.current&&!f&&j.current?.focus({preventScroll:!0}),M.current=f},[f]);const F=m.title??wt(h,"title"),Z=Xp(p.apiUrl),oe=x.useMemo(()=>({animated:f,assetsBase:Z}),[f,Z]),[J,re]=x.useState({expanded:!1,byDashboard:!1}),{expanded:$}=J,X=o==="launcher"&&!b,K=x.useCallback(W=>{re({expanded:W,byDashboard:!1})},[]),he=x.useCallback(W=>{re(Q=>U0(Q,W,X))},[X]),ee=m.scheme??"auto",ue=x.useMemo(()=>({lang:h,scheme:ee,expanded:$,canExpand:X,setExpanded:K,expandForDashboard:he,close:o==="launcher"?z:void 0,update:W=>{const Q={...$p(nc()),...W};F0(nc(),Q),r.set({...W.lang?{lang:W.lang}:{},theme:{...r.get().theme,...Fp(W)}})}}),[h,ee,$,X,K,he,o,z,r]);return o==="window"?l.jsx(ll.Provider,{value:ue,children:l.jsx(hl.Provider,{value:oe,children:l.jsx(Bh,{open:f,title:F,logoUrl:ol(m.logoUrl),fullscreen:!1,onClose:z})})}):l.jsx(ll.Provider,{value:ue,children:l.jsxs(hl.Provider,{value:oe,children:[l.jsx("div",{part:"overlay",className:"aid-overlay","data-state":f?"open":"closed","aria-hidden":!0,onClick:z}),l.jsx(Bh,{open:f,title:F,logoUrl:ol(m.logoUrl),fullscreen:b,expanded:$&&!b,onClose:z}),f?null:l.jsx(Yh,{ref:j,open:f,lang:h,corner:v,offset:k,draggable:d&&!b,variant:m.launcher,label:m.launcherLabel,shape:m.launcherShape,onOffsetChange:S,onToggle:E})]})})},lg="https://dev-ai.kgd.gov.kz",o2=`${kb}
|
|
19
|
+
${K0}`,oc=(r,n,o,s)=>{const d=r.shadowRoot??r.attachShadow({mode:"open"});d.replaceChildren();const p=document.createElement("style");p.textContent=o2;const f=document.createElement("div");f.className="aid-root",f.dataset.mode=o,d.append(p,f);let h=null;try{h=window.localStorage}catch{}const m=$p(h),v=X0({open:n.defaultOpen??o==="window",lang:m.lang??Ip(n.lang),theme:{...n.theme,...Fp(m)},adminTheme:null});let b=v.get().open;const j=v.subscribe(()=>{const{open:E}=v.get();E!==b&&(b=E,n.onOpenChange?.(E))}),k=D0({apiUrl:n.apiUrl??lg,siteKey:n.siteKey,visitorId:_0(n.visitorId,h),rememberVisitor:E=>{try{h?.setItem(rl,E)}catch{}}}),S=wb.createRoot(f);S.render(l.jsx(x.StrictMode,{children:l.jsx(dl,{fallback:null,children:l.jsx(a2,{store:v,root:f,mode:o,corner:n.position,draggable:n.draggable??!0,api:k})})}));let z=!0;return{open:()=>{v.set({open:!0})},close:()=>{v.set({open:!1})},setTheme:E=>{v.set({theme:{...v.get().theme,...E}})},setLang:E=>{v.set({lang:Ip(E)})},unmount:()=>{z&&(z=!1,j(),S.unmount(),J0(),d.replaceChildren(),s?.())}}};function cg(r,n){const o=r instanceof HTMLElement?n:n??r;if(!o)throw new TypeError("AiDanaChat.mountLauncher: options are required");if(r instanceof HTMLElement)return oc(r,o,"launcher");const s=document.createElement("div");return s.setAttribute("data-ai-dana-chat",""),s.style.setProperty("all","initial"),document.body.append(s),oc(s,o,"launcher",()=>{s.remove()})}const dg=(r,n)=>oc(r,n,"window"),ug=["light","dark","auto"];class ic extends HTMLElement{constructor(){super(...arguments),ia(this,"handle")}connectedCallback(){const n=this.getAttribute("theme"),o=this.getAttribute("position"),s=this.getAttribute("site-key"),d=this.getAttribute("api-url"),p={...s?{siteKey:s}:{},...d===null?{}:{apiUrl:d},...this.getAttribute("lang")?{lang:this.getAttribute("lang")}:{},...n&&ug.includes(n)?{theme:{scheme:n}}:{},...o==="bottom-left"||o==="bottom-right"?{position:o}:{},draggable:this.getAttribute("draggable")!=="false",defaultOpen:this.hasAttribute("open"),onOpenChange:f=>this.dispatchEvent(new CustomEvent("openchange",{detail:{open:f}}))};this.handle=this.hasAttribute("launcher")?cg(this,p):dg(this,p)}disconnectedCallback(){this.handle?.unmount(),this.handle=void 0}attributeChangedCallback(n,o,s){!this.handle||o===s||(n==="lang"&&s&&this.handle.setLang(s),n==="theme"&&s&&ug.includes(s)&&this.handle.setTheme({scheme:s}))}open(){this.handle?.open()}close(){this.handle?.close()}setTheme(n){this.handle?.setTheme(n)}setLang(n){this.handle?.setLang(n)}}ia(ic,"observedAttributes",["lang","theme"]),typeof customElements<"u"&&!customElements.get("ai-dana-chat")&&H0(()=>{customElements.get("ai-dana-chat")||customElements.define("ai-dana-chat",ic)},"1.0.12");export{Cw as A,zr as C,lg as D,zp as S,t0 as a,E0 as b,j0 as c,x as d,pa as e,Dh as f,rp as g,vl as h,El as i,l as j,ic as k,cg as l,dg as m,S0 as o,C0 as r,rn as s,Sp as t,G as u,B as v,Do as w};
|