vendor: 4,463 bytes, lines 1-17
1(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();var wC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eh(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Br={exports:{}},Bl={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var vp;function ty(){if(vp)return Bl;vp=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(a,u,d){var m=null;if(d!==void 0&&(m=""+d),u.key!==void 0&&(m=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:i,type:a,key:m,ref:u!==void 0?u:null,props:d}}return Bl.Fragment=n,Bl.jsx=o,Bl.jsxs=o,Bl}var Tp;function ny(){return Tp||(Tp=1,Br.exports=ty()),Br.exports}var E=ny(),Pr={exports:{}},oe={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Ep;function iy(){if(Ep)return oe;Ep=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.iterator;function A(w){return w===null||typeof w!="object"?null:(w=C&&w[C]||w["@@iterator"],typeof w=="function"?w:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,B={};function P(w,z,Q){this.props=w,this.context=z,this.refs=B,this.updater=Q||D}P.prototype.isReactComponent={},P.prototype.setState=function(w,z){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,z,"setState")},P.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function O(){}O.prototype=P.prototype;function H(w,z,Q){this.props=w,this.context=z,this.refs=B,this.updater=Q||D}var Y=H.prototype=new O;Y.constructor=H,L(Y,P.prototype),Y.isPureReactComponent=!0;var J=Array.isArray;function K(){}var F={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function W(w,z,Q){var j=Q.ref;return{$$typeof:i,type:w,key:z,ref:j!==void 0?j:null,props:Q}}function ue(w,z){return W(w.type,z,w.props)}function ve(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function ce(w){var z={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Q){return z[Q]})}var Be=/\/+/g;function ot(w,z){return typeof w=="object"&&w!==null&&w.key!=null?ce(""+w.key):z.toString(36)}function et(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(K,K):(w.status="pending",w.then(function(z){w.status==="pending"&&(w.status="fulfilled",w.value=z)},function(z){w.status==="pending"&&(w.status="rejected",w.reason=z)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function k(w,z,Q,j,se){var de=typeof w;(de==="undefined"||de==="boolean")&&(w=null);var _e=!1;if(w===null)_e=!0;else switch(de){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(w.$$typeof){case i:case n:_e=!0;break;case v:return _e=w._init,k(_e(w._payload),z,Q,j,se)}}
vendor: 17,082 bytes, lines 17-41
17if(_e)return se=se(w),_e=j===""?"."+ot(w,0):j,J(se)?(Q="",_e!=null&&(Q=_e.replace(Be,"$&/")+"/"),k(se,z,Q,"",function(Ki){return Ki})):se!=null&&(ve(se)&&(se=ue(se,Q+(se.key==null||w&&w.key===se.key?"":(""+se.key).replace(Be,"$&/")+"/")+_e)),z.push(se)),1;_e=0;var it=j===""?".":j+":";if(J(w))for(var Ge=0;Ge<w.length;Ge++)j=w[Ge],de=it+ot(j,Ge),_e+=k(j,z,Q,de,se);else if(Ge=A(w),typeof Ge=="function")for(w=Ge.call(w),Ge=0;!(j=w.next()).done;)j=j.value,de=it+ot(j,Ge++),_e+=k(j,z,Q,de,se);else if(de==="object"){if(typeof w.then=="function")return k(et(w),z,Q,j,se);throw z=String(w),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return _e}function X(w,z,Q){if(w==null)return w;var j=[],se=0;return k(w,j,"","",function(de){return z.call(Q,de,se++)}),j}function le(w){if(w._status===-1){var z=w._result;z=z(),z.then(function(Q){(w._status===0||w._status===-1)&&(w._status=1,w._result=Q)},function(Q){(w._status===0||w._status===-1)&&(w._status=2,w._result=Q)}),w._status===-1&&(w._status=0,w._result=z)}if(w._status===1)return w._result.default;throw w._result}var Me=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Ie={map:X,forEach:function(w,z,Q){X(w,function(){z.apply(this,arguments)},Q)},count:function(w){var z=0;return X(w,function(){z++}),z},toArray:function(w){return X(w,function(z){return z})||[]},only:function(w){if(!ve(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return oe.Activity=S,oe.Children=Ie,oe.Component=P,oe.Fragment=o,oe.Profiler=u,oe.PureComponent=H,oe.StrictMode=a,oe.Suspense=y,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,oe.__COMPILER_RUNTIME={__proto__:null,c:function(w){return F.H.useMemoCache(w)}},oe.cache=function(w){return function(){return w.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(w,z,Q){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var j=L({},w.props),se=w.key;if(z!=null)for(de in z.key!==void 0&&(se=""+z.key),z)!ae.call(z,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&z.ref===void 0||(j[de]=z[de]);var de=arguments.length-2;if(de===1)j.children=Q;else if(1<de){for(var _e=Array(de),it=0;it<de;it++)_e[it]=arguments[it+2];j.children=_e}return W(w.type,se,j)},oe.createContext=function(w){return w={$$typeof:m,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},oe.createElement=function(w,z,Q){var j,se={},de=null;if(z!=null)for(j in z.key!==void 0&&(de=""+z.key),z)ae.call(z,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(se[j]=z[j]);var _e=arguments.length-2;if(_e===1)se.children=Q;else if(1<_e){for(var it=Array(_e),Ge=0;Ge<_e;Ge++)it[Ge]=arguments[Ge+2];se.children=it}if(w&&w.defaultProps)for(j in _e=w.defaultProps,_e)se[j]===void 0&&(se[j]=_e[j]);return W(w,de,se)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(w){return{$$typeof:h,render:w}},oe.isValidElement=ve,oe.lazy=function(w){return{$$typeof:v,_payload:{_status:-1,_result:w},_init:le}},oe.memo=function(w,z){return{$$typeof:g,type:w,compare:z===void 0?null:z}},oe.startTransition=function(w){var z=F.T,Q={};F.T=Q;try{var j=w(),se=F.S;se!==null&&se(Q,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(K,Me)}catch(de){Me(de)}finally{z!==null&&Q.types!==null&&(z.types=Q.types),F.T=z}},oe.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},oe.use=function(w){return F.H.use(w)},oe.useActionState=function(w,z,Q){return F.H.useActionState(w,z,Q)},oe.useCallback=function(w,z){return F.H.useCallback(w,z)},oe.useContext=function(w){return F.H.useContext(w)},oe.useDebugValue=function(){},oe.useDeferredValue=function(w,z){return F.H.useDeferredValue(w,z)},oe.useEffect=function(w,z){return F.H.useEffect(w,z)},oe.useEffectEvent=function(w){return F.H.useEffectEvent(w)},oe.useId=function(){return F.H.useId()},oe.useImperativeHandle=function(w,z,Q){return F.H.useImperativeHandle(w,z,Q)},oe.useInsertionEffect=function(w,z){return F.H.useInsertionEffect(w,z)},oe.useLayoutEffect=function(w,z){return F.H.useLayoutEffect(w,z)},oe.useMemo=function(w,z){return F.H.useMemo(w,z)},oe.useOptimistic=function(w,z){return F.H.useOptimistic(w,z)},oe.useReducer=function(w,z,Q){return F.H.useReducer(w,z,Q)},oe.useRef=function(w){return F.H.useRef(w)},oe.useState=function(w){return F.H.useState(w)},oe.useSyncExternalStore=function(w,z,Q){return F.H.useSyncExternalStore(w,z,Q)},oe.useTransition=function(){return F.H.useTransition()},oe.version="19.2.0",oe}var Sp;function au(){return Sp||(Sp=1,Pr.exports=iy()),Pr.exports}var te=au();const su=eh(te);var Or={exports:{}},Pl={},Yr={exports:{}},Fr={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Cp;function ly(){return Cp||(Cp=1,(function(i){function n(k,X){var le=k.length;k.push(X);e:for(;0<le;){var Me=le-1>>>1,Ie=k[Me];if(0<u(Ie,X))k[Me]=X,k[le]=Ie,le=Me;else break e}}function o(k){return k.length===0?null:k[0]}function a(k){if(k.length===0)return null;var X=k[0],le=k.pop();if(le!==X){k[0]=le;e:for(var Me=0,Ie=k.length,w=Ie>>>1;Me<w;){var z=2*(Me+1)-1,Q=k[z],j=z+1,se=k[j];if(0>u(Q,le))j<Ie&&0>u(se,Q)?(k[Me]=se,k[j]=le,Me=j):(k[Me]=Q,k[z]=le,Me=z);else if(j<Ie&&0>u(se,le))k[Me]=se,k[j]=le,Me=j;else break e}}return X}function u(k,X){var le=k.sortIndex-X.sortIndex;return le!==0?le:k.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();i.unstable_now=function(){return m.now()-h}}var y=[],g=[],v=1,S=null,C=3,A=!1,D=!1,L=!1,B=!1,P=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function Y(k){for(var X=o(g);X!==null;){if(X.callback===null)a(g);else if(X.startTime<=k)a(g),X.sortIndex=X.expirationTime,n(y,X);else break;X=o(g)}}function J(k){if(L=!1,Y(k),!D)if(o(y)!==null)D=!0,K||(K=!0,ce());else{var X=o(g);X!==null&&et(J,X.startTime-k)}}var K=!1,F=-1,ae=5,W=-1;function ue(){return B?!0:!(i.unstable_now()-W<ae)}function ve(){if(B=!1,K){var k=i.unstable_now();W=k;var X=!0;try{e:{D=!1,L&&(L=!1,O(F),F=-1),A=!0;var le=C;try{t:{for(Y(k),S=o(y);S!==null&&!(S.expirationTime>k&&ue());){var Me=S.callback;if(typeof Me=="function"){S.callback=null,C=S.priorityLevel;var Ie=Me(S.expirationTime<=k);if(k=i.unstable_now(),typeof Ie=="function"){S.callback=Ie,Y(k),X=!0;break t}S===o(y)&&a(y),Y(k)}else a(y);S=o(y)}if(S!==null)X=!0;else{var w=o(g);w!==null&&et(J,w.startTime-k),X=!1}}break e}finally{S=null,C=le,A=!1}X=void 0}}finally{X?ce():K=!1}}}var ce;if(typeof H=="function")ce=function(){H(ve)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,ot=Be.port2;Be.port1.onmessage=ve,ce=function(){ot.postMessage(null)}}else ce=function(){P(ve,0)};function et(k,X){F=P(function(){k(i.unstable_now())},X)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(k){k.callback=null},i.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<k?Math.floor(1e3/k):5},i.unstable_getCurrentPriorityLevel=function(){return C},i.unstable_next=function(k){switch(C){case 1:case 2:case 3:var X=3;break;default:X=C}var le=C;C=X;try{return k()}finally{C=le}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(k,X){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var le=C;C=k;try{return X()}finally{C=le}},i.unstable_scheduleCallback=function(k,X,le){var Me=i.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Me+le:Me):le=Me,k){case 1:var Ie=-1;break;case 2:Ie=250;break;case 5:Ie=1073741823;break;case 4:Ie=1e4;break;default:Ie=5e3}return Ie=le+Ie,k={id:v++,callback:X,priorityLevel:k,startTime:le,expirationTime:Ie,sortIndex:-1},le>Me?(k.sortIndex=le,n(g,k),o(y)===null&&k===o(g)&&(L?(O(F),F=-1):L=!0,et(J,le-Me))):(k.sortIndex=Ie,n(y,k),D||A||(D=!0,K||(K=!0,ce()))),k},i.unstable_shouldYield=ue,i.unstable_wrapCallback=function(k){var X=C;return function(){var le=C;C=X;try{return k.apply(this,arguments)}finally{C=le}}}})(Fr)),Fr}var _p;function oy(){return _p||(_p=1,Yr.exports=ly()),Yr.exports}var Jr={exports:{}},tt={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Ap;function ay(){if(Ap)return tt;Ap=1;var i=au();function n(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var a={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(y,g,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:y,containerInfo:g,implementation:v}}var m=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,tt.createPortal=function(y,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return d(y,g,null,v)},tt.flushSync=function(y){var g=m.T,v=a.p;try{if(m.T=null,a.p=2,y)return y()}finally{m.T=g,a.p=v,a.d.f()}},tt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,a.d.C(y,g))},tt.prefetchDNS=function(y){typeof y=="string"&&a.d.D(y)},tt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var v=g.as,S=h(v,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,A=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?a.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:S,integrity:C,fetchPriority:A}):v==="script"&&a.d.X(y,{crossOrigin:S,integrity:C,fetchPriority:A,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},tt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=h(g.as,g.crossOrigin);a.d.M(y,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&a.d.M(y)},tt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,S=h(v,g.crossOrigin);a.d.L(y,v,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},tt.preloadModule=function(y,g){if(typeof y=="string")if(g){var v=h(g.as,g.crossOrigin);a.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else a.d.m(y)},tt.requestFormReset=function(y){a.d.r(y)},tt.unstable_batchedUpdates=function(y,g){return y(g)},tt.useFormState=function(y,g,v){return m.H.useFormState(y,g,v)},tt.useFormStatus=function(){return m.H.useHostTransitionStatus()},tt.version="19.2.0",tt}var xp;function sy(){if(xp)return Jr.exports;xp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Jr.exports=ay(),Jr.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Mp;function ry(){if(Mp)return Pl;Mp=1;var i=oy(),n=au(),o=sy();function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function m(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 h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(a(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(a(188));return t!==e?null:e}for(var l=e,s=t;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(s=f.return,s!==null){l=s;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return y(f),e;if(p===s)return y(f),t;p=p.sibling}throw Error(a(188))}if(l.return!==s.return)l=f,s=p;else{for(var T=!1,_=f.child;_;){if(_===l){T=!0,l=f,s=p;break}if(_===s){T=!0,s=f,l=p;break}_=_.sibling}if(!T){for(_=p.child;_;){if(_===l){T=!0,l=p,s=f;break}if(_===s){T=!0,s=p,l=f;break}_=_.sibling}if(!T)throw Error(a(189))}}if(l.alternate!==s)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,C=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function ot(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case P:return"Profiler";case B:return"StrictMode";case J:return"Suspense";case K:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case H:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case Y:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ot(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return ot(e(t))}catch{}}return null}var et=Array.isArray,k=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Me=[],Ie=-1;function w(e){return{current:e}}function z(e){0>Ie||(e.current=Me[Ie],Me[Ie]=null,Ie--)}function Q(e,t){Ie++,Me[Ie]=e.current,e.current=t}var j=w(null),se=w(null),de=w(null),_e=w(null);function it(e,t){switch(Q(de,t),Q(se,e),Q(j,null),t.nodeType){case 9:case 11:e=(e
vendor: 12,037 bytes, lines 41-48
41=t.documentElement)&&(e=e.namespaceURI)?Bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bd(t),e=Pd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z(j),Q(j,e)}function Ge(){z(j),z(se),z(de)}function Ki(e){e.memoizedState!==null&&Q(_e,e);var t=j.current,l=Pd(t,e.type);t!==l&&(Q(se,e),Q(j,l))}function Jl(e){se.current===e&&(z(j),z(se)),_e.current===e&&(z(_e),ql._currentValue=le)}var _a,gu;function qn(e){if(_a===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);_a=t&&t[1]||"",gu=-1<l.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+_a+e+gu}var Aa=!1;function xa(e,t){if(!e||Aa)return"";Aa=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(U){var b=U}Reflect.construct(e,[],V)}else{try{V.call()}catch(U){b=U}e.call(V.prototype)}}else{try{throw Error()}catch(U){b=U}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(U){if(U&&b&&typeof U.stack=="string")return[U.stack,b.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),T=p[0],_=p[1];if(T&&_){var x=T.split(` 44`),I=_.split(` 45`);for(f=s=0;s<x.length&&!x[s].includes("DetermineComponentFrameRoot");)s++;for(;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;if(s===x.length||f===I.length)for(s=x.length-1,f=I.length-1;1<=s&&0<=f&&x[s]!==I[f];)f--;for(;1<=s&&0<=f;s--,f--)if(x[s]!==I[f]){if(s!==1||f!==1)do if(s--,f--,0>f||x[s]!==I[f]){var q=` 46`+x[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=f);break}}}finally{Aa=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qn(l):""}function bh(e,t){switch(e.tag){case 26:case 27:case 5:return qn(e.type);case 16:return qn("Lazy");case 13:return e.child!==t&&t!==null?qn("Suspense Fallback"):qn("Suspense");case 19:return qn("SuspenseList");case 0:case 15:return xa(e.type,!1);case 11:return xa(e.type.render,!1);case 1:return xa(e.type,!0);case 31:return qn("Activity");default:return""}}function yu(e){try{var t="",l=null;do t+=bh(e,l),l=e,e=e.return;while(e);return t}catch(s){return` 47Error generating stack: `+s.message+` 48`+s.stack}}var Ma=Object.prototype.hasOwnProperty,wa=i.unstable_scheduleCallback,Ra=i.unstable_cancelCallback,Lh=i.unstable_shouldYield,Uh=i.unstable_requestPaint,pt=i.unstable_now,kh=i.unstable_getCurrentPriorityLevel,vu=i.unstable_ImmediatePriority,Tu=i.unstable_UserBlockingPriority,Xl=i.unstable_NormalPriority,Hh=i.unstable_LowPriority,Eu=i.unstable_IdlePriority,qh=i.log,Gh=i.unstable_setDisableYieldValue,Qi=null,mt=null;function cn(e){if(typeof qh=="function"&&Gh(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Qi,e)}catch{}}var ht=Math.clz32?Math.clz32:Bh,Vh=Math.log,zh=Math.LN2;function Bh(e){return e>>>=0,e===0?32:31-(Vh(e)/zh|0)|0}var Kl=256,Ql=262144,Zl=4194304;function Gn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Wl(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var f=0,p=e.suspendedLanes,T=e.pingedLanes;e=e.warmLanes;var _=s&134217727;return _!==0?(s=_&~p,s!==0?f=Gn(s):(T&=_,T!==0?f=Gn(T):l||(l=_&~e,l!==0&&(f=Gn(l))))):(_=s&~p,_!==0?f=Gn(_):T!==0?f=Gn(T):l||(l=s&~e,l!==0&&(f=Gn(l)))),f===0?0:t!==0&&t!==f&&(t&p)===0&&(p=f&-f,l=t&-t,p>=l||p===32&&(l&4194048)!==0)?t:f}function Zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ph(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Su(){var e=Zl;return Zl<<=1,(Zl&62914560)===0&&(Zl=4194304),e}function Na(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Wi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Oh(e,t,l,s,f,p){var T=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var _=e.entanglements,x=e.expirationTimes,I=e.hiddenUpdates;for(l=T&~l;0<l;){var q=31-ht(l),V=1<<q;_[q]=0,x[q]=-1;var b=I[q];if(b!==null)for(I[q]=null,q=0;q<b.length;q++){var U=b[q];U!==null&&(U.lane&=-536870913)}l&=~V}s!==0&&Cu(e,s,0),p!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=p&~(T&~t))}function Cu(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-ht(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function _u(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-ht(l),f=1<<s;f&t|e[s]&t&&(e[s]|=t),l&=~f}}function Au(e,t){var l=t&-t;return l=(l&42)!==0?1:Ia(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ia(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Da(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xu(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:fp(e.type))}function Mu(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var fn=Math.random().toString(36).slice(2),Qe="__reactFiber$"+fn,at="__reactProps$"+fn,ii="__reactContainer$"+fn,ba="__reactEvents$"+fn,Yh="__reactListeners$"+fn,Fh="__reactHandles$"+fn,wu="__reactResources$"+fn,$i="__reactMarker$"+fn;function La(e){delete e[Qe],delete e[at],delete e[ba],delete e[Yh],delete e[Fh]}function li(e){var t=e[Qe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ii]||l[Qe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Qd(e);e!==null;){if(l=e[Qe])return l;e=Qd(e)}return t}e=l,l=e.parentNode}return null}function oi(e){if(e=e[Qe]||e[ii]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ji(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function ai(e){var t=e[wu];return t||(t=e[wu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xe(e){e[$i]=!0}var Ru=new Set,Nu={};function Vn(e,t){si(e,t),si(e+"Capture",t)}function si(e,t){for(Nu[e]=t,e=0;e<t.length;e++)Ru.add(t[e])}var Jh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Iu={},Du={};function Xh(e){return Ma.call(Du,e)?!0:Ma.call(Iu,e)?!1:Jh.test(e)?Du[e]=!0:(Iu[e]=!0,!1)}function $l(e,t,l){if(Xh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function jl(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Pt(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kh(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var f=s.get,p=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(T){l=""+T,p.call(this,T)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ua(e){if(!e._valueTracker){var t=bu(e)?"checked":"value";e._valueTracker=Kh(e,t,""+e[t])}}function Lu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=bu(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function eo(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}}var Qh=/[\n"\\]/g;function At(e){return e.replace(Qh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ka(e,t,l,s,f,p,T,_){e.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.type=T:e.removeAttribute("type"),t!=null?T==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):T!=="submit"&&T!=="reset"||e.removeAttribute("value"),t!=null?Ha(e,T,_t(t)):l!=null?Ha(e,T,_t(l)):s!=null&&e.removeAttribute("value"),f==null&&p!=null&&(e.defaultChecked=!!p),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+_t(_):e.removeAttribute("name")}function Uu(e,t,l,s,f,p,T,_){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),t!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||t!=null)){Ua(e);return}l=l!=null?""+_t(l):"",t=t!=null?""+_t(t):l,_||t===e.value||(e.value=t),e.defaultValue=t}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=_?e.checked:!!s,e.defaultChecked=!!s,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(e.name=T),Ua(e)}function Ha(e,t,l){t==="number"&&eo(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ri(e,t,l,s){if(e=e.options,t){t={};for(var f=0;f<l.length;f++)t["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=t.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&s&&(e[l].defaultSelected=!0)}else{for(l=""+_t(l),t=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,s&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function ku(e,t,l){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+_t(l):""}function Hu(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(a(92));if(et(s)){if(1<s.length)throw Error(a(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=_t(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),Ua(e)}function ui(e,t){if(t){var l=e.firstChild;
vendor: 4,140 bytes, line 48
48if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Zh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function qu(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||Zh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Gu(e,t,l){if(t!=null&&typeof t!="object")throw Error(a(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var f in t)s=t[f],t.hasOwnProperty(f)&&l[f]!==s&&qu(e,f,s)}else for(var p in t)t.hasOwnProperty(p)&&qu(e,p,t[p])}function qa(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$h=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function to(e){return $h.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ot(){}var Ga=null;function Va(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ci=null,fi=null;function Vu(e){var t=oi(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(ka(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var f=s[at]||null;if(!f)throw Error(a(90));ka(s,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Lu(s)}break e;case"textarea":ku(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ri(e,!!l.multiple,t,!1)}}}var za=!1;function zu(e,t,l){if(za)return e(t,l);za=!0;try{var s=e(t);return s}finally{if(za=!1,(ci!==null||fi!==null)&&(Oo(),ci&&(t=ci,e=fi,fi=ci=null,Vu(t),e)))for(t=0;t<e.length;t++)Vu(e[t])}}function el(e,t){var l=e.stateNode;if(l===null)return null;var s=l[at]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,t,typeof l));return l}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ba=!1;if(Yt)try{var tl={};Object.defineProperty(tl,"passive",{get:function(){Ba=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{Ba=!1}var dn=null,Pa=null,no=null;function Bu(){if(no)return no;var e,t=Pa,l=t.length,s,f="value"in dn?dn.value:dn.textContent,p=f.length;for(e=0;e<l&&t[e]===f[e];e++);var T=l-e;for(s=1;s<=T&&t[l-s]===f[p-s];s++);return no=f.slice(e,1<s?1-s:void 0)}function io(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 lo(){return!0}function Pu(){return!1}function st(e){function t(l,s,f,p,T){this._reactName=l,this._targetInst=f,this.type=s,this.nativeEvent=p,this.target=T,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(l=e[_],this[_]=l?l(p):p[_]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?lo:Pu,this.isPropagationStopped=Pu,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=lo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=lo)},persist:function(){},isPersistent:lo}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oo=st(zn),nl=S({},zn,{view:0,detail:0}),jh=st(nl),Oa,Ya,il,ao=S({},nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ja,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!==il&&(il&&e.type==="mousemove"?(Oa=e.screenX-il.screenX,Ya=e.screenY-il.screenY):Ya=Oa=0,il=e),Oa)},movementY:function(e){return"movementY"in e?e.movementY:Ya}}),Ou=st(ao),e0=S({},ao,{dataTransfer:0}),t0=st(e0),n0=S({},nl,{relatedTarget:0}),Fa=st(n0),i0=S({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),l0=st(i0),o0=S({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),a0=st(o0),s0=S({},zn,{data:0}),Yu=st(s0),r0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u0={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"},c0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=c0[e])?!!t[e]:!1}function Ja(){return f0}var d0=S({},nl,{key:function(e){if(e.key){var t=r0[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 5,186 bytes, line 48
48return e.type==="keypress"?(e=io(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?u0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ja,charCode:function(e){return e.type==="keypress"?io(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?io(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),p0=st(d0),m0=S({},ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fu=st(m0),h0=S({},nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ja}),g0=st(h0),y0=S({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),v0=st(y0),T0=S({},ao,{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}),E0=st(T0),S0=S({},zn,{newState:0,oldState:0}),C0=st(S0),_0=[9,13,27,32],Xa=Yt&&"CompositionEvent"in window,ll=null;Yt&&"documentMode"in document&&(ll=document.documentMode);var A0=Yt&&"TextEvent"in window&&!ll,Ju=Yt&&(!Xa||ll&&8<ll&&11>=ll),Xu=" ",Ku=!1;function Qu(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function x0(e,t){switch(e){case"compositionend":return Zu(t);case"keypress":return t.which!==32?null:(Ku=!0,Xu);case"textInput":return e=t.data,e===Xu&&Ku?null:e;default:return null}}function M0(e,t){if(di)return e==="compositionend"||!Xa&&Qu(e,t)?(e=Bu(),no=Pa=dn=null,di=!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 Ju&&t.locale!=="ko"?null:t.data;default:return null}}var w0={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 Wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w0[e.type]:t==="textarea"}function $u(e,t,l,s){ci?fi?fi.push(s):fi=[s]:ci=s,t=Zo(t,"onChange"),0<t.length&&(l=new oo("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var ol=null,al=null;function R0(e){kd(e,0)}function so(e){var t=ji(e);if(Lu(t))return e}function ju(e,t){if(e==="change")return t}var ec=!1;if(Yt){var Ka;if(Yt){var Qa="oninput"in document;if(!Qa){var tc=document.createElement("div");tc.setAttribute("oninput","return;"),Qa=typeof tc.oninput=="function"}Ka=Qa}else Ka=!1;ec=Ka&&(!document.documentMode||9<document.documentMode)}function nc(){ol&&(ol.detachEvent("onpropertychange",ic),al=ol=null)}function ic(e){if(e.propertyName==="value"&&so(al)){var t=[];$u(t,al,e,Va(e)),zu(R0,t)}}function N0(e,t,l){e==="focusin"?(nc(),ol=t,al=l,ol.attachEvent("onpropertychange",ic)):e==="focusout"&&nc()}function I0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(al)}function D0(e,t){if(e==="click")return so(t)}function b0(e,t){if(e==="input"||e==="change")return so(t)}function L0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:L0;function sl(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var f=l[s];if(!Ma.call(t,f)||!gt(e[f],t[f]))return!1}return!0}function lc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oc(e,t){var l=lc(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=lc(l)}}function ac(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ac(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=eo(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=eo(e.document)}return t}function Za(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var U0=Yt&&"documentMode"in document&&11>=document.documentMode,pi=null,Wa=null,rl=null,$a=!1;function rc(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$a||pi==null||pi!==eo(s)||(s=pi,"selectionStart"in s&&Za(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focu
vendor: 18,805 bytes, line 48
48sNode:s.focusNode,focusOffset:s.focusOffset}),rl&&sl(rl,s)||(rl=s,s=Zo(Wa,"onSelect"),0<s.length&&(t=new oo("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=pi)))}function Bn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var mi={animationend:Bn("Animation","AnimationEnd"),animationiteration:Bn("Animation","AnimationIteration"),animationstart:Bn("Animation","AnimationStart"),transitionrun:Bn("Transition","TransitionRun"),transitionstart:Bn("Transition","TransitionStart"),transitioncancel:Bn("Transition","TransitionCancel"),transitionend:Bn("Transition","TransitionEnd")},ja={},uc={};Yt&&(uc=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function Pn(e){if(ja[e])return ja[e];if(!mi[e])return e;var t=mi[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in uc)return ja[e]=t[l];return e}var cc=Pn("animationend"),fc=Pn("animationiteration"),dc=Pn("animationstart"),k0=Pn("transitionrun"),H0=Pn("transitionstart"),q0=Pn("transitioncancel"),pc=Pn("transitionend"),mc=new Map,es="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");es.push("scrollEnd");function Ut(e,t){mc.set(e,t),Vn(t,[e])}var ro=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},xt=[],hi=0,ts=0;function uo(){for(var e=hi,t=ts=hi=0;t<e;){var l=xt[t];xt[t++]=null;var s=xt[t];xt[t++]=null;var f=xt[t];xt[t++]=null;var p=xt[t];if(xt[t++]=null,s!==null&&f!==null){var T=s.pending;T===null?f.next=f:(f.next=T.next,T.next=f),s.pending=f}p!==0&&hc(l,f,p)}}function co(e,t,l,s){xt[hi++]=e,xt[hi++]=t,xt[hi++]=l,xt[hi++]=s,ts|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function ns(e,t,l,s){return co(e,t,l,s),fo(e)}function On(e,t){return co(e,null,null,t),fo(e)}function hc(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var f=!1,p=e.return;p!==null;)p.childLanes|=l,s=p.alternate,s!==null&&(s.childLanes|=l),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(f=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,f&&t!==null&&(f=31-ht(l),e=p.hiddenUpdates,s=e[f],s===null?e[f]=[t]:s.push(t),t.lane=l|536870912),p):null}function fo(e){if(50<Il)throw Il=0,fr=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gi={};function G0(e,t,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,l,s){return new G0(e,t,l,s)}function is(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function gc(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function po(e,t,l,s,f,p){var T=0;if(s=e,typeof e=="function")is(e)&&(T=1);else if(typeof e=="string")T=Og(e,l,j.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=yt(31,l,t,f),e.elementType=W,e.lanes=p,e;case L:return Yn(l.children,f,p,t);case B:T=8,f|=24;break;case P:return e=yt(12,l,t,f|2),e.elementType=P,e.lanes=p,e;case J:return e=yt(13,l,t,f),e.elementType=J,e.lanes=p,e;case K:return e=yt(19,l,t,f),e.elementType=K,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:T=10;break e;case O:T=9;break e;case Y:T=11;break e;case F:T=14;break e;case ae:T=16,s=null;break e}T=29,l=Error(a(130,e===null?"null":typeof e,"")),s=null}return t=yt(T,l,t,f),t.elementType=e,t.type=s,t.lanes=p,t}function Yn(e,t,l,s){return e=yt(7,e,s,t),e.lanes=l,e}function ls(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function yc(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function os(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var vc=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var l=vc.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yu(t)},vc.set(e,t),t)}return{value:e,source:t,stack:yu(t)}}var yi=[],vi=0,mo=null,ul=0,wt=[],Rt=0,pn=null,Gt=1,Vt="";function Jt(e,t){yi[vi++]=ul,yi[vi++]=mo,mo=e,ul=t}function Tc(e,t,l){wt[Rt++]=Gt,wt[Rt++]=Vt,wt[Rt++]=pn,pn=e;var s=Gt;e=Vt;var f=32-ht(s)-1;s&=~(1<<f),l+=1;var p=32-ht(t)+f;if(30<p){var T=f-f%5;p=(s&(1<<T)-1).toString(32),s>>=T,f-=T,Gt=1<<32-ht(t)+f|l<<f|s,Vt=p+e}else Gt=1<<p|l<<f|s,Vt=e}function as(e){e.return!==null&&(Jt(e,1),Tc(e,1,0))}function ss(e){for(;e===mo;)mo=yi[--vi],yi[vi]=null,ul=yi[--vi],yi[vi]=null;for(;e===pn;)pn=wt[--Rt],wt[Rt]=null,Vt=wt[--Rt],wt[Rt]=null,Gt=wt[--Rt],wt[Rt]=null}function Ec(e,t){wt[Rt++]=Gt,wt[Rt++]=Vt,wt[Rt++]=pn,Gt=t.id,Vt=t.overflow,pn=e}var Ze=null,be=null,ye=!1,mn=null,Nt=!1,rs=Error(a(519));function hn(e){var t=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cl(Mt(t,e)),rs}function Sc(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Qe]=e,t[at]=s,l){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(l=0;l<bl.length;l++)me(bl[l],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),Uu(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Hu(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||Vd(t.textContent,l)?(s.popover!=null&&(me("beforetoggle",t),me("toggle",t)),s.onScroll!=null&&me("scroll",t),s.onScrollEnd!=null&&me("scrollend",t),s.onClick!=null&&(t.onclick=Ot),t=!0):t=!1,t||hn(e,!0)}function Cc(e){for(Ze=e.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:Nt=!1;return;case 27:case 3:Nt=!0;return;default:Ze=Ze.return}}function Ti(e){if(e!==Ze)return!1;if(!ye)return Cc(e),ye=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Mr(e.type,e.memoizedProps)),l=!l),l&&be&&hn(e),Cc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));be=Kd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));be=Kd(e)}else t===27?(t=be,Nn(e.type)?(e=Dr,Dr=null,be=e):be=t):be=Ze?Dt(e.stateNode.nextSibling):null;return!0}function Fn(){be=Ze=null,ye=!1}function us(){var e=mn;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),mn=null),e}function cl(e){mn===null?mn=[e]:mn.push(e)}var cs=w(null),Jn=null,Xt=null;function gn(e,t,l){Q(cs,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=cs.current,z(cs)}function fs(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function ds(e,t,l,s){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var p=f.dependencies;if(p!==null){var T=f.child;p=p.firstContext;e:for(;p!==null;){var _=p;p=f;for(var x=0;x<t.length;x++)if(_.context===t[x]){p.lanes|=l,_=p.alternate,_!==null&&(_.lanes|=l),fs(p.return,l,e),s||(T=null);break e}p=_.next}}else if(f.tag===18){if(T=f.return,T===null)throw Error(a(341));T.lanes|=l,p=T.alternate,p!==null&&(p.lanes|=l),fs(T,l,e),T=null}else T=f.child;if(T!==null)T.return=f;else for(T=f;T!==null;){if(T===e){T=null;break}if(f=T.sibling,f!==null){f.return=T.return,T=f;break}T=T.return}f=T}}function Ei(e,t,l,s){e=null;for(var f=t,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var T=f.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var _=f.type;gt(f.pendingProps.value,T.value)||(e!==null?e.push(_):e=[_])}}else if(f===_e.current){if(T=f.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ql):e=[ql])}f=f.return}e!==null&&ds(t,e,l,s),t.flags|=262144}function ho(e){for(e=e.firstContext;e!==null;){if(!gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xn(e){Jn=e,Xt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return _c(Jn,e)}function go(e,t){return Jn===null&&Xn(e),_c(e,t)}function _c(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Xt===null){if(e===null)throw Error(a(308));Xt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xt=Xt.next=t;return l}var V0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},z0=i.unstable_scheduleCallback,B0=i.unstable_NormalPriority,Pe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ps(){return{controller:new V0,data:new Map,refCount:0}}function fl(e){e.refCount--,e.refCount===0&&z0(B0,function(){e.controller.abort()})}var dl=null,ms=0,Si=0,Ci=null;function P0(e,t){if(dl===null){var l=dl=[];ms=0,Si=yr(),Ci={status:"pending",value:void 0,then:function(s){l.push(s)}}}return ms++,t.then(Ac,Ac),t}function Ac(){if(--ms===0&&dl!==null){Ci!==null&&(Ci.status="fulfilled");var e=dl;dl=null,Si=0,Ci=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O0(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var f=0;f<l.length;f++)(0,l[f])(t)},function(f){for(s.status="rejected",s.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),s}var xc=k.S;k.S=function(e,t){ud=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&P0(e,t),xc!==null&&xc(e,t)};var Kn=w(null);function hs(){var e=Kn.current;return e!==null?e:De.pooledCache}function yo(e,t){t===null?Q(Kn,Kn.current):Q(Kn,t.pool)}function Mc(){var e=hs();return e===null?null:{parent:Pe._currentValue,pool:e}}var _i=Error(a(460)),gs=Error(a(474)),vo=Error(a(542)),To={then:function(){}};function wc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rc(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ot,Ot),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ic(e),e;default:if(typeof t.status=="string")t.then(Ot,Ot);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=s}},function(s){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ic(e),e}throw Zn=t,_i}}function Qn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zn=l,_i):l}}var Zn=null;function Nc(){if(Zn===null)throw Error(a(459));var e=Zn;return Zn=null,e}function Ic(e){if(e===_i||e===vo)throw Error(a(483))}var Ai=null,pl=0;function Eo(e){var t=pl;return pl+=1,Ai===null&&(Ai=[]),Rc(Ai,e,t)}function ml(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function So(e,t){throw t.$$typeof===C?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Dc(e){function t(R,M){if(e){var N=R.deletions;N===null?(R.deletions=[M],R.flags|=16):N.push(M)}}function l(R,M){if(!e)return null;for(;M!==null;)t(R,M),M=M.sibling;return null}function s(R){for(var M=new Map;R!==null;)R.key!==null?M.set(R.key,R):M.set(R.index,R),R=R.sibling;return M}function f(R,M){return R=Ft(R,M),R.index=0,R.sibling=null,R}function p(R,M,N){return R.index=N,e?(N=R.alternate,N!==null?(N=N.index,N<M?(R.flags|=67108866,M):N):(R.flags|=67108866,M)):(R.flags|=1048576,M)}function T(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function _(R,M,N,G){return M===null||M.tag!==6?(M=ls(N,R.mode,G),M.return=R,M):(M=f(M,N),M.return=R,M)}function x(R,M,N,G){var ne=N.type;return ne===L?q(R,M,N.props.children,G,N.key):M!==null&&(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&Qn(ne)===M.type)?(M=f(M,N.props),ml(M,N),M.return=R,M):(M=po(N.type,N.key,N.props,null,R.mode,G),ml(M,N),M.return=R,M)}function I(R,M,N,G){return M===null||M.tag!==4||M.stateNode.containerInfo!==N.containerInfo||M.stateNode.implementation!==N.implementation?(M=os(N,R.mode,G),M.return=R,M):(M=f(M,N.children||[]),M.return=R,M)}function q(R,M,N,G,ne){return M===null||M.tag!==7?(M=Yn(N,R.mode,G,ne),M.return=R,M):(M=f(M,N),M.return=R,M)}function V(R,M,N){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=ls(""+M,R.mode,N),M.return=R,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case A:return N=po(M.type,M.key,M.props,null,R.mode,N),ml(N,M),N.return=R,N;case D:return M=os(M,R.mode,N),M.return=R,M;case ae:return M=Qn(M),V(R,M,N)}if(et(M)||ce(M))return M=Yn(M,R.mode,N,null),M.return=R,M;if(typeof M.then=="function")return V(R,Eo(M),N);if(M.$$typeof===H)return V(R,go(R,M),N);So(R,M)}return null}function b(R,M,N,G){var ne=M!==null?M.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ne!==null?null:_(R,M,""+N,G);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case A:return N.key===ne?x(R,M,N,G):null;case D:return N.key===ne?I(R,M,N,G):null;case ae:return N=Qn(N),b(R,M,N,G)}if(et(N)||ce(N))return ne!==null?null:q(R,M,N,G,null);if(typeof N.then=="function")return b(R,M,Eo(N),G);if(N.$$typeof===H)return b(R,M,go(R,N),G);So(R,N)}return null}function U(R,M,N,G,ne){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return R=R.get(N)||null,_(M,R,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case A:return R=R.get(G.key===null?N:G.key)||null,x(M,R,G,ne);case D:return R=R.get(G.key===null?N:G.key)||null,I(M,R,G,ne);case ae:return G=Qn(G),U(R,M,N,G,ne)}if(et(G)||ce(G))return R=R.get(N)||null,q(M,R,G,ne,null);if(typeof G.then=="function")return U(R,M,N,Eo(G),ne);if(G.$$typeof===H)return U(R,M,N,go(M,G),ne);So(M,G)}return null}function $(R,M,N,G){for(var ne=null,Te=null,ee=M,fe=M=0,ge=null;ee!==null&&fe<N.length;fe++){ee.index>fe?(ge=ee,ee=null):ge=ee.sibling;var Ee=b(R,ee,N[fe],G);if(Ee===null){ee===null&&(ee=ge);break}e&&ee&&Ee.alternate===null&&t(R,ee),M=p(Ee,M,fe),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee,ee=ge}if(fe===N.length)return l(R,ee),ye&&Jt(R,fe),ne;if(ee===null){for(;fe<N.length;fe++)ee=V(R,N[fe],G),ee!==null&&(M=p(ee,M,fe),Te===null?ne=ee:Te.sibling=ee,Te=ee);return ye&&Jt(R,fe),ne}for(ee=s(ee);fe<N.length;fe++)ge=U(ee,R,fe,N[fe],G),ge!==null&&(e&&ge.alternate!==null&&ee.delete(ge.key===null?fe:ge.key),M=p(ge,M,fe),Te===null?ne=ge:Te.sibling=ge,Te=ge);return e&&ee.forEach(function(Un){return t(R,Un)}),ye&&Jt(R,fe),ne}function ie(R,M,N,G){if(N==null)throw Error(a(151));for(var ne=null,Te=null,ee=M,fe=M=0,ge=null,Ee=N.next();ee!==null&&!Ee.done;fe++,Ee=N.next()){ee.index>fe?(ge=ee,ee=null):ge=ee.sibling;var Un=b(R,ee,Ee.value,G);if(Un===null){ee===null&&(ee=ge);break}e&&ee&&Un.alternate===null&&t(R,ee),M=p(Un,M,fe),Te===null?ne=Un:Te.sibling=Un,Te=Un,ee=ge}if(Ee.done)return l(R,ee),ye&&Jt(R,fe),ne;if(ee===null){for(;!Ee.done;fe++,Ee=N.next())Ee=V(R,Ee.value,G),Ee!==null&&(M=p(Ee,M,fe),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee);return ye&&Jt(R,fe),ne}for(ee=s(ee);!Ee.done;fe++,Ee=N.next())Ee=U(ee,R,fe,Ee.value,G),Ee!==null&&(e&&Ee.alternate!==null&&ee.delete(Ee.key===null?fe:Ee.key),M=p(Ee,M,fe),Te===null?ne=Ee:Te.sibling=Ee,Te=Ee);return e&&ee.forEach(function(ey){return t(R,ey)}),ye&&Jt(R,fe),ne}function Ne(R,M,N,G){if(typeof N=="object"&&N!==null&&N.type===L&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case A:e:{for(var ne=N.key;M!==null;){if(M.key===ne){if(ne=N.type,ne===L){if(M.tag===7){l(R,M.sibling),G=f(M,N.props.children),G.return=R,R=G;break e}}else if(M.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&Qn(ne)===M.type){l(R,M.sibling),G=f(M,N.props),ml(G,N),G.return=R,R=G;break e}l(R,M);break}else t(R,M);M=M.sibling}N.type===L?(G=Yn(N.props.children,R.mode,G,N.key),G.return=R,R=G):(G=po(N.type,N.key,N.props,null,R.mode,G),ml(G,N),G.return=R,R=G)}return T(R);case D:e:{for(ne=N.key;M!==null;){if(M.key===ne)if(M.tag===4&&M.stateNode.containerInfo===N.containerInfo&&M.stateNode.implementation===N.implementation){l(R,M.sibling),G=f(M,N.children||[]),G.return=R,R=G;break e}else{l(R,M);break}else t(R,M);M=M.sibling}G=os(N,R.mode,G),G.return=R,R=G}return T(R);case ae:return N=Qn(N),Ne(R,M,N,G)}if(et(N))return $(R,M,N,G);
vendor: 5,088 bytes, line 48
48if(ce(N)){if(ne=ce(N),typeof ne!="function")throw Error(a(150));return N=ne.call(N),ie(R,M,N,G)}if(typeof N.then=="function")return Ne(R,M,Eo(N),G);if(N.$$typeof===H)return Ne(R,M,go(R,N),G);So(R,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,M!==null&&M.tag===6?(l(R,M.sibling),G=f(M,N),G.return=R,R=G):(l(R,M),G=ls(N,R.mode,G),G.return=R,R=G),T(R)):l(R,M)}return function(R,M,N,G){try{pl=0;var ne=Ne(R,M,N,G);return Ai=null,ne}catch(ee){if(ee===_i||ee===vo)throw ee;var Te=yt(29,ee,null,R.mode);return Te.lanes=G,Te.return=R,Te}finally{}}}var Wn=Dc(!0),bc=Dc(!1),yn=!1;function ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ce&2)!==0){var f=s.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),s.pending=t,t=fo(e),hc(e,null,l),t}return co(e,s,t,l),fo(e)}function hl(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,_u(e,l)}}function Ts(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?f=p=T:p=p.next=T,l=l.next}while(l!==null);p===null?f=p=t:p=p.next=t}else f=p=t;l={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Es=!1;function gl(){if(Es){var e=Ci;if(e!==null)throw e}}function yl(e,t,l,s){Es=!1;var f=e.updateQueue;yn=!1;var p=f.firstBaseUpdate,T=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var x=_,I=x.next;x.next=null,T===null?p=I:T.next=I,T=x;var q=e.alternate;q!==null&&(q=q.updateQueue,_=q.lastBaseUpdate,_!==T&&(_===null?q.firstBaseUpdate=I:_.next=I,q.lastBaseUpdate=x))}if(p!==null){var V=f.baseState;T=0,q=I=x=null,_=p;do{var b=_.lane&-536870913,U=b!==_.lane;if(U?(he&b)===b:(s&b)===b){b!==0&&b===Si&&(Es=!0),q!==null&&(q=q.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var $=e,ie=_;b=t;var Ne=l;switch(ie.tag){case 1:if($=ie.payload,typeof $=="function"){V=$.call(Ne,V,b);break e}V=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ie.payload,b=typeof $=="function"?$.call(Ne,V,b):$,b==null)break e;V=S({},V,b);break e;case 2:yn=!0}}b=_.callback,b!==null&&(e.flags|=64,U&&(e.flags|=8192),U=f.callbacks,U===null?f.callbacks=[b]:U.push(b))}else U={lane:b,tag:_.tag,payload:_.payload,callback:_.callback,next:null},q===null?(I=q=U,x=V):q=q.next=U,T|=b;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;U=_,_=U.next,U.next=null,f.lastBaseUpdate=U,f.shared.pending=null}}while(!0);q===null&&(x=V),f.baseState=x,f.firstBaseUpdate=I,f.lastBaseUpdate=q,p===null&&(f.shared.lanes=0),An|=T,e.lanes=T,e.memoizedState=V}}function Lc(e,t){if(typeof e!="function")throw Error(a(191,e));e.call(t)}function Uc(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lc(l[e],t)}var xi=w(null),Co=w(0);function kc(e,t){e=ln,Q(Co,e),Q(xi,t),ln=e|t.baseLanes}function Ss(){Q(Co,ln),Q(xi,xi.current)}function Cs(){ln=Co.current,z(xi),z(Co)}var vt=w(null),It=null;function En(e){var t=e.alternate;Q(Ve,Ve.current&1),Q(vt,e),It===null&&(t===null||xi.current!==null||t.memoizedState!==null)&&(It=e)}function _s(e){Q(Ve,Ve.current),Q(vt,e),It===null&&(It=e)}function Hc(e){e.tag===22?(Q(Ve,Ve.current),Q(vt,e),It===null&&(It=e)):Sn()}function Sn(){Q(Ve,Ve.current),Q(vt,vt.current)}function Tt(e){z(vt),It===e&&(It=null),z(Ve)}var Ve=w(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Nr(l)||Ir(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Qt=0,re=null,we=null,Oe=null,Ao=!1,Mi=!1,$n=!1,xo=0,vl=0,wi=null,Y0=0;function He(){throw Error(a(321))}function As(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!gt(e[l],t[l]))return!1;return!0}function xs(e,t,l,s,f,p){return Qt=p,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,k.H=e===null||e.memoizedState===null?Ef:zs,$n=!1,p=l(s,f),$n=!1,Mi&&(p=Gc(t,l,s,f)),qc(e),p}function qc(e){k.H=Sl;var t=we!==null&&we.next!==null;if(Qt=0,Oe=we=re=null,Ao=!1,vl=0,wi=null,t)throw Error(a(300));
vendor: 19,210 bytes, line 48
48e===null||Ye||(e=e.dependencies,e!==null&&ho(e)&&(Ye=!0))}function Gc(e,t,l,s){re=e;var f=0;do{if(Mi&&(wi=null),vl=0,Mi=!1,25<=f)throw Error(a(301));if(f+=1,Oe=we=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}k.H=Sf,p=t(l,s)}while(Mi);return p}function F0(){var e=k.H,t=e.useState()[0];return t=typeof t.then=="function"?Tl(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(re.flags|=1024),t}function Ms(){var e=xo!==0;return xo=0,e}function ws(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Rs(e){if(Ao){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ao=!1}Qt=0,Oe=we=re=null,Mi=!1,vl=xo=0,wi=null}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?re.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function ze(){if(we===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Oe===null?re.memoizedState:Oe.next;if(t!==null)Oe=t,we=e;else{if(e===null)throw re.alternate===null?Error(a(467)):Error(a(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Oe===null?re.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tl(e){var t=vl;return vl+=1,wi===null&&(wi=[]),e=Rc(wi,e,t),t=re,(Oe===null?t.memoizedState:Oe.next)===null&&(t=t.alternate,k.H=t===null||t.memoizedState===null?Ef:zs),e}function wo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tl(e);if(e.$$typeof===H)return We(e)}throw Error(a(438,String(e)))}function Ns(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=re.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Mo(),re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=ue;return t.index++,l}function Zt(e,t){return typeof t=="function"?t(e):t}function Ro(e){var t=ze();return Is(t,we,e)}function Is(e,t,l){var s=e.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=l;var f=e.baseQueue,p=s.pending;if(p!==null){if(f!==null){var T=f.next;f.next=p.next,p.next=T}t.baseQueue=f=p,s.pending=null}if(p=e.baseState,f===null)e.memoizedState=p;else{t=f.next;var _=T=null,x=null,I=t,q=!1;do{var V=I.lane&-536870913;if(V!==I.lane?(he&V)===V:(Qt&V)===V){var b=I.revertLane;if(b===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),V===Si&&(q=!0);else if((Qt&b)===b){I=I.next,b===Si&&(q=!0);continue}else V={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},x===null?(_=x=V,T=p):x=x.next=V,re.lanes|=b,An|=b;V=I.action,$n&&l(p,V),p=I.hasEagerState?I.eagerState:l(p,V)}else b={lane:V,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},x===null?(_=x=b,T=p):x=x.next=b,re.lanes|=V,An|=V;I=I.next}while(I!==null&&I!==t);if(x===null?T=p:x.next=_,!gt(p,e.memoizedState)&&(Ye=!0,q&&(l=Ci,l!==null)))throw l;e.memoizedState=p,e.baseState=T,e.baseQueue=x,s.lastRenderedState=p}return f===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Ds(e){var t=ze(),l=t.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var s=l.dispatch,f=l.pending,p=t.memoizedState;if(f!==null){l.pending=null;var T=f=f.next;do p=e(p,T.action),T=T.next;while(T!==f);gt(p,t.memoizedState)||(Ye=!0),t.memoizedState=p,t.baseQueue===null&&(t.baseState=p),l.lastRenderedState=p}return[p,s]}function Vc(e,t,l){var s=re,f=ze(),p=ye;if(p){if(l===void 0)throw Error(a(407));l=l()}else l=t();var T=!gt((we||f).memoizedState,l);if(T&&(f.memoizedState=l,Ye=!0),f=f.queue,Us(Pc.bind(null,s,f,e),[e]),f.getSnapshot!==t||T||Oe!==null&&Oe.memoizedState.tag&1){if(s.flags|=2048,Ri(9,{destroy:void 0},Bc.bind(null,s,f,l,t),null),De===null)throw Error(a(349));p||(Qt&127)!==0||zc(s,t,l)}return l}function zc(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=Mo(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Bc(e,t,l,s){t.value=l,t.getSnapshot=s,Oc(t)&&Yc(e)}function Pc(e,t,l){return l(function(){Oc(t)&&Yc(e)})}function Oc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!gt(e,l)}catch{return!0}}function Yc(e){var t=On(e,2);t!==null&&dt(t,e,2)}function bs(e){var t=lt();if(typeof e=="function"){var l=e;if(e=l(),$n){cn(!0);try{l()}finally{cn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},t}function Fc(e,t,l,s){return e.baseState=l,Is(e,we,typeof s=="function"?s:Zt)}function J0(e,t,l,s,f){if(Do(e))throw Error(a(485));if(e=t.action,e!==null){var p={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){p.listeners.push(T)}};k.T!==null?l(!0):p.isTransition=!1,s(p),l=t.pending,l===null?(p.next=t.pending=p,Jc(t,p)):(p.next=l.next,t.pending=l.next=p)}}function Jc(e,t){var l=t.action,s=t.payload,f=e.state;if(t.isTransition){var p=k.T,T={};k.T=T;try{var _=l(f,s),x=k.S;x!==null&&x(T,_),Xc(e,t,_)}catch(I){Ls(e,t,I)}finally{p!==null&&T.types!==null&&(p.types=T.types),k.T=p}}else try{p=l(f,s),Xc(e,t,p)}catch(I){Ls(e,t,I)}}function Xc(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Kc(e,t,s)},function(s){return Ls(e,t,s)}):Kc(e,t,l)}function Kc(e,t,l){t.status="fulfilled",t.value=l,Qc(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Jc(e,l)))}function Ls(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,Qc(t),t=t.next;while(t!==s)}e.action=null}function Qc(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zc(e,t){return t}function Wc(e,t){if(ye){var l=De.formState;if(l!==null){e:{var s=re;if(ye){if(be){t:{for(var f=be,p=Nt;f.nodeType!==8;){if(!p){f=null;break t}if(f=Dt(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){be=Dt(f.nextSibling),s=f.data==="F!";break e}}hn(s)}s=!1}s&&(t=l[0])}}return l=lt(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zc,lastRenderedState:t},l.queue=s,l=yf.bind(null,re,s),s.dispatch=l,s=bs(!1),p=Vs.bind(null,re,!1,s.queue),s=lt(),f={state:t,dispatch:null,action:e,pending:null},s.queue=f,l=J0.bind(null,re,f,p,l),f.dispatch=l,s.memoizedState=e,[t,l,!1]}function $c(e){var t=ze();return jc(t,we,e)}function jc(e,t,l){if(t=Is(e,t,Zc)[0],e=Ro(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=Tl(t)}catch(T){throw T===_i?vo:T}else s=t;t=ze();var f=t.queue,p=f.dispatch;return l!==t.memoizedState&&(re.flags|=2048,Ri(9,{destroy:void 0},X0.bind(null,f,l),null)),[s,p,e]}function X0(e,t){e.action=t}function ef(e){var t=ze(),l=we;if(l!==null)return jc(t,l,e);ze(),t=t.memoizedState,l=ze();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Ri(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=re.updateQueue,t===null&&(t=Mo(),re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function tf(){return ze().memoizedState}function No(e,t,l,s){var f=lt();re.flags|=e,f.memoizedState=Ri(1|t,{destroy:void 0},l,s===void 0?null:s)}function Io(e,t,l,s){var f=ze();s=s===void 0?null:s;var p=f.memoizedState.inst;we!==null&&s!==null&&As(s,we.memoizedState.deps)?f.memoizedState=Ri(t,p,l,s):(re.flags|=e,f.memoizedState=Ri(1|t,p,l,s))}function nf(e,t){No(8390656,8,e,t)}function Us(e,t){Io(2048,8,e,t)}function K0(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Mo(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function lf(e){var t=ze().memoizedState;return K0({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function of(e,t){return Io(4,2,e,t)}function af(e,t){return Io(4,4,e,t)}function sf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rf(e,t,l){l=l!=null?l.concat([e]):null,Io(4,4,sf.bind(null,t,e),l)}function ks(){}function uf(e,t){var l=ze();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&As(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function cf(e,t){var l=ze();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&As(t,s[1]))return s[0];if(s=e(),$n){cn(!0);try{e()}finally{cn(!1)}}return l.memoizedState=[s,t],s}function Hs(e,t,l){return l===void 0||(Qt&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=fd(),re.lanes|=e,An|=e,l)}function ff(e,t,l,s){return gt(l,t)?l:xi.current!==null?(e=Hs(e,l,s),gt(e,t)||(Ye=!0),e):(Qt&42)===0||(Qt&1073741824)!==0&&(he&261930)===0?(Ye=!0,e.memoizedState=l):(e=fd(),re.lanes|=e,An|=e,t)}function df(e,t,l,s,f){var p=X.p;X.p=p!==0&&8>p?p:8;var T=k.T,_={};k.T=_,Vs(e,!1,t,l);try{var x=f(),I=k.S;if(I!==null&&I(_,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var q=O0(x,s);El(e,t,q,Ct(e))}else El(e,t,s,Ct(e))}catch(V){El(e,t,{then:function(){},status:"rejected",reason:V},Ct())}finally{X.p=p,T!==null&&_.types!==null&&(T.types=_.types),k.T=T}}function Q0(){}function qs(e,t,l,s){if(e.tag!==5)throw Error(a(476));var f=pf(e).queue;df(e,f,t,le,l===null?Q0:function(){return mf(e),l(s)})}function pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:le},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mf(e){var t=pf(e);t.next===null&&(t=e.alternate.memoizedState),El(e,t.next.queue,{},Ct())}function Gs(){return We(ql)}function hf(){return ze().memoizedState}function gf(){return ze().memoizedState}function Z0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ct();e=vn(l);var s=Tn(t,e,l);s!==null&&(dt(s,t,l),hl(s,t,l)),t={cache:ps()},e.payload=t;return}t=t.return}}function W0(e,t,l){var s=Ct();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Do(e)?vf(t,l):(l=ns(e,t,l,s),l!==null&&(dt(l,e,s),Tf(l,t,s)))}function yf(e,t,l){var s=Ct();El(e,t,l,s)}function El(e,t,l,s){var f={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Do(e))vf(t,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var T=t.lastRenderedState,_=p(T,l);if(f.hasEagerState=!0,f.eagerState=_,gt(_,T))return co(e,t,f,0),De===null&&uo(),!1}catch{}finally{}if(l=ns(e,t,f,s),l!==null)return dt(l,e,s),Tf(l,t,s),!0}return!1}function Vs(e,t,l,s){if(s={lane:2,revertLane:yr(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Do(e)){if(t)throw Error(a(479))}else t=ns(e,l,s,2),t!==null&&dt(t,e,2)}function Do(e){var t=e.alternate;return e===re||t!==null&&t===re}function vf(e,t){Mi=Ao=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Tf(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,_u(e,l)}}var Sl={readContext:We,use:wo,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Sl.useEffectEvent=He;var Ef={readContext:We,use:wo,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:nf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,No(4194308,4,sf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return No(4194308,4,e,t)},useInsertionEffect:function(e,t){No(4,2,e,t)},useMemo:function(e,t){var l=lt();t=t===void 0?null:t;var s=e();if($n){cn(!0);try{e()}finally{cn(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=lt();if(l!==void 0){var f=l(t);if($n){cn(!0);try{l(t)}finally{cn(!1)}}}else f=t;return s.memoizedState=s.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},s.queue=e,e=e.dispatch=W0.bind(null,re,e),[s.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=yf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ks,useDeferredValue:function(e,t){var l=lt();return Hs(l,e,t)},useTransition:function(){var e=bs(!1);return e=df.bind(null,re,e.queue,!0,!1),lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=re,f=lt();if(ye){if(l===void 0)throw Error(a(407));l=l()}else{if(l=t(),De===null)throw Error(a(349));(he&127)!==0||zc(s,t,l)}f.memoizedState=l;var p={value:l,getSnapshot:t};return f.queue=p,nf(Pc.bind(null,s,p,e),[e]),s.flags|=2048,Ri(9,{destroy:void 0},Bc.bind(null,s,p,l,t),null),l},useId:function(){var e=lt(),t=De.identifierPrefix;if(ye){var l=Vt,s=Gt;l=(s&~(1<<32-ht(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Y0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Gs,useFormState:Wc,useActionState:Wc,useOptimistic:function(e){var t=lt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Vs.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ns,useCacheRefresh:function(){return lt().memoizedState=Z0.bind(null,re)},useEffectEvent:function(e){var t=lt(),l={impl:e};return t.memoizedState=l,function(){if((Ce&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},zs={readContext:We,use:wo,useCallback:uf,useContext:We,useEffect:Us,useImperativeHandle:rf,useInsertionEffect:of,useLayoutEffect:af,useMemo:cf,useReducer:Ro,useRef:tf,useState:function(){return Ro(Zt)},useDebugValue:ks,useDeferredValue:function(e,t){var l=ze();return ff(l,we.memoizedState,e,t)},useTransition:function(){var e=Ro(Zt)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:Vc,useId:hf,useHostTransitionStatus:Gs,useFormState:$c,useActionState:$c,useOptimistic:function(e,t){var l=ze();return Fc(l,we,e,t)},useMemoCache:Ns,useCacheRefresh:gf};zs.useEffectEvent=lf;var Sf={readContext:We,use:wo,useCallback:uf,useContext:We,useEffect:Us,useImperativeHandle:rf,useInsertionEffect:of,useLayoutEffect:af,useMemo:cf,useReducer:Ds,useRef:tf,useState:function(){return Ds(Zt)},useDebugValue:ks,useDeferredValue:function(e,t){var l=ze();return we===null?Hs(l,e,t):ff(l,we.memoizedState,e,t)},useTransition:function(){var e=Ds(Zt)[0],t=ze().memoizedState;return[typeof e=="boolean"?e:Tl(e),t]},useSyncExternalStore:Vc,useId:hf,useHostTransitionStatus:Gs,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var l=ze();return we!==null?Fc(l,we,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ns,useCacheRefresh:gf};Sf.useEffectEvent=lf;function Bs(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:S({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ps={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=Ct(),f=vn(s);f.payload=t,l!=null&&(f.callback=l),t=Tn(e,f,s),t!==null&&(dt(t,e,s),hl(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=Ct(),f=vn(s);f.tag=1,f.payload=t,l!=null&&(f.callback=l),t=Tn(e,f,s),t!==null&&(dt(t,e,s),hl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ct(),s=vn(l);s.tag=2,t!=null&&(s.callback=t),t=Tn(e,s,l),t!==null&&(dt(t,e,l),hl(t,e,l))}};function Cf(e,t,l,s,f,p,T){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,p,T):t.prototype&&t.prototype.isPureReactComponent?!sl(l,s)||!sl(f,p):!0}function _f(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&Ps.enqueueReplaceState(t,t.state,null)}function jn(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=S({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function Af(e){ro(e)}function xf(e){console.error(e)}function Mf(e){ro(e)}function bo(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function wf(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Os(e,t,l){return l=vn(l),l.tag=3,l.payload={element:null},l.callback=function(){bo(e,t)},l}function Rf(e){return e=vn(e),e.tag=3,e}function Nf(e,t,l,s){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var p=s.value;e.payload=function(){return f(p)},e.callback=function(){wf(t,l,s)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(e.callback=function(){wf(t,l,s),typeof f!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})})}function $0(e,t,l,s,f){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Ei(t,l,f,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return It===null?Yo():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=f,s===To?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),mr(e,s,f)),!1;case 22:return l.flags|=65536,s===To?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),mr(e,s,f)),!1}throw Error(a(435,l.tag))}return mr(e,s,f),Yo(),!1}if(ye)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,s!==rs&&(e=Error(a(422),{cause:s}),cl(Mt(e,l)))):(s!==rs&&(t=Error(a(423),{cause:s}),cl(Mt(t,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,s=Mt(s,l),f=Os(e.stateNode,s,f),Ts(e,f),qe!==4&&(qe=2)),!1;var p=Error(a(520),{cause:s});if(p=Mt(p,l),Nl===null?Nl=[p]:Nl.push(p),qe!==4&&(qe=2),t===null)return!0;s=Mt(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=Os(l.stateNode,s,e),Ts(l,e),!1;case 1:if(t=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(xn===null||!xn.has(p))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Rf(f),Nf(f,e,l,s),Ts(l,f),!1}l=l.return}while(l!==null);return!1}var Ys=Error(a(461)),Ye=!1;function $e(e,t,l,s){t.child=e===null?bc(t,null,l,s):Wn(t,e.child,l,
vendor: 12,067 bytes, line 48
48s)}function If(e,t,l,s,f){l=l.render;var p=t.ref;if("ref"in s){var T={};for(var _ in s)_!=="ref"&&(T[_]=s[_])}else T=s;return Xn(t),s=xs(e,t,l,T,p,f),_=Ms(),e!==null&&!Ye?(ws(e,t,f),Wt(e,t,f)):(ye&&_&&as(t),t.flags|=1,$e(e,t,s,f),t.child)}function Df(e,t,l,s,f){if(e===null){var p=l.type;return typeof p=="function"&&!is(p)&&p.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=p,bf(e,t,p,s,f)):(e=po(l.type,null,s,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(p=e.child,!$s(e,f)){var T=p.memoizedProps;if(l=l.compare,l=l!==null?l:sl,l(T,s)&&e.ref===t.ref)return Wt(e,t,f)}return t.flags|=1,e=Ft(p,s),e.ref=t.ref,e.return=t,t.child=e}function bf(e,t,l,s,f){if(e!==null){var p=e.memoizedProps;if(sl(p,s)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=s=p,$s(e,f))(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Wt(e,t,f)}return Fs(e,t,l,s,f)}function Lf(e,t,l,s){var f=s.children,p=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,e!==null){for(s=t.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;s=f&~p}else s=0,t.child=null;return Uf(e,t,p,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yo(t,p!==null?p.cachePool:null),p!==null?kc(t,p):Ss(),Hc(t);else return s=t.lanes=536870912,Uf(e,t,p!==null?p.baseLanes|l:l,l,s)}else p!==null?(yo(t,p.cachePool),kc(t,p),Sn(),t.memoizedState=null):(e!==null&&yo(t,null),Ss(),Sn());return $e(e,t,f,l),t.child}function Cl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Uf(e,t,l,s,f){var p=hs();return p=p===null?null:{parent:Pe._currentValue,pool:p},t.memoizedState={baseLanes:l,cachePool:p},e!==null&&yo(t,null),Ss(),Hc(t),e!==null&&Ei(e,t,s,!0),t.childLanes=f,null}function Lo(e,t){return t=ko({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function kf(e,t,l){return Wn(t,e.child,null,l),e=Lo(t,t.pendingProps),e.flags|=2,Tt(t),t.memoizedState=null,e}function j0(e,t,l){var s=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(s.mode==="hidden")return e=Lo(t,s),t.lanes=536870912,Cl(null,e);if(_s(t),(e=be)?(e=Xd(e,Nt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pn!==null?{id:Gt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=yc(e),l.return=t,t.child=l,Ze=t,be=null)):e=null,e===null)throw hn(t);return t.lanes=536870912,null}return Lo(t,s)}var p=e.memoizedState;if(p!==null){var T=p.dehydrated;if(_s(t),f)if(t.flags&256)t.flags&=-257,t=kf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(Ye||Ei(e,t,l,!1),f=(l&e.childLanes)!==0,Ye||f){if(s=De,s!==null&&(T=Au(s,l),T!==0&&T!==p.retryLane))throw p.retryLane=T,On(e,T),dt(s,e,T),Ys;Yo(),t=kf(e,t,l)}else e=p.treeContext,be=Dt(T.nextSibling),Ze=t,ye=!0,mn=null,Nt=!1,e!==null&&Ec(t,e),t=Lo(t,s),t.flags|=4096;return t}return e=Ft(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uo(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fs(e,t,l,s,f){return Xn(t),l=xs(e,t,l,s,void 0,f),s=Ms(),e!==null&&!Ye?(ws(e,t,f),Wt(e,t,f)):(ye&&s&&as(t),t.flags|=1,$e(e,t,l,f),t.child)}function Hf(e,t,l,s,f,p){return Xn(t),t.updateQueue=null,l=Gc(t,s,l,f),qc(e),s=Ms(),e!==null&&!Ye?(ws(e,t,p),Wt(e,t,p)):(ye&&s&&as(t),t.flags|=1,$e(e,t,l,p),t.child)}function qf(e,t,l,s,f){if(Xn(t),t.stateNode===null){var p=gi,T=l.contextType;typeof T=="object"&&T!==null&&(p=We(T)),p=new l(s,p),t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Ps,t.stateNode=p,p._reactInternals=t,p=t.stateNode,p.props=s,p.state=t.memoizedState,p.refs={},ys(t),T=l.contextType,p.context=typeof T=="object"&&T!==null?We(T):gi,p.state=t.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(Bs(t,l,T,s),p.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(T=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),T!==p.state&&Ps.enqueueReplaceState(p,p.state,null),yl(t,s,p,f),gl(),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){p=t.stateNode;var _=t.memoizedProps,x=jn(l,_);p.props=x;var I=p.context,q=l.contextType;T=gi,typeof q=="object"&&q!==null&&(T=We(q));var V=l.getDerivedStateFromProps;q=typeof V=="function"||typeof p.getSnapshotBeforeUpdate=="function",_=t.pendingProps!==_,q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(_||I!==T)&&_f(t,p,s,T),yn=!1;var b=t.memoizedState;p.state=b,yl(t,s,p,f),gl(),I=t.memoizedState,_||b!==I||yn?(typeof V=="function"&&(Bs(t,l,V,s),I=t.memoizedState),(x=yn||Cf(t,l,x,s,b,I,T))?(q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=I),p.props=s,p.state=I,p.context=T,s=x):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{p=t.stateNode,vs(e,t),T=t.memoizedProps,q=jn(l,T),p.props=q,V=t.pendingProps,b=p.context,I=l.contextType,x=gi,typeof I=="object"&&I!==null&&(x=We(I)),_=l.getDerivedStateFromProps,(I=typeof _=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T!==V||b!==x)&&_f(t,p,s,x),yn=!1,b=t.memoizedState,p.state=b,yl(t,s,p,f),gl();var U=t.memoizedState;T!==V||b!==U||yn||e!==null&&e.dependencies!==null&&ho(e.dependencies)?(typeof _=="function"&&(Bs(t,l,_,s),U=t.memoizedState),(q=yn||Cf(t,l,q,s,b,U,x)||e!==null&&e.dependencies!==null&&ho(e.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,U,x),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,U,x)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||T===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=U),p.props=s,p.state=U,p.context=x,s=q):(typeof p.componentDidUpdate!="function"||T===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||T===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),s=!1)}return p=s,Uo(e,t),s=(t.flags&128)!==0,p||s?(p=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:p.render(),t.flags|=1,e!==null&&s?(t.child=Wn(t,e.child,null,f),t.child=Wn(t,null,l,f)):$e(e,t,l,f),t.memoizedState=p.state,e=t.child):e=Wt(e,t,f),e}function Gf(e,t,l,s){return Fn(),t.flags|=256,$e(e,t,l,s),t.child}var Js={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xs(e){return{baseLanes:e,cachePool:Mc()}}function Ks(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=St),e}function Vf(e,t,l){var s=t.pendingProps,f=!1,p=(t.flags&128)!==0,T;if((T=p)||(T=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),T&&(f=!0,t.flags&=-129),T=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(f?En(t):Sn(),(e=be)?(e=Xd(e,Nt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pn!==null?{id:Gt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=yc(e),l.return=t,t.child=l,Ze=t,be=null)):e=null,e===null)throw hn(t);return Ir(e)?t.lanes=32:t.lanes=536870912,null}var _=s.children;return s=s.fallback,f?(Sn(),f=t.mode,_=ko({mode:"hidden",children:_},f),s=Yn(s,f,l,null),_.return=t,s.return=t,_.sibling=s,t.child=_,s=t.child,s.memoizedState=Xs(l),s.childLanes=Ks(e,T,l),t.memoizedState=Js,Cl(null,s)):(En(t),Qs(t,_))}var x=e.memoizedState;if(x!==null&&(_=x.dehydrated,_!==null)){if(p)t.flags&256?(En(t),t.flags&=-257,t=Zs(e,t,l)):t.memoizedState!==null?(Sn(),t.child=e.child,t.flags|=128,t=null):(Sn(),_=s.fallback,f=t.mode,s=ko({mode:"visible",children:s.children},f),_=Yn(_,f,l,null),_.flags|=2,s.return=t,_.return=t,s.sibling=_,t.child=s,Wn(t,e.child,null,l),s=t.child,s.memoizedState=Xs(l),s.childLanes=Ks(e,T,l),t.memoizedState=Js,t=Cl(null,s));else if(En(t),Ir(_)){if(T=_.nextSibling&&_.nextSibling.dataset,T)var I=T.dgst;T=I,s=Error(a(419)),s.stack="",s.digest=T,cl({value:s,source:null,stack:null}),t=Zs(e,t,l)}else if(Ye||Ei(e,t,l,!1),T=(l&e.childLanes)!==0,Ye||T){if(T=De,T!==null&&(s=Au(T,l),s!==0&&s!==x.retryLane))throw x.retryLane=s,On(e,s),dt(T,e,s),Ys;Nr(_)||Yo(),t=Zs(e,t,l)}else Nr(_)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,be=Dt(_.nextSibling),Ze=t,ye=!0,mn=null,Nt=!1,e!==null&&Ec(t,e),t=Qs(t,s.children),t.flags|=4096);return t}return f?(Sn(),_=s.fallback,f=t.mode,x=e.child,I=x.sibling,s=Ft(x,{mode:"hidden",children:s.children}),s.subtreeFlags=x.subtreeFlags&65011712,I!==null?_=Ft(I,_):(_=Yn(_,f,l,null),_.flags|=2),_.return=t,s.return=t,s.sibling=_,t.child=s,Cl(null,s),s=t.child,_=e.child.memoizedState,_===null?_=Xs(l):(f=_.cachePool,f!==null?(x=Pe._currentValue,f=f.parent!==x?{parent:x,pool:x}:f):f=Mc(),_={baseLanes:_.baseLanes|l,cachePool:f}),s.memoizedState=_,s.childLanes=Ks(e,T,l),t.memoizedState=Js,Cl(e.child,s)):(En(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(T=t.deletions,T===null?(t.deletions=[e],t.flags|=16):T.push(e)),t.child=l,t.memoizedState=null,l)}function Qs(e,t){return t=ko({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ko(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Zs(e,t,l){return Wn(t,e.child,null,l),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zf(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),fs(e.return,t,l)}function Ws(e,t,l,s,f,p){var T=e.memoizedState;T===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:f,treeForkCount:p}:(T.isBackwards=t,T.rendering=null,T.renderingStartTime=0,T.last=s,T.tail=l,T.tailMode=f,T.treeForkCount=p)}function Bf(e,t,l){var s=t.pendingProps,f=s.revealOrder,p=s.tail;s=s.children;var T=Ve.current,_=(T&2)!==0;if(_?(T=T&1|2,t.flags|=128):T&=1,Q(Ve,T),$e(e,t,s,l),s=ye?ul:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zf(e,l,t);else if(e.tag===19)zf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=t.child,f=null;l!==null;)e=l.alternate,e!==null&&_o(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=t.child,t.child=null):(f=l.sibling,l.sibling=null),Ws(t,!1,f,l,p,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&_o(e)===null){t.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}Ws(t,!0,l,null,p,s);break;case"together":Ws(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),An|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ei(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));
vendor: 6,184 bytes, line 48
48if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function $s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ho(e)))}function eg(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),gn(t,Pe,e.memoizedState.cache),Fn();break;case 27:case 5:Ki(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_s(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(En(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Vf(e,t,l):(En(t),e=Wt(e,t,l),e!==null?e.sibling:null);En(t);break;case 19:var f=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Ei(e,t,l,!1),s=(l&t.childLanes)!==0),f){if(s)return Bf(e,t,l);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Q(Ve,Ve.current),s)break;return null;case 22:return t.lanes=0,Lf(e,t,l,t.pendingProps);case 24:gn(t,Pe,e.memoizedState.cache)}return Wt(e,t,l)}function Pf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ye=!0;else{if(!$s(e,l)&&(t.flags&128)===0)return Ye=!1,eg(e,t,l);Ye=(e.flags&131072)!==0}else Ye=!1,ye&&(t.flags&1048576)!==0&&Tc(t,ul,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Qn(t.elementType),t.type=e,typeof e=="function")is(e)?(s=jn(e,s),t.tag=1,t=qf(null,t,e,s,l)):(t.tag=0,t=Fs(null,t,e,s,l));else{if(e!=null){var f=e.$$typeof;if(f===Y){t.tag=11,t=If(null,t,e,s,l);break e}else if(f===F){t.tag=14,t=Df(null,t,e,s,l);break e}}throw t=ot(e)||e,Error(a(306,t,""))}}return t;case 0:return Fs(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,f=jn(s,t.pendingProps),qf(e,t,s,f,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(a(387));s=t.pendingProps;var p=t.memoizedState;f=p.element,vs(e,t),yl(t,s,null,l);var T=t.memoizedState;if(s=T.cache,gn(t,Pe,s),s!==p.cache&&ds(t,[Pe],l,!0),gl(),s=T.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:T.cache},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){t=Gf(e,t,s,l);break e}else if(s!==f){f=Mt(Error(a(424)),t),cl(f),t=Gf(e,t,s,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(be=Dt(e.firstChild),Ze=t,ye=!0,mn=null,Nt=!0,l=bc(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Fn(),s===f){t=Wt(e,t,l);break e}$e(e,t,s,l)}t=t.child}return t;case 26:return Uo(e,t),e===null?(l=jd(t.type,null,t.pendingProps,null))?t.memoizedState=l:ye||(l=t.type,e=t.pendingProps,s=Wo(de.current).createElement(l),s[Qe]=t,s[at]=e,je(s,l,e),Xe(s),t.stateNode=s):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ki(t),e===null&&ye&&(s=t.stateNode=Zd(t.type,t.pendingProps,de.current),Ze=t,Nt=!0,f=be,Nn(t.type)?(Dr=f,be=Dt(s.firstChild)):be=f),$e(e,t,t.pendingProps.children,l),Uo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((f=s=be)&&(s=Ig(s,t.type,t.pendingProps,Nt),s!==null?(t.stateNode=s,Ze=t,be=Dt(s.firstChild),Nt=!1,f=!0):f=!1),f||hn(t)),Ki(t),f=t.type,p=t.pendingProps,T=e!==null?e.memoizedProps:null,s=p.children,Mr(f,p)?s=null:T!==null&&Mr(f,T)&&(t.flags|=32),t.memoizedState!==null&&(f=xs(e,t,F0,null,null,l),ql._currentValue=f),Uo(e,t),$e(e,t,s,l),t.child;case 6:return e===null&&ye&&((e=l=be)&&(l=Dg(l,t.pendingProps,Nt),l!==null?(t.stateNode=l,Ze=t,be=null,e=!0):e=!1),e||hn(t)),null;case 13:return Vf(e,t,l);case 4:return it(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Wn(t,null,s,l):$e(e,t,s,l),t.child;case 11:return If(e,t,t.type,t.pendingProps,l);case 7:return $e(e,t,t.pendingProps,l),t.child;case 8:return $e(e,t,t.pendingProps.children,l),t.child;case 12:return $e(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,gn(t,t.type,s.value),$e(e,t,s.children,l),t.child;case 9:return f=t.type._context,s=t.pendingProps.children,Xn(t),f=We(f),s=s(f),t.flags|=1,$e(e,t,s,l),t.child;case 14:return Df(e,t,t.type,t.pendingProps,l);case 15:return bf(e,t,t.type,t.pendingProps,l);case 19:return Bf(e,t,l);case 31:return j0(e,t,l);case 22:return Lf(e,t,l,t.pendingProps);case 24:return Xn(t),s=We(Pe),e===null?(f=hs(),f===null&&(f=De,p=ps(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=l),f=p),t.memoizedState={parent:s,cache:f},ys(t),gn(t,Pe,f)):((e.lanes&l)!==0&&(vs(e,t),yl(t,null,null,l),gl()),f=e.memoizedState,p=t.memoizedState,f.parent!==s?(f={parent:s,cache:s},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),gn(t,Pe,s)):(s=p.cache,gn(t,Pe,s),s!==f.cache&&ds(t,[Pe],l,!0))),$e(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function $t(e){e.flags|=4}function js(e,t,l,s,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(hd())e.flags|=8192;else throw Zn=To,gs}else e.flags&=-16777217}function Of(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lp(t))if(hd())e.flags|=8192;else throw Zn=To,gs}function Ho(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Su():536870912,e.lanes|=t,bi|=t)}function _l(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags&65011712,s|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,s|=f.subtreeFlags,s|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function tg(e,t,l){var s=t.pendingProps;switch(ss(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;
vendor: 7,623 bytes, line 48
48case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Kt(Pe),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ti(t)?$t(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,us())),Le(t),null;case 26:var f=t.type,p=t.memoizedState;return e===null?($t(t),p!==null?(Le(t),Of(t,p)):(Le(t),js(t,f,null,s,l))):p?p!==e.memoizedState?($t(t),Le(t),Of(t,p)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&$t(t),Le(t),js(t,f,e,s,l)),null;case 27:if(Jl(t),l=de.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&$t(t);else{if(!s){if(t.stateNode===null)throw Error(a(166));return Le(t),null}e=j.current,Ti(t)?Sc(t):(e=Zd(f,s,l),t.stateNode=e,$t(t))}return Le(t),null;case 5:if(Jl(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&$t(t);else{if(!s){if(t.stateNode===null)throw Error(a(166));return Le(t),null}if(p=j.current,Ti(t))Sc(t);else{var T=Wo(de.current);switch(p){case 1:p=T.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=T.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=T.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=T.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=T.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?T.createElement("select",{is:s.is}):T.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?T.createElement(f,{is:s.is}):T.createElement(f)}}p[Qe]=t,p[at]=s;e:for(T=t.child;T!==null;){if(T.tag===5||T.tag===6)p.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===t)break e;for(;T.sibling===null;){if(T.return===null||T.return===t)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}t.stateNode=p;e:switch(je(p,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&$t(t)}}return Le(t),js(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&$t(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(a(166));if(e=de.current,Ti(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,f=Ze,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Vd(e.nodeValue,l)),e||hn(t,!0)}else e=Wo(e).createTextNode(s),e[Qe]=t,t.stateNode=e}return Le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Ti(t),l!==null){if(e===null){if(!s)throw Error(a(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[Qe]=t}else Fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else l=us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Tt(t),t):(Tt(t),null);if((t.flags&128)!==0)throw Error(a(558))}return Le(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ti(t),s!==null&&s.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[Qe]=t}else Fn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),f=!1}else f=us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Tt(t),t):(Tt(t),null)}return Tt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==f&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ho(t,t.updateQueue),Le(t),null);case 4:return Ge(),e===null&&Sr(t.stateNode.containerInfo),Le(t),null;case 10:return Kt(t.type),Le(t),null;case 19:if(z(Ve),s=t.memoizedState,s===null)return Le(t),null;if(f=(t.flags&128)!==0,p=s.rendering,p===null)if(f)_l(s,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=_o(e),p!==null){for(t.flags|=128,_l(s,!1),e=p.updateQueue,t.updateQueue=e,Ho(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)gc(l,e),l=l.sibling;return Q(Ve,Ve.current&1|2),ye&&Jt(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&pt()>Bo&&(t.flags|=128,f=!0,_l(s,!1),t.lanes=4194304)}else{if(!f)if(e=_o(p),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,Ho(t,e),_l(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!ye)return Le(t),null}else 2*pt()-s.renderingStartTime>Bo&&l!==536870912&&(t.flags|=128,f=!0,_l(s,!1),t.lanes=4194304);s.isBackwards?(p.sibling=t.child,t.child=p):(e=s.last,e!==null?e.sibling=p:t.child=p,s.last=p)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=pt(),e.sibling=null,l=Ve.current,Q(Ve,f?l&1|2:l&1),ye&&Jt(t,s.treeForkCount),e):(Le(t),null);case 22:case 23:return Tt(t),Cs(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Ho(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&z(Kn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(Pe),Le(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function ng(e,t){switch(ss(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(Pe),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jl(t),null;case 31:if(t.memoizedState!==null){if(Tt(t),t.alternate===null)throw Error(a(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Tt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(Ve),null;case 4:return Ge(),null;case 10:return Kt(t.type),null;case 22:case 23:return Tt(t),Cs(),e!==null&&z(Kn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(Pe),null;case 25:return null;default:return null}}function Yf(e,t){switch(ss(t),t.tag){case 3:Kt(Pe),Ge();break;case 26:case 27:case 5:Jl(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&Tt(t);break;case 13:Tt(t);break;case 19:z(Ve);break;case 10:Kt(t.type);break;case 22:case 23:Tt(t),Cs(),e!==null&&z(Kn);break;case 24:Kt(Pe)}}function Al(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var f=s.next;l=f;do{if((l.tag&e)===e){s=void 0;var p=l.create,T=l.inst;s=p(),T.destroy=s}l=l.next}while(l!==f)}}catch(_){xe(t,t.return,_)}}function Cn(e,t,l){try{var s=t.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var p=f.next;s=p;do{if((s.tag&e)===e){var T=s.inst,_=T.destroy;if(_!==void 0){T.destroy=void 0,f=t;var x=l,I=_;try{I()}catch(q){xe(f,x,q)}}}s=s.next}while(s!==p)}}catch(q){xe(t,t.return,q)}}function Ff(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Uc(t,l)}catch(s){xe(e,e.return,s)}}}function Jf(e,t,l){l.props=jn(e.type,e.memoizedProps),l.state=e.memoizedState;
vendor: 19,401 bytes, line 48
48try{l.componentWillUnmount()}catch(s){xe(e,t,s)}}function xl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(f){xe(e,t,f)}}function zt(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(f){xe(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){xe(e,t,f)}else l.current=null}function Xf(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(f){xe(e,e.return,f)}}function er(e,t,l){try{var s=e.stateNode;Ag(s,e.type,l,t),s[at]=t}catch(f){xe(e,e.return,f)}}function Kf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nn(e.type)||e.tag===4}function tr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Nn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nr(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ot));else if(s!==4&&(s===27&&Nn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(nr(e,t,l),e=e.sibling;e!==null;)nr(e,t,l),e=e.sibling}function qo(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&Nn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qo(e,t,l),e=e.sibling;e!==null;)qo(e,t,l),e=e.sibling}function Qf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);je(t,s,l),t[Qe]=e,t[at]=l}catch(p){xe(e,e.return,p)}}var jt=!1,Fe=!1,ir=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function ig(e,t){if(e=e.containerInfo,Ar=la,e=sc(e),Za(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var f=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var T=0,_=-1,x=-1,I=0,q=0,V=e,b=null;t:for(;;){for(var U;V!==l||f!==0&&V.nodeType!==3||(_=T+f),V!==p||s!==0&&V.nodeType!==3||(x=T+s),V.nodeType===3&&(T+=V.nodeValue.length),(U=V.firstChild)!==null;)b=V,V=U;for(;;){if(V===e)break t;if(b===l&&++I===f&&(_=T),b===p&&++q===s&&(x=T),(U=V.nextSibling)!==null)break;V=b,b=V.parentNode}V=U}l=_===-1||x===-1?null:{start:_,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(xr={focusedElem:e,selectionRange:l},la=!1,Ke=t;Ke!==null;)if(t=Ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ke=e;else for(;Ke!==null;){switch(t=Ke,p=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,l=t,f=p.memoizedProps,p=p.memoizedState,s=l.stateNode;try{var $=jn(l.type,f);e=s.getSnapshotBeforeUpdate($,p),s.__reactInternalSnapshotBeforeUpdate=e}catch(ie){xe(l,l.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Rr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,Ke=e;break}Ke=t.return}}function Wf(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:tn(e,l),s&4&&Al(5,l);break;case 1:if(tn(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(T){xe(l,l.return,T)}else{var f=jn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(T){xe(l,l.return,T)}}s&64&&Ff(l),s&512&&xl(l,l.return);break;case 3:if(tn(e,l),s&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Uc(e,t)}catch(T){xe(l,l.return,T)}}break;case 27:t===null&&s&4&&Qf(l);case 26:case 5:tn(e,l),t===null&&s&4&&Xf(l),s&512&&xl(l,l.return);break;case 12:tn(e,l);break;case 31:tn(e,l),s&4&&ed(e,l);break;case 13:tn(e,l),s&4&&td(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=dg.bind(null,l),bg(e,l))));break;case 22:if(s=l.memoizedState!==null||jt,!s){t=t!==null&&t.memoizedState!==null||Fe,f=jt;var p=Fe;jt=s,(Fe=t)&&!p?nn(e,l,(l.subtreeFlags&8772)!==0):tn(e,l),jt=f,Fe=p}break;case 30:break;default:tn(e,l)}}function $f(e){var t=e.alternate;t!==null&&(e.alternate=null,$f(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&La(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ke=null,rt=!1;function en(e,t,l){for(l=l.child;l!==null;)jf(e,t,l),l=l.sibling}function jf(e,t,l){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Qi,l)}catch{}switch(l.tag){case 26:Fe||zt(l,t),en(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Fe||zt(l,t);var s=ke,f=rt;Nn(l.type)&&(ke=l.stateNode,rt=!1),en(e,t,l),Ul(l.stateNode),ke=s,rt=f;break;case 5:Fe||zt(l,t);case 6:if(s=ke,f=rt,ke=null,en(e,t,l),ke=s,rt=f,ke!==null)if(rt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(l.stateNode)}catch(p){xe(l,t,p)}else try{ke.removeChild(l.stateNode)}catch(p){xe(l,t,p)}break;case 18:ke!==null&&(rt?(e=ke,Fd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),zi(e)):Fd(ke,l.stateNode));break;case 4:s=ke,f=rt,ke=l.stateNode.containerInfo,rt=!0,en(e,t,l),ke=s,rt=f;break;case 0:case 11:case 14:case 15:Cn(2,l,t),Fe||Cn(4,l,t),en(e,t,l);break;case 1:Fe||(zt(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&Jf(l,t,s)),en(e,t,l);break;case 21:en(e,t,l);break;case 22:Fe=(s=Fe)||l.memoizedState!==null,en(e,t,l),Fe=s;break;default:en(e,t,l)}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{zi(e)}catch(l){xe(t,t.return,l)}}}function td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{zi(e)}catch(l){xe(t,t.return,l)}}function lg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zf),t;default:throw Error(a(435,e.tag))}}function Go(e,t){var l=lg(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var f=pg.bind(null,e,s);s.then(f,f)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var f=l[s],p=e,T=t,_=T;e:for(;_!==null;){switch(_.tag){case 27:if(Nn(_.type)){ke=_.stateNode,rt=!1;break e}break;case 5:ke=_.stateNode,rt=!1;break e;case 3:case 4:ke=_.stateNode.containerInfo,rt=!0;break e}_=_.return}if(ke===null)throw Error(a(160));jf(p,T,f),ke=null,rt=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nd(t,e),t=t.sibling}var kt=null;function nd(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),ct(e),s&4&&(Cn(3,e,e.return),Al(3,e),Cn(5,e,e.return));break;case 1:ut(t,e),ct(e),s&512&&(Fe||l===null||zt(l,l.return)),s&64&&jt&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var f=kt;if(ut(t,e),ct(e),s&512&&(Fe||l===null||zt(l,l.return)),s&4){var p=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(s){case"title":p=f.getElementsByTagName("title")[0],(!p||p[$i]||p[Qe]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(s),f.head.insertBefore(p,f.querySelector("head > title"))),je(p,s,l),p[Qe]=e,Xe(p),s=p;break e;case"link":var T=np("link","href",f).get(s+(l.href||""));if(T){for(var _=0;_<T.length;_++)if(p=T[_],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){T.splice(_,1);break t}}p=f.createElement(s),je(p,s,l),f.head.appendChild(p);break;case"meta":if(T=np("meta","content",f).get(s+(l.content||""))){for(_=0;_<T.length;_++)if(p=T[_],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){T.splice(_,1);break t}}p=f.createElement(s),je(p,s,l),f.head.appendChild(p);break;default:throw Error(a(468,s))}p[Qe]=e,Xe(p),s=p}e.stateNode=s}else ip(f,e.type,e.stateNode);else e.stateNode=tp(f,s,e.memoizedProps);else p!==s?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,s===null?ip(f,e.type,e.stateNode):tp(f,s,e.memoizedProps)):s===null&&e.stateNode!==null&&er(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),ct(e),s&512&&(Fe||l===null||zt(l,l.return)),l!==null&&s&4&&er(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),ct(e),s&512&&(Fe||l===null||zt(l,l.return)),e.flags&32){f=e.stateNode;try{ui(f,"")}catch($){xe(e,e.return,$)}}s&4&&e.stateNode!=null&&(f=e.memoizedProps,er(e,f,l!==null?l.memoizedProps:f)),s&1024&&(ir=!0);break;case 6:if(ut(t,e),ct(e),s&4){if(e.stateNode===null)throw Error(a(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch($){xe(e,e.return,$)}}break;case 3:if(ea=null,f=kt,kt=$o(t.containerInfo),ut(t,e),kt=f,ct(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{zi(t.containerInfo)}catch($){xe(e,e.return,$)}ir&&(ir=!1,id(e));break;case 4:s=kt,kt=$o(e.stateNode.containerInfo),ut(t,e),ct(e),kt=s;break;case 12:ut(t,e),ct(e);break;case 31:ut(t,e),ct(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Go(e,s)));break;case 13:ut(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(zo=pt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Go(e,s)));break;case 22:f=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,I=jt,q=Fe;if(jt=I||f,Fe=q||x,ut(t,e),Fe=q,jt=I,ct(e),s&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(l===null||x||jt||Fe||ei(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(p=x.stateNode,f)T=p.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{_=x.stateNode;var V=x.memoizedProps.style,b=V!=null&&V.hasOwnProperty("display")?V.display:null;_.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch($){xe(x,x.return,$)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=f?"":x.memoizedProps}catch($){xe(x,x.return,$)}}}else if(t.tag===18){if(l===null){x=t;try{var U=x.stateNode;f?Jd(U,!0):Jd(x.stateNode,!1)}catch($){xe(x,x.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,Go(e,l))));break;case 19:ut(t,e),ct(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Go(e,s)));break;case 30:break;case 21:break;default:ut(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(Kf(s)){l=s;break}s=s.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var f=l.stateNode,p=tr(e);qo(e,p,f);break;case 5:var T=l.stateNode;l.flags&32&&(ui(T,""),l.flags&=-33);var _=tr(e);qo(e,_,T);break;case 3:case 4:var x=l.stateNode.containerInfo,I=tr(e);nr(e,I,x);break;default:throw Error(a(161))}}catch(q){xe(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wf(e,t.alternate,t),t=t.sibling}function ei(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cn(4,t,t.return),ei(t);break;case 1:zt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Jf(t,t.return,l),ei(t);break;case 27:Ul(t.stateNode);case 26:case 5:zt(t,t.return),ei(t);break;case 22:t.memoizedState===null&&ei(t);break;case 30:ei(t);break;default:ei(t)}e=e.sibling}}function nn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,f=e,p=t,T=p.flags;switch(p.tag){case 0:case 11:case 15:nn(f,p,l),Al(4,p);break;case 1:if(nn(f,p,l),s=p,f=s.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){xe(s,s.return,I)}if(s=p,f=s.updateQueue,f!==null){var _=s.stateNode;try{var x=f.shared.hiddenCallbacks;if(x!==null)for(f.shared.hiddenCallbacks=null,f=0;f<x.length;f++)Lc(x[f],_)}catch(I){xe(s,s.return,I)}}l&&T&64&&Ff(p),xl(p,p.return);break;case 27:Qf(p);case 26:case 5:nn(f,p,l),l&&s===null&&T&4&&Xf(p),xl(p,p.return);break;case 12:nn(f,p,l);break;case 31:nn(f,p,l),l&&T&4&&ed(f,p);break;case 13:nn(f,p,l),l&&T&4&&td(f,p);break;case 22:p.memoizedState===null&&nn(f,p,l),xl(p,p.return);break;case 30:break;default:nn(f,p,l)}t=t.sibling}}function lr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&fl(l))}function or(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fl(e))}function Ht(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ld(e,t,l,s),t=t.sibling}function ld(e,t,l,s){var f=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,l,s),f&2048&&Al(9,t);break;case 1:Ht(e,t,l,s);break;case 3:Ht(e,t,l,s),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fl(e)));break;case 12:if(f&2048){Ht(e,t,l,s),e=t.stateNode;try{var p=t.memoizedProps,T=p.id,_=p.onPostCommit;typeof _=="function"&&_(T,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){xe(t,t.return,x)}}else Ht(e,t,l,s);break;case 31:Ht(e,t,l,s);break;case 13:Ht(e,t,l,s);break;case 23:break;case 22:p=t.stateNode,T=t.alternate,t.memoizedState!==null?p._visibility&2?Ht(e,t,l,s):Ml(e,t):p._visibility&2?Ht(e,t,l,s):(p._visibility|=2,Ni(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),f&2048&&lr(T,t);break;case 24:Ht(e,t,l,s),f&2048&&or(t.alternate,t);break;default:Ht(e,t,l,s)}}function Ni(e,t,l,s,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var p=e,T=t,_=l,x=s,I=T.flags;switch(T.tag){case 0:case 11:case 15:Ni(p,T,_,x,f),Al(8,T);break;case 23:break;case 22:var q=T.stateNode;T.memoizedState!==null?q._visibility&2?Ni(p,T,_,x,f):Ml(p,T):(q._visibility|=2,Ni(p,T,_,x,f)),f&&I&2048&&lr(T.alternate,T);break;case 24:Ni(p,T,_,x,f),f&&I&2048&&or(T.alternate,T);break;default:Ni(p,T,_,x,f)}t=t.sibling}}function Ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,f=s.flags;switch(s.tag){case 22:Ml(l,s),f&2048&&lr(s.alternate,s);break;case 24:Ml(l,s),f&2048&&or(s.alternate,s);break;default:Ml(l,s)}t=t.sibling}}var wl=8192;function Ii(e,t,l){if(e.subtreeFlags&wl)for(e=e.child;e!==null;)od(e,t,l),e=e.sibling}function od(e,t,l){switch(e.tag){case 26:Ii(e,t,l),e.flags&wl&&e.memoizedState!==null&&Yg(l,kt,e.memoizedState,e.memoizedProps);break;case 5:Ii(e,t,l);break;case 3:case 4:var s=kt;kt=$o(e.stateNode.containerInfo),Ii(e,t,l),kt=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=wl,wl=16777216,Ii(e,t,l),wl=s):Ii(e,t,l));break;default:Ii(e,t,l)}}function ad(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ke=s,rd(s,e)}ad(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sd(e),e=e.sibling}function sd(e){switch(e.tag){case 0:case 11:case 15:Rl(e),e.flags&2048&&Cn(9,e,e.return);break;case 3:Rl(e);break;case 12:Rl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vo(e)):Rl(e);break;default:Rl(e)}}function Vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ke=s,rd(s,e)}ad(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cn(8,t,t.return),Vo(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Vo(t));break;default:Vo(t)}e=e.sibling}}function rd(e,t){for(;Ke!==null;){var l=Ke;switch(l.tag){case 0:case 11:case 15:Cn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:fl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Ke=s;else e:for(l=e;Ke!==null;){s=Ke;var f=s.sibling,p=s.return;if($f(s),s===l){Ke=null;break e}if(f!==null){f.return=p,Ke=f;break e}Ke=p}}}var og={getCacheForType:function(e){var t=We(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Pe).controller.signal}},ag=typeof WeakMap=="function"?WeakMap:Map,Ce=0,De=null,pe=null,he=0,Ae=0,Et=null,_n=!1,Di=!1,ar=!1,ln=0,qe=0,An=0,ti=0,sr=0,St=0,bi=0,Nl=null,ft=null,rr=!1,zo=0,ud=0,Bo=1/0,Po=null,xn=null,Je=0,Mn=null,Li=null,on=0,ur=0,cr=null,cd=null,Il=0,fr=null;function Ct(){return(Ce&2)!==0&&he!==0?he&-he:k.T!==null?yr():xu()}function fd(){if(St===0)if((he&536870912)===0||ye){var e=Ql;Ql<<=1,(Ql&3932160)===0&&(Ql=262144),St=e}else St=536870912;return e=vt.current,e!==null&&(e.flags|=32),St}function dt(e,t,l){(e===De&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(Ui(e,0),wn(e,he,St,!1)),Wi(e,l),((Ce&2)===0||e!==De)&&(e===De&&((Ce&2)===0&&(ti|=l),qe===4&&wn(e,he,St,!1)),Bt(e))}function dd(e,t,l){if((Ce&6)!==0)throw Error(a(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Zi(e,t),f=s?ug(e,t):pr(e,t,!0),p=s;do{if(f===0){Di&&!s&&wn(e,t,0,!1);break}else{if(l=e.current.alternate,p&&!sg(l)){f=pr(e,t,!1),p=!1;continue}if(f===2){if(p=t,e.errorRecoveryDisabledLanes&p)var T=0;else T=e.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){t=T;e:{var _=e;f=Nl;var x=_.current.memoizedState.isDehydrated;if(x&&(Ui(_,T).flags|=256),T=pr(_,T,!1),T!==2){if(ar&&!x){_.errorRecoveryDisabledLanes|=p,ti|=p,f=4;break e}
vendor: 23,619 bytes, lines 48-49
48p=ft,ft=f,p!==null&&(ft===null?ft=p:ft.push.apply(ft,p))}f=T}if(p=!1,f!==2)continue}}if(f===1){Ui(e,0),wn(e,t,0,!0);break}e:{switch(s=e,p=f,p){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:wn(s,t,St,!_n);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(f=zo+300-pt(),10<f)){if(wn(s,t,St,!_n),Wl(s,0,!0)!==0)break e;on=t,s.timeoutHandle=Od(pd.bind(null,s,l,ft,Po,rr,t,St,ti,bi,_n,p,"Throttled",-0,0),f);break e}pd(s,l,ft,Po,rr,t,St,ti,bi,_n,p,null,-0,0)}}break}while(!0);Bt(e)}function pd(e,t,l,s,f,p,T,_,x,I,q,V,b,U){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ot},od(t,p,V);var $=(p&62914560)===p?zo-pt():(p&4194048)===p?ud-pt():0;if($=Fg(V,$),$!==null){on=p,e.cancelPendingCommit=$(Sd.bind(null,e,t,p,l,s,f,T,_,x,q,V,null,b,U)),wn(e,p,T,!I);return}}Sd(e,t,p,l,s,f,T,_,x)}function sg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var f=l[s],p=f.getSnapshot;f=f.value;try{if(!gt(p(),f))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 wn(e,t,l,s){t&=~sr,t&=~ti,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var f=t;0<f;){var p=31-ht(f),T=1<<p;s[p]=-1,f&=~T}l!==0&&Cu(e,l,t)}function Oo(){return(Ce&6)===0?(Dl(0),!1):!0}function dr(){if(pe!==null){if(Ae===0)var e=pe.return;else e=pe,Xt=Jn=null,Rs(e),Ai=null,pl=0,e=pe;for(;e!==null;)Yf(e.alternate,e),e=e.return;pe=null}}function Ui(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,wg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),on=0,dr(),De=e,pe=l=Ft(e.current,null),he=t,Ae=0,Et=null,_n=!1,Di=Zi(e,t),ar=!1,bi=St=sr=ti=An=qe=0,ft=Nl=null,rr=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var f=31-ht(s),p=1<<f;t|=e[f],s&=~p}return ln=t,uo(),l}function md(e,t){re=null,k.H=Sl,t===_i||t===vo?(t=Nc(),Ae=3):t===gs?(t=Nc(),Ae=4):Ae=t===Ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,pe===null&&(qe=1,bo(e,Mt(t,e.current)))}function hd(){var e=vt.current;return e===null?!0:(he&4194048)===he?It===null:(he&62914560)===he||(he&536870912)!==0?e===It:!1}function gd(){var e=k.H;return k.H=Sl,e===null?Sl:e}function yd(){var e=k.A;return k.A=og,e}function Yo(){qe=4,_n||(he&4194048)!==he&&vt.current!==null||(Di=!0),(An&134217727)===0&&(ti&134217727)===0||De===null||wn(De,he,St,!1)}function pr(e,t,l){var s=Ce;Ce|=2;var f=gd(),p=yd();(De!==e||he!==t)&&(Po=null,Ui(e,t)),t=!1;var T=qe;e:do try{if(Ae!==0&&pe!==null){var _=pe,x=Et;switch(Ae){case 8:dr(),T=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var I=Ae;if(Ae=0,Et=null,ki(e,_,x,I),l&&Di){T=0;break e}break;default:I=Ae,Ae=0,Et=null,ki(e,_,x,I)}}rg(),T=qe;break}catch(q){md(e,q)}while(!0);return t&&e.shellSuspendCounter++,Xt=Jn=null,Ce=s,k.H=f,k.A=p,pe===null&&(De=null,he=0,uo()),T}function rg(){for(;pe!==null;)vd(pe)}function ug(e,t){var l=Ce;Ce|=2;var s=gd(),f=yd();De!==e||he!==t?(Po=null,Bo=pt()+500,Ui(e,t)):Di=Zi(e,t);e:do try{if(Ae!==0&&pe!==null){t=pe;var p=Et;t:switch(Ae){case 1:Ae=0,Et=null,ki(e,t,p,1);break;case 2:case 9:if(wc(p)){Ae=0,Et=null,Td(t);break}t=function(){Ae!==2&&Ae!==9||De!==e||(Ae=7),Bt(e)},p.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:wc(p)?(Ae=0,Et=null,Td(t)):(Ae=0,Et=null,ki(e,t,p,7));break;case 5:var T=null;switch(pe.tag){case 26:T=pe.memoizedState;case 5:case 27:var _=pe;if(T?lp(T):_.stateNode.complete){Ae=0,Et=null;var x=_.sibling;if(x!==null)pe=x;else{var I=_.return;I!==null?(pe=I,Fo(I)):pe=null}break t}}Ae=0,Et=null,ki(e,t,p,5);break;case 6:Ae=0,Et=null,ki(e,t,p,6);break;case 8:dr(),qe=6;break e;default:throw Error(a(462))}}cg();break}catch(q){md(e,q)}while(!0);return Xt=Jn=null,k.H=s,k.A=f,Ce=l,pe!==null?0:(De=null,he=0,uo(),qe)}function cg(){for(;pe!==null&&!Lh();)vd(pe)}function vd(e){var t=Pf(e.alternate,e,ln);e.memoizedProps=e.pendingProps,t===null?Fo(e):pe=t}function Td(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Hf(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=Hf(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Rs(t);default:Yf(l,t),t=pe=gc(t,ln),t=Pf(l,t,ln)}e.memoizedProps=e.pendingProps,t===null?Fo(e):pe=t}function ki(e,t,l,s){Xt=Jn=null,Rs(t),Ai=null,pl=0;var f=t.return;try{if($0(e,f,t,l,he)){qe=1,bo(e,Mt(l,e.current)),pe=null;return}}catch(p){if(f!==null)throw pe=f,p;qe=1,bo(e,Mt(l,e.current)),pe=null;return}t.flags&32768?(ye||s===1?e=!0:Di||(he&536870912)!==0?e=!1:(_n=e=!0,(s===2||s===9||s===3||s===6)&&(s=vt.current,s!==null&&s.tag===13&&(s.flags|=16384))),Ed(t,e)):Fo(t)}function Fo(e){var t=e;do{if((t.flags&32768)!==0){Ed(t,_n);return}e=t.return;var l=tg(t.alternate,t,ln);if(l!==null){pe=l;return}if(t=t.sibling,t!==null){pe=t;return}pe=t=e}while(t!==null);qe===0&&(qe=5)}function Ed(e,t){do{var l=ng(e.alternate,e);if(l!==null){l.flags&=32767,pe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){pe=e;return}pe=e=l}while(e!==null);qe=6,pe=null}function Sd(e,t,l,s,f,p,T,_,x){e.cancelPendingCommit=null;do Jo();while(Je!==0);if((Ce&6)!==0)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(p=t.lanes|t.childLanes,p|=ts,Oh(e,l,p,T,_,x),e===De&&(pe=De=null,he=0),Li=t,Mn=e,on=l,ur=p,cr=f,cd=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mg(Xl,function(){return Md(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=k.T,k.T=null,f=X.p,X.p=2,T=Ce,Ce|=4;try{ig(e,t,l)}finally{Ce=T,X.p=f,k.T=s}}Je=1,Cd(),_d(),Ad()}}function Cd(){if(Je===1){Je=0;var e=Mn,t=Li,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var s=X.p;X.p=2;var f=Ce;Ce|=4;try{nd(t,e);var p=xr,T=sc(e.containerInfo),_=p.focusedElem,x=p.selectionRange;if(T!==_&&_&&_.ownerDocument&&ac(_.ownerDocument.documentElement,_)){if(x!==null&&Za(_)){var I=x.start,q=x.end;if(q===void 0&&(q=I),"selectionStart"in _)_.selectionStart=I,_.selectionEnd=Math.min(q,_.value.length);else{var V=_.ownerDocument||document,b=V&&V.defaultView||window;if(b.getSelection){var U=b.getSelection(),$=_.textContent.length,ie=Math.min(x.start,$),Ne=x.end===void 0?ie:Math.min(x.end,$);!U.extend&&ie>Ne&&(T=Ne,Ne=ie,ie=T);var R=oc(_,ie),M=oc(_,Ne);if(R&&M&&(U.rangeCount!==1||U.anchorNode!==R.node||U.anchorOffset!==R.offset||U.focusNode!==M.node||U.focusOffset!==M.offset)){var N=V.createRange();N.setStart(R.node,R.offset),U.removeAllRanges(),ie>Ne?(U.addRange(N),U.extend(M.node,M.offset)):(N.setEnd(M.node,M.offset),U.addRange(N))}}}}for(V=[],U=_;U=U.parentNode;)U.nodeType===1&&V.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var G=V[_];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}la=!!Ar,xr=Ar=null}finally{Ce=f,X.p=s,k.T=l}}e.current=t,Je=2}}function _d(){if(Je===2){Je=0;var e=Mn,t=Li,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var s=X.p;X.p=2;var f=Ce;Ce|=4;try{Wf(e,t.alternate,t)}finally{Ce=f,X.p=s,k.T=l}}Je=3}}function Ad(){if(Je===4||Je===3){Je=0,Uh();var e=Mn,t=Li,l=on,s=cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Je=5:(Je=0,Li=Mn=null,xd(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(xn=null),Da(l),t=t.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Qi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=k.T,f=X.p,X.p=2,k.T=null;try{for(var p=e.onRecoverableError,T=0;T<s.length;T++){var _=s[T];p(_.value,{componentStack:_.stack})}}finally{k.T=t,X.p=f}}(on&3)!==0&&Jo(),Bt(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===fr?Il++:(Il=0,fr=e):Il=0,Dl(0)}}function xd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fl(t)))}function Jo(){return Cd(),_d(),Ad(),Md()}function Md(){if(Je!==5)return!1;var e=Mn,t=ur;ur=0;var l=Da(on),s=k.T,f=X.p;try{X.p=32>l?32:l,k.T=null,l=cr,cr=null;var p=Mn,T=on;if(Je=0,Li=Mn=null,on=0,(Ce&6)!==0)throw Error(a(331));var _=Ce;if(Ce|=4,sd(p.current),ld(p,p.current,T,l),Ce=_,Dl(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Qi,p)}catch{}return!0}finally{X.p=f,k.T=s,xd(e,t)}}function wd(e,t,l){t=Mt(l,t),t=Os(e.stateNode,t,2),e=Tn(e,t,2),e!==null&&(Wi(e,2),Bt(e))}function xe(e,t,l){if(e.tag===3)wd(e,e,l);else for(;t!==null;){if(t.tag===3){wd(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(xn===null||!xn.has(s))){e=Mt(l,e),l=Rf(2),s=Tn(t,l,2),s!==null&&(Nf(l,s,t,e),Wi(s,2),Bt(s));break}}t=t.return}}function mr(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new ag;var f=new Set;s.set(t,f)}else f=s.get(t),f===void 0&&(f=new Set,s.set(t,f));f.has(l)||(ar=!0,f.add(l),e=fg.bind(null,e,t,l),t.then(e,e))}function fg(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,De===e&&(he&l)===l&&(qe===4||qe===3&&(he&62914560)===he&&300>pt()-zo?(Ce&2)===0&&Ui(e,0):sr|=l,bi===he&&(bi=0)),Bt(e)}function Rd(e,t){t===0&&(t=Su()),e=On(e,t),e!==null&&(Wi(e,t),Bt(e))}function dg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rd(e,l)}function pg(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(t),Rd(e,l)}function mg(e,t){return wa(e,t)}var Xo=null,Hi=null,hr=!1,Ko=!1,gr=!1,Rn=0;function Bt(e){e!==Hi&&e.next===null&&(Hi===null?Xo=Hi=e:Hi=Hi.next=e),Ko=!0,hr||(hr=!0,gg())}function Dl(e,t){if(!gr&&Ko){gr=!0;do for(var l=!1,s=Xo;s!==null;){if(e!==0){var f=s.pendingLanes;if(f===0)var p=0;else{var T=s.suspendedLanes,_=s.pingedLanes;p=(1<<31-ht(42|e)+1)-1,p&=f&~(T&~_),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,bd(s,p))}else p=he,p=Wl(s,s===De?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Zi(s,p)||(l=!0,bd(s,p));s=s.next}while(l);gr=!1}}function hg(){Nd()}function Nd(){Ko=hr=!1;var e=0;Rn!==0&&Mg()&&(e=Rn);for(var t=pt(),l=null,s=Xo;s!==null;){var f=s.next,p=Id(s,t);p===0?(s.next=null,l===null?Xo=f:l.next=f,f===null&&(Hi=l)):(l=s,(e!==0||(p&3)!==0)&&(Ko=!0)),s=f}Je!==0&&Je!==5||Dl(e),Rn!==0&&(Rn=0)}function Id(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var T=31-ht(p),_=1<<T,x=f[T];x===-1?((_&l)===0||(_&s)!==0)&&(f[T]=Ph(_,t)):x<=t&&(e.expiredLanes|=_),p&=~_}if(t=De,l=he,l=Wl(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Ra(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Zi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Ra(s),Da(l)){case 2:case 8:l=Tu;break;case 32:l=Xl;break;case 268435456:l=Eu;break;default:l=Xl}return s=Dd.bind(null,e),l=wa(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Ra(s),e.callbackPriority=2,e.callbackNode=null,2}function Dd(e,t){if(Je!==0&&Je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Jo()&&e.callbackNode!==l)return null;var s=he;return s=Wl(e,e===De?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(dd(e,s,t),Id(e,pt()),e.callbackNode!=null&&e.callbackNode===l?Dd.bind(null,e):null)}function bd(e,t){if(Jo())return null;dd(e,t,!0)}function gg(){Rg(function(){(Ce&6)!==0?wa(vu,hg):Nd()})}function yr(){if(Rn===0){var e=Si;e===0&&(e=Kl,Kl<<=1,(Kl&261888)===0&&(Kl=256)),Rn=e}return Rn}function Ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:to(""+e)}function Ud(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function yg(e,t,l,s,f){if(t==="submit"&&l&&l.stateNode===f){var p=Ld((f[at]||null).action),T=s.submitter;T&&(t=(t=T[at]||null)?Ld(t.formAction):T.getAttribute("formAction"),t!==null&&(p=t,T=null));var _=new oo("action","action",null,s,f);e.push({event:_,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Rn!==0){var x=T?Ud(f,T):new FormData(f);qs(l,{pending:!0,data:x,method:f.method,action:p},null,x)}}else typeof p=="function"&&(_.preventDefault(),x=T?Ud(f,T):new FormData(f),qs(l,{pending:!0,data:x,method:f.method,action:p},p,x))},currentTarget:f}]})}}for(var vr=0;vr<es.length;vr++){var Tr=es[vr],vg=Tr.toLowerCase(),Tg=Tr[0].toUpperCase()+Tr.slice(1);Ut(vg,"on"+Tg)}Ut(cc,"onAnimationEnd"),Ut(fc,"onAnimationIteration"),Ut(dc,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(k0,"onTransitionRun"),Ut(H0,"onTransitionStart"),Ut(q0,"onTransitionCancel"),Ut(pc,"onTransitionEnd"),si("onMouseEnter",["mouseout","mouseover"]),si("onMouseLeave",["mouseout","mouseover"]),si("onPointerEnter",["pointerout","pointerover"]),si("onPointerLeave",["pointerout","pointerover"]),Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="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(" "),Eg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bl));function kd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],f=s.event;s=s.listeners;e:{var p=void 0;if(t)for(var T=s.length-1;0<=T;T--){var _=s[T],x=_.instance,I=_.currentTarget;if(_=_.listener,x!==p&&f.isPropagationStopped())break e;p=_,f.currentTarget=I;try{p(f)}catch(q){ro(q)}f.currentTarget=null,p=x}else for(T=0;T<s.length;T++){if(_=s[T],x=_.instance,I=_.currentTarget,_=_.listener,x!==p&&f.isPropagationStopped())break e;p=_,f.currentTarget=I;try{p(f)}catch(q){ro(q)}f.currentTarget=null,p=x}}}}function me(e,t){var l=t[ba];l===void 0&&(l=t[ba]=new Set);var s=e+"__bubble";l.has(s)||(Hd(t,e,2,!1),l.add(s))}function Er(e,t,l){var s=0;t&&(s|=4),Hd(l,e,s,t)}var Qo="_reactListening"+Math.random().toString(36).slice(2);function Sr(e){if(!e[Qo]){e[Qo]=!0,Ru.forEach(function(l){l!=="selectionchange"&&(Eg.has(l)||Er(l,!1,e),Er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qo]||(t[Qo]=!0,Er("selectionchange",!1,t))}}function Hd(e,t,l,s){switch(fp(t)){case 2:var f=Kg;break;case 8:f=Qg;break;default:f=Hr}l=f.bind(null,t,l,e),f=void 0,!Ba||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),s?f!==void 0?e.addEventListener(t,l,{capture:!0,passive:f}):e.addEventListener(t,l,!0):f!==void 0?e.addEventListener(t,l,{passive:f}):e.addEventListener(t,l,!1)}function Cr(e,t,l,s,f){var p=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var T=s.tag;if(T===3||T===4){var _=s.stateNode.containerInfo;if(_===f)break;if(T===4)for(T=s.return;T!==null;){var x=T.tag;if((x===3||x===4)&&T.stateNode.containerInfo===f)return;T=T.return}for(;_!==null;){if(T=li(_),T===null)return;if(x=T.tag,x===5||x===6||x===26||x===27){s=p=T;continue e}_=_.parentNode}}s=s.return}zu(function(){var I=p,q=Va(l),V=[];e:{var b=mc.get(e);if(b!==void 0){var U=oo,$=e;switch(e){case"keypress":if(io(l)===0)break e;case"keydown":case"keyup":U=p0;break;case"focusin":$="focus",U=Fa;break;case"focusout":$="blur",U=Fa;break;case"beforeblur":case"afterblur":U=Fa;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ou;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=t0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=g0;break;case cc:case fc:case dc:U=l0;break;case pc:U=v0;break;case"scroll":case"scrollend":U=jh;break;case"wheel":U=E0;break;case"copy":case"cut":case"paste":U=a0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Fu;break;case"toggle":case"beforetoggle":U=C0}var ie=(t&4)!==0,Ne=!ie&&(e==="scroll"||e==="scrollend"),R=ie?b!==null?b+"Capture":null:b;ie=[];for(var M=I,N;M!==null;){var G=M;if(N=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||N===null||R===null||(G=el(M,R),G!=null&&ie.push(Ll(M,G,N))),Ne)break;M=M.return}0<ie.length&&(b=new U(b,$,null,l,q),V.push({event:b,listeners:ie}))}}if((t&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",b&&l!==Ga&&($=l.relatedTarget||l.fromElement)&&(li($)||$[ii]))break e;if((U||b)&&(b=q.window===q?q:(b=q.ownerDocument)?b.defaultView||b.parentWindow:window,U?($=l.relatedTarget||l.toElement,U=I,$=$?li($):null,$!==null&&(Ne=d($),ie=$.tag,$!==Ne||ie!==5&&ie!==27&&ie!==6)&&($=null)):(U=null,$=I),U!==$)){if(ie=Ou,G="onMouseLeave",R="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Fu,G="onPointerLeave",R="onPointerEnter",M="pointer"),Ne=U==null?b:ji(U),N=$==null?b:ji($),b=new ie(G,M+"leave",U,l,q),b.target=Ne,b.relatedTarget=N,G=null,li(q)===I&&(ie=new ie(R,M+"enter",$,l,q),ie.target=N,ie.relatedTarget=Ne,G=ie),Ne=G,U&&$)t:{for(ie=Sg,R=U,M=$,N=0,G=R;G;G=ie(G))N++;G=0;for(var ne=M;ne;ne=ie(ne))G++;for(;0<N-G;)R=ie(R),N--;for(;0<G-N;)M=ie(M),G--;for(;N--;){if(R===M||M!==null&&R===M.alternate){ie=R;break t}R=ie(R),M=ie(M)}ie=null}else ie=null;U!==null&&qd(V,b,U,ie,!1),$!==null&&Ne!==null&&qd(V,Ne,$,ie,!0)}}e:{if(b=I?ji(I):window,U=b.nodeName&&b.nodeName.toLowerCase(),U==="select"||U==="input"&&b.type==="file")var Te=ju;else if(Wu(b))if(ec)Te=b0;else{Te=I0;var ee=N0}else U=b.nodeName,!U||U.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?I&&qa(I.elementType)&&(Te=ju):Te=D0;if(Te&&(Te=Te(e,I))){$u(V,Te,l,q);break e}ee&&ee(e,b,I),e==="focusout"&&I&&b.type==="number"&&I.memoizedProps.value!=null&&Ha(b,"number",b.value)}switch(ee=I?ji(I):window,e){case"focusin":(Wu(ee)||ee.contentEditable==="true")&&(pi=ee,Wa=I,rl=null);break;case"focusout":rl=Wa=pi=null;break;case"mousedown":$a=!0;break;case"contextmenu":case"mouseup":case"dragend":$a=!1,rc(V,l,q);break;case"selectionchange":if(U0)break;case"keydown":case"keyup":rc(V,l,q)}var fe;if(Xa)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 di?Qu(e,l)&&(ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(Ju&&l.locale!=="ko"&&(di||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&di&&(fe=Bu()):(dn=q,Pa="value"in dn?dn.value:dn.textContent,di=!0)),ee=Zo(I,ge),0<ee.length&&(ge=new Yu(ge,e,null,l,q),V.push({event:ge,listeners:ee}),fe?ge.data=fe:(fe=Zu(l),fe!==null&&(ge.data=fe)))),(fe=A0?x0(e,l):M0(e,l))&&(ge=Zo(I,"onBeforeInput"),0<ge.length&&(ee=new Yu("onBeforeInput","beforeinput",null,l,q),V.push({event:ee,listeners:ge}),ee.data=fe)),yg(V,e,I,l,q)}kd(V,t)})}function Ll(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zo(e,t){for(var l=t+"Capture",s=[];e!==null;){var f=e,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=el(e,l),f!=null&&s.unshift(Ll(e,f,p)),f=el(e,t),f!=null&&s.push(Ll(e,f,p))),e.tag===3)return s;e=e.return}return[]}function Sg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qd(e,t,l,s,f){for(var p=t._reactName,T=[];l!==null&&l!==s;){var _=l,x=_.alternate,I=_.stateNode;if(_=_.tag,x!==null&&x===s)break;_!==5&&_!==26&&_!==27||I===null||(x=I,f?(I=el(l,p),I!=null&&T.unshift(Ll(l,I,x))):f||(I=el(l,p),I!=null&&T.push(Ll(l,I,x)))),l=l.return}T.length!==0&&e.push({event:t,listeners:T})}var Cg=/\r\n?/g,_g=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(Cg,` 49`).replace(_g,"")}function Vd(e,t){return t=Gd(t),Gd(e)===t}function Re(e,t,l,s,f,p){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ui(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ui(e,""+s);break;case"className":jl(e,"class",s);break;case"tabIndex":jl(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":jl(e,l,s);break;case"style":Gu(e,s,p);break;case"data":if(t!=="object"){jl(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=to(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",f.name,f,null),Re(e,t,"formEncType",f.formEncType,f,null),Re(e,t,"formMethod",f.formMethod,f,null),Re(e,t,"formTarget",f.formTarget,f,null)):(Re(e,t,"encType",f.encType,f,null),Re(e,t,"method",f.method,f,null),Re(e,t,"target",f.target,f,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=to(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=Ot);break;case"onScroll":s!=null&&me("scroll",e);break;case"onScrollEnd":s!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=to(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":me("beforetoggle",e),me("toggle",e),$l(e,"popover",s);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":$l(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Wh.get(l)||l,$l(e,l,s))}}function _r(e,t,l,s,f,p){switch(l){case"style":Gu(e,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof s=="string"?ui(e,s):(typeof s=="number"||typeof s=="bigint")&&ui(e,""+s);break;case"onScroll":s!=null&&me("scroll",e);break;case"onScrollEnd":s!=null&&me("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nu.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),t=l.slice(2,f?l.length-7:void 0),p=e[at]||null,p=p!=null?p[l]:null,typeof p=="function"&&e.removeEventListener(t,p,f),typeof s=="function")){typeof p!="function"&&p!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,f);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):$l(e,l,s)}}}function je(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var s=!1,f=!1,p;for(p in l)if(l.hasOwnProperty(p)){var T=l[p];if(T!=null)switch(p){case"src":s=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Re(e,t,p,T,l,null)}}f&&Re(e,t,"srcSet",l.srcSet,l,null),s&&Re(e,t,"src",l.src,l,null);return;case"input":me("invalid",e);var _=p=T=f=null,x=null,I=null;for(s in l)if(l.hasOwnProperty(s)){var q=l[s];if(q!=null)switch(s){case"name":f=q;break;case"type":T=q;break;case"checked":x=q;break;case"defaultChecked":I=q;break;case"value":p=q;break;case"defaultValue":_=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(a(137,t));break;default:Re(e,t,s,q,l,null)}}Uu(e,p,_,x,I,T,f,!1);return;case"select":me("invalid",e),s=T=p=null;for(f in l)if(l.hasOwnProperty(f)&&(_=l[f],_!=null))switch(f){case"value":p=_;break;case"defaultValue":T=_;break;case"multiple":s=_;default:Re(e,t,f,_,l,null)}t=p,l=T,e.multiple=!!s,t!=null?ri(e,!!s,t,!1):l!=null&&ri(e,!!s,l,!0);return;case"textarea":me("invalid",e),p=f=s=null;for(T in l)if(l.hasOwnProperty(T)&&(_=l[T],_!=null))switch(T){case"value":s=_;break;case"defaultValue":f=_;break;case"children":p=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(a(91));break;default:Re(e,t,T,_,l,null)}Hu(e,s,f,p);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(s=l[x],s!=null))switch(x){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Re(e,t,x,s,l,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(s=0;s<bl.length;s++)me(bl[s],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(s=l[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Re(e,t,I,s,l,null)}return;default:if(qa(t)){for(q in l)l.hasOwnProperty(q)&&(s=l[q],s!==void 0&&_r(e,t,q,s,l,void 0));return}}for(_ in l)l.hasOwnProperty(_)&&(s=l[_],s!=null&&Re(e,t,_,s,l,null))}
vendor: 5,900 bytes, line 49
49function Ag(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,T=null,_=null,x=null,I=null,q=null;for(U in l){var V=l[U];if(l.hasOwnProperty(U)&&V!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":x=V;default:s.hasOwnProperty(U)||Re(e,t,U,null,s,V)}}for(var b in s){var U=s[b];if(V=l[b],s.hasOwnProperty(b)&&(U!=null||V!=null))switch(b){case"type":p=U;break;case"name":f=U;break;case"checked":I=U;break;case"defaultChecked":q=U;break;case"value":T=U;break;case"defaultValue":_=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(a(137,t));break;default:U!==V&&Re(e,t,b,U,s,V)}}ka(e,T,_,x,I,q,p,f);return;case"select":U=T=_=b=null;for(p in l)if(x=l[p],l.hasOwnProperty(p)&&x!=null)switch(p){case"value":break;case"multiple":U=x;default:s.hasOwnProperty(p)||Re(e,t,p,null,s,x)}for(f in s)if(p=s[f],x=l[f],s.hasOwnProperty(f)&&(p!=null||x!=null))switch(f){case"value":b=p;break;case"defaultValue":_=p;break;case"multiple":T=p;default:p!==x&&Re(e,t,f,p,s,x)}t=_,l=T,s=U,b!=null?ri(e,!!l,b,!1):!!s!=!!l&&(t!=null?ri(e,!!l,t,!0):ri(e,!!l,l?[]:"",!1));return;case"textarea":U=b=null;for(_ in l)if(f=l[_],l.hasOwnProperty(_)&&f!=null&&!s.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Re(e,t,_,null,s,f)}for(T in s)if(f=s[T],p=l[T],s.hasOwnProperty(T)&&(f!=null||p!=null))switch(T){case"value":b=f;break;case"defaultValue":U=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==p&&Re(e,t,T,f,s,p)}ku(e,b,U);return;case"option":for(var $ in l)if(b=l[$],l.hasOwnProperty($)&&b!=null&&!s.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Re(e,t,$,null,s,b)}for(x in s)if(b=s[x],U=l[x],s.hasOwnProperty(x)&&b!==U&&(b!=null||U!=null))switch(x){case"selected":e.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Re(e,t,x,b,s,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ie in l)b=l[ie],l.hasOwnProperty(ie)&&b!=null&&!s.hasOwnProperty(ie)&&Re(e,t,ie,null,s,b);for(I in s)if(b=s[I],U=l[I],s.hasOwnProperty(I)&&b!==U&&(b!=null||U!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(a(137,t));break;default:Re(e,t,I,b,s,U)}return;default:if(qa(t)){for(var Ne in l)b=l[Ne],l.hasOwnProperty(Ne)&&b!==void 0&&!s.hasOwnProperty(Ne)&&_r(e,t,Ne,void 0,s,b);for(q in s)b=s[q],U=l[q],!s.hasOwnProperty(q)||b===U||b===void 0&&U===void 0||_r(e,t,q,b,s,U);return}}for(var R in l)b=l[R],l.hasOwnProperty(R)&&b!=null&&!s.hasOwnProperty(R)&&Re(e,t,R,null,s,b);for(V in s)b=s[V],U=l[V],!s.hasOwnProperty(V)||b===U||b==null&&U==null||Re(e,t,V,b,s,U)}function zd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var f=l[s],p=f.transferSize,T=f.initiatorType,_=f.duration;if(p&&_&&zd(T)){for(T=0,_=f.responseEnd,s+=1;s<l.length;s++){var x=l[s],I=x.startTime;if(I>_)break;var q=x.transferSize,V=x.initiatorType;q&&zd(V)&&(x=x.responseEnd,T+=q*(x<_?1:(_-I)/(x-I)))}if(--s,t+=8*(p+T)/(f.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ar=null,xr=null;function Wo(e){return e.nodeType===9?e:e.ownerDocument}function Bd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Pd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wr=null;function Mg(){var e=window.event;return e&&e.type==="popstate"?e===wr?!1:(wr=e,!0):(wr=null,!1)}var Od=typeof setTimeout=="function"?setTimeout:void 0,wg=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,Rg=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(Ng)}:Od;function Ng(e){setTimeout(function(){throw e})}function Nn(e){return e==="head"}function Fd(e,t){var l=t,s=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(f),zi(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Ul(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ul(l);for(var p=l.firstChild;p;){var T=p.nextSibling,_=p.nodeName;p[$i]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=T}}else l==="body"&&Ul(e.ownerDocument.body);l=f}while(l);zi(t)}function Jd(e,t){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function Rr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rr(l),La(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ig(e,t,l,s){for(;
vendor: 10,810 bytes, line 49
49e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[$i])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=Dt(e.nextSibling),e===null)break}return null}function Dg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Dt(e.nextSibling),e===null))return null;return e}function Xd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Dt(e.nextSibling),e===null))return null;return e}function Nr(e){return e.data==="$?"||e.data==="$~"}function Ir(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Dt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Dr=null;function Kd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Dt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Zd(e,t,l){switch(t=Wo(l),e){case"html":if(e=t.documentElement,!e)throw Error(a(452));return e;case"head":if(e=t.head,!e)throw Error(a(453));return e;case"body":if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function Ul(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);La(e)}var bt=new Map,Wd=new Set;function $o(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var an=X.d;X.d={f:Lg,r:Ug,D:kg,C:Hg,L:qg,m:Gg,X:zg,S:Vg,M:Bg};function Lg(){var e=an.f(),t=Oo();return e||t}function Ug(e){var t=oi(e);t!==null&&t.tag===5&&t.type==="form"?mf(t):an.r(e)}var qi=typeof document>"u"?null:document;function $d(e,t,l){var s=qi;if(s&&typeof t=="string"&&t){var f=At(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),Wd.has(f)||(Wd.add(f),e={rel:e,crossOrigin:l,href:t},s.querySelector(f)===null&&(t=s.createElement("link"),je(t,"link",e),Xe(t),s.head.appendChild(t)))}}function kg(e){an.D(e),$d("dns-prefetch",e,null)}function Hg(e,t){an.C(e,t),$d("preconnect",e,t)}function qg(e,t,l){an.L(e,t,l);var s=qi;if(s&&e&&t){var f='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+At(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+At(l.imageSizes)+'"]')):f+='[href="'+At(e)+'"]';var p=f;switch(t){case"style":p=Gi(e);break;case"script":p=Vi(e)}bt.has(p)||(e=S({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),bt.set(p,e),s.querySelector(f)!==null||t==="style"&&s.querySelector(kl(p))||t==="script"&&s.querySelector(Hl(p))||(t=s.createElement("link"),je(t,"link",e),Xe(t),s.head.appendChild(t)))}}function Gg(e,t){an.m(e,t);var l=qi;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+At(s)+'"][href="'+At(e)+'"]',p=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Vi(e)}if(!bt.has(p)&&(e=S({rel:"modulepreload",href:e},t),bt.set(p,e),l.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hl(p)))return}s=l.createElement("link"),je(s,"link",e),Xe(s),l.head.appendChild(s)}}}function Vg(e,t,l){an.S(e,t,l);var s=qi;if(s&&e){var f=ai(s).hoistableStyles,p=Gi(e);t=t||"default";var T=f.get(p);if(!T){var _={loading:0,preload:null};if(T=s.querySelector(kl(p)))_.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},l),(l=bt.get(p))&&br(e,l);var x=T=s.createElement("link");Xe(x),je(x,"link",e),x._p=new Promise(function(I,q){x.onload=I,x.onerror=q}),x.addEventListener("load",function(){_.loading|=1}),x.addEventListener("error",function(){_.loading|=2}),_.loading|=4,jo(T,t,s)}T={type:"stylesheet",instance:T,count:1,state:_},f.set(p,T)}}}function zg(e,t){an.X(e,t);var l=qi;if(l&&e){var s=ai(l).hoistableScripts,f=Vi(e),p=s.get(f);p||(p=l.querySelector(Hl(f)),p||(e=S({src:e,async:!0},t),(t=bt.get(f))&&Lr(e,t),p=l.createElement("script"),Xe(p),je(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function Bg(e,t){an.M(e,t);var l=qi;if(l&&e){var s=ai(l).hoistableScripts,f=Vi(e),p=s.get(f);p||(p=l.querySelector(Hl(f)),p||(e=S({src:e,async:!0,type:"module"},t),(t=bt.get(f))&&Lr(e,t),p=l.createElement("script"),Xe(p),je(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(f,p))}}function jd(e,t,l,s){var f=(f=de.current)?$o(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Gi(l.href),l=ai(f).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Gi(l.href);var p=ai(f).hoistableStyles,T=p.get(e);if(T||(f=f.ownerDocument||f,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,T),(p=f.querySelector(kl(e)))&&!p._p&&(T.instance=p,T.state.loading=5),bt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},bt.set(e,l),p||Pg(f,e,l,T.state))),t&&s===null)throw Error(a(528,""));return T}if(t&&s!==null)throw Error(a(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Vi(l),l=ai(f).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Gi(e){return'href="'+At(e)+'"'}function kl(e){return'link[rel="stylesheet"]['+e+"]"}function ep(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Pg(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),je(t,"link",l),Xe(t),e.head.appendChild(t))}function Vi(e){return'[src="'+At(e)+'"]'}function Hl(e){return"script[async]"+e}function tp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+At(l.href)+'"]');if(s)return t.instance=s,Xe(s),s;var f=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Xe(s),je(s,"style",f),jo(s,l.precedence,e),t.instance=s;case"stylesheet":f=Gi(l.href);var p=e.querySelector(kl(f));if(p)return t.state.loading|=4,t.instance=p,Xe(p),p;s=ep(l),(f=bt.get(f))&&br(s,f),p=(e.ownerDocument||e).createElement("link"),Xe(p);var T=p;return T._p=new Promise(function(_,x){T.onload=_,T.onerror=x}),je(p,"link",s),t.state.loading|=4,jo(p,l.precedence,e),t.instance=p;case"script":return p=Vi(l.src),(f=e.querySelector(Hl(p)))?(t.instance=f,Xe(f),f):(s=l,(f=bt.get(p))&&(s=S({},l),Lr(s,f)),e=e.ownerDocument||e,f=e.createElement("script"),Xe(f),je(f,"link",s),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(a(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,jo(s,l.precedence,e));return t.instance}function jo(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,p=f,T=0;T<s.length;T++){var _=s[T];if(_.dataset.precedence===t)p=_;else if(p!==f)break}p?p.parentNode.insertBefore(e,p.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function br(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ea=null;function np(e,t,l){if(ea===null){var s=new Map,f=ea=new Map;f.set(l,s)}else f=ea,s=f.get(l),s||(s=new Map,f.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var p=l[f];if(!(p[$i]||p[Qe]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var T=p.getAttribute(t)||"";T=e+T;var _=s.get(T);_?_.push(p):s.set(T,[p])}}return s}function ip(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Og(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Yg(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="str
49ing"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Gi(s.href),p=t.querySelector(kl(f));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ta.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=p,Xe(p);return}p=t.ownerDocument||t,s=ep(s),(f=bt.get(f))&&br(s,f),p=p.createElement("link"),Xe(p);var T=p;T._p=new Promise(function(_,x){T.onload=_,T.onerror=x}),je(p,"link",s),l.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ta.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Ur=0;function Fg(e,t){return e.stylesheets&&e.count===0&&ia(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&ia(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+t);0<e.imgBytes&&Ur===0&&(Ur=62500*xg());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ia(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>Ur?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function ta(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ia(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var na=null;function ia(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,na=new Map,t.forEach(Jg,e),na=null,ta.call(e))}function Jg(e,t){if(!(t.state.loading&4)){var l=na.get(e);if(l)var s=l.get(null);else{l=new Map,na.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var T=f[p];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(l.set(T.dataset.precedence,T),s=T)}s&&l.set(null,s)}f=t.instance,T=f.getAttribute("data-precedence"),p=l.get(T)||s,p===s&&l.set(null,f),l.set(T,f),this.count++,s=ta.bind(this),f.addEventListener("load",s),f.addEventListener("error",s),p?p.parentNode.insertBefore(f,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var ql={$$typeof:H,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Xg(e,t,l,s,f,p,T,_,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Na(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Na(0),this.hiddenUpdates=Na(null),this.identifierPrefix=s,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function op(e,t,l,s,f,p,T,_,x,I,q,V){return e=new Xg(e,t,l,T,x,I,q,V,_),t=1,p===!0&&(t|=24),p=yt(3,null,null,t),e.current=p,p.stateNode=e,t=ps(),t.refCount++,e.pooledCache=t,t.refCount++,p.memoizedState={element:s,isDehydrated:l,cache:t},ys(p),e}function ap(e){return e?(e=gi,e):gi}function sp(e,t,l,s,f,p){f=ap(f),s.context===null?s.context=f:s.pendingContext=f,s=vn(t),s.payload={element:l},p=p===void 0?null:p,p!==null&&(s.callback=p),l=Tn(e,s,t),l!==null&&(dt(l,e,t),hl(l,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function kr(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function up(e){if(e.tag===13||e.tag===31){var t=On(e,67108864);t!==null&&dt(t,e,67108864),kr(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=Ct();t=Ia(t);var l=On(e,t);l!==null&&dt(l,e,t),kr(e,t)}}var la=!0;function Kg(e,t,l,s){var f=k.T;k.T=null;var p=X.p;try{X.p=2,Hr(e,t,l,s)}finally{X.p=p,k.T=f}}function Qg(e,t,l,s){var f=k.T;k.T=null;var p=X.p;try{X.p=8,Hr(e,t,l,s)}finally{X.p=p,k.T=f}}function Hr(e,t,l,s){if(la){var f=qr(s);if(f===null)Cr(e,t,s,oa,l),dp(e,s);else if(Wg(f,e,t,l,s))s.stopPropagation();else if(dp(e,s),t&4&&-1<Zg.indexOf(e)){for(;f!==null;){var p=oi(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var T=Gn(p.pendingLanes);if(T!==0){var _=p;for(_.pendingLanes|=2,_.entangledLanes|=2;T;){var x=1<<31-ht(T);_.entanglements[1]|=x,T&=~x}Bt(p),(Ce&6)===0&&(Bo=pt()+500,Dl(0))}}break;case 31:case 13:_=On(p,2),_!==null&&dt(_,p,2),Oo(),kr(p,2)}if(p=qr(s),p===null&&Cr(e,t,s,oa,l),p===f)break;f=p}f!==null&&s.stopPropagation()}else Cr(e,t,s,null,l)}}function qr(e){return e=Va(e),Gr(e)}var oa=null;function Gr(e){if(oa=null,e=li(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=m(t),e!==null)return e;e=null}else if(l===31){if(e=h(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return oa=e,null}function fp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 6,256 bytes, line 49
49:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(kh()){case vu:return 2;case Tu:return 8;case Xl:case Hh:return 32;case Eu:return 268435456;default:return 32}default:return 32}}var Vr=!1,In=null,Dn=null,bn=null,Gl=new Map,Vl=new Map,Ln=[],Zg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function dp(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Dn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Gl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(t.pointerId)}}function zl(e,t,l,s,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:p,targetContainers:[f]},t!==null&&(t=oi(t),t!==null&&up(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function Wg(e,t,l,s,f){switch(t){case"focusin":return In=zl(In,e,t,l,s,f),!0;case"dragenter":return Dn=zl(Dn,e,t,l,s,f),!0;case"mouseover":return bn=zl(bn,e,t,l,s,f),!0;case"pointerover":var p=f.pointerId;return Gl.set(p,zl(Gl.get(p)||null,e,t,l,s,f)),!0;case"gotpointercapture":return p=f.pointerId,Vl.set(p,zl(Vl.get(p)||null,e,t,l,s,f)),!0}return!1}function pp(e){var t=li(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=m(l),t!==null){e.blockedOn=t,Mu(e.priority,function(){cp(l)});return}}else if(t===31){if(t=h(l),t!==null){e.blockedOn=t,Mu(e.priority,function(){cp(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function aa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=qr(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Ga=s,l.target.dispatchEvent(s),Ga=null}else return t=oi(l),t!==null&&up(t),e.blockedOn=l,!1;t.shift()}return!0}function mp(e,t,l){aa(e)&&l.delete(t)}function $g(){Vr=!1,In!==null&&aa(In)&&(In=null),Dn!==null&&aa(Dn)&&(Dn=null),bn!==null&&aa(bn)&&(bn=null),Gl.forEach(mp),Vl.forEach(mp)}function sa(e,t){e.blockedOn===t&&(e.blockedOn=null,Vr||(Vr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,$g)))}var ra=null;function hp(e){ra!==e&&(ra=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ra===e&&(ra=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],f=e[t+2];if(typeof s!="function"){if(Gr(s||l)===null)continue;break}var p=oi(l);p!==null&&(e.splice(t,3),t-=3,qs(p,{pending:!0,data:f,method:l.method,action:s},s,f))}}))}function zi(e){function t(x){return sa(x,e)}In!==null&&sa(In,e),Dn!==null&&sa(Dn,e),bn!==null&&sa(bn,e),Gl.forEach(t),Vl.forEach(t);for(var l=0;l<Ln.length;l++){var s=Ln[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ln.length&&(l=Ln[0],l.blockedOn===null);)pp(l),l.blockedOn===null&&Ln.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var f=l[s],p=l[s+1],T=f[at]||null;if(typeof p=="function")T||hp(l);else if(T){var _=null;if(p&&p.hasAttribute("formAction")){if(f=p,T=p[at]||null)_=T.formAction;else if(Gr(f)!==null)continue}else _=T.action;typeof _=="function"?l[s+1]=_:(l.splice(s,3),s-=3),hp(l)}}}function gp(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(T){return f=T})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function zr(e){this._internalRoot=e}ua.prototype.render=zr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var l=t.current,s=Ct();sp(l,s,e,t,null,null)},ua.prototype.unmount=zr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sp(e.current,2,null,e,null,null),Oo(),t[ii]=null}};function ua(e){this._internalRoot=e}ua.prototype.unstable_scheduleHydration=function(e){if(e){var t=xu();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ln.length&&t!==0&&t<Ln[l].priority;l++);Ln.splice(l,0,e),l===0&&pp(e)}};var yp=n.version;if(yp!=="19.2.0")throw Error(a(527,yp,"19.2.0"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var jg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};
vendor: 5,793 bytes, line 49
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ca=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ca.isDisabled&&ca.supportsFiber)try{Qi=ca.inject(jg),mt=ca}catch{}}return Pl.createRoot=function(e,t){if(!u(e))throw Error(a(299));var l=!1,s="",f=Af,p=xf,T=Mf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(p=t.onCaughtError),t.onRecoverableError!==void 0&&(T=t.onRecoverableError)),t=op(e,1,!1,null,null,l,s,null,f,p,T,gp),e[ii]=t.current,Sr(e),new zr(t)},Pl.hydrateRoot=function(e,t,l){if(!u(e))throw Error(a(299));var s=!1,f="",p=Af,T=xf,_=Mf,x=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(_=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=op(e,1,!0,t,l??null,s,f,x,p,T,_,gp),t.context=ap(null),l=t.current,s=Ct(),s=Ia(s),f=vn(s),f.callback=null,Tn(l,f,s),l=s,t.current.lanes=l,Wi(t,l),Bt(t),e[ii]=t.current,Sr(e),new ua(t)},Pl.version="19.2.0",Pl}var wp;function uy(){if(wp)return Or.exports;wp=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(n){console.error(n)}}return i(),Or.exports=ry(),Or.exports}var cy=uy();const fy=eh(cy),dy="modulepreload",py=function(i){return"/"+i},Rp={},my=function(n,o,a){let u=Promise.resolve();if(o&&o.length>0){let m=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=m(o.map(g=>{if(g=py(g),g in Rp)return;Rp[g]=!0;const v=g.endsWith(".css"),S=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${S}`))return;const C=document.createElement("link");if(C.rel=v?"stylesheet":dy,v||(C.as="script"),C.crossOrigin="",C.href=g,y&&C.setAttribute("nonce",y),document.head.appendChild(C),v)return new Promise((A,D)=>{C.addEventListener("load",A),C.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(m){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=m,window.dispatchEvent(h),!h.defaultPrevented)throw m}return u.then(m=>{for(const h of m||[])h.status==="rejected"&&d(h.reason);return n().catch(d)})},th=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})}),nh=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M15 21a6 6 0 00-9-5.197m0 0A5.975 5.975 0 0112 13a5.975 5.975 0 013 1.803M15 21a9 9 0 00-3-5.647"})}),hy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),gy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),ih=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7a8 8 0 0116 0M12 11a4 4 0 110-8 4 4 0 010 8z"})}),yy=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9 9 0 100-18 9 9 0 000 18z"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),vy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"})}),Ty=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-2.5 2.5L9 16z"})}),Ey=({className:i="w-8 h-8"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"
49currentColor",children:[E.jsx("path",{fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",clipRule:"evenodd"}),E.jsxs("g",{transform:"translate(0 1.5)",children:[E.jsx("path",{d:"M6 15h12v-2H6v2Z"}),E.jsx("path",{d:"M17 11a5 5 0 0 0-10 0h2a3 3 0 1 1 6 0h2Z"})]})]}),Sy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})}),RC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}),NC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})}),Cy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"})}),_y=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"})}),Xr=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})}),IC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"currentColor",children:E.jsx("path",{d:"M5 16L3 5l5.5 5L12 4l3.5 6L21 5l-2 11H5m14 3c0 .6-.4 1-1 1H6c-.6 0-1-.4-1-1v-1h14v1z"})}),DC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),Ay=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"})}),xy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 5l7 7-7 7M5 5l7 7-7 7"})}),My=({className:i="w-auto",logoSize:n="w-10 h-10",titleSize:o="text-xl",subtitleSize:a="text-xs",isCollapsed:u=!1})=>E.jsxs("div",{className:`flex items-center gap-3 ${i}`,children:[E.jsx("style",{children:` 50 @keyframes heartbeat-pulse { 51 0%, 100% { 52 transform: scale(1); 53 opacity: 1; 54 } 55 50% { 56 transform: scale(0.95); 57 opacity: 0.1; 58 } 59 } 60 .logo-pulse { 61 animation: heartbeat-pulse 8s ease-in-out infinite; 62 } 63 `}),E.jsx("div",{className:`relative ${n} flex-shrink-0 logo-pulse`,children:E.jsx("div",{className:"absolute inset-0 overflow-hidden rounded-lg",children:E.jsx("img",{src:"https://electomania.es/wp-content/uploads/2025/07/Logo-hubdem.png",alt:"Hubdem Logo",className:"w-full h-full object-cover"})})}),E.jsxs("div",{className:u?"hidden":"",children:[E.jsxs("h1",{className:`${o} font-bold text-white tracking-tight`,children:["Hubdem",E.jsx("sup",{className:"text-[0.5em] -top-2 relative text-sky-400",children:"®"})]}),E.jsx("p",{className:`${a} text-slate-400 mt-1`,children:"Desarrollado por MIDAT 1"})]})]}),wy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})}),bC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})}),Ry=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.5 5l7 7-7 7"})}),LC=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2.5,stroke:"currentColor",className:i,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.49 16.28a8.25 8.25 0 1 1-2.43-5.53"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 15L20.25 17.25L18 16.5"})]}),UC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:i,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15m11.25-6L20.25 3.75m0 0h-4.5m4.5 0v4.5M15 15l5.25 5.25m0 0v-4.5m0 4.5h-4.5"})}),kC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:i,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9V4.5M15 9h4.5M15 9l5.25-5.25M15 15v4.5M15 15h4.5M15 15l5.25 5.25"})}),HC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12l-9-7.5L3 12l3.5 9h11L21 12z"})}),qC=({className:i="w-8 h-8"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:i,children:[E.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsxs("g",{children:[E.jsx("path",{d:"M14 5L12 7L10 5L9 5V8.5L12 11L15 8.5V5H14Z",fill:"white"}),E.jsx("circle",{cx:"12",cy:"14",r:"5",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsx("text",{x:"12",y:"14.5",textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"1"})]})]}),GC=({className:i="w-8 h-8"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:i,children:[E.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsxs("g",{children:[E.jsx("path",{d:"M14 5L12 7L10 5L9 5V8.5L12 11L15 8.5V5H14Z",fill:"white"}),E.jsx("circle",{cx:"12",cy:"14",r:"5",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsx("text",{x:"12",y:"14.5",textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"2"})]})]}),VC=({className:i="w-8 h-8"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:i,children:[E.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsxs("g",{children:[E.jsx("path",{d:"M14 5L12 7L10 5L9 5V8.5L12 11L15 8.5V5H14Z",fill:"white"}),E.jsx("circle",{cx:"12",cy:"14",r:"5",fill:"black",stroke:"white",strokeWidth:"1"}),E.jsx("text",{x:"12",y:"14.5",textAnchor:"middle",dominantBaseline:"middle",fill:"white",fontSize:"8",fontWeight:"bold",children:"3"})]})]}),zC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),Ny=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0v-4m6 4v-4m6 4v-4m-9-4h5"})}),Kr=({className:i="w-full h-8"})=>E.jsxs("svg",{className:i,preserveAspectRatio:"none",fill:"none",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("defs",{children:[E.jsx("marker",{id:"arrowhead",markerWidth:"3",markerHeight:"4",refX:"2",refY:"2",orient:"auto",children:E.jsx("path",{d:"M 0 0 L 3 2 L 0 4 Z",fill:"#0ea5e9"})}),E.jsxs("filter",{id:"glow-arrow",x:"-500%",y:"-500%",width:"1000%",height:"1000%",children:[E.jsx("feGaussianBlur",{stdDeviation:"1.5",result:"blur"}),E.jsxs("feMerge",{children:[E.jsx("feMergeNode",{in:"blur"}),E.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),E.jsx("path",{d:"M 0 50 H 95",stroke:"#0ea5e9",strokeWidth:.5,strokeOpacity:.3,markerEnd:"url(#arrowhead)",className:"data-flow-base-path",style:{animationDelay:"1.2s"}}
63),E.jsx("circle",{r:"1.5",fill:"#fff",filter:"url(#glow-arrow)",className:"data-flow-particle",style:{animationDelay:"1.2s"},children:E.jsx("animateMotion",{dur:"4.5s",begin:"1.2s",repeatCount:"indefinite",path:"M 0 50 H 95"})})]}),Iy=({className:i="w-24 h-24"})=>E.jsxs("div",{className:`relative ${i} flex items-center justify-center`,children:[E.jsx("style",{children:` 64 @keyframes float-up-down { 65 0%, 100% { transform: translateY(0); } 66 50% { transform: translateY(-8px); } 67 } 68 .core-float { 69 animation: float-up-down 6s ease-in-out infinite; 70 } 71 .core-glow { 72 filter: drop-shadow(0 0 10px #0ea5e9) drop-shadow(0 0 20px #0ea5e9); 73 } 74 .data-points path { 75 animation: data-point-blink 3s linear infinite; 76 } 77 @keyframes data-point-blink { 78 0%, 100% { opacity: 0.5; } 79 50% { opacity: 1; } 80 } 81 `}),E.jsxs("svg",{viewBox:"0 0 100 100",className:"w-full h-full core-float c
81ore-glow",children:[E.jsxs("defs",{children:[E.jsxs("linearGradient",{id:"core-top-grad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[E.jsx("stop",{offset:"0%",stopColor:"#38bdf8"}),E.jsx("stop",{offset:"100%",stopColor:"#0ea5e9"})]}),E.jsxs("linearGradient",{id:"core-side-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[E.jsx("stop",{offset:"0%",stopColor:"#0c4a6e"}),E.jsx("stop",{offset:"100%",stopColor:"#075985"})]})]}),E.jsx("path",{d:"M 50 85 L 85 67.5 L 50 50 L 15 67.5 Z",fill:"#082f49",opacity:"0.6"}),E.jsx("path",{d:"M 50 85 V 95",stroke:"#0ea5e9",strokeWidth:"1"}),E.jsx("path",{d:"M 15 67.5 L 5 73.5",stroke:"#0ea5e9",strokeWidth:"0.5"}),E.jsx("path",{d:"M 85 67.5 L 95 73.5",stroke:"#0ea5e9",strokeWidth:"0.5"}),E.jsxs("g",{transform:"translate(0 -10)",children:[E.jsx("path",{d:"M 50 40 L 80 25 L 50 10 L 20 25 Z",fill:"url(#core-top-grad)"}),E.jsx("path",{d:"M 20 25 L 20 55 L 50 70 L 50 40 Z",fill:"url(#core-side-grad)"}),E.jsx("path",{d:"M 50 40 L 50 70 L 80 55 L 80 25 Z",fill:"#083344"})]})]})]}),BC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),Dy=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6a7.5 7.5 0 1 0 7.5 7.5h-7.5V6Z"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5H21A7.5 7.5 0 0 0 13.5 3v7.5Z"})]}),PC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),by=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})}),Ly=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"})}),Uy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})}),OC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 20.944a11.955 11.955 0 0118-8.944c0 4.142-.86 8.17-2.382 11.944z"})}),YC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})}),FC=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9.75h7.5"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 14.25h7.5"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12a7.5 7.5 0 0015 0m-15 0a7.5 7.5 0 1115 0m-15 0H3m18
810h-1.5m-15 0c0-5.462 4.03-9.9 9-9.9s9 4.438 9 9.9"})]}),ky=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3v16.5h16.5"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 3.75L9 14.25l-2.625-2.625"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 3.75h6v6"})]}),Hy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"})}),JC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 17h8m0 0V9m0 8l-8-8-4 4-6-6"})}),XC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 12m18 0v6a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 18v-6m18 0V9M3 12V9m18 0a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 9m18 0V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v3"})}),KC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3"})}),QC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 01.778-.332 48.294 48.294 0 005.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.
81123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),ZC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0z"})}),WC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9 9.75h.008v.008H9V9.75zm6 0h.008v.008H15V9.75z"})}),qy=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"})}),$C=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m-6 3.75H3.75c-1.105 0-2-.895-2-2V8.25c0-1.105.895-2 2-2h12.75c1.03 0 1.9.694 2.166 1.638l4.5 13.5m0-13.5h-9M12 12.75h9.75M12 12.75c-2.485 0-4.5-2.015-4.5-4.5s2.015-4.5 4.5-4.5 4.5 2.015 4.5 4.5-2.015 4.5-4.5 4.5z"})}),jC=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18L9 11.25l4.306 4.307a11.95 11.95 0 015.814-5.517l2.74-1.22m0 0l-3.94-3.94M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),e_=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6z"})]}),t_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),n_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.898 20.562L16.25 18l-.648 2.562a4.5 4.5 0 01-2.356 2.356L10.5 21.75l2.562.648a4.5 4.5 0 012.356 2.356L16.25 25.5l.648-2.562a4.5 4.5 0 012.356-2.356L21.75 18l-2.562-.648a4.5 4.5 0 01-2.356-2.356z"})}),i_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),l_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m-7.5-2.226c-3.423 0-6.23-2.61-6.23-5.811s2.807-5.811 6.23-5.811 6.23 2.61 6.23 5.811m-12.46 0a6.227 6.227 0 015.171 2.082m5.171-2.082a6.227 6.227 0 00-5.171 2.082"})}),o_=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 19.5l-1.414-1.414M4.5 4.5l1.414 1.414"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 4.5l-15 15"})]}),a_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 5v.01M12 12v.01M12 19v.01"})}),s_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3l-4 4-4-4zM12 15V3"})}),r_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),u_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),c_=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12.792V7.5a2.25 2.25 0 00-2.25-2.25h-5.25M3 11.208V16.5a2.25 2.25 0 002.25 2.25h5.25"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 11.208L12 5.25l9 5.958"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21.75V11.25"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12.792L12 17.25 3 11.208",strokeDasharray:"2 2"})]}),Gy=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:[E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 19c0-9 2-14 8-14s8 5 8 14"}),E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 19h18"})]}),f_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),d_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5ZM12 6v13.5m0 0C16.142 19.5 19.5 16.142 19.5 12v-.75m-15 .75C4.5 16.142 7.858 19.5 12 19.5m0 0H12m-4.5-9H16.5"})}),p_=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"none",children:[E.jsx("path",{d:"M11.8114 6.7267C12.8247 4.9089 13.3314 4 14.0889 4C14.8464 4 15.353 4.9089 16.3663 6.7267L16.6285 7.19699C16.9164 7.71355 17.0604 7.97183 17.2849 8.14225C17.5094 8.31266 17.789 8.37592 18.3482 8.50244L18.8572 8.61762C20.825 9.06284 21.8089 9.28545 22.0429 10.
810382C22.277 10.7909 21.6063 11.5753 20.2648 13.1439L19.9177 13.5498C19.5365 13.9955 19.3459 14.2184 19.2602 14.4942C19.1744 14.7699 19.2032 15.0673 19.2609 15.662L19.3133 16.2035C19.5162 18.2965 19.6176 19.343 19.0047 19.8082C18.3919 20.2734 17.4707 19.8492 15.6283 19.0009L15.1517 18.7815C14.6281 18.5404 14.3664 18.4199 14.0889 18.4199C13.8114 18.4199 13.5496 18.5404 13.0261 18.7815L12.5494 19.0009C10.707 19.8492 9.78581 20.2734 9.17299 19.8082C8.56016 19.343 8.66157 18.2965 8.86438 16.2035L8.91685 15.662C8.97449 15.0673 9.0033 14.7699 8.91756 14.4942C8.83181 14.2184 8.64121 13.9955 8.26 13.5498L7.91295 13.1439C6.57147 11.5753 5.90073 10.7909 6.1348 10.0382C6.36888 9.28545 7.35275 9.06284 9.3205 8.61762L9.82958 8.50244C10.3887 8.37592 10.6683 8.31266 10.8928 8.14225C11.1173 7.97183 11.2613 7.71355 11.5492 7.19699L11.8114 6.7267Z",fill:"currentColor"}),E.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M8.74549 5.20241C6.76387 4.63138 4.63821 4.933 2.58729 6.13407L2.37913 6.25598C2.0217 6.4653 1.56226 6.34523 1.35293 5.9878C1.14361 5.63037 1.26368 5.17092 1.62111 4.9616L1.82927 4.8397C4.18969 3.45737 6.73702 3.0626 9.16083 3.76106L9.36871 3.82096C9.76673 3.93566 9.99641 4.35129 9.88171 4.74931C9.76702 5.14733 9.35139 5.37701 8.95337 5.26231L8.74549 5.20241ZM4.83628 9.93646C4.87144 10.3492 4.56537 10.7123 4.15265 10.7474C3.99949 10.7605 3.88206 10.7679 3.78365 10.7742C3.60627 10.7854 3.49069 10.7928 3.33902 10.8219C3.14253 10.8596 2.8874 10.9394 2.4244 11.1709C2.05391 11.3562 1.60341 11.206 1.41817 10.8355C1.23293 10.465 1.38309 10.0145 1.75358 9.8293C2.29057 9.5608 2.68032 9.42092 3.05627 9.34876C3.30317 9.30137 3.55804 9.28477 3.78724 9.26984C3.87053 9.26441 3.95043 9.25921 4.02533 9.25283C4.43804 9.21767 4.80112 9.52374 4.83628 9.93646ZM5.91788 15.8561C4.73392 15.5786 3.48653 15.8538 2.55316 16.5892C2.22781 16.8456 1.75624 16.7896 1.49988 16.4643C1.24353 16.1389 1.29946 15.6674 1.62482 15.411C2.92261 14.3884 4.63911 14.0158 6.2601 14.3956C6.66339 14.4901 6.91371 14.8937 6.81921 15.297C6.72471 15.7003 6.32117 15.9506 5.91788 15.8561Z",fill:"currentColor"})]}),m_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),h_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"currentColor",children:E.jsx("path",{d:"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3ZM13 13H11V7H13V13ZM13 17H11V15H13V17Z"})}),g_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 16 16",fill:"currentColor",children:E.jsx("path",{d:"M4.35009 13.3929L8 16L11.6499 13.3929C13.7523 11.8912 15 9.46667 15 6.88306V3L8 0L1 3V6.88306C1 9.46667 2.24773 11.8912 4.35009 13.3929Z"})}),y_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"currentColor",children:E.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.95V5h-2.93v1.74c-1.81.35-3.24 1.49-3.24 3.21 0 2.18 1.85 3.07 4.59 3.72 2.01.48 2.69 1.19 2.69 2.14 0 1.06-1.11 1.79-2.69 1.79-2.16 0-2.86-.92-2.95-2.13h-1.74c.07 1.72 1.13 2.81 2.93 3.17V21h2.93v-1.75c1.93-.38 3.53-1.74 3.53-3.4-.01-2.42-2.02-3.52-4.04-4.05z"})}),v_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"currentColor",children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM13.9563 14.0949C13.763 14.2644 13.5167 14.3629 13.024 14.56C10.7142 15.4839 9.55936 15.9459 8.89971 15.4976C8.7433 15.3913 8.6084 15.2564 8.50212 15.1C8.05386 14.4404 8.51582 13.2855 9.43973 10.9757C9.6368 10.483 9.73533 10.2367 9.9048 10.0434C9.94799 9.99419 9.99435 9.94782 10.0436 9.90464C10.2368 9.73517 10.4832 9.63663 10.9759 9.43956C13.2856 8.51565 14.4405 8.0537 15.1002 8.50196C15.2566 8.60824 15.3915 8.74314 15.4978 8.89954C15.946 9.5592 15.4841 10.7141 14.5602 13.0239C14.3631 13.5165 14.2646 13.7629 14.0951 13.9561C14.0519 14.0054 14.0055 14.0517 13.9563 14.0949Z"})}),T_=({className:i="w-6 h-6"})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"
81currentColor",children:E.jsx("path",{d:"M13,9h6L8,22l3-10H5L10,2h7Z"})}),E_=({className:i="w-6 h-6"})=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:i,viewBox:"0 0 24 24",fill:"currentColor",children:[E.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM8.83 16.23L7.41 14.82L11.32 10.91C11.71 10.52 11.71 9.89 11.32 9.5L7.41 5.59L8.83 4.17L13.44 8.79C14.22 9.57 14.22 10.84 13.44 11.62L8.83 16.23Z",transform:"rotate(90 12 12)"}),E.jsx("path",{d:"M17 8l-1.41 1.41 2.29 2.29H8V13h9.88l-2.29 2.29L17 16l4-4z"})]}),Vy=({typologies:i,activeTypology:n,onTypologyClick:o,onMenuClick:a})=>{const u=te.useRef(null),[d,m]=te.useState({left:0,width:0,opacity:0});return te.useEffect(()=>{const h=u.current;if(!h)return;const y=h.querySelector('[aria-pressed="true"]');y&&m({left:y.offsetLeft,width:y.offsetWidth,opacity:1})},[n]),E.jsx("header",{className:"relative z-20 flex-shrink-0",children:E.jsx("div",{className:"bg-white/80 dark:bg-slate-900/80 backdrop-blur-xl rounded-2xl shadow-lg ring-1 ring-black/5 dark:ring-white/10",children:E.jsxs("nav",{className:"flex items-center",children:[E.jsx("button",{onClick:a,className:"p-3 text-slate-500 hover:text-slate-800 md:hidden dark:text-slate-400 dark:hover:text-slate-200","aria-label":"Abrir menú",children:E.jsx(Uy,{className:"w-6 h-6"})}),E.jsx("div",{className:"relative flex-1 overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:E.jsxs("ul",{ref:u,className:"relative flex items-center p-1",children:[E.jsx("div",{style:d,className:"absolute bottom-[4px] h-10 bg-sky-500/10 dark:bg-sky-500/20 rounded-xl transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)]"}),i.map(h=>E.jsx("li",{children:E.jsx("button",{onClick:()=>o(h),"aria-pressed":n===h,className:`relative z-10 py-2 px-4 text-sm font-semibold whitespace-nowrap transition-colors duration-300 focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-400 rounded-lg ${n===h?"text-sky-600 dark:text-sky-400":"text-slate-500 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-100"}`,children:h})},h))]})})]})})})},Zr=[{id:"centro-de-datos",label:"Centro de datos",icon:E.jsx(vy,{})},{id:"intencion-voto",label:"Análisis del voto",icon:E.jsx(th,{})},{id:"valoraciones-lideres",label:"Valoraciones de lÃderes",icon:E.jsx(nh,{})},{id:"opinion",label:"Laboratorio de escenarios",icon:E.jsx(hy,{})},{id:"momentum",label:"Momentum",icon:E.jsx(Hy,{}),isNew:!0},{id:"opinion-publica",label:"Sondeos de opinión",icon:E.jsx(Dy,{})},{id:"preocupacion",label:"Preocupación",icon:E.jsx(gy,{})},{id:"test-mensajes",label:"Test de Mensajes",icon:E.jsx(by,{})},{id:"simulador-hipotesis",label:"Simulador de hipótesis",icon:E.jsx(Gy,{}),isNew:!0},{id:"microdatos",label:"Microdatos",icon:E.jsx(ih,{})},{id:"microtargeting",label:"Microtargeting",icon:E.jsx(yy,{})},{id:"pizarra",label:"Pizarra",icon:E.jsx(Ly,{})},{id:"miner-ia",label:"Miner-IA",icon:E.jsx(Ey,{}),disabled:!0},{id:"ficha-tecnica",label:"Ficha Técnica",icon:E.jsx(Cy,{})},{id:"soporte-tecnico",label:"Soporte técnico",icon:E.jsx(_y,{})}],Ol={CUP:"#000000","EH BILDU":"#9ACD32",ERC:"#FFD700","AHORA REPÃBLICAS":"#FFD700",BNG:"#87cefa",CPM:"#D59571","ADELANTE ANDALUCIA":"#38a6a5",PODEMOS:"#B914FF",SUMAR:"#DB1EA5","MÃS PAÃS":"#3CB371",COMPROMIS:"#610B38",PACMA:"#9BE73A","NUEVA CANARIAS":"#FFA07A",PSOE:"#FF0303","SORIA ¡YA!":"#000000","ESPAÃA VACIADA":"#7A3131","TERUEL EXISTE":"#8A2908",EXISTE:"#8A2908",UPL:"#610B38",PRC:"#A5DF00","GEROA BAI":"#ff7f50","IZQ. ESPAÃOLA":"#7A3131",PNV:"#008000",CEUS:"#008000",JUNTS:"#09BCA3","COALICIÃN CANARIA":"#808000",UPN:"#080A93",CS:"#FF8C00","FORO ASTURIAS":"#58CAEB","POR ÃVILA":"#0489B1",PP:"#03A3FF","NAV+":"#DC143C",VOX:"#32cd32",SALF:"#4B0C1B","ALIANÃA CATALANA":"#092F8E",OTROS:"#9ca3af",DEFAULT:"#9ca3af"},fa={SUMAR:2,PODEMOS:1.5,PSOE:3.5,BNG:2.5,"EH BILDU":1,ERC:3,COMPROMIS:2.5,"ADELANTE ANDALUCIA":1.5,CUP:.5,"NUEVA CANARIAS":4,"MÃS PAÃS":3,"AHORA REPÃBLICAS":2.5,"IZQ. ESPAÃOLA":3.8,PACMA:4,"GEROA BAI":4.5,PNV:5.5,JUNTS:6.5,"COALICIÃN CANARIA":6,UPN:7.5,UPL:5,CPM:5,"SORIA ¡YA!":5,"TERUEL EXISTE":5,"ESPAÃA VACIADA":5,EXISTE:5,PRC:5.5,CEUS:6,"POR ÃVILA":5,CS:7,"FORO ASTURIAS":7.8,PP:8,"NAV+":8,VOX:9.5,SALF:10,"ALIANÃA CATALANA":9.8,DEFAULT:5},da={CUP:"https://electomania.es/wp-content/uploads/Logos2023/CUP.png","EH BILDU":"https://electomania.es/wp-content/uploads/Logos2023/EHBildu.png",ERC:"https://electomania.es/wp-content/uploads/Logos2023/ERC.png","AHORA REPÃBLICAS":"https://pbs.twimg.com/profile_images/1111237271401959425/0Vf6eZJa_400x400.png",BNG:"https://electomania.es/wp-content/uploads/Logos2023/BNG.png",CPM:"https://electomania.es/wp-content/uploads/Logos2023/CPM.png","ADELANTE ANDALUCIA":"https://electomania.es/wp-content/uploads/Logos2023/AdelanteAndalucia.png",PODEMOS:"https://electomania.es/wp-content/uploads/Logos2023/Podemos.png",SUMAR:"https://electomania.es/wp-content/uploads/Logos2023/Sumar.png","MÃS PAÃS":"https://electomania.es/wp-content/uploads/Logos2023/MasPais.png",COMPROMIS:"https://electomania.es/wp-content/uploads/Logos2023/Compromis.png",PACMA:"https://electomania.es/wp-content/uploads/Logos2023/Pacma.png","NUEVA CANARIAS":"https://electomania.es/wp-content/uploads/Logos2023/NCa.png",PSOE:"https://electomania.es/wp-content/uploads/Logos2023/PSOE.png","SORIA ¡YA!":"https://electomania.es/wp-content/uploads/Logos2023/SoriaYA.png","ESPAÃA VACIADA":"https://electomania.es/wp-content/uploads/Logos2023/EspV.png","TERUEL EXISTE":"https://electomania.es/wp-content/uploads/Logos2023/TeruelExiste.png",EXISTE:"https://electomania.es/wp-content/uploads/Logos2023/EspV.png",UPL:"https://electomania.es/wp-content/uploads/Logos2023/UPL.png",PRC:"https://electomania.es/wp-content/uploads/Logos2023/PRC.png","GEROA BAI":"https://electomania.es/wp-content/uploads/Logos2023/GeroaBai.png","IZQ. ESPAÃOLA":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAsVBMVEX////+AAL7AAD8///5AAD2AAD+AAP5/////v/8/vz9+Pj48O/7/Pv58PLzAAD0iIj4k5L3XV373Nn3c3H1fH/3ysf42dr0oJ71Rkf0ZGT1qaf67Ov34eH3+fj20tH0IiL74eH0T031tbT5HR/4DhH6Mzb0VFP1r6vygH7zdHTyaWj239vxi4bzOjf2QUH2w8L1mpr1vb7yKSv3zsjytrL2aGT2qa30sa7zYFnzERT4lJcH8WGTAAAMIUlEQVR4nN2deVviOhTG23OSIssgiOzIIoqgAi6jXub7f7DbUmgCtKVNQpP6mz/unXmctu9kP1ssSxdXFrpoe30WvFy3161+afv/V1eaP+Yi4ASAkI9Jo9ccYOEXtuaV1aK2bYP3C6b1dtNC67fJxLrNAKh2ap/l36UR1wQChc5W5qb7PfhF0w+Wp/YRAEA77cHv0dg9VuhDVr0yFnR/nBLaEKoQCNDndUn316mgGa7Qb8jlWz//7XhDohW6Y5IsXvI+7fRpjEIPWh/mW2J5E6vPW0Fg1sxzO5ZOlouw
81dpwNdX+nOOWHBArddqzndhtwdhzuOivQeVn3t4oxjlktDiGbHmIOj1jDxArdA8jqJoc99T6xQk8knedvm3OdQqCncdrM2xGyfl4Vj2PT+Z3ub04DlkbpFHp8vORos4otkmYc+gBt56ijNsFJ34g26eZnbexXBQTaDoxauWnGRfpeuqX6k5fB2KdC/dTtqdf5aEXEtqBCm3bzsmx8iAl059RVTmyrrTg7Rixk86L74xNRuBWWaFfzcTLuJzsEh+Du4T51f30S8E24Dd39zToPY7GyEVwUPeh7HiT2xBU6bivq/vwEFONNiudasWl+K+K3jEIgMjMq3mTSzUsjiZHoLhov4h/Zr2bTzd+kFNpT4dPU3ZLYJAuJffFV34OsBPeoxTp4q2oGSw4u5CRCV+gbce4ZpD2JqgWdvuomke07Gnotcl7s7f9dyeVbEZdyCm3yk/6dw72FIZNWlFj1fWgr7St5zx6hEvNxwtfJDUSXUboJtYh17h+VXNx+h/glq5A8p/pIfKOBQofcZrDs30vONV47pJlthtz7oJ6FdzKZJzEGd7p4Se7UuPvg+uhjJg4fTOnCCAE+Ei/8OOf+Hh1fUBf3zp60QhsSmxjXfB/9e1FhAdiSXS9s7ySV7GX8QgHXheJlpe3BDwUSR4lGFC4CK61jTyqXVrajaC3kBTowT9BPkZtHgQ4ur23Pj4I2tKsJfP2VJXsT3GcY/jBQoRA65xXyAZFihxJBUHrN30rsnXtN/yFQCA/9TKTtkV8RPTZn3Bl4C0zhfUbSdq+uqRBIzvndWtw0k2kfdRXeq1DoLorxs+OMtWB1kK2fFZOHgMUCX3Ev4aKS4S1rS2tJyVTjdtQ4A+qM/dwoq7U+oPSopBEdux7dNtyGNAPjzAlqJlN32Y/cnhYm7KdmGW1HeUQjM46JPNHiJzcKdQSQK1kuPEiUWYqNQuhmKm3Ht6I2tO16+As4syzREgSwVqaQhK6J2GA/8aXFJ5c8YvgsizABzBYEkf34ssRm0KTBsUnYlvof285oGYWKzk87Ce3Tx5eYFQE0BXGoVLisHPfTAjfME5wiL0JfoULSPN5VI0t2pH91KRQOHgqhcSyCszlPTxo4I5QqpMeeGs54UdMiz6WfJM8rKfB08Gy0mP1gMCQoYyA+0cAqZKix62zAEMswSigM89izDZKuem1HXOGHcK4l/RPyQFwww9Z/Rsw1+CqqMKJy+ZhNztSMIL6haDeNMt5ztS/NGIlF0V1bVMwFZ2E2ZDoVrGhKorogHxkwMWEk4o3Ymh+d7ctVNCBGXJ1YEUrPi8sUnQXTKWwyrwUdhkBp4dha0Ae+Hs1lTnyeBNowPueARQYAHRjQTwU8pBCfZPgSjEQHTMjOF3AgnjHb45xlUR3VVtRC6jUfaC3+OgDsb7gf1u/ESN9LR3/OdT0+QUV/P02dLpOg4xVXwP/41qJDaHXTKkxgKeTvkwSq+fry1I6ZRPcY4pw7s3S0rvv4GiMmBAdeE40rLm/WJvOs7uwKo5W2CT/uks0cfMEtnWUG0/fRpHlNhXfnaRuKrdSFk5PUY+D+w8/tDijCthO24KwTDGg3AHANqgzDaWTcZ323OSk6218CrxDQq9SuBxYeXnbpHarAU0X4YxsqXVscqGLkTC4N9T/r9tXSoNhb7EEsNNb2dI6r/nq4Zc6SLlymuv1+v39/f6p167ddmerEaEg5hVNP10Ea5Gj/n51xPJ7bbIBGc/LIVAdp/+KwD2p/OqnfrvjtpStTp/7jSLLduGa7gQqlYfjheJKsy7nDoVR39K1HUd1C1au1TaeB0C6G6sZdytqE6WmYRzKVA+IgkyEvdbljdIuWlRw+3YYEgUt8UVtF/1RXM3aZ2OCUXAL70hXBxjiJ7O8qKTqJVqQmpNwx8XOqQOSXsWdBepuxuOgBiUXqK4o7wEmCbT+KdfnxN+pmjUllTcd7dgYM4ta0nV0QgAYGRNE6YFfymp07xVOzIq5L6tuQnpshI+aoe6K0S0ANW03i0VwrbYNq7ouMIxGtuQxh2PD41i3nhPKqgrle9CGSXmgPrhWd9sB0J5xPdRSeB+1DcskHsLMQUXX/jk2fTUkQvsIqaB7Dvgw5zB4iGzK8g76eqdbSRQKLgACGzpGjkAfqYrcu/YbPZm2i+GRrKPjeJFOYaHppoB3snfEwnPf5AaUvlGc1E066YYiGMu812fqCsHxV1ge0O6N+fqEjVDuFnQ+sKw8KLwVEkhW7bOBlIaAX+flHLcekEXTMDNFDFep991k8lPCXHRPn1KK6C239aqznv7Y5HSUExXLdRxP37Rx389R4+0oJzo7AanO3loloYgD3cQkuzrbqAW3a46ee0NEs7dm0cTUWQXysJwtnpp9q5BTcVtKzafabaPeeZw+UErcX/Rh+tipN25rT5/jfn7WhDi87ofFYolRLKKVUa/8HwiBu9Fz8tuMAAAAAElFTkSuQmCC",PNV:"https://electomania.es/wp-content/uploads/Logos2023/PNV.png",CEUS:"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Coalición_por_una_Europa_Solidaria_logo.svg/1200px-Coalición_por_una_Europa_Solidaria_logo.svg.png",JUNTS:"https://electomania.es/wp-content/uploads/Logos2023/Junts.png","COALICIÃN CANARIA":"https://electomania.es/wp-content/uploads/Logos2023/CC.png",UPN:"https://electomania.es/wp-content/uploads/Logos2023/UPN.png",CS:"https://electomania.es/wp-content/uploads/Logos2023/Cs.png","FORO ASTURIAS":"https://electomania.es/wp-content/uploads/Logos2023/Foro.png","POR ÃVILA":"https://electomania.es/wp-content/uploads/Logos2023/PorAvila.png",PP:"https://electomania.es/wp-content/uploads/Logos2023/PP.png","NAV+":"https://electomania.es/wp-content/uploads/Logos2023/NavarraSuma.png",VOX:"https://electomania.es/wp-content/uploads/Logos2023/Vox.png",SALF:"https://electomania.es/wp-content/uploads/Logos2023/SALF.png","ALIANÃA CATALANA":"https://electomania.es/wp-content/uploads/Logos2023/AC.png",DEFAULT:"https://via.placeholder.com/100?text=?"},S_=i=>{const n=i.toUpperCase().trim();if(Ol[n])return{ideology:fa[n]||fa.DEFAULT,color:Ol[n],logo:da[n]||da.DEFAULT};const o=Object.keys(Ol).filter(a=>a!=="DEFAULT").sort((a,u)=>u.length-a.length).find(a=>n.includes(a));return o?{ideology:fa[o],color:Ol[o],logo:da[o]}:{ideology:fa.DEFAULT,color:Ol.DEFAULT,logo:da.DEFAULT}},C_={"voter-segmentation":{menuItemId:"centro-de-datos",subTabId:"segmentation"},"key-indicators":{menuItemId:"centro-de-datos",subTabId:"indicators"},"voting-intention":{menuItemId:"intencion-voto",subTabId:"intention"},"seats-donut":{menuItemId:"intencion-voto",subTabId:"intention"},"party-evolution":{menuItemId:"intencion-voto",subTabId:"evolution"},"general-sankey":{menuItemId:"intencion-voto",subTabId:"transfer"},"loyalty-growth":{menuItemId:"intencion-voto",subTabId:"loyalty"},"contested-seat":{menuItemId:"intencion-voto",subTabId:"contested"},"ideological-cohesion":{menuItemId:"intencion-voto",subTabId:"cohesion"},"historical-flow":{menuItemId:"intencion-voto",subTabId:"historical_flow"},"hex-map":{menuItemId:"intencion-voto",subTabId:"map"},"spain-microdata-map":{menuItemId:"microdatos"},"general-leader-rating":{menuItemId:"valoraciones-lideres",subTabId:"general"},"general-leader-aspects":{menuItemId:"valoraciones-lideres",subTabId:"aspects"},"leader-h2h":{menuItemId:"valoraciones-lideres",subTabId:"h2h"},"leader-evolution":{menuItemId:"valoraciones-lideres",subTabId:"evolution"},"leader-loyalty":{menuItemId:"valoraciones-lideres",subTabId:"loyalty"}
81,"escenarios-espectro":{menuItemId:"opinion",subTabId:"espectro-comparado"},"escenarios-comparative":{menuItemId:"opinion",subTabId:"analisis-comparado"},"escenarios-builder":{menuItemId:"opinion",subTabId:"constructor-escenarios"},"escenarios-general":{menuItemId:"opinion",subTabId:"espectro-comparado"},"poll-government":{menuItemId:"opinion-publica",subTabId:"government"},"opinion-transfer-matrix":{menuItemId:"opinion-publica",subTabId:"government"},"political-climate":{menuItemId:"preocupacion",subTabId:"ranking"},"general-concerns-ranking":{menuItemId:"preocupacion",subTabId:"ranking"},"problem-solver-matrix":{menuItemId:"preocupacion",subTabId:"solver"},"concerns-by-voter":{menuItemId:"preocupacion",subTabId:"breakdown"},"priorities-evolution":{menuItemId:"preocupacion",subTabId:"evolution"},"concerns-map":{menuItemId:"preocupacion",subTabId:"map"},"framing-matrix":{menuItemId:"preocupacion",subTabId:"matrix"},"framing-analysis-t1":{menuItemId:"test-mensajes"},"media-influence":{menuItemId:"test-mensajes"}},zy=({activeItem:i,onItemClick:n,onLogoClick:o,isSidebarOpen:a,isSidebarCollapsed:u,onToggleCollapse:d})=>{const m=Zr.slice(0,-2),h=Zr.slice(-2),y=te.useRef(null),g=te.useRef(null),[v,S]=te.useState({opacity:0,top:0,height:0}),[C,A]=te.useState({opacity:0,top:0,height:0}),D=te.useRef(!1),L=te.useCallback(()=>{const P=y.current,O=g.current;if(!P||!O)return;const H=P.querySelector(`[data-menu-id="${i}"]`),Y=O.querySelector(`[data-menu-id="${i}"]`);if(H){const J=H.closest("li");if(!J)return;const K=P.getBoundingClientRect(),F=J.getBoundingClientRect();S({opacity:1,top:F.top-K.top,height:F.height}),A(ae=>({...ae,opacity:0}))}else if(Y){const J=Y.closest("li");if(!J)return;const K=O.getBoundingClientRect(),F=J.getBoundingClientRect();A({opacity:1,top:F.top-K.top,height:F.height}),S(ae=>({...ae,opacity:0}))}else S(J=>({...J,opacity:0})),A(J=>({...J,opacity:0}))},[i]);te.useEffect(()=>{D.current=!0;const P=setTimeout(()=>{D.current=!1,L()},350);return()=>clearTimeout(P)},[u,L]),te.useEffect(()=>{if(D.current)return;const P=setTimeout(L,50),O=()=>{D.current||L()};return window.addEventListener("resize",O),()=>{clearTimeout(P),window.removeEventListener("resize",O)}},[i,L]);const B=({item:P})=>{const O=i===P.id,H=P.disabled;return E.jsxs("button",{"data-menu-id":P.id,disabled:H,onClick:()=>!H&&n(P.id),className:`group/button relative z-10 flex items-center w-full text-left py-4 rounded-lg transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-400 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900 ${u?"justify-center px-0":"px-4"} ${O?"text-white":H?"text-slate-600 cursor-not-allowed":"text-slate-300 hover:text-white"}`,children:[E.jsx("span",{className:`transition-all duration-200 group-hover/button:[filter:drop-shadow(0_0_4px_currentColor)] ${u?"mr-0":"mr-4"} ${O?"text-sky-400":H?"text-slate-600":"text-slate-400 group-hover/button:text-white"}`,children:su.cloneElement(P.icon,{className:"w-6 h-6"})}),!u&&E.jsx("span",{className:"font-medium flex-1 text-sm",children:P.label}),P.isNew&&E.jsxs("span",{className:`flex h-2 w-2 top-0.5 ${u?"absolute top-1.5 right-1.5":"relative ml-auto mr-2"}`,children:[E.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-sky-400 opacity-75"}),E.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-sky-500"})]})]})};return E.jsxs("aside",{className:`fixed inset-y-0 left-0 z-40 bg-transparent flex flex-col transition-all duration-300 ease-in-out md:relative md:translate-x-0 p-0 md:py-2 md:pr-2 md:pl-0 ${a?"translate-x-0 w-64":"-translate-x-full w-64"} ${u?"md:w-24":"md:w-[17rem]"}`,children:[E.jsx("style",{children:` 82 @keyframes aurora-gradient { 83 0% { background-position: 0% 50%; } 84 50% { background-position: 100% 50%; } 85 100% { background-position: 0% 50%; } 86 } 87 .aurora-bg::before { 88 content: ''; 89 position: absolute; 90 inset: 0; 91 border-radius: inherit; 92 background: linear-gradient(125deg, #0ea5e9, #4f46e5, #d946ef); 93 background-size: 400% 400%; 94 animation: aurora-gradient 15s ease infinite; 95 filter: blur(20px); 96 opacity: 0.25; 97 z-index: -1; 98 } 99 `}),E.jsxs("div",{className:"relative flex flex-col h-full w-full rounded-none md:rounded-r-2xl overflow-hidden bg-[#0b1123]/80 backdrop-blur-2xl border-r md:border border-white/10 shadow-2xl aurora-bg",children:[E.jsx("div",{className:"flex items-center justify-center h-20 px-4 border-b border-white/10 shrink-0",children:E.jsx("button",{onClick:o,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900 focus-visible:ring-sky-500 rounded-lg p-1","aria-label":"Ir a la página de inicio",children:E.jsx(My,{isCollapsed:u})})}),E.jsxs("nav",{ref:y,className:`flex-1 py-4 overflow-y-auto relative transition-all duration-300 ${u?"px-2":"px-3"}`,children:[E.jsx("div",{className:`absolute bg-sky-500/20 shadow-lg shadow-sky-400/30 transition-all duration-500 ease-[
99cubic-bezier(0.34,1.56,0.64,1)] z-0 ${u?"w-12 left-1/2 -translate-x-1/2 rounded-full":"left-2 right-2 rounded-lg"}`,style:v}),E.jsx("ul",{className:"relative space-y-1.5",children:m.map(P=>E.jsxs("li",{className:"relative group",children:[E.jsx(B,{item:P}),u&&E.jsx("div",{className:"absolute left-full ml-4 top-1/2 -translate-y-1/2 bg-slate-950 text-white text-xs font-bold py-1.5 px-3 rounded-md opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-50 shadow-lg",children:P.label})]},P.id))})]}),E.jsxs("div",{className:`px-4 pt-3 pb-3 text-center text-[11px] leading-snug text-slate-500 shrink-0 transition-opacity duration-200 ${u?"opacity-0 h-0 invisible":"opacity-100"}`,children:[E.jsxs("p",{children:["© ",new Date().getFullYear()," Hubdem by MIDAT 1."]}),E.jsx("p",{children:"Todos los derechos reservados."})]}),E.jsxs("div",{ref:g,className:`py-3 border-t border-white/10 shrink-0 relative transition-all duration-300 ${u?"px-2":"px-3"}`,children:[E.jsx("div",{className:`absolute bg-sky-500/20 shadow-lg shadow-sky-400/30 transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] z-0 ${u?"w-12 left-1/2 -translate-x-1/2 rounded-full":"left-2 right-2 rounded-lg"}`,style:C}),E.jsx("ul",{className:"space-y-1.5 relative",children:h.map(P=>E.jsxs("li",{className:"relative group",children:[E.jsx(B,{item:P}),u&&E.jsx("div",{className:"absolute left-full ml-4 top-1/2 -translate-y-1/2 bg-slate-950 text-white text-xs font-bold py-1.5 px-3 rounded-md opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-50 shadow-lg",children:P.label})]},P.id))})]})]}),E.jsx("button",{onClick:d,className:"absolute top-1/2 -translate-y-1/2 z-50 p-1.5 hidden md:flex items-center justify-center rounded-full bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-white shadow-md transition-all duration-300 ease-in-out focus:outline-none focus:ring-2 focus:ring-slate-500",style:{right:"-0.75rem"},"aria-label":u?"Expandir menú":"Contraer menú",children:u?E.jsx(xy,{className:"w-4 h-4"}):E.jsx(Ay,{className:"w-4 h-4"})})]})};/** 100 * @license 101 * Copyright 2025 Google LLC 102 * SPDX-License-Identifier: Apache-2.0 103 */let By,Py;function Oy(){return{geminiUrl:By,vertexUrl:Py}}function Yy(i,n,o,a){var u,d;if(!(i!=null&&i.baseUrl)){const m=Oy();return n?(u=m.vertexUrl)!==null&&u!==void 0?u:o:(d=m.geminiUrl)!==null&&d!==void 0?d:a}return i.baseUrl}/** 104 * @license 105 * Copyright 2025 Google LLC 106 * SPDX-License-Identifier: Apache-2.0 107 */class rn{}function Z(i,n){const o=/\{([^}]+)\}/g;return i.replace(o,(a,u)=>{if(Object.prototype.hasOwnProperty.call(n,u)){const d=n[u];return d!=null?String(d):""}else throw new Error(`Key '${u}' not found in valueMap.`)})}function c(i,n,o){for(let d=0;d<n.length-1;d++){const m=n[d];if(m.endsWith("[]")){const h=m.slice(0,-2);if(!(h in i))if(Array.isArray(o))i[h]=Array.from({length:o.length},()=>({}));else throw new Error(`Value must be a list given an array path ${m}`);if(Array.isArray(i[h])){const y=i[h];if(Array.isArray(o))for(let g=0;g<y.length;g++){const v=y[g];c(v,n.slice(d+1),o[g])}else for(const g of y)c(g,n.slice(d+1),o)}return}else if(m.endsWith("[0]")){const h=m.slice(0,-3);h in i||(i[h]=[{}]);const y=i[h];c(y[0],n.slice(d+1),o);return}(!i[m]||typeof i[m]!="object")&&(i[m]={}),i=i[m]}const a=n[n.length-1],u=i[a];if(u!==void 0){if(!o||typeof o=="object"&&Object.keys(o).length===0||o===u)return;if(typeof u=="object"&&typeof o=="object"&&u!==null&&o!==null)Object.assign(u,o);else throw new Error(`Cannot set value for an existing key. Key: ${a}`)}else a==="_self"&&typeof o=="object"&&o!==null&&!Array.isArray(o)?Object.assign(i,o):i[a]=o}function r(i,n,o=void 0){try{if(n.length===1&&n[0]==="_self")return i;for(let a=0;a<n.length;a++){if(typeof i!="object"||i===null)return o;const u=n[a];if(u.endsWith("[]")){const d=u.slice(0,-2);if(d in i){const m=i[d];return Array.isArray(m)?m.map(h=>r(h,n.slice(a+1),o)):o}else return o}else i=i[u]}return i}catch(a){if(a instanceof TypeError)return o;throw a}}function Fy(i,n){for(const[o,a]of Object.entries(n)){const u=o.split("."),d=a.split("."),m=new Set;let h=-1;for(let y=0;y<u.length;y++)if(u[y]==="*"){h=y;break}if(h!==-1&&d.length>h)for(let y=h;y<d.length;y++){const g=d[y];g!=="*"&&!g.endsWith("[]")&&!g.endsWith("[0]")&&m.add(g)}Wr(i,u,d,0,m)}}function Wr(i,n,o,a,u){if(a>=n.length||typeof i!="object"||i===null)return;const d=n[a];if(d.endsWith("[]")){const m=d.slice(0,-2),h=i;if(m in h&&Array.isArray(h[m]))for(const y of h[m])Wr(y,n,o,a+1,u)}else if(d==="*"){if(typeof i=="object"&&i!==null&&!Array.isArray(i)){const m=i,h=Object.keys(m).filter(g=>!g.startsWith("_")&&!u.has(g)),y={};for(const g of h)y[g]=m[g];for(const[g,v]of Object.entries(y)){const S=[];for(const C of o.slice(a))C==="*"?S.push(g):S.push(C);c(m,S,v)}for(const g of h)delete m[g]}}else{const m=i;d in m&&Wr(m[d],n,o,a+1,u)}}/** 108 * @license 109 * Copyright 2025 Google LLC 110 * SPDX-License-Identifier: Apache-2.0
111 */function ru(i){if(typeof i!="string")throw new Error("fromImageBytes must be a string");return i}/** 112 * @license 113 * Copyright 2025 Google LLC 114 * SPDX-License-Identifier: Apache-2.0 115 */function Jy(i){const n={},o=r(i,["operationName"]);o!=null&&c(n,["operationName"],o);const a=r(i,["resourceName"]);return a!=null&&c(n,["_url","resourceName"],a),n}function Xy(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response","generateVideoResponse"]);return m!=null&&c(n,["response"],Qy(m)),n}function Ky(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response"]);return m!=null&&c(n,["response"],Zy(m)),n}function Qy(i){const n={},o=r(i,["generatedSamples"]);if(o!=null){let d=o;Array.isArray(d)&&(d=d.map(m=>Wy(m))),c(n,["generatedVideos"],d)}const a=r(i,["raiMediaFilteredCount"]);a!=null&&c(n,["raiMediaFilteredCount"],a);const u=r(i,["raiMediaFilteredReasons"]);return u!=null&&c(n,["raiMediaFilteredReasons"],u),n}function Zy(i){const n={},o=r(i,["videos"]);if(o!=null){let d=o;Array.isArray(d)&&(d=d.map(m=>$y(m))),c(n,["generatedVideos"],d)}const a=r(i,["raiMediaFilteredCount"]);a!=null&&c(n,["raiMediaFilteredCount"],a);const u=r(i,["raiMediaFilteredReasons"]);return u!=null&&c(n,["raiMediaFilteredReasons"],u),n}function Wy(i){const n={},o=r(i,["video"]);return o!=null&&c(n,["video"],lv(o)),n}function $y(i){const n={},o=r(i,["_self"]);return o!=null&&c(n,["video"],ov(o)),n}function jy(i){const n={},o=r(i,["operationName"]);return o!=null&&c(n,["_url","operationName"],o),n}function ev(i){const n={},o=r(i,["operationName"]);return o!=null&&c(n,["_url","operationName"],o),n}function tv(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response"]);return m!=null&&c(n,["response"],nv(m)),n}function nv(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["parent"]);a!=null&&c(n,["parent"],a);const u=r(i,["documentName"]);return u!=null&&c(n,["documentName"],u),n}function lh(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response"]);return m!=null&&c(n,["response"],iv(m)),n}function iv(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["parent"]);a!=null&&c(n,["parent"],a);const u=r(i,["documentName"]);return u!=null&&c(n,["documentName"],u),n}function lv(i){const n={},o=r(i,["uri"]);o!=null&&c(n,["uri"],o);const a=r(i,["encodedVideo"]);a!=null&&c(n,["videoBytes"],ru(a));const u=r(i,["encoding"]);return u!=null&&c(n,["mimeType"],u),n}function ov(i){const n={},o=r(i,["gcsUri"]);o!=null&&c(n,["uri"],o);const a=r(i,["bytesBase64Encoded"]);a!=null&&c(n,["videoBytes"],ru(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["mimeType"],u),n}/** 116 * @license 117 * Copyright 2025 Google LLC 118 * SPDX-License-Identifier: Apache-2.0 119 */var Np;(function(i){i.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",i.OUTCOME_OK="OUTCOME_OK",i.OUTCOME_FAILED="OUTCOME_FAILED",i.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(Np||(Np={}));var Ip;(function(i){i.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",i.PYTHON="PYTHON"})(Ip||(Ip={}));var Dp;(function(i){i.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",i.SILENT="SILENT",i.WHEN_IDLE="WHEN_IDLE",i.INTERRUPT="INTERRUPT"})(Dp||(Dp={}));var kn;(function(i){i.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",i.STRING="STRING",i.NUMBER="NUMBER",i.INTEGER="INTEGER",i.BOOLEAN="BOOLEAN",i.ARRAY="ARRAY",i.OBJECT="OBJECT",i.NULL="NULL"})(kn||(kn={}));var bp;(function(i){i.MODE_UNSPECIFIED="MODE_UNSPECIFIED",i.MODE_DYNAMIC="MODE_DYNAMIC"})(bp||(bp={}));var Lp;(function(i){i.API_SPEC_UNSPECIFIED="API_SPEC_UNSPECIFIED",i.SIMPLE_SEARCH="SIMPLE_SEARCH",i.ELASTIC_SEARCH="ELASTIC_SEARCH"})(Lp||(Lp={}));var Up;(function(i){i.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",i.NO_AUTH="NO_AUTH",i.API_KEY_AUTH="API_KEY_AUTH",i.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",i.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",i.OAUTH="OAUTH",i.OIDC_AUTH="OIDC_AUTH"})(Up||(Up={}));var kp;(function(i){i.HTTP_IN_UNSPECIFIED="HTTP_IN_UNSPECIFIED",i.HTTP_IN_QUERY="HTTP_IN_QUERY",i.HTTP_IN_HEADER="HTTP_IN_HEADER",i.HTTP_IN_PATH="HTTP_IN_PATH",i.HTTP_IN_BODY="HTTP_IN_BODY",i.HTTP_IN_COOKIE="HTTP_IN_COOKIE"})(kp||(kp={}));var Hp;(function(i){i.PHISH_BLOCK_THRESHOLD_UNSPECIFIED="PHISH_BLOCK_THRESHOLD_UNSPECIFIED",i.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",i.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",i.BLOCK_HIGH_AND_ABOVE="BLOCK_HIGH_AND_ABOVE",i.BLOCK_HIGHER_AND_ABOVE="BLOCK_HIGHER_AND_ABOVE",i.BLOCK_VERY_HIGH_AND_ABOVE="BLOCK_VERY_HIGH_AND_ABOVE",i.BLOCK_ONLY_EXTREMELY_HIGH="BLOCK_ONLY_EXTREMELY_HIGH"})(Hp||(Hp={}));var qp;(function(i){i.THINKING_LEVEL_UNSPECIFIED="THINKING_LEVEL_UNSPECIFIED",i.LOW="LOW",i.HIGH="HIGH"})(qp||(qp={}));var Gp;(function(i){i.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",i.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",i.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",i.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",i.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",i.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY",i.HARM_CATEGORY_IMAGE_HATE="HARM_CATEGORY_IMAGE_HATE",i.HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT="HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",i.HARM_CATEGORY_IMAGE_HARASSMENT="HARM_CATEGORY_IMAGE_HARASSMENT",i.HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT="HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",i.HARM_CATEGORY_JAILBREAK="HARM_CATEGORY_JAILBREAK"})(Gp||(Gp={}));var Vp;(function(i){i.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",i.SEVERITY="SEVERITY",i.PROBABILITY="PROBABILITY"}
119)(Vp||(Vp={}));var zp;(function(i){i.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",i.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",i.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",i.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",i.BLOCK_NONE="BLOCK_NONE",i.OFF="OFF"})(zp||(zp={}));var Bp;(function(i){i.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",i.STOP="STOP",i.MAX_TOKENS="MAX_TOKENS",i.SAFETY="SAFETY",i.RECITATION="RECITATION",i.LANGUAGE="LANGUAGE",i.OTHER="OTHER",i.BLOCKLIST="BLOCKLIST",i.PROHIBITED_CONTENT="PROHIBITED_CONTENT",i.SPII="SPII",i.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",i.IMAGE_SAFETY="IMAGE_SAFETY",i.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL",i.IMAGE_PROHIBITED_CONTENT="IMAGE_PROHIBITED_CONTENT",i.NO_IMAGE="NO_IMAGE"})(Bp||(Bp={}));var Pp;(function(i){i.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",i.NEGLIGIBLE="NEGLIGIBLE",i.LOW="LOW",i.MEDIUM="MEDIUM",i.HIGH="HIGH"})(Pp||(Pp={}));var Op;(function(i){i.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",i.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",i.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",i.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",i.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(Op||(Op={}));var Yp;(function(i){i.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",i.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",i.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR",i.URL_RETRIEVAL_STATUS_PAYWALL="URL_RETRIEVAL_STATUS_PAYWALL",i.URL_RETRIEVAL_STATUS_UNSAFE="URL_RETRIEVAL_STATUS_UNSAFE"})(Yp||(Yp={}));var Fp;(function(i){i.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",i.SAFETY="SAFETY",i.OTHER="OTHER",i.BLOCKLIST="BLOCKLIST",i.PROHIBITED_CONTENT="PROHIBITED_CONTENT",i.IMAGE_SAFETY="IMAGE_SAFETY",i.MODEL_ARMOR="MODEL_ARMOR",i.JAILBREAK="JAILBREAK"})(Fp||(Fp={}));var Jp;(function(i){i.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",i.ON_DEMAND="ON_DEMAND",i.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(Jp||(Jp={}));var ha;(function(i){i.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",i.TEXT="TEXT",i.IMAGE="IMAGE",i.AUDIO="AUDIO"})(ha||(ha={}));var Xp;(function(i){i.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",i.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",i.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",i.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(Xp||(Xp={}));var Kp;(function(i){i.TUNING_MODE_UNSPECIFIED="TUNING_MODE_UNSPECIFIED",i.TUNING_MODE_FULL="TUNING_MODE_FULL",i.TUNING_MODE_PEFT_ADAPTER="TUNING_MODE_PEFT_ADAPTER"})(Kp||(Kp={}));var Qp;(function(i){i.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",i.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",i.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",i.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",i.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",i.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",i.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(Qp||(Qp={}));var $r;(function(i){i.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",i.JOB_STATE_QUEUED="JOB_STATE_QUEUED",i.JOB_STATE_PENDING="JOB_STATE_PENDING",i.JOB_STATE_RUNNING="JOB_STATE_RUNNING",i.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",i.JOB_STATE_FAILED="JOB_STATE_FAILED",i.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",i.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",i.JOB_STATE_PAUSED="JOB_STATE_PAUSED",i.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",i.JOB_STATE_UPDATING="JOB_STATE_UPDATING",i.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})($r||($r={}));var Zp;(function(i){i.TUNING_TASK_UNSPECIFIED="TUNING_TASK_UNSPECIFIED",i.TUNING_TASK_I2V="TUNING_TASK_I2V",i.TUNING_TASK_T2V="TUNING_TASK_T2V",i.TUNING_TASK_R2V="TUNING_TASK_R2V"})(Zp||(Zp={}));var Wp;(function(i){i.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",i.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",i.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",i.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(Wp||(Wp={}));var $p;(function(i){i.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",i.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",i.BALANCED="BALANCED",i.PRIORITIZE_COST="PRIORITIZE_COST"})($p||($p={}));var jp;(function(i){i.UNSPECIFIED="UNSPECIFIED",i.BLOCKING="BLOCKING",i.NON_BLOCKING="NON_BLOCKING"})(jp||(jp={}));var em;(function(i){i.MODE_UNSPECIFIED="MODE_UNSPECIFIED",i.MODE_DYNAMIC="MODE_DYNAMIC"})(em||(em={}));var tm;(function(i){i.ENVIRONMENT_UNSPECIFIED="ENVIRONMENT_UNSPECIFIED",i.ENVIRONMENT_BROWSER="ENVIRONMENT_BROWSER"})(tm||(tm={}));var nm;(function(i){i.MODE_UNSPECIFIED="MODE_UNSPECIFIED",i.AUTO="AUTO",i.ANY="ANY",i.NONE="NONE",i.VALIDATED="VALIDATED"}
119)(nm||(nm={}));var im;(function(i){i.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",i.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",i.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",i.BLOCK_NONE="BLOCK_NONE"})(im||(im={}));var lm;(function(i){i.DONT_ALLOW="DONT_ALLOW",i.ALLOW_ADULT="ALLOW_ADULT",i.ALLOW_ALL="ALLOW_ALL"})(lm||(lm={}));var om;(function(i){i.auto="auto",i.en="en",i.ja="ja",i.ko="ko",i.hi="hi",i.zh="zh",i.pt="pt",i.es="es"})(om||(om={}));var am;(function(i){i.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",i.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",i.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",i.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",i.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(am||(am={}));var sm;(function(i){i.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",i.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",i.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",i.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(sm||(sm={}));var rm;(function(i){i.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",i.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",i.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",i.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(rm||(rm={}));var um;(function(i){i.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",i.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",i.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",i.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",i.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",i.EDIT_MODE_STYLE="EDIT_MODE_STYLE",i.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",i.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(um||(um={}));var cm;(function(i){i.FOREGROUND="FOREGROUND",i.BACKGROUND="BACKGROUND",i.PROMPT="PROMPT",i.SEMANTIC="SEMANTIC",i.INTERACTIVE="INTERACTIVE"})(cm||(cm={}));var fm;(function(i){i.ASSET="ASSET",i.STYLE="STYLE"})(fm||(fm={}));var dm;(function(i){i.INSERT="INSERT",i.REMOVE="REMOVE",i.REMOVE_STATIC="REMOVE_STATIC",i.OUTPAINT="OUTPAINT"})(dm||(dm={}));var pm;(function(i){i.OPTIMIZED="OPTIMIZED",i.LOSSLESS="LOSSLESS"})(pm||(pm={}));var mm;(function(i){i.SUPERVISED_FINE_TUNING="SUPERVISED_FINE_TUNING",i.PREFERENCE_TUNING="PREFERENCE_TUNING"})(mm||(mm={}));var hm;(function(i){i.STATE_UNSPECIFIED="STATE_UNSPECIFIED",i.STATE_PENDING="STATE_PENDING",i.STATE_ACTIVE="STATE_ACTIVE",i.STATE_FAILED="STATE_FAILED"})(hm||(hm={}));var gm;(function(i){i.STATE_UNSPECIFIED="STATE_UNSPECIFIED",i.PROCESSING="PROCESSING",i.ACTIVE="ACTIVE",i.FAILED="FAILED"})(gm||(gm={}));var ym;(function(i){i.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",i.UPLOADED="UPLOADED",i.GENERATED="GENERATED"})(ym||(ym={}));var vm;(function(i){i.TURN_COMPLETE_REASON_UNSPECIFIED="TURN_COMPLETE_REASON_UNSPECIFIED",i.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",i.RESPONSE_REJECTED="RESPONSE_REJECTED",i.NEED_MORE_INPUT="NEED_MORE_INPUT"})(vm||(vm={}));var Tm;(function(i){i.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",i.TEXT="TEXT",i.IMAGE="IMAGE",i.VIDEO="VIDEO",i.AUDIO="AUDIO",i.DOCUMENT="DOCUMENT"})(Tm||(Tm={}));var Em;(function(i){i.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",i.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",i.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(Em||(Em={}));var Sm;(function(i){i.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",i.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",i.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(Sm||(Sm={}));var Cm;(function(i){i.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",i.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",i.NO_INTERRUPTION="NO_INTERRUPTION"})(Cm||(Cm={}));var _m;(function(i){i.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",i.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",i.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT"})(_m||(_m={}));var Am;(function(i){i.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",i.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",i.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",i.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",i.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",i.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",i.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",i.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",i.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",i.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",i.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",i.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",i.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(Am||(Am={}));var xm;(function(i){i.MUSIC_GENERATION_MODE_UNSPECIFIED="MUSIC_GENERATION_MODE_UNSPECIFIED",i.QUALITY="QUALITY",i.DIVERSITY="DIVERSITY",i.VOCALIZATION="VOCALIZATION"})(xm||(xm={}));var Bi;(function(i){i.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",i.PLAY="PLAY",i.PAUSE="PAUSE",i.STOP="STOP",i.RESET_CONTEXT="RESET_CONTEXT"})(Bi||(Bi={}));
119class jr{constructor(n){const o={};for(const a of n.headers.entries())o[a[0]]=a[1];this.headers=o,this.responseInternal=n}json(){return this.responseInternal.json()}}class Yl{get text(){var n,o,a,u,d,m,h,y;if(((u=(a=(o=(n=this.candidates)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.content)===null||a===void 0?void 0:a.parts)===null||u===void 0?void 0:u.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let g="",v=!1;const S=[];for(const C of(y=(h=(m=(d=this.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content)===null||h===void 0?void 0:h.parts)!==null&&y!==void 0?y:[]){for(const[A,D]of Object.entries(C))A!=="text"&&A!=="thought"&&A!=="thoughtSignature"&&(D!==null||D!==void 0)&&S.push(A);if(typeof C.text=="string"){if(typeof C.thought=="boolean"&&C.thought)continue;v=!0,g+=C.text}}return S.length>0&&console.warn(`there are non-text parts ${S} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),v?g:void 0}get data(){var n,o,a,u,d,m,h,y;if(((u=(a=(o=(n=this.candidates)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.content)===null||a===void 0?void 0:a.parts)===null||u===void 0?void 0:u.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let g="";const v=[];for(const S of(y=(h=(m=(d=this.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content)===null||h===void 0?void 0:h.parts)!==null&&y!==void 0?y:[]){for(const[C,A]of Object.entries(S))C!=="inlineData"&&(A!==null||A!==void 0)&&v.push(C);S.inlineData&&typeof S.inlineData.data=="string"&&(g+=atob(S.inlineData.data))}return v.length>0&&console.warn(`there are non-data parts ${v} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),g.length>0?btoa(g):void 0}get functionCalls(){var n,o,a,u,d,m,h,y;if(((u=(a=(o=(n=this.candidates)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.content)===null||a===void 0?void 0:a.parts)===null||u===void 0?void 0:u.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");const g=(y=(h=(m=(d=this.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content)===null||h===void 0?void 0:h.parts)===null||y===void 0?void 0:y.filter(v=>v.functionCall).map(v=>v.functionCall).filter(v=>v!==void 0);if((g==null?void 0:g.length)!==0)return g}get executableCode(){var n,o,a,u,d,m,h,y,g;if(((u=(a=(o=(n=this.candidates)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.content)===null||a===void 0?void 0:a.parts)===null||u===void 0?void 0:u.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");const v=(y=(h=(m=(d=this.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content)===null||h===void 0?void 0:h.parts)===null||y===void 0?void 0:y.filter(S=>S.executableCode).map(S=>S.executableCode).filter(S=>S!==void 0);if((v==null?void 0:v.length)!==0)return(g=v==null?void 0:v[0])===null||g===void 0?void 0:g.code}get codeExecutionResult(){var n,o,a,u,d,m,h,y,g;if(((u=(a=(o=(n=this.candidates)===null||n===void 0?void 0:n[0])===null||o===void 0?void 0:o.content)===null||a===void 0?void 0:a.parts)===null||u===void 0?void 0:u.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");const v=(y=(h=(m=(d=this.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content)===null||h===void 0?void 0:h.parts)===null||y===void 0?void 0:y.filter(S=>S.codeExecutionResult).map(S=>S.codeExecutionResult).filter(S=>S!==void 0);if((v==null?void 0:v.length)!==0)return(g=v==null?void 0:v[0])===null||g===void 0?void 0:g.output}}class Mm{}class wm{}class av{}class sv{}class rv{}class uv{}class Rm{}class Nm{}class Im{}class cv{}class ga{_fromAPIResponse({apiResponse:n,_isVertexAI:o}){const a=new ga;let u;const d=n;return o?u=Ky(d):u=Xy(d),Object.assign(a,u),a}}class Dm{}class bm{}class Lm{}class fv{}class dv{}class pv{}class uu{_fromAPIResponse({apiResponse:n,_isVertexAI:o}){const a=new uu,d=tv(n);return Object.assign(a,d),a}}class mv{}class hv{}class gv{}class Um{}class yv{get text(){var n,o,a;let u="",d=!1;const m=[];for(const h of(a=(o=(n=this.serverContent)===null||n===void 0?void 0:n.modelTurn)===null||o===void 0?void 0:o.parts)!==null&&a!==void 0?a:[]){for(const[y,g]of Object.entries(h))y!=="text"&&y!=="thought"&&g!==null&&m.push(y);if(typeof h.text=="string"){if(typeof h.thought=="boolean"&&h.thought)continue;d=!0,u+=h.text}}return m.length>0&&console.warn(`there are non-text parts ${m} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),d?u:void 0}get data(){var n,o,a;let u="";const d=[];for(const m of(a=(o=(n=this.serverContent)===null||n===void 0?void 0:n.modelTurn)===null||o===void 0?void 0:o.parts)!==null&&a!==void 0?a:[]){for(const[h,y]of Object.entries(m))h!=="inlineData"&&y!==null&&d.push(h);
119m.inlineData&&typeof m.inlineData.data=="string"&&(u+=atob(m.inlineData.data))}return d.length>0&&console.warn(`there are non-data parts ${d} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),u.length>0?btoa(u):void 0}}class vv{get audioChunk(){if(this.serverContent&&this.serverContent.audioChunks&&this.serverContent.audioChunks.length>0)return this.serverContent.audioChunks[0]}}class cu{_fromAPIResponse({apiResponse:n,_isVertexAI:o}){const a=new cu,d=lh(n);return Object.assign(a,d),a}}/** 120 * @license 121 * Copyright 2025 Google LLC 122 * SPDX-License-Identifier: Apache-2.0 123 */function Se(i,n){if(!n||typeof n!="string")throw new Error("model is required and must be a string");if(n.includes("..")||n.includes("?")||n.includes("&"))throw new Error("invalid model parameter");if(i.isVertexAI()){if(n.startsWith("publishers/")||n.startsWith("projects/")||n.startsWith("models/"))return n;if(n.indexOf("/")>=0){const o=n.split("/",2);return`publishers/${o[0]}/models/${o[1]}`}else return`publishers/google/models/${n}`}else return n.startsWith("models/")||n.startsWith("tunedModels/")?n:`models/${n}`}function oh(i,n){const o=Se(i,n);return o?o.startsWith("publishers/")&&i.isVertexAI()?`projects/${i.getProject()}/locations/${i.getLocation()}/${o}`:o.startsWith("models/")&&i.isVertexAI()?`projects/${i.getProject()}/locations/${i.getLocation()}/publishers/google/${o}`:o:""}function ah(i){return Array.isArray(i)?i.map(n=>ya(n)):[ya(i)]}function ya(i){if(typeof i=="object"&&i!==null)return i;throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof i}`)}function sh(i){const n=ya(i);if(n.mimeType&&n.mimeType.startsWith("image/"))return n;throw new Error(`Unsupported mime type: ${n.mimeType}`)}function rh(i){const n=ya(i);if(n.mimeType&&n.mimeType.startsWith("audio/"))return n;throw new Error(`Unsupported mime type: ${n.mimeType}`)}function km(i){if(i==null)throw new Error("PartUnion is required");if(typeof i=="object")return i;if(typeof i=="string")return{text:i};throw new Error(`Unsupported part type: ${typeof i}`)}function uh(i){if(i==null||Array.isArray(i)&&i.length===0)throw new Error("PartListUnion is required");return Array.isArray(i)?i.map(n=>km(n)):[km(i)]}function eu(i){return i!=null&&typeof i=="object"&&"parts"in i&&Array.isArray(i.parts)}function Hm(i){return i!=null&&typeof i=="object"&&"functionCall"in i}function qm(i){return i!=null&&typeof i=="object"&&"functionResponse"in i}function nt(i){if(i==null)throw new Error("ContentUnion is required");return eu(i)?i:{role:"user",parts:uh(i)}}function fu(i,n){if(!n)return[];if(i.isVertexAI()&&Array.isArray(n))return n.flatMap(o=>{const a=nt(o);return a.parts&&a.parts.length>0&&a.parts[0].text!==void 0?[a.parts[0].text]:[]});if(i.isVertexAI()){const o=nt(n);return o.parts&&o.parts.length>0&&o.parts[0].text!==void 0?[o.parts[0].text]:[]}return Array.isArray(n)?n.map(o=>nt(o)):[nt(n)]}function Lt(i){if(i==null||Array.isArray(i)&&i.length===0)throw new Error("contents are required");if(!Array.isArray(i)){if(Hm(i)||qm(i))throw new Error("To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them");return[nt(i)]}const n=[],o=[],a=eu(i[0]);for(const u of i){const d=eu(u);if(d!=a)throw new Error("Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them");if(d)n.push(u);else{if(Hm(u)||qm(u))throw new Error("To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them");o.push(u)}}return a||n.push({role:"user",parts:uh(o)}),n}function Tv(i,n){i.includes("null")&&(n.nullable=!0);const o=i.filter(a=>a!=="null");if(o.length===1)n.type=Object.values(kn).includes(o[0].toUpperCase())?o[0].toUpperCase():kn.TYPE_UNSPECIFIED;else{n.anyOf=[];for(const a of o)n.anyOf.push({type:Object.values(kn).includes(a.toUpperCase())?a.toUpperCase():kn.TYPE_UNSPECIFIED})}}function Pi(i){const n={},o=["items"],a=["anyOf"],u=["properties"];
123if(i.type&&i.anyOf)throw new Error("type and anyOf cannot be both populated.");const d=i.anyOf;d!=null&&d.length==2&&(d[0].type==="null"?(n.nullable=!0,i=d[1]):d[1].type==="null"&&(n.nullable=!0,i=d[0])),i.type instanceof Array&&Tv(i.type,n);for(const[m,h]of Object.entries(i))if(h!=null)if(m=="type"){if(h==="null")throw new Error("type: null can not be the only possible type for the field.");if(h instanceof Array)continue;n.type=Object.values(kn).includes(h.toUpperCase())?h.toUpperCase():kn.TYPE_UNSPECIFIED}else if(o.includes(m))n[m]=Pi(h);else if(a.includes(m)){const y=[];for(const g of h){if(g.type=="null"){n.nullable=!0;continue}y.push(Pi(g))}n[m]=y}else if(u.includes(m)){const y={};for(const[g,v]of Object.entries(h))y[g]=Pi(v);n[m]=y}else{if(m==="additionalProperties")continue;n[m]=h}return n}function du(i){return Pi(i)}function pu(i){if(typeof i=="object")return i;if(typeof i=="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:i}}};throw new Error(`Unsupported speechConfig type: ${typeof i}`)}function mu(i){if("multiSpeakerVoiceConfig"in i)throw new Error("multiSpeakerVoiceConfig is not supported in the live API.");return i}function Fi(i){if(i.functionDeclarations)for(const n of i.functionDeclarations)n.parameters&&(Object.keys(n.parameters).includes("$schema")?n.parametersJsonSchema||(n.parametersJsonSchema=n.parameters,delete n.parameters):n.parameters=Pi(n.parameters)),n.response&&(Object.keys(n.response).includes("$schema")?n.responseJsonSchema||(n.responseJsonSchema=n.response,delete n.response):n.response=Pi(n.response));return i}function Ji(i){if(i==null)throw new Error("tools is required");if(!Array.isArray(i))throw new Error("tools is required and must be an array of Tools");const n=[];for(const o of i)n.push(o);return n}function Ev(i,n,o,a=1){const u=!n.startsWith(`${o}/`)&&n.split("/").length===a;return i.isVertexAI()?n.startsWith("projects/")?n:n.startsWith("locations/")?`projects/${i.getProject()}/${n}`:n.startsWith(`${o}/`)?`projects/${i.getProject()}/locations/${i.getLocation()}/${n}`:u?`projects/${i.getProject()}/locations/${i.getLocation()}/${o}/${n}`:n:u?`${o}/${n}`:n}function un(i,n){if(typeof n!="string")throw new Error("name must be a string");return Ev(i,n,"cachedContents")}function ch(i){switch(i){case"STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case"CREATING":return"JOB_STATE_RUNNING";case"ACTIVE":return"JOB_STATE_SUCCEEDED";case"FAILED":return"JOB_STATE_FAILED";default:return i}}function Hn(i){return ru(i)}function Sv(i){return i!=null&&typeof i=="object"&&"name"in i}function Cv(i){return i!=null&&typeof i=="object"&&"video"in i}function _v(i){return i!=null&&typeof i=="object"&&"uri"in i}function fh(i){var n;let o;if(Sv(i)&&(o=i.name),!(_v(i)&&(o=i.uri,o===void 0))&&!(Cv(i)&&(o=(n=i.video)===null||n===void 0?void 0:n.uri,o===void 0))){if(typeof i=="string"&&(o=i),o===void 0)throw new Error("Could not extract file name from the provided input.");if(o.startsWith("https://")){const u=o.split("files/")[1].match(/[a-z0-9]+/);if(u===null)throw new Error(`Could not extract file name from URI ${o}`);o=u[0]}else o.startsWith("files/")&&(o=o.split("files/")[1]);return o}}function dh(i,n){let o;return i.isVertexAI()?o=n?"publishers/google/models":"models":o=n?"models":"tunedModels",o}function ph(i){for(const n of["models","tunedModels","publisherModels"])if(Av(i,n))return i[n];return[]}function Av(i,n){return i!==null&&typeof i=="object"&&n in i}function xv(i,n={}){const o=i,a={name:o.name,description:o.description,parametersJsonSchema:o.inputSchema};
123return o.outputSchema&&(a.responseJsonSchema=o.outputSchema),n.behavior&&(a.behavior=n.behavior),{functionDeclarations:[a]}}function Mv(i,n={}){const o=[],a=new Set;for(const u of i){const d=u.name;if(a.has(d))throw new Error(`Duplicate function name ${d} found in MCP tools. Please ensure function names are unique.`);a.add(d);const m=xv(u,n);m.functionDeclarations&&o.push(...m.functionDeclarations)}return{functionDeclarations:o}}function mh(i,n){let o;if(typeof n=="string")if(i.isVertexAI())if(n.startsWith("gs://"))o={format:"jsonl",gcsUri:[n]};else if(n.startsWith("bq://"))o={format:"bigquery",bigqueryUri:n};else throw new Error(`Unsupported string source for Vertex AI: ${n}`);else if(n.startsWith("files/"))o={fileName:n};else throw new Error(`Unsupported string source for Gemini API: ${n}`);else if(Array.isArray(n)){if(i.isVertexAI())throw new Error("InlinedRequest[] is not supported in Vertex AI.");o={inlinedRequests:n}}else o=n;const a=[o.gcsUri,o.bigqueryUri].filter(Boolean).length,u=[o.inlinedRequests,o.fileName].filter(Boolean).length;if(i.isVertexAI()){if(u>0||a!==1)throw new Error("Exactly one of `gcsUri` or `bigqueryUri` must be set for Vertex AI.")}else if(a>0||u!==1)throw new Error("Exactly one of `inlinedRequests`, `fileName`, must be set for Gemini API.");return o}function wv(i){if(typeof i!="string")return i;const n=i;if(n.startsWith("gs://"))return{format:"jsonl",gcsUri:n};if(n.startsWith("bq://"))return{format:"bigquery",bigqueryUri:n};throw new Error(`Unsupported destination: ${n}`)}function hh(i){if(typeof i!="object"||i===null)return{};const n=i,o=n.inlinedResponses;if(typeof o!="object"||o===null)return i;const u=o.inlinedResponses;if(!Array.isArray(u)||u.length===0)return i;let d=!1;for(const m of u){if(typeof m!="object"||m===null)continue;const y=m.response;if(typeof y!="object"||y===null)continue;if(y.embedding!==void 0){d=!0;break}}return d&&(n.inlinedEmbedContentResponses=n.inlinedResponses,delete n.inlinedResponses),i}function Xi(i,n){const o=n;if(!i.isVertexAI()){if(/batches\/[^/]+$/.test(o))return o.split("/").pop();throw new Error(`Invalid batch job name: ${o}.`)}if(/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/.test(o))return o.split("/").pop();if(/^\d+$/.test(o))return o;throw new Error(`Invalid batch job name: ${o}.`)}function gh(i){const n=i;return n==="BATCH_STATE_UNSPECIFIED"?"JOB_STATE_UNSPECIFIED":n==="BATCH_STATE_PENDING"?"JOB_STATE_PENDING":n==="BATCH_STATE_RUNNING"?"JOB_STATE_RUNNING":n==="BATCH_STATE_SUCCEEDED"?"JOB_STATE_SUCCEEDED":n==="BATCH_STATE_FAILED"?"JOB_STATE_FAILED":n==="BATCH_STATE_CANCELLED"?"JOB_STATE_CANCELLED":n==="BATCH_STATE_EXPIRED"?"JOB_STATE_EXPIRED":n}/** 124 * @license 125 * Copyright 2025 Google LLC 126 * SPDX-License-Identifier: Apache-2.0 127 */function Rv(i){const n={},o=r(i,["responsesFile"]);o!=null&&c(n,["fileName"],o);const a=r(i,["inlinedResponses","inlinedResponses"]);if(a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>r1(m))),c(n,["inlinedResponses"],d)}const u=r(i,["inlinedEmbedContentResponses","inlinedResponses"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["inlinedEmbedContentResponses"],d)}return n}function Nv(i){const n={},o=r(i,["predictionsFormat"]);o!=null&&c(n,["format"],o);const a=r(i,["gcsDestination","outputUriPrefix"]);a!=null&&c(n,["gcsUri"],a);const u=r(i,["bigqueryDestination","outputUri"]);return u!=null&&c(n,["bigqueryUri"],u),n}function Iv(i){const n={},o=r(i,["format"]);o!=null&&c(n,["predictionsFormat"],o);const a=r(i,["gcsUri"]);a!=null&&c(n,["gcsDestination","outputUriPrefix"],a);const u=r(i,["bigqueryUri"]);if(u!=null&&c(n,["bigqueryDestination","outputUri"],u),r(i,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Vertex AI.");if(r(i,["inlinedResponses"])!==void 0)throw new Error("inlinedResponses parameter is not supported in Vertex AI.");if(r(i,["inlinedEmbedContentResponses"])!==void 0)throw new Error("inlinedEmbedContentResponses parameter is not supported in Vertex AI.");return n}function pa(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata","displayName"]);a!=null&&c(n,["displayName"],a);
127const u=r(i,["metadata","state"]);u!=null&&c(n,["state"],gh(u));const d=r(i,["metadata","createTime"]);d!=null&&c(n,["createTime"],d);const m=r(i,["metadata","endTime"]);m!=null&&c(n,["endTime"],m);const h=r(i,["metadata","updateTime"]);h!=null&&c(n,["updateTime"],h);const y=r(i,["metadata","model"]);y!=null&&c(n,["model"],y);const g=r(i,["metadata","output"]);return g!=null&&c(n,["dest"],Rv(hh(g))),n}function tu(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["displayName"]);a!=null&&c(n,["displayName"],a);const u=r(i,["state"]);u!=null&&c(n,["state"],gh(u));const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["createTime"]);m!=null&&c(n,["createTime"],m);const h=r(i,["startTime"]);h!=null&&c(n,["startTime"],h);const y=r(i,["endTime"]);y!=null&&c(n,["endTime"],y);const g=r(i,["updateTime"]);g!=null&&c(n,["updateTime"],g);const v=r(i,["model"]);v!=null&&c(n,["model"],v);const S=r(i,["inputConfig"]);S!=null&&c(n,["src"],Dv(S));const C=r(i,["outputConfig"]);C!=null&&c(n,["dest"],Nv(hh(C)));const A=r(i,["completionStats"]);return A!=null&&c(n,["completionStats"],A),n}function Dv(i){const n={},o=r(i,["instancesFormat"]);o!=null&&c(n,["format"],o);const a=r(i,["gcsSource","uris"]);a!=null&&c(n,["gcsUri"],a);const u=r(i,["bigquerySource","inputUri"]);return u!=null&&c(n,["bigqueryUri"],u),n}function bv(i,n){const o={};if(r(n,["format"])!==void 0)throw new Error("format parameter is not supported in Gemini API.");if(r(n,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(r(n,["bigqueryUri"])!==void 0)throw new Error("bigqueryUri parameter is not supported in Gemini API.");const a=r(n,["fileName"]);a!=null&&c(o,["fileName"],a);const u=r(n,["inlinedRequests"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>s1(i,m))),c(o,["requests","requests"],d)}return o}function Lv(i){const n={},o=r(i,["format"]);o!=null&&c(n,["instancesFormat"],o);const a=r(i,["gcsUri"]);a!=null&&c(n,["gcsSource","uris"],a);const u=r(i,["bigqueryUri"]);if(u!=null&&c(n,["bigquerySource","inputUri"],u),r(i,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Vertex AI.");if(r(i,["inlinedRequests"])!==void 0)throw new Error("inlinedRequests parameter is not supported in Vertex AI.");return n}function Uv(i){const n={},o=r(i,["data"]);if(o!=null&&c(n,["data"],o),r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function kv(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function Hv(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function qv(i){const n={},o=r(i,["content"]);o!=null&&c(n,["content"],o);const a=r(i,["citationMetadata"]);a!=null&&c(n,["citationMetadata"],Gv(a));const u=r(i,["tokenCount"]);u!=null&&c(n,["tokenCount"],u);const d=r(i,["finishReason"]);d!=null&&c(n,["finishReason"],d);const m=r(i,["avgLogprobs"]);m!=null&&c(n,["avgLogprobs"],m);const h=r(i,["groundingMetadata"]);h!=null&&c(n,["groundingMetadata"],h);const y=r(i,["index"]);y!=null&&c(n,["index"],y);const g=r(i,["logprobsResult"]);g!=null&&c(n,["logprobsResult"],g);const v=r(i,["safetyRatings"]);if(v!=null){let C=v;Array.isArray(C)&&(C=C.map(A=>A)),c(n,["safetyRatings"],C)}const S=r(i,["urlContextMetadata"]);return S!=null&&c(n,["urlContextMetadata"],S),n}function Gv(i){const n={},o=r(i,["citationSources"]);if(o!=null){let a=o;Array.isArray(a)&&(a=a.map(u=>u)),c(n,["citations"],a)}return n}function yh(i){const n={},o=r(i,["parts"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(d=>h1(d))),c(n,["parts"],u)}const a=r(i,["role"]);return a!=null&&c(n,["role"],a),n}function Vv(i,n){const o={},a=r(i,["displayName"]);if(n!==void 0&&a!=null&&c(n,["batch","displayName"],a),r(i,["dest"])!==void 0)throw new Error("dest parameter is not supported in Gemini API.");return o}function zv(i,n){const o={},a=r(i,["displayName"]);n!==void 0&&a!=null&&c(n,["displayName"],a);const u=r(i,["dest"]);return n!==void 0&&u!=null&&c(n,["outputConfig"],Iv(wv(u))),o}function Gm(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["src"]);u!=null&&c(o,["batch","inputConfig"],bv(i,mh(i,u)));const d=r(n,["config"]);return d!=null&&Vv(d,o),o}function Bv(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["model"],Se(i,a));const u=r(n,["src"]);u!=null&&c(o,["inputConfig"],Lv(mh(i,u)));const d=r(n,["config"]);return d!=null&&zv(d,o),o}function Pv(i,n){const o={},a=r(i,["displayName"]);return n!==void 0&&a!=null&&c(n,["batch","displayName"],a),o}function Ov(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["src"]);u!=null&&c(o,["batch","inputConfig"],Zv(i,u));const d=r(n,["config"]);return d!=null&&Pv(d,o),o}function Yv(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function Fv(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function Jv(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["name"]);a!=null&&c(n,["name"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);return d!=null&&c(n,["error"],d),n}function Xv(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["name"]);a!=null&&c(n,["name"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);return d!=null&&c(n,["error"],d),n}function Kv(i,n){const o={},a=r(n,["contents"]);if(a!=null){let d=fu(i,a);Array.isArray(d)&&(d=d.map(m=>m)),c(o,["requests[]","request","content"],d)}const u=r(n,["config"]);return u!=null&&(c(o,["_self"],Qv(u,o)),Fy(o,{"requests[].*":"requests[].request.*"})),o}function Qv(i,n){const o={},a=r(i,["taskType"]);n!==void 0&&a!=null&&c(n,["requests[]","taskType"],a);const u=r(i,["title"]);n!==void 0&&u!=null&&c(n,["requests[]","title"],u);const d=r(i,["outputDimensionality"]);if(n!==void 0&&d!=null&&c(n,["requests[]","outputDimensionality"],d),r(i,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(r(i,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return o}function Zv(i,n){const o={},a=r(n,["fileName"]);a!=null&&c(o,["file_name"],a);const u=r(n,["inlinedRequests"]);return u!=null&&c(o,["requests"],Kv(i,u)),o}function Wv(i){const n={};if(r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const o=r(i,["fileUri"]);o!=null&&c(n,["fileUri"],o);const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function $v(i){const n={},o=r(i,["id"]);o!=null&&c(n,["id"],o);const a=r(i,["args"]);a!=null&&c(n,["args"],a);const u=r(i,["name"]);if(u!=null&&c(n,["name"],u),r(i,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(r(i,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return n}function jv(i){const n={},o=r(i,["mode"]);o!=null&&c(n,["mode"],o);const a=r(i,["allowedFunctionNames"]);if(a!=null&&c(n,["allowedFunctionNames"],a),r(i,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return n}function e1(i,n,o){const a={},u=r(n,["systemInstruction"]);o!==void 0&&u!=null&&c(o,["systemInstruction"],yh(nt(u)));const d=r(n,["temperature"]);d!=null&&c(a,["temperature"],d);const m=r(n,["topP"]);m!=null&&c(a,["topP"],m);const h=r(n,["topK"]);h!=null&&c(a,["topK"],h);const y=r(n,["candidateCount"]);y!=null&&c(a,["candidateCount"],y);const g=r(n,["maxOutputTokens"]);g!=null&&c(a,["maxOutputTokens"],g);const v=r(n,["stopSequences"]);v!=null&&c(a,["stopSequences"],v);const S=r(n,["responseLogprobs"]);S!=null&&c(a,["responseLogprobs"],S);const C=r(n,["logprobs"]);C!=null&&c(a,["logprobs"],C);const A=r(n,["presencePenalty"]);A!=null&&c(a,["presencePenalty"],A);const D=r(n,["frequencyPenalty"]);D!=null&&c(a,["frequencyPenalty"],D);const L=r(n,["seed"]);L!=null&&c(a,["seed"],L);const B=r(n,["responseMimeType"]);B!=null&&c(a,["responseMimeType"],B);const P=r(n,["responseSchema"]);P!=null&&c(a,["responseSchema"],du(P));const O=r(n,["responseJsonSchema"]);
127if(O!=null&&c(a,["responseJsonSchema"],O),r(n,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(r(n,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const H=r(n,["safetySettings"]);if(o!==void 0&&H!=null){let ce=H;Array.isArray(ce)&&(ce=ce.map(Be=>g1(Be))),c(o,["safetySettings"],ce)}const Y=r(n,["tools"]);if(o!==void 0&&Y!=null){let ce=Ji(Y);Array.isArray(ce)&&(ce=ce.map(Be=>v1(Fi(Be)))),c(o,["tools"],ce)}const J=r(n,["toolConfig"]);if(o!==void 0&&J!=null&&c(o,["toolConfig"],y1(J)),r(n,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const K=r(n,["cachedContent"]);o!==void 0&&K!=null&&c(o,["cachedContent"],un(i,K));const F=r(n,["responseModalities"]);F!=null&&c(a,["responseModalities"],F);const ae=r(n,["mediaResolution"]);ae!=null&&c(a,["mediaResolution"],ae);const W=r(n,["speechConfig"]);if(W!=null&&c(a,["speechConfig"],pu(W)),r(n,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const ue=r(n,["thinkingConfig"]);ue!=null&&c(a,["thinkingConfig"],ue);const ve=r(n,["imageConfig"]);return ve!=null&&c(a,["imageConfig"],a1(ve)),a}function t1(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["candidates"]);if(a!=null){let y=a;Array.isArray(y)&&(y=y.map(g=>qv(g))),c(n,["candidates"],y)}const u=r(i,["modelVersion"]);u!=null&&c(n,["modelVersion"],u);const d=r(i,["promptFeedback"]);d!=null&&c(n,["promptFeedback"],d);const m=r(i,["responseId"]);m!=null&&c(n,["responseId"],m);const h=r(i,["usageMetadata"]);return h!=null&&c(n,["usageMetadata"],h),n}function n1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function i1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],Xi(i,a)),o}function l1(i){const n={};if(r(i,["authConfig"])!==void 0)throw new Error("authConfig parameter is not supported in Gemini API.");const o=r(i,["enableWidget"]);return o!=null&&c(n,["enableWidget"],o),n}function o1(i){const n={};if(r(i,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");if(r(i,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");const o=r(i,["timeRangeFilter"]);return o!=null&&c(n,["timeRangeFilter"],o),n}function a1(i){const n={},o=r(i,["aspectRatio"]);o!=null&&c(n,["aspectRatio"],o);const a=r(i,["imageSize"]);if(a!=null&&c(n,["imageSize"],a),r(i,["outputMimeType"])!==void 0)throw new Error("outputMimeType parameter is not supported in Gemini API.");if(r(i,["outputCompressionQuality"])!==void 0)throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");return n}function s1(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["request","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let h=Lt(u);Array.isArray(h)&&(h=h.map(y=>yh(y))),c(o,["request","contents"],h)}const d=r(n,["metadata"]);d!=null&&c(o,["metadata"],d);const m=r(n,["config"]);return m!=null&&c(o,["request","generationConfig"],e1(i,m,r(o,["request"],{}))),o}function r1(i){const n={},o=r(i,["response"]);o!=null&&c(n,["response"],t1(o));const a=r(i,["error"]);return a!=null&&c(n,["error"],a),n}function u1(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);if(n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),r(i,["filter"])!==void 0)throw new Error("filter parameter is not supported in Gemini API.");return o}function c1(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);n!==void 0&&u!=null&&c(n,["_query","pageToken"],u);const d=r(i,["filter"]);return n!==void 0&&d!=null&&c(n,["_query","filter"],d),o}function f1(i){const n={},o=r(i,["config"]);return o!=null&&u1(o,n),n}function d1(i){const n={},o=r(i,["config"]);return o!=null&&c1(o,n),n}function p1(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["operations"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>pa(m))),c(n,["batchJobs"],d)}return n}function m1(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["batchPredictionJobs"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>tu(m))),c(n,["batchJobs"],d)}return n}function h1(i){const n={},o=r(i,["mediaResolution"]);o!=null&&c(n,["mediaResolution"],o);const a=r(i,["codeExecutionResult"]);a!=null&&c(n,["codeExecutionResult"],a);const u=r(i,["executableCode"]);u!=null&&c(n,["executableCode"],u);const d=r(i,["fileData"]);
127d!=null&&c(n,["fileData"],Wv(d));const m=r(i,["functionCall"]);m!=null&&c(n,["functionCall"],$v(m));const h=r(i,["functionResponse"]);h!=null&&c(n,["functionResponse"],h);const y=r(i,["inlineData"]);y!=null&&c(n,["inlineData"],Uv(y));const g=r(i,["text"]);g!=null&&c(n,["text"],g);const v=r(i,["thought"]);v!=null&&c(n,["thought"],v);const S=r(i,["thoughtSignature"]);S!=null&&c(n,["thoughtSignature"],S);const C=r(i,["videoMetadata"]);return C!=null&&c(n,["videoMetadata"],C),n}function g1(i){const n={},o=r(i,["category"]);if(o!=null&&c(n,["category"],o),r(i,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const a=r(i,["threshold"]);return a!=null&&c(n,["threshold"],a),n}function y1(i){const n={},o=r(i,["functionCallingConfig"]);o!=null&&c(n,["functionCallingConfig"],jv(o));const a=r(i,["retrievalConfig"]);return a!=null&&c(n,["retrievalConfig"],a),n}function v1(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let v=o;Array.isArray(v)&&(v=v.map(S=>S)),c(n,["functionDeclarations"],v)}if(r(i,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const a=r(i,["googleSearchRetrieval"]);a!=null&&c(n,["googleSearchRetrieval"],a);const u=r(i,["computerUse"]);u!=null&&c(n,["computerUse"],u);const d=r(i,["fileSearch"]);d!=null&&c(n,["fileSearch"],d);const m=r(i,["codeExecution"]);if(m!=null&&c(n,["codeExecution"],m),r(i,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const h=r(i,["googleMaps"]);h!=null&&c(n,["googleMaps"],l1(h));const y=r(i,["googleSearch"]);y!=null&&c(n,["googleSearch"],o1(y));const g=r(i,["urlContext"]);return g!=null&&c(n,["urlContext"],g),n}/** 128 * @license 129 * Copyright 2025 Google LLC 130 * SPDX-License-Identifier: Apache-2.0 131 */var sn;(function(i){i.PAGED_ITEM_BATCH_JOBS="batchJobs",i.PAGED_ITEM_MODELS="models",i.PAGED_ITEM_TUNING_JOBS="tuningJobs",i.PAGED_ITEM_FILES="files",i.PAGED_ITEM_CACHED_CONTENTS="cachedContents",i.PAGED_ITEM_FILE_SEARCH_STORES="fileSearchStores",i.PAGED_ITEM_DOCUMENTS="documents"})(sn||(sn={}));class ni{constructor(n,o,a,u){this.pageInternal=[],this.paramsInternal={},this.requestInternal=o,this.init(n,a,u)}init(n,o,a){var u,d;this.nameInternal=n,this.pageInternal=o[this.nameInternal]||[],this.sdkHttpResponseInternal=o==null?void 0:o.sdkHttpResponse,this.idxInternal=0;let m={config:{}};!a||Object.keys(a).length===0?m={config:{}}:typeof a=="object"?m=Object.assign({},a):m=a,m.config&&(m.config.pageToken=o.nextPageToken),this.paramsInternal=m,this.pageInternalSize=(d=(u=m.config)===null||u===void 0?void 0:u.pageSize)!==null&&d!==void 0?d:this.pageInternal.length}initNextPage(n){this.init(this.nameInternal,n,this.paramsInternal)}get page(){return this.pageInternal}get name(){return this.nameInternal}get pageSize(){return this.pageInternalSize}get sdkHttpResponse(){return this.sdkHttpResponseInternal}get params(){return this.paramsInternal}get pageLength(){return this.pageInternal.length}getItem(n){return this.pageInternal[n]}[Symbol.asyncIterator](){return{next:async()=>{if(this.idxInternal>=this.pageLength)if(this.hasNextPage())await this.nextPage();else return{value:void 0,done:!0};const n=this.getItem(this.idxInternal);return this.idxInternal+=1,{value:n,done:!1}},return:async()=>({value:void 0,done:!0})}}async nextPage(){if(!this.hasNextPage())throw new Error("No more pages to fetch.");const n=await this.requestInternal(this.params);return this.initNextPage(n),this.page}hasNextPage(){var n;return((n=this.params.config)===null||n===void 0?void 0:n.pageToken)!==void 0}}/** 132 * @license 133 * Copyright 2025 Google LLC 134 * SPDX-License-Identifier: Apache-2.0 135 */class T1 extends rn{constructor(n){super(),this.apiClient=n,this.create=async o=>(this.apiClient.isVertexAI()&&(o.config=this.formatDestination(o.src,o.config)),this.createInternal(o)),this.createEmbeddings=async o=>{if(console.warn("batches.createEmbeddings() is experimental and may change without notice."),this.apiClient.isVertexAI())throw new Error("Vertex AI does not support batches.createEmbeddings.");return this.createEmbeddingsInternal(o)},this.list=async(o={})=>new ni(sn.PAGED_ITEM_BATCH_JOBS,a=>this.listInternal(a),await this.listInternal(o),o)}createInlinedGenerateContentRequest(n){const o=Gm(this.apiClient,n),a=o._url,u=Z("{model}:batchGenerateContent",a),h=o.batch.inputConfig.requests,y=h.requests,g=[];for(const v of y){const S=Object.assign({},v);if(S.systemInstruction){const C=S.systemInstruction;delete S.systemInstruction;const A=S.request;A.systemInstruction=C,S.request=A}g.push(S)}return h.requests=g,delete o.config,delete o._url,delete o._query,{path:u,body:o}}getGcsUri(n){if(typeof n=="string")return n.startsWith("gs://")?n:void 0;if(!Array.isArray(n)&&n.gcsUri&&n.gcsUri.length>0)return n.gcsUri[0]}getBigqueryUri(n){if(typeof n=="string")return n.startsWith("bq://")?n:void 0;if(!Array.isArray(n))return n.bigqueryUri}formatDestination(n,o){const a=o?Object.assign({},o):{},u=Date.now().toString();if(a.displayName||(a.displayName=`genaiBatchJob_${u}`),a.dest===void 0){const d=this.getGcsUri(n),m=this.getBigqueryUri(n);if(d)d.endsWith(".jsonl")?a.dest=`${d.slice(0,-6)}/dest`:a.dest=`${d}_dest_${u}`;else if(m)a.dest=`${m}_dest_${u}`;else throw new Error("Unsupported source for Vertex AI: No GCS or BigQuery URI found.")}return a}
135async createInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=Bv(this.apiClient,n);return h=Z("batchPredictionJobs",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>tu(v))}else{const g=Gm(this.apiClient,n);return h=Z("{model}:batchGenerateContent",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>pa(v))}}async createEmbeddingsInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=Ov(this.apiClient,n);return d=Z("{model}:asyncBatchEmbedContent",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>pa(y))}}async get(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=i1(this.apiClient,n);return h=Z("batchPredictionJobs/{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>tu(v))}else{const g=n1(this.apiClient,n);return h=Z("batches/{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>pa(v))}}async cancel(n){var o,a,u,d;let m="",h={};if(this.apiClient.isVertexAI()){const y=Hv(this.apiClient,n);m=Z("batchPredictionJobs/{name}:cancel",y._url),h=y._query,delete y._url,delete y._query,await this.apiClient.request({path:m,queryParams:h,body:JSON.stringify(y),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal})}else{const y=kv(this.apiClient,n);m=Z("batches/{name}:cancel",y._url),h=y._query,delete y._url,delete y._query,await this.apiClient.request({path:m,queryParams:h,body:JSON.stringify(y),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal})}}async listInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=d1(n);return h=Z("batchPredictionJobs",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=m1(v),C=new Um;return Object.assign(C,S),C})}else{const g=f1(n);return h=Z("batches",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=p1(v),C=new Um;return Object.assign(C,S),C})}}async delete(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=Fv(this.apiClient,n);return h=Z("batchPredictionJobs/{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>Xv(v))}else{const g=Yv(this.apiClient,n);return h=Z("batches/{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>Jv(v))}}}/** 136 * @license 137 * Copyright 2025 Google LLC 138 * SPDX-License-Identifier: Apache-2.0 139 */function E1(i){const n={},o=r(i,["data"]);if(o!=null&&c(n,["data"],o),r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function Vm(i){const n={},o=r(i,["parts"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(d=>O1(d))),c(n,["parts"],u)}const a=r(i,["role"]);return a!=null&&c(n,["role"],a),n}function S1(i,n){const o={},a=r(i,["ttl"]);n!==void 0&&a!=null&&c(n,["ttl"],a);const u=r(i,["expireTime"]);n!==void 0&&u!=null&&c(n,["expireTime"],u);const d=r(i,["displayName"]);n!==void 0&&d!=null&&c(n,["displayName"],d);const m=r(i,["contents"]);if(n!==void 0&&m!=null){let v=Lt(m);Array.isArray(v)&&(v=v.map(S=>Vm(S))),c(n,["contents"],v)}const h=r(i,["systemInstruction"]);n!==void 0&&h!=null&&c(n,["systemInstruction"],Vm(nt(h)));const y=r(i,["tools"]);if(n!==void 0&&y!=null){let v=y;Array.isArray(v)&&(v=v.map(S=>F1(S))),c(n,["tools"],v)}const g=r(i,["toolConfig"]);
139if(n!==void 0&&g!=null&&c(n,["toolConfig"],Y1(g)),r(i,["kmsKeyName"])!==void 0)throw new Error("kmsKeyName parameter is not supported in Gemini API.");return o}function C1(i,n){const o={},a=r(i,["ttl"]);n!==void 0&&a!=null&&c(n,["ttl"],a);const u=r(i,["expireTime"]);n!==void 0&&u!=null&&c(n,["expireTime"],u);const d=r(i,["displayName"]);n!==void 0&&d!=null&&c(n,["displayName"],d);const m=r(i,["contents"]);if(n!==void 0&&m!=null){let S=Lt(m);Array.isArray(S)&&(S=S.map(C=>C)),c(n,["contents"],S)}const h=r(i,["systemInstruction"]);n!==void 0&&h!=null&&c(n,["systemInstruction"],nt(h));const y=r(i,["tools"]);if(n!==void 0&&y!=null){let S=y;Array.isArray(S)&&(S=S.map(C=>J1(C))),c(n,["tools"],S)}const g=r(i,["toolConfig"]);n!==void 0&&g!=null&&c(n,["toolConfig"],g);const v=r(i,["kmsKeyName"]);return n!==void 0&&v!=null&&c(n,["encryption_spec","kmsKeyName"],v),o}function _1(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["model"],oh(i,a));const u=r(n,["config"]);return u!=null&&S1(u,o),o}function A1(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["model"],oh(i,a));const u=r(n,["config"]);return u!=null&&C1(u,o),o}function x1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],un(i,a)),o}function M1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],un(i,a)),o}function w1(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function R1(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function N1(i){const n={};if(r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const o=r(i,["fileUri"]);o!=null&&c(n,["fileUri"],o);const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function I1(i){const n={},o=r(i,["id"]);o!=null&&c(n,["id"],o);const a=r(i,["args"]);a!=null&&c(n,["args"],a);const u=r(i,["name"]);if(u!=null&&c(n,["name"],u),r(i,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(r(i,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return n}function D1(i){const n={},o=r(i,["mode"]);o!=null&&c(n,["mode"],o);const a=r(i,["allowedFunctionNames"]);if(a!=null&&c(n,["allowedFunctionNames"],a),r(i,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return n}function b1(i){const n={};if(r(i,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const o=r(i,["description"]);o!=null&&c(n,["description"],o);const a=r(i,["name"]);a!=null&&c(n,["name"],a);const u=r(i,["parameters"]);u!=null&&c(n,["parameters"],u);const d=r(i,["parametersJsonSchema"]);d!=null&&c(n,["parametersJsonSchema"],d);const m=r(i,["response"]);m!=null&&c(n,["response"],m);const h=r(i,["responseJsonSchema"]);return h!=null&&c(n,["responseJsonSchema"],h),n}function L1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],un(i,a)),o}function U1(i,n){const o={},a=r(n,["name"]);return a!=null&&c(o,["_url","name"],un(i,a)),o}function k1(i){const n={};if(r(i,["authConfig"])!==void 0)throw new Error("authConfig parameter is not supported in Gemini API.");const o=r(i,["enableWidget"]);return o!=null&&c(n,["enableWidget"],o),n}function H1(i){const n={};if(r(i,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");if(r(i,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");const o=r(i,["timeRangeFilter"]);return o!=null&&c(n,["timeRangeFilter"],o),n}function q1(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);return n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),o}function G1(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);return n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),o}function V1(i){const n={},o=r(i,["config"]);return o!=null&&q1(o,n),n}function z1(i){const n={},o=r(i,["config"]);return o!=null&&G1(o,n),n}function B1(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["cachedContents"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["cachedContents"],d)}return n}function P1(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["cachedContents"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["cachedContents"],d)}return n}function O1(i){const n={},o=r(i,["mediaResolution"]);o!=null&&c(n,["mediaResolution"],o);const a=r(i,["codeExecutionResult"]);a!=null&&c(n,["codeExecutionResult"],a);const u=r(i,["executableCode"]);u!=null&&c(n,["executableCode"],u);const d=r(i,["fileData"]);d!=null&&c(n,["fileData"],N1(d));const m=r(i,["functionCall"]);m!=null&&c(n,["functionCall"],I1(m));const h=r(i,["functionResponse"]);h!=null&&c(n,["functionResponse"],h);const y=r(i,["inlineData"]);y!=null&&c(n,["inlineData"],E1(y));const g=r(i,["text"]);g!=null&&c(n,["text"],g);const v=r(i,["thought"]);v!=null&&c(n,["thought"],v);const S=r(i,["thoughtSignature"]);S!=null&&c(n,["thoughtSignature"],S);const C=r(i,["videoMetadata"]);return C!=null&&c(n,["videoMetadata"],C),n}function Y1(i){const n={},o=r(i,["functionCallingConfig"]);o!=null&&c(n,["functionCallingConfig"],D1(o));const a=r(i,["retrievalConfig"]);return a!=null&&c(n,["retrievalConfig"],a),n}function F1(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let v=o;Array.isArray(v)&&(v=v.map(S=>S)),c(n,["functionDeclarations"],v)}if(r(i,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const a=r(i,["googleSearchRetrieval"]);a!=null&&c(n,["googleSearchRetrieval"],a);const u=r(i,["computerUse"]);u!=null&&c(n,["computerUse"],u);const d=r(i,["fileSearch"]);d!=null&&c(n,["fileSearch"],d);const m=r(i,["codeExecution"]);if(m!=null&&c(n,["codeExecution"],m),r(i,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const h=r(i,["googleMaps"]);h!=null&&c(n,["googleMaps"],k1(h));const y=r(i,["googleSearch"]);y!=null&&c(n,["googleSearch"],H1(y));const g=r(i,["urlContext"]);return g!=null&&c(n,["urlContext"],g),n}function J1(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let S=o;Array.isArray(S)&&(S=S.map(C=>b1(C))),c(n,["functionDeclarations"],S)}const a=r(i,["retrieval"]);a!=null&&c(n,["retrieval"],a);const u=r(i,["googleSearchRetrieval"]);u!=null&&c(n,["googleSearchRetrieval"],u);const d=r(i,["computerUse"]);if(d!=null&&c(n,["computerUse"],d),r(i,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Vertex AI.");const m=r(i,["codeExecution"]);m!=null&&c(n,["codeExecution"],m);const h=r(i,["enterpriseWebSearch"]);h!=null&&c(n,["enterpriseWebSearch"],h);const y=r(i,["googleMaps"]);y!=null&&c(n,["googleMaps"],y);const g=r(i,["googleSearch"]);g!=null&&c(n,["googleSearch"],g);const v=r(i,["urlContext"]);return v!=null&&c(n,["urlContext"],v),n}function X1(i,n){const o={},a=r(i,["ttl"]);n!==void 0&&a!=null&&c(n,["ttl"],a);const u=r(i,["expireTime"]);return n!==void 0&&u!=null&&c(n,["expireTime"],u),o}function K1(i,n){const o={},a=r(i,["ttl"]);n!==void 0&&a!=null&&c(n,["ttl"],a);const u=r(i,["expireTime"]);return n!==void 0&&u!=null&&c(n,["expireTime"],u),o}function Q1(i,n){const o={},a=r(n,["name"]);a!=null&&c(o,["_url","name"],un(i,a));const u=r(n,["config"]);return u!=null&&X1(u,o),o}function Z1(i,n){const o={},a=r(n,["name"]);a!=null&&c(o,["_url","name"],un(i,a));const u=r(n,["config"]);return u!=null&&K1(u,o),o}/** 140 * @license 141 * Copyright 2025 Google LLC 142 * SPDX-License-Identifier: Apache-2.0 143 */class W1 extends rn{constructor(n){super(),this.apiClient=n,this.list=async(o={})=>new ni(sn.PAGED_ITEM_CACHED_CONTENTS,a=>this.listInternal(a),await this.listInternal(o),o)}async create(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=A1(this.apiClient,n);
143return h=Z("cachedContents",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>v)}else{const g=_1(this.apiClient,n);return h=Z("cachedContents",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>v)}}async get(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=U1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>v)}else{const g=L1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>v)}}async delete(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=M1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=R1(v),C=new bm;return Object.assign(C,S),C})}else{const g=x1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=w1(v),C=new bm;return Object.assign(C,S),C})}}async update(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=Z1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"PATCH",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>v)}else{const g=Q1(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"PATCH",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>v)}}async listInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=z1(n);return h=Z("cachedContents",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=P1(v),C=new Lm;return Object.assign(C,S),C})}else{const g=V1(n);return h=Z("cachedContents",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=B1(v),C=new Lm;return Object.assign(C,S),C})}}}function zm(i){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&i[n],a=0;if(o)return o.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&a>=i.length&&(i=void 0),{value:i&&i[a++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ue(i){return this instanceof Ue?(this.v=i,this):new Ue(i)}function Oi(i,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=o.apply(i,n||[]),u,d=[];return u=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",m),u[Symbol.asyncIterator]=function(){return this},u;function m(A){return function(D){return Promise.resolve(D).then(A,S)}}function h(A,D){a[A]&&(u[A]=function(L){return new Promise(function(B,P){d.push([A,L,B,P])>1||y(A,L)})},D&&(u[A]=D(u[A])))}function y(A,D){try{g(a[A](D))}catch(L){C(d[0][3],L)}}function g(A){A.value instanceof Ue?Promise.resolve(A.value.v).then(v,S):C(d[0][2],A)}function v(A){y("next",A)}function S(A){y("throw",A)}function C(A,D){A(D),d.shift(),d.length&&y(d[0][0],d[0][1])}}function Fl(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],o;return n?n.call(i):(i=typeof zm=="function"?zm(i):i[Symbol.iterator](),o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o);function a(d){o[d]=i[d]&&function(m){return new Promise(function(h,y){m=i[d](m),u(h,y,m.done,m.value)})}}function u(d,m,h,y){Promise.resolve(y).then(function(g){d({value:g,done:h})},m)}}/** 144 * @license 145 * Copyright 2025 Google LLC 146 * SPDX-License-Identifier: Apache-2.0 147 */function $1(i){var n;if(i.candidates==null||i.candidates.length===0)return!1;const o=(n=i.candidates[0])===null||n===void 0?void 0:n.content;return o===void 0?!1:vh(o)}function vh(i){if(i.parts===void 0||i.parts.length===0)return!1;for(const n of i.parts)if(n===void 0||Object.keys(n).length===0)return!1;return!0}function j1(i){if(i.length!==0){for(const n of i)if(n.role!=="user"&&n.role!=="model")throw new Error(`Role must be user or model, but got ${n.role}.`)}}function Bm(i){if(i===void 0||i.length===0)return[];const n=[],o=i.length;let a=0;for(;a<o;)if(i[a].role==="user")n.push(i[a]),a++;else{const u=[];let d=!0;for(;a<o&&i[a].role==="model";)u.push(i[a]),d&&!vh(i[a])&&(d=!1),a++;d?n.push(...u):n.pop()}return n}class e2{constructor(n,o){this.modelsModule=n,this.apiClient=o}create(n){return new t2(this.apiClient,this.modelsModule,n.model,n.config,structuredClone(n.history))}}class t2{constructor(n,o,a,u={},d=[]){this.apiClient=n,this.modelsModule=o,this.model=a,this.config=u,this.history=d,this.sendPromise=Promise.resolve(),j1(d)}async sendMessage(n){var o;await this.sendPromise;const a=nt(n.message),u=this.modelsModule.generateContent({model:this.model,contents:this.getHistory(!0).concat(a),config:(o=n.config)!==null&&o!==void 0?o:this.config});return this.sendPromise=(async()=>{var d,m,h;const y=await u,g=(m=(d=y.candidates)===null||d===void 0?void 0:d[0])===null||m===void 0?void 0:m.content,v=y.automaticFunctionCallingHistory,S=this.getHistory(!0).length;let C=[];v!=null&&(C=(h=v.slice(S))!==null&&h!==void 0?h:[]);const A=g?[g]:[];this.recordHistory(a,A,C)})(),await this.sendPromise.catch(()=>{this.sendPromise=Promise.resolve()}),u}async sendMessageStream(n){var o;await this.sendPromise;const a=nt(n.message),u=this.modelsModule.generateContentStream({model:this.model,contents:this.getHistory(!0).concat(a),config:(o=n.config)!==null&&o!==void 0?o:this.config});this.sendPromise=u.then(()=>{}).catch(()=>{});const d=await u;return this.processStreamResponse(d,a)}getHistory(n=!1){const o=n?Bm(this.history):this.history;return structuredClone(o)}processStreamResponse(n,o){var a,u;return Oi(this,arguments,function*(){var m,h,y,g;const v=[];try{for(var S=!0,C=Fl(n),A;A=yield Ue(C.next()),m=A.done,!m;S=!0){g=A.value,S=!1;const D=g;if($1(D)){const L=(u=(a=D.candidates)===null||a===void 0?void 0:a[0])===null||u===void 0?void 0:u.content;L!==void 0&&v.push(L)}yield yield Ue(D)}}catch(D){h={error:D}}finally{try{!S&&!m&&(y=C.return)&&(yield Ue(y.call(C)))}finally{if(h)throw h.error}}this.recordHistory(o,v)})}recordHistory(n,o,a){let u=[];o.length>0&&o.every(d=>d.role!==void 0)?u=o:u.push({role:"model",parts:[]}),a&&a.length>0?this.history.push(...Bm(a)):this.history.push(n),this.history.push(...u)}}/** 148 * @license 149 * Copyright 2025 Google LLC 150 * SPDX-License-Identifier: Apache-2.0
151 */class Ta extends Error{constructor(n){super(n.message),this.name="ApiError",this.status=n.status,Object.setPrototypeOf(this,Ta.prototype)}}/** 152 * @license 153 * Copyright 2025 Google LLC 154 * SPDX-License-Identifier: Apache-2.0 155 */function n2(i){const n={},o=r(i,["file"]);return o!=null&&c(n,["file"],o),n}function i2(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function l2(i){const n={},o=r(i,["name"]);return o!=null&&c(n,["_url","file"],fh(o)),n}function o2(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function a2(i){const n={},o=r(i,["name"]);return o!=null&&c(n,["_url","file"],fh(o)),n}function s2(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);return n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),o}function r2(i){const n={},o=r(i,["config"]);return o!=null&&s2(o,n),n}function u2(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["files"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["files"],d)}return n}/** 156 * @license 157 * Copyright 2025 Google LLC 158 * SPDX-License-Identifier: Apache-2.0 159 */class c2 extends rn{constructor(n){super(),this.apiClient=n,this.list=async(o={})=>new ni(sn.PAGED_ITEM_FILES,a=>this.listInternal(a),await this.listInternal(o),o)}async upload(n){if(this.apiClient.isVertexAI())throw new Error("Vertex AI does not support uploading files. You can share files through a GCS bucket.");return this.apiClient.uploadFile(n.file,n.config).then(o=>o)}async download(n){await this.apiClient.downloadFile(n)}async listInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=r2(n);return d=Z("files",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>{const g=u2(y),v=new mv;return Object.assign(v,g),v})}}async createInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=n2(n);return d=Z("upload/v1beta/files",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=i2(y),v=new hv;return Object.assign(v,g),v})}}async get(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=a2(n);return d=Z("files/{file}",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>y)}}async delete(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=l2(n);return d=Z("files/{file}",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>{const g=o2(y),v=new gv;return Object.assign(v,g),v})}}}/** 160 * @license 161 * Copyright 2025 Google LLC 162 * SPDX-License-Identifier: Apache-2.0 163 */function ma(i){const n={},o=r(i,["data"]);if(o!=null&&c(n,["data"],o),r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function f2(i){const n={},o=r(i,["parts"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(d=>w2(d))),c(n,["parts"],u)}const a=r(i,["role"]);return a!=null&&c(n,["role"],a),n}function d2(i){const n={};if(r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const o=r(i,["fileUri"]);o!=null&&c(n,["fileUri"],o);const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function p2(i){const n={},o=r(i,["id"]);o!=null&&c(n,["id"],o);const a=r(i,["args"]);a!=null&&c(n,["args"],a);const u=r(i,["name"]);if(u!=null&&c(n,["name"],u),r(i,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(r(i,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return n}function m2(i){const n={};if(r(i,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const o=r(i,["description"]);o!=null&&c(n,["description"],o);const a=r(i,["name"]);a!=null&&c(n,["name"],a);const u=r(i,["parameters"]);u!=null&&c(n,["parameters"],u);const d=r(i,["parametersJsonSchema"]);d!=null&&c(n,["parametersJsonSchema"],d);const m=r(i,["response"]);m!=null&&c(n,["response"],m);const h=r(i,["responseJsonSchema"]);return h!=null&&c(n,["responseJsonSchema"],h),n}function h2(i){const n={},o=r(i,["modelSelectionConfig"]);o!=null&&c(n,["modelConfig"],o);const a=r(i,["responseJsonSchema"]);a!=null&&c(n,["responseJsonSchema"],a);const u=r(i,["audioTimestamp"]);u!=null&&c(n,["audioTimestamp"],u);const d=r(i,["candidateCount"]);d!=null&&c(n,["candidateCount"],d);const m=r(i,["enableAffectiveDialog"]);m!=null&&c(n,["enableAffectiveDialog"],m);const h=r(i,["frequencyPenalty"]);h!=null&&c(n,["frequencyPenalty"],h);const y=r(i,["logprobs"]);y!=null&&c(n,["logprobs"],y);const g=r(i,["maxOutputTokens"]);g!=null&&c(n,["maxOutputTokens"],g);const v=r(i,["mediaResolution"]);v!=null&&c(n,["mediaResolution"],v);const S=r(i,["presencePenalty"]);S!=null&&c(n,["presencePenalty"],S);const C=r(i,["responseLogprobs"]);C!=null&&c(n,["responseLogprobs"],C);const A=r(i,["responseMimeType"]);A!=null&&c(n,["responseMimeType"],A);const D=r(i,["responseModalities"]);D!=null&&c(n,["responseModalities"],D);const L=r(i,["responseSchema"]);L!=null&&c(n,["responseSchema"],L);
163const B=r(i,["routingConfig"]);B!=null&&c(n,["routingConfig"],B);const P=r(i,["seed"]);P!=null&&c(n,["seed"],P);const O=r(i,["speechConfig"]);O!=null&&c(n,["speechConfig"],Th(O));const H=r(i,["stopSequences"]);H!=null&&c(n,["stopSequences"],H);const Y=r(i,["temperature"]);Y!=null&&c(n,["temperature"],Y);const J=r(i,["thinkingConfig"]);J!=null&&c(n,["thinkingConfig"],J);const K=r(i,["topK"]);K!=null&&c(n,["topK"],K);const F=r(i,["topP"]);if(F!=null&&c(n,["topP"],F),r(i,["enableEnhancedCivicAnswers"])!==void 0)throw new Error("enableEnhancedCivicAnswers parameter is not supported in Vertex AI.");return n}function g2(i){const n={};if(r(i,["authConfig"])!==void 0)throw new Error("authConfig parameter is not supported in Gemini API.");const o=r(i,["enableWidget"]);return o!=null&&c(n,["enableWidget"],o),n}function y2(i){const n={};if(r(i,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");if(r(i,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");const o=r(i,["timeRangeFilter"]);return o!=null&&c(n,["timeRangeFilter"],o),n}function v2(i,n){const o={},a=r(i,["generationConfig"]);n!==void 0&&a!=null&&c(n,["setup","generationConfig"],a);const u=r(i,["responseModalities"]);n!==void 0&&u!=null&&c(n,["setup","generationConfig","responseModalities"],u);const d=r(i,["temperature"]);n!==void 0&&d!=null&&c(n,["setup","generationConfig","temperature"],d);const m=r(i,["topP"]);n!==void 0&&m!=null&&c(n,["setup","generationConfig","topP"],m);const h=r(i,["topK"]);n!==void 0&&h!=null&&c(n,["setup","generationConfig","topK"],h);const y=r(i,["maxOutputTokens"]);n!==void 0&&y!=null&&c(n,["setup","generationConfig","maxOutputTokens"],y);const g=r(i,["mediaResolution"]);n!==void 0&&g!=null&&c(n,["setup","generationConfig","mediaResolution"],g);const v=r(i,["seed"]);n!==void 0&&v!=null&&c(n,["setup","generationConfig","seed"],v);const S=r(i,["speechConfig"]);n!==void 0&&S!=null&&c(n,["setup","generationConfig","speechConfig"],mu(S));const C=r(i,["thinkingConfig"]);n!==void 0&&C!=null&&c(n,["setup","generationConfig","thinkingConfig"],C);const A=r(i,["enableAffectiveDialog"]);n!==void 0&&A!=null&&c(n,["setup","generationConfig","enableAffectiveDialog"],A);const D=r(i,["systemInstruction"]);n!==void 0&&D!=null&&c(n,["setup","systemInstruction"],f2(nt(D)));const L=r(i,["tools"]);if(n!==void 0&&L!=null){let K=Ji(L);Array.isArray(K)&&(K=K.map(F=>N2(Fi(F)))),c(n,["setup","tools"],K)}const B=r(i,["sessionResumption"]);n!==void 0&&B!=null&&c(n,["setup","sessionResumption"],R2(B));const P=r(i,["inputAudioTranscription"]);n!==void 0&&P!=null&&c(n,["setup","inputAudioTranscription"],P);const O=r(i,["outputAudioTranscription"]);n!==void 0&&O!=null&&c(n,["setup","outputAudioTranscription"],O);const H=r(i,["realtimeInputConfig"]);n!==void 0&&H!=null&&c(n,["setup","realtimeInputConfig"],H);const Y=r(i,["contextWindowCompression"]);n!==void 0&&Y!=null&&c(n,["setup","contextWindowCompression"],Y);const J=r(i,["proactivity"]);return n!==void 0&&J!=null&&c(n,["setup","proactivity"],J),o}function T2(i,n){const o={},a=r(i,["generationConfig"]);n!==void 0&&a!=null&&c(n,["setup","generationConfig"],h2(a));const u=r(i,["responseModalities"]);n!==void 0&&u!=null&&c(n,["setup","generationConfig","responseModalities"],u);const d=r(i,["temperature"]);n!==void 0&&d!=null&&c(n,["setup","generationConfig","temperature"],d);const m=r(i,["topP"]);n!==void 0&&m!=null&&c(n,["setup","generationConfig","topP"],m);const h=r(i,["topK"]);n!==void 0&&h!=null&&c(n,["setup","generationConfig","topK"],h);const y=r(i,["maxOutputTokens"]);n!==void 0&&y!=null&&c(n,["setup","generationConfig","maxOutputTokens"],y);const g=r(i,["mediaResolution"]);n!==void 0&&g!=null&&c(n,["setup","generationConfig","mediaResolution"],g);const v=r(i,["seed"]);n!==void 0&&v!=null&&c(n,["setup","generationConfig","seed"],v);const S=r(i,["speechConfig"]);n!==void 0&&S!=null&&c(n,["setup","generationConfig","speechConfig"],Th(mu(S)));const C=r(i,["thinkingConfig"]);n!==void 0&&C!=null&&c(n,["setup","generationConfig","thinkingConfig"],C);const A=r(i,["enableAffectiveDialog"]);n!==void 0&&A!=null&&c(n,["setup","generationConfig","enableAffectiveDialog"],A);const D=r(i,["systemInstruction"]);n!==void 0&&D!=null&&c(n,["setup","systemInstruction"],nt(D));const L=r(i,["tools"]);if(n!==void 0&&L!=null){let K=Ji(L);Array.isArray(K)&&(K=K.map(F=>I2(Fi(F)))),c(n,["setup","tools"],K)}const B=r(i,["sessionResumption"]);n!==void 0&&B!=null&&c(n,["setup","sessionResumption"],B);const P=r(i,["inputAudioTranscription"]);n!==void 0&&P!=null&&c(n,["setup","inputAudioTranscription"],P);const O=r(i,["outputAudioTranscription"]);n!==void 0&&O!=null&&c(n,["setup","outputAudioTranscription"],O);const H=r(i,["realtimeInputConfig"]);n!==void 0&&H!=null&&c(n,["setup","realtimeInputConfig"],H);const Y=r(i,["contextWindowCompression"]);n!==void 0&&Y!=null&&c(n,["setup","contextWindowCompression"],Y);const J=r(i,["proactivity"]);return n!==void 0&&J!=null&&c(n,["setup","proactivity"],J),o}function E2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["setup","model"],Se(i,a));const u=r(n,["config"]);return u!=null&&c(o,["config"],v2(u,o)),o}function S2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["setup","model"],Se(i,a));const u=r(n,["config"]);return u!=null&&c(o,["config"],T2(u,o)),o}function C2(i){const n={},o=r(i,["musicGenerationConfig"]);return o!=null&&c(n,["musicGenerationConfig"],o),n}function _2(i){const n={},o=r(i,["weightedPrompts"]);if(o!=null){let a=o;Array.isArray(a)&&(a=a.map(u=>u)),c(n,["weightedPrompts"],a)}return n}function A2(i){const n={},o=r(i,["media"]);if(o!=null){let g=ah(o);Array.isArray(g)&&(g=g.map(v=>ma(v))),c(n,["mediaChunks"],g)}const a=r(i,["audio"]);a!=null&&c(n,["audio"],ma(rh(a)));const u=r(i,["audioStreamEnd"]);u!=null&&c(n,["audioStreamEnd"],u);const d=r(i,["video"]);d!=null&&c(n,["video"],ma(sh(d)));const m=r(i,["text"]);m!=null&&c(n,["text"],m);const h=r(i,["activityStart"]);h!=null&&c(n,["activityStart"],h);const y=r(i,["activityEnd"]);return y!=null&&c(n,["activityEnd"],y),n}function x2(i){const n={},o=r(i,["media"]);if(o!=null){let g=ah(o);Array.isArray(g)&&(g=g.map(v=>v)),c(n,["mediaChunks"],g)}const a=r(i,["audio"]);a!=null&&c(n,["audio"],rh(a));const u=r(i,["audioStreamEnd"]);u!=null&&c(n,["audioStreamEnd"],u);const d=r(i,["video"]);d!=null&&c(n,["video"],sh(d));const m=r(i,["text"]);m!=null&&c(n,["text"],m);const h=r(i,["activityStart"]);h!=null&&c(n,["activityStart"],h);const y=r(i,["activityEnd"]);return y!=null&&c(n,["activityEnd"],y),n}function M2(i){const n={},o=r(i,["setupComplete"]);o!=null&&c(n,["setupComplete"],o);const a=r(i,["serverContent"]);a!=null&&c(n,["serverContent"],a);const u=r(i,["toolCall"]);u!=null&&c(n,["toolCall"],u);const d=r(i,["toolCallCancellation"]);d!=null&&c(n,["toolCallCancellation"],d);const m=r(i,["usageMetadata"]);m!=null&&c(n,["usageMetadata"],D2(m));const h=r(i,["goAway"]);h!=null&&c(n,["goAway"],h);const y=r(i,["sessionResumptionUpdate"]);return y!=null&&c(n,["sessionResumptionUpdate"],y),n}function w2(i){const n={},o=r(i,["mediaResolution"]);o!=null&&c(n,["mediaResolution"],o);const a=r(i,["codeExecutionResult"]);a!=null&&c(n,["codeExecutionResult"],a);const u=r(i,["executableCode"]);u!=null&&c(n,["executableCode"],u);const d=r(i,["fileData"]);d!=null&&c(n,["fileData"],d2(d));const m=r(i,["functionCall"]);m!=null&&c(n,["functionCall"],p2(m));const h=r(i,["functionResponse"]);h!=null&&c(n,["functionResponse"],h);const y=r(i,["inlineData"]);y!=null&&c(n,["inlineData"],ma(y));const g=r(i,["text"]);g!=null&&c(n,["text"],g);const v=r(i,["thought"]);v!=null&&c(n,["thought"],v);const S=r(i,["thoughtSignature"]);S!=null&&c(n,["thoughtSignature"],S);const C=r(i,["videoMetadata"]);return C!=null&&c(n,["videoMetadata"],C),n}function R2(i){const n={},o=r(i,["handle"]);if(o!=null&&c(n,["handle"],o),r(i,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return n}function Th(i){const n={},o=r(i,["languageCode"]);o!=null&&c(n,["languageCode"],o);const a=r(i,["voiceConfig"]);if(a!=null&&c(n,["voiceConfig"],a),r(i,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");return n}function N2(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let v=o;Array.isArray(v)&&(v=v.map(S=>S)),c(n,["functionDeclarations"],v)}if(r(i,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const a=r(i,["googleSearchRetrieval"]);a!=null&&c(n,["googleSearchRetrieval"],a);const u=r(i,["computerUse"]);u!=null&&c(n,["computerUse"],u);const d=r(i,["fileSearch"]);d!=null&&c(n,["fileSearch"],d);const m=r(i,["codeExecution"]);if(m!=null&&c(n,["codeExecution"],m),r(i,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const h=r(i,["googleMaps"]);h!=null&&c(n,["googleMaps"],g2(h));const y=r(i,["googleSearch"]);y!=null&&c(n,["googleSearch"],y2(y));const g=r(i,["urlContext"]);return g!=null&&c(n,["urlContext"],g),n}function I2(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let S=o;Array.isArray(S)&&(S=S.map(C=>m2(C))),c(n,["functionDeclarations"],S)}const a=r(i,["retrieval"]);a!=null&&c(n,["retrieval"],a);const u=r(i,["googleSearchRetrieval"]);u!=null&&c(n,["googleSearchRetrieval"],u);const d=r(i,["computerUse"]);if(d!=null&&c(n,["computerUse"],d),r(i,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Vertex AI.");const m=r(i,["codeExecution"]);m!=null&&c(n,["codeExecution"],m);const h=r(i,["enterpriseWebSearch"]);h!=null&&c(n,["enterpriseWebSearch"],h);const y=r(i,["googleMaps"]);y!=null&&c(n,["googleMaps"],y);const g=r(i,["googleSearch"]);g!=null&&c(n,["googleSearch"],g);const v=r(i,["urlContext"]);return v!=null&&c(n,["urlContext"],v),n}function D2(i){const n={},o=r(i,["promptTokenCount"]);o!=null&&c(n,["promptTokenCount"],o);const a=r(i,["cachedContentTokenCount"]);a!=null&&c(n,["cachedContentTokenCount"],a);const u=r(i,["candidatesTokenCount"]);u!=null&&c(n,["responseTokenCount"],u);const d=r(i,["toolUsePromptTokenCount"]);d!=null&&c(n,["toolUsePromptTokenCount"],d);const m=r(i,["thoughtsTokenCount"]);m!=null&&c(n,["thoughtsTokenCount"],m);const h=r(i,["totalTokenCount"]);h!=null&&c(n,["totalTokenCount"],h);
163const y=r(i,["promptTokensDetails"]);if(y!=null){let A=y;Array.isArray(A)&&(A=A.map(D=>D)),c(n,["promptTokensDetails"],A)}const g=r(i,["cacheTokensDetails"]);if(g!=null){let A=g;Array.isArray(A)&&(A=A.map(D=>D)),c(n,["cacheTokensDetails"],A)}const v=r(i,["candidatesTokensDetails"]);if(v!=null){let A=v;Array.isArray(A)&&(A=A.map(D=>D)),c(n,["responseTokensDetails"],A)}const S=r(i,["toolUsePromptTokensDetails"]);if(S!=null){let A=S;Array.isArray(A)&&(A=A.map(D=>D)),c(n,["toolUsePromptTokensDetails"],A)}const C=r(i,["trafficType"]);return C!=null&&c(n,["trafficType"],C),n}/** 164 * @license 165 * Copyright 2025 Google LLC 166 * SPDX-License-Identifier: Apache-2.0 167 */function b2(i){const n={},o=r(i,["data"]);if(o!=null&&c(n,["data"],o),r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function L2(i){const n={},o=r(i,["content"]);o!=null&&c(n,["content"],o);const a=r(i,["citationMetadata"]);a!=null&&c(n,["citationMetadata"],U2(a));const u=r(i,["tokenCount"]);u!=null&&c(n,["tokenCount"],u);const d=r(i,["finishReason"]);d!=null&&c(n,["finishReason"],d);const m=r(i,["avgLogprobs"]);m!=null&&c(n,["avgLogprobs"],m);const h=r(i,["groundingMetadata"]);h!=null&&c(n,["groundingMetadata"],h);const y=r(i,["index"]);y!=null&&c(n,["index"],y);const g=r(i,["logprobsResult"]);g!=null&&c(n,["logprobsResult"],g);const v=r(i,["safetyRatings"]);if(v!=null){let C=v;Array.isArray(C)&&(C=C.map(A=>A)),c(n,["safetyRatings"],C)}const S=r(i,["urlContextMetadata"]);return S!=null&&c(n,["urlContextMetadata"],S),n}function U2(i){const n={},o=r(i,["citationSources"]);if(o!=null){let a=o;Array.isArray(a)&&(a=a.map(u=>u)),c(n,["citations"],a)}return n}function k2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let d=Lt(u);Array.isArray(d)&&(d=d.map(m=>m)),c(o,["contents"],d)}return o}function H2(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["tokensInfo"]);if(a!=null){let u=a;Array.isArray(u)&&(u=u.map(d=>d)),c(n,["tokensInfo"],u)}return n}function q2(i){const n={},o=r(i,["values"]);o!=null&&c(n,["values"],o);const a=r(i,["statistics"]);return a!=null&&c(n,["statistics"],G2(a)),n}function G2(i){const n={},o=r(i,["truncated"]);o!=null&&c(n,["truncated"],o);const a=r(i,["token_count"]);return a!=null&&c(n,["tokenCount"],a),n}function Ea(i){const n={},o=r(i,["parts"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(d=>XT(d))),c(n,["parts"],u)}const a=r(i,["role"]);return a!=null&&c(n,["role"],a),n}function V2(i){const n={},o=r(i,["controlType"]);o!=null&&c(n,["controlType"],o);const a=r(i,["enableControlImageComputation"]);return a!=null&&c(n,["computeControl"],a),n}function z2(i){const n={};if(r(i,["systemInstruction"])!==void 0)throw new Error("systemInstruction parameter is not supported in Gemini API.");if(r(i,["tools"])!==void 0)throw new Error("tools parameter is not supported in Gemini API.");if(r(i,["generationConfig"])!==void 0)throw new Error("generationConfig parameter is not supported in Gemini API.");return n}function B2(i,n){const o={},a=r(i,["systemInstruction"]);n!==void 0&&a!=null&&c(n,["systemInstruction"],nt(a));const u=r(i,["tools"]);if(n!==void 0&&u!=null){let m=u;Array.isArray(m)&&(m=m.map(h=>Ah(h))),c(n,["tools"],m)}const d=r(i,["generationConfig"]);return n!==void 0&&d!=null&&c(n,["generationConfig"],bT(d)),o}function P2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let m=Lt(u);Array.isArray(m)&&(m=m.map(h=>Ea(h))),c(o,["contents"],m)}const d=r(n,["config"]);return d!=null&&z2(d),o}function O2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let m=Lt(u);Array.isArray(m)&&(m=m.map(h=>h)),c(o,["contents"],m)}const d=r(n,["config"]);return d!=null&&B2(d,o),o}function Y2(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["totalTokens"]);a!=null&&c(n,["totalTokens"],a);const u=r(i,["cachedContentTokenCount"]);return u!=null&&c(n,["cachedContentTokenCount"],u),n}function F2(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["totalTokens"]);return a!=null&&c(n,["totalTokens"],a),n}function J2(i,n){const o={},a=r(n,["model"]);return a!=null&&c(o,["_url","name"],Se(i,a)),o}function X2(i,n){const o={},a=r(n,["model"]);return a!=null&&c(o,["_url","name"],Se(i,a)),o}function K2(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function Q2(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}function Z2(i,n){const o={},a=r(i,["outputGcsUri"]);n!==void 0&&a!=null&&c(n,["parameters","storageUri"],a);const u=r(i,["negativePrompt"]);n!==void 0&&u!=null&&c(n,["parameters","negativePrompt"],u);const d=r(i,["numberOfImages"]);
167n!==void 0&&d!=null&&c(n,["parameters","sampleCount"],d);const m=r(i,["aspectRatio"]);n!==void 0&&m!=null&&c(n,["parameters","aspectRatio"],m);const h=r(i,["guidanceScale"]);n!==void 0&&h!=null&&c(n,["parameters","guidanceScale"],h);const y=r(i,["seed"]);n!==void 0&&y!=null&&c(n,["parameters","seed"],y);const g=r(i,["safetyFilterLevel"]);n!==void 0&&g!=null&&c(n,["parameters","safetySetting"],g);const v=r(i,["personGeneration"]);n!==void 0&&v!=null&&c(n,["parameters","personGeneration"],v);const S=r(i,["includeSafetyAttributes"]);n!==void 0&&S!=null&&c(n,["parameters","includeSafetyAttributes"],S);const C=r(i,["includeRaiReason"]);n!==void 0&&C!=null&&c(n,["parameters","includeRaiReason"],C);const A=r(i,["language"]);n!==void 0&&A!=null&&c(n,["parameters","language"],A);const D=r(i,["outputMimeType"]);n!==void 0&&D!=null&&c(n,["parameters","outputOptions","mimeType"],D);const L=r(i,["outputCompressionQuality"]);n!==void 0&&L!=null&&c(n,["parameters","outputOptions","compressionQuality"],L);const B=r(i,["addWatermark"]);n!==void 0&&B!=null&&c(n,["parameters","addWatermark"],B);const P=r(i,["labels"]);n!==void 0&&P!=null&&c(n,["labels"],P);const O=r(i,["editMode"]);n!==void 0&&O!=null&&c(n,["parameters","editMode"],O);const H=r(i,["baseSteps"]);return n!==void 0&&H!=null&&c(n,["parameters","editConfig","baseSteps"],H),o}function W2(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["prompt"]);u!=null&&c(o,["instances[0]","prompt"],u);const d=r(n,["referenceImages"]);if(d!=null){let h=d;Array.isArray(h)&&(h=h.map(y=>jT(y))),c(o,["instances[0]","referenceImages"],h)}const m=r(n,["config"]);return m!=null&&Z2(m,o),o}function $2(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["predictions"]);if(a!=null){let u=a;Array.isArray(u)&&(u=u.map(d=>Sa(d))),c(n,["generatedImages"],u)}return n}function j2(i,n){const o={},a=r(i,["taskType"]);n!==void 0&&a!=null&&c(n,["requests[]","taskType"],a);const u=r(i,["title"]);n!==void 0&&u!=null&&c(n,["requests[]","title"],u);const d=r(i,["outputDimensionality"]);if(n!==void 0&&d!=null&&c(n,["requests[]","outputDimensionality"],d),r(i,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(r(i,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");return o}function eT(i,n){const o={},a=r(i,["taskType"]);n!==void 0&&a!=null&&c(n,["instances[]","task_type"],a);const u=r(i,["title"]);n!==void 0&&u!=null&&c(n,["instances[]","title"],u);const d=r(i,["outputDimensionality"]);n!==void 0&&d!=null&&c(n,["parameters","outputDimensionality"],d);const m=r(i,["mimeType"]);n!==void 0&&m!=null&&c(n,["instances[]","mimeType"],m);const h=r(i,["autoTruncate"]);return n!==void 0&&h!=null&&c(n,["parameters","autoTruncate"],h),o}function tT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let h=fu(i,u);Array.isArray(h)&&(h=h.map(y=>y)),c(o,["requests[]","content"],h)}const d=r(n,["config"]);d!=null&&j2(d,o);const m=r(n,["model"]);return m!==void 0&&c(o,["requests[]","model"],Se(i,m)),o}function nT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let m=fu(i,u);Array.isArray(m)&&(m=m.map(h=>h)),c(o,["instances[]","content"],m)}const d=r(n,["config"]);return d!=null&&eT(d,o),o}function iT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["embeddings"]);if(a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["embeddings"],d)}const u=r(i,["metadata"]);return u!=null&&c(n,["metadata"],u),n}function lT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["predictions[]","embeddings"]);if(a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>q2(m))),c(n,["embeddings"],d)}const u=r(i,["metadata"]);return u!=null&&c(n,["metadata"],u),n}function oT(i){const n={},o=r(i,["endpoint"]);o!=null&&c(n,["name"],o);const a=r(i,["deployedModelId"]);return a!=null&&c(n,["deployedModelId"],a),n}function aT(i){const n={};if(r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const o=r(i,["fileUri"]);o!=null&&c(n,["fileUri"],o);const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function sT(i){const n={},o=r(i,["id"]);o!=null&&c(n,["id"],o);const a=r(i,["args"]);a!=null&&c(n,["args"],a);const u=r(i,["name"]);if(u!=null&&c(n,["name"],u),r(i,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(r(i,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return n}function rT(i){const n={},o=r(i,["mode"]);o!=null&&c(n,["mode"],o);const a=r(i,["allowedFunctionNames"]);if(a!=null&&c(n,["allowedFunctionNames"],a),r(i,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return n}function uT(i){const n={};if(r(i,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Vertex AI.");const o=r(i,["description"]);o!=null&&c(n,["description"],o);const a=r(i,["name"]);a!=null&&c(n,["name"],a);const u=r(i,["parameters"]);u!=null&&c(n,["parameters"],u);const d=r(i,["parametersJsonSchema"]);d!=null&&c(n,["parametersJsonSchema"],d);const m=r(i,["response"]);m!=null&&c(n,["response"],m);const h=r(i,["responseJsonSchema"]);return h!=null&&c(n,["responseJsonSchema"],h),n}function cT(i,n,o){const a={},u=r(n,["systemInstruction"]);o!==void 0&&u!=null&&c(o,["systemInstruction"],Ea(nt(u)));const d=r(n,["temperature"]);d!=null&&c(a,["temperature"],d);const m=r(n,["topP"]);m!=null&&c(a,["topP"],m);const h=r(n,["topK"]);h!=null&&c(a,["topK"],h);const y=r(n,["candidateCount"]);y!=null&&c(a,["candidateCount"],y);const g=r(n,["maxOutputTokens"]);g!=null&&c(a,["maxOutputTokens"],g);const v=r(n,["stopSequences"]);v!=null&&c(a,["stopSequences"],v);const S=r(n,["responseLogprobs"]);S!=null&&c(a,["responseLogprobs"],S);const C=r(n,["logprobs"]);C!=null&&c(a,["logprobs"],C);const A=r(n,["presencePenalty"]);A!=null&&c(a,["presencePenalty"],A);const D=r(n,["frequencyPenalty"]);D!=null&&c(a,["frequencyPenalty"],D);const L=r(n,["seed"]);L!=null&&c(a,["seed"],L);const B=r(n,["responseMimeType"]);B!=null&&c(a,["responseMimeType"],B);const P=r(n,["responseSchema"]);P!=null&&c(a,["responseSchema"],du(P));const O=r(n,["responseJsonSchema"]);
167if(O!=null&&c(a,["responseJsonSchema"],O),r(n,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(r(n,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const H=r(n,["safetySettings"]);if(o!==void 0&&H!=null){let ce=H;Array.isArray(ce)&&(ce=ce.map(Be=>eE(Be))),c(o,["safetySettings"],ce)}const Y=r(n,["tools"]);if(o!==void 0&&Y!=null){let ce=Ji(Y);Array.isArray(ce)&&(ce=ce.map(Be=>sE(Fi(Be)))),c(o,["tools"],ce)}const J=r(n,["toolConfig"]);if(o!==void 0&&J!=null&&c(o,["toolConfig"],aE(J)),r(n,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const K=r(n,["cachedContent"]);o!==void 0&&K!=null&&c(o,["cachedContent"],un(i,K));const F=r(n,["responseModalities"]);F!=null&&c(a,["responseModalities"],F);const ae=r(n,["mediaResolution"]);ae!=null&&c(a,["mediaResolution"],ae);const W=r(n,["speechConfig"]);if(W!=null&&c(a,["speechConfig"],pu(W)),r(n,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const ue=r(n,["thinkingConfig"]);ue!=null&&c(a,["thinkingConfig"],ue);const ve=r(n,["imageConfig"]);return ve!=null&&c(a,["imageConfig"],qT(ve)),a}function fT(i,n,o){const a={},u=r(n,["systemInstruction"]);o!==void 0&&u!=null&&c(o,["systemInstruction"],nt(u));const d=r(n,["temperature"]);d!=null&&c(a,["temperature"],d);const m=r(n,["topP"]);m!=null&&c(a,["topP"],m);const h=r(n,["topK"]);h!=null&&c(a,["topK"],h);const y=r(n,["candidateCount"]);y!=null&&c(a,["candidateCount"],y);const g=r(n,["maxOutputTokens"]);g!=null&&c(a,["maxOutputTokens"],g);const v=r(n,["stopSequences"]);v!=null&&c(a,["stopSequences"],v);const S=r(n,["responseLogprobs"]);S!=null&&c(a,["responseLogprobs"],S);const C=r(n,["logprobs"]);C!=null&&c(a,["logprobs"],C);const A=r(n,["presencePenalty"]);A!=null&&c(a,["presencePenalty"],A);const D=r(n,["frequencyPenalty"]);D!=null&&c(a,["frequencyPenalty"],D);const L=r(n,["seed"]);L!=null&&c(a,["seed"],L);const B=r(n,["responseMimeType"]);B!=null&&c(a,["responseMimeType"],B);const P=r(n,["responseSchema"]);P!=null&&c(a,["responseSchema"],du(P));const O=r(n,["responseJsonSchema"]);O!=null&&c(a,["responseJsonSchema"],O);const H=r(n,["routingConfig"]);H!=null&&c(a,["routingConfig"],H);const Y=r(n,["modelSelectionConfig"]);Y!=null&&c(a,["modelConfig"],Y);const J=r(n,["safetySettings"]);if(o!==void 0&&J!=null){let k=J;Array.isArray(k)&&(k=k.map(X=>X)),c(o,["safetySettings"],k)}const K=r(n,["tools"]);if(o!==void 0&&K!=null){let k=Ji(K);Array.isArray(k)&&(k=k.map(X=>Ah(Fi(X)))),c(o,["tools"],k)}const F=r(n,["toolConfig"]);o!==void 0&&F!=null&&c(o,["toolConfig"],F);const ae=r(n,["labels"]);o!==void 0&&ae!=null&&c(o,["labels"],ae);const W=r(n,["cachedContent"]);o!==void 0&&W!=null&&c(o,["cachedContent"],un(i,W));const ue=r(n,["responseModalities"]);ue!=null&&c(a,["responseModalities"],ue);const ve=r(n,["mediaResolution"]);ve!=null&&c(a,["mediaResolution"],ve);const ce=r(n,["speechConfig"]);ce!=null&&c(a,["speechConfig"],_h(pu(ce)));const Be=r(n,["audioTimestamp"]);Be!=null&&c(a,["audioTimestamp"],Be);const ot=r(n,["thinkingConfig"]);ot!=null&&c(a,["thinkingConfig"],ot);const et=r(n,["imageConfig"]);return et!=null&&c(a,["imageConfig"],GT(et)),a}function Pm(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let m=Lt(u);Array.isArray(m)&&(m=m.map(h=>Ea(h))),c(o,["contents"],m)}const d=r(n,["config"]);return d!=null&&c(o,["generationConfig"],cT(i,d,o)),o}function Om(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["contents"]);if(u!=null){let m=Lt(u);Array.isArray(m)&&(m=m.map(h=>h)),c(o,["contents"],m)}const d=r(n,["config"]);return d!=null&&c(o,["generationConfig"],fT(i,d,o)),o}function Ym(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["candidates"]);if(a!=null){let y=a;Array.isArray(y)&&(y=y.map(g=>L2(g))),c(n,["candidates"],y)}const u=r(i,["modelVersion"]);u!=null&&c(n,["modelVersion"],u);const d=r(i,["promptFeedback"]);d!=null&&c(n,["promptFeedback"],d);const m=r(i,["responseId"]);m!=null&&c(n,["responseId"],m);const h=r(i,["usageMetadata"]);return h!=null&&c(n,["usageMetadata"],h),n}function Fm(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["candidates"]);if(a!=null){let g=a;Array.isArray(g)&&(g=g.map(v=>v)),c(n,["candidates"],g)}const u=r(i,["createTime"]);u!=null&&c(n,["createTime"],u);const d=r(i,["modelVersion"]);d!=null&&c(n,["modelVersion"],d);const m=r(i,["promptFeedback"]);m!=null&&c(n,["promptFeedback"],m);const h=r(i,["responseId"]);h!=null&&c(n,["responseId"],h);const y=r(i,["usageMetadata"]);return y!=null&&c(n,["usageMetadata"],y),n}function dT(i,n){const o={};if(r(i,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(r(i,["negativePrompt"])!==void 0)throw new Error("negativePrompt parameter is not supported in Gemini API.");const a=r(i,["numberOfImages"]);
167n!==void 0&&a!=null&&c(n,["parameters","sampleCount"],a);const u=r(i,["aspectRatio"]);n!==void 0&&u!=null&&c(n,["parameters","aspectRatio"],u);const d=r(i,["guidanceScale"]);if(n!==void 0&&d!=null&&c(n,["parameters","guidanceScale"],d),r(i,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const m=r(i,["safetyFilterLevel"]);n!==void 0&&m!=null&&c(n,["parameters","safetySetting"],m);const h=r(i,["personGeneration"]);n!==void 0&&h!=null&&c(n,["parameters","personGeneration"],h);const y=r(i,["includeSafetyAttributes"]);n!==void 0&&y!=null&&c(n,["parameters","includeSafetyAttributes"],y);const g=r(i,["includeRaiReason"]);n!==void 0&&g!=null&&c(n,["parameters","includeRaiReason"],g);const v=r(i,["language"]);n!==void 0&&v!=null&&c(n,["parameters","language"],v);const S=r(i,["outputMimeType"]);n!==void 0&&S!=null&&c(n,["parameters","outputOptions","mimeType"],S);const C=r(i,["outputCompressionQuality"]);if(n!==void 0&&C!=null&&c(n,["parameters","outputOptions","compressionQuality"],C),r(i,["addWatermark"])!==void 0)throw new Error("addWatermark parameter is not supported in Gemini API.");if(r(i,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const A=r(i,["imageSize"]);if(n!==void 0&&A!=null&&c(n,["parameters","sampleImageSize"],A),r(i,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");return o}function pT(i,n){const o={},a=r(i,["outputGcsUri"]);n!==void 0&&a!=null&&c(n,["parameters","storageUri"],a);const u=r(i,["negativePrompt"]);n!==void 0&&u!=null&&c(n,["parameters","negativePrompt"],u);const d=r(i,["numberOfImages"]);n!==void 0&&d!=null&&c(n,["parameters","sampleCount"],d);const m=r(i,["aspectRatio"]);n!==void 0&&m!=null&&c(n,["parameters","aspectRatio"],m);const h=r(i,["guidanceScale"]);n!==void 0&&h!=null&&c(n,["parameters","guidanceScale"],h);const y=r(i,["seed"]);n!==void 0&&y!=null&&c(n,["parameters","seed"],y);const g=r(i,["safetyFilterLevel"]);n!==void 0&&g!=null&&c(n,["parameters","safetySetting"],g);const v=r(i,["personGeneration"]);n!==void 0&&v!=null&&c(n,["parameters","personGeneration"],v);const S=r(i,["includeSafetyAttributes"]);n!==void 0&&S!=null&&c(n,["parameters","includeSafetyAttributes"],S);const C=r(i,["includeRaiReason"]);n!==void 0&&C!=null&&c(n,["parameters","includeRaiReason"],C);const A=r(i,["language"]);n!==void 0&&A!=null&&c(n,["parameters","language"],A);const D=r(i,["outputMimeType"]);n!==void 0&&D!=null&&c(n,["parameters","outputOptions","mimeType"],D);const L=r(i,["outputCompressionQuality"]);n!==void 0&&L!=null&&c(n,["parameters","outputOptions","compressionQuality"],L);const B=r(i,["addWatermark"]);n!==void 0&&B!=null&&c(n,["parameters","addWatermark"],B);const P=r(i,["labels"]);n!==void 0&&P!=null&&c(n,["labels"],P);const O=r(i,["imageSize"]);n!==void 0&&O!=null&&c(n,["parameters","sampleImageSize"],O);const H=r(i,["enhancePrompt"]);return n!==void 0&&H!=null&&c(n,["parameters","enhancePrompt"],H),o}function mT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["prompt"]);u!=null&&c(o,["instances[0]","prompt"],u);const d=r(n,["config"]);return d!=null&&dT(d,o),o}function hT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["prompt"]);u!=null&&c(o,["instances[0]","prompt"],u);const d=r(n,["config"]);return d!=null&&pT(d,o),o}function gT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["predictions"]);if(a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>RT(m))),c(n,["generatedImages"],d)}const u=r(i,["positivePromptSafetyAttributes"]);return u!=null&&c(n,["positivePromptSafetyAttributes"],Sh(u)),n}function yT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["predictions"]);if(a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>Sa(m))),c(n,["generatedImages"],d)}const u=r(i,["positivePromptSafetyAttributes"]);return u!=null&&c(n,["positivePromptSafetyAttributes"],Ch(u)),n}function vT(i,n){const o={},a=r(i,["numberOfVideos"]);
167if(n!==void 0&&a!=null&&c(n,["parameters","sampleCount"],a),r(i,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(r(i,["fps"])!==void 0)throw new Error("fps parameter is not supported in Gemini API.");const u=r(i,["durationSeconds"]);if(n!==void 0&&u!=null&&c(n,["parameters","durationSeconds"],u),r(i,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const d=r(i,["aspectRatio"]);n!==void 0&&d!=null&&c(n,["parameters","aspectRatio"],d);const m=r(i,["resolution"]);n!==void 0&&m!=null&&c(n,["parameters","resolution"],m);const h=r(i,["personGeneration"]);if(n!==void 0&&h!=null&&c(n,["parameters","personGeneration"],h),r(i,["pubsubTopic"])!==void 0)throw new Error("pubsubTopic parameter is not supported in Gemini API.");const y=r(i,["negativePrompt"]);n!==void 0&&y!=null&&c(n,["parameters","negativePrompt"],y);const g=r(i,["enhancePrompt"]);if(n!==void 0&&g!=null&&c(n,["parameters","enhancePrompt"],g),r(i,["generateAudio"])!==void 0)throw new Error("generateAudio parameter is not supported in Gemini API.");const v=r(i,["lastFrame"]);n!==void 0&&v!=null&&c(n,["instances[0]","lastFrame"],Ca(v));const S=r(i,["referenceImages"]);if(n!==void 0&&S!=null){let C=S;Array.isArray(C)&&(C=C.map(A=>EE(A))),c(n,["instances[0]","referenceImages"],C)}if(r(i,["mask"])!==void 0)throw new Error("mask parameter is not supported in Gemini API.");if(r(i,["compressionQuality"])!==void 0)throw new Error("compressionQuality parameter is not supported in Gemini API.");return o}function TT(i,n){const o={},a=r(i,["numberOfVideos"]);n!==void 0&&a!=null&&c(n,["parameters","sampleCount"],a);const u=r(i,["outputGcsUri"]);n!==void 0&&u!=null&&c(n,["parameters","storageUri"],u);const d=r(i,["fps"]);n!==void 0&&d!=null&&c(n,["parameters","fps"],d);const m=r(i,["durationSeconds"]);n!==void 0&&m!=null&&c(n,["parameters","durationSeconds"],m);const h=r(i,["seed"]);n!==void 0&&h!=null&&c(n,["parameters","seed"],h);const y=r(i,["aspectRatio"]);n!==void 0&&y!=null&&c(n,["parameters","aspectRatio"],y);const g=r(i,["resolution"]);n!==void 0&&g!=null&&c(n,["parameters","resolution"],g);const v=r(i,["personGeneration"]);n!==void 0&&v!=null&&c(n,["parameters","personGeneration"],v);const S=r(i,["pubsubTopic"]);n!==void 0&&S!=null&&c(n,["parameters","pubsubTopic"],S);const C=r(i,["negativePrompt"]);n!==void 0&&C!=null&&c(n,["parameters","negativePrompt"],C);const A=r(i,["enhancePrompt"]);n!==void 0&&A!=null&&c(n,["parameters","enhancePrompt"],A);const D=r(i,["generateAudio"]);n!==void 0&&D!=null&&c(n,["parameters","generateAudio"],D);const L=r(i,["lastFrame"]);n!==void 0&&L!=null&&c(n,["instances[0]","lastFrame"],qt(L));const B=r(i,["referenceImages"]);if(n!==void 0&&B!=null){let H=B;Array.isArray(H)&&(H=H.map(Y=>SE(Y))),c(n,["instances[0]","referenceImages"],H)}const P=r(i,["mask"]);n!==void 0&&P!=null&&c(n,["instances[0]","mask"],TE(P));const O=r(i,["compressionQuality"]);return n!==void 0&&O!=null&&c(n,["parameters","compressionQuality"],O),o}function ET(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response","generateVideoResponse"]);return m!=null&&c(n,["response"],AT(m)),n}function ST(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response"]);return m!=null&&c(n,["response"],xT(m)),n}function CT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["prompt"]);u!=null&&c(o,["instances[0]","prompt"],u);const d=r(n,["image"]);d!=null&&c(o,["instances[0]","image"],Ca(d));const m=r(n,["video"]);m!=null&&c(o,["instances[0]","video"],xh(m));const h=r(n,["source"]);h!=null&&MT(h,o);const y=r(n,["config"]);return y!=null&&vT(y,o),o}function _T(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["prompt"]);u!=null&&c(o,["instances[0]","prompt"],u);const d=r(n,["image"]);d!=null&&c(o,["instances[0]","image"],qt(d));const m=r(n,["video"]);m!=null&&c(o,["instances[0]","video"],Mh(m));const h=r(n,["source"]);h!=null&&wT(h,o);const y=r(n,["config"]);return y!=null&&TT(y,o),o}function AT(i){const n={},o=r(i,["generatedSamples"]);if(o!=null){let d=o;Array.isArray(d)&&(d=d.map(m=>IT(m))),c(n,["generatedVideos"],d)}const a=r(i,["raiMediaFilteredCount"]);a!=null&&c(n,["raiMediaFilteredCount"],a);const u=r(i,["raiMediaFilteredReasons"]);return u!=null&&c(n,["raiMediaFilteredReasons"],u),n}function xT(i){const n={},o=r(i,["videos"]);if(o!=null){let d=o;Array.isArray(d)&&(d=d.map(m=>DT(m))),c(n,["generatedVideos"],d)}const a=r(i,["raiMediaFilteredCount"]);a!=null&&c(n,["raiMediaFilteredCount"],a);const u=r(i,["raiMediaFilteredReasons"]);return u!=null&&c(n,["raiMediaFilteredReasons"],u),n}function MT(i,n){const o={},a=r(i,["prompt"]);n!==void 0&&a!=null&&c(n,["instances[0]","prompt"],a);const u=r(i,["image"]);n!==void 0&&u!=null&&c(n,["instances[0]","image"],Ca(u));const d=r(i,["video"]);return n!==void 0&&d!=null&&c(n,["instances[0]","video"],xh(d)),o}function wT(i,n){const o={},a=r(i,["prompt"]);n!==void 0&&a!=null&&c(n,["instances[0]","prompt"],a);const u=r(i,["image"]);n!==void 0&&u!=null&&c(n,["instances[0]","image"],qt(u));const d=r(i,["video"]);return n!==void 0&&d!=null&&c(n,["instances[0]","video"],Mh(d)),o}function RT(i){const n={},o=r(i,["_self"]);o!=null&&c(n,["image"],VT(o));const a=r(i,["raiFilteredReason"]);a!=null&&c(n,["raiFilteredReason"],a);const u=r(i,["_self"]);return u!=null&&c(n,["safetyAttributes"],Sh(u)),n}function Sa(i){const n={},o=r(i,["_self"]);o!=null&&c(n,["image"],Eh(o));const a=r(i,["raiFilteredReason"]);a!=null&&c(n,["raiFilteredReason"],a);const u=r(i,["_self"]);u!=null&&c(n,["safetyAttributes"],Ch(u));const d=r(i,["prompt"]);return d!=null&&c(n,["enhancedPrompt"],d),n}function NT(i){const n={},o=r(i,["_self"]);o!=null&&c(n,["mask"],Eh(o));const a=r(i,["labels"]);if(a!=null){let u=a;Array.isArray(u)&&(u=u.map(d=>d)),c(n,["labels"],u)}return n}function IT(i){const n={},o=r(i,["video"]);return o!=null&&c(n,["video"],yE(o)),n}function DT(i){const n={},o=r(i,["_self"]);return o!=null&&c(n,["video"],vE(o)),n}function bT(i){const n={},o=r(i,["modelSelectionConfig"]);o!=null&&c(n,["modelConfig"],o);const a=r(i,["responseJsonSchema"]);a!=null&&c(n,["responseJsonSchema"],a);const u=r(i,["audioTimestamp"]);u!=null&&c(n,["audioTimestamp"],u);const d=r(i,["candidateCount"]);d!=null&&c(n,["candidateCount"],d);const m=r(i,["enableAffectiveDialog"]);m!=null&&c(n,["enableAffectiveDialog"],m);const h=r(i,["frequencyPenalty"]);h!=null&&c(n,["frequencyPenalty"],h);const y=r(i,["logprobs"]);y!=null&&c(n,["logprobs"],y);const g=r(i,["maxOutputTokens"]);g!=null&&c(n,["maxOutputTokens"],g);const v=r(i,["mediaResolution"]);v!=null&&c(n,["mediaResolution"],v);const S=r(i,["presencePenalty"]);S!=null&&c(n,["presencePenalty"],S);const C=r(i,["responseLogprobs"]);C!=null&&c(n,["responseLogprobs"],C);const A=r(i,["responseMimeType"]);A!=null&&c(n,["responseMimeType"],A);const D=r(i,["responseModalities"]);D!=null&&c(n,["responseModalities"],D);const L=r(i,["responseSchema"]);L!=null&&c(n,["responseSchema"],L);
167const B=r(i,["routingConfig"]);B!=null&&c(n,["routingConfig"],B);const P=r(i,["seed"]);P!=null&&c(n,["seed"],P);const O=r(i,["speechConfig"]);O!=null&&c(n,["speechConfig"],_h(O));const H=r(i,["stopSequences"]);H!=null&&c(n,["stopSequences"],H);const Y=r(i,["temperature"]);Y!=null&&c(n,["temperature"],Y);const J=r(i,["thinkingConfig"]);J!=null&&c(n,["thinkingConfig"],J);const K=r(i,["topK"]);K!=null&&c(n,["topK"],K);const F=r(i,["topP"]);if(F!=null&&c(n,["topP"],F),r(i,["enableEnhancedCivicAnswers"])!==void 0)throw new Error("enableEnhancedCivicAnswers parameter is not supported in Vertex AI.");return n}function LT(i,n){const o={},a=r(n,["model"]);return a!=null&&c(o,["_url","name"],Se(i,a)),o}function UT(i,n){const o={},a=r(n,["model"]);return a!=null&&c(o,["_url","name"],Se(i,a)),o}function kT(i){const n={};if(r(i,["authConfig"])!==void 0)throw new Error("authConfig parameter is not supported in Gemini API.");const o=r(i,["enableWidget"]);return o!=null&&c(n,["enableWidget"],o),n}function HT(i){const n={};if(r(i,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");if(r(i,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");const o=r(i,["timeRangeFilter"]);return o!=null&&c(n,["timeRangeFilter"],o),n}function qT(i){const n={},o=r(i,["aspectRatio"]);o!=null&&c(n,["aspectRatio"],o);const a=r(i,["imageSize"]);if(a!=null&&c(n,["imageSize"],a),r(i,["outputMimeType"])!==void 0)throw new Error("outputMimeType parameter is not supported in Gemini API.");if(r(i,["outputCompressionQuality"])!==void 0)throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");return n}function GT(i){const n={},o=r(i,["aspectRatio"]);o!=null&&c(n,["aspectRatio"],o);const a=r(i,["imageSize"]);a!=null&&c(n,["imageSize"],a);const u=r(i,["outputMimeType"]);u!=null&&c(n,["imageOutputOptions","mimeType"],u);const d=r(i,["outputCompressionQuality"]);return d!=null&&c(n,["imageOutputOptions","compressionQuality"],d),n}function VT(i){const n={},o=r(i,["bytesBase64Encoded"]);o!=null&&c(n,["imageBytes"],Hn(o));const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function Eh(i){const n={},o=r(i,["gcsUri"]);o!=null&&c(n,["gcsUri"],o);const a=r(i,["bytesBase64Encoded"]);a!=null&&c(n,["imageBytes"],Hn(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["mimeType"],u),n}function Ca(i){const n={};if(r(i,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const o=r(i,["imageBytes"]);o!=null&&c(n,["bytesBase64Encoded"],Hn(o));const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function qt(i){const n={},o=r(i,["gcsUri"]);o!=null&&c(n,["gcsUri"],o);const a=r(i,["imageBytes"]);a!=null&&c(n,["bytesBase64Encoded"],Hn(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["mimeType"],u),n}function zT(i,n,o){const a={},u=r(n,["pageSize"]);o!==void 0&&u!=null&&c(o,["_query","pageSize"],u);const d=r(n,["pageToken"]);o!==void 0&&d!=null&&c(o,["_query","pageToken"],d);const m=r(n,["filter"]);o!==void 0&&m!=null&&c(o,["_query","filter"],m);const h=r(n,["queryBase"]);return o!==void 0&&h!=null&&c(o,["_url","models_url"],dh(i,h)),a}function BT(i,n,o){const a={},u=r(n,["pageSize"]);o!==void 0&&u!=null&&c(o,["_query","pageSize"],u);const d=r(n,["pageToken"]);o!==void 0&&d!=null&&c(o,["_query","pageToken"],d);const m=r(n,["filter"]);o!==void 0&&m!=null&&c(o,["_query","filter"],m);const h=r(n,["queryBase"]);return o!==void 0&&h!=null&&c(o,["_url","models_url"],dh(i,h)),a}function PT(i,n){const o={},a=r(n,["config"]);return a!=null&&zT(i,a,o),o}function OT(i,n){const o={},a=r(n,["config"]);return a!=null&&BT(i,a,o),o}function YT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["_self"]);if(u!=null){let d=ph(u);Array.isArray(d)&&(d=d.map(m=>nu(m))),c(n,["models"],d)}return n}function FT(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["_self"]);if(u!=null){let d=ph(u);Array.isArray(d)&&(d=d.map(m=>iu(m))),c(n,["models"],d)}return n}function JT(i){const n={},o=r(i,["maskMode"]);o!=null&&c(n,["maskMode"],o);const a=r(i,["segmentationClasses"]);a!=null&&c(n,["maskClasses"],a);const u=r(i,["maskDilation"]);return u!=null&&c(n,["dilation"],u),n}function nu(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["displayName"]);a!=null&&c(n,["displayName"],a);const u=r(i,["description"]);u!=null&&c(n,["description"],u);
167const d=r(i,["version"]);d!=null&&c(n,["version"],d);const m=r(i,["_self"]);m!=null&&c(n,["tunedModelInfo"],rE(m));const h=r(i,["inputTokenLimit"]);h!=null&&c(n,["inputTokenLimit"],h);const y=r(i,["outputTokenLimit"]);y!=null&&c(n,["outputTokenLimit"],y);const g=r(i,["supportedGenerationMethods"]);g!=null&&c(n,["supportedActions"],g);const v=r(i,["temperature"]);v!=null&&c(n,["temperature"],v);const S=r(i,["maxTemperature"]);S!=null&&c(n,["maxTemperature"],S);const C=r(i,["topP"]);C!=null&&c(n,["topP"],C);const A=r(i,["topK"]);A!=null&&c(n,["topK"],A);const D=r(i,["thinking"]);return D!=null&&c(n,["thinking"],D),n}function iu(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["displayName"]);a!=null&&c(n,["displayName"],a);const u=r(i,["description"]);u!=null&&c(n,["description"],u);const d=r(i,["versionId"]);d!=null&&c(n,["version"],d);const m=r(i,["deployedModels"]);if(m!=null){let S=m;Array.isArray(S)&&(S=S.map(C=>oT(C))),c(n,["endpoints"],S)}const h=r(i,["labels"]);h!=null&&c(n,["labels"],h);const y=r(i,["_self"]);y!=null&&c(n,["tunedModelInfo"],uE(y));const g=r(i,["defaultCheckpointId"]);g!=null&&c(n,["defaultCheckpointId"],g);const v=r(i,["checkpoints"]);if(v!=null){let S=v;Array.isArray(S)&&(S=S.map(C=>C)),c(n,["checkpoints"],S)}return n}function XT(i){const n={},o=r(i,["mediaResolution"]);o!=null&&c(n,["mediaResolution"],o);const a=r(i,["codeExecutionResult"]);a!=null&&c(n,["codeExecutionResult"],a);const u=r(i,["executableCode"]);u!=null&&c(n,["executableCode"],u);const d=r(i,["fileData"]);d!=null&&c(n,["fileData"],aT(d));const m=r(i,["functionCall"]);m!=null&&c(n,["functionCall"],sT(m));const h=r(i,["functionResponse"]);h!=null&&c(n,["functionResponse"],h);const y=r(i,["inlineData"]);y!=null&&c(n,["inlineData"],b2(y));const g=r(i,["text"]);g!=null&&c(n,["text"],g);const v=r(i,["thought"]);v!=null&&c(n,["thought"],v);const S=r(i,["thoughtSignature"]);S!=null&&c(n,["thoughtSignature"],S);const C=r(i,["videoMetadata"]);return C!=null&&c(n,["videoMetadata"],C),n}function KT(i){const n={},o=r(i,["productImage"]);return o!=null&&c(n,["image"],qt(o)),n}function QT(i,n){const o={},a=r(i,["numberOfImages"]);n!==void 0&&a!=null&&c(n,["parameters","sampleCount"],a);const u=r(i,["baseSteps"]);n!==void 0&&u!=null&&c(n,["parameters","baseSteps"],u);const d=r(i,["outputGcsUri"]);n!==void 0&&d!=null&&c(n,["parameters","storageUri"],d);const m=r(i,["seed"]);n!==void 0&&m!=null&&c(n,["parameters","seed"],m);const h=r(i,["safetyFilterLevel"]);n!==void 0&&h!=null&&c(n,["parameters","safetySetting"],h);const y=r(i,["personGeneration"]);n!==void 0&&y!=null&&c(n,["parameters","personGeneration"],y);const g=r(i,["addWatermark"]);n!==void 0&&g!=null&&c(n,["parameters","addWatermark"],g);const v=r(i,["outputMimeType"]);n!==void 0&&v!=null&&c(n,["parameters","outputOptions","mimeType"],v);const S=r(i,["outputCompressionQuality"]);n!==void 0&&S!=null&&c(n,["parameters","outputOptions","compressionQuality"],S);const C=r(i,["enhancePrompt"]);n!==void 0&&C!=null&&c(n,["parameters","enhancePrompt"],C);const A=r(i,["labels"]);return n!==void 0&&A!=null&&c(n,["labels"],A),o}function ZT(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["source"]);u!=null&&$T(u,o);const d=r(n,["config"]);return d!=null&&QT(d,o),o}function WT(i){const n={},o=r(i,["predictions"]);if(o!=null){let a=o;Array.isArray(a)&&(a=a.map(u=>Sa(u))),c(n,["generatedImages"],a)}return n}function $T(i,n){const o={},a=r(i,["prompt"]);n!==void 0&&a!=null&&c(n,["instances[0]","prompt"],a);const u=r(i,["personImage"]);n!==void 0&&u!=null&&c(n,["instances[0]","personImage","image"],qt(u));const d=r(i,["productImages"]);if(n!==void 0&&d!=null){let m=d;Array.isArray(m)&&(m=m.map(h=>KT(h))),c(n,["instances[0]","productImages"],m)}return o}function jT(i){const n={},o=r(i,["referenceImage"]);o!=null&&c(n,["referenceImage"],qt(o));const a=r(i,["referenceId"]);a!=null&&c(n,["referenceId"],a);const u=r(i,["referenceType"]);u!=null&&c(n,["referenceType"],u);const d=r(i,["maskImageConfig"]);d!=null&&c(n,["maskImageConfig"],JT(d));const m=r(i,["controlImageConfig"]);m!=null&&c(n,["controlImageConfig"],V2(m));const h=r(i,["styleImageConfig"]);h!=null&&c(n,["styleImageConfig"],h);const y=r(i,["subjectImageConfig"]);return y!=null&&c(n,["subjectImageConfig"],y),n}function Sh(i){const n={},o=r(i,["safetyAttributes","categories"]);o!=null&&c(n,["categories"],o);const a=r(i,["safetyAttributes","scores"]);a!=null&&c(n,["scores"],a);const u=r(i,["contentType"]);return u!=null&&c(n,["contentType"],u),n}function Ch(i){const n={},o=r(i,["safetyAttributes","categories"]);o!=null&&c(n,["categories"],o);const a=r(i,["safetyAttributes","scores"]);a!=null&&c(n,["scores"],a);const u=r(i,["contentType"]);return u!=null&&c(n,["contentType"],u),n}function eE(i){const n={},o=r(i,["category"]);if(o!=null&&c(n,["category"],o),r(i,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const a=r(i,["threshold"]);return a!=null&&c(n,["threshold"],a),n}function tE(i){const n={},o=r(i,["image"]);return o!=null&&c(n,["image"],qt(o)),n}function nE(i,n){const o={},a=r(i,["mode"]);n!==void 0&&a!=null&&c(n,["parameters","mode"],a);const u=r(i,["maxPredictions"]);n!==void 0&&u!=null&&c(n,["parameters","maxPredictions"],u);const d=r(i,["confidenceThreshold"]);n!==void 0&&d!=null&&c(n,["parameters","confidenceThreshold"],d);const m=r(i,["maskDilation"]);n!==void 0&&m!=null&&c(n,["parameters","maskDilation"],m);const h=r(i,["binaryColorThreshold"]);n!==void 0&&h!=null&&c(n,["parameters","binaryColorThreshold"],h);const y=r(i,["labels"]);return n!==void 0&&y!=null&&c(n,["labels"],y),o}function iE(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["source"]);u!=null&&oE(u,o);const d=r(n,["config"]);return d!=null&&nE(d,o),o}function lE(i){const n={},o=r(i,["predictions"]);if(o!=null){let a=o;Array.isArray(a)&&(a=a.map(u=>NT(u))),c(n,["generatedMasks"],a)}return n}function oE(i,n){const o={},a=r(i,["prompt"]);n!==void 0&&a!=null&&c(n,["instances[0]","prompt"],a);const u=r(i,["image"]);n!==void 0&&u!=null&&c(n,["instances[0]","image"],qt(u));const d=r(i,["scribbleImage"]);return n!==void 0&&d!=null&&c(n,["instances[0]","scribble"],tE(d)),o}function _h(i){const n={},o=r(i,["languageCode"]);o!=null&&c(n,["languageCode"],o);const a=r(i,["voiceConfig"]);if(a!=null&&c(n,["voiceConfig"],a),r(i,["multiSpeakerVoiceConfig"])!==void 0)throw new Error("multiSpeakerVoiceConfig parameter is not supported in Vertex AI.");return n}function aE(i){const n={},o=r(i,["functionCallingConfig"]);o!=null&&c(n,["functionCallingConfig"],rT(o));const a=r(i,["retrievalConfig"]);return a!=null&&c(n,["retrievalConfig"],a),n}function sE(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let v=o;Array.isArray(v)&&(v=v.map(S=>S)),c(n,["functionDeclarations"],v)}if(r(i,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const a=r(i,["googleSearchRetrieval"]);a!=null&&c(n,["googleSearchRetrieval"],a);const u=r(i,["computerUse"]);u!=null&&c(n,["computerUse"],u);const d=r(i,["fileSearch"]);d!=null&&c(n,["fileSearch"],d);const m=r(i,["codeExecution"]);if(m!=null&&c(n,["codeExecution"],m),r(i,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const h=r(i,["googleMaps"]);h!=null&&c(n,["googleMaps"],kT(h));const y=r(i,["googleSearch"]);y!=null&&c(n,["googleSearch"],HT(y));const g=r(i,["urlContext"]);return g!=null&&c(n,["urlContext"],g),n}function Ah(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let S=o;Array.isArray(S)&&(S=S.map(C=>
167uT(C))),c(n,["functionDeclarations"],S)}const a=r(i,["retrieval"]);a!=null&&c(n,["retrieval"],a);const u=r(i,["googleSearchRetrieval"]);u!=null&&c(n,["googleSearchRetrieval"],u);const d=r(i,["computerUse"]);if(d!=null&&c(n,["computerUse"],d),r(i,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Vertex AI.");const m=r(i,["codeExecution"]);m!=null&&c(n,["codeExecution"],m);const h=r(i,["enterpriseWebSearch"]);h!=null&&c(n,["enterpriseWebSearch"],h);const y=r(i,["googleMaps"]);y!=null&&c(n,["googleMaps"],y);const g=r(i,["googleSearch"]);g!=null&&c(n,["googleSearch"],g);const v=r(i,["urlContext"]);return v!=null&&c(n,["urlContext"],v),n}function rE(i){const n={},o=r(i,["baseModel"]);o!=null&&c(n,["baseModel"],o);const a=r(i,["createTime"]);a!=null&&c(n,["createTime"],a);const u=r(i,["updateTime"]);return u!=null&&c(n,["updateTime"],u),n}function uE(i){const n={},o=r(i,["labels","google-vertex-llm-tuning-base-model-id"]);o!=null&&c(n,["baseModel"],o);const a=r(i,["createTime"]);a!=null&&c(n,["createTime"],a);const u=r(i,["updateTime"]);return u!=null&&c(n,["updateTime"],u),n}function cE(i,n){const o={},a=r(i,["displayName"]);n!==void 0&&a!=null&&c(n,["displayName"],a);const u=r(i,["description"]);n!==void 0&&u!=null&&c(n,["description"],u);const d=r(i,["defaultCheckpointId"]);return n!==void 0&&d!=null&&c(n,["defaultCheckpointId"],d),o}function fE(i,n){const o={},a=r(i,["displayName"]);n!==void 0&&a!=null&&c(n,["displayName"],a);const u=r(i,["description"]);n!==void 0&&u!=null&&c(n,["description"],u);const d=r(i,["defaultCheckpointId"]);return n!==void 0&&d!=null&&c(n,["defaultCheckpointId"],d),o}function dE(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","name"],Se(i,a));const u=r(n,["config"]);return u!=null&&cE(u,o),o}function pE(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["config"]);return u!=null&&fE(u,o),o}function mE(i,n){const o={},a=r(i,["outputGcsUri"]);n!==void 0&&a!=null&&c(n,["parameters","storageUri"],a);const u=r(i,["safetyFilterLevel"]);n!==void 0&&u!=null&&c(n,["parameters","safetySetting"],u);const d=r(i,["personGeneration"]);n!==void 0&&d!=null&&c(n,["parameters","personGeneration"],d);const m=r(i,["includeRaiReason"]);n!==void 0&&m!=null&&c(n,["parameters","includeRaiReason"],m);const h=r(i,["outputMimeType"]);n!==void 0&&h!=null&&c(n,["parameters","outputOptions","mimeType"],h);const y=r(i,["outputCompressionQuality"]);n!==void 0&&y!=null&&c(n,["parameters","outputOptions","compressionQuality"],y);const g=r(i,["enhanceInputImage"]);n!==void 0&&g!=null&&c(n,["parameters","upscaleConfig","enhanceInputImage"],g);const v=r(i,["imagePreservationFactor"]);n!==void 0&&v!=null&&c(n,["parameters","upscaleConfig","imagePreservationFactor"],v);const S=r(i,["labels"]);n!==void 0&&S!=null&&c(n,["labels"],S);const C=r(i,["numberOfImages"]);n!==void 0&&C!=null&&c(n,["parameters","sampleCount"],C);const A=r(i,["mode"]);return n!==void 0&&A!=null&&c(n,["parameters","mode"],A),o}function hE(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["_url","model"],Se(i,a));const u=r(n,["image"]);u!=null&&c(o,["instances[0]","image"],qt(u));const d=r(n,["upscaleFactor"]);d!=null&&c(o,["parameters","upscaleConfig","upscaleFactor"],d);const m=r(n,["config"]);return m!=null&&mE(m,o),o}function gE(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["predictions"]);if(a!=null){let u=a;Array.isArray(u)&&(u=u.map(d=>Sa(d))),c(n,["generatedImages"],u)}return n}function yE(i){const n={},o=r(i,["uri"]);o!=null&&c(n,["uri"],o);const a=r(i,["encodedVideo"]);a!=null&&c(n,["videoBytes"],Hn(a));const u=r(i,["encoding"]);return u!=null&&c(n,["mimeType"],u),n}function vE(i){const n={},o=r(i,["gcsUri"]);o!=null&&c(n,["uri"],o);const a=r(i,["bytesBase64Encoded"]);a!=null&&c(n,["videoBytes"],Hn(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["mimeType"],u),n}function TE(i){const n={},o=r(i,["image"]);o!=null&&c(n,["_self"],qt(o));const a=r(i,["maskMode"]);return a!=null&&c(n,["maskMode"],a),n}function EE(i){const n={},o=r(i,["image"]);o!=null&&c(n,["image"],Ca(o));const a=r(i,["referenceType"]);return a!=null&&c(n,["referenceType"],a),n}function SE(i){const n={},o=r(i,["image"]);o!=null&&c(n,["image"],qt(o));const a=r(i,["referenceType"]);return a!=null&&c(n,["referenceType"],a),n}function xh(i){const n={},o=r(i,["uri"]);o!=null&&c(n,["uri"],o);const a=r(i,["videoBytes"]);a!=null&&c(n,["encodedVideo"],Hn(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["encoding"],u),n}function Mh(i){const n={},o=r(i,["uri"]);o!=null&&c(n,["gcsUri"],o);const a=r(i,["videoBytes"]);a!=null&&c(n,["bytesBase64Encoded"],Hn(a));const u=r(i,["mimeType"]);return u!=null&&c(n,["mimeType"],u),n}/** 168 * @license 169 * Copyright 2025 Google LLC 170 * SPDX-License-Identifier: Apache-2.0 171 */const CE="Content-Type",_E="X-Server-Timeout",AE="User-Agent",lu="x-goog-api-client",xE="1.30.0",ME=`google-genai-sdk/${xE}`,wE="v1beta1",RE="v1beta",Jm=/^\s*data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;class NE{constructor(n){var o,a;this.clientOptions=Object.assign(Object.assign({},n),{project:n.project,location:n.location,apiKey:n.apiKey,vertexai:n.vertexai});const u={};this.clientOptions.vertexai?(u.apiVersion=(o=this.clientOptions.apiVersion)!==null&&o!==void 0?o:wE,u.baseUrl=this.baseUrlFromProjectLocation(),this.normalizeAuthParameters()):(u.apiVersion=(a=this.clientOptions.apiVersion)!==null&&a!==void 0?a:RE,u.baseUrl="https://generativelanguage.googleapis.com/"),u.headers=this.getDefaultHeaders(),this.clientOptions.httpOptions=u,n.httpOptions&&(this.clientOptions.httpOptions=this.patchHttpOptions(u,n.httpOptions))}baseUrlFromProjectLocation(){return this.clientOptions.project&&this.clientOptions.location&&this.clientOptions.location!=="global"?`https://${this.clientOptions.location}-aiplatform.googleapis.com/`:"https://aiplatform.googleapis.com/"}normalizeAuthParameters(){if(this.clientOptions.project&&this.clientOptions.location){this.clientOptions.apiKey=void 0;return}this.clientOptions.project=void 0,this.clientOptions.location=void 0}isVertexAI(){var n;return(n=this.clientOptions.vertexai)!==null&&n!==void 0?n:!1}getProject(){return this.clientOptions.project}getLocation(){return this.clientOptions.location}getApiVersion(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.apiVersion!==void 0)return this.clientOptions.httpOptions.apiVersion;throw new Error("API version is not set.")}getBaseUrl(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.baseUrl!==void 0)return this.clientOptions.httpOptions.baseUrl;throw new Error("Base URL is not set.")}getRequestUrl(){return this.getRequestUrlInternal(this.clientOptions.httpOptions)}getHeaders(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.headers!==void 0)return this.clientOptions.httpOptions.headers;throw new Error("Headers are not set.")}getRequestUrlInternal(n){if(!n||n.baseUrl===void 0||n.apiVersion===void 0)throw new Error("HTTP options are not correctly set.");const a=[n.baseUrl.endsWith("/")?n.baseUrl.slice(0,-1):n.baseUrl];return n.apiVersion&&n.apiVersion!==""&&a.push(n.apiVersion),a.join("/")}getBaseResourcePath(){return`projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`}getApiKey(){return this.clientOptions.apiKey}getWebsocketBaseUrl(){const n=this.getBaseUrl(),o=new URL(n);return o.protocol=o.protocol=="http:"?"ws":"wss",o.toString()}setBaseUrl(n){if(this.clientOptions.httpOptions)this.clientOptions.httpOptions.baseUrl=n;else throw new Error("HTTP options are not correctly set.")}constructUrl(n,o,a){const u=[this.getRequestUrlInternal(o)];return a&&u.push(this.getBaseResourcePath()),n!==""&&u.push(n),new URL(`${u.join("/")}`)}shouldPrependVertexProjectPath(n){return!(this.clientOptions.apiKey||!this.clientOptions.vertexai||n.path.startsWith("projects/")||n.httpMethod==="GET"&&n.path.startsWith("publishers/google/models"))}async request(n){let o=this.clientOptions.httpOptions;n.httpOptions&&(o=this.patchHttpOptions(this.clientOptions.httpOptions,n.httpOptions));const a=this.shouldPrependVertexProjectPath(n),u=this.constructUrl(n.path,o,a);if(n.queryParams)for(const[m,h]of Object.entries(n.queryParams))u.searchParams.append(m,String(h));let d={};if(n.httpMethod==="GET"){if(n.body&&n.body!=="{}")throw new Error("Request body should be empty for GET request, but got non empty request body")}else d.body=n.body;return d=await this.includeExtraHttpOptionsToRequestInit(d,o,u.toString(),n.abortSignal),this.unaryApiCall(u,d,n.httpMethod)}patchHttpOptions(n,o){const a=JSON.parse(JSON.stringify(n));for(const[u,d]of Object.entries(o))typeof d=="object"?a[u]=Object.assign(Object.assign({},a[u]),d):d!==void 0&&(a[u]=d);return a}
171async requestStream(n){let o=this.clientOptions.httpOptions;n.httpOptions&&(o=this.patchHttpOptions(this.clientOptions.httpOptions,n.httpOptions));const a=this.shouldPrependVertexProjectPath(n),u=this.constructUrl(n.path,o,a);(!u.searchParams.has("alt")||u.searchParams.get("alt")!=="sse")&&u.searchParams.set("alt","sse");let d={};return d.body=n.body,d=await this.includeExtraHttpOptionsToRequestInit(d,o,u.toString(),n.abortSignal),this.streamApiCall(u,d,n.httpMethod)}async includeExtraHttpOptionsToRequestInit(n,o,a,u){if(o&&o.timeout||u){const d=new AbortController,m=d.signal;if(o.timeout&&(o==null?void 0:o.timeout)>0){const h=setTimeout(()=>d.abort(),o.timeout);h&&typeof h.unref=="function"&&h.unref()}u&&u.addEventListener("abort",()=>{d.abort()}),n.signal=m}return o&&o.extraBody!==null&&IE(n,o.extraBody),n.headers=await this.getHeadersInternal(o,a),n}async unaryApiCall(n,o,a){return this.apiCall(n.toString(),Object.assign(Object.assign({},o),{method:a})).then(async u=>(await Xm(u),new jr(u))).catch(u=>{throw u instanceof Error?u:new Error(JSON.stringify(u))})}async streamApiCall(n,o,a){return this.apiCall(n.toString(),Object.assign(Object.assign({},o),{method:a})).then(async u=>(await Xm(u),this.processStreamResponse(u))).catch(u=>{throw u instanceof Error?u:new Error(JSON.stringify(u))})}processStreamResponse(n){var o;return Oi(this,arguments,function*(){const u=(o=n==null?void 0:n.body)===null||o===void 0?void 0:o.getReader(),d=new TextDecoder("utf-8");if(!u)throw new Error("Response body is empty");try{let m="";for(;;){const{done:h,value:y}=yield Ue(u.read());if(h){if(m.trim().length>0)throw new Error("Incomplete JSON segment at the end");break}const g=d.decode(y,{stream:!0});try{const S=JSON.parse(g);if("error"in S){const C=JSON.parse(JSON.stringify(S.error)),A=C.status,D=C.code,L=`got status: ${A}. ${JSON.stringify(S)}`;if(D>=400&&D<600)throw new Ta({message:L,status:D})}}catch(S){if(S.name==="ApiError")throw S}m+=g;let v=m.match(Jm);for(;v;){const S=v[1];try{const C=new Response(S,{headers:n==null?void 0:n.headers,status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText});yield yield Ue(new jr(C)),m=m.slice(v[0].length),v=m.match(Jm)}catch(C){throw new Error(`exception parsing stream chunk ${S}. ${C}`)}}}}finally{u.releaseLock()}})}async apiCall(n,o){return fetch(n,o).catch(a=>{throw new Error(`exception ${a} sending request`)})}getDefaultHeaders(){const n={},o=ME+" "+this.clientOptions.userAgentExtra;return n[AE]=o,n[lu]=o,n[CE]="application/json",n}async getHeadersInternal(n,o){const a=new Headers;if(n&&n.headers){for(const[u,d]of Object.entries(n.headers))a.append(u,d);n.timeout&&n.timeout>0&&a.append(_E,String(Math.ceil(n.timeout/1e3)))}return await this.clientOptions.auth.addAuthHeaders(a,o),a}getFileName(n){var o;let a="";return typeof n=="string"&&(a=n.replace(/[/\\]+$/,""),a=(o=a.split(/[/\\]/).pop())!==null&&o!==void 0?o:""),a}async uploadFile(n,o){var a;const u={};o!=null&&(u.mimeType=o.mimeType,u.name=o.name,u.displayName=o.displayName),u.name&&!u.name.startsWith("files/")&&(u.name=`files/${u.name}`);const d=this.clientOptions.uploader,m=await d.stat(n);u.sizeBytes=String(m.size);const h=(a=o==null?void 0:o.mimeType)!==null&&a!==void 0?a:m.type;if(h===void 0||h==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");u.mimeType=h;const y={file:u},g=this.getFileName(n),v=Z("upload/v1beta/files",y._url),S=await this.fetchUploadUrl(v,u.sizeBytes,u.mimeType,g,y,o==null?void 0:o.httpOptions);return d.upload(n,S,this)}async uploadFileToFileSearchStore(n,o,a){var u;const d=this.clientOptions.uploader,m=await d.stat(o),h=String(m.size),y=(u=a==null?void 0:a.mimeType)!==null&&u!==void 0?u:m.type;if(y===void 0||y==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");const g=`upload/v1beta/${n}:uploadToFileSearchStore`,v=this.getFileName(o),S={};a!=null&&a.customMetadata&&(S.customMetadata=a.customMetadata),a!=null&&a.chunkingConfig&&(S.chunkingConfig=a.chunkingConfig);const C=await this.fetchUploadUrl(g,h,y,v,S,a==null?void 0:a.httpOptions);return d.uploadToFileSearchStore(o,C,this)}async downloadFile(n){await this.clientOptions.downloader.download(n,this)}async fetchUploadUrl(n,o,a,u,d,m){var h;let y={};m?y=m:y={apiVersion:"",headers:Object.assign({"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${o}`,"X-Goog-Upload-Header-Content-Type":`${a}`},u?{"X-Goog-Upload-File-Name":u}:{})};const g=await this.request({path:n,body:JSON.stringify(d),httpMethod:"POST",httpOptions:y});if(!g||!(g!=null&&g.headers))throw new Error("Server did not return an HttpResponse or the returned HttpResponse did not have headers.");const v=(h=g==null?void 0:g.headers)===null||h===void 0?void 0:h["x-goog-upload-url"];if(v===void 0)throw new Error("Failed to get upload url. Server did not return the x-google-upload-url in the headers");return v}}async function Xm(i){var n;if(i===void 0)throw new Error("response is undefined");if(!i.ok){const o=i.status;let a;!((n=i.headers.get("content-type"))===null||n===void 0)&&n.includes("application/json")?a=await i.json():a={error:{message:await i.text(),code:i.status,status:i.statusText}};const u=JSON.stringify(a);throw o>=400&&o<600?new Ta({message:u,status:o}):new Error(u)}}function IE(i,n){if(!n||Object.keys(n).length===0)return;if(i.body instanceof Blob){console.warn("includeExtraBodyToRequestInit: extraBody provided but current request body is a Blob. extraBody will be ignored as merging is not supported for Blob bodies.");return}let o={};
171if(typeof i.body=="string"&&i.body.length>0)try{const d=JSON.parse(i.body);if(typeof d=="object"&&d!==null&&!Array.isArray(d))o=d;else{console.warn("includeExtraBodyToRequestInit: Original request body is valid JSON but not a non-array object. Skip applying extraBody to the request body.");return}}catch{console.warn("includeExtraBodyToRequestInit: Original request body is not valid JSON. Skip applying extraBody to the request body.");return}function a(d,m){const h=Object.assign({},d);for(const y in m)if(Object.prototype.hasOwnProperty.call(m,y)){const g=m[y],v=h[y];g&&typeof g=="object"&&!Array.isArray(g)&&v&&typeof v=="object"&&!Array.isArray(v)?h[y]=a(v,g):(v&&g&&typeof v!=typeof g&&console.warn(`includeExtraBodyToRequestInit:deepMerge: Type mismatch for key "${y}". Original type: ${typeof v}, New type: ${typeof g}. Overwriting.`),h[y]=g)}return h}const u=a(o,n);i.body=JSON.stringify(u)}/** 172 * @license 173 * Copyright 2025 Google LLC 174 * SPDX-License-Identifier: Apache-2.0 175 */const DE="mcp_used/unknown";let bE=!1;function wh(i){for(const n of i)if(LE(n)||typeof n=="object"&&"inputSchema"in n)return!0;return bE}function Rh(i){var n;const o=(n=i[lu])!==null&&n!==void 0?n:"";i[lu]=(o+` ${DE}`).trimStart()}function LE(i){return i!==null&&typeof i=="object"&&i instanceof hu}function UE(i,n=100){return Oi(this,arguments,function*(){let a,u=0;for(;u<n;){const d=yield Ue(i.listTools({cursor:a}));for(const m of d.tools)yield yield Ue(m),u++;if(!d.nextCursor)break;a=d.nextCursor}})}class hu{constructor(n=[],o){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=n,this.config=o}static create(n,o){return new hu(n,o)}async initialize(){var n,o,a,u;if(this.mcpTools.length>0)return;const d={},m=[];for(const v of this.mcpClients)try{for(var h=!0,y=(o=void 0,Fl(UE(v))),g;g=await y.next(),n=g.done,!n;h=!0){u=g.value,h=!1;const S=u;m.push(S);const C=S.name;if(d[C])throw new Error(`Duplicate function name ${C} found in MCP tools. Please ensure function names are unique.`);d[C]=v}}catch(S){o={error:S}}finally{try{!h&&!n&&(a=y.return)&&await a.call(y)}finally{if(o)throw o.error}}this.mcpTools=m,this.functionNameToMcpClient=d}async tool(){return await this.initialize(),Mv(this.mcpTools,this.config)}async callTool(n){await this.initialize();const o=[];for(const a of n)if(a.name in this.functionNameToMcpClient){const u=this.functionNameToMcpClient[a.name];let d;this.config.timeout&&(d={timeout:this.config.timeout});const m=await u.callTool({name:a.name,arguments:a.args},void 0,d);o.push({functionResponse:{name:a.name,response:m.isError?{error:m}:m}})}return o}}/** 176 * @license 177 * Copyright 2025 Google LLC 178 * SPDX-License-Identifier: Apache-2.0 179 */async function kE(i,n,o){const a=new vv;let u;o.data instanceof Blob?u=JSON.parse(await o.data.text()):u=JSON.parse(o.data),Object.assign(a,u),n(a)}class HE{constructor(n,o,a){this.apiClient=n,this.auth=o,this.webSocketFactory=a}async connect(n){var o,a;if(this.apiClient.isVertexAI())throw new Error("Live music is not supported for Vertex AI.");console.warn("Live music generation is experimental and may change in future versions.");const u=this.apiClient.getWebsocketBaseUrl(),d=this.apiClient.getApiVersion(),m=VE(this.apiClient.getDefaultHeaders()),h=this.apiClient.getApiKey(),y=`${u}/ws/google.ai.generativelanguage.${d}.GenerativeService.BidiGenerateMusic?key=${h}`;let g=()=>{};const v=new Promise(H=>{g=H}),S=n.callbacks,C=function(){g({})},A=this.apiClient,D={onopen:C,onmessage:H=>{kE(A,S.onmessage,H)},onerror:(o=S==null?void 0:S.onerror)!==null&&o!==void 0?o:function(H){},onclose:(a=S==null?void 0:S.onclose)!==null&&a!==void 0?a:function(H){}},L=this.webSocketFactory.create(y,GE(m),D);L.connect(),await v;const O={setup:{model:Se(this.apiClient,n.model)}};return L.send(JSON.stringify(O)),new qE(L,this.apiClient)}}class qE{constructor(n,o){this.conn=n,this.apiClient=o}async setWeightedPrompts(n){if(!n.weightedPrompts||Object.keys(n.weightedPrompts).length===0)throw new Error("Weighted prompts must be set and contain at least one entry.");const o=_2(n);this.conn.send(JSON.stringify({clientContent:o}))}async setMusicGenerationConfig(n){n.musicGenerationConfig||(n.musicGenerationConfig={});const o=C2(n);this.conn.send(JSON.stringify(o))}sendPlaybackControl(n){const o={playbackControl:n};this.conn.send(JSON.stringify(o))}play(){this.sendPlaybackControl(Bi.PLAY)}pause(){this.sendPlaybackControl(Bi.PAUSE)}stop(){this.sendPlaybackControl(Bi.STOP)}resetContext(){this.sendPlaybackControl(Bi.RESET_CONTEXT)}
179close(){this.conn.close()}}function GE(i){const n={};return i.forEach((o,a)=>{n[a]=o}),n}function VE(i){const n=new Headers;for(const[o,a]of Object.entries(i))n.append(o,a);return n}/** 180 * @license 181 * Copyright 2025 Google LLC 182 * SPDX-License-Identifier: Apache-2.0 183 */const zE="FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.";async function BE(i,n,o){const a=new yv;let u;o.data instanceof Blob?u=await o.data.text():o.data instanceof ArrayBuffer?u=new TextDecoder().decode(o.data):u=o.data;const d=JSON.parse(u);if(i.isVertexAI()){const m=M2(d);Object.assign(a,m)}else Object.assign(a,d);n(a)}class PE{constructor(n,o,a){this.apiClient=n,this.auth=o,this.webSocketFactory=a,this.music=new HE(this.apiClient,this.auth,this.webSocketFactory)}async connect(n){var o,a,u,d,m,h;if(n.config&&n.config.httpOptions)throw new Error("The Live module does not support httpOptions at request-level in LiveConnectConfig yet. Please use the client-level httpOptions configuration instead.");const y=this.apiClient.getWebsocketBaseUrl(),g=this.apiClient.getApiVersion();let v;const S=this.apiClient.getHeaders();n.config&&n.config.tools&&wh(n.config.tools)&&Rh(S);const C=JE(S);if(this.apiClient.isVertexAI())v=`${y}/ws/google.cloud.aiplatform.${g}.LlmBidiService/BidiGenerateContent`,await this.auth.addAuthHeaders(C,v);else{const W=this.apiClient.getApiKey();let ue="BidiGenerateContent",ve="key";W!=null&&W.startsWith("auth_tokens/")&&(console.warn("Warning: Ephemeral token support is experimental and may change in future versions."),g!=="v1alpha"&&console.warn("Warning: The SDK's ephemeral token support is in v1alpha only. Please use const ai = new GoogleGenAI({apiKey: token.name, httpOptions: { apiVersion: 'v1alpha' }}); before session connection."),ue="BidiGenerateContentConstrained",ve="access_token"),v=`${y}/ws/google.ai.generativelanguage.${g}.GenerativeService.${ue}?${ve}=${W}`}let A=()=>{};const D=new Promise(W=>{A=W}),L=n.callbacks,B=function(){var W;(W=L==null?void 0:L.onopen)===null||W===void 0||W.call(L),A({})},P=this.apiClient,O={onopen:B,onmessage:W=>{BE(P,L.onmessage,W)},onerror:(o=L==null?void 0:L.onerror)!==null&&o!==void 0?o:function(W){},onclose:(a=L==null?void 0:L.onclose)!==null&&a!==void 0?a:function(W){}},H=this.webSocketFactory.create(v,FE(C),O);H.connect(),await D;let Y=Se(this.apiClient,n.model);if(this.apiClient.isVertexAI()&&Y.startsWith("publishers/")){const W=this.apiClient.getProject(),ue=this.apiClient.getLocation();Y=`projects/${W}/locations/${ue}/`+Y}let J={};this.apiClient.isVertexAI()&&((u=n.config)===null||u===void 0?void 0:u.responseModalities)===void 0&&(n.config===void 0?n.config={responseModalities:[ha.AUDIO]}:n.config.responseModalities=[ha.AUDIO]),!((d=n.config)===null||d===void 0)&&d.generationConfig&&console.warn("Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. This will become an error in a future version (not before Q3 2025).");const K=(h=(m=n.config)===null||m===void 0?void 0:m.tools)!==null&&h!==void 0?h:[],F=[];for(const W of K)if(this.isCallableTool(W)){const ue=W;F.push(await ue.tool())}else F.push(W);F.length>0&&(n.config.tools=F);const ae={model:Y,config:n.config,callbacks:n.callbacks};return this.apiClient.isVertexAI()?J=S2(this.apiClient,ae):J=E2(this.apiClient,ae),delete J.config,H.send(JSON.stringify(J)),new YE(H,this.apiClient)}isCallableTool(n){return"callTool"in n&&typeof n.callTool=="function"}}const OE={turnComplete:!0};class YE{constructor(n,o){this.conn=n,this.apiClient=o}tLiveClientContent(n,o){if(o.turns!==null&&o.turns!==void 0){let a=[];try{a=Lt(o.turns),n.isVertexAI()||(a=a.map(u=>Ea(u)))}catch{throw new Error(`Failed to parse client content "turns", type: '${typeof o.turns}'`)}return{clientContent:{turns:a,turnComplete:o.turnComplete}}}return{clientContent:{turnComplete:o.turnComplete}}}tLiveClienttToolResponse(n,o){let a=[];if(o.functionResponses==null)throw new Error("functionResponses is required.");if(Array.isArray(o.functionResponses)?a=o.functionResponses:a=[o.functionResponses],a.length===0)throw new Error("functionResponses is required.");for(const d of a){if(typeof d!="object"||d===null||!("name"in d)||!("response"in d))throw new Error(`Could not parse function response, type '${typeof d}'.`);if(!n.isVertexAI()&&!("id"in d))throw new Error(zE)}return{toolResponse:{functionResponses:a}}}sendClientContent(n){n=Object.assign(Object.assign({},OE),n);const o=this.tLiveClientContent(this.apiClient,n);this.conn.send(JSON.stringify(o))}sendRealtimeInput(n){let o={};this.apiClient.isVertexAI()?o={realtimeInput:x2(n)}:o={realtimeInput:A2(n)},this.conn.send(JSON.stringify(o))}sendToolResponse(n){if(n.functionResponses==null)throw new Error("Tool response parameters are required.");const o=this.tLiveClienttToolResponse(this.apiClient,n);this.conn.send(JSON.stringify(o))}
183close(){this.conn.close()}}function FE(i){const n={};return i.forEach((o,a)=>{n[a]=o}),n}function JE(i){const n=new Headers;for(const[o,a]of Object.entries(i))n.append(o,a);return n}/** 184 * @license 185 * Copyright 2025 Google LLC 186 * SPDX-License-Identifier: Apache-2.0 187 */const Km=10;function Qm(i){var n,o,a;if(!((n=i==null?void 0:i.automaticFunctionCalling)===null||n===void 0)&&n.disable)return!0;let u=!1;for(const m of(o=i==null?void 0:i.tools)!==null&&o!==void 0?o:[])if(Yi(m)){u=!0;break}if(!u)return!0;const d=(a=i==null?void 0:i.automaticFunctionCalling)===null||a===void 0?void 0:a.maximumRemoteCalls;return d&&(d<0||!Number.isInteger(d))||d==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:",d),!0):!1}function Yi(i){return"callTool"in i&&typeof i.callTool=="function"}function XE(i){var n,o,a;return(a=(o=(n=i.config)===null||n===void 0?void 0:n.tools)===null||o===void 0?void 0:o.some(u=>Yi(u)))!==null&&a!==void 0?a:!1}function Zm(i){var n;const o=[];return!((n=i==null?void 0:i.config)===null||n===void 0)&&n.tools&&i.c
187onfig.tools.forEach((a,u)=>{if(Yi(a))return;const d=a;d.functionDeclarations&&d.functionDeclarations.length>0&&o.push(u)}),o}function Wm(i){var n;return!(!((n=i==null?void 0:i.automaticFunctionCalling)===null||n===void 0)&&n.ignoreCallHistory)}/** 188 * @license 189 * Copyright 2025 Google LLC 190 * SPDX-License-Identifier: Apache-2.0 191 */class KE extends rn{constructor(n){super(),this.apiClient=n,this.generateContent=async o=>{var a,u,d,m,h;const y=await this.processParamsMaybeAddMcpUsage(o);if(this.maybeMoveToResponseJsonSchem(o),!XE(o)||Qm(o.config))return await this.generateContentInternal(y);const g=Zm(o);if(g.length>0){const L=g.map(B=>`tools[${B}]`).join(", ");throw new Error(`Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations is not yet supported. Incompatible tools found at ${L}.`)}let v,S;const C=Lt(y.contents),A=(d=(u=(a=y.config)===null||a===void 0?void 0:a.automaticFunctionCalling)===null||u===void 0?void 0:u.maximumRemoteCalls)!==null&&d!==void 0?d:Km;let D=0;for(;D<A&&(v=await this.generateContentInternal(y),!(!v.functionCalls||v.functionCalls.length===0));){const L=v.candidates[0].content,B=[];for(const P of(h=(m=o.config)===null||m===void 0?void 0:m.tools)!==null&&h!==void 0?h:[])if(Yi(P)){const H=await P.callTool(v.functionCalls);B.push(...H)}D++,S={role:"user",parts:B},y.contents=Lt(y.contents),y.contents.push(L),y.contents.push(S),Wm(y.config)&&(C.push(L),C.push(S))}return Wm(y.config)&&(v.automaticFunctionCallingHistory=C),v},this.generateContentStream=async o=>{var a,u,d,m,h;if(this.maybeMoveToResponseJsonSchem(o),Qm(o.config)){const S=await this.processParamsMaybeAddMcpUsage(o);return await this.generateContentStreamInternal(S)}const y=Zm(o);if(y.length>0){const S=y.map(C=>`tools[${C}]`).join(", ");throw new Error(`Incompatible tools found at ${S}. Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations" is not yet supported.`)}const g=(d=(u=(a=o==null?void 0:o.config)===null||a===void 0?void 0:a.toolConfig)===null||u===void 0?void 0:u.functionCallingConfig)===null||d===void 0?void 0:d.streamFunctionCallArguments,v=(h=(m=o==null?void 0:o.config)===null||m===void 0?void 0:m.automaticFunctionCalling)===null||h===void 0?void 0:h.disable;if(g&&!v)throw new Error("Running in streaming mode with 'streamFunctionCallArguments' enabled, this feature is not compatible with automatic function calling (AFC). Please set 'config.automaticFunctionCalling.disable' to true to disable AFC or leave 'config.toolConfig.functionCallingConfig.streamFunctionCallArguments' to be undefined or set to false to disable streaming function call arguments feature.");return await this.processAfcStream(o)},this.generateImages=async o=>await this.generateImagesInternal(o).then(a=>{var u;let d;const m=[];if(a!=null&&a.generatedImages)for(const y of a.generatedImages)y&&(y!=null&&y.safetyAttributes)&&((u=y==null?void 0:y.safetyAttributes)===null||u===void 0?void 0:u.contentType)==="Positive Prompt"?d=y==null?void 0:y.safetyAttributes:m.push(y);let h;return d?h={generatedImages:m,positivePromptSafetyAttributes:d,sdkHttpResponse:a.sdkHttpResponse}:h={generatedImages:m,sdkHttpResponse:a.sdkHttpResponse},h}),this.list=async o=>{var a;const m={config:Object.assign(Object.assign({},{queryBase:!0}),o==null?void 0:o.config)};if(this.apiClient.isVertexAI()&&!m.config.queryBase){if(!((a=m.config)===null||a===void 0)&&a.filter)throw new Error("Filtering tuned models list for Vertex AI is not currently supported");m.config.filter="labels.tune-type:*"}return new ni(sn.PAGED_ITEM_MODELS,h=>this.listInternal(h),await this.listInternal(m),m)},this.editImage=async o=>{const a={model:o.model,prompt:o.prompt,referenceImages:[],config:o.config};return o.referenceImages&&o.referenceImages&&(a.referenceImages=o.referenceImages.map(u=>u.toReferenceImageAPI())),await this.editImageInternal(a)},this.upscaleImage=async o=>{let a={numberOfImages:1,mode:"upscale"};o.config&&(a=Object.assign(Object.assign({},a),o.config));const u={model:o.model,image:o.image,upscaleFactor:o.upscaleFactor,config:a};return await this.upscaleImageInternal(u)},this.generateVideos=async o=>{var a,u,d,m,h,y;if((o.prompt||o.image||o.video)&&o.source)throw new Error("Source and prompt/image/video are mutually exclusive. Please only use source.");return this.apiClient.isVertexAI()||(!((a=o.video)===null||a===void 0)&&a.uri&&
191(!((u=o.video)===null||u===void 0)&&u.videoBytes)?o.video={uri:o.video.uri,mimeType:o.video.mimeType}:!((m=(d=o.source)===null||d===void 0?void 0:d.video)===null||m===void 0)&&m.uri&&(!((y=(h=o.source)===null||h===void 0?void 0:h.video)===null||y===void 0)&&y.videoBytes)&&(o.source.video={uri:o.source.video.uri,mimeType:o.source.video.mimeType})),await this.generateVideosInternal(o)}}maybeMoveToResponseJsonSchem(n){n.config&&n.config.responseSchema&&(n.config.responseJsonSchema||Object.keys(n.config.responseSchema).includes("$schema")&&(n.config.responseJsonSchema=n.config.responseSchema,delete n.config.responseSchema))}async processParamsMaybeAddMcpUsage(n){var o,a,u;const d=(o=n.config)===null||o===void 0?void 0:o.tools;if(!d)return n;const m=await Promise.all(d.map(async y=>Yi(y)?await y.tool():y)),h={model:n.model,contents:n.contents,config:Object.assign(Object.assign({},n.config),{tools:m})};if(h.config.tools=m,n.config&&n.config.tools&&wh(n.config.tools)){const y=(u=(a=n.config.httpOptions)===null||a===void 0?void 0:a.headers)!==null&&u!==void 0?u:{};let g=Object.assign({},y);Object.keys(g).length===0&&(g=this.apiClient.getDefaultHeaders()),Rh(g),h.config.httpOptions=Object.assign(Object.assign({},n.config.httpOptions),{headers:g})}return h}async initAfcToolsMap(n){var o,a,u;const d=new Map;for(const m of(a=(o=n.config)===null||o===void 0?void 0:o.tools)!==null&&a!==void 0?a:[])if(Yi(m)){const h=m,y=await h.tool();for(const g of(u=y.functionDeclarations)!==null&&u!==void 0?u:[]){if(!g.name)throw new Error("Function declaration name is required.");if(d.has(g.name))throw new Error(`Duplicate tool declaration name: ${g.name}`);d.set(g.name,h)}}return d}async processAfcStream(n){var o,a,u;const d=(u=(a=(o=n.config)===null||o===void 0?void 0:o.automaticFunctionCalling)===null||a===void 0?void 0:a.maximumRemoteCalls)!==null&&u!==void 0?u:Km;let m=!1,h=0;const y=await this.initAfcToolsMap(n);return(function(g,v,S){var C,A;return Oi(this,arguments,function*(){for(var D,L,B,P;h<d;){m&&(h++,m=!1);const J=yield Ue(g.processParamsMaybeAddMcpUsage(S)),K=yield Ue(g.generateContentStreamInternal(J)),F=[],ae=[];try{for(var O=!0,H=(L=void 0,Fl(K)),Y;Y=yield Ue(H.next()),D=Y.done,!D;O=!0){P=Y.value,O=!1;const W=P;if(yield yield Ue(W),W.candidates&&(!((C=W.candidates[0])===null||C===void 0)&&C.content)){ae.push(W.candidates[0].content);for(const ue of(A=W.candidates[0].content.parts)!==null&&A!==void 0?A:[])if(h<d&&ue.functionCall){if(!ue.functionCall.name)throw new Error("Function call name was not returned by the model.");if(v.has(ue.functionCall.name)){const ve=yield Ue(v.get(ue.functionCall.name).callTool([ue.functionCall]));F.push(...ve)}else throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${v.keys()}, mising tool: ${ue.functionCall.name}`)}}}}catch(W){L={error:W}}finally{try{!O&&!D&&(B=H.return)&&(yield Ue(B.call(H)))}finally{if(L)throw L.error}}if(F.length>0){m=!0;const W=new Yl;W.candidates=[{content:{role:"user",parts:F}}],yield yield Ue(W);const ue=[];ue.push(...ae),ue.push({role:"user",parts:F});const ve=Lt(S.contents).concat(ue);S.contents=ve}else break}})})(this,y,n)}async generateContentInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=Om(this.apiClient,n);return h=Z("{model}:generateContent",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=Fm(v),C=new Yl;return Object.assign(C,S),C})}else{const g=Pm(this.apiClient,n);return h=Z("{model}:generateContent",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=Ym(v),C=new Yl;return Object.assign(C,S),C})}}async generateContentStreamInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=Om(this.apiClient,n);return h=Z("{model}:streamGenerateContent?alt=sse",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.requestStream({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}),m.then(function(S){return Oi(this,arguments,function*(){var C,A,D,L;try{for(var B=!0,P=Fl(S),O;O=yield Ue(P.next()),C=O.done,!C;B=!0){L=O.value,B=!1;const H=L,Y=Fm(yield Ue(H.json()));Y.sdkHttpResponse={headers:H.headers};const J=new Yl;Object.assign(J,Y),yield yield Ue(J)}}catch(H){A={error:H}}finally{try{!B&&!C&&(D=P.return)&&(yield Ue(D.call(P)))}finally{if(A)throw A.error}}})})}else{const g=Pm(this.apiClient,n);return h=Z("{model}:streamGenerateContent?alt=sse",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.requestStream({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}),m.then(function(S){return Oi(this,arguments,function*(){var C,A,D,L;try{for(var B=!0,P=Fl(S),O;O=yield Ue(P.next()),C=O.done,!C;B=!0){L=O.value,B=!1;const H=L,Y=Ym(yield Ue(H.json()));Y.sdkHttpResponse={headers:H.headers};const J=new Yl;Object.assign(J,Y),yield yield Ue(J)}}catch(H){A={error:H}}finally{try{!B&&!C&&(D=P.return)&&(yield Ue(D.call(P)))}finally{if(A)throw A.error}}})})}}async embedContent(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=nT(this.apiClient,n);return h=Z("{model}:predict",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=lT(v),C=new Mm;return Object.assign(C,S),C})}else{const g=tT(this.apiClient,n);return h=Z("{model}:batchEmbedContents",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=iT(v),C=new Mm;return Object.assign(C,S),C})}}async generateImagesInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=hT(this.apiClient,n);return h=Z("{model}:predict",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=yT(v),C=new wm;return Object.assign(C,S),C})}else{const g=mT(this.apiClient,n);return h=Z("{model}:predict",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=gT(v),C=new wm;return Object.assign(C,S),C})}}async editImageInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=W2(this.apiClient,n);return d=Z("{model}:predict",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>{const g=$2(y),v=new av;return Object.assign(v,g),v})}else throw new Error("This method is only supported by the Vertex AI.")}async upscaleImageInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=hE(this.apiClient,n);return d=Z("{model}:predict",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>{const g=gE(y),v=new sv;return Object.assign(v,g),v})}else throw new Error("This method is only supported by the Vertex AI.")}async recontextImage(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=ZT(this.apiClient,n);return d=Z("{model}:predict",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=WT(y),v=new rv;return Object.assign(v,g),v})}else throw new Error("This method is only supported by the Vertex AI.")}async segmentImage(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=iE(this.apiClient,n);return d=Z("{model}:predict",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=lE(y),v=new uv;return Object.assign(v,g),v})}else throw new Error("This method is only supported by the Vertex AI.")}async get(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=UT(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>iu(v))}else{const g=LT(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>nu(v))}}async listInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=OT(this.apiClient,n);return h=Z("{models_url}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=FT(v),C=new Rm;return Object.assign(C,S),C})}else{const g=PT(this.apiClient,n);return h=Z("{models_url}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=YT(v),C=new Rm;return Object.assign(C,S),C})}}async update(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=pE(this.apiClient,n);return h=Z("{model}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"PATCH",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>iu(v))}else{const g=dE(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"PATCH",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>nu(v))}}async delete(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=X2(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=Q2(v),C=new Nm;return Object.assign(C,S),C})}else{const g=J2(this.apiClient,n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"DELETE",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=K2(v),C=new Nm;return Object.assign(C,S),C})}}async countTokens(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=O2(this.apiClient,n);return h=Z("{model}:countTokens",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=F2(v),C=new Im;return Object.assign(C,S),C})}else{const g=P2(this.apiClient,n);return h=Z("{model}:countTokens",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=Y2(v),C=new Im;return Object.assign(C,S),C})}}async computeTokens(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=k2(this.apiClient,n);return d=Z("{model}:computeTokens",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>{const g=H2(y),v=new cv;return Object.assign(v,g),v})}else throw new Error("This method is only supported by the Vertex AI.")}async generateVideosInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=_T(this.apiClient,n);return h=Z("{model}:predictLongRunning",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m.then(v=>{const S=ST(v),C=new ga;return Object.assign(C,S),C})}else{const g=CT(this.apiClient,n);return h=Z("{model}:predictLongRunning",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.string
191ify(g),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m.then(v=>{const S=ET(v),C=new ga;return Object.assign(C,S),C})}}}/** 192 * @license 193 * Copyright 2025 Google LLC 194 * SPDX-License-Identifier: Apache-2.0 195 */class QE extends rn{constructor(n){super(),this.apiClient=n}async getVideosOperation(n){const o=n.operation,a=n.config;if(o.name===void 0||o.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const u=o.name.split("/operations/")[0];let d;a&&"httpOptions"in a&&(d=a.httpOptions);const m=await this.fetchPredictVideosOperationInternal({operationName:o.name,resourceName:u,config:{httpOptions:d}});return o._fromAPIResponse({apiResponse:m,_isVertexAI:!0})}else{const u=await this.getVideosOperationInternal({operationName:o.name,config:a});return o._fromAPIResponse({apiResponse:u,_isVertexAI:!1})}}async get(n){const o=n.operation,a=n.config;if(o.name===void 0||o.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const u=o.name.split("/operations/")[0];let d;a&&"httpOptions"in a&&(d=a.httpOptions);const m=await this.fetchPredictVideosOperationInternal({operationName:o.name,resourceName:u,config:{httpOptions:d}});return o._fromAPIResponse({apiResponse:m,_isVertexAI:!0})}else{const u=await this.getVideosOperationInternal({operationName:o.name,config:a});return o._fromAPIResponse({apiResponse:u,_isVertexAI:!1})}}async getVideosOperationInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=ev(n);return h=Z("{operationName}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json()),m}else{const g=jy(n);return h=Z("{operationName}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json()),m}}async fetchPredictVideosOperationInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=Jy(n);return d=Z("{resourceName}:fetchPredictOperation",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u}else throw new Error("This method is only supported by the Vertex AI.")}}/** 196 * @license 197 * Copyright 2025 Google LLC 198 * SPDX-License-Identifier: Apache-2.0 199 */function ZE(i){const n={},o=r(i,["data"]);if(o!=null&&c(n,["data"],o),r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function WE(i){const n={},o=r(i,["parts"]);if(o!=null){let u=o;Array.isArray(u)&&(u=u.map(d=>aS(d))),c(n,["parts"],u)}const a=r(i,["role"]);return a!=null&&c(n,["role"],a),n}function $E(i,n,o){const a={},u=r(n,["expireTime"]);o!==void 0&&u!=null&&c(o,["expireTime"],u);const d=r(n,["newSessionExpireTime"]);o!==void 0&&d!=null&&c(o,["newSessionExpireTime"],d);const m=r(n,["uses"]);o!==void 0&&m!=null&&c(o,["uses"],m);const h=r(n,["liveConnectConstraints"]);o!==void 0&&h!=null&&c(o,["bidiGenerateContentSetup"],oS(i,h));const y=r(n,["lockAdditionalFields"]);return o!==void 0&&y!=null&&c(o,["fieldMask"],y),a}function jE(i,n){const o={},a=r(n,["config"]);return a!=null&&c(o,["config"],$E(i,a,o)),o}function eS(i){const n={};if(r(i,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const o=r(i,["fileUri"]);o!=null&&c(n,["fileUri"],o);const a=r(i,["mimeType"]);return a!=null&&c(n,["mimeType"],a),n}function tS(i){const n={},o=r(i,["id"]);o!=null&&c(n,["id"],o);const a=r(i,["args"]);a!=null&&c(n,["args"],a);const u=r(i,["name"]);if(u!=null&&c(n,["name"],u),r(i,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(r(i,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return n}function nS(i){const n={};if(r(i,["authConfig"])!==void 0)throw new Error("authConfig parameter is not supported in Gemini API.");const o=r(i,["enableWidget"]);return o!=null&&c(n,["enableWidget"],o),n}function iS(i){const n={};if(r(i,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");if(r(i,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");
199const o=r(i,["timeRangeFilter"]);return o!=null&&c(n,["timeRangeFilter"],o),n}function lS(i,n){const o={},a=r(i,["generationConfig"]);n!==void 0&&a!=null&&c(n,["setup","generationConfig"],a);const u=r(i,["responseModalities"]);n!==void 0&&u!=null&&c(n,["setup","generationConfig","responseModalities"],u);const d=r(i,["temperature"]);n!==void 0&&d!=null&&c(n,["setup","generationConfig","temperature"],d);const m=r(i,["topP"]);n!==void 0&&m!=null&&c(n,["setup","generationConfig","topP"],m);const h=r(i,["topK"]);n!==void 0&&h!=null&&c(n,["setup","generationConfig","topK"],h);const y=r(i,["maxOutputTokens"]);n!==void 0&&y!=null&&c(n,["setup","generationConfig","maxOutputTokens"],y);const g=r(i,["mediaResolution"]);n!==void 0&&g!=null&&c(n,["setup","generationConfig","mediaResolution"],g);const v=r(i,["seed"]);n!==void 0&&v!=null&&c(n,["setup","generationConfig","seed"],v);const S=r(i,["speechConfig"]);n!==void 0&&S!=null&&c(n,["setup","generationConfig","speechConfig"],mu(S));const C=r(i,["thinkingConfig"]);n!==void 0&&C!=null&&c(n,["setup","generationConfig","thinkingConfig"],C);const A=r(i,["enableAffectiveDialog"]);n!==void 0&&A!=null&&c(n,["setup","generationConfig","enableAffectiveDialog"],A);const D=r(i,["systemInstruction"]);n!==void 0&&D!=null&&c(n,["setup","systemInstruction"],WE(nt(D)));const L=r(i,["tools"]);if(n!==void 0&&L!=null){let K=Ji(L);Array.isArray(K)&&(K=K.map(F=>rS(Fi(F)))),c(n,["setup","tools"],K)}const B=r(i,["sessionResumption"]);n!==void 0&&B!=null&&c(n,["setup","sessionResumption"],sS(B));const P=r(i,["inputAudioTranscription"]);n!==void 0&&P!=null&&c(n,["setup","inputAudioTranscription"],P);const O=r(i,["outputAudioTranscription"]);n!==void 0&&O!=null&&c(n,["setup","outputAudioTranscription"],O);const H=r(i,["realtimeInputConfig"]);n!==void 0&&H!=null&&c(n,["setup","realtimeInputConfig"],H);const Y=r(i,["contextWindowCompression"]);n!==void 0&&Y!=null&&c(n,["setup","contextWindowCompression"],Y);const J=r(i,["proactivity"]);return n!==void 0&&J!=null&&c(n,["setup","proactivity"],J),o}function oS(i,n){const o={},a=r(n,["model"]);a!=null&&c(o,["setup","model"],Se(i,a));const u=r(n,["config"]);return u!=null&&c(o,["config"],lS(u,o)),o}function aS(i){const n={},o=r(i,["mediaResolution"]);o!=null&&c(n,["mediaResolution"],o);const a=r(i,["codeExecutionResult"]);a!=null&&c(n,["codeExecutionResult"],a);const u=r(i,["executableCode"]);u!=null&&c(n,["executableCode"],u);const d=r(i,["fileData"]);d!=null&&c(n,["fileData"],eS(d));const m=r(i,["functionCall"]);m!=null&&c(n,["functionCall"],tS(m));const h=r(i,["functionResponse"]);h!=null&&c(n,["functionResponse"],h);const y=r(i,["inlineData"]);y!=null&&c(n,["inlineData"],ZE(y));const g=r(i,["text"]);g!=null&&c(n,["text"],g);const v=r(i,["thought"]);v!=null&&c(n,["thought"],v);const S=r(i,["thoughtSignature"]);S!=null&&c(n,["thoughtSignature"],S);const C=r(i,["videoMetadata"]);return C!=null&&c(n,["videoMetadata"],C),n}function sS(i){const n={},o=r(i,["handle"]);if(o!=null&&c(n,["handle"],o),r(i,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return n}function rS(i){const n={},o=r(i,["functionDeclarations"]);if(o!=null){let v=o;Array.isArray(v)&&(v=v.map(S=>S)),c(n,["functionDeclarations"],v)}if(r(i,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const a=r(i,["googleSearchRetrieval"]);a!=null&&c(n,["googleSearchRetrieval"],a);const u=r(i,["computerUse"]);u!=null&&c(n,["computerUse"],u);const d=r(i,["fileSearch"]);d!=null&&c(n,["fileSearch"],d);const m=r(i,["codeExecution"]);if(m!=null&&c(n,["codeExecution"],m),r(i,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const h=r(i,["googleMaps"]);h!=null&&c(n,["googleMaps"],nS(h));const y=r(i,["googleSearch"]);y!=null&&c(n,["googleSearch"],iS(y));const g=r(i,["urlContext"]);return g!=null&&c(n,["urlContext"],g),n}/** 200 * @license 201 * Copyright 2025 Google LLC 202 * SPDX-License-Identifier: Apache-2.0 203 */function uS(i){const n=[];for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)){const a=i[o];if(typeof a=="object"&&a!=null&&Object.keys(a).length>0){const u=Object.keys(a).map(d=>`${o}.${d}`);n.push(...u)}else n.push(o)}return n.join(",")}function cS(i,n){let o=null;const a=i.bidiGenerateContentSetup;if(typeof a=="object"&&a!==null&&"setup"in a){const d=a.setup;typeof d=="object"&&d!==null?(i.bidiGenerateContentSetup=d,o=d):delete i.bidiGenerateContentSetup}else a!==void 0&&delete i.bidiGenerateContentSetup;const u=i.fieldMask;if(o){const d=uS(o);if(Array.isArray(n==null?void 0:n.lockAdditionalFields)&&(n==null?void 0:n.lockAdditionalFields.length)===0)d?i.fieldMask=d:delete i.fieldMask;else if(n!=null&&n.lockAdditionalFields&&n.lockAdditionalFields.length>0&&u!==null&&Array.isArray(u)&&u.length>0){const m=["temperature","topK","topP","maxOutputTokens","responseModalities","seed","speechConfig"];let h=[];u.length>0&&(h=u.map(g=>m.includes(g)?`generationConfig.${g}`:g));const y=[];d&&y.push(d),h.length>0&&y.push(...h),y.length>0?i.fieldMask=y.join(","):delete i.fieldMask}else delete i.fieldMask}else u!==null&&Array.isArray(u)&&u.length>0?i.fieldMask=u.join(","):delete i.fieldMask;return i}class fS extends rn{constructor(n){super(),this.apiClient=n}async create(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("The client.tokens.create method is only supported by the Gemini Developer API.");{const h=jE(this.apiClient,n);d=Z("auth_tokens",h._url),m=h._query,delete h.config,delete h._url,delete h._query;const y=cS(h,n.config);return u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(y),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(g=>g.json()),u.then(g=>g)}
203}}/** 204 * @license 205 * Copyright 2025 Google LLC 206 * SPDX-License-Identifier: Apache-2.0 207 */function dS(i,n){const o={},a=r(i,["displayName"]);return n!==void 0&&a!=null&&c(n,["displayName"],a),o}function pS(i){const n={},o=r(i,["config"]);return o!=null&&dS(o,n),n}function mS(i,n){const o={},a=r(i,["force"]);return n!==void 0&&a!=null&&c(n,["_query","force"],a),o}function hS(i){const n={},o=r(i,["name"]);o!=null&&c(n,["_url","name"],o);const a=r(i,["config"]);return a!=null&&mS(a,n),n}function gS(i){const n={},o=r(i,["name"]);return o!=null&&c(n,["_url","name"],o),n}function yS(i,n){const o={},a=r(i,["customMetadata"]);if(n!==void 0&&a!=null){let d=a;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["customMetadata"],d)}const u=r(i,["chunkingConfig"]);return n!==void 0&&u!=null&&c(n,["chunkingConfig"],u),o}function vS(i){const n={},o=r(i,["name"]);o!=null&&c(n,["name"],o);const a=r(i,["metadata"]);a!=null&&c(n,["metadata"],a);const u=r(i,["done"]);u!=null&&c(n,["done"],u);const d=r(i,["error"]);d!=null&&c(n,["error"],d);const m=r(i,["response"]);return m!=null&&c(n,["response"],ES(m)),n}function TS(i){const n={},o=r(i,["fileSearchStoreName"]);o!=null&&c(n,["_url","file_search_store_name"],o);const a=r(i,["fileName"]);a!=null&&c(n,["fileName"],a);const u=r(i,["config"]);return u!=null&&yS(u,n),n}function ES(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["parent"]);a!=null&&c(n,["parent"],a);const u=r(i,["documentName"]);return u!=null&&c(n,["documentName"],u),n}function SS(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);return n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),o}function CS(i){const n={},o=r(i,["config"]);return o!=null&&SS(o,n),n}function _S(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["fileSearchStores"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["fileSearchStores"],d)}return n}function AS(i,n){const o={},a=r(i,["mimeType"]);n!==void 0&&a!=null&&c(n,["mimeType"],a);const u=r(i,["displayName"]);n!==void 0&&u!=null&&c(n,["displayName"],u);const d=r(i,["customMetadata"]);if(n!==void 0&&d!=null){let h=d;Array.isArray(h)&&(h=h.map(y=>y)),c(n,["customMetadata"],h)}const m=r(i,["chunkingConfig"]);return n!==void 0&&m!=null&&c(n,["chunkingConfig"],m),o}function xS(i){const n={},o=r(i,["fileSearchStoreName"]);o!=null&&c(n,["_url","file_search_store_name"],o);const a=r(i,["config"]);return a!=null&&AS(a,n),n}function MS(i){const n={},o=r(i,["sdkHttpResponse"]);return o!=null&&c(n,["sdkHttpResponse"],o),n}/** 208 * @license 209 * Copyright 2025 Google LLC 210 * SPDX-License-Identifier: Apache-2.0 211 */function wS(i,n){const o={},a=r(i,["force"]);return n!==void 0&&a!=null&&c(n,["_query","force"],a),o}function RS(i){const n={},o=r(i,["name"]);o!=null&&c(n,["_url","name"],o);const a=r(i,["config"]);return a!=null&&wS(a,n),n}function NS(i){const n={},o=r(i,["name"]);return o!=null&&c(n,["_url","name"],o),n}function IS(i,n){const o={},a=r(i,["pageSize"]);n!==void 0&&a!=null&&c(n,["_query","pageSize"],a);const u=r(i,["pageToken"]);return n!==void 0&&u!=null&&c(n,["_query","pageToken"],u),o}function DS(i){const n={},o=r(i,["parent"]);o!=null&&c(n,["_url","parent"],o);const a=r(i,["config"]);return a!=null&&IS(a,n),n}function bS(i){const n={},o=r(i,["sdkHttpResponse"]);o!=null&&c(n,["sdkHttpResponse"],o);const a=r(i,["nextPageToken"]);a!=null&&c(n,["nextPageToken"],a);const u=r(i,["documents"]);if(u!=null){let d=u;Array.isArray(d)&&(d=d.map(m=>m)),c(n,["documents"],d)}return n}/** 212 * @license 213 * Copyright 2025 Google LLC 214 * SPDX-License-Identifier: Apache-2.0 215 */class LS extends rn{constructor(n){super(),this.apiClient=n,this.list=async o=>new ni(sn.PAGED_ITEM_DOCUMENTS,a=>this.listInternal({parent:o.parent,config:a.config}),await this.listInternal(o),o)}async get(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=NS(n);return d=Z("{name}",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>y)}}async delete(n){var o,a;let u="",d={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const m=RS(n);u=Z("{name}",m._url),d=m._query,delete m._url,delete m._query,await this.apiClient.request({path:u,queryParams:d,body:JSON.stringify(m),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal})}}async listInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=DS(n);return d=Z("{parent}/documents",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=bS(y),v=new fv;return Object.assign(v,g),v})}}}/** 216 * @license 217 * Copyright 2025 Google LLC 218 * SPDX-License-Identifier: Apache-2.0 219 */class US extends rn{constructor(n,o=new LS(n)){super(),this.apiClient=n,this.documents=o,this.list=async(a={})=>new ni(sn.PAGED_ITEM_FILE_SEARCH_STORES,u=>this.listInternal(u),await this.listInternal(a),a)}async uploadToFileSearchStore(n){if(this.apiClient.isVertexAI())throw new Error("Vertex AI does not support uploading files to a file search store.");return this.apiClient.uploadFileToFileSearchStore(n.fileSearchStoreName,n.file,n.config)}async create(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=pS(n);return d=Z("fileSearchStores",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>y)}}async get(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=gS(n);return d=Z("{name}",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>y)}}async delete(n){var o,a;let u="",d={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const m=hS(n);u=Z("{name}",m._url),d=m._query,delete m._url,delete m._query,await this.apiClient.request({path:u,queryParams:d,body:JSON.stringify(m),httpMethod:"DELETE",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal})}}async listInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=CS(n);return d=Z("fileSearchStores",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=_S(y),v=new dv;return Object.assign(v,g),v})}}async uploadToFileSearchStoreInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=xS(n);return d=Z("upload/v1beta/{file_search_store_name}:uploadToFileSearchStore",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=MS(y),v=new pv;return Object.assign(v,g),v})}}async importFile(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=TS(n);return d=Z("{file_search_store_name}:importFile",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json()),u.then(y=>{const g=vS(y),v=new uu;return Object.assign(v,g),v})}}}/** 220 * @license 221 * Copyright 2025 Google LLC 222 * SPDX-License-Identifier: Apache-2.0 223 */function kS(i,n){const o={},a=r(i,["name"]);return a!=null&&c(o,["_url","name"],a),o}function HS(i,n){const o={},a=r(i,["name"]);return a!=null&&c(o,["_url","name"],a),o}function qS(i,n,o){const a={};if(r(i,["validationDataset"])!==void 0)throw new Error("validationDataset parameter is not supported in Gemini API.");const u=r(i,["tunedModelDisplayName"]);if(n!==void 0&&u!=null&&c(n,["displayName"],u),r(i,["description"])!==void 0)throw new Error("description parameter is not supported in Gemini API.");const d=r(i,["epochCount"]);n!==void 0&&d!=null&&c(n,["tuningTask","hyperparameters","epochCount"],d);const m=r(i,["learningRateMultiplier"]);if(m!=null&&c(a,["tuningTask","hyperparameters","learningRateMultiplier"],m),r(i,["exportLastCheckpointOnly"])!==void 0)throw new Error("exportLastCheckpointOnly parameter is not supported in Gemini API.");if(r(i,["preTunedModelCheckpointId"])!==void 0)throw new Error("preTunedModelCheckpointId parameter is not supported in Gemini API.");if(r(i,["adapterSize"])!==void 0)throw new Error("adapterSize parameter is not supported in Gemini API.");const h=r(i,["batchSize"]);n!==void 0&&h!=null&&c(n,["tuningTask","hyperparameters","batchSize"],h);const y=r(i,["learningRate"]);if(n!==void 0&&y!=null&&c(n,["tuningTask","hyperparameters","learningRate"],y),r(i,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");if(r(i,["beta"])!==void 0)throw new Error("beta parameter is not supported in Gemini API.");return a}function GS(i,n,o){const a={};let u=r(o,["config","method"]);if(u===void 0&&(u="SUPERVISED_FINE_TUNING"),u==="SUPERVISED_FINE_TUNING"){const A=r(i,["validationDataset"]);n!==void 0&&A!=null&&c(n,["supervisedTuningSpec"],$m(A))}else if(u==="PREFERENCE_TUNING"){const A=r(i,["validationDataset"]);n!==void 0&&A!=null&&c(n,["preferenceOptimizationSpec"],$m(A))}const d=r(i,["tunedModelDisplayName"]);n!==void 0&&d!=null&&c(n,["tunedModelDisplayName"],d);const m=r(i,["description"]);n!==void 0&&m!=null&&c(n,["description"],m);let h=r(o,["config","method"]);if(h===void 0&&(h="SUPERVISED_FINE_TUNING"),h==="SUPERVISED_FINE_TUNING"){const A=r(i,["epochCount"]);n!==void 0&&A!=null&&c(n,["supervisedTuningSpec","hyperParameters","epochCount"],A)}else if(h==="PREFERENCE_TUNING"){const A=r(i,["epochCount"]);n!==void 0&&A!=null&&c(n,["preferenceOptimizationSpec","hyperParameters","epochCount"],A)}let y=r(o,["config","method"]);if(y===void 0&&(y="SUPERVISED_FINE_TUNING"),y==="SUPERVISED_FINE_TUNING"){const A=r(i,["learningRateMultiplier"]);n!==void 0&&A!=null&&c(n,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"],A)}else if(y==="PREFERENCE_TUNING"){const A=r(i,["learningRateMultiplier"]);n!==void 0&&A!=null&&c(n,["preferenceOptimizationSpec","hyperParameters","learningRateMultiplier"],A)}let g=r(o,["config","method"]);if(g===void 0&&(g="SUPERVISED_FINE_TUNING"),g==="SUPERVISED_FINE_TUNING"){const A=r(i,["exportLastCheckpointOnly"]);n!==void 0&&A!=null&&c(n,["supervisedTuningSpec","exportLastCheckpointOnly"],A)}else if(g==="PREFERENCE_TUNING"){const A=r(i,["exportLastCheckpointOnly"]);n!==void 0&&A!=null&&c(n,["preferenceOptimizationSpec","exportLastCheckpointOnly"],A)}let v=r(o,["config","method"]);if(v===void 0&&(v="SUPERVISED_FINE_TUNING"),v==="SUPERVISED_FINE_TUNING"){const A=r(i,["adapterSize"]);n!==void 0&&A!=null&&c(n,["supervisedTuningSpec","hyperParameters","adapterSize"],A)}else if(v==="PREFERENCE_TUNING"){const A=r(i,["adapterSize"]);n!==void 0&&A!=null&&c(n,["preferenceOptimizationSpec","hyperParameters","adapterSize"],A)}if(r(i,["batchSize"])!==void 0)throw new Error("batchSize parameter is not supported in Vertex AI.");
223if(r(i,["learningRate"])!==void 0)throw new Error("learningRate parameter is not supported in Vertex AI.");const S=r(i,["labels"]);n!==void 0&&S!=null&&c(n,["labels"],S);const C=r(i,["beta"]);return n!==void 0&&C!=null&&c(n,["preferenceOptimizationSpec","hyperParameters","beta"],C),a}function VS(i,n){const o={},a=r(i,["baseModel"]);a!=null&&c(o,["baseModel"],a);const u=r(i,["preTunedModel"]);u!=null&&c(o,["preTunedModel"],u);const d=r(i,["trainingDataset"]);d!=null&&ZS(d);const m=r(i,["config"]);return m!=null&&qS(m,o),o}function zS(i,n){const o={},a=r(i,["baseModel"]);a!=null&&c(o,["baseModel"],a);const u=r(i,["preTunedModel"]);u!=null&&c(o,["preTunedModel"],u);const d=r(i,["trainingDataset"]);d!=null&&WS(d,o,n);const m=r(i,["config"]);return m!=null&&GS(m,o,n),o}function BS(i,n){const o={},a=r(i,["name"]);return a!=null&&c(o,["_url","name"],a),o}function PS(i,n){const o={},a=r(i,["name"]);return a!=null&&c(o,["_url","name"],a),o}function OS(i,n,o){const a={},u=r(i,["pageSize"]);n!==void 0&&u!=null&&c(n,["_query","pageSize"],u);const d=r(i,["pageToken"]);n!==void 0&&d!=null&&c(n,["_query","pageToken"],d);const m=r(i,["filter"]);return n!==void 0&&m!=null&&c(n,["_query","filter"],m),a}function YS(i,n,o){const a={},u=r(i,["pageSize"]);n!==void 0&&u!=null&&c(n,["_query","pageSize"],u);const d=r(i,["pageToken"]);n!==void 0&&d!=null&&c(n,["_query","pageToken"],d);const m=r(i,["filter"]);return n!==void 0&&m!=null&&c(n,["_query","filter"],m),a}function FS(i,n){const o={},a=r(i,["config"]);return a!=null&&OS(a,o),o}function JS(i,n){const o={},a=r(i,["config"]);return a!=null&&YS(a,o),o}function XS(i,n){const o={},a=r(i,["sdkHttpResponse"]);a!=null&&c(o,["sdkHttpResponse"],a);const u=r(i,["nextPageToken"]);u!=null&&c(o,["nextPageToken"],u);const d=r(i,["tunedModels"]);if(d!=null){let m=d;Array.isArray(m)&&(m=m.map(h=>Nh(h))),c(o,["tuningJobs"],m)}return o}function KS(i,n){const o={},a=r(i,["sdkHttpResponse"]);a!=null&&c(o,["sdkHttpResponse"],a);const u=r(i,["nextPageToken"]);u!=null&&c(o,["nextPageToken"],u);const d=r(i,["tuningJobs"]);if(d!=null){let m=d;Array.isArray(m)&&(m=m.map(h=>ou(h))),c(o,["tuningJobs"],m)}return o}function QS(i,n){const o={},a=r(i,["name"]);a!=null&&c(o,["model"],a);const u=r(i,["name"]);return u!=null&&c(o,["endpoint"],u),o}function ZS(i,n){const o={};if(r(i,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(r(i,["vertexDatasetResource"])!==void 0)throw new Error("vertexDatasetResource parameter is not supported in Gemini API.");const a=r(i,["examples"]);if(a!=null){let u=a;Array.isArray(u)&&(u=u.map(d=>d)),c(o,["examples","examples"],u)}return o}function WS(i,n,o){const a={};let u=r(o,["config","method"]);if(u===void 0&&(u="SUPERVISED_FINE_TUNING"),u==="SUPERVISED_FINE_TUNING"){const m=r(i,["gcsUri"]);n!==void 0&&m!=null&&c(n,["supervisedTuningSpec","trainingDatasetUri"],m)}else if(u==="PREFERENCE_TUNING"){const m=r(i,["gcsUri"]);n!==void 0&&m!=null&&c(n,["preferenceOptimizationSpec","trainingDatasetUri"],m)}let d=r(o,["config","method"]);if(d===void 0&&(d="SUPERVISED_FINE_TUNING"),d==="SUPERVISED_FINE_TUNING"){const m=r(i,["vertexDatasetResource"]);n!==void 0&&m!=null&&c(n,["supervisedTuningSpec","trainingDatasetUri"],m)}else if(d==="PREFERENCE_TUNING"){const m=r(i,["vertexDatasetResource"]);n!==void 0&&m!=null&&c(n,["preferenceOptimizationSpec","trainingDatasetUri"],m)}if(r(i,["examples"])!==void 0)throw new Error("examples parameter is not supported in Vertex AI.");return a}function Nh(i,n){const o={},a=r(i,["sdkHttpResponse"]);a!=null&&c(o,["sdkHttpResponse"],a);const u=r(i,["name"]);u!=null&&c(o,["name"],u);const d=r(i,["state"]);d!=null&&c(o,["state"],ch(d));const m=r(i,["createTime"]);m!=null&&c(o,["createTime"],m);const h=r(i,["tuningTask","startTime"]);h!=null&&c(o,["startTime"],h);const y=r(i,["tuningTask","completeTime"]);y!=null&&c(o,["endTime"],y);const g=r(i,["updateTime"]);g!=null&&c(o,["updateTime"],g);const v=r(i,["description"]);v!=null&&c(o,["description"],v);const S=r(i,["baseModel"]);S!=null&&c(o,["baseModel"],S);const C=r(i,["_self"]);return C!=null&&c(o,["tunedModel"],QS(C)),o}function ou(i,n){const o={},a=r(i,["sdkHttpResponse"]);a!=null&&c(o,["sdkHttpResponse"],a);const u=r(i,["name"]);u!=null&&c(o,["name"],u);const d=r(i,["state"]);d!=null&&c(o,["state"],ch(d));const m=r(i,["createTime"]);m!=null&&c(o,["createTime"],m);const h=r(i,["startTime"]);h!=null&&c(o,["startTime"],h);const y=r(i,["endTime"]);y!=null&&c(o,["endTime"],y);const g=r(i,["updateTime"]);g!=null&&c(o,["updateTime"],g);const v=r(i,["error"]);v!=null&&c(o,["error"],v);const S=r(i,["description"]);S!=null&&c(o,["description"],S);const C=r(i,["baseModel"]);C!=null&&c(o,["baseModel"],C);const A=r(i,["tunedModel"]);A!=null&&c(o,["tunedModel"],A);const D=r(i,["preTunedModel"]);D!=null&&c(o,["preTunedModel"],D);const L=r(i,["supervisedTuningSpec"]);L!=null&&c(o,["supervisedTuningSpec"],L);const B=r(i,["preferenceOptimizationSpec"]);B!=null&&c(o,["preferenceOptimizationSpec"],B);const P=r(i,["tuningDataStats"]);P!=null&&c(o,["tuningDataStats"],P);const O=r(i,["encryptionSpec"]);O!=null&&c(o,["encryptionSpec"],O);const H=r(i,["partnerModelTuningSpec"]);H!=null&&c(o,["partnerModelTuningSpec"],H);const Y=r(i,["customBaseModel"]);Y!=null&&c(o,["customBaseModel"],Y);const J=r(i,["experiment"]);J!=null&&c(o,["experiment"],J);const K=r(i,["labels"]);K!=null&&c(o,["labels"],K);const F=r(i,["outputUri"]);F!=null&&c(o,["outputUri"],F);const ae=r(i,["pipelineJob"]);ae!=null&&c(o,["pipelineJob"],ae);const W=r(i,["serviceAccount"]);W!=null&&c(o,["serviceAccount"],W);const ue=r(i,["tunedModelDisplayName"]);ue!=null&&c(o,["tunedModelDisplayName"],ue);const ve=r(i,["veoTuningSpec"]);return ve!=null&&c(o,["veoTuningSpec"],ve),o}function $S(i,n){const o={},a=r(i,["sdkHttpResponse"]);a!=null&&c(o,["sdkHttpResponse"],a);const u=r(i,["name"]);u!=null&&c(o,["name"],u);const d=r(i,["metadata"]);d!=null&&c(o,["metadata"],d);const m=r(i,["done"]);m!=null&&c(o,["done"],m);const h=r(i,["error"]);return h!=null&&c(o,["error"],h),o}function $m(i,n){const o={},a=r(i,["gcsUri"]);a!=null&&c(o,["validationDatasetUri"],a);const u=r(i,["vertexDatasetResource"]);return u!=null&&c(o,["validationDatasetUri"],u),o}
223/** 224 * @license 225 * Copyright 2025 Google LLC 226 * SPDX-License-Identifier: Apache-2.0 227 */class jS extends rn{constructor(n){super(),this.apiClient=n,this.get=async o=>await this.getInternal(o),this.list=async(o={})=>new ni(sn.PAGED_ITEM_TUNING_JOBS,a=>this.listInternal(a),await this.listInternal(o),o),this.tune=async o=>{var a;if(this.apiClient.isVertexAI())if(o.baseModel.startsWith("projects/")){const u={tunedModelName:o.baseModel};!((a=o.config)===null||a===void 0)&&a.preTunedModelCheckpointId&&(u.checkpointId=o.config.preTunedModelCheckpointId);const d=Object.assign(Object.assign({},o),{preTunedModel:u});return d.baseModel=void 0,await this.tuneInternal(d)}else{const u=Object.assign({},o);return await this.tuneInternal(u)}else{const u=Object.assign({},o),d=await this.tuneMldevInternal(u);let m="";return d.metadata!==void 0&&d.metadata.tunedModel!==void 0?m=d.metadata.tunedModel:d.name!==void 0&&d.name.includes("/operations/")&&(m=d.name.split("/operations/")[0]),{name:m,state:$r.JOB_STATE_QUEUED}}}}async getInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=PS(n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>ou(v))}else{const g=BS(n);return h=Z("{name}",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>Nh(v))}}async listInternal(n){var o,a,u,d;let m,h="",y={};if(this.apiClient.isVertexAI()){const g=JS(n);return h=Z("tuningJobs",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=KS(v),C=new Dm;return Object.assign(C,S),C})}else{const g=FS(n);return h=Z("tunedModels",g._url),y=g._query,delete g._url,delete g._query,m=this.apiClient.request({path:h,queryParams:y,body:JSON.stringify(g),httpMethod:"GET",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal}).then(v=>v.json().then(S=>{const C=S;return C.sdkHttpResponse={headers:v.headers},C})),m.then(v=>{const S=XS(v),C=new Dm;return Object.assign(C,S),C})}}async cancel(n){var o,a,u,d;let m="",h={};if(this.apiClient.isVertexAI()){const y=HS(n);m=Z("{name}:cancel",y._url),h=y._query,delete y._url,delete y._query,await this.apiClient.request({path:m,queryParams:h,body:JSON.stringify(y),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal})}else{const y=kS(n);m=Z("{name}:cancel",y._url),h=y._query,delete y._url,delete y._query,await this.apiClient.request({path:m,queryParams:h,body:JSON.stringify(y),httpMethod:"POST",httpOptions:(u=n.config)===null||u===void 0?void 0:u.httpOptions,abortSignal:(d=n.config)===null||d===void 0?void 0:d.abortSignal})}}async tuneInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI()){const h=zS(n,n);return d=Z("tuningJobs",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>ou(y))}else throw new Error("This method is only supported by the Vertex AI.")}async tuneMldevInternal(n){var o,a;let u,d="",m={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const h=VS(n);return d=Z("tunedModels",h._url),m=h._query,delete h._url,delete h._query,u=this.apiClient.request({path:d,queryParams:m,body:JSON.stringify(h),httpMethod:"POST",httpOptions:(o=n.config)===null||o===void 0?void 0:o.httpOptions,abortSignal:(a=n.config)===null||a===void 0?void 0:a.abortSignal}).then(y=>y.json().then(g=>{const v=g;return v.sdkHttpResponse={headers:y.headers},v})),u.then(y=>$S(y))}}}/** 228 * @license 229 * Copyright 2025 Google LLC 230 * SPDX-License-Identifier: Apache-2.0 231 */class eC{async download(n,o){throw new Error("Download to file is not supported in the browser, please use a browser compliant download like an <a> tag.")}}const tC=1024*1024*8,nC=3,iC=1e3,lC=2,va="x-goog-upload-status";async function oC(i,n,o){var a;const u=await Ih(i,n,o),d=await(u==null?void 0:u.json());if(((a=u==null?void 0:u.headers)===null||a===void 0?void 0:a[va])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");return d.file}async function aC(i,n,o){var a;const u=await Ih(i,n,o),d=await(u==null?void 0:u.json());if(((a=u==null?void 0:u.headers)===null||a===void 0?void 0:a[va])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");const m=lh(d),h=new cu;return Object.assign(h,m),h}async function Ih(i,n,o){var a,u;let d=0,m=0,h=new jr(new Response),y="upload";for(d=i.size;m<d;){const g=Math.min(tC,d-m),v=i.slice(m,m+g);m+g>=d&&(y+=", finalize");let S=0,C=iC;for(;S<nC&&(h=await o.request({path:"",body:v,httpMethod:"POST",httpOptions:{apiVersion:"",baseUrl:n,headers:{"X-Goog-Upload-Command":y,"X-Goog-Upload-Offset":String(m),"Content-Length":String(g)}}}),!(!((a=h==null?void 0:h.headers)===null||a===void 0)&&a[va]));)S++,await rC(C),C=C*lC;if(m+=g,((u=h==null?void 0:h.headers)===null||u===void 0?void 0:u[va])!=="active")break;if(d<=m)throw new Error("All content has been uploaded, but the upload status is not finalized.")}return h}async function sC(i){return{size:i.size,type:i.type}}function rC(i){return new Promise(n=>setTimeout(n,i))}class uC{async upload(n,o,a){if(typeof n=="string")throw new Error("File path is not supported in browser uploader.");return await oC(n,o,a)}async uploadToFileSearchStore(n,o,a){if(typeof n=="string")throw new Error("File path is not supported in browser uploader.");return await aC(n,o,a)}async stat(n){if(typeof n=="string")throw new Error("File path is not supported in browser uploader.");return await sC(n)}}/** 232 * @license 233 * Copyright 2025 Google LLC 234 * SPDX-License-Identifier: Apache-2.0 235 */class cC{create(n,o,a){return new fC(n,o,a)}}class fC{constructor(n,o,a){this.url=n,this.headers=o,this.callbacks=a}connect(){this.ws=new WebSocket(this.url),this.ws.onopen=this.callbacks.onopen,this.ws.onerror=this.callbacks.onerror,this.ws.onclose
235=this.callbacks.onclose,this.ws.onmessage=this.callbacks.onmessage}send(n){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.send(n)}close(){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.close()}}/** 236 * @license 237 * Copyright 2025 Google LLC 238 * SPDX-License-Identifier: Apache-2.0 239 */const jm="x-goog-api-key";class dC{constructor(n){this.apiKey=n}async addAuthHeaders(n,o){if(n.get(jm)===null){if(this.apiKey.startsWith("auth_tokens/"))throw new Error("Ephemeral tokens are only supported by the live API.");if(!this.apiKey)throw new Error("API key is missing. Please provide a valid API key.");n.append(jm,this.apiKey)}}}/** 240 * @license 241 * Copyright 2025 Google LLC 242 * SPDX-License-Identifier: Apache-2.0 243 */const pC="gl-node/";class mC{constructor(n){var o;if(n.apiKey==null)throw new Error("An API Key must be set when running in a browser");if(n.project||n.location)throw new Error("Vertex AI project based authentication is not supported on browser runtimes. Please do not provide a project or location.");this.vertexai=(o=n.vertexai)!==null&&o!==void 0?o:!1,this.apiKey=n.apiKey;const a=Yy(n.httpOptions,n.vertexai,void 0,void 0);a&&(n.httpOptions?n.httpOptions.baseUrl=a:n.httpOptions={baseUrl:a}),this.apiVersion=n.apiVersion;const u=new dC(this.apiKey);this.apiClient=new NE({auth:u,apiVersion:this.apiVersion,apiKey:this.apiKey,vertexai:this.vertexai,httpOptions:n.httpOptions,userAgentExtra:pC+"web",uploader:new uC,downloader:new eC}),this.models=new KE(this.apiClient),this.live=new PE(this.apiClient,u,new cC),this.batches=new T1(this.apiClient),this.chats=new e2(this.models,this.apiClient),this.caches=new W1(this.apiClient),this.files=new c2(this.apiClient),this.operations=new QE(this.apiClient),this.authTokens=new fS(this.apiClient),this.tunings=new jS(this.apiClient),this.fileSearchStores=new US(this.apiClient)}}const hC="PLACEHOLDER_API_KEY",gC=()=>{const[i,n]=te.useState(!1),[o,a]=te.useState([]),[u,d]=te.useState(""),[m,h]=te.useState(!1),y=te.useRef(null),g=te.useRef(null),v=te.useRef(null);te.useEffect(()=>{const A=new mC({apiKey:hC});y.current=A.chats.create({model:"gemini-2.5-flash",config:{systemInstruction:`Eres "Hubdem", un asistente de IA experto en esta aplicación de dashboard electoral. 244 Tu propósito es ayudar a los usuarios a entender cómo usar la aplicación, qué datos muestra cada sección y cómo se obtienen los datos desde Google Sheets. 245 Las secciones son: Centro de datos (con TipologÃas T1 a T20), Intención de voto, Valoraciones de lÃderes, Opinión, Preocupación, Microdatos y Microtargeting. 246 Responde siempre en español. Sé amable, conciso y muy útil.`}}),a([{text:"¡Hola! Soy Hubdem, tu asistente. ¿En qué puedo ayudarte hoy?",sender:"ai"}])},[]),te.useEffect(()=>{i&&setTimeout(()=>{var A;return(A=v.current)==null?void 0:A.focus()},100)},[i]),te.useEffect(()=>{var A;(A=g.current)==null||A.scrollIntoView({behavior:"smooth"})},[o,m]);const S=async()=>{const A=u.trim();if(!A||m)return;const D=[...o,{text:A,sender:"user"}];a(D),d(""),h(!0);try{if(!y.current)throw new Error("Chat no inicializado.");const B=(await y.current.sendMessage({message:A})).text;a([...D,{text:B,sender:"ai"}])}catch(L){console.error("Error al contactar con la IA:",L),a([...D,{text:"Lo siento, he tenido un problema para conectar. Por favor, inténtalo de nuevo más tarde.",sender:"error"}])}finally{h(!1)}},C=A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),S())};return E.jsxs(E.Fragment,{children:[E.jsx("button",{onClick:()=>n(!0),className:"fixed bottom-6 right-6 z-50 bg-sky-600 text-white p-4 rounded-full shadow-lg hover:bg-sky-700 transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500","aria-label":"Abrir chat con Hubdem",children:E.jsx(Ty,{className:"w-6 h-6"})}),E.jsxs("div",{className:`fixed inset-0 z-[60] flex items-center justify-center p-4 transition-all duration-300 ease-in-out ${i?"opacity-100 backdrop-blur-sm":"opacity-0 pointer-events-none"}`,children:[E.jsx("div",{className:"absolute inset-0 bg-black/30",onClick:()=>n(!1),"aria-hidden":"true"}),E.jsxs("div",{className:`relative w-full max-w-lg h-[75vh] max-h-[700px] bg-white dark:bg-slate-900 rounded-2xl shadow-2xl flex flex-col transition-transform duration-300 ease-in-out ${i?"scale-100":"scale-95"}
246`,role:"dialog","aria-modal":"true","aria-labelledby":"chatbot-title",children:[E.jsxs("header",{className:"flex justify-between items-center p-4 border-b border-slate-200 dark:border-slate-800 flex-shrink-0",children:[E.jsx("h2",{id:"chatbot-title",className:"text-lg font-bold text-slate-800 dark:text-slate-200",children:"Chatea con Hubdem"}),E.jsx("button",{onClick:()=>n(!1),className:"p-1 rounded-full text-slate-500 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-slate-400","aria-label":"Cerrar chat",children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),E.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 bg-slate-50 dark:bg-slate-800/50",children:[o.map((A,D)=>E.jsx("div",{className:`flex ${A.sender==="user"?"justify-end":"justify-start"}`,children:E.jsx("div",{className:`max-w-sm lg:max-w-md px-4 py-2 rounded-2xl shadow-sm ${A.sender==="user"?"bg-sky-500 text-white rounded-br-lg":A.sender==="ai"?"bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-200 rounded-bl-lg":"bg-red-100 dark:bg-red-950/30 text-red-700 dark:text-red-400 rounded-bl-lg"}`,children:E.jsx("p",{className:"text-sm whitespace-pre-wrap",children:A.text})})},D)),m&&E.jsx("div",{className:"flex justify-start",children:E.jsx("div",{className:"px-4 py-2 rounded-2xl shadow-sm bg-white dark:bg-slate-700 text-slate-800 dark:text-slate-200",children:E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("span",{className:"text-sm",children:"Hubdem está pensando"}),E.jsx("div",{className:"w-1.5 h-1.5 bg-slate-500 rounded-full animate-pulse [animation-delay:-0.3s]"}),E.jsx("div",{className:"w-1.5 h-1.5 bg-slate-500 rounded-full animate-pulse [animation-delay:-0.15s]"}),E.jsx("div",{className:"w-1.5 h-1.5 bg-slate-500 rounded-full animate-pulse"})]})})}),E.jsx("div",{ref:g})]}),E.jsx("div",{className:"p-4 border-t border-slate-200 dark:border-slate-800 flex-shrink-0",children:E.jsxs("div",{className:"flex items-center space-x-2 bg-slate-100 dark:bg-slate-800 border border-slate-300 dark:border-slate-700 rounded-lg pr-2 focus-within:ring-2 focus-within:ring-sky-500",children:[E.jsx("textarea",{ref:v,value:u,onChange:A=>d(A.target.value),onKeyPress:C,className:"flex-1 bg-transparent p-2 text-sm text-slate-800 dark:text-slate-200 resize-none focus:outline-none placeholder-slate-400 dark:placeholder-slate-500",placeholder:"Escribe tu pregunta...",rows:1,style:{maxHeight:"100px"},"aria-label":"Escribe tu pregunta a Hubdem"}),E.jsx("button",{onClick:S,disabled:m||!u.trim(),className:"p-2 rounded-full text-white bg-sky-500 hover:bg-sky-600 disabled:bg-slate-300 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-sky-400",children:E.jsx(Sy,{className:"w-5 h-5"})})]})})]})]})]})},yC=({isDarkMode:i=!0})=>{const n=te.useRef(null),o=te.useRef(null),[a,u]=te.useState([]),d=te.useRef({nodes:[],links:[]});te.useEffect(()=>{let v=!0;const S=A=>{if(!v)return;let D,L;if(A)D=A.contentRect.width,L=A.contentRect.height;else if(n.current){const Y=n.current.getBoundingClientRect();D=Y.width,L=Y.height}else return;if(D===0||L===0)return;const B=Math.floor(D*L/25e3),P=["#10b981","#be123c","#f59e0b","#06b6d4","#6366f1"],O=Array.from({length:B},(Y,J)=>({id:J,x:Math.random()*D,y:Math.random()*L,cx:0,cy:0,radius:Math.random()*1.5+1.5,color:P[Math.floor(Math.random()*P.length)],dx:(Math.random()-.5)*15,dy:(Math.random()-.5)*15,animDuration:(15+Math.random()*10)*1e3,animDelay:Math.random()*25*1e3}));O.forEach(Y=>{Y.cx=Y.x,Y.cy=Y.y});const H=[];O.forEach(Y=>{const J=Math.ceil(Math.random()*2);for(let K=0;K<J;K++){const F=O[Math.floor(Math.random()*O.length)];Y.id!==F.id&&(H.some(W=>W.source===Y.id&&W.target===F.id||W.source===F.id&&W.target===Y.id)||H.push({source:Y.id,target:F.id}))}}),d.current={nodes:O,links:H},u(O)},C=new ResizeObserver(A=>{for(let D of A)S(D)});return n.current&&(C.observe(n.current),S()),()=>{v=!1,n.current&&C.unobserve(n.current)}},[]),te.useEffect(()=>{const v=Date.now(),S=()=>{const A=Date.now()-v,D=d.current.nodes.map(L=>{const P=(A+L.animDelay)%L.animDuration/L.animDuration,O=(1-Math.cos(P*2*Math.PI))/2,H=L.x+L.dx*O,Y=L.y+L.dy*O;return{...L,cx:H,cy:Y}});u(D),o.current=requestAnimationFrame(S)};return d.current.nodes.length>0&&(o.current=requestAnimationFrame(S)),()=>{o.current&&cancelAnimationFrame(o.current)}},[d.current.nodes.length]);const{links:m}=d.current,h=te.useMemo(()=>new Map(a.map(v=>[v.id,v])),[a]),y=i?"rgba(255, 255, 255, 0.2)":"rgba(100, 116, 139, 0.2)",g=i?"opacity-30":"opacity-80";return E.jsxs("svg",{ref:n,width:"100%",height:"100%",className:`absolute inset-0 z-0 ${g} overflow-hidden`,children:[E.jsx("g",{children:m.map((v,S)=>{const C=h.get(v.source),A=h.get(v.target);return!C||!A?null:E.jsx("line",{x1:C.cx,y1:C.cy,x2:A.cx,y2:A.cy,stroke:y,strokeWidth:"0.5"},`link-${S}`)})}),E.jsx("g",{children:a.map(v=>
246E.jsx("circle",{cx:v.cx,cy:v.cy,r:v.radius,fill:v.color},v.id))})]})},vC=()=>{const i=te.useRef(null),n=te.useRef([]),o=te.useRef(null),a=te.useRef(null);return te.useEffect(()=>{const u=i.current;if(!u)return;const d=u.getContext("2d");if(!d)return;const m=80,h=40,y="14, 165, 233",g=15,v=()=>{const O=u.parentElement;if(O){const H=O.getBoundingClientRect(),Y=window.devicePixelRatio||1;u.width=H.width*Y,u.height=H.height*Y,u.style.width=`${H.width}px`,u.style.height=`${H.height}px`,d.scale(Y,Y)}},S=(O,H)=>{n.current.length>h&&n.current.splice(0,n.current.length-h);for(let J=0;J<1;J++){const K=60+Math.random()*40;n.current.push({x:O,y:H,vx:(Math.random()-.5)*.4,vy:(Math.random()-.5)*.4,life:K,maxLife:K,size:Math.random()*1.5+1})}},C=(O,H)=>{const Y=u.parentElement;if(!Y)return;const J=Y.getBoundingClientRect(),K=O-J.left,F=H-J.top;if(a.current){const ae=K-a.current.x,W=F-a.current.y;if(Math.hypot(ae,W)<g)return}S(K,F),a.current={x:K,y:F}},A=O=>{C(O.clientX,O.clientY)},D=O=>{O.touches.length>0&&C(O.touches[0].clientX,O.touches[0].clientY)},L=()=>{if(!d||!u)return;d.clearRect(0,0,u.width,u.height);const O=n.current.map(H=>(H.x+=H.vx,H.y+=H.vy,H.life-=1,H.vx*=.97,H.vy*=.97,H)).filter(H=>H.life>0);n.current=O;
246for(let H=0;H<O.length;H++)for(let Y=H+1;Y<O.length;Y++){const J=O[H],K=O[Y],F=Math.hypot(J.x-K.x,J.y-K.y);if(F<m){const ae=Math.min(J.life/J.maxLife,K.life/K.maxLife),W=(1-F/m)*Math.sqrt(ae)*.7;d.strokeStyle=`rgba(${y}, ${W})`,d.lineWidth=.5,d.beginPath(),d.moveTo(J.x,J.y),d.lineTo(K.x,K.y),d.stroke()}}O.forEach(H=>{const Y=H.life/H.maxLife;d.beginPath(),d.arc(H.x,H.y,H.size,0,Math.PI*2),d.fillStyle=`rgba(${y}, ${Y})`,d.fill()}),o.current=requestAnimationFrame(L)};v(),L();const B=u.parentElement;B==null||B.addEventListener("mousemove",A),B==null||B.addEventListener("touchmove",D);const P=new ResizeObserver(v);return B&&P.observe(B),()=>{o.current&&cancelAnimationFrame(o.current),B==null||B.removeEventListener("mousemove",A),B==null||B.removeEventListener("touchmove",D),B&&P.unobserve(B)}},[]),E.jsx("canvas",{ref:i,className:"absolute inset-0 z-0 pointer-events-none"})},Qr=[{id:"n1",x:110,y:380},{id:"n2",x:253,y:280},{id:"n3",x:198,y:180},{id:"n4",x:330,y:100},{id:"n5",x:495,y:70},{id:"n6",x:638,y:80},{id:"n7",x:770,y:130},{id:"n8",x:858,y:230},{id:"n9",x:869,y:400},{id:"n10",x:803,y:550},{id:"n11",x:682,y:630},{id:"n12",x:550,y:730},{id:"n13",x:473,y:650},{id:"n14",x:220,y:500},{id:"n15",x:385,y:250},{id:"n16",x:550,y:200},{id:"n17",x:715,y:280},{id:"n18",x:495,y:490},{id:"n19",x:385,y:450},{id:"n20",x:660,y:500},{id:"n21",x:715,y:400},{id:"n22",x:132,y:280}],TC=[{source:"n1",target:"n2"},{source:"n2",target:"n3"},{source:"n3",target:"n4"},{source:"n4",target:"n5"},{source:"n5",target:"n6"},{source:"n6",target:"n7"},{source:"n7",target:"n8"},{source:"n8",target:"n9"},{source:"n9",target:"n10"},{source:"n10",target:"n11"},{source:"n11",target:"n12"},{source:"n12",target:"n13"},{source:"n14",target:"n1"},{source:"n15",target:"n2"},{source:"n15",target:"n3"},{source:"n15",target:"n4"},{source:"n15",target:"n16"},{source:"n15",target:"n18"},{source:"n15",target:"n19"},{source:"n16",target:"n4"},{source:"n16",target:"n5"},{source:"n16",target:"n6"},{source:"n16",target:"n17"},{source:"n16",target:"n18"},{source:"n17",target:"n7"},{source:"n17",target:"n8"},{source:"n17",target:"n9"},{source:"n17",target:"n18"},{source:"n17",target:"n21"},{source:"n18",target:"n19"},{source:"n18",target:"n20"},{source:"n18",target:"n21"},{source:"n19",target:"n1"},{source:"n19",target:"n14"},{source:"n19",target:"n13"},{source:"n20",target:"n10"},{source:"n20",target:"n11"},{source:"n20",target:"n13"},{source:"n21",target:"n9"},{source:"n21",target:"n20"},{source:"n21",target:"n10"},{source:"n2",target:"n14"},{source:"n3",target:"n16"},{source:"n6",target:"n17"},{source:"n8",target:"n21"},{source:"n11",target:"n13"},{source:"n14",target:"n19"},{source:"n13",target:"n19"},{source:"n1",target:"n15"},{source:"n18",target:"n1"},{source:"n18",target:"n14"},{source:"n19",target:"n18"},{source:"n22",target:"n2"},{source:"n22",target:"n1"},{source:"n22",target:"n19"},{source:"n22",target:"n3"},{source:"n21",target:"n3"}],EC=({isVisible:i})=>{const n=te.useMemo(()=>Qr.map(h=>({...h,radius:5+Math.random()*8,animOffset:Math.random()*6e3,opacity:.3,scale:.95})),[]),[o,a]=te.useState(n),u=te.useRef(null);te.useEffect(()=>{let h=!0;const y=Date.now(),g=()=>{if(!h)return;const S=Date.now()-y,C=n.map(A=>{const D=S+A.animOffset,L=6e3,B=D%L/L,P=Math.sin(B*Math.PI),O=.3+P*.7,H=.95+P*.1;return{...A,opacity:O,scale:H}});a(C),u.current=requestAnimationFrame(g)};return i&&(u.current=requestAnimationFrame(g)),()=>{h=!1,u.current&&cancelAnimationFrame(u.current)}},[i,n]);const d=te.useMemo(()=>new Map(o.map(h=>[h.id,h])),[o]),m=te.useMemo(()=>TC.map((h,y)=>{const g=Qr.find(S=>S.id===h.source),v=Qr.find(S=>S.id===h.target);return!g||!v?null:{key:`link-${y}`,sourceId:h.source,targetId:h.target,d:`M ${g.x} ${g.y} L ${v.x} ${v.y}`,animDur:`${6+Math.random()*6}s`,animBegin:`${Math.random()*12}s`}}).filter(h=>h!==null),[]);return E.jsx("div",{className:"absolute top-1/2 left-1/2 w-64 h-64",style:{transform:"translate(-50%, -50%)",perspective:"1000px"},children:E.jsx("div",{className:`w-full h-full ${i?"opacity-100":"opacity-0"}`,style:{transformStyle:"preserve-3d",transform:"rotateX(-10deg) rotateY(0deg)"},children:E.jsx("div",{className:"w-full h-full",children:E.jsxs("svg",{viewBox:"0 0 1000 850",className:"w-full h-full overflow-visible",children:[E.jsxs("defs",{children:[E.jsxs("radialGradient",{id:"node-glow-splash",cx:"35%",cy:"35%",r:"65%",fx:"30%",fy:"30%",children:[E.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.6)"}),E.jsx("stop",{offset:"100%",stopColor:"rgba(255,255,255,0.0)"})]}),E.jsxs("filter",{id:"node-glow-filter-splash",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[E.jsx("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"4",result:"blur"}),E.jsx("feFlood",{floodColor:"#a0aec0",floodOpacity:"0.7",result:"flood"}),E.jsx("feComposite",{in:"flood",in2:"blur",operator:"in",result:"coloredBlur"}),E.jsxs("feMerge",{children:[E.jsx("feMergeNode",{in:"coloredBlur"}),E.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),E.jsx("g",{children:m.map(h=>{const y=d.get(h.sourceId),g=d.get(h.targetId);if(!y||!g)return null;const S=.15+(y.opacity+g.opacity)/2*.2;return E.jsxs("g",{children:[E.jsx("path",{d:h.d,stroke:"rgba(255,255,255,0.4)",strokeWidth:"1",strokeOpacity:S}),E.jsx("circle",{r:"2.25",fill:"#0ea5e9",children:E.jsx("animateMotion",{dur:h.animDur,begin:h.animBegin,repeatCount:"indef
246inite",path:h.d})})]},`link-group-${h.key}`)})}),E.jsx("g",{children:o.map(h=>E.jsx("g",{style:{transform:`translate(${h.x}px, ${h.y}px) scale(${h.scale})`,opacity:h.opacity,transformOrigin:`${h.x}px ${h.y}px`},children:E.jsxs("g",{children:[E.jsx("circle",{r:h.radius,fill:"#0ea5e9",style:{filter:"url(#node-glow-filter-splash)"}}),E.jsx("circle",{r:h.radius,fill:"url(#node-glow-splash)"})]})},h.id))})]})})})})},SC=({onEnter:i})=>{const[n,o]=te.useState(!1),[a,u]=te.useState(""),d=te.useRef(null),m=te.useRef(null),h=te.useRef([]),[y,g]=te.useState([]);te.useEffect(()=>{const D=()=>{const P=d.current,O=m.current,H=h.current;if(!P||!O||H.some(W=>!W)){setTimeout(D,100);return}const Y=P.getBoundingClientRect(),J=O.getBoundingClientRect(),K=J.left-Y.left+J.width*.5,F=J.top-Y.top+J.height*.85,ae=H.map(W=>{if(!W)return"";const ue=W.getBoundingClientRect(),ve=ue.left-Y.left+ue.width/2,ce=ue.top-Y.top,Be=ve,ot=(ce+F)/2,et=K,k=(ce+F)/2;return`M ${ve} ${ce} C ${Be} ${ot}, ${et} ${k}, ${K} ${F}`});g(ae)},L=new ResizeObserver(D),B=d.current;return B&&L.observe(B),D(),()=>{B&&L.unobserve(B)}},[]);const v=[{title:"MinerÃa de Datos",subtitle:"Extraer, transformar y cargar",icon:E.jsx(qy,{className:"w-full h-full"})},{title:"Acción Estratégica",subtitle:"Decisiones basadas en inteligencia de datos",icon:E.jsx(ky,{className:"w-full h-full"})},{title:"Visualización e interacción",subtitle:"Análisis e indicadores clave",icon:E.jsx(th,{className:"w-full h-full"})}],S=[{icon:E.jsx(nh,{className:"w-full h-full"}),title:"Panelistas",description:"Encuestas periódicas a nuestra base de panelistas para un seguimiento continuo."},{icon:E.jsx(Xr,{className:"w-full h-full"}),title:"Call Center",description:"Entrevistas telefónicas (CATI) para garantizar la representatividad y cobertura."},{icon:E.jsx(ih,{className:"w-full h-full"}),title:"Datos Terciarios",description:"Integración de datos de fuentes externas para enriquecer los perfiles."},{icon:E.jsx(Ny,{className:"w-full h-full"}),title:"Microdatos Oficiales",description:"Análisis de datos públicos y censales para una segmentación precisa."}],C=()=>E.jsxs("div",{className:"relative w-full h-auto flex flex-col md:flex-row items-center justify-between gap-8 bg-slate-800/[.95] backdrop-blur-2xl rounded-3xl p-6 sm:p-8 shadow-2xl ring-1 ring-white/10 overflow-hidden group",children:[E.jsx(vC,{}),E.jsxs("div",{className:"relative z-10 flex items-center gap-6",children:[E.jsxs("div",{className:"relative w-16 h-16 sm:w-20 sm:h-20 flex-shrink-0",children:[E.jsx("div",{className:"absolute inset-0 bg-sky-4
24600/30 rounded-full animate-custom-ping"}),E.jsx("div",{className:"relative w-full h-full p-1 bg-white/20 backdrop-blur-sm rounded-full shadow-lg ring-1 ring-white/20",children:E.jsx("img",{src:"https://electomania.es/wp-content/uploads/2025/07/Logo-hubdem.png",alt:"Hubdem Logo",className:"w-full h-full object-contain rounded-full"})})]}),E.jsx("div",{children:E.jsxs("h1",{className:"text-4xl sm:text-5xl font-bold text-white tracking-tight",style:{textShadow:"0 2px 10px rgba(0,0,0,0.5)"},children:["Hubdem",E.jsx("sup",{className:"text-[0.4em] -top-4 relative text-sky-400",children:"®"})]})})]}),E.jsxs("div",{className:"relative z-10 flex flex-col items-center md:items-start text-center md:text-left max-w-sm",children:[E.jsx("p",{className:"mb-6 text-sm sm:text-base text-slate-300",children:"Hubdem es un Software de análisis desarrollado por MIDAT 1, un algoritmo de procesamiento desarrollado por mineros de datos desde Asturias, España."}),E.jsx("a",{href:"https://midat1.com/",target:"_blank",rel:"noopener noreferrer",onClick:D=>D.stopPropagation(),className:"bg-sky-600 text-white font-bold py-2 px-6 rounded-full text-base shadow-lg shadow-sky-500/30 transition-all duration-300 ease-in-out transform hover:bg-sky-500 hover:scale-105 focus:outline-none focus:ring-4 focus:ring-sky-500/50",children:"+ info"})]})]}),A=()=>{o(!0),setTimeout(i,500)};return E.jsxs("div",{className:`fixed inset-0 z-[100] bg-black transition-opacity duration-500 ease-in-out ${n?"opacity-0":"opacity-100"}`,"aria-hidden":n,children:[E.jsx("style",{children:` 247 @keyframes midat-shine { 248 0% { left: -75%; } 249 100% { left: 125%; } 250 } 251 .midat-button-shine::after { 252 content: ''; 253 position: absolute; 254 top: -50%; 255 left: -75%; 256 width: 50%; 257 height: 200%; 258 background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%); 259 transform: rotate(25deg); 260 animation: midat-shine 1.5s ease-in-out 2.5s infinite; 261 } 262 @keyframes scale-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } 263 @keyframes pop-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } } 264 @keyframes fade-in-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } 265 @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } 266 @keyframes custom-ping { 75%, 100% { transform: scale(1.8); opacity: 0; } } 267 .animate-custom-ping { animation: custom-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite; } 268 @keyframes bounce { 269 0%, 100% { 270 transform: translateX(-50%) translateY(-25%); 271 animation-timing-function: cubic-bezier(0.8, 0, 1, 1); 272 } 273 50% { 274 transform: translateX(-50%) translateY(0); 275 animation-timing-function: cubic-bezier(0, 0, 0.2, 1); 276 } 277 } 278 .animate-bounce { 279 animation: bounce 1.5s infinite; 280 } 281 .data-flow-base-path, .data-flow-particle { 282 animation: fade-in 1s ease-out forwards; 283 opacity: 0; 284 } 285 @keyframes node-pulse { 286 0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); } 287 50% { transform: scale(1.03); box-shadow: 0 0 25px rgba(14, 165, 233, 0.4); } 288 } 289 .animate-node-pulse { 290 animation: node-pulse 8s ease-in-out infinite; 291 } 292 `}),E.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[110] w-full bg-transparent text-slate-300 p-2 text-sm flex items-center justify-end pr-8 gap-4 border-b border-white/10",children:[E.jsx("span",{children:"Descubre nuestros servicios profesionales en:"}),E.jsx("a",{href:"https://midat-1.netlify.app/#/history",target:"_blank",rel:"noopener noreferrer",children:E.jsx("button",{className:"relative overflow-hidden bg-[#6c7280] hover:bg-[#5a606b] rounded-md px-4 py-1 text-xs font-bold text-white transition-colors duration-200 midat-button-shine",children:"MIDAT 1"})})]}),E.jsx("div",{className:"absolute inset-0 w-full h-full bg-gradient-to-br from-slate-800 via-slate-900 to-slate-950"}),E.jsx(yC,{isDarkMode:!0}),E.jsxs("div",{className:"relative z-10 h-full w-full overflow-y-auto",children:[E.jsxs("div",{className:"h-screen flex flex-col items-center justify-center relative p-4 text-center",children:[E.jsx("div",{className:"relative w-64 h-64 flex-shrink-0 animate-[fade-in_1s_ease-out]",children:E.jsx(EC,{isVisible:!0})}),E.jsxs("div",{className:"my-8 animate-[fade-in-up_1s_ease-out_0.1s_backwards]",children:[E.jsxs("h1",{className:"text-5xl font-bold text-white tracking-tight",style:{textShadow:"0 2px 10px rgba(0,0,0,0.5)"},children:["Hubdem",E.jsx("sup",{className:"text-[0.4em] -top-4 relative text-sky-400",children:"®"})]}),E.jsx("p",{className:"mt-2 text-sm text-slate-400 tracking-wider italic",children:"Desarrollado por MIDAT 1"})]}),E.jsx("form",{onSubmit:D=>{D.preventDefault(),A()},className:"w-full max-w-sm flex-shrink-0 animate-[fade-in-up_1s_ease-out_0.2s_backwards]",children:E.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/[.95] backdrop-blur-2xl rounded-full p-2 shadow-2xl ring-1 ring-white/10 group",children:[E.jsx("input",{type:"password",placeholder:"Introducir clave de acceso",value:a,onChange:D=>u(D.target.value),className:"flex-grow bg-transparent text-white placeholder-slate-400 px-4 py-2 text-center focus:outline-none"}),E.jsx("button",{type:"submit",className:"flex-shrink-0 w-12 h-12 bg-sky-600 rounded-full flex items-center justify-center text-white shadow-lg shadow-sky-500/30 transition-all duration-300 ease-in-out transform hover:bg-sky-500 hover:scale-105 focus:outline-none focus:ring-4 focus:ring-sky-500/50","aria-label":"Entrar",children:E.jsx(Ry,{className:"w-6 h-6"})})]})}),E.jsx("div",{className:"absolute bottom-8 left-1/2 text-white animate-bounce",children:E.jsx(wy,{className:"w-8 h-8"})})]}),E.jsxs("div",{ref:d,className:"relative z-10 py-20 px-4",children:[E.jsxs("svg",{className:"absolute top-0 left-0 w-full h-full pointer-events-none z-[5]","aria-hidden":"true",children:[E.jsx("defs",{children:E.jsx("filter",{id:"glow-splash",x:"-500%",y:"-500%",width:"1000%",height:"1000%",children:E.jsx("feGaussianBlur",{stdDeviation:"3",result:"blur"})})}),y.map((D,L)=>E.jsxs("g",{children:[E.jsx("path",{d:D,stroke:"#0ea5e9",strokeWidth:"0.5",fill:"none",strokeOpacity:"0.3",className:"data-flow-base-path",style:{animationDelay:`${1.2+L*.15}s`}}
292),E.jsx("circle",{r:"2",fill:"#fff",filter:"url(#glow-splash)",className:"data-flow-particle",style:{animationDelay:`${1.2+L*.15}s`},children:E.jsx("animateMotion",{dur:`${4.5+Math.random()}s`,begin:`${1.2+L*.15}s`,repeatCount:"indefinite",path:D})})]},L))]}),E.jsxs("div",{className:"max-w-6xl mx-auto",children:[E.jsxs("div",{className:"relative w-full min-h-[550px] md:min-h-[600px] flex items-center justify-center animate-[fade-in-up_1s_ease-out_0.2s_forwards]",children:[E.jsx("div",{ref:m,className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-[115%] z-10 w-40 h-40 md:w-48 md:h-48",children:E.jsx(Iy,{className:"w-full h-full"})}),E.jsxs("div",{className:"absolute w-full h-full",children:[E.jsx("div",{className:"absolute top-1/2 left-1/2 w-[35%] h-12 -translate-x-[90%] -translate-y-[150%] rotate-[150deg]",children:E.jsx(Kr,{className:"w-full h-full"})}),E.jsx("div",{className:"absolute top-1/2 left-1/2 w-[40%] h-12 -translate-x-1/2 -translate-y-[450%]",children:E.jsx(Kr,{className:"w-full h-full -rotate-90"})}),E.jsx("div",{className:"absolute top-1/2 left-1/2 w-[35%] h-12 -translate-x-[10%] -translate-y-[150%] rotate-[30deg]",children:E.jsx(Kr,{className:"w-full h-full"})})]}),E.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-[280%] md:-translate-y-[250%] w-48 h-40 group transition-all duration-300 hover:!scale-105",children:E.jsxs("div",{className:"relative w-full h-full p-4 text-center bg-slate-800/50 backdrop-blur-lg rounded-2xl ring-1 ring-white/10 shadow-xl flex flex-col items-center justify-center animate-node-pulse",style:{animationDelay:"0.5s"},children:[E.jsx("div",{className:"w-12 h-12 mb-2 text-sky-400 group-hover:text-sky-300 transition-colors",children:v[0].icon}),E.jsx("h3",{className:"font-bold text-white text-sm",children:v[0].title}),E.jsx("p",{className:"text-xs text-slate-400",children:v[0].subtitle})]})}),E.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-[170%] md:-translate-x-[150%] -translate-y-[50%] w-48 h-40 group transition-all duration-300 hover:!scale-105",children:E.jsxs("div",{className:"relative w-full h-full p-4 text-center bg-slate-800/50 backdrop-blur-lg rounded-2xl ring-1 ring-white/10 shadow-xl flex flex-col items-center justify-center animate-node-pulse",style:{animationDelay:"0.7s"},children:[E.jsx("div",{className:"w-12 h-12 mb-2 text-sky-400 group-hover:text-sky-300 transition-colors",children:v[1].icon}),E.jsx("h3",{className:"font-bold text-white text-sm",children:v[1].title}),E.jsx("p",{className:"text-xs text-slate-400",children:v[1].subtitle})]})}),E.jsx("div",{className:"absolute top-1/2 left-1/2 translate-x-[70%] md:translate-x-[50%] -translate-y-[50%] w-48 h-40 group transition-all duration-300 hover:!scale-105",children:E.jsxs("div",{className:"relative w-full h-full p-4 text-center bg-slate-800/50 backdrop-blur-lg rounded-2xl ring-1 ring-white/10 shadow-xl flex flex-col items-center justify-center animate-node-pulse",style:{animationDelay:"0.9s"},children:[E.jsx("div",{className:"w-12 h-12 mb-2 text-sky-400 group-hover:text-sky-300 transition-colors",children:v[2].icon}),E.jsx("h3",{className:"font-bold text-white text-sm",children:v[2].title}),E.jsx("p",{className:"text-xs text-slate-400",children:v[2].subtitle})]})})]}),E.jsx("div",{className:"mt-8 opacity-0 animate-[fade-in-up_1s_ease-out_0.6s_forwards]",children:E.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:S.map((D,L)=>E.jsxs("div",{ref:B=>{h.current[L]=B},className:"bg-slate-800/[.9] backdrop-blur-xl rounded-2xl p-6 text-center transition-all duration-300 hover:scale-105 hover:ring-1 hover:ring-sky-500/50",style:{animation:`fade-in-up 0.5s ease-out ${.8+L*.1}s forwards`,opacity:0},children:[E.jsx("div",{className:"w-20 h-20 mx-auto mb-4 rounded-full flex items-center justify-center bg-slate-700/50 ring-1 ring-white/10",children:E.jsx("div",{className:"w-10 h-10 text-sky-400",children:D.icon})}),E.jsx("h3",{className:"font-bold text-white text-lg mb-2",children:D.title}),E.jsx("p",{className:"text-sm text-slate-400",children:D.description})]},L))})})]}),E.jsx("div",{className:"max-w-6xl mx-auto",children:E.jsx("div",{className:"mt-40 flex justify-center animate-[fade-in-up_1s_ease-out_0.2s_forwards]",children:E.jsx("div",{className:"w-full max-w-3xl",children:E.jsx(C,{})})})})]}),E.jsx("footer",{className:"relative z-10 px-4 text-slate-300 animate-[fade-in-up_1s_ease-out_1s_backwards] border-t border-white/10 pt-16 pb-16",children:E.jsxs("div",{className:"max-w-7xl mx-auto",children:[E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-x-8 gap-y-12",children:[E.jsxs("div",{className:"lg:col-span-5 flex flex-col items-start text-left gap-4",children:[E.jsx("img",{src:"https://electomania.es/wp-content/uploads/2025/11/ministerio.png",alt:"Gobierno de España",className:"w-auto h-20 object-contain flex-shrink-0"}),E.jsx("p",{className:"text-sm text-slate-400 leading-relaxed max-w-md",children:"MIDAT 1 está comprometida con los más altos estándares de privacidad y ética de datos, cumpliendo con la Ley Orgánica 3/2018, de 5 de diciembre, de Protección de Datos y garantÃa de los derechos digitales, para garantizar que la inteligencia que proporcionamos
292sea responsable y segura."})]}),E.jsxs("div",{className:"lg:col-span-7 grid grid-cols-1 sm:grid-cols-12 gap-x-8 gap-y-12",children:[E.jsxs("div",{className:"sm:col-span-4",children:[E.jsx("h3",{className:"font-bold text-white mb-1",children:"MIDAT 1"}),E.jsx("p",{className:"text-sm text-slate-400 uppercase tracking-wider mb-6",children:"Inteligencia de Datos"}),E.jsx("h3",{className:"font-bold text-white mb-2",children:"Contacto"}),E.jsx("a",{href:"mailto:[email protected]",className:"text-sm text-slate-400 hover:text-sky-400 transition-colors",children:"[email protected]"})]}),E.jsxs("div",{className:"sm:col-span-8",children:[E.jsx("h3",{className:"font-bold text-white mb-4",children:"Direcciones"}),E.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-8",children:[E.jsxs("div",{children:[E.jsx("h4",{className:"font-semibold text-slate-300",children:"Sede Central (Oviedo)"}),E.jsxs("address",{className:"not-italic text-sm text-slate-400 mt-2",children:["C/ Santa Susana, 31",E.jsx("br",{}),"33007",E.jsx("br",{}),"Oviedo, Asturias, España"]}),E.jsxs("a",{href:"tel:+34652011226",className:"text-sm text-slate-400 mt-2 flex items-center gap-2 hover:text-sky-400 transition-colors",children:[E.jsx(Xr,{className:"w-4 h-4"})," +34 652 011 226"]})]}),E.jsxs("div",{children:[E.jsx("h4",{className:"font-semibold text-slate-300",children:"Centro de Negocios (Madrid)"}),E.jsxs("address",{className:"not-italic text-sm text-slate-400 mt-2",children:["Av. de Gran VÃa, 6, 4ª planta",E.jsx("br",{}),"28013",E.jsx("br",{}),"Madrid, España"]}),E.jsxs("a",{href:"tel:+34622002223",className:"text-sm text-slate-400 mt-2 flex items-center gap-2 hover:text-sky-400 transition-colors",children:[E.jsx(Xr,{className:"w-4 h-4"})," +34 622 002 223"]})]})]})]})]})]}),E.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-x-8 gap-y-12 items-center mt-12",children:[E.jsxs("div",{className:"lg:col-span-5 flex flex-col items-start text-left gap-4",children:[E.jsx("img",{src:"https://electomania.es/wp-content/uploads/2025/11/europa.png",alt:"Reglamento General de Protección de Datos (RGPD)",className:"w-auto h-20 object-contain flex-shrink-0"}),E.jsx("p",{className:"text-sm text-slate-400 leading-relaxed max-w-md",children:"MIDAT 1 está sujeta a las recomendaciones del Comité Europeo de Protección de Datos (CEPD), asà como al Reglamento General de Protección de Datos (RGPD) de la UE, en reemplazo de la Directiva 95/46/CE."})]}),E.jsxs("div",{className:"lg:col-span-7 flex items-center gap-6",children:[E.jsx("img",{src:"https://electomania.es/wp-content/uploads/2025/11/esomar.png",alt:"ESOMAR",className:"w-24 h-24 sm:w-32 sm:h-32 object-contain flex-shrink-0"}),E.jsx("p",{className:"text-sm text-slate-400 leading-relaxed",children:"MIDAT 1 se adhiere a la normativa internacional de análisis de datos y de mercados, asà como a los estándares de calidad de ESOMAR."})]})]})]})})]})]})},CC=({children:i,activeMenuItemId:n})=>{const[o,a]=te.useState(null),[u,d]=te.useState(i),[m,h]=te.useState({type:"none",direction:"none"}),y=te.useRef(n),g=te.useMemo(()=>{const C=new Map;return Zr.forEach((A,D)=>{C.set(A.id,D)}),C},[]);te.useEffect(()=>{let C=!1;if(n!==y.current){const A=y.current,D=n,L=g.get(A)??-1,B=g.get(D)??-1,P=B%2!==0?"horizontal":"vertical";L!==-1&&B!==-1&&(h({type:P,direction:B>L?"next":"prev"}),C=!0)}else i!==u&&(h({type:"fade",direction:"none"}),C=!0);if(C){a(u),d(i);const A=m.type==="fade"?500:700,D=setTimeout(()=>{a(null),h({type:"none",direction:"none"})},A);return y.current=n,()=>clearTimeout(D)}},[n,i,u,g]);let v="cube-face",S="cube-face";return m.type==="horizontal"?m.direction==="next"?(v+=" animate-cube-out-prev",S+=" animate-cube-in-next"):m.direction==="prev"&&(v+=" animate-cube-out-next",S+=" animate-cube-in-prev"):m.type==="vertical"?m.direction==="next"?(v+=" animate-cube-out-prev-vertical",S+=" animate-cube-in-next-vertical"):m.direction==="prev"&&(v+=" animate-cube-out-next-vertical",S+=" animate-cube-in-prev-vertical"):m.type==="fade"&&(v+=" animate-fade-out-simple",S+=" animate-fade-in-simple"),E.jsx("div",{className:"flex-1 [perspective:2000px] overflow-hidden",children:E.jsxs("div",{className:"relative w-full h-full [transform-style:preserve-3d]",children:[o&&E.jsx("div",{className:`${v} rounded-2xl overflow-hidden`,children:o},y.current),E.jsx("div",{className:`${S} rounded-2xl overflow-hidden`,children:u},n)]})})},_C=su.lazy(()=>my(()=>import("./MainContent-BcjOMdE7.js").then(i=>i.M),[])),AC=()=>E.jsx("div",{className:"flex-1 flex items-center justify-center",children:E.jsxs("svg",{className:"animate-spin h-8 w-8 text-sky-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[E.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),E.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),xC=()=>{const[i,n]=te.useState(!0),[o,a]=te.useState({menuItemId:"centro-de-datos"}),[u,d]=te.useState("Sociedad"),[m,h]=te.useState(!1),[y,g]=te.useState(!1),v=["Sociedad",...Array.from({length:22},(L,B)=>`T${B+1}`)],S=L=>{a(L),h(!1)},C=L=>{const B=o.menuItemId==="centro-de-datos"&&u==="Sociedad";d(L),L!=="Sociedad"&&B&&S({menuItemId:"centro-de-datos"})},A=()=>{n(!0),S({menuItemId:"centro-de-datos"}),d("Sociedad")},D=()=>{g(L=>!L)};return i?E.jsx(SC,{onEnter:()=>n(!1)}):E.jsxs(E.Fragment,{children:[E.jsx("style",{children:` 293 .cube-face { 294 position: absolute; 295 width: 100%; 296 height: 100%; 297 backface-visibility: hidden; 298 -webkit-backface-visibility: hidden; 299 transform-style: preserve-3d; 300 } 301 302 /* --- Horizontal Cube Animations --- */ 303 @keyframes cube-in-next { 304 from { transform: rotateY(90deg) translateX(50%); opacity: 0; visibility: hidden; } 305 1% { visibility: visible; } 306 to { transform: rotateY(0deg) translateX(0%); opacity: 1; visibility: visible; } 307 } 308 .animate-cube-in-next { 309 animation: cube-in-next 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 310 } 311 312 @keyframes cube-out-prev { 313 from { transform: rotateY(0deg) translateX(0%); opacity: 1; visibility: visible; } 314 to { transform: rotateY(0deg) translateX(0%); opacity: 0; visibility: hidden; } 315 } 316 .animate-cube-out-prev { 317 animation: cube-out-prev 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 318 } 319 320 @keyframes cube-in-prev { 321 from { transform: rotateY(-90deg) translateX(-50%); opacity: 0; visibility: hidden; } 322 1% { visibility: visible; } 323 to { transform: rotateY(0deg) translateX(0%); opacity: 1; visibility: visible; } 324 } 325 .animate-cube-in-prev { 326 animation: cube-in-prev 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 327 } 328 329 @keyframes cube-out-next { 330 from { transform: rotateY(0deg) translateX(0%); opacity: 1; visibility: visible; } 331 to { transform: rotateY(0deg) translateX(0%); opacity: 0; visibility: hidden; } 332 } 333 .animate-cube-out-next { 334 animation: cube-out-next 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 335 } 336 337 /* --- Vertical Cube Animations --- */ 338 @keyframes cube-in-next-vertical { 339 from { transform: rotateX(-90deg) translateY(50%); opacity: 0; visibility: hidden; } 340 1% { visibility: visible; } 341 to { transform: rotateX(0deg) translateY(0%); opacity: 1; visibility: visible; } 342 } 343 .animate-cube-in-next-vertical { 344 animation: cube-in-next-vertical 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 345 } 346 347 @keyframes cube-out-prev-vertical { 348 from { transform: rotateX(0deg) translateY(0%); opacity: 1; visibility: visible; } 349 to { transform: rotateX(0deg) translateY(0%); opacity: 0; visibility: hidden; } 350 } 351 .animate-cube-out-prev-vertical { 352 animation: cube-out-prev-vertical 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 353 } 354 355 @keyframes cube-in-prev-vertical { 356 from { transform: rotateX(90deg) translateY(-50%); opacity: 0; visibility: hidden; } 357 1% { visibility: visible; } 358 to { transform: rotateX(0deg) translateY(0%); opacity: 1; visibility: visible; } 359 } 360 .animate-cube-in-prev-vertical { 361 animation: cube-in-prev-vertical 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 362 } 363 364 @keyframes cube-out-next-vertical { 365 from { transform: rotateX(0deg) translateY(0%); opacity: 1; visibility: visible; } 366 to { transform: rotateX(0deg) translateY(0%); opacity: 0; visibility: hidden; } 367 } 368 .animate-cube-out-next-vertical { 369 animation: cube-out-next-vertical 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards; 370 } 371 372 /* --- Simple Fade Animations --- */ 373 @keyframes fade-in-simple { 374 from { opacity: 0; } 375 to { opacity: 1; } 376 } 377 .animate-fade-in-simple { 378 animation: fade-in-simple 0.5s ease-out forwards; 379 } 380 381 @keyframes fade-out-simple { 382 from { opacity: 1; } 383 to { opacity: 0; } 384 } 385 .animate-fade-out-simple { 386 animation: fade-out-simple 0.5s ease-out forwards; 387 } 388 389 `}),m&&E.jsx("div",{className:"fixed inset-0 bg-black/50 z-30 md:hidden",onClick:()=>h(!1),"aria-hidden":"true"}),E.jsxs("div",{className:"relative min-h-screen md:flex bg-slate-100 text-slate-800 dark:bg-slate-950",children:[E.jsx(zy,{activeItem:o.menuItemId,onItemClick:L=>
389S({menuItemId:L}),onLogoClick:A,isSidebarOpen:m,isSidebarCollapsed:y,onToggleCollapse:D}),E.jsxs("div",{className:"flex flex-col flex-1 p-2 md:p-4 gap-2 overflow-hidden",children:[E.jsx(Vy,{typologies:v,activeTypology:u,onTypologyClick:C,onMenuClick:()=>h(!0)}),E.jsx(te.Suspense,{fallback:E.jsx(AC,{}),children:E.jsx(CC,{activeMenuItemId:o.menuItemId,children:E.jsx(_C,{activeMenuItemId:o.menuItemId,activeSubTabId:o.subTabId,activeTypologyId:u,onTypologySelect:C,onNavigate:S})})})]})]}),E.jsx(gC,{})]})},Dh=document.getElementById("root");if(!Dh)throw new Error("Could not find root element to mount to");const MC=fy.createRoot(Dh);MC.render(E.jsx(su.StrictMode,{children:E.jsx(xC,{})}));export{ZC as $,yC as A,Ol as B,C_ as C,a_ as D,Ry as E,HC as F,mC as G,qC as H,DC as I,GC as J,VC as K,PC as L,Zr as M,FC as N,IC as O,Xr as P,RC as Q,su as R,_y as S,kn as T,nh as U,NC as V,XC as W,n_ as X,gy as Y,QC as Z,my as _,Ey as a,WC as a0,qy as a1,zC as a2,by as a3,BC as a4,c_ as a5,Gy as a6,$C as a7,l_ as a8,i_ as a9,LC as aa,kC as ab,UC as ac,t_ as ad,m_ as ae,h_ as af,g_ as ag,y_ as ah,f_ as ai,v_ as aj,T_ as ak,E_ as al,d_ as am,p_ as an,Sy as b,wC as c,bC as d,s_ as e,r_ as f,eh as g,Ly as h,Uy as i,E as j,o_ as k,u_ as l,OC as m,Dy as n,YC as o,jC as p,e_ as q,te as r,Hy as s,S_ as t,da as u,wy as v,Ny as w,KC as x,fa as y,JC as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.