PageSourceSearch

https://diligenz.ai/assets/index-CRlqQyz7.js

js diligenz.ai collected 2026-10-05 15:32:01 UTC 648,529 bytes, 149 lines download raw bytes

vendor: 5,691 bytes, lines 1-9
1var Lh=e=>{throw TypeError(e)};var Wl=(e,t,n)=>t.has(e)||Lh("Cannot "+n);var T=(e,t,n)=>(Wl(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?Lh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(Wl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$e=(e,t,n)=>(Wl(e,t,"access private method"),n);var No=(e,t,n,r)=>({set _(i){V(e,t,i,n)},get _(){return T(e,t,r)}});function ib(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pm={exports:{}},al={},mm={exports:{}},Z={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var wo=Symbol.for("react.element"),sb=Symbol.for("react.portal"),ob=Symbol.for("react.fragment"),ab=Symbol.for("react.strict_mode"),lb=Symbol.for("react.profiler"),ub=Symbol.for("react.provider"),cb=Symbol.for("react.context"),db=Symbol.for("react.forward_ref"),hb=Symbol.for("react.suspense"),fb=Symbol.for("react.memo"),pb=Symbol.for("react.lazy"),zh=Symbol.iterator;function mb(e){return e===null||typeof e!="object"?null:(e=zh&&e[zh]||e["@@iterator"],typeof e=="function"?e:null)}var gm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vm=Object.assign,ym={};function Zi(e,t,n){this.props=e,this.context=t,this.refs=ym,this.updater=n||gm}Zi.prototype.isReactComponent={};Zi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Zi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function wm(){}wm.prototype=Zi.prototype;function id(e,t,n){this.props=e,this.context=t,this.refs=ym,this.updater=n||gm}var sd=id.prototype=new wm;sd.constructor=id;vm(sd,Zi.prototype);sd.isPureReactComponent=!0;var Mh=Array.isArray,bm=Object.prototype.hasOwnProperty,od={current:null},xm={key:!0,ref:!0,__self:!0,__source:!0};function km(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)bm.call(t,r)&&!xm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:wo,type:e,key:s,ref:o,props:i,_owner:od.current}}function gb(e,t){return{$$typeof:wo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ad(e){return typeof e=="object"&&e!==null&&e.$$typeof===wo}function vb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var $h=/\/+/g;function Kl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vb(""+e.key):t.toString(36)}function aa(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case wo:case sb:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Kl(o,0):r,Mh(i)?(n="",e!=null&&(n=e.replace($h,"$&/")+"/"),aa(i,t,n,"",function(u){return u})):i!=null&&(ad(i)&&(i=gb(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace($h,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mh(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Kl(s,a);o+=aa(s,t,n,l,i)}else if(l=mb(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Kl(s,a++),o+=aa(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function jo(e,t,n){if(e==null)return e;var r=[],i=0;return aa(e,r,"","",function(s){return t.call(n,s,i++)}),r}function yb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Qe={current:null},la={transition:null},wb={ReactCurrentDispatcher:Qe,ReactCurrentBatchConfig:la,ReactCurrentOwner:od};function Sm(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,453 bytes, lines 9-25
9Z.Children={map:jo,forEach:function(e,t,n){jo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return jo(e,function(){t++}),t},toArray:function(e){return jo(e,function(t){return t})||[]},only:function(e){if(!ad(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Zi;Z.Fragment=ob;Z.Profiler=lb;Z.PureComponent=id;Z.StrictMode=ab;Z.Suspense=hb;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wb;Z.act=Sm;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=vm({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=od.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)bm.call(t,l)&&!xm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:wo,type:e.type,key:i,ref:s,props:r,_owner:o}};Z.createContext=function(e){return e={$$typeof:cb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ub,_context:e},e.Consumer=e};Z.createElement=km;Z.createFactory=function(e){var t=km.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:db,render:e}};Z.isValidElement=ad;Z.lazy=function(e){return{$$typeof:pb,_payload:{_status:-1,_result:e},_init:yb}};Z.memo=function(e,t){return{$$typeof:fb,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=la.transition;la.transition={};try{e()}finally{la.transition=t}};Z.unstable_act=Sm;Z.useCallback=function(e,t){return Qe.current.useCallback(e,t)};Z.useContext=function(e){return Qe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Qe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Qe.current.useEffect(e,t)};Z.useId=function(){return Qe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Qe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Qe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Qe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Qe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Qe.current.useReducer(e,t,n)};Z.useRef=function(e){return Qe.current.useRef(e)};Z.useState=function(e){return Qe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Qe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Qe.current.useTransition()};Z.version="18.3.1";mm.exports=Z;var x=mm.exports;const O=Ji(x),bb=ib({__proto__:null,default:O},[x]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var xb=x,kb=Symbol.for("react.element"),Sb=Symbol.for("react.fragment"),Eb=Object.prototype.hasOwnProperty,_b=xb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tb={key:!0,ref:!0,__self:!0,__source:!0};function Em(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Eb.call(t,r)&&!Tb.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:kb,type:e,key:s,ref:o,props:i,_owner:_b.current}}al.Fragment=Sb;al.jsx=Em;al.jsxs=Em;pm.exports=al;var y=pm.exports,_m={exports:{}},mt={},Tm={exports:{}},Am={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(C,P){var L=C.length;C.push(P);e:for(;0<L;){var Q=L-1>>>1,$=C[Q];if(0<i($,P))C[Q]=P,C[L]=$,L=Q;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var P=C[0],L=C.pop();if(L!==P){C[0]=L;e:for(var Q=0,$=C.length,J=$>>>1;Q<J;){var ee=2*(Q+1)-1,Ee=C[ee],Me=ee+1,re=C[Me];if(0>i(Ee,L))Me<$&&0>i(re,Ee)?(C[Q]=re,C[Me]=L,Q=Me):(C[Q]=Ee,C[ee]=L,Q=ee);else if(Me<$&&0>i(re,L))C[Q]=re,C[Me]=L,Q=Me;else break e}}return P}function i(C,P){var L=C.sortIndex-P.sortIndex;return L!==0?L:C.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,b=!1,g=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(C){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=C)r(u),P.sortIndex=P.expirationTime,t(l,P);else break;P=n(u)}}function k(C){if(g=!1,v(C),!b)if(n(l)!==null)b=!0,W(S);else{var P=n(u);P!==null&&G(k,P.startTime-C)}}function S(C,P){b=!1,g&&(g=!1,m(A),A=-1),h=!0;var L=f;try{for(v(P),d=n(l);d!==null&&(!(d.expirationTime>P)||C&&!B());){var Q=d.callback;
vendor: 1,962 bytes, line 25
25if(typeof Q=="function"){d.callback=null,f=d.priorityLevel;var $=Q(d.expirationTime<=P);P=e.unstable_now(),typeof $=="function"?d.callback=$:d===n(l)&&r(l),v(P)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var ee=n(u);ee!==null&&G(k,ee.startTime-P),J=!1}return J}finally{d=null,f=L,h=!1}}var E=!1,_=null,A=-1,I=5,N=-1;function B(){return!(e.unstable_now()-N<I)}function D(){if(_!==null){var C=e.unstable_now();N=C;var P=!0;try{P=_(!0,C)}finally{P?K():(E=!1,_=null)}}else E=!1}var K;if(typeof p=="function")K=function(){p(D)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,X=j.port2;j.port1.onmessage=D,K=function(){X.postMessage(null)}}else K=function(){w(D,0)};function W(C){_=C,E||(E=!0,K())}function G(C,P){A=w(function(){C(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,W(S))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(C){switch(f){case 1:case 2:case 3:var P=3;break;default:P=f}var L=f;f=P;try{return C()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,P){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var L=f;f=C;try{return P()}finally{f=L}},e.unstable_scheduleCallback=function(C,P,L){var Q=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Q+L:Q):L=Q,C){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}
vendor: 4,614 bytes, lines 25-33
25return $=L+$,C={id:c++,callback:P,priorityLevel:C,startTime:L,expirationTime:$,sortIndex:-1},L>Q?(C.sortIndex=L,t(u,C),n(l)===null&&C===n(u)&&(g?(m(A),A=-1):g=!0,G(k,L-Q))):(C.sortIndex=$,t(l,C),b||h||(b=!0,W(S))),C},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(C){var P=f;return function(){var L=f;f=P;try{return C.apply(this,arguments)}finally{f=L}}}})(Am);Tm.exports=Am;var Ab=Tm.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Cb=x,pt=Ab;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Cm=new Set,Us={};function Vr(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for(Us[e]=t,e=0;e<t.length;e++)Cm.add(t[e])}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lu=Object.prototype.hasOwnProperty,Pb=/^[: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]*$/,Uh={},Fh={};function Ib(e){return Lu.call(Fh,e)?!0:Lu.call(Uh,e)?!1:Pb.test(e)?Fh[e]=!0:(Uh[e]=!0,!1)}function Rb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ob(e,t,n,r){if(t===null||typeof t>"u"||Rb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ze[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ze[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ze[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ze[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ze[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ze[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ze[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ze[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ze[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var ld=/[\-:]([a-z])/g;function ud(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ld,ud);ze[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ld,ud);ze[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ld,ud);ze[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ze[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});ze.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ze[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function cd(e,t,n,r){var i=ze.hasOwnProperty(t)?ze[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ob(t,n,i,r)&&(n=null),r||i===null?Ib(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pn=Cb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Do=Symbol.for("react.element"),di=Symbol.for("react.portal"),hi=Symbol.for("react.fragment"),dd=Symbol.for("react.strict_mode"),zu=Symbol.for("react.profiler"),Pm=Symbol.for("react.provider"),Im=Symbol.for("react.context"),hd=Symbol.for("react.forward_ref"),Mu=Symbol.for("react.suspense"),$u=Symbol.for("react.suspense_list"),fd=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),Rm=Symbol.for("react.offscreen"),Bh=Symbol.iterator;function cs(e){return e===null||typeof e!="object"?null:(e=Bh&&e[Bh]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Hl;function Ss(e){if(Hl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hl=t&&t[1]||""}return`
34`+Hl+e}var Vl=!1;function ql(e,t){if(!e||Vl)return"";Vl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),s=r.stack.split(`
36`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Vl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ss(e):""}function Nb(e){switch(e.tag){case 5:return Ss(e.type);case 16:return Ss("Lazy");case 13:return Ss("Suspense");case 19:return Ss("SuspenseList");case 0:case 2:case 15:return e=ql(e.type,!1),e;case 11:return e=ql(e.type.render,!1),e;case 1:return e=ql(e.type,!0),e;default:return""}}function Uu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case di:return"Portal";case zu:return"Profiler";case dd:return"StrictMode";case Mu:return"Suspense";case $u:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Im:return(e.displayName||"Context")+".Consumer";case Pm:return(e._context.displayName||"Context")+".Provider";case hd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fd:return t=e.displayName||null,t!==null?t:Uu(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return Uu(e(t))}catch{}}return null}function jb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Uu(t);case 8:return t===dd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}
vendor: 14,333 bytes, line 37
37function Om(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Db(e){var t=Om(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lo(e){e._valueTracker||(e._valueTracker=Db(e))}function Nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Om(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ta(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jm(e,t){t=t.checked,t!=null&&cd(e,"checked",t,!1)}function Bu(e,t){jm(e,t);var n=lr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wu(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wu(e,t,n){(t!=="number"||Ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Es=Array.isArray;function Ei(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ku(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Es(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:lr(n)}}function Dm(e,t){var n=lr(t.value),r=lr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Vh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Lm(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Hu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Lm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zo,zm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zo=zo||document.createElement("div"),zo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lb=["Webkit","ms","Moz","O"];Object.keys(Cs).forEach(function(e){Lb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cs[t]=Cs[e]})});function Mm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cs.hasOwnProperty(e)&&Cs[e]?(""+t).trim():t+"px"}function $m(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Mm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var zb=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vu(e,t){if(t){if(zb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function qu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gu=null;function pd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qu=null,_i=null,Ti=null;function qh(e){if(e=ko(e)){if(typeof Qu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=hl(t),Qu(e.stateNode,e.type,t))}}function Um(e){_i?Ti?Ti.push(e):Ti=[e]:_i=e}function Fm(){if(_i){var e=_i,t=Ti;if(Ti=_i=null,qh(e),t)for(e=0;e<t.length;e++)qh(t[e])}}function Bm(e,t){return e(t)}function Wm(){}var Gl=!1;function Km(e,t,n){if(Gl)return e(t,n);Gl=!0;try{return Bm(e,t,n)}finally{Gl=!1,(_i!==null||Ti!==null)&&(Wm(),Fm())}}function Bs(e,t){var n=e.stateNode;if(n===null)return null;var r=hl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var Yu=!1;if(kn)try{var ds={};Object.defineProperty(ds,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",ds,ds),window.removeEventListener("test",ds,ds)}catch{Yu=!1}function Mb(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,Aa=null,Ca=!1,Ju=null,$b={onError:function(e){Ps=!0,Aa=e}};function Ub(e,t,n,r,i,s,o,a,l){Ps=!1,Aa=null,Mb.apply($b,arguments)}function Fb(e,t,n,r,i,s,o,a,l){if(Ub.apply(this,arguments),Ps){if(Ps){var u=Aa;Ps=!1,Aa=null}else throw Error(R(198));Ca||(Ca=!0,Ju=u)}}function qr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Hm(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 Gh(e){if(qr(e)!==e)throw Error(R(188))}function Bb(e){var t=e.alternate;if(!t){if(t=qr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Gh(i),e;if(s===r)return Gh(i),t;s=s.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Vm(e){return e=Bb(e),e!==null?qm(e):null}function qm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=qm(e);if(t!==null)return t;e=e.sibling}return null}var Gm=pt.unstable_scheduleCallback,Qh=pt.unstable_cancelCallback,Wb=pt.unstable_shouldYield,Kb=pt.unstable_requestPaint,Se=pt.unstable_now,Hb=pt.unstable_getCurrentPriorityLevel,md=pt.unstable_ImmediatePriority,Qm=pt.unstable_UserBlockingPriority,Pa=pt.unstable_NormalPriority,Vb=pt.unstable_LowPriority,Ym=pt.unstable_IdlePriority,ll=null,sn=null;function qb(e){if(sn&&typeof sn.onCommitFiberRoot=="function")try{sn.onCommitFiberRoot(ll,e,void 0,(e.current.flags&128)===128)}catch{}}var Wt=Math.clz32?Math.clz32:Yb,Gb=Math.log,Qb=Math.LN2;function Yb(e){return e>>>=0,e===0?32:31-(Gb(e)/Qb|0)|0}var Mo=64,$o=4194304;function _s(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ia(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=_s(a):(s&=o,s!==0&&(r=_s(s)))}else o=n&~i,o!==0?r=_s(o):s!==0&&(r=_s(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Wt(t),i=1<<n,r|=e[n],t&=~i;return r}function Jb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Zb(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Wt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Jb(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Jm(){var e=Mo;return Mo<<=1,!(Mo&4194240)&&(Mo=64),e}function Ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function Xb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Wt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function gd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ie=0;function Zm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Xm,vd,eg,tg,ng,Xu=!1,Uo=[],er=null,tr=null,nr=null,Ws=new Map,Ks=new Map,Kn=[],e0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yh(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ks.delete(t.pointerId)}}function hs(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ko(t),t!==null&&vd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function t0(e,t,n,r,i){switch(t){case"focusin":return er=hs(er,e,t,n,r,i),!0;case"dragenter":return tr=hs(tr,e,t,n,r,i),!0;case"mouseover":return nr=hs(nr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Ws.set(s,hs(Ws.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Ks.set(s,hs(Ks.get(s)||null,e,t,n,r,i)),!0}return!1}function rg(e){var t=Ar(e.target);if(t!==null){var n=qr(t);if(n!==null){if(t=n.tag,t===13){if(t=Hm(n),t!==null){e.blockedOn=t,ng(e.priority,function(){eg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ua(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ec(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Gu=r,n.target.dispatchEvent(r),Gu=null}else return t=ko(n),t!==null&&vd(t),e.blockedOn=n,!1;t.shift()}return!0}function Jh(e,t,n){ua(e)&&n.delete(t)}function n0(){Xu=!1,er!==null&&ua(er)&&(er=null),tr!==null&&ua(tr)&&(tr=null),nr!==null&&ua(nr)&&(nr=null),Ws.forEac
vendor: 11,841 bytes, line 37
37h(Jh),Ks.forEach(Jh)}function fs(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,n0)))}function Hs(e){function t(i){return fs(i,e)}if(0<Uo.length){fs(Uo[0],e);for(var n=1;n<Uo.length;n++){var r=Uo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&fs(er,e),tr!==null&&fs(tr,e),nr!==null&&fs(nr,e),Ws.forEach(t),Ks.forEach(t),n=0;n<Kn.length;n++)r=Kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)rg(n),n.blockedOn===null&&Kn.shift()}var Ai=Pn.ReactCurrentBatchConfig,Ra=!0;function r0(e,t,n,r){var i=ie,s=Ai.transition;Ai.transition=null;try{ie=1,yd(e,t,n,r)}finally{ie=i,Ai.transition=s}}function i0(e,t,n,r){var i=ie,s=Ai.transition;Ai.transition=null;try{ie=4,yd(e,t,n,r)}finally{ie=i,Ai.transition=s}}function yd(e,t,n,r){if(Ra){var i=ec(e,t,n,r);if(i===null)su(e,t,r,Oa,n),Yh(e,r);else if(t0(i,e,t,n,r))r.stopPropagation();else if(Yh(e,r),t&4&&-1<e0.indexOf(e)){for(;i!==null;){var s=ko(i);if(s!==null&&Xm(s),s=ec(e,t,n,r),s===null&&su(e,t,r,Oa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else su(e,t,r,null,n)}}var Oa=null;function ec(e,t,n,r){if(Oa=null,e=pd(r),e=Ar(e),e!==null)if(t=qr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Oa=e,null}function ig(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Hb()){case md:return 1;case Qm:return 4;case Pa:case Vb:return 16;case Ym:return 536870912;default:return 16}default:return 16}}var Zn=null,wd=null,ca=null;function sg(){if(ca)return ca;var e,t=wd,n=t.length,r,i="value"in Zn?Zn.value:Zn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return ca=i.slice(e,1<r?1-r:void 0)}function da(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 Fo(){return!0}function Zh(){return!1}function gt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Fo:Zh,this.isPropagationStopped=Zh,this}return we(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),t}var Xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bd=gt(Xi),xo=we({},Xi,{view:0,detail:0}),s0=gt(xo),Yl,Jl,ps,ul=we({},xo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xd,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!==ps&&(ps&&e.type==="mousemove"?(Yl=e.screenX-ps.screenX,Jl=e.screenY-ps.screenY):Jl=Yl=0,ps=e),Yl)},movementY:function(e){return"movementY"in e?e.movementY:Jl}}),Xh=gt(ul),o0=we({},ul,{dataTransfer:0}),a0=gt(o0),l0=we({},xo,{relatedTarget:0}),Zl=gt(l0),u0=we({},Xi,{animationName:0,elapsedTime:0,pseudoElement:0}),c0=gt(u0),d0=we({},Xi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h0=gt(d0),f0=we({},Xi,{data:0}),ef=gt(f0),p0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m0={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"},g0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g0[e])?!!t[e]:!1}function xd(){return v0}var y0=we({},xo,{key:function(e){if(e.key){var t=p0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=da(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?m0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xd,charCode:function(e){return e.type==="keypress"?da(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?da(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),w0=gt(y0),b0=we({},ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tf=gt(b0),x0=we({},xo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xd}),k0=gt(x0),S0=we({},Xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),E0=gt(S0),_0=we({},ul,{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}),T0=gt(_0),A0=[9,13,27,32],kd=kn&&"CompositionEvent"in window,Is=null;kn&&"documentMode"in document&&(Is=document.documentMode);var C0=kn&&"TextEvent"in window&&!Is,og=kn&&(!kd||Is&&8<Is&&11>=Is),nf=" ",rf=!1;function ag(e,t){switch(e){case"keyup":return A0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fi=!1;function P0(e,t){switch(e){case"compositionend":return lg(t);case"keypress":return t.which!==32?null:(rf=!0,nf);case"textInput":return e=t.data,e===nf&&rf?null:e;default:return null}}function I0(e,t){if(fi)return e==="compositionend"||!kd&&ag(e,t)?(e=sg(),ca=wd=Zn=null,fi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return og&&t.locale!=="ko"?null:t.data;default:return null}}var R0={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!R0[e.type]:t==="textarea"}function ug(e,t,n,r){Um(r),t=Na(t,"onChange"),0<t.length&&(n=new bd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rs=null,Vs=null;function O0(e){bg(e,0)}function cl(e){var t=gi(e);if(Nm(t))return e}function N0(e,t){if(e==="change")return t}var cg=!1;if(kn){var Xl;if(kn){var eu="oninput"in document;if(!eu){var of=document.createElement("div");of.setAttribute("oninput","return;"),eu=typeof of.oninput=="function"}Xl=eu}else Xl=!1;cg=Xl&&(!document.documentMode||9<document.documentMode)}function af(){Rs&&(Rs.detachEvent("onpropertychange",dg),Vs=Rs=null)}function dg(e){if(e.propertyName==="value"&&cl(Vs)){var t=[];ug(t,Vs,e,pd(e)),Km(O0,t)}}function j0(e,t,n){e==="focusin"?(af(),Rs=t,Vs=n,Rs.attachEvent("onpropertychange",dg)):e==="focusout"&&af()}function D0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cl(Vs)}function L0(e,t){if(e==="click")return cl(t)}function z0(e,t){if(e==="input"||e==="change")return cl(t)}function M0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:M0;function qs(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Lu.call(t,i)||!Ht(e[i],t[i]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var n=lf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lf(n)}}function hg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fg(){for(var e=window,t=Ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ta(e.document)}return t}function Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $0(e){var t=fg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hg(n.ownerDocument.documentElement,n)){if(r!==null&&Sd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=uf(n,s);var o=uf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var U0=kn&&"documentMode"in document&&11>=document.documentMode,pi=null,tc=null,Os=null,nc=!1;function cf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nc||pi==null||pi!==Ta(r)||(r=pi,"selectionStart"in r&&Sd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Os&&qs(Os,r)||(Os=r,r=Na(tc,"onSelect"),0<r.length&&(t=new bd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pi)))}function Bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mi={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionend:Bo("Transition","TransitionEnd")},tu={},pg={};kn&&(pg=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 dl(e){if(tu[e])return tu[e];if(!mi[e])return e;var t=mi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in pg)return tu[e]=t[n];return e}var mg=dl("animationend"),gg=dl("animationiteration"),vg=dl("animationstart"),yg=dl("transitionend"),wg=new Map,df="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function pr(e,t){wg.set(e,t),Vr(t,[e])}for(var nu=0;nu<df.length;nu++){var ru=df[nu],F0=ru.toLowerCase(),B0=ru[0].toUpperCase()+ru.slice(1);pr(F0,"on"+B0)}pr(mg,"onAnimationEnd");pr(gg,"onAnimationIteration");pr(vg,"onAnimationStart");pr("dblclick","onDoubleClick");pr("focusin","onFocus");pr("focusout","onBlur");pr(yg,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);Vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ts="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(" "),W0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ts));function hf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Fb(r,t,void 0,e),e.currentTarget=null}function bg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;hf(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;hf(i,a,u),s=l}}}if(Ca)throw e=Ju,Ca=!1,Ju=null,e}function ue(e,t){var n=t[ac];n===void 0&&(n=t[ac]=new Set);var r=e+"__bubble";n.has(r)||(xg(t,e,2,!1),n.add(r))}function iu(e,t,n){var r=0;t&&(r|=4),xg(n,e,r,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function Gs(e){if(!e[Wo]){e[Wo]=!0,Cm.forEach(function(n){n!=="selectionchange"&&(W0.has(n)||iu(n,!1,e),iu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wo]||(t[Wo]=!0,iu("selectionchange",!1,t))}}function xg(e,t,n,r){switch(ig(t)){case 1:var i=r0;break;case 4:i=i0;break;default:i=yd}n=i.bind(null,t,n,e),i=void 0,!Yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function su(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;
vendor: 2,527 bytes, line 37
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Ar(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Km(function(){var u=s,c=pd(n),d=[];e:{var f=wg.get(e);if(f!==void 0){var h=bd,b=e;switch(e){case"keypress":if(da(n)===0)break e;case"keydown":case"keyup":h=w0;break;case"focusin":b="focus",h=Zl;break;case"focusout":b="blur",h=Zl;break;case"beforeblur":case"afterblur":h=Zl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=a0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=k0;break;case mg:case gg:case vg:h=c0;break;case yg:h=E0;break;case"scroll":h=s0;break;case"wheel":h=T0;break;case"copy":case"cut":case"paste":h=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=tf}var g=(t&4)!==0,w=!g&&e==="scroll",m=g?f!==null?f+"Capture":null:f;g=[];for(var p=u,v;p!==null;){v=p;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,m!==null&&(k=Bs(p,m),k!=null&&g.push(Qs(p,k,v)))),w)break;p=p.return}0<g.length&&(f=new h(f,b,null,n,c),d.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==Gu&&(b=n.relatedTarget||n.fromElement)&&(Ar(b)||b[Sn]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(b=n.relatedTarget||n.toElement,h=u,b=b?Ar(b):null,b!==null&&(w=qr(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(h=null,b=u),h!==b)){if(g=Xh,k="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(g=tf,k="onPointerLeave",m="onPointerEnter",p="pointer"),w=h==null?f:gi(h),v=b==null?f:gi(b),f=new g(k,p+"leave",h,n,c),f.target=w,f.relatedTarget=v,k=null,Ar(c)===u&&(g=new g(m,p+"enter",b,n,c),g.target=v,g.relatedTarget=w,k=g),w=k,h&&b)t:{for(g=h,m=b,p=0,v=g;v;v=ei(v))p++;for(v=0,k=m;k;k=ei(k))v++;for(;0<p-v;)g=ei(g),p--;for(;0<v-p;)m=ei(m),v--;for(;p--;){if(g===m||m!==null&&g===m.alternate)break t;g=ei(g),m=ei(m)}g=null}else g=null;h!==null&&ff(d,f,h,g,!1),b!==null&&w!==null&&ff(d,w,b,g,!0)}}
vendor: 6,372 bytes, lines 37-38
37e:{if(f=u?gi(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=N0;else if(sf(f))if(cg)S=z0;else{S=D0;var E=j0}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=L0);if(S&&(S=S(e,u))){ug(d,S,n,c);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Wu(f,"number",f.value)}switch(E=u?gi(u):window,e){case"focusin":(sf(E)||E.contentEditable==="true")&&(pi=E,tc=u,Os=null);break;case"focusout":Os=tc=pi=null;break;case"mousedown":nc=!0;break;case"contextmenu":case"mouseup":case"dragend":nc=!1,cf(d,n,c);break;case"selectionchange":if(U0)break;case"keydown":case"keyup":cf(d,n,c)}var _;if(kd)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else fi?ag(e,n)&&(A="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(A="onCompositionStart");A&&(og&&n.locale!=="ko"&&(fi||A!=="onCompositionStart"?A==="onCompositionEnd"&&fi&&(_=sg()):(Zn=c,wd="value"in Zn?Zn.value:Zn.textContent,fi=!0)),E=Na(u,A),0<E.length&&(A=new ef(A,e,null,n,c),d.push({event:A,listeners:E}),_?A.data=_:(_=lg(n),_!==null&&(A.data=_)))),(_=C0?P0(e,n):I0(e,n))&&(u=Na(u,"onBeforeInput"),0<u.length&&(c=new ef("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=_))}bg(d,t)})}function Qs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Na(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Bs(e,n),s!=null&&r.unshift(Qs(e,s,i)),s=Bs(e,t),s!=null&&r.push(Qs(e,s,i))),e=e.return}return r}function ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ff(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Bs(n,s),l!=null&&o.unshift(Qs(n,l,a))):i||(l=Bs(n,s),l!=null&&o.push(Qs(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var K0=/\r\n?/g,H0=/\u0000|\uFFFD/g;function pf(e){return(typeof e=="string"?e:""+e).replace(K0,`
38`).replace(H0,"")}function Ko(e,t,n){if(t=pf(t),pf(e)!==t&&n)throw Error(R(425))}function ja(){}var rc=null,ic=null;function sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var oc=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,mf=typeof Promise=="function"?Promise:void 0,q0=typeof queueMicrotask=="function"?queueMicrotask:typeof mf<"u"?function(e){return mf.resolve(null).then(e).catch(G0)}:oc;function G0(e){setTimeout(function(){throw e})}function ou(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Hs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Hs(t)}function rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var es=Math.random().toString(36).slice(2),nn="__reactFiber$"+es,Ys="__reactProps$"+es,Sn="__reactContainer$"+es,ac="__reactEvents$"+es,Q0="__reactListeners$"+es,Y0="__reactHandles$"+es;function Ar(e){var t=e[nn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[nn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gf(e);e!==null;){if(n=e[nn])return n;e=gf(e)}return t}e=n,n=e.parentNode}return null}function ko(e){return e=e[nn]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function hl(e){return e[Ys]||null}var lc=[],vi=-1;function mr(e){return{current:e}}function ce(e){0>vi||(e.current=lc[vi],lc[vi]=null,vi--)}function ae(e,t){vi++,lc[vi]=e.current,e.current=t}var ur={},Ke=mr(ur),nt=mr(!1),Ur=ur;function Wi(e,t){var n=e.type.contextTypes;if(!n)return ur;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function rt(e){return e=e.childContextTypes,e!=null}function Da(){ce(nt),ce(Ke)}function vf(e,t,n){if(Ke.current!==ur)throw Error(R(168));ae(Ke,t),ae(nt,n)}function kg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,jb(e)||"Unknown",i));return we({},n,r)}function La(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,Ur=Ke.current,ae(Ke,e),ae(nt,nt.current),!0}function yf(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=kg(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ce(nt),ce(Ke),ae(Ke,e)):ce(nt),ae(nt,n)}var gn=null,fl=!1,au=!1;function Sg(e){gn===null?gn=[e]:gn.push(e)}function J0(e){fl=!0,Sg(e)}function gr(){if(!au&&gn!==null){au=!0;var e=0,t=ie;try{var n=gn;for(ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gn=null,fl=!1}catch(i){throw gn!==null&&(gn=gn.slice(e+1)),Gm(md,gr),i}finally{ie=t,au=!1}}return null}var yi=[],wi=0,za=null,Ma=0,bt=[],xt=0,Fr=null,yn=1,wn="";function kr(e,t){yi[wi++]=Ma,yi[wi++]=za,za=e,Ma=t}function Eg(e,t,n){bt[xt++]=yn,bt[xt++]=wn,bt[xt++]=Fr,Fr=e;var r=yn;e=wn;var i=32-Wt(r)-1;r&=~(1<<i),n+=1;var s=32-Wt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yn=1<<32-Wt(t)+i|n<<i|r,wn=s+e}else yn=1<<s|n<<i|r,wn=e}function Ed(e){e.return!==null&&(kr(e,1),Eg(e,1,0))}function _d(e){for(;e===za;)za=yi[--wi],yi[wi]=null,Ma=yi[--wi],yi[wi]=null;for(;e===Fr;)Fr=bt[--xt],bt[xt]=null,wn=bt[--xt],bt[xt]=null,yn=bt[--xt],bt[xt]=null}var ht=null,dt=null,pe=!1,Ft=null;function _g(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function wf(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 12,303 bytes, line 38
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,dt=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fr!==null?{id:yn,overflow:wn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,dt=null,!0):!1;default:return!1}}function uc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cc(e){if(pe){var t=dt;if(t){var n=t;if(!wf(e,t)){if(uc(e))throw Error(R(418));t=rr(n.nextSibling);var r=ht;t&&wf(e,t)?_g(r,n):(e.flags=e.flags&-4097|2,pe=!1,ht=e)}}else{if(uc(e))throw Error(R(418));e.flags=e.flags&-4097|2,pe=!1,ht=e}}}function bf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function Ho(e){if(e!==ht)return!1;if(!pe)return bf(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!sc(e.type,e.memoizedProps)),t&&(t=dt)){if(uc(e))throw Tg(),Error(R(418));for(;t;)_g(e,t),t=rr(t.nextSibling)}if(bf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){dt=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}dt=null}}else dt=ht?rr(e.stateNode.nextSibling):null;return!0}function Tg(){for(var e=dt;e;)e=rr(e.nextSibling)}function Ki(){dt=ht=null,pe=!1}function Td(e){Ft===null?Ft=[e]:Ft.push(e)}var Z0=Pn.ReactCurrentBatchConfig;function ms(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function Vo(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xf(e){var t=e._init;return t(e._payload)}function Ag(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=ar(m,p),m.index=0,m.sibling=null,m}function s(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,v,k){return p===null||p.tag!==6?(p=pu(v,m.mode,k),p.return=m,p):(p=i(p,v),p.return=m,p)}function l(m,p,v,k){var S=v.type;return S===hi?c(m,p,v.props.children,k,v.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Fn&&xf(S)===p.type)?(k=i(p,v.props),k.ref=ms(m,p,v),k.return=m,k):(k=ya(v.type,v.key,v.props,null,m.mode,k),k.ref=ms(m,p,v),k.return=m,k)}function u(m,p,v,k){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=mu(v,m.mode,k),p.return=m,p):(p=i(p,v.children||[]),p.return=m,p)}function c(m,p,v,k,S){return p===null||p.tag!==7?(p=Mr(v,m.mode,k,S),p.return=m,p):(p=i(p,v),p.return=m,p)}function d(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=pu(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Do:return v=ya(p.type,p.key,p.props,null,m.mode,v),v.ref=ms(m,null,p),v.return=m,v;case di:return p=mu(p,m.mode,v),p.return=m,p;case Fn:var k=p._init;return d(m,k(p._payload),v)}if(Es(p)||cs(p))return p=Mr(p,m.mode,v,null),p.return=m,p;Vo(m,p)}return null}function f(m,p,v,k){var S=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(m,p,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Do:return v.key===S?l(m,p,v,k):null;case di:return v.key===S?u(m,p,v,k):null;case Fn:return S=v._init,f(m,p,S(v._payload),k)}if(Es(v)||cs(v))return S!==null?null:c(m,p,v,k,null);Vo(m,v)}return null}function h(m,p,v,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(v)||null,a(p,m,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Do:return m=m.get(k.key===null?v:k.key)||null,l(p,m,k,S);case di:return m=m.get(k.key===null?v:k.key)||null,u(p,m,k,S);case Fn:var E=k._init;return h(m,p,v,E(k._payload),S)}if(Es(k)||cs(k))return m=m.get(v)||null,c(p,m,k,S,null);Vo(p,k)}return null}function b(m,p,v,k){for(var S=null,E=null,_=p,A=p=0,I=null;_!==null&&A<v.length;A++){_.index>A?(I=_,_=null):I=_.sibling;var N=f(m,_,v[A],k);if(N===null){_===null&&(_=I);break}e&&_&&N.alternate===null&&t(m,_),p=s(N,p,A),E===null?S=N:E.sibling=N,E=N,_=I}if(A===v.length)return n(m,_),pe&&kr(m,A),S;if(_===null){for(;A<v.length;A++)_=d(m,v[A],k),_!==null&&(p=s(_,p,A),E===null?S=_:E.sibling=_,E=_);return pe&&kr(m,A),S}for(_=r(m,_);A<v.length;A++)I=h(_,m,A,v[A],k),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?A:I.key),p=s(I,p,A),E===null?S=I:E.sibling=I,E=I);return e&&_.forEach(function(B){return t(m,B)}),pe&&kr(m,A),S}function g(m,p,v,k){var S=cs(v);if(typeof S!="function")throw Error(R(150));if(v=S.call(v),v==null)throw Error(R(151));for(var E=S=null,_=p,A=p=0,I=null,N=v.next();_!==null&&!N.done;A++,N=v.next()){_.index>A?(I=_,_=null):I=_.sibling;var B=f(m,_,N.value,k);if(B===null){_===null&&(_=I);break}e&&_&&B.alternate===null&&t(m,_),p=s(B,p,A),E===null?S=B:E.sibling=B,E=B,_=I}if(N.done)return n(m,_),pe&&kr(m,A),S;if(_===null){for(;!N.done;A++,N=v.next())N=d(m,N.value,k),N!==null&&(p=s(N,p,A),E===null?S=N:E.sibling=N,E=N);return pe&&kr(m,A),S}for(_=r(m,_);!N.done;A++,N=v.next())N=h(_,m,A,N.value,k),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?A:N.key),p=s(N,p,A),E===null?S=N:E.sibling=N,E=N);return e&&_.forEach(function(D){return t(m,D)}),pe&&kr(m,A),S}function w(m,p,v,k){if(typeof v=="object"&&v!==null&&v.type===hi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Do:e:{for(var S=v.key,E=p;E!==null;){if(E.key===S){if(S=v.type,S===hi){if(E.tag===7){n(m,E.sibling),p=i(E,v.props.children),p.return=m,m=p;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Fn&&xf(S)===E.type){n(m,E.sibling),p=i(E,v.props),p.ref=ms(m,E,v),p.return=m,m=p;break e}n(m,E);break}else t(m,E);E=E.sibling}v.type===hi?(p=Mr(v.props.children,m.mode,k,v.key),p.return=m,m=p):(k=ya(v.type,v.key,v.props,null,m.mode,k),k.ref=ms(m,p,v),k.return=m,m=k)}return o(m);case di:e:{for(E=v.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=i(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=mu(v,m.mode,k),p.return=m,m=p}return o(m);case Fn:return E=v._init,w(m,p,E(v._payload),k)}if(Es(v))return b(m,p,v,k);if(cs(v))return g(m,p,v,k);Vo(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,v),p.return=m,m=p):(n(m,p),p=pu(v,m.mode,k),p.return=m,m=p),o(m)):n(m,p)}return w}var Hi=Ag(!0),Cg=Ag(!1),$a=mr(null),Ua=null,bi=null,Ad=null;function Cd(){Ad=bi=Ua=null}function Pd(e){var t=$a.current;ce($a),e._currentValue=t}function dc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ci(e,t){Ua=e,Ad=bi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Ad!==e)if(e={context:e,memoizedValue:t,next:null},bi===null){if(Ua===null)throw Error(R(308));bi=e,Ua.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Cr=null;function Id(e){Cr===null?Cr=[e]:Cr.push(e)}function Pg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Id(t)):(n.next=i.next,i.next=n),t.interleaved=n,En(e,r)}function En(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bn=!1;function Rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ig(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,En(e,n)}return i=r.interleaved,i===null?(t.next=t,Id(r)):(t.next=i.next,i.next=t),r.interleaved=t,En(e,n)}function ha(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gd(e,n)}}function kf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var i=e.updateQueue;Bn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,g=a;switch(f=t,h=n,g.tag){case 1:if(b=g.payload,typeof b=="function"){d=b.call(h,d,f);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=g.payload,f=typeof b=="function"?b.call(h,d,f):b,f==null)break e;d=we({},d,f);break e;case 2:Bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Wr|=o,e.lanes=o,e.memoizedState=d}}function Sf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var So={},on=mr(So),Js=mr(So),Zs=mr(So);function Pr(e){if(e===So)throw Error(R(174));return e}function Od(e,t){switch(ae(Zs,t),ae(Js,e),ae(on,So),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hu(t,e)}ce(on),ae(on,t)}function Vi(){ce(on),ce(Js),ce(Zs)}function Rg(e){Pr(Zs.current);var t=Pr(on.current),n=Hu(t,e.type);t!==n&&(ae(Js,e),ae(on,n))}function Nd(e){Js.current===e&&(ce(on),ce(Js))}var ve=mr(0);function Ba(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 lu=[];
vendor: 7,103 bytes, line 38
38function jd(){for(var e=0;e<lu.length;e++)lu[e]._workInProgressVersionPrimary=null;lu.length=0}var fa=Pn.ReactCurrentDispatcher,uu=Pn.ReactCurrentBatchConfig,Br=0,ye=null,Ce=null,Re=null,Wa=!1,Ns=!1,Xs=0,X0=0;function Ue(){throw Error(R(321))}function Dd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Ld(e,t,n,r,i,s){if(Br=s,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=e===null||e.memoizedState===null?rx:ix,e=n(r,i),Ns){s=0;do{if(Ns=!1,Xs=0,25<=s)throw Error(R(301));s+=1,Re=Ce=null,t.updateQueue=null,fa.current=sx,e=n(r,i)}while(Ns)}if(fa.current=Ka,t=Ce!==null&&Ce.next!==null,Br=0,Re=Ce=ye=null,Wa=!1,t)throw Error(R(300));return e}function zd(){var e=Xs!==0;return Xs=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?ye.memoizedState=Re=e:Re=Re.next=e,Re}function _t(){if(Ce===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Re===null?ye.memoizedState:Re.next;if(t!==null)Re=t,Ce=e;else{if(e===null)throw Error(R(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Re===null?ye.memoizedState=Re=e:Re=Re.next=e}return Re}function eo(e,t){return typeof t=="function"?t(e):t}function cu(e){var t=_t(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=Ce,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((Br&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,ye.lanes|=c,Wr|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,Ht(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,ye.lanes|=s,Wr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function du(e){var t=_t(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ht(s,t.memoizedState)||(tt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Og(){}function Ng(e,t){var n=ye,r=_t(),i=t(),s=!Ht(r.memoizedState,i);if(s&&(r.memoizedState=i,tt=!0),r=r.queue,Md(Lg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,to(9,Dg.bind(null,n,r,i,t),void 0,null),Oe===null)throw Error(R(349));Br&30||jg(n,t,i)}return i}function jg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dg(e,t,n,r){t.value=n,t.getSnapshot=r,zg(t)&&Mg(e)}function Lg(e,t,n){return n(function(){zg(t)&&Mg(e)})}function zg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Mg(e){var t=En(e,1);t!==null&&Kt(t,e,1,-1)}function Ef(e){var t=Zt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},t.queue=e,e=e.dispatch=nx.bind(null,ye,e),[t.memoizedState,e]}function to(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function $g(){return _t().memoizedState}function pa(e,t,n,r){var i=Zt();ye.flags|=e,i.memoizedState=to(1|t,n,void 0,r===void 0?null:r)}function pl(e,t,n,r){var i=_t();r=r===void 0?null:r;var s=void 0;if(Ce!==null){var o=Ce.memoizedState;if(s=o.destroy,r!==null&&Dd(r,o.deps)){i.memoizedState=to(t,n,s,r);return}}ye.flags|=e,i.memoizedState=to(1|t,n,s,r)}function _f(e,t){return pa(8390656,8,e,t)}function Md(e,t){return pl(2048,8,e,t)}function Ug(e,t){return pl(4,2,e,t)}function Fg(e,t){return pl(4,4,e,t)}function Bg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Wg(e,t,n){return n=n!=null?n.concat([e]):null,pl(4,4,Bg.bind(null,t,e),n)}function $d(){}function Kg(e,t){var n=_t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Dd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Hg(e,t){var n=_t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Dd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vg(e,t,n){return Br&21?(Ht(n,t)||(n=Jm(),ye.lanes|=n,Wr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tt=!0),e.memoizedState=n)}function ex(e,t){var n=ie;ie=n!==0&&4>n?n:4,e(!0);var r=uu.transition;uu.transition={};try{e(!1),t()}finally{ie=n,uu.transition=r}}function qg(){return _t().memoizedState}function tx(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Gg(e))Qg(t,n);else if(n=Pg(e,t,n,r),n!==null){var i=Ge();Kt(n,e,r,i),Yg(n,t,r)}}function nx(e,t,n){var r=or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gg(e))Qg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ht(a,o)){var l=t.interleaved;l===null?(i.next=i,Id(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Pg(e,t,i,r),n!==null&&(i=Ge(),Kt(n,e,r,i),Yg(n,t,r))}}function Gg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Qg(e,t){Ns=Wa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gd(e,n)}}var Ka={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},rx={readContext:Et,useCallback:function(e,t){return Zt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:_f,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pa(4194308,4,Bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pa(4194308,4,e,t)},useInsertionEffect:function(e,t){return pa(4,2,e,t)},useMemo:function(e,t){var n=Zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tx.bind(null,ye,e),[r.memoizedState,e]}
vendor: 6,078 bytes, lines 38-40
38,useRef:function(e){var t=Zt();return e={current:e},t.memoizedState=e},useState:Ef,useDebugValue:$d,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ef(!1),t=e[0];return e=ex.bind(null,e[1]),Zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,i=Zt();if(pe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Oe===null)throw Error(R(349));Br&30||jg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,_f(Lg.bind(null,r,s,e),[e]),r.flags|=2048,to(9,Dg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Zt(),t=Oe.identifierPrefix;if(pe){var n=wn,r=yn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=X0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ix={readContext:Et,useCallback:Kg,useContext:Et,useEffect:Md,useImperativeHandle:Wg,useInsertionEffect:Ug,useLayoutEffect:Fg,useMemo:Hg,useReducer:cu,useRef:$g,useState:function(){return cu(eo)},useDebugValue:$d,useDeferredValue:function(e){var t=_t();return Vg(t,Ce.memoizedState,e)},useTransition:function(){var e=cu(eo)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Og,useSyncExternalStore:Ng,useId:qg,unstable_isNewReconciler:!1},sx={readContext:Et,useCallback:Kg,useContext:Et,useEffect:Md,useImperativeHandle:Wg,useInsertionEffect:Ug,useLayoutEffect:Fg,useMemo:Hg,useReducer:du,useRef:$g,useState:function(){return du(eo)},useDebugValue:$d,useDeferredValue:function(e){var t=_t();return Ce===null?t.memoizedState=e:Vg(t,Ce.memoizedState,e)},useTransition:function(){var e=du(eo)[0],t=_t().memoizedState;return[e,t]},useMutableSource:Og,useSyncExternalStore:Ng,useId:qg,unstable_isNewReconciler:!1};function jt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ml={isMounted:function(e){return(e=e._reactInternals)?qr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=or(e),s=bn(r,i);s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Kt(t,e,i,r),ha(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=or(e),s=bn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Kt(t,e,i,r),ha(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=or(e),i=bn(n,r);i.tag=2,t!=null&&(i.callback=t),t=ir(e,i,r),t!==null&&(Kt(t,e,r,n),ha(t,e,r))}};function Tf(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!qs(n,r)||!qs(i,s):!0}function Jg(e,t,n){var r=!1,i=ur,s=t.contextType;return typeof s=="object"&&s!==null?s=Et(s):(i=rt(t)?Ur:Ke.current,r=t.contextTypes,s=(r=r!=null)?Wi(e,i):ur),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Af(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ml.enqueueReplaceState(t,t.state,null)}function fc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Rd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Et(s):(s=rt(t)?Ur:Ke.current,i.context=Wi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(hc(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ml.enqueueReplaceState(i,i.state,null),Fa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qi(e,t){try{var n="",r=t;do n+=Nb(r),r=r.return;while(r);var i=n}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:e,source:t,stack:i,digest:null}}function hu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ox=typeof WeakMap=="function"?WeakMap:Map;function Zg(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Va||(Va=!0,Ec=r),pc(e,t)},n}function Xg(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){pc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){pc(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Cf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ox;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=bx.bind(null,e,t,n),t.then(e,e))}function Pf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function If(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,ir(n,t,1))),n.lanes|=1),e)}var ax=Pn.ReactCurrentOwner,tt=!1;function Ve(e,t,n,r){t.child=e===null?Cg(t,null,n,r):Hi(t,e.child,n,r)}function Rf(e,t,n,r,i){n=n.render;var s=t.ref;return Ci(t,i),r=Ld(e,t,n,r,s,i),n=zd(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_n(e,t,i)):(pe&&n&&Ed(t),t.flags|=1,Ve(e,t,r,i
vendor: 9,374 bytes, line 40
40),t.child)}function Of(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!qd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,ev(e,t,s,r,i)):(e=ya(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:qs,n(o,r)&&e.ref===t.ref)return _n(e,t,i)}return t.flags|=1,e=ar(s,r),e.ref=t.ref,e.return=t,t.child=e}function ev(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(qs(s,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,_n(e,t,i)}return mc(e,t,n,r,i)}function tv(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(ki,at),at|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(ki,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ae(ki,at),at|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ae(ki,at),at|=r;return Ve(e,t,i,n),t.child}function nv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mc(e,t,n,r,i){var s=rt(n)?Ur:Ke.current;return s=Wi(t,s),Ci(t,i),n=Ld(e,t,n,r,s,i),r=zd(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_n(e,t,i)):(pe&&r&&Ed(t),t.flags|=1,Ve(e,t,n,i),t.child)}function Nf(e,t,n,r,i){if(rt(n)){var s=!0;La(t)}else s=!1;if(Ci(t,i),t.stateNode===null)ma(e,t),Jg(t,n,r),fc(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Et(u):(u=rt(n)?Ur:Ke.current,u=Wi(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Af(t,o,r,u),Bn=!1;var f=t.memoizedState;o.state=f,Fa(t,r,o,i),l=t.memoizedState,a!==r||f!==l||nt.current||Bn?(typeof c=="function"&&(hc(t,n,c,r),l=t.memoizedState),(a=Bn||Tf(t,n,a,r,f,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ig(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:jt(t.type,a),o.props=u,d=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Et(l):(l=rt(n)?Ur:Ke.current,l=Wi(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Af(t,o,r,l),Bn=!1,f=t.memoizedState,o.state=f,Fa(t,r,o,i);var b=t.memoizedState;a!==d||f!==b||nt.current||Bn?(typeof h=="function"&&(hc(t,n,h,r),b=t.memoizedState),(u=Bn||Tf(t,n,u,r,f,b,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,b,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,b,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),o.props=r,o.state=b,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return gc(e,t,n,r,s,i)}function gc(e,t,n,r,i,s){nv(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&yf(t,n,!1),_n(e,t,s);r=t.stateNode,ax.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Hi(t,e.child,null,s),t.child=Hi(t,null,a,s)):Ve(e,t,a,s),t.memoizedState=r.state,i&&yf(t,n,!0),t.child}function rv(e){var t=e.stateNode;t.pendingContext?vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vf(e,t.context,!1),Od(e,t.containerInfo)}function jf(e,t,n,r,i){return Ki(),Td(i),t.flags|=256,Ve(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0};function yc(e){return{baseLanes:e,cachePool:null,transitions:null}}function iv(e,t,n){var r=t.pendingProps,i=ve.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(ve,i&1),e===null)return cc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=yl(o,r,0,null),e=Mr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=yc(n),t.memoizedState=vc,e):Ud(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return lx(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ar(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ar(a,s):(s=Mr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?yc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=vc,r}return s=e.child,e=s.sibling,r=ar(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ud(e,t){return t=yl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qo(e,t,n,r){return r!==null&&Td(r),Hi(t,e.child,null,n),e=Ud(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lx(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=hu(Error(R(422))),qo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=yl({mode:"visible",children:r.children},i,0,null),s=Mr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Hi(t,e.child,null,o),t.child.memoizedState=yc(o),t.memoizedState=vc,s);if(!(t.mode&1))return qo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(R(419)),r=hu(s,r,void 0),qo(e,t,o,r)}if(a=(o&e.childLanes)!==0,tt||a){if(r=Oe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,En(e,i),Kt(r,e,i,-1))}return Vd(),r=hu(Error(R(421))),qo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=xx.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,dt=rr(i.nextSibling),ht=t,pe=!0,Ft=null,e!==null&&(bt[xt++]=yn,bt[xt++]=wn,bt[xt++]=Fr,yn=e.id,wn=e.overflow,Fr=t),t=Ud(t,r.children),t.flags|=4096,t)}function Df(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dc(e.return,t,n)}function fu(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function sv(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ve(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Df(e,n,t);else if(e.tag===19)Df(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ae(ve,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ba(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),fu(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ba(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}fu(t,!0,n,null,s);break;case"together":fu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ma(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}
vendor: 4,903 bytes, line 40
40function _n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ux(e,t,n){switch(t.tag){case 3:rv(t),Ki();break;case 5:Rg(t);break;case 1:rt(t.type)&&La(t);break;case 4:Od(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae($a,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?iv(e,t,n):(ae(ve,ve.current&1),e=_n(e,t,n),e!==null?e.sibling:null);ae(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,tv(e,t,n)}return _n(e,t,n)}var ov,wc,av,lv;ov=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};wc=function(){};av=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pr(on.current);var s=null;switch(n){case"input":i=Fu(e,i),r=Fu(e,r),s=[];break;case"select":i=we({},i,{value:void 0}),r=we({},r,{value:void 0}),s=[];break;case"textarea":i=Ku(e,i),r=Ku(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ja)}Vu(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Us.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Us.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ue("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};lv=function(e,t,n,r){n!==r&&(t.flags|=4)};function gs(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cx(e,t,n){var r=t.pendingProps;switch(_d(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return rt(t.type)&&Da(),Fe(t),null;case 3:return r=t.stateNode,Vi(),ce(nt),ce(Ke),jd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ft!==null&&(Ac(Ft),Ft=null))),wc(e,t),Fe(t),null;case 5:Nd(t);var i=Pr(Zs.current);if(n=t.type,e!==null&&t.stateNode!=null)av(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Fe(t),null}if(e=Pr(on.current),Ho(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[nn]=t,r[Ys]=s,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<Ts.length;i++)ue(Ts[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Wh(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":Hh(r,s),ue("invalid",r)}Vu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];
vendor: 32,436 bytes, line 40
40o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ko(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ko(r.textContent,a,e),i=["children",""+a]):Us.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":Lo(r),Kh(r,s,!0);break;case"textarea":Lo(r),Vh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ja)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Lm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[nn]=t,e[Ys]=r,ov(e,t,!1,!1),t.stateNode=e;e:{switch(o=qu(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ts.length;i++)ue(Ts[i],e);i=r;break;case"source":ue("error",e),i=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),i=r;break;case"details":ue("toggle",e),i=r;break;case"input":Wh(e,r),i=Fu(e,r),ue("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=we({},r,{value:void 0}),ue("invalid",e);break;case"textarea":Hh(e,r),i=Ku(e,r),ue("invalid",e);break;default:i=r}Vu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?$m(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Fs(e,l):typeof l=="number"&&Fs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Us.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ue("scroll",e):l!=null&&cd(e,s,l,o))}switch(n){case"input":Lo(e),Kh(e,r,!1);break;case"textarea":Lo(e),Vh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+lr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ei(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ei(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ja)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Fe(t),null;case 6:if(e&&t.stateNode!=null)lv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Pr(Zs.current),Pr(on.current),Ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[nn]=t,(s=r.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:Ko(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ko(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nn]=t,t.stateNode=r}return Fe(t),null;case 13:if(ce(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&dt!==null&&t.mode&1&&!(t.flags&128))Tg(),Ki(),t.flags|=98560,s=!1;else if(s=Ho(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(R(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(R(317));s[nn]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else Ft!==null&&(Ac(Ft),Ft=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ve.current&1?Ie===0&&(Ie=3):Vd())),t.updateQueue!==null&&(t.flags|=4),Fe(t),null);case 4:return Vi(),wc(e,t),e===null&&Gs(t.stateNode.containerInfo),Fe(t),null;case 10:return Pd(t.type._context),Fe(t),null;case 17:return rt(t.type)&&Da(),Fe(t),null;case 19:if(ce(ve),s=t.memoizedState,s===null)return Fe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)gs(s,!1);else{if(Ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ba(e),o!==null){for(t.flags|=128,gs(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(ve,ve.current&1|2),t.child}e=e.sibling}s.tail!==null&&Se()>Gi&&(t.flags|=128,r=!0,gs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ba(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!pe)return Fe(t),null}else 2*Se()-s.renderingStartTime>Gi&&n!==1073741824&&(t.flags|=128,r=!0,gs(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=ve.current,ae(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Hd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?at&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function dx(e,t){switch(_d(t),t.tag){case 1:return rt(t.type)&&Da(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),ce(nt),ce(Ke),jd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nd(t),null;case 13:if(ce(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ve),null;case 4:return Vi(),null;case 10:return Pd(t.type._context),null;case 22:case 23:return Hd(),null;case 24:return null;default:return null}}var Go=!1,We=!1,hx=typeof WeakSet=="function"?WeakSet:Set,z=null;function xi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function bc(e,t,n){try{n()}catch(r){ke(e,t,r)}}var Lf=!1;function fx(e,t){if(rc=Ra,e=fg(),Sd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ic={focusedElem:e,selectionRange:n},Ra=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var g=b.memoizedProps,w=b.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:jt(t.type,g),w);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(k){ke(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return b=Lf,Lf=!1,b}function js(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&bc(t,n,s)}i=i.next}while(i!==r)}}function gl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uv(e){var t=e.alternate;t!==null&&(e.alternate=null,uv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nn],delete t[Ys],delete t[ac],delete t[Q0],delete t[Y0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cv(e){return e.tag===5||e.tag===3||e.tag===4}function zf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ja));else if(r!==4&&(e=e.child,e!==null))for(kc(e,t,n),e=e.sibling;e!==null;)kc(e,t,n),e=e.sibling}function Sc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sc(e,t,n),e=e.sibling;e!==null;)Sc(e,t,n),e=e.sibling}var De=null,$t=!1;function zn(e,t,n){for(n=n.child;n!==null;)dv(e,t,n),n=n.sibling}function dv(e,t,n){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(ll,n)}catch{}switch(n.tag){case 5:We||xi(n,t);case 6:var r=De,i=$t;De=null,zn(e,t,n),De=r,$t=i,De!==null&&($t?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&($t?(e=De,n=n.stateNode,e.nodeType===8?ou(e.parentNode,n):e.nodeType===1&&ou(e,n),Hs(e)):ou(De,n.stateNode));break;case 4:r=De,i=$t,De=n.stateNode.containerInfo,$t=!0,zn(e,t,n),De=r,$t=i;break;case 0:case 11:case 14:case 15:if(!We&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&bc(n,t,o),i=i.next}while(i!==r)}zn(e,t,n);break;case 1:if(!We&&(xi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,zn(e,t,n),We=r):zn(e,t,n);break;default:zn(e,t,n)}}function Mf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hx),t.forEach(function(r){var i=kx.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:De=a.stateNode,$t=!1;break e;case 3:De=a.stateNode.containerInfo,$t=!0;break e;case 4:De=a.stateNode.containerInfo,$t=!0;break e}a=a.return}if(De===null)throw Error(R(160));dv(s,o,i),De=null,$t=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ke(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hv(t,e),t=t.sibling}function hv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rt(t,e),Yt(e),r&4){try{js(3,e,e.return),gl(3,e)}catch(g){ke(e,e.return,g)}try{js(5,e,e.return)}catch(g){ke(e,e.return,g)}}break;case 1:Rt(t,e),Yt(e),r&512&&n!==null&&xi(n,n.return);break;case 5:if(Rt(t,e),Yt(e),r&512&&n!==null&&xi(n,n.return),e.flags&32){var i=e.stateNode;try{Fs(i,"")}catch(g){ke(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&jm(i,s),qu(a,o);var u=qu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?$m(i,d):c==="dangerouslySetInnerHTML"?zm(i,d):c==="children"?Fs(i,d):cd(i,c,d,u)}switch(a){case"input":Bu(i,s);break;case"textarea":Dm(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?Ei(i,!!s.multiple,h,!1):f!==!!s.multiple&&(s.defaultValue!=null?Ei(i,!!s.multiple,s.defaultValue,!0):Ei(i,!!s.multiple,s.multiple?[]:"",!1))}i[Ys]=s}catch(g){ke(e,e.return,g)}}break;case 6:if(Rt(t,e),Yt(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(g){ke(e,e.return,g)}}break;case 3:if(Rt(t,e),Yt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(g){ke(e,e.return,g)}break;case 4:Rt(t,e),Yt(e);break;case 13:Rt(t,e),Yt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Wd=Se())),r&4&&Mf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(We=(u=We)||c,Rt(t,e),We=u):Rt(t,e),Yt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(f=z,h=f.child,f.tag){case 0:case 11:case 14:case 15:js(4,f,f.return);break;case 1:xi(f,f.return);var b=f.stateNode;if(typeof b.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(g){ke(r,n,g)}}break;case 5:xi(f,f.return);break;case 22:if(f.memoizedState!==null){Uf(d);continue}}h!==null?(h.return=f,z=h):Uf(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Mm("display",o))}catch(g){ke(e,e.return,g)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ke(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Rt(t,e),Yt(e),r&4&&Mf(e);break;case 21:break;default:Rt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cv(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Fs(i,""),r.flags&=-33);var s=zf(e);Sc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=zf(e);kc(e,a,o);break;default:throw Error(R(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function px(e,t,n){z=e,fv(e)}function fv(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Go;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||We;a=Go;var u=We;if(Go=o,(We=l)&&!u)for(z=i;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Ff(i):l!==null?(l.return=o,z=l):Ff(i);for(;s!==null;)z=s,fv(s),s=s.sibling;z=i,Go=a,We=u}$f(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,z=s):$f(e)}}function $f(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:We||gl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!We)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:jt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Sf(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Sf(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Hs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}We||t.flags&512&&xc(t)}catch(f){ke(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Uf(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Ff(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gl(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ke(t,i,l)}}var s=t.return;try{xc(t)}catch(l){ke(t,s,l)}break;case 5:var o=t.return;try{xc(t)}catch(l){ke(t,o,l)}}}catch(l){ke(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var mx=Math.ceil,Ha=Pn.ReactCurrentDispatcher,Fd=Pn.ReactCurrentOwner,St=Pn.ReactCurrentBatchConfig,te=0,Oe=null,Te=null,Le=0,at=0,ki=mr(0),Ie=0,no=null,Wr=0,vl=0,Bd=0,Ds=null,et=null,Wd=0,Gi=1/0,pn=null,Va=!1,Ec=null,sr=null,Qo=!1,Xn=null,qa=0,Ls=0,_c=null,ga=-1,va=0;function Ge(){return te&6?Se():ga!==-1?ga:ga=Se()}function or(e){return e.mode&1?te&2&&Le!==0?Le&-Le:Z0.transition!==null?(va===0&&(va=Jm()),va):(e=ie,e!==0||(e=window.event,e=e===void 0?16:ig(e.type)),e):1}function Kt(e,t,n,r){if(50<Ls)throw Ls=0,_c=null,Error(R(185));bo(e,n,r),(!(te&2)||e!==Oe)&&(e===Oe&&(!(te&2)&&(vl|=n),Ie===4&&Hn(e,Le)),it(e,r),n===1&&te===0&&!(t.mode&1)&&(Gi=Se()+500,fl&&gr()))}function it(e,t){var n=e.callbackNode;Zb(e,t);var r=Ia(e,e===Oe?Le:0);if(r===0)n!==null&&Qh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Qh(n),t===1)e.tag===0?J0(Bf.bind(null,e)):Sg(Bf.bind(null,e)),q0(function(){!(te&6)&&gr()}),n=null;else{switch(Zm(r)){case 1:n=md;break;case 4:n=Qm;break;case 16:n=Pa;break;case 536870912:n=Ym;break;default:n=Pa}n=xv(n,pv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function pv(e,t){if(ga=-1,va=0,te&6)throw Error(R(327));var n=e.callbackNode;if(Pi()&&e.callbackNode!==n)return null;var r=Ia(e,e===Oe?Le:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ga(e,r);else{t=r;var i=te;te|=2;var s=gv();(Oe!==e||Le!==t)&&(pn=null,Gi=Se()+500,zr(e,t));do try{yx();break}catch(a){mv(e,a)}while(!0);Cd(),Ha.current=s,te=i,Te!==null?t=0:(Oe=null,Le=0,t=Ie)}if(t!==0){if(t===2&&(i=Zu(e),i!==0&&(r=i,t=Tc(e,i))),t===1)throw n=no,zr(e,0),Hn(e,r),it(e,Se()),n;if(t===6)Hn(e,r);else{if(i=e.current.alternate,!(r&30)&&!gx(i)&&(t=Ga(e,r),t===2&&(s=Zu(e),s!==0&&(r=s,t=Tc(e,s))),t===1))throw n=no,zr(e,0),Hn(e,r),it(e,Se()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Sr(e,et,pn);break;case 3:if(Hn(e,r),(r&130023424)===r&&(t=Wd+500-Se(),10<t)){if(Ia(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=oc(Sr.bind(null,e,et,pn),t);break}Sr(e,et,pn);break;case 4:if(Hn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Wt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mx(r/1960))-r,10<r){e.timeoutHandle=oc(Sr.bind(null,e,et,pn),r);break}Sr(e,et,pn);break;case 5:Sr(e,et,pn);break;default:throw Error(R(329))}}}return it(e,Se()),e.callbackNode===n?pv.bind(null,e):null}function Tc(e,t){var n=Ds;return e.current.memoizedState.isDehydrated&&(zr(e,t).flags|=256),e=Ga(e,t),e!==2&&(t=et,et=n,t!==null&&Ac(t)),e}function Ac(e){et===null?et=e:et.push.apply(et,e)}function gx(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ht(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hn(e,t){for(t&=~Bd,t&=~vl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function Bf(e){if(te&6)throw Error(R(327));Pi();var t=Ia(e,0);if(!(t&1))return it(e,Se()),null;var n=Ga(e,t);if(e.tag!==0&&n===2){var r=Zu(e);r!==0&&(t=r,n=Tc(e,r))}if(n===1)throw n=no,zr(e,0),Hn(e,t),it(e,Se()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,et,pn),it(e,Se()),null}function Kd(e,t){var n=te;te|=1;try{return e(t)}finally{te=n,te===0&&(Gi=Se()+500,fl&&gr())}}function Kr(e){Xn!==null&&Xn.tag===0&&!(te&6)&&Pi();var t=te;te|=1;var n=St.transition,r=ie;try{if(St.transition=null,ie=1,e)return e()}finally{ie=r,St.transition=n,te=t,!(te&6)&&gr()}}function Hd(){at=ki.current,ce(ki)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V0(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(_d(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Da();break;case 3:Vi(),ce(nt),ce(Ke),jd();break;case 5:Nd(r);break;case 4:Vi();break;case 13:ce(ve);break;case 19:ce(ve);break;case 10:Pd(r.type._context);break;case 22:case 23:Hd()}n=n.return}if(Oe=e,Te=e=ar(e.current,null),Le=at=t,Ie=0,no=null,Bd=vl=Wr=0,et=Ds=null,Cr!==null){for(t=0;t<Cr.length;t++)if(n=Cr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Cr=null}return e}function mv(e,t){do{var n=Te;try{if(Cd(),fa.current=Ka,Wa){for(var r=ye.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Wa=!1}if(Br=0,Re=Ce=ye=null,Ns=!1,Xs=0,Fd.current=null,n===null||n.return===null){Ie=1,no=t,Te=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=Le,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Pf(o);if(h!==null){h.flags&=-257,If(h,o,a,s,t),h.mode&1&&Cf(s,u,t),t=h,l=u;var b=t.updateQueue;if(b===null){var g=new Set;g.add(l),t.updateQueue=g}else b.add(l);break e}else{if(!(t&1)){Cf(s,u,t),Vd();break e}l=Error(R(426))}}else if(pe&&a.mode&1){var w=Pf(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),If(w,o,a,s,t),Td(qi(l,a));break e}}s=l=qi(l,a),Ie!==4&&(Ie=2),Ds===null?Ds=[s]:Ds.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Zg(s,l,t);kf(s,m);break e;case 1:a=l;var p=s.type,v=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(sr===null||!sr.has(v)))){s.flags|=65536,t&=-t,s.lanes|=t;var k=Xg(s,a,t);kf(s,k);break e}}s=s.return}while(s!==null)}yv(n)}catch(S){t=S,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function gv(){var e=Ha.current;return Ha.current=Ka,e===null?Ka:e}function Vd(){(Ie===0||Ie===3||Ie===2)&&(Ie=4),Oe===null||!(Wr&268435455)&&!(vl&268435455)||Hn(Oe,Le)}function Ga(e,t){var n=te;te|=2;var r=gv();(Oe!==e||Le!==t)&&(pn=null,zr(e,t));do try{vx();break}catch(i){mv(e,i)}while(!0);if(Cd(),te=n,Ha.current=r,Te!==null)throw Error(R(261));return Oe=null,Le=0,Ie}function vx(){for(;Te!==null;)vv(Te)}function yx(){for(;Te!==null&&!Wb();)vv(Te)}function vv(e){var t=bv(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?yv(e):Te=t,Fd.current=null}function yv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dx(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ie=6,Te=null;return}}else if(n=cx(n,t,at),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);Ie===0&&(Ie=5)}function Sr(e,t,n){var r=ie,i=St.transition;try{St.transition=null,ie=1,wx(e,t,n,r)}finally{St.transition=i,ie=r}return null}function wx(e,t,n,r){do Pi();while(Xn!==null);if(te&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Xb(e,s),e===Oe&&(Te=Oe=null,Le=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qo||(Qo=!0,xv(Pa,function(){return Pi(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=St.transition,St.transition=null;var o=ie;ie=1;var a=te;te|=4,Fd.current=null,fx(e,n),hv(n,e),$0(ic),Ra=!!rc,ic=rc=null,e.current=n,px(n),Kb(),te=a,ie=o,St.transition=s}else e.current=n;if(Qo&&(Qo=!1,Xn=e,qa=i),s=e.pendingLanes,s===0&&(sr=null),qb(n.stateNode),it(e,Se()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Va)throw Va=!1,e=Ec,Ec=null,e;return qa&1&&e.tag!==0&&Pi(),s=e.pendingLanes,s&1?e===_c?Ls++:(Ls=0,_c=e):Ls=0,gr(),null}function Pi(){if(Xn!==null){var e=Zm(qa),t=St.transition,n=ie;try{if(St.transition=null,ie=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,qa=0,te&6)throw Error(R(331));var i=te;for(te|=4,z=e.current;z!==null;){var s=z,o=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:js(8,c,s)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var f=c.sibling,h=c.return;if(uv(c),c===u){z=null;break}if(f!==null){f.return=h,z=f;break}z=h}}}var b=s.alternate;if(b!==null){var g=b.child;if(g!==null){b.child=null;do{var w=g.sibling;g.sibling=null,g=w}while(g!==null)}}z=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,z=o;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:js(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,z=m;break e}z=s.return}}var p=e.current;for(z=p;z!==null;){o=z;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,z=v;else e:for(o=p;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:gl(9,a)}}catch(S){ke(a,a.return,S)}if(a===o){z=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,z=k;break e}z=a.return}}if(te=i,gr(),sn&&typeof sn.onPostCommitFiberRoot=="function")try{sn.onPostCommitFiberRoot(ll,e)}catch{}r=!0}return r}finally{ie=n,St.transition=t}}return!1}function Wf(e,t,n){t=qi(n,t),t=Zg(e,t,1),e=ir(e,t,1),t=Ge(),e!==null&&(bo(e,1,t),it(e,t))}function ke(e,t,n){if(e.tag===3)Wf(e,e,n);else for(;t!==null;){if(t.tag===3){Wf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sr===null||!sr.has(r))){e=qi(n,e),e=Xg(t,e,1),t=ir(t,e,1),e=Ge(),t!==null&&(bo(t,1,e),it(t,e));break}}t=t.return}}function bx(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(Le&n)===n&&(Ie===4||Ie===3&&(Le&130023424)===Le&&500>Se()-Wd?zr(e,0):Bd|=n),it(e,t)}function wv(e,t){t===0&&(e.mode&1?(t=$o,$o<<=1,!($o&130023424)&&($o=4194304)):t=1);var n=Ge();e=En(e,t),e!==null&&(bo(e,t,n),it(e,n))}function xx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wv(e,n)}function kx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),wv(e,n)}var bv;bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,ux(e,t,n);tt=!!(e.flags&131072)}else tt=!1,pe&&t.flags&1048576&&Eg(t,Ma,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ma(e,t),e=t.pendingProps;var i=Wi(t,Ke.current);Ci(t,n),i=Ld(null,t,r,e,i,n);var s=zd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(s=!0,La(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Rd(t),i.updater=ml,t.stateNode=i,i._reactInternals=t,fc(t,r,e,n),t=gc(null,t,r,!0,s,n)):(t.tag=0,pe&&s&&Ed(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ma(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ex(r),e=jt(r,e),i){case 0:t=mc(null,t,r,e,n);break e;case 1:t=Nf(null,t,r,e,n);break e;case 11:t=Rf(null,t,r,e,n);break e;case 14:t=Of(null,t,r,jt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),mc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),Nf(e,t,r,i,n);case 3:e:{if(rv(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Ig(e,t),Fa(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qi(Error(R(423)),t),t=jf(e,t,r,n,i);break e}else if(r!==i){i=qi(Error(R(424)),t),t=jf(e,t,r,n,i);break e}else for(dt=rr(t.stateNode.containerInfo.firstChild),ht=t,pe=!0,Ft=null,n=Cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ki(),r===i){t=_n(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return Rg(t),e===null&&cc(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,sc(r,i)?o=null:s!==null&&sc(r,s)&&(t.flags|=32),nv(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&cc(t),null;case 13:return iv(e,t,n);case 4:return Od(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hi(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),Rf(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ae($a,r._currentValue),r._currentValue=o,s!==null)if(Ht(s.value,o)){if(s.children===i.children&&!nt.current){t=_n(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=bn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),dc(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),dc(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ci(t,n),i=Et(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=jt(r,t.pendingProps),i=jt(r.type,i),Of(e,t,r,i,n);case 15:return ev(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:jt(r,i),ma(e,t),t.tag=1,rt(r)?(e=!0,La(t)):e=!1,Ci(t,n),Jg(t,r,i),fc(t,r,i,n),gc(null,t,r,!0,e,n);case 19:return sv(e,t,n);case 22:return tv(e,t,n)}throw Error(R(156,t.tag))};function xv(e,t){return Gm(e,t)}function Sx(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,r){return new Sx(e,t,n,r)}function qd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ex(e){if(typeof e=="function")return qd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hd)return 11;if(e===fd)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 5,099 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ya(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")qd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case hi:return Mr(n.children,i,s,t);case dd:o=8,i|=8;break;case zu:return e=kt(12,n,t,i|2),e.elementType=zu,e.lanes=s,e;case Mu:return e=kt(13,n,t,i),e.elementType=Mu,e.lanes=s,e;case $u:return e=kt(19,n,t,i),e.elementType=$u,e.lanes=s,e;case Rm:return yl(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pm:o=10;break e;case Im:o=9;break e;case hd:o=11;break e;case fd:o=14;break e;case Fn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=kt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Mr(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function yl(e,t,n,r){return e=kt(22,e,r,t),e.elementType=Rm,e.lanes=n,e.stateNode={isHidden:!1},e}function pu(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function mu(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _x(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gd(e,t,n,r,i,s,o,a,l){return e=new _x(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=kt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rd(s),e}function Tx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:di,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function kv(e){if(!e)return ur;e=e._reactInternals;e:{if(qr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(rt(n))return kg(e,n,t)}return t}function Sv(e,t,n,r,i,s,o,a,l){return e=Gd(n,r,!0,e,i,s,o,a,l),e.context=kv(null),n=e.current,r=Ge(),i=or(n),s=bn(r,i),s.callback=t??null,ir(n,s,i),e.current.lanes=i,bo(e,i,r),it(e,r),e}function wl(e,t,n,r){var i=t.current,s=Ge(),o=or(i);return n=kv(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(i,t,o),e!==null&&(Kt(e,i,o,s),ha(e,i,o)),o}function Qa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qd(e,t){Kf(e,t),(e=e.alternate)&&Kf(e,t)}function Ax(){return null}var Ev=typeof reportError=="function"?reportError:function(e){console.error(e)};function Yd(e){this._internalRoot=e}bl.prototype.render=Yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));wl(e,t,null,null)};bl.prototype.unmount=Yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kr(function(){wl(null,e,null,null)}),t[Sn]=null}};function bl(e){this._internalRoot=e}bl.prototype.unstable_scheduleHydration=function(e){if(e){var t=tg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kn.length&&t!==0&&t<Kn[n].priority;n++);Kn.splice(n,0,e),n===0&&rg(e)}};function Jd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hf(){}function Cx(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Qa(o);s.call(u)}}var o=Sv(t,r,e,0,null,!1,!1,"",Hf);return e._reactRootContainer=o,e[Sn]=o.current,Gs(e.nodeType===8?e.parentNode:e),Kr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Qa(l);a.call(u)}}var l=Gd(e,0,!1,null,null,!1,!1,"",Hf);return e._reactRootContainer=l,e[Sn]=l.current,Gs(e.nodeType===8?e.parentNode:e),Kr(function(){wl(t,l,n,r)}),l}function kl(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Qa(o);a.call(l)}}wl(t,o,e,i)}else o=Cx(n,t,e,i,r);return Qa(o)}Xm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_s(t.pendingLanes);
vendor: 4,598 bytes, line 40
40n!==0&&(gd(t,n|1),it(t,Se()),!(te&6)&&(Gi=Se()+500,gr()))}break;case 13:Kr(function(){var r=En(e,1);if(r!==null){var i=Ge();Kt(r,e,1,i)}}),Qd(e,1)}};vd=function(e){if(e.tag===13){var t=En(e,134217728);if(t!==null){var n=Ge();Kt(t,e,134217728,n)}Qd(e,134217728)}};eg=function(e){if(e.tag===13){var t=or(e),n=En(e,t);if(n!==null){var r=Ge();Kt(n,e,t,r)}Qd(e,t)}};tg=function(){return ie};ng=function(e,t){var n=ie;try{return ie=e,t()}finally{ie=n}};Qu=function(e,t,n){switch(t){case"input":if(Bu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=hl(r);if(!i)throw Error(R(90));Nm(r),Bu(r,i)}}}break;case"textarea":Dm(e,n);break;case"select":t=n.value,t!=null&&Ei(e,!!n.multiple,t,!1)}};Bm=Kd;Wm=Kr;var Px={usingClientEntryPoint:!1,Events:[ko,gi,hl,Um,Fm,Kd]},vs={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ix={bundleType:vs.bundleType,version:vs.version,rendererPackageName:vs.rendererPackageName,rendererConfig:vs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Vm(e),e===null?null:e.stateNode},findFiberByHostInstance:vs.findFiberByHostInstance||Ax,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{ll=Yo.inject(Ix),sn=Yo}catch{}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Px;mt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jd(t))throw Error(R(200));return Tx(e,t,null,n)};mt.createRoot=function(e,t){if(!Jd(e))throw Error(R(299));var n=!1,r="",i=Ev;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gd(e,1,!1,null,null,n,!1,r,i),e[Sn]=t.current,Gs(e.nodeType===8?e.parentNode:e),new Yd(t)};mt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Vm(t),e=e===null?null:e.stateNode,e};mt.flushSync=function(e){return Kr(e)};mt.hydrate=function(e,t,n){if(!xl(t))throw Error(R(200));return kl(null,e,t,!0,n)};mt.hydrateRoot=function(e,t,n){if(!Jd(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Ev;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Sv(t,null,e,1,n??null,i,!1,s,o),e[Sn]=t.current,Gs(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bl(t)};mt.render=function(e,t,n){if(!xl(t))throw Error(R(200));return kl(null,e,t,!1,n)};mt.unmountComponentAtNode=function(e){if(!xl(e))throw Error(R(40));return e._reactRootContainer?(Kr(function(){kl(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1};mt.unstable_batchedUpdates=Kd;mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xl(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return kl(e,t,n,!1,r)};mt.version="18.3.1-next-f1338f8080-20240426";function _v(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_v)}catch(e){console.error(e)}}_v(),_m.exports=mt;var Eo=_m.exports;const Tv=Ji(Eo);var Av,Vf=Eo;Av=Vf.createRoot,Vf.hydrateRoot;const Rx=1,Ox=1e6;let gu=0;function Nx(){return gu=(gu+1)%Number.MAX_SAFE_INTEGER,gu.toString()}const vu=new Map,qf=e=>{if(vu.has(e))return;const t=setTimeout(()=>{vu.delete(e),zs({type:"REMOVE_TOAST",toastId:e})},Ox);vu.set(e,t)},jx=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Rx)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?qf(n):e.toasts.forEach(r=>{qf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},wa=[];let ba={toasts:[]};function zs(e){ba=jx(ba,e),wa.forEach(t=>{t(ba)})}function Dx({...e}){const t=Nx(),n=i=>zs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>zs({type:"DISMISS_TOAST",toastId:t});return zs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function Cv(){const[e,t]=x.useState(ba);return x.useEffect(()=>(wa.push(t),()=>{const n=wa.indexOf(t);n>-1&&wa.splice(n,1)}),[e]),{...e,toast:Dx,dismiss:n=>zs({type:"DISMISS_TOAST",toastId:n})}}function Pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Gf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pv(...e){return t=>{let n=!1;const r=e.map(i=>{const s=Gf(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Gf(e[i],null)}}}}function Vt(...e){return x.useCallback(Pv(...e),e)}function Sl(e,t=[]){let n=[];function r(s,o){const a=x.createContext(o),l=n.length;n=[...n,o];const u=d=>{var m;const{scope:f,children:h,...b}=d,g=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,w=x.useMemo(()=>b,Object.values(b));return y.jsx(g.Provider,{value:w,children:h})};u.displayName=s+"Provider";function c(d,f){var g;const h=((g=f==null?void 0:f[e])==null?void 0:g[l])||a,b=x.useContext(h);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(o=>x.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Lx(i,...t)]}function Lx(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...a,...d}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Ya(e){const t=Mx(e),n=x.forwardRef((r,i)=>{const{children:s,...o}=r,a=x.Children.toArray(s),l=a.find(Ux);if(l){const u=l.props.children,c=a.map(d=>d===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:d);return y.jsx(t,{...o,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return y.jsx(t,{...o,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var zx=Ya("Slot");function Mx(e){const t=x.forwardRef((n,r)=>{const{children:i,...s}=n;if(x.isValidElement(i)){const o=Bx(i),a=Fx(s,i.props);return i.type!==x.Fragment&&(a.ref=r?Pv(r,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Iv=Symbol("radix.slottable");function $x(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Iv,t}function Ux(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Iv}function Fx(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...a)=>{const l=s(...a);return i(...a),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Bx(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Wx(e){const t=e+"CollectionProvider",[n,r]=Sl(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{const{scope:w,children:m}=g,p=O.useRef(null),v=O.useRef(new Map).current;return y.jsx(i,{scope:w,itemMap:v,collectionRef:p,children:m})};o.displayName=t;const a=e+"CollectionSlot",l=Ya(a),u=O.forwardRef((g,w)=>{const{scope:m,children:p}=g,v=s(a,m),k=Vt(w,v.collectionRef);return y.jsx(l,{ref:k,children:p})});u.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Ya(c),h=O.forwardRef((g,w)=>{const{scope:m,children:p,...v}=g,k=O.useRef(null),S=Vt(w,k),E=s(c,m);return O.useEffect(()=>(E.itemMap.set(k,{ref:k,...v}),()=>
vendor: 9,168 bytes, line 40
40void E.itemMap.delete(k))),y.jsx(f,{[d]:"",ref:S,children:p})});h.displayName=c;function b(g){const w=s(e+"CollectionConsumer",g);return O.useCallback(()=>{const p=w.collectionRef.current;if(!p)return[];const v=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(w.itemMap.values()).sort((E,_)=>v.indexOf(E.ref.current)-v.indexOf(_.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:u,ItemSlot:h},b,r]}var Kx=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=Kx.reduce((e,t)=>{const n=Ya(`Primitive.${t}`),r=x.forwardRef((i,s)=>{const{asChild:o,...a}=i,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Rv(e,t){e&&Eo.flushSync(()=>e.dispatchEvent(t))}function cr(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Hx(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e);x.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Vx="DismissableLayer",Cc="dismissableLayer.update",qx="dismissableLayer.pointerDownOutside",Gx="dismissableLayer.focusOutside",Qf,Ov=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zd=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=x.useContext(Ov),[c,d]=x.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=x.useState({}),b=Vt(t,_=>d(_)),g=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(w),p=c?g.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,k=p>=m,S=Yx(_=>{const A=_.target,I=[...u.branches].some(N=>N.contains(A));!k||I||(i==null||i(_),o==null||o(_),_.defaultPrevented||a==null||a())},f),E=Jx(_=>{const A=_.target;[...u.branches].some(N=>N.contains(A))||(s==null||s(_),o==null||o(_),_.defaultPrevented||a==null||a())},f);return Hx(_=>{p===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&a&&(_.preventDefault(),a()))},f),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qf=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Yf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Qf)}},[c,f,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Yf())},[c,u]),x.useEffect(()=>{const _=()=>h({});return document.addEventListener(Cc,_),()=>document.removeEventListener(Cc,_)},[]),y.jsx(Je.div,{...l,ref:b,style:{pointerEvents:v?k?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,S.onPointerDownCapture)})});Zd.displayName=Vx;var Qx="DismissableLayerBranch",Nv=x.forwardRef((e,t)=>{const n=x.useContext(Ov),r=x.useRef(null),i=Vt(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(Je.div,{...e,ref:i})});Nv.displayName=Qx;function Yx(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e),r=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){jv(qx,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Jx(e,t=globalThis==null?void 0:globalThis.document){const n=cr(e),r=x.useRef(!1);return x.useEffect(()=>{const i=s=>{s.target&&!r.current&&jv(Gx,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Yf(){const e=new CustomEvent(Cc);document.dispatchEvent(e)}function jv(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Rv(i,s):i.dispatchEvent(s)}var Zx=Zd,Xx=Nv,dr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ek="Portal",Dv=x.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,s]=x.useState(!1);dr(()=>s(!0),[]);const o=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?Tv.createPortal(y.jsx(Je.div,{...r,ref:t}),o):null});Dv.displayName=ek;function tk(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Xd=e=>{const{present:t,children:n}=e,r=nk(t),i=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Vt(r.ref,rk(i));return typeof n=="function"||r.isPresent?x.cloneElement(i,{ref:s}):null};Xd.displayName="Presence";function nk(e){const[t,n]=x.useState(),r=x.useRef(null),i=x.useRef(e),s=x.useRef("none"),o=e?"mounted":"unmounted",[a,l]=tk(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Jo(r.current);s.current=a==="mounted"?u:"none"},[a]),dr(()=>{const u=r.current,c=i.current;if(c!==e){const f=s.current,h=Jo(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),dr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const g=Jo(r.current).includes(h.animationName);if(h.target===t&&g&&(l("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},f=h=>{h.target===t&&(s.current=Jo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Jo(e){return(e==null?void 0:e.animationName)||"none"}function rk(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ik=bb[" useInsertionEffect ".trim().toString()]||dr;function sk({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,o]=ok({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:i;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const d=c.current;d!==a&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,r])}const u=x.useCallback(c=>{var d;if(a){const f=ak(c)?c(e):c;f!==e&&((d=o.current)==null||d.call(o,f))}else s(c)},[a,e,s,o]);return[l,u]}function ok({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),i=x.useRef(n),s=x.useRef(t);return ik(()=>{s.current=t},[t]),x.useEffect(()=>{var o;i.current!==n&&((o=s.current)==null||o.call(s,n),i.current=n)},[n,i]),[n,r,s]}function ak(e){return typeof e=="function"}var lk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uk="VisuallyHidden",El=x.forwardRef((e,t)=>y.jsx(Je.span,{...e,ref:t,style:{...lk,...e.style}}));El.displayName=uk;var ck=El,eh="ToastProvider",[th,dk,hk]=Wx("Toast"),[Lv,MI]=Sl("Toast",[hk]),[fk,_l]=Lv(eh),zv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=x.useState(null),[u,c]=x.useState(0),d=x.useRef(!1),f=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${eh}\`. Expected non-empty \`string\`.`),y.jsx(th.Provider,{scope:t,children:y.jsx(fk,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};zv.displayName=eh;var Mv="ToastViewport",pk=["F8"],Pc="toast.viewportPause",Ic="toast.viewportResume",$v=x.forwardRef((e,t)=>
40{const{__scopeToast:n,hotkey:r=pk,label:i="Notifications ({hotkey})",...s}=e,o=_l(Mv,n),a=dk(n),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),f=Vt(t,d,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=o.toastCount>0;x.useEffect(()=>{const w=m=>{var v;r.length!==0&&r.every(k=>m[k]||m.code===k)&&((v=d.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=l.current,m=d.current;if(b&&w&&m){const p=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Pc);m.dispatchEvent(E),o.isClosePausedRef.current=!0}},v=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Ic);m.dispatchEvent(E),o.isClosePausedRef.current=!1}},k=E=>{!w.contains(E.relatedTarget)&&v()},S=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",p),w.addEventListener("focusout",k),w.addEventListener("pointermove",p),w.addEventListener("pointerleave",S),window.addEventListener("blur",p),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",p),w.removeEventListener("focusout",k),w.removeEventListener("pointermove",p),w.removeEventListener("pointerleave",S),window.removeEventListener("blur",p),window.removeEventListener("focus",v)}}},[b,o.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:w})=>{const p=a().map(v=>{const k=v.ref.current,S=[k,...Ak(k)];return w==="forwards"?S:S.reverse()});return(w==="forwards"?p.reverse():p).flat()},[a]);return x.useEffect(()=>{const w=d.current;if(w){const m=p=>{var S,E,_;const v=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!v){const A=document.activeElement,I=p.shiftKey;if(p.target===w&&I){(S=u.current)==null||S.focus();return}const D=g({tabbingDirection:I?"backwards":"forwards"}),K=D.findIndex(j=>j===A);yu(D.slice(K+1))?p.preventDefault():I?(E=u.current)==null||E.focus():(_=c.current)==null||_.focus()}};return w.addEventListener("keydown",m),()=>w.removeEventListener("keydown",m)}},[a,g]),y.jsxs(Xx,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&y.jsx(Rc,{ref:u,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});yu(w)}}),y.jsx(th.Slot,{scope:n,children:y.jsx(Je.ol,{tabIndex:-1,...s,ref:f})}),b&&y.jsx(Rc,{ref:c,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});yu(w)}})]})});$v.displayName=Mv;var Uv="ToastFocusProxy",Rc=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=_l(Uv,n);return y.jsx(El,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var u;const a=o.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Rc.displayName=Uv;var _o="Toast",mk="toast.swipeStart",gk="toast.swipeMove",vk="toast.swipeCancel",yk="toast.swipeEnd",Fv=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...o}=e,[a,l]=sk({prop:r,defaultProp:i??!0,onChange:s,caller:_o});return y.jsx(Xd,{present:n||a,children:y.jsx(xk,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:cr(e.onPause),onResume:cr(e.onResume),onSwipeStart:Pe(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Pe(e.onSwipeMove,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Pe(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Pe(e.onSwipeEnd,u=>{const{x:c,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});Fv.displayName=_o;var[wk,bk]=Lv(_o,{onClose(){}}),xk=x.forwardRef((e,t)=>
40{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:h,...b}=e,g=_l(_o,n),[w,m]=x.useState(null),p=Vt(t,j=>m(j)),v=x.useRef(null),k=x.useRef(null),S=i||g.duration,E=x.useRef(0),_=x.useRef(S),A=x.useRef(0),{onToastAdd:I,onToastRemove:N}=g,B=cr(()=>{var X;(w==null?void 0:w.contains(document.activeElement))&&((X=g.viewport)==null||X.focus()),o()}),D=x.useCallback(j=>{!j||j===1/0||(window.clearTimeout(A.current),E.current=new Date().getTime(),A.current=window.setTimeout(B,j))},[B]);x.useEffect(()=>{const j=g.viewport;if(j){const X=()=>{D(_.current),u==null||u()},W=()=>{const G=new Date().getTime()-E.current;_.current=_.current-G,window.clearTimeout(A.current),l==null||l()};return j.addEventListener(Pc,W),j.addEventListener(Ic,X),()=>{j.removeEventListener(Pc,W),j.removeEventListener(Ic,X)}}},[g.viewport,S,l,u,D]),x.useEffect(()=>{s&&!g.isClosePausedRef.current&&D(S)},[s,S,g.isClosePausedRef,D]),x.useEffect(()=>(I(),()=>N()),[I,N]);const K=x.useMemo(()=>w?Gv(w):null,[w]);return g.viewport?y.jsxs(y.Fragment,{children:[K&&y.jsx(kk,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:K}),y.jsx(wk,{scope:n,onClose:B,children:Eo.createPortal(y.jsx(th.ItemSlot,{scope:n,children:y.jsx(Zx,{asChild:!0,onEscapeKeyDown:Pe(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||B(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Je.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Pe(e.onKeyDown,j=>{j.key==="Escape"&&(a==null||a(j.nativeEvent),j.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,B()))}),onPointerDown:Pe(e.onPointerDown,j=>{j.button===0&&(v.current={x:j.clientX,y:j.clientY})}),onPointerMove:Pe(e.onPointerMove,j=>{if(!v.current)return;const X=j.clientX-v.current.x,W=j.clientY-v.current.y,G=!!k.current,C=["left","right"].includes(g.swipeDirection),P=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,L=C?P(0,X):0,Q=C?0:P(0,W),$=j.pointerType==="touch"?10:2,J={x:L,y:Q},ee={originalEvent:j,delta:J};G?(k.current=J,Zo(gk,d,ee,{discrete:!1})):Jf(J,g.swipeDirection,$)?(k.current=J,Zo(mk,c,ee,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(X)>$||Math.abs(W)>$)&&(v.current=null)}),onPointerUp:Pe(e.onPointerUp,j=>{const X=k.current,W=j.target;if(W.hasPointerCapture(j.pointerId)&&W.releasePointerCapture(j.pointerId),k.current=null,v.current=null,X){const G=j.currentTarget,C={originalEvent:j,delta:X};Jf(X,g.swipeDirection,g.swipeThreshold)?Zo(yk,h,C,{discrete:!0}):Zo(vk,f,C,{discrete:!0}),G.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),kk=e=>{const{__scopeToast:t,children:n,...r}=e,i=_l(_o,t),[s,o]=x.useState(!1),[a,l]=x.useState(!1);return _k(()=>o(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:y.jsx(Dv,{asChild:!0,children:y.jsx(El,{...r,children:s&&y.jsxs(y.Fragment,{children:[i.label," ",n]})})})},Sk="ToastTitle",Bv=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Je.div,{...r,ref:t})});Bv.displayName=Sk;var Ek="ToastDescription",Wv=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return y.jsx(Je.div,{...r,ref:t})});Wv.displayName=Ek;var Kv="ToastAction",Hv=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?y.jsx(qv,{altText:n,asChild:!0,children:y.jsx(nh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Kv}\`. Expected non-empty \`string\`.`),null)});Hv.displayName=Kv;var Vv="ToastClose",nh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=bk(Vv,n);return y.jsx(qv,{asChild:!0,children:y.jsx(Je.button,{type:"button",...r,ref:t,onClick:Pe(e.onClick,i.onClose)})})});nh.displayName=Vv;var qv=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return y.jsx(Je.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Gv(e){const t=[];
vendor: 5,148 bytes, lines 40-79
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Tk(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Gv(r))}}),t}function Zo(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Rv(i,s):i.dispatchEvent(s)}var Jf=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function _k(e=()=>{}){const t=cr(e);dr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Tk(e){return e.nodeType===e.ELEMENT_NODE}function Ak(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Ck=zv,Qv=$v,Yv=Fv,Jv=Bv,Zv=Wv,Xv=Hv,ey=nh;function ty(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ty(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ny(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ty(e))&&(r&&(r+=" "),r+=t);return r}const Zf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xf=ny,rh=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Xf(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=n==null?void 0:n[u],d=s==null?void 0:s[u];if(c===null)return null;const f=Zf(c)||Zf(d);return i[u][f]}),a=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(b=>{let[g,w]=b;return Array.isArray(w)?w.includes({...s,...a}[g]):{...s,...a}[g]===w})?[...u,d,f]:u},[]);return Xf(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const Pk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ry=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var Ik={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const Rk=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>x.createElement("svg",{ref:l,...Ik,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ry("lucide",i),...a},[...o.map(([u,c])=>x.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const ts=(e,t)=>{const n=x.forwardRef(({className:r,...i},s)=>x.createElement(Rk,{ref:s,iconNode:t,className:ry(`lucide-${Pk(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const Ok=ts("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const Nk=ts("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const ep=ts("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
vendor: 6,641 bytes, lines 80-90
80 */const jk=ts("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const Dk=ts("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const iy=ts("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ih="-",Lk=e=>{const t=Mk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const a=o.split(ih);return a[0]===""&&a.length!==1&&a.shift(),sy(a,t)||zk(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&r[o]?[...l,...r[o]]:l}}},sy=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?sy(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(ih);return(o=t.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},tp=/^\[(.+)\]$/,zk=e=>{if(tp.test(e)){const t=tp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Mk=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Uk(Object.entries(e.classGroups),n).forEach(([s,o])=>{Oc(o,r,s,t)}),r},Oc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:np(t,i);s.classGroupId=n;return}if(typeof i=="function"){if($k(i)){Oc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,o])=>{Oc(o,np(t,s),n,r)})})},np=(e,t)=>{let n=e;return t.split(ih).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$k=e=>e.isThemeGetter,Uk=(e,t)=>t?e.map(([n,r])=>{const i=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[n,i]}):e,Fk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,o)=>{n.set(s,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return i(s,o),o},set(s,o){n.has(s)?n.set(s,o):i(s,o)}}},oy="!",Bk=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,d;for(let w=0;w<a.length;w++){let m=a[w];if(u===0){if(m===i&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(m==="/"){d=w;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?a:a.substring(c),h=f.startsWith(oy),b=h?f.substring(1):f,g=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:o}):o},Wk=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Kk=e=>({cache:Fk(e.cacheSize),parseClassName:Bk(e),...Lk(e)}),Hk=/\s+/,Vk=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(Hk);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let b=!!h,g=r(b?f.substring(0,h):f);if(!g){if(!b){a=u+(a.length>0?" "+a:a);continue}if(g=r(f),!g){a=u+(a.length>0?" "+a:a);continue}b=!1}const w=Wk(c).join(":"),m=d?w+oy:w,p=m+g;if(s.includes(p))continue;s.push(p);const v=i(g,b);for(let k=0;k<v.length;++k){const S=v[k];s.push(m+S)}a=u+(a.length>0?" "+a:a)}return a};function qk(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ay(t))&&(r&&(r+=" "),r+=n);return r}const ay=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ay(e[r]))&&(n&&(n+=" "),n+=t);return n};function Gk(e,...t){let n,r,i,s=o;function o(l){const u=t.reduce((c,d)=>d(c),e());return n=Kk(u),r=n.cache.get,i=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=Vk(l,n);return i(l,c),c}return function(){return s(qk.apply(null,arguments))}}const le=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ly=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qk=/^\d+\/\d+$/,Yk=new Set(["px","full","screen"]),Jk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,eS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dn=e=>Ii(e)||Yk.has(e)||Qk.test(e),Mn=e=>ns(e,"length",uS),Ii=e=>!!e&&!Number.isNaN(Number(e)),wu=e=>ns(e,"number",Ii),ys=e=>!!e&&Number.isInteger(Number(e)),nS=e=>e.endsWith("%")&&Ii(e.slice(0,-1)),Y=e=>ly.test(e),$n=e=>Jk.test(e),rS=new Set(["length","size","percentage"]),iS=e=>ns(e,rS,uy),sS=e=>ns(e,"position",uy),oS=new Set(["image","url"]),aS=e=>ns(e,oS,dS),lS=e=>ns(e,"",cS),ws=()=>!0,ns=(e,t,n)=>{const r=ly.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},uS=e=>Zk.test(e)&&!Xk.test(e),uy=()=>!1,cS=e=>eS.test(e),dS=e=>tS.test(e),hS=()=>{const e=le("colors"),t=le("spacing"),n=le("blur"),r=le("brightness"),i=le("borderColor"),s=le("borderRadius"),o=le("borderSpacing"),a=le("borderWidth"),l=le("contrast"),u=le("grayscale"),c=le("hueRotate"),d=le("invert"),f=le("gap"),h=le("gradientColorStops"),b=le("gradientColorStopPositions"),g=le("inset"),w=le("margin"),m=le("opacity"),p=le("padding"),v=le("saturate"),k=le("scale"),S=le("sepia"),E=le("skew"),_=le("space"),A=le("translate"),I=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",Y,t],D=()=>[Y,t],K=()=>["",dn,Mn],j=()=>["auto",Ii,Y],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",Y],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[Ii,Y];return{cacheSize:500,separator:":",theme:{colors:[ws],spacing:[dn,Mn],blur:["none","",$n,Y],brightness:Q(),borderColor:[e],borderRadius:["n
90one","","full",$n,Y],borderSpacing:D(),borderWidth:K(),contrast:Q(),grayscale:P(),hueRotate:Q(),invert:P(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[nS,Mn],inset:B(),margin:B(),opacity:Q(),padding:D(),saturate:Q(),scale:Q(),sepia:P(),skew:Q(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[$n]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),Y]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ys,Y]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ys,Y]}],"grid-cols":[{"grid-cols":[ws]}],"col-start-end":[{col:["auto",{span:["full",ys,Y]},Y]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[ws]}],"row-start-end":[{row:["auto",{span:[ys,Y]},Y]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...C()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...C(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...C(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[$n]},$n]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$n,Mn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wu]}],"font-family":[{font:[ws]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",Ii,wu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dn,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dn,Mn]}],"underline-offset":[{"underline-offset":["auto",dn,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),sS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",iS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aS]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
vendor: 5,172 bytes, line 90
90],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[dn,Y]}],"outline-w":[{outline:[dn,Mn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[dn,Mn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$n,lS]}],"shadow-color":[{shadow:[ws]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",$n,Y]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ys,Y]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,646 bytes, line 90
90],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[dn,Mn,wu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},fS=Gk(hS);function un(...e){return fS(ny(e))}const pS=Ck,cy=x.forwardRef(({className:e,...t},n)=>y.jsx(Qv,{ref:n,className:un("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));cy.displayName=Qv.displayName;const mS=rh("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),dy=x.forwardRef(({className:e,variant:t,...n},r)=>y.jsx(Yv,{ref:r,className:un(mS({variant:t}),e),...n}));dy.displayName=Yv.displayName;const gS=x.forwardRef(({className:e,...t},n)=>y.jsx(Xv,{ref:n,className:un("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));gS.displayName=Xv.displayName;const hy=x.forwardRef(({className:e,...t},n)=>y.jsx(ey,{ref:n,className:un("absolute right-2 top-2 rounded-md p-1 text-foreground
90/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:y.jsx(iy,{className:"h-4 w-4"})}));hy.displayName=ey.displayName;const fy=x.forwardRef(({className:e,...t},n)=>y.jsx(Jv,{ref:n,className:un("text-sm font-semibold",e),...t}));fy.displayName=Jv.displayName;const py=x.forwardRef(({className:e,...t},n)=>y.jsx(Zv,{ref:n,className:un("text-sm opacity-90",e),...t}));py.displayName=Zv.displayName;function vS(){const{toasts:e}=Cv();return y.jsxs(pS,{children:[e.map(function({id:t,title:n,description:r,action:i,...s}){return y.jsxs(dy,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(fy,{children:n}),r&&y.jsx(py,{children:r})]}),i,y.jsx(hy,{})]},t)}),y.jsx(cy,{})]})}var rp=["light","dark"],yS="(prefers-color-scheme: dark)",wS=x.createContext(void 0),bS={setTheme:e=>{},themes:[]},xS=()=>{var e;return(e=x.useContext(wS))!=null?e:bS};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?rp.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(b,g=!1,w=!0)=>{let m=o?o[b]:b,p=g?b+"|| ''":`'${m}'`,v="";return i&&w&&!g&&rp.includes(b)&&(v+=`d.style.colorScheme = '${b}';`),n==="class"?g||m?v+=`c.add(${p})`:v+="null":m&&(v+=`d[s](n,${p})`),v},h=e?`!function(){${c}${f(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${yS}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${u?"":"else{"+f(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${d}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var kS=e=>{switch(e){case"success":return _S;case"info":return AS;case"warning":return TS;case"error":return CS;default:return null}},SS=Array(12).fill(0),ES=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},SS.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),_S=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),TS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),AS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),CS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),PS=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),IS=()=>{let[e,t]=O.useState(document.hidden);return O.useEffect(()=>{let n=()=>{t(document.hidden)};
90return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Nc=1,RS=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Nc++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:o,title:n}):a):this.addToast({title:n,...r,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
90this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,s,o=r.then(async l=>{if(s=["resolve",l],O.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(NS(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>o.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Nc++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Xe=new RS,OS=(e,t)=>{let n=(t==null?void 0:t.id)||Nc++;return Xe.addToast({title:e,...t,id:n}),n},NS=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",jS=OS,DS=()=>Xe.toasts,LS=()=>Xe.getActiveToasts();Object.assign(jS,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:DS,getToasts:LS});function zS(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}zS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
90left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
90:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
90--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
91`);function Xo(e){return e.label!==void 0}var MS=3,$S="32px",US="16px",ip=4e3,FS=356,BS=14,WS=20,KS=200;function Ot(...e){return e.filter(Boolean).join(" ")}function HS(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var VS=e=>{var t,n,r,i,s,o,a,l,u,c,d;let{invert:f,toast:h,unstyled:b,interacting:g,setHeights:w,visibleToasts:m,heights:p,index:v,toasts:k,expanded:S,removeToast:E,defaultRichColors:_,closeButton:A,style:I,cancelButtonStyle:N,actionButtonStyle:B,className:D="",descriptionClassName:K="",duration:j,position:X,gap:W,loadingIcon:G,expandByDefault:C,classNames:P,icons:L,closeButtonAriaLabel:Q="Close toast",pauseWhenPageIsHidden:$}=e,[J,ee]=O.useState(null),[Ee,Me]=O.useState(null),[re,Gr]=O.useState(!1),[Rn,vr]=O.useState(!1),[On,Qr]=O.useState(!1),[Nn,Io]=O.useState(!1),[$l,Ro]=O.useState(!1),[Ul,ls]=O.useState(0),[Yr,Ih]=O.useState(0),us=O.useRef(h.duration||j||ip),Rh=O.useRef(null),yr=O.useRef(null),Qw=v===0,Yw=v+1<=m,yt=h.type,Jr=h.dismissible!==!1,Jw=h.className||"",Zw=h.descriptionClassName||"",Oo=O.useMemo(()=>p.findIndex(H=>H.toastId===h.id)||0,[p,h.id]),Xw=O.useMemo(()=>{var H;return(H=h.closeButton)!=null?H:A},[h.closeButton,A]),Oh=O.useMemo(()=>h.duration||j||ip,[h.duration,j]),Fl=O.useRef(0),Zr=O.useRef(0),Nh=O.useRef(0),Xr=O.useRef(null),[eb,tb]=X.split("-"),jh=O.useMemo(()=>p.reduce((H,se,de)=>de>=Oo?H:H+se.height,0),[p,Oo]),Dh=IS(),nb=h.invert||f,Bl=yt==="loading";Zr.current=O.useMemo(()=>Oo*W+jh,[Oo,jh]),O.useEffect(()=>{us.current=Oh},[Oh]),O.useEffect(()=>{Gr(!0)},[]),O.useEffect(()=>{let H=yr.current;if(H){let se=H.getBoundingClientRect().height;return Ih(se),w(de=>[{toastId:h.id,height:se,position:h.position},...de]),()=>w(de=>de.filter(Ct=>Ct.toastId!==h.id))}},[w,h.id]),O.useLayoutEffect(()=>{if(!re)return;let H=yr.current,se=H.style.height;H.style.height="auto";let de=H.getBoundingClientRect().height;H.style.height=se,Ih(de),w(Ct=>Ct.find(Pt=>Pt.toastId===h.id)?Ct.map(Pt=>Pt.toastId===h.id?{...Pt,height:de}:Pt):[{toastId:h.id,height:de,position:h.position},...Ct])},[re,h.title,h.description,w,h.id]);let jn=O.useCallback(()=>{vr(!0),ls(Zr.current),w(H=>H.filter(se=>se.toastId!==h.id)),setTimeout(()=>{E(h)},KS)},[h,E,w,Zr]);O.useEffect(()=>{if(h.promise&&yt==="loading"||h.duration===1/0||h.type==="loading")return;let H;return S||g||$&&Dh?(()=>{if(Nh.current<Fl.current){let se=new Date().getTime()-Fl.current;us.current=us.current-se}
91Nh.current=new Date().getTime()})():us.current!==1/0&&(Fl.current=new Date().getTime(),H=setTimeout(()=>{var se;(se=h.onAutoClose)==null||se.call(h,h),jn()},us.current)),()=>clearTimeout(H)},[S,g,h,yt,$,Dh,jn]),O.useEffect(()=>{h.delete&&jn()},[jn,h.delete]);function rb(){var H,se,de;return L!=null&&L.loading?O.createElement("div",{className:Ot(P==null?void 0:P.loader,(H=h==null?void 0:h.classNames)==null?void 0:H.loader,"sonner-loader"),"data-visible":yt==="loading"},L.loading):G?O.createElement("div",{className:Ot(P==null?void 0:P.loader,(se=h==null?void 0:h.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":yt==="loading"},G):O.createElement(ES,{className:Ot(P==null?void 0:P.loader,(de=h==null?void 0:h.classNames)==null?void 0:de.loader),visible:yt==="loading"})}return O.createElement("li",{tabIndex:0,ref:yr,className:Ot(D,Jw,P==null?void 0:P.toast,(t=h==null?void 0:h.classNames)==null?void 0:t.toast,P==null?void 0:P.default,P==null?void 0:P[yt],(n=h==null?void 0:h.classNames)==null?void 0:n[yt]),"data-sonner-toast":"","data-rich-colors":(r=h.richColors)!=null?r:_,"data-styled":!(h.jsx||h.unstyled||b),"data-mounted":re,"data-
91promise":!!h.promise,"data-swiped":$l,"data-removed":Rn,"data-visible":Yw,"data-y-position":eb,"data-x-position":tb,"data-index":v,"data-front":Qw,"data-swiping":On,"data-dismissible":Jr,"data-type":yt,"data-invert":nb,"data-swipe-out":Nn,"data-swipe-direction":Ee,"data-expanded":!!(S||C&&re),style:{"--index":v,"--toasts-before":v,"--z-index":k.length-v,"--offset":`${Rn?Ul:Zr.current}px`,"--initial-height":C?"auto":`${Yr}px`,...I,...h.style},onDragEnd:()=>{Qr(!1),ee(null),Xr.current=null},onPointerDown:H=>{Bl||!Jr||(Rh.current=new Date,ls(Zr.current),H.target.setPointerCapture(H.pointerId),H.target.tagName!=="BUTTON"&&(Qr(!0),Xr.current={x:H.clientX,y:H.clientY}))},onPointerUp:()=>{var H,se,de,Ct;if(Nn||!Jr)return;Xr.current=null;let Pt=Number(((H=yr.current)==null?void 0:H.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dn=Number(((se=yr.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),wr=new Date().getTime()-((de=Rh.current)==null?void 0:de.getTime()),It=J==="x"?Pt:Dn,Ln=Math.abs(It)/wr;if(Math.abs(It)>=WS||Ln>.11){ls(Zr.current),(Ct=h.onDismiss)==null||Ct.call(h,h),Me(J==="x"?Pt>0?"right":"left":Dn>0?"down":"up"),jn(),Io(!0),Ro(!1);return}Qr(!1),ee(null)},onPointerMove:H=>{var se,de,Ct,Pt;if(!Xr.current||!Jr||((se=window.getSelection())==null?void 0:se.toString().length)>0)return;let Dn=H.clientY-Xr.current.y,wr=H.clientX-Xr.current.x,It=(de=e.swipeDirections)!=null?de:HS(X);!J&&(Math.abs(wr)>1||Math.abs(Dn)>1)&&ee(Math.abs(wr)>Math.abs(Dn)?"x":"y");let Ln={x:0,y:0};J==="y"?(It.includes("top")||It.includes("bottom"))&&(It.includes("top")&&Dn<0||It.includes("bottom")&&Dn>0)&&(Ln.y=Dn):J==="x"&&(It.includes("left")||It.includes("right"))&&(It.includes("left")&&wr<0||It.includes("right")&&wr>0)&&(Ln.x=wr),(Math.abs(Ln.x)>0||Math.abs(Ln.y)>0)&&Ro(!0),(Ct=yr.current)==null||Ct.style.setProperty("--swipe-amount-x",`${Ln.x}px`),(Pt=yr.current)==null||Pt.style.setProperty("--swipe-amount-y",`${Ln.y}px`)}},Xw&&!h.jsx?O.createElement("button",{"aria-label":Q,"data-disabled":Bl,"data-close-button":!0,onClick:Bl||!Jr?()=>{}:()=>{var H;jn(),(H=h.onDismiss)==null||H.call(h,h)},className:Ot(P==null?void 0:P.closeButton,(i=h==null?void 0:h.classNames)==null?void 0:i.closeButton)},(s=L==null?void 0:L.close)!=null?s:PS):null,h.jsx||x.isValidElement(h.title)?h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title:O.createElement(O.Fragment,null,yt||h.icon||h.promise?O.createElement("div",{"data-icon":"",className:Ot(P==null?void 0:P.icon,(o=h==null?void 0:h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||rb():null,h.type!=="loading"?h.icon||(L==null?void 0:L[yt])||kS(yt):null):null,O.createElement("div",{"data-content":"",className:Ot(P==null?void 0:P.content,(a=h==null?void 0:h.classNames)==null?void 0:a.content)},O.createElement("div",{"data-title":"",className:Ot(P==null?void 0:P.title,(l=h==null?void 0:h.classNames)==null?void 0:l.title)},typeof h.title=="function"?h.title():h.title),h.description?O.createElement("div",{"data-description":"",className:Ot(K,Zw,P==null?void 0:P.description,(u=h==null?void 0:h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),x.isValidElement(h.cancel)?h.cancel:h.cancel&&Xo(h.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||N,onClick:H=>{var se,de;Xo(h.cancel)&&Jr&&((de=(se=h.cancel).onClick)==null||de.call(se,H),jn())},className:Ot(P==null?void 0:P.cancelButton,(c=h==null?void 0:h.classNames)==null?void 0:c.cancelButton)},h.cancel.label):null,x.isValidElement(h.action)?h.action:h.action&&Xo(h.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||B,onClick:H=>{var se,de;Xo(h.action)&&((de=(se=h.action).onClick)==null||de.call(se,H),!H.defaultPrevented&&jn())},className:Ot(P==null?void 0:P.actionButton,(d=h==null?void 0:h.classNames)==null?void 0:d.actionButton)},h.action.label):null))};function sp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function qS(e,t){let n={};return[e,t].forEach((r,i)=>{let s=i===1,o=s?"--mobile-offset":"--offset",a=s?US:$S;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${o}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var GS=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:o,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:d,duration:f,style:h,visibleToasts:b=MS,toastOptions:g,dir:w=sp(),gap:m=BS,loadingIcon:p,icons:v,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[E,_]=O.useState([]),A=O.useMemo(()=>Array.from(new Set([r].concat(E.filter($=>$.position).map($=>$.position)))),[E,r]),[I,N]=O.useState([]),[B,D]=O.useState(!1),[K,j]=O.useState(!1),[X,W]=O.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
91k":"light"),G=O.useRef(null),C=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=O.useRef(null),L=O.useRef(!1),Q=O.useCallback($=>{_(J=>{var ee;return(ee=J.find(Ee=>Ee.id===$.id))!=null&&ee.delete||Xe.dismiss($.id),J.filter(({id:Ee})=>Ee!==$.id)})},[]);return O.useEffect(()=>Xe.subscribe($=>{if($.dismiss){_(J=>J.map(ee=>ee.id===$.id?{...ee,delete:!0}:ee));return}setTimeout(()=>{Tv.flushSync(()=>{_(J=>{let ee=J.findIndex(Ee=>Ee.id===$.id);return ee!==-1?[...J.slice(0,ee),{...J[ee],...$},...J.slice(ee+1)]:[$,...J]})})})}),[]),O.useEffect(()=>{if(c!=="system"){W(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let $=window.matchMedia("(prefers-color-scheme: dark)");try{$.addEventListener("change",({matches:J})=>{W(J?"dark":"light")})}catch{$.addListener(({matches:ee})=>{try{W(ee?"dark":"light")}catch(Ee){console.error(Ee)}})}},[c]),O.useEffect(()=>{E.length<=1&&D(!1)},[E]),O.useEffect(()=>{let $=J=>{var ee,Ee;i.every(Me=>J[Me]||J.code===Me)&&(D(!0),(ee=G.current)==null||ee.focus()),J.code==="Escape"&&(document.activeElement===G.current||(Ee=G.current)!=null&&Ee.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[i]),O.useEffect(()=>{if(G.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[G.current]),O.createElement("section",{ref:t,"aria-label":`${k} ${C}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map(($,J)=>{var ee;let[Ee,Me]=$.split("-");return E.length?O.createElement("ol",{key:$,dir:w==="auto"?sp():w,tabIndex:-1,ref:G,className:a,"data-sonner-toaster":!0,"data-theme":X,"data-y-position":Ee,"data-lifted":B&&E.length>1&&!s,"data-x-position":Me,style:{"--front-toast-height":`${((ee=I[0])==null?void 0:ee.height)||0}px`,"--width":`${FS}px`,"--gap":`${m}px`,...h,...qS(l,u)},onBlur:re=>{L.current&&!re.currentTarget.contains(re.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=re.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{K||D(!1)},onDragEnd:()=>D(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},E.filter(re=>!re.position&&J===0||re.position===$).map((re,Gr)=>{var Rn,vr;return O.createElement(VS,{key:re.id,icons:v,index:Gr,toast:re,defaultRichColors:d,duration:(Rn=g==null?void 0:g.duration)!=null?Rn:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:n,visibleToasts:b,closeButton:(vr=g==null?void 0:g.closeButton)!=null?vr:o,interacting:K,position:$,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:Q,toasts:E.filter(On=>On.position==re.position),heights:I.filter(On=>On.position==re.position),setHeights:N,expandByDefault:s,gap:m,loadingIcon:p,expanded:B,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const QS=({...e})=>{const{theme:t="system"}=xS();return y.jsx(GS,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},YS=["top","right","bottom","left"],hr=Math.min,lt=Math.max,Ja=Math.round,ea=Math.floor,an=e=>({x:e,y:e}),JS={left:"right",right:"left",bottom:"top",top:"bottom"},ZS={start:"end",end:"start"};function jc(e,t,n){return lt(e,hr(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function An(e){return e.split("-")[0]}function rs(e){return e.split("-")[1]}function sh(e){return e==="x"?"y":"x"}function oh(e){return e==="y"?"height":"width"}const XS=new Set(["top","bottom"]);function rn(e){return XS.has(An(e))?"y":"x"}function ah(e){return sh(rn(e))}
vendor: 9,894 bytes, line 91
91function eE(e,t,n){n===void 0&&(n=!1);const r=rs(e),i=ah(e),s=oh(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Za(o)),[o,Za(o)]}function tE(e){const t=Za(e);return[Dc(e),t,Dc(t)]}function Dc(e){return e.replace(/start|end/g,t=>ZS[t])}const op=["left","right"],ap=["right","left"],nE=["top","bottom"],rE=["bottom","top"];function iE(e,t,n){switch(e){case"top":case"bottom":return n?t?ap:op:t?op:ap;case"left":case"right":return t?nE:rE;default:return[]}}function sE(e,t,n,r){const i=rs(e);let s=iE(An(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(Dc)))),s}function Za(e){return e.replace(/left|right|bottom|top/g,t=>JS[t])}function oE(e){return{top:0,right:0,bottom:0,left:0,...e}}function my(e){return typeof e!="number"?oE(e):{top:e,right:e,bottom:e,left:e}}function Xa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function lp(e,t,n){let{reference:r,floating:i}=e;const s=rn(t),o=ah(t),a=oh(o),l=An(t),u=s==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(rs(t)){case"start":h[o]-=f*(n&&u?-1:1);break;case"end":h[o]+=f*(n&&u?-1:1);break}return h}const aE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=lp(u,r,l),f=r,h={},b=0;for(let g=0;g<a.length;g++){const{name:w,fn:m}=a[g],{x:p,y:v,data:k,reset:S}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,d=v??d,h={...h,[w]:{...h[w],...k}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:c,y:d}=lp(u,f,l)),g=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function ro(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Tn(t,e),b=my(h),w=a[f?d==="floating"?"reference":"floating":d],m=Xa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=d==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Xa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:v,strategy:l}):p);return{top:(m.top-S.top+b.top)/k.y,bottom:(S.bottom-m.bottom+b.bottom)/k.y,left:(m.left-S.left+b.left)/k.x,right:(S.right-m.right+b.right)/k.x}}const lE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Tn(e,t)||{};if(u==null)return{};const d=my(c),f={x:n,y:r},h=ah(i),b=oh(h),g=await o.getDimensions(u),w=h==="y",m=w?"top":"left",p=w?"bottom":"right",v=w?"clientHeight":"clientWidth",k=s.reference[b]+s.reference[h]-f[h]-s.floating[b],S=f[h]-s.reference[h],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=E?E[v]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=a.floating[v]||s.floating[b]);const A=k/2-S/2,I=_/2-g[b]/2-1,N=hr(d[m],I),B=hr(d[p],I),D=N,K=_-g[b]-B,j=_/2-g[b]/2+A,X=jc(D,j,K),W=!l.arrow&&rs(i)!=null&&j!==X&&s.reference[b]/2-(j<D?N:B)-g[b]/2<0,G=W?j<D?j-D:j-K:0;return{[h]:f[h]+G,data:{[h]:X,centerOffset:j-X-G,...W&&{alignmentOffset:G}},reset:W}}}),uE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...w}=Tn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const m=An(i),p=rn(a),v=An(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(v||!g?[Za(a)]:tE(a)),E=b!=="none";!f&&E&&S.push(...sE(a,g,b,k));const _=[a,...S],A=await ro(t,w),I=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&I.push(A[m]),d){const j=eE(i,o,k);I.push(A[j[0]],A[j[1]])}if(N=[...N,{placement:i,overflows:I}],!I.every(j=>j<=0)){var B,D;const j=(((B=s.flip)==null?void 0:B.index)||0)+1,X=_[j];if(X&&(!(d==="alignment"?p!==rn(X):!1)||N.every(C=>C.overflows[0]>0&&rn(C.placement)===p)))return{data:{index:j,overflows:N},reset:{placement:X}};let W=(D=N.filter(G=>G.overflows[0]<=0).sort((G,C)=>G.overflows[1]-C.overflows[1])[0])==null?void 0:D.placement;if(!W)switch(h){case"bestFit":{var K;const G=(K=N.filter(C=>{if(E){const P=rn(C.placement);return P===p||P==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((C,P)=>C[1]-P[1])[0])==null?void 0:K[0];G&&(W=G);break}case"initialPlacement":W=a;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function up(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cp(e){return YS.some(t=>e[t]>=0)}const cE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Tn(e,t);switch(r){case"referenceHidden":{const s=await ro(t,{...i,elementContext:"reference"}),o=up(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:cp(o)}}}case"escaped":{const s=await ro(t,{...i,altBoundary:!0}),o=up(s,n.floating);return{data:{escapedOffsets:o,escaped:cp(o)}}}default:return{}}}}},gy=new Set(["left","top"]);async function dE(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=An(n),a=rs(n),l=rn(n)==="y",u=gy.has(o)?-1:1,c=s&&l?-1:1,d=Tn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof b=="number"&&(h=a==="end"?b*-1:b),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const hE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await dE(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},fE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:w=>{let{x:m,y:p}=w;return{x:m,y:p}}},...l}=Tn(e,t),u={x:n,y:r},c=await ro(t,l),d=rn(An(i)),f=sh(d);let h=u[f],b=u[d];if(s){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=h+c[w],v=h-c[m];h=jc(p,h,v)}if(o){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=b+c[w],v=b-c[m];b=jc(p,b,v)}const g=a.fn({...t,[f]:h,[d]:b});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:s,[d]:o}}}}}},pE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Tn(e,t),c={x:n,y:r},d=rn(i),f=sh(d);let h=c[f],b=c[d];const g=Tn(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",k=s.reference[f]-s.floating[v]+w.mainAxis,S=s.reference[f]+s.reference[v]-w.mainAxis;h<k?h=k:h>S&&(h=S)}if(u){var m,p;const v=f==="y"?"width":"height",k=gy.has(An(i)),S=s.reference[d]-s.floating[v]+(k&&((m=o.offset)==null?void 0:m[d])||0)+(k?0:w.crossAxis),E=s.reference[d]+s.reference[v]+(k?0:((p=o.offset)==null?void 0:p[d])||0)-(k?w.crossAxis:0);b<S?b=S:b>E&&(b=E)}return{[f]:h,[d]:b}}}},mE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=Tn(e,t),c=await ro(t,u),d=An(i),f=rs(i),h=rn(i)==="y",{width:b,height:g}=s.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,w=f==="end"?"top":"bottom");const p=g-c.top-c.bottom,v=b-c.left-c.right,k=hr(g-c[w],p),S=hr(b-c[m],v),E=!t.middlewareData.shift;let _=k,A=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=p),E&&!f){const N=lt(c.left,0),B=lt(c.right,0),D=lt(c.top,0),K=lt(c.bottom,0);h?A=b-2*(N!==0||B!==0?N+B:lt(c.left,c.right)):_=g-2*(D!==0||K!==0?D+K:lt(c.top,c.bottom))}await l({...t,availableWidth:A,availableHeight:_});const I=await o.getDimensions(a.floating);return b!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Tl(){return typeof window<"u"}function is(e){return vy(e)?(e.nodeName||"").toLowerCase():"#document"}function ft(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function cn(e){var t;return(t=(vy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vy(e){return Tl()?e instanceof Node||e instanceof ft(e).Node:!1}function qt(e){return Tl()?e instanceof Element||e instanceof ft(e).Element:!1}function ln(e){return Tl()?e instanceof HTMLElement||e instanceof ft(e).HTMLElement:!1}function dp(e){return!Tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ft(e).ShadowRoot}const gE=new Set(["inline","contents"]);function To(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Gt(e);
vendor: 4,121 bytes, line 91
91return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!gE.has(i)}const vE=new Set(["table","td","th"]);function yE(e){return vE.has(is(e))}const wE=[":popover-open",":modal"];function Al(e){return wE.some(t=>{try{return e.matches(t)}catch{return!1}})}const bE=["transform","translate","scale","rotate","perspective"],xE=["transform","translate","scale","rotate","perspective","filter"],kE=["paint","layout","strict","content"];function lh(e){const t=uh(),n=qt(e)?Gt(e):e;return bE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||xE.some(r=>(n.willChange||"").includes(r))||kE.some(r=>(n.contain||"").includes(r))}function SE(e){let t=fr(e);for(;ln(t)&&!Qi(t);){if(lh(t))return t;if(Al(t))return null;t=fr(t)}return null}function uh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EE=new Set(["html","body","#document"]);function Qi(e){return EE.has(is(e))}function Gt(e){return ft(e).getComputedStyle(e)}function Cl(e){return qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fr(e){if(is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dp(e)&&e.host||cn(e);return dp(t)?t.host:t}function yy(e){const t=fr(e);return Qi(t)?e.ownerDocument?e.ownerDocument.body:e.body:ln(t)&&To(t)?t:yy(t)}function io(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=yy(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ft(i);if(s){const a=Lc(o);return t.concat(o,o.visualViewport||[],To(i)?i:[],a&&n?io(a):[])}return t.concat(i,io(i,[],n))}function Lc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wy(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ln(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=Ja(n)!==s||Ja(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function ch(e){return qt(e)?e:e.contextElement}function Ri(e){const t=ch(e);if(!ln(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=wy(t);let o=(s?Ja(n.width):n.width)/r,a=(s?Ja(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _E=an(0);function by(e){const t=ft(e);return!uh()||!t.visualViewport?_E:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ft(e)?!1:t}function Hr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=ch(e);let o=an(1);t&&(r?qt(r)&&(o=Ri(r)):o=Ri(e));const a=TE(s,n,r)?by(s):an(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,d=i.height/o.y;if(s){const f=ft(s),h=r&&qt(r)?ft(r):r;let b=f,g=Lc(b);for(;g&&r&&h!==b;){const w=Ri(g),m=g.getBoundingClientRect(),p=Gt(g),v=m.left+(g.clientLeft+parseFloat(p.paddingLeft))*w.x,k=m.top+(g.clientTop+parseFloat(p.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=v,u+=k,b=ft(g),g=Lc(b)}}return Xa({width:c,height:d,x:l,y:u})}function dh(e,t){const n=Cl(e).scrollLeft;return t?t.left+n:Hr(cn(e)).left+n}function xy(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:dh(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function AE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=cn(r),a=t?Al(t.floating):!1;if(r===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=an(1);const c=an(0),d=ln(r);if((d||!d&&!s)&&((is(r)!=="body"||To(o))&&(l=Cl(r)),ln(r))){const h=Hr(r);u=Ri(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=o&&!d&&!s?xy(o,l,!0):an(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function CE(e){return Array.from(e.getClientRects())}function PE(e){const t=cn(e),n=Cl(e),r=e.ownerDocument.body,i=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+dh(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(o+=lt(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}
vendor: 13,050 bytes, line 91
91function IE(e,t){const n=ft(e),r=cn(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const u=uh();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}const RE=new Set(["absolute","fixed"]);function OE(e,t){const n=Hr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ln(e)?Ri(e):an(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:o,height:a,x:l,y:u}}function hp(e,t,n){let r;if(t==="viewport")r=IE(e,n);else if(t==="document")r=PE(cn(e));else if(qt(t))r=OE(t,n);else{const i=by(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Xa(r)}function ky(e,t){const n=fr(e);return n===t||!qt(n)||Qi(n)?!1:Gt(n).position==="fixed"||ky(n,t)}function NE(e,t){const n=t.get(e);if(n)return n;let r=io(e,[],!1).filter(a=>qt(a)&&is(a)!=="body"),i=null;const s=Gt(e).position==="fixed";let o=s?fr(e):e;for(;qt(o)&&!Qi(o);){const a=Gt(o),l=lh(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&RE.has(i.position)||To(o)&&!l&&ky(e,o))?r=r.filter(c=>c!==o):i=a,o=fr(o)}return t.set(e,r),r}function jE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?Al(t)?[]:NE(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=hp(t,c,i);return u.top=lt(d.top,u.top),u.right=hr(d.right,u.right),u.bottom=hr(d.bottom,u.bottom),u.left=lt(d.left,u.left),u},hp(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function DE(e){const{width:t,height:n}=wy(e);return{width:t,height:n}}function LE(e,t,n){const r=ln(t),i=cn(t),s=n==="fixed",o=Hr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=an(0);function u(){l.x=dh(i)}if(r||!r&&!s)if((is(t)!=="body"||To(i))&&(a=Cl(t)),r){const h=Hr(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const c=i&&!r&&!s?xy(i,a):an(0),d=o.left+a.scrollLeft-l.x-c.x,f=o.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:o.width,height:o.height}}function bu(e){return Gt(e).position==="static"}function fp(e,t){if(!ln(e)||Gt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return cn(e)===n&&(n=n.ownerDocument.body),n}function Sy(e,t){const n=ft(e);if(Al(e))return n;if(!ln(e)){let i=fr(e);for(;i&&!Qi(i);){if(qt(i)&&!bu(i))return i;i=fr(i)}return n}let r=fp(e,t);for(;r&&yE(r)&&bu(r);)r=fp(r,t);return r&&Qi(r)&&bu(r)&&!lh(r)?n:r||SE(e)||n}const zE=async function(e){const t=this.getOffsetParent||Sy,n=this.getDimensions,r=await n(e.floating);return{reference:LE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ME(e){return Gt(e).direction==="rtl"}const $E={convertOffsetParentRelativeRectToViewportRelativeRect:AE,getDocumentElement:cn,getClippingRect:jE,getOffsetParent:Sy,getElementRects:zE,getClientRects:CE,getDimensions:DE,getScale:Ri,isElement:qt,isRTL:ME};function Ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UE(e,t){let n=null,r;const i=cn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;const b=ea(d),g=ea(i.clientWidth-(c+f)),w=ea(i.clientHeight-(d+h)),m=ea(c),v={rootMargin:-b+"px "+-g+"px "+-w+"px "+-m+"px",threshold:lt(0,hr(1,l))||1};let k=!0;function S(E){const _=E[0].intersectionRatio;if(_!==l){if(!k)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Ey(u,e.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return o(!0),s}function FE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=ch(e),c=i||s?[...u?io(u):[],...io(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),s&&m.addEventListener("resize",n)});const d=u&&a?UE(u,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let b,g=l?Hr(e):null;l&&w();function w(){const m=Hr(e);g&&!Ey(g,m)&&n(),g=m,b=requestAnimationFrame(w)}return n(),()=>{var m;c.forEach(p=>{i&&p.removeEventListener("scroll",n),s&&p.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const BE=hE,WE=fE,KE=uE,HE=mE,VE=cE,pp=lE,qE=pE,GE=(e,t,n)=>{const r=new Map,i={platform:$E,...n},s={...i.platform,_c:r};return aE(e,t,{...i,platform:s})};var QE=typeof document<"u",YE=function(){},xa=QE?x.useLayoutEffect:YE;function el(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!el(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!el(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function _y(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mp(e,t){const n=_y(e);return Math.round(t*n)/n}function xu(e){const t=x.useRef(e);return xa(()=>{t.current=e}),t}function JE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=x.useState(r);el(f,r)||h(r);const[b,g]=x.useState(null),[w,m]=x.useState(null),p=x.useCallback(C=>{C!==E.current&&(E.current=C,g(C))},[]),v=x.useCallback(C=>{C!==_.current&&(_.current=C,m(C))},[]),k=s||b,S=o||w,E=x.useRef(null),_=x.useRef(null),A=x.useRef(c),I=l!=null,N=xu(l),B=xu(i),D=xu(u),K=x.useCallback(()=>{if(!E.current||!_.current)return;const C={placement:t,strategy:n,middleware:f};B.current&&(C.platform=B.current),GE(E.current,_.current,C).then(P=>{const L={...P,isPositioned:D.current!==!1};j.current&&!el(A.current,L)&&(A.current=L,Eo.flushSync(()=>{d(L)}))})},[f,t,n,B,D]);xa(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,d(C=>({...C,isPositioned:!1})))},[u]);const j=x.useRef(!1);xa(()=>(j.current=!0,()=>{j.current=!1}),[]),xa(()=>{if(k&&(E.current=k),S&&(_.current=S),k&&S){if(N.current)return N.current(k,S,K);K()}},[k,S,K,N,I]);const X=x.useMemo(()=>({reference:E,floating:_,setReference:p,setFloating:v}),[p,v]),W=x.useMemo(()=>({reference:k,floating:S}),[k,S]),G=x.useMemo(()=>{const C={position:n,left:0,top:0};if(!W.floating)return C;const P=mp(W.floating,c.x),L=mp(W.floating,c.y);return a?{...C,transform:"translate("+P+"px, "+L+"px)",..._y(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:L}},[n,a,W.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:K,refs:X,elements:W,floatingStyles:G}),[c,K,X,W,G])}const ZE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pp({element:r.current,padding:i}).fn(n):{}:r?pp({element:r,padding:i}).fn(n):{}}}},XE=(e,t)=>({...BE(e),options:[e,t]}),e_=(e,t)=>({...WE(e),options:[e,t]}),t_=(e,t)=>({...qE(e),options:[e,t]}),n_=(e,t)=>({...KE(e),options:[e,t]}),r_=(e,t)=>({...HE(e),options:[e,t]}),i_=(e,t)=>({...VE(e),options:[e,t]}),s_=(e,t)=>({...ZE(e),options:[e,t]});var o_="Arrow",Ty=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return y.jsx(Je.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ty.displayName=o_;var a_=Ty;function l_(e){const[t,n]=x.useState(void 0);return dr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ay="Popper",[Cy,Py]=Sl(Ay),[$I,Iy]=Cy(Ay),Ry="PopperAnchor",Oy=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Iy(Ry,n),o=x.useRef(null),a=Vt(t,o);return x.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:y.jsx(Je.div,{...i,ref:a})});Oy.displayName=Ry;var hh="PopperContent",[u_,c_]=Cy(hh),Ny=x.forwardRef((e,t)=>{var re,Gr,Rn,vr,On,Qr;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:b,...g}=e,w=Iy(hh,n),[m,p]=x.useState(null),v=Vt(t,Nn=>p(Nn)),[k,S]=x.useState(null),E=l_(k),_=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,I=r+(s!=="center"?"-"+s:""),N=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},B=Array.isArray(u)?u:[u],D=B.length>0,K={padding:N,boundary:B.filter(h_),altBoundary:D},{refs:j,floatingStyles:X,placement:W,isPositioned:G,middlewareData:C}=JE({strategy:"fixed",placement:I,whileElementsMounted:(...Nn)=>FE(...Nn,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[XE({mainAxis:i+A,alignmentAxis:o}),l&&e_({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?t_():void 0,...K}),l&&n_({...K}),r_({...K,apply:({elements:Nn,rects:Io,availableWidth:$l,availableHeight:Ro})=>{const{width:Ul,height:ls}=Io.reference,Yr=Nn.floating.style;Yr.setProperty("--radix-popper-available-width",`${$l}px`),Yr.setProperty("--radix-popper-available-height",`${Ro}px`),Yr.setProperty("--radix-popper-anchor-width",`${Ul}px`),Yr.setProperty("--radix-popper-anchor-height",`${ls}px`)}}),k&&s_({element:k,padding:a}),f_({arrowWidth:_,arrowHeight:A}),f&&i_({strategy:"referenceHidden",...K})]}),[P,L]=Ly(W),Q=cr(b);dr(()=>{G&&(Q==null||Q())},[G,Q]);const $=(re=C.arrow)==null?void 0:re.x,J=(Gr=C.arrow)==null?void 0:Gr.y,ee=((Rn=C.arrow)==null?void 0:Rn.centerOffset)!==0,[Ee,Me]=x.useState();return dr(()=>{m&&Me(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:G?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(vr=C.transformOrigin)==null?void 0:vr.x,(On=C.transformOrigin)==null?void 0:On.y].join(" "),...((Qr=C.hide)==null?void 0:Qr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(u_,{scope:n,placedSide:P,onArrowChange:S,arrowX:$,arrowY:J,shouldHideArrow:ee,children:y.jsx(Je.div,{"data-side":P,"data-align":L,...g,ref:v,style:{...g.style,animation:G?void 0:"none"}})})})});Ny.displayName=hh;var jy="PopperArrow",d_={top:"bottom",right:"left",bottom:"top",left:"right"},Dy=x.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=c_(jy,r),o=d_[s.placedSide];return y.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:y.jsx(a_,{...i,ref:n,style:{...i.style,display:"block"}})})});Dy.displayName=jy;function h_(e){return e!==null}var f_=e=>({name:"transformOrigin",options:e,fn(t){var w,m,p;const{placement:n,rects:r,middlewareData:i}=t,o=((w=i.arrow)==null?void 0:w.centerOffset)!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=Ly(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=i.arrow)==null?void 0:m.x)??0)+a/2,h=(((p=i.arrow)==null?void 0:p.y)??0)+l/2;let b="",g="";return u==="bottom"?(b=o?d:`${f}px`,g=`${-l}px`):u==="top"?(b=o?d:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,g=o?d:`${h}px`):u==="left"&&(b=`${r.floating.width+l}px`,g=o?d:`${h}px`),{data:{x:b,y:g}}}});function Ly(e){const[t,n="center"]=e.split("-");return[t,n]}var p_=Oy,m_=Ny,g_=Dy,[Pl,UI]=Sl("Tooltip",[Py]),fh=Py(),zy="TooltipProvider",v_=700,gp="tooltip.open",[y_,My]=Pl(zy),$y=e=>{const{__scopeTooltip:t,delayDuration:n=v_,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,o=x.useRef(!0),a=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),y.jsx(y_,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>
vendor: 5,838 bytes, line 91
91o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(u=>{a.current=u},[]),disableHoverableContent:i,children:s})};$y.displayName=zy;var Uy="Tooltip",[FI,Il]=Pl(Uy),zc="TooltipTrigger",w_=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Il(zc,n),s=My(zc,n),o=fh(n),a=x.useRef(null),l=Vt(t,a,i.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),d=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(p_,{asChild:!0,...o,children:y.jsx(Je.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Pe(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Pe(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Pe(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Pe(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Pe(e.onBlur,i.onClose),onClick:Pe(e.onClick,i.onClose)})})});w_.displayName=zc;var b_="TooltipPortal",[BI,x_]=Pl(b_,{forceMount:void 0}),Yi="TooltipContent",Fy=x.forwardRef((e,t)=>{const n=x_(Yi,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=Il(Yi,e.__scopeTooltip);return y.jsx(Xd,{present:r||o.open,children:o.disableHoverableContent?y.jsx(By,{side:i,...s,ref:t}):y.jsx(k_,{side:i,...s,ref:t})})}),k_=x.forwardRef((e,t)=>{const n=Il(Yi,e.__scopeTooltip),r=My(Yi,e.__scopeTooltip),i=x.useRef(null),s=Vt(t,i),[o,a]=x.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=x.useCallback(()=>{a(null),d(!1)},[d]),h=x.useCallback((b,g)=>{const w=b.currentTarget,m={x:b.clientX,y:b.clientY},p=A_(m,w.getBoundingClientRect()),v=C_(m,p),k=P_(g.getBoundingClientRect()),S=R_([...v,...k]);a(S),d(!0)},[d]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&c){const b=w=>h(w,c),g=w=>h(w,l);return l.addEventListener("pointerleave",b),c.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",g)}}},[l,c,h,f]),x.useEffect(()=>{if(o){const b=g=>{const w=g.target,m={x:g.clientX,y:g.clientY},p=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),v=!I_(m,o);p?f():v&&(f(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,c,o,u,f]),y.jsx(By,{...e,ref:s})}),[S_,E_]=Pl(Uy,{isInside:!1}),__=$x("TooltipContent"),By=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=Il(Yi,n),u=fh(n),{onClose:c}=l;return x.useEffect(()=>(document.addEventListener(gp,c),()=>document.removeEventListener(gp,c)),[c]),x.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),y.jsx(Zd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:y.jsxs(m_,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(__,{children:r}),y.jsx(S_,{scope:n,isInside:!0,children:y.jsx(ck,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Fy.displayName=Yi;var Wy="TooltipArrow",T_=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=fh(n);return E_(Wy,n).isInside?null:y.jsx(g_,{...i,...r,ref:t})});T_.displayName=Wy;function A_(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function C_(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function P_(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function I_(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s],l=t[o],u=a.x,c=a.y,d=l.x,f=l.y;c>r!=f>r&&n<(d-u)*(r-c)/(f-c)+u&&(i=!i)}return i}function R_(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),O_(t)}function O_(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var N_=$y,Ky=Fy;const j_=N_,D_=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Ky,{ref:r,sideOffset:t,className:un("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
91de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));D_.displayName=Ky.displayName;var Rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ol=typeof window>"u"||"Deno"in globalThis;function Dt(){}function L_(e,t){return typeof e=="function"?e(t):e}function z_(e){return typeof e=="number"&&e>=0&&e!==1/0}function M_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mc(e,t){return typeof e=="function"?e(t):e}function $_(e,t){return typeof e=="function"?e(t):e}function vp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==ph(o,t.options))return!1}else if(!oo(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function yp(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(so(t.options.mutationKey)!==so(s))return!1}else if(!oo(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ph(e,t){return((t==null?void 0:t.queryKeyHashFn)||so)(e)}function so(e){return JSON.stringify(e,(t,n)=>$c(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function oo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>oo(e[n],t[n])):!1}function Hy(e,t){if(e===t)return e;const n=wp(e)&&wp(t);if(n||$c(e)&&$c(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&l.has(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,u++):(a[d]=Hy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&u++)}return i===o&&u===i?e:a}return t}function wp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $c(e){if(!bp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!bp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bp(e){return Object.prototype.toString.call(e)==="[object Object]"}function U_(e){return new Promise(t=>{setTimeout(t,e)})}function F_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hy(e,t):t}function B_(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W_(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var mh=Symbol();function Vy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===mh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Rr,qn,ji,om,K_=(om=class extends Rl{constructor(){super();ne(this,Rr);ne(this,qn);ne(this,ji);V(this,ji,t=>{if(!Ol&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,qn)||this.setEventListener(T(this,ji))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,qn))==null||t.call(this),V(this,qn,void 0))}setEventListener(t){var n;V(this,ji,t),(n=T(this,qn))==null||n.call(this),V(this,qn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Rr)!==t&&(V(this,Rr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Rr)=="boolean"?T(this,Rr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Rr=new WeakMap,qn=new WeakMap,ji=new WeakMap,om),qy=new K_,Di,Gn,Li,am,H_=(am=class extends Rl{constructor(){super();ne(this,Di,!0);ne(this,Gn);ne(this,Li);V(this,Li,t=>{if(!Ol&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Gn)||this.setEventListener(T(this,Li))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Gn))==null||t.call(this),V(this,Gn,void 0))}setEventListener(t){var n;
vendor: 4,152 bytes, line 91
91V(this,Li,t),(n=T(this,Gn))==null||n.call(this),V(this,Gn,t(this.setOnline.bind(this)))}setOnline(t){T(this,Di)!==t&&(V(this,Di,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Di)}},Di=new WeakMap,Gn=new WeakMap,Li=new WeakMap,am),tl=new H_;function V_(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function q_(e){return Math.min(1e3*2**e,3e4)}function Gy(e){return(e??"online")==="online"?tl.isOnline():!0}var Qy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ku(e){return e instanceof Qy}function Yy(e){let t=!1,n=0,r=!1,i;const s=V_(),o=g=>{var w;r||(f(new Qy(g)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>qy.isFocused()&&(e.networkMode==="always"||tl.isOnline())&&e.canRun(),c=()=>Gy(e.networkMode)&&e.canRun(),d=g=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,g),i==null||i(),s.resolve(g))},f=g=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,g),i==null||i(),s.reject(g))},h=()=>new Promise(g=>{var w;i=m=>{(r||u())&&g(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),b=()=>{if(r)return;let g;const w=n===0?e.initialPromise:void 0;try{g=w??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(d).catch(m=>{var E;if(r)return;const p=e.retry??(Ol?0:3),v=e.retryDelay??q_,k=typeof v=="function"?v(n,m):v,S=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,m);if(t||!S){f(m);return}n++,(E=e.onFail)==null||E.call(e,n,m),U_(k).then(()=>u()?void 0:h()).then(()=>{t?f(m):b()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?b():h().then(b),s)}}var G_=e=>setTimeout(e,0);function Q_(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=G_;const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var qe=Q_(),Or,lm,Jy=(lm=class{constructor(){ne(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z_(this.gcTime)&&V(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ol?1/0:5*60*1e3))}clearGcTimeout(){T(this,Or)&&(clearTimeout(T(this,Or)),V(this,Or,void 0))}},Or=new WeakMap,lm),zi,Nr,wt,jr,Be,vo,Dr,zt,fn,um,Y_=(um=class extends Jy{constructor(t){super();ne(this,zt);ne(this,zi);ne(this,Nr);ne(this,wt);ne(this,jr);ne(this,Be);ne(this,vo);ne(this,Dr);V(this,Dr,!1),V(this,vo,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,jr,t.client),V(this,wt,T(this,jr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,zi,Z_(this.options)),this.state=t.state??T(this,zi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,Be))==null?void 0:t.promise}setOptions(t){this.options={...T(this,vo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,wt).remove(this)}setData(t,n){const r=F_(this.state.data,t,this.options);return $e(this,zt,fn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){$e(this,zt,fn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=T(this,Be))==null?void 0:r.promise;return(i=T(this,Be))==null||i.cancel(t),n?n.then(Dt).catch(Dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,zi))}isActive(){return this.observers.some(t=>$_(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mh||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 91
91Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Mc(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!M_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,Be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,wt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,Be)&&(T(this,Dr)?T(this,Be).cancel({revert:!0}):T(this,Be).cancelRetry()),this.scheduleGc()),T(this,wt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||$e(this,zt,fn).call(this,{type:"invalidate"})}
vendor: 13,715 bytes, line 91
91fetch(t,n){var u,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,Be))return T(this,Be).continueRetry(),T(this,Be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(V(this,Dr,!0),r.signal)})},s=()=>{const f=Vy(this.options,n),b=(()=>{const g={client:T(this,jr),queryKey:this.queryKey,meta:this.meta};return i(g),g})();return V(this,Dr,!1),this.options.persister?this.options.persister(f,b,this):f(b)},a=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,jr),state:this.state,fetchFn:s};return i(f),f})();(u=this.options.behavior)==null||u.onFetch(a,this),V(this,Nr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&$e(this,zt,fn).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta});const l=f=>{var h,b,g,w;ku(f)&&f.silent||$e(this,zt,fn).call(this,{type:"error",error:f}),ku(f)||((b=(h=T(this,wt).config).onError)==null||b.call(h,f,this),(w=(g=T(this,wt).config).onSettled)==null||w.call(g,this.state.data,f,this)),this.scheduleGc()};return V(this,Be,Yy({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,b,g,w;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(m){l(m);return}(b=(h=T(this,wt).config).onSuccess)==null||b.call(h,f,this),(w=(g=T(this,wt).config).onSettled)==null||w.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,h)=>{$e(this,zt,fn).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{$e(this,zt,fn).call(this,{type:"pause"})},onContinue:()=>{$e(this,zt,fn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),T(this,Be).start()}},zi=new WeakMap,Nr=new WeakMap,wt=new WeakMap,jr=new WeakMap,Be=new WeakMap,vo=new WeakMap,Dr=new WeakMap,zt=new WeakSet,fn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...J_(r.data,this.options),fetchMeta:t.meta??null};case"success":return V(this,Nr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return ku(i)&&i.revert&&T(this,Nr)?{...T(this,Nr),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,wt).notify({query:this,type:"updated",action:t})})},um);function J_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Z_(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xt,cm,X_=(cm=class extends Rl{constructor(t={}){super();ne(this,Xt);this.config=t,V(this,Xt,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??ph(i,n);let o=this.get(s);return o||(o=new Y_({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){T(this,Xt).has(t.queryHash)||(T(this,Xt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Xt).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Xt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Xt).get(t)}getAll(){return[...T(this,Xt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vp(t,r)):n}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xt=new WeakMap,cm),en,He,Lr,tn,Un,dm,eT=(dm=class extends Jy{constructor(t){super();ne(this,tn);ne(this,en);ne(this,He);ne(this,Lr);this.mutationId=t.mutationId,V(this,He,t.mutationCache),V(this,en,[]),this.state=t.state||tT(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,en).includes(t)||(T(this,en).push(t),this.clearGcTimeout(),T(this,He).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,en,T(this,en).filter(n=>n!==t)),this.scheduleGc(),T(this,He).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,en).length||(this.state.status==="pending"?this.scheduleGc():T(this,He).remove(this))}continue(){var t;return((t=T(this,Lr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,a,l,u,c,d,f,h,b,g,w,m,p,v,k,S,E,_,A;const n=()=>{$e(this,tn,Un).call(this,{type:"continue"})};V(this,Lr,Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(I,N)=>{$e(this,tn,Un).call(this,{type:"failed",failureCount:I,error:N})},onPause:()=>{$e(this,tn,Un).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,He).canRun(this)}));const r=this.state.status==="pending",i=!T(this,Lr).canStart();try{if(r)n();else{$e(this,tn,Un).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(s=T(this,He).config).onMutate)==null?void 0:o.call(s,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&$e(this,tn,Un).call(this,{type:"pending",context:N,variables:t,isPaused:i})}const I=await T(this,Lr).start();return await((c=(u=T(this,He).config).onSuccess)==null?void 0:c.call(u,I,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,I,t,this.state.context)),await((b=(h=T(this,He).config).onSettled)==null?void 0:b.call(h,I,null,this.state.variables,this.state.context,this)),await((w=(g=this.options).onSettled)==null?void 0:w.call(g,I,null,t,this.state.context)),$e(this,tn,Un).call(this,{type:"success",data:I}),I}catch(I){try{throw await((p=(m=T(this,He).config).onError)==null?void 0:p.call(m,I,t,this.state.context,this)),await((k=(v=this.options).onError)==null?void 0:k.call(v,I,t,this.state.context)),await((E=(S=T(this,He).config).onSettled)==null?void 0:E.call(S,void 0,I,this.state.variables,this.state.context,this)),await((A=(_=this.options).onSettled)==null?void 0:A.call(_,void 0,I,t,this.state.context)),I}finally{$e(this,tn,Un).call(this,{type:"error",error:I})}}finally{T(this,He).runNext(this)}}},en=new WeakMap,He=new WeakMap,Lr=new WeakMap,tn=new WeakSet,Un=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),qe.batch(()=>{T(this,en).forEach(r=>{r.onMutationUpdate(t)}),T(this,He).notify({mutation:this,type:"updated",action:t})})},dm);function tT(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vn,Mt,yo,hm,nT=(hm=class extends Rl{constructor(t={}){super();ne(this,vn);ne(this,Mt);ne(this,yo);this.config=t,V(this,vn,new Set),V(this,Mt,new Map),V(this,yo,0)}build(t,n,r){const i=new eT({mutationCache:this,mutationId:++No(this,yo)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){T(this,vn).add(t);const n=ta(t);if(typeof n=="string"){const r=T(this,Mt).get(n);r?r.push(t):T(this,Mt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vn).delete(t)){const n=ta(t);if(typeof n=="string"){const r=T(this,Mt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&T(this,Mt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ta(t);if(typeof n=="string"){const r=T(this,Mt).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ta(t);if(typeof n=="string"){const i=(r=T(this,Mt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qe.batch(()=>{T(this,vn).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vn).clear(),T(this,Mt).clear()})}getAll(){return Array.from(T(this,vn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yp(n,r))}findAll(t={}){return this.getAll().filter(n=>yp(t,n))}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Dt))))}},vn=new WeakMap,Mt=new WeakMap,yo=new WeakMap,hm);function ta(e){var t;return(t=e.options.scope)==null?void 0:t.id}function xp(e){return{onFetch:(t,n)=>{var c,d,f,h,b;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((h=t.state.data)==null?void 0:h.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let g=!1;const w=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Vy(t.options,t.fetchOptions),p=async(v,k,S)=>{if(g)return Promise.reject();if(k==null&&v.pages.length)return Promise.resolve(v);const _=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return w(B),B})(),A=await m(_),{maxPages:I}=t.options,N=S?W_:B_;return{pages:N(v.pages,A,I),pageParams:N(v.pageParams,k,I)}};if(i&&s.length){const v=i==="backward",k=v?rT:kp,S={pages:s,pageParams:o},E=k(r,S);a=await p(S,E,v)}else{const v=e??s.length;do{const k=l===0?o[0]??r.initialPageParam:kp(r,a);if(l>0&&k==null)break;a=await p(a,k),l++}while(l<v)}return a};t.options.persister?t.fetchFn=()=>{var g,w;return(w=(g=t.options).persister)==null?void 0:w.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function kp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function rT(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var be,Qn,Yn,Mi,$i,Jn,Ui,Fi,fm,iT=(fm=class{constructor(e={}){ne(this,be);ne(this,Qn);ne(this,Yn);ne(this,Mi);ne(this,$i);ne(this,Jn);ne(this,Ui);ne(this,Fi);V(this,be,e.queryCache||new X_),V(this,Qn,e.mutationCache||new nT),V(this,Yn,e.defaultOptions||{}),V(this,Mi,new Map),V(this,$i,new Map),V(this,Jn,0)}mount(){No(this,Jn)._++,T(this,Jn)===1&&(V(this,Ui,qy.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,be).onFocus())})),V(this,Fi,tl.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,be).onOnline())})))}unmount(){var e,t;No(this,Jn)._--,T(this,Jn)===0&&((e=T(this,Ui))==null||e.call(this),V(this,Ui,void 0),(t=T(this,Fi))==null||t.call(this),V(this,Fi,void 0))}isFetching(e){return T(this,be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,Qn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,be).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Mc(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=T(this,be).get(r.queryHash),s=i==null?void 0:i.state.data,o=L_(t,s);if(o!==void 0)return T(this,be).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return qe.batch(()=>T(this,be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,be);qe.batch(()=>
91{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,be);return qe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=qe.batch(()=>T(this,be).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Dt).catch(Dt)}invalidateQueries(e,t={}){return qe.batch(()=>(T(this,be).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=qe.batch(()=>T(this,be).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Dt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,be).build(this,t);return n.isStaleByTime(Mc(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dt).catch(Dt)}fetchInfiniteQuery(e){return e.behavior=xp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dt).catch(Dt)}ensureInfiniteQueryData(e){return e.behavior=xp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tl.isOnline()?T(this,Qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,be)}getMutationCache(){return T(this,Qn)}getDefaultOptions(){return T(this,Yn)}setDefaultOptions(e){V(this,Yn,e)}setQueryDefaults(e,t){T(this,Mi).set(so(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Mi).values()],n={};return t.forEach(r=>{oo(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,$i).set(so(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,$i).values()],n={};return t.forEach(r=>{oo(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,Yn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ph(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===mh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,Yn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,be).clear(),T(this,Qn).clear()}},be=new WeakMap,Qn=new WeakMap,Yn=new WeakMap,Mi=new WeakMap,$i=new WeakMap,Jn=new WeakMap,Ui=new WeakMap,Fi=new WeakMap,fm),sT=x.createContext(void 0),oT=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(sT.Provider,{value:e,children:t}));/**
92 * react-router v7.12.0
93 *
94 * Copyright (c) Remix Software Inc.
95 *
96 * This source code is licensed under the MIT license found in the
97 * LICENSE.md file in the root directory of this source tree.
98 *
99 * @license MIT
100 */var Sp="popstate";function aT(e={}){function t(r,i){let{pathname:s,search:o,hash:a}=r.location;return Uc("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ao(i)}return uT(t,n,null,e)}function me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Tt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lT(){return Math.random().toString(36).substring(2,10)}function Ep(e,t){return{usr:e.state,key:e.key,idx:t}}function Uc(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ss(t):t,state:n,key:t&&t.key||r||lT()}}function ao({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ss(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function uT(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){a="POP";let w=c(),m=w==null?null:w-u;u=w,l&&l({action:a,location:g.location,delta:m})}function f(w,m){a="PUSH";let p=Uc(g.location,w,m);u=c()+1;let v=Ep(p,u),k=g.createHref(p);try{o.pushState(v,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(k)}s&&l&&l({action:a,location:g.location,delta:1})}function h(w,m){a="REPLACE";let p=Uc(g.location,w,m);u=c();let v=Ep(p,u),k=g.createHref(p);o.replaceState(v,"",k),s&&l&&l({action:a,location:g.location,delta:0})}function b(w){return cT(w)}let g={get action(){return a},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Sp,d),l=w,()=>{i.removeEventListener(Sp,d),l=null}},createHref(w){return t(i,w)},createURL:b,encodeLocation(w){let m=b(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(w){return o.go(w)}};return g}function cT(e,t=!1){let n="http://localhost";
100typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),me(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ao(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Zy(e,t,n="/"){return dT(e,t,n,!1)}function dT(e,t,n,r){let i=typeof t=="string"?ss(t):t,s=Cn(i.pathname||"/",n);if(s==null)return null;let o=Xy(e);hT(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=ST(s);a=xT(o[l],u,r)}return a}function Xy(e,t=[],n=[],r="",i=!1){let s=(o,a,l=i,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&l)return;me(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=xn([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(me(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Xy(o.children,t,f,d,l)),!(o.path==null&&!o.index)&&t.push({path:d,score:wT(d,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))s(o,a);else for(let u of ew(o.path))s(o,a,!0,u)}),t}function ew(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=ew(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function hT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var fT=/^:[\w-]+$/,pT=3,mT=2,gT=1,vT=10,yT=-2,_p=e=>e==="*";function wT(e,t){let n=e.split("/"),r=n.length;return n.some(_p)&&(r+=yT),t&&(r+=mT),n.filter(i=>!_p(i)).reduce((i,s)=>i+(fT.test(s)?pT:s===""?gT:vT),r)}function bT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function xT(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",d=nl({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=nl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
100Object.assign(i,d.params),o.push({params:i,pathname:xn([s,d.pathname]),pathnameBase:AT(xn([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=xn([s,d.pathnameBase]))}return o}function nl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},f)=>{if(c==="*"){let b=a[f]||"";o=s.slice(0,s.length-b.length).replace(/(.)\/+$/,"$1")}const h=a[f];return d&&!h?u[c]=void 0:u[c]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function kT(e,t=!1,n=!0){Tt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function ST(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Tt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Cn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var tw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ET=e=>tw.test(e);function _T(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ss(e):e,s;if(n)if(ET(n))s=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),Tt(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?s=Tp(n.substring(1),"/"):s=Tp(n,t)}else s=t;return{pathname:s,search:CT(r),hash:PT(i)}}function Tp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Su(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function TT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gh(e){let t=TT(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function vh(e,t,n,r=!1){let i;typeof e=="string"?i=ss(e):(i={...e},me(!i.pathname||!i.pathname.includes("?"),Su("?","pathname","search",i)),me(!i.pathname||!i.pathname.includes("#"),Su("#","pathname","hash",i)),me(!i.search||!i.search.includes("#"),Su("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=_T(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var xn=e=>e.join("/").replace(/\/\/+/g,"/"),AT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,IT=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function RT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function OT(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rw(e,t){let n=e;
100if(typeof n!="string"||!tw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(nw)try{let s=new URL(window.location.href),o=n.startsWith("//")?new URL(s.protocol+n):new URL(n),a=Cn(o.pathname,t);o.origin===s.origin&&a!=null?n=a+o.search+o.hash:i=!0}catch{Tt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var iw=["POST","PUT","PATCH","DELETE"];new Set(iw);var NT=["GET",...iw];new Set(NT);var os=x.createContext(null);os.displayName="DataRouter";var Nl=x.createContext(null);Nl.displayName="DataRouterState";var jT=x.createContext(!1),sw=x.createContext({isTransitioning:!1});sw.displayName="ViewTransition";var DT=x.createContext(new Map);DT.displayName="Fetchers";var LT=x.createContext(null);LT.displayName="Await";var vt=x.createContext(null);vt.displayName="Navigation";var Ao=x.createContext(null);Ao.displayName="Location";var Qt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var yh=x.createContext(null);yh.displayName="RouteError";var ow="REACT_ROUTER_ERROR",zT="REDIRECT",MT="ROUTE_ERROR_RESPONSE";function $T(e){if(e.startsWith(`${ow}:${zT}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function UT(e){if(e.startsWith(`${ow}:${MT}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new IT(t.status,t.statusText,t.data)}catch{}}function FT(e,{relative:t}={}){me(as(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=x.useContext(vt),{hash:i,pathname:s,search:o}=Co(e,{relative:t}),a=s;return n!=="/"&&(a=s==="/"?n:xn([n,s])),r.createHref({pathname:a,search:o,hash:i})}function as(){return x.useContext(Ao)!=null}function At(){return me(as(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Ao).location}var aw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lw(e){x.useContext(vt).static||x.useLayoutEffect(e)}function wh(){let{isDataRoute:e}=x.useContext(Qt);return e?tA():BT()}function BT(){me(as(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(os),{basename:t,navigator:n}=x.useContext(vt),{matches:r}=x.useContext(Qt),{pathname:i}=At(),s=JSON.stringify(gh(r)),o=x.useRef(!1);return lw(()=>{o.current=!0}),x.useCallback((l,u={})=>{if(Tt(o.current,aw),!o.current)return;if(typeof l=="number"){n.go(l);return}let c=vh(l,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:xn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,s,i,e])}x.createContext(null);function WT(){let{matches:e}=x.useContext(Qt),t=e[e.length-1];return t?t.params:{}}function Co(e,{relative:t}={}){let{matches:n}=x.useContext(Qt),{pathname:r}=At(),i=JSON.stringify(gh(n));return x.useMemo(()=>vh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function KT(e,t){return uw(e,t)}function uw(e,t,n,r,i){var p;me(as(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(vt),{matches:o}=x.useContext(Qt),a=o[o.length-1],l=a?a.params:{},u=a?a.pathname:"/",c=a?a.pathnameBase:"/",d=a&&a.route;{let v=d&&d.path||"";dw(u,!d||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
101
102Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=At(),h;if(t){let v=typeof t=="string"?ss(t):t;me(c==="/"||((p=v.pathname)==null?void 0:p.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${v.pathname}" was given in the \`location\` prop.`),h=v}else h=f;let b=h.pathname||"/",g=b;if(c!=="/"){let v=c.replace(/^\//,"").split("/");g="/"+b.replace(/^\//,"").split("/").slice(v.length).join("/")}let w=Zy(e,{pathname:g});Tt(d||w!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Tt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let m=QT(w&&w.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:xn([c,s.encodeLocation?s.encodeLocation(v.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:xn([c,s.encodeLocation?s.encodeLocation(v.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),o,n,r,i);return t&&m?x.createElement(Ao.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},m):m}function HT(){let e=eA(),t=RT(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:s},"ErrorBoundary")," or"," ",x.createElement("code",{style:s},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application 
102Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,o)}var VT=x.createElement(HT,null),cw=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=UT(e.digest);n&&(e=n)}let t=e!==void 0?x.createElement(Qt.Provider,{value:this.props.routeContext},x.createElement(yh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(qT,{error:e},t):t}};cw.contextType=jT;var Eu=new WeakMap;function qT({children:e,error:t}){let{basename:n}=x.useContext(vt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=$T(t.digest);if(r){let i=Eu.get(t);if(i)throw i;let s=rw(r.location,n);if(nw&&!Eu.get(t))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Eu.set(t,o),o}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return e}function GT({routeContext:e,match:t,children:n}){let r=x.useContext(os);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(Qt.Provider,{value:e},n)}function QT(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=n==null?void 0:n.errors;if(o!=null){let c=s.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);me(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,l=-1;if(n)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:f,errors:h}=n,b=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||b){a=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let u=n&&r?(c,d)=>{var f,h;r(c,{location:n.location,params:((h=(f=n.matches)==null?void 0:f[0])==null?void 0:h.params)??{},unstable_pattern:OT(n.matches),errorInfo:d})}:void 0;return s.reduceRight((c,d,f)=>{let h,b=!1,g=null,w=null;n&&(h=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||VT,a&&(l<0&&f===0?(dw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,w=null):l===f&&(b=!0,w=d.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,f+1)),p=()=>{let v;return h?v=g:b?v=w:d.route.Component?v=x.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,x.createElement(GT,{match:d,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?x.createElement(cw,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):p()},null)}function bh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function YT(e){let t=x.useContext(os);return me(t,bh(e)),t}function JT(e){let t=x.useContext(Nl);return me(t,bh(e)),t}function ZT(e){let t=x.useContext(Qt);return me(t,bh(e)),t}function xh(e){let t=ZT(e),n=t.matches[t.matches.length-1];return me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function XT(){return xh("useRouteId")}function eA(){var r;let e=x.useContext(yh),t=JT("useRouteError"),n=xh("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function tA(){let{router:e}=YT("useNavigate"),t=xh("useNavigate"),n=x.useRef(!1);return lw(()=>{n.current=!0}),x.useCallback(async(i,s={})=>{Tt(n.current,aw),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var Ap={};function dw(e,t,n){!t&&!Ap[e]&&(Ap[e]=!0,Tt(!1,n))}
102x.memo(nA);function nA({routes:e,future:t,state:n,onError:r}){return uw(e,void 0,n,r,t)}function ka({to:e,replace:t,state:n,relative:r}){me(as(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=x.useContext(vt);Tt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=x.useContext(Qt),{pathname:o}=At(),a=wh(),l=vh(e,gh(s),o,r==="path"),u=JSON.stringify(l);return x.useEffect(()=>{a(JSON.parse(u),{replace:t,state:n,relative:r})},[a,u,r,t,n]),null}function Jt(e){me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function rA({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:o}){me(!as(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=x.useMemo(()=>({basename:a,navigator:i,static:s,unstable_useTransitions:o,future:{}}),[a,i,s,o]);typeof n=="string"&&(n=ss(n));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=n,b=x.useMemo(()=>{let g=Cn(u,a);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:r}},[a,u,c,d,f,h,r]);return Tt(b!=null,`<Router basename="${a}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:x.createElement(vt.Provider,{value:l},x.createElement(Ao.Provider,{children:t,value:b}))}function iA({children:e,location:t}){return KT(Fc(e),t)}function Fc(e,t=[]){let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let s=[...t,i];if(r.type===x.Fragment){n.push.apply(n,Fc(r.props.children,s));return}me(r.type===Jt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),me(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Fc(r.props.children,s)),n.push(o)}),n}var Sa="get",Ea="application/x-www-form-urlencoded";function jl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function sA(e){return jl(e)&&e.tagName.toLowerCase()==="button"}function oA(e){return jl(e)&&e.tagName.toLowerCase()==="form"}function aA(e){return jl(e)&&e.tagName.toLowerCase()==="input"}function lA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uA(e,t){return e.button===0&&(!t||t==="_self")&&!lA(e)}var na=null;function cA(){if(na===null)try{new FormData(document.createElement("form"),0),na=!1}catch{na=!0}return na}var dA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _u(e){return e!=null&&!dA.has(e)?(Tt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ea}"`),null):e}function hA(e,t){let n,r,i,s,o;if(oA(e)){let a=e.getAttribute("action");r=a?Cn(a,t):null,n=e.getAttribute("method")||Sa,i=_u(e.getAttribute("enctype"))||Ea,s=new FormData(e)}else if(sA(e)||aA(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?Cn(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Sa,i=_u(e.getAttribute("formenctype"))||_u(a.getAttribute("enctype"))||Ea,s=new FormData(a,e),!cA()){let{name:u,type:c,value:d}=e;if(c==="image"){let f=u?`${u}.`:"";s.append(`${f}x`,"0"),s.append(`${f}y`,"0")}
102else u&&s.append(u,d)}}else{if(jl(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Sa,r=null,i=Ea,o=e}return s&&i==="text/plain"&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fA(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&Cn(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function pA(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mA(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function gA(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let o=await pA(s,n);return o.links?o.links():[]}return[]}));return bA(r.flat(1).filter(mA).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Cp(e,t,n,r,i,s){let o=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,a=(l,u)=>{var c;return n[u].pathname!==l.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return s==="assets"?t.filter((l,u)=>o(l,u)||a(l,u)):s==="data"?t.filter((l,u)=>{var d;let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(o(l,u)||a(l,u))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function vA(e,t,{includeHydrateFallback:n}={}){return yA(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function yA(e){return[...new Set(e)]}function wA(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bA(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(wA(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function hw(){let e=x.useContext(os);return kh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xA(){let e=x.useContext(Nl);return kh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Sh=x.createContext(void 0);Sh.displayName="FrameworkContext";function fw(){let e=x.useContext(Sh);return kh(e,"You must render this element inside a <HydratedRouter> element"),e}function kA(e,t){let n=x.useContext(Sh),[r,i]=x.useState(!1),[s,o]=x.useState(!1),{onFocus:a,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=x.useRef(null);x.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let g=m=>{m.forEach(p=>{o(p.isIntersecting)})},w=new IntersectionObserver(g,{threshold:.5});return f.current&&w.observe(f.current),()=>{w.disconnect()}}},[e]),x.useEffect(()=>{if(r){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[r]);let h=()=>{i(!0)},b=()=>{i(!1),o(!1)};return n?e!=="intent"?[s,f,{}]:[s,f,{onFocus:bs(a,h),onBlur:bs(l,b),onMouseEnter:bs(u,h),onMouseLeave:bs(c,b),onTouchStart:bs(d,h)}]:[!1,f,{}]}function bs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function SA({page:e,...t}){let{router:n}=hw(),r=x.useMemo(()=>Zy(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?x.createElement(_A,{page:e,matches:r,...t}):null}function EA(e){let{manifest:t,routeModules:n}=fw(),[r,i]=x.useState([]);return x.useEffect(()=>{let s=!1;return gA(e,t,n).then(o=>{s||i(o)}),()=>{s=!0}},[e,t,n]),r}function _A({page:e,matches:t,...n}){let r=At(),{future:i,manifest:s,routeModules:o}=fw(),{basename:a}=hw(),{loaderData:l,matches:u}=xA(),c=x.useMemo(()=>Cp(e,t,u,s,r,"data"),[e,t,u,s,r]),d=x.useMemo(()=>Cp(e,t,u,s,r,"assets"),[e,t,u,s,r]),f=x.useMemo(()=>
102{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,w=!1;if(t.forEach(p=>{var k;let v=s.routes[p.route.id];!v||!v.hasLoader||(!c.some(S=>S.route.id===p.route.id)&&p.route.id in l&&((k=o[p.route.id])!=null&&k.shouldRevalidate)||v.hasClientLoader?w=!0:g.add(p.route.id))}),g.size===0)return[];let m=fA(e,a,i.unstable_trailingSlashAwareDataRequests,"data");return w&&g.size>0&&m.searchParams.set("_routes",t.filter(p=>g.has(p.route.id)).map(p=>p.route.id).join(",")),[m.pathname+m.search]},[a,i.unstable_trailingSlashAwareDataRequests,l,r,s,c,t,e,o]),h=x.useMemo(()=>vA(d,s),[d,s]),b=EA(d);return x.createElement(x.Fragment,null,f.map(g=>x.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),h.map(g=>x.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),b.map(({key:g,link:w})=>x.createElement("link",{key:g,nonce:n.nonce,...w})))}function TA(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var AA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{AA&&(window.__reactRouterVersion="7.12.0")}catch{}function CA({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=x.useRef();i.current==null&&(i.current=aT({window:r,v5Compat:!0}));let s=i.current,[o,a]=x.useState({action:s.action,location:s.location}),l=x.useCallback(u=>{n===!1?a(u):x.startTransition(()=>a(u))},[n]);return x.useLayoutEffect(()=>s.listen(l),[s,l]),x.createElement(rA,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:s,unstable_useTransitions:n})}var pw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lo=x.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},b){let{basename:g,unstable_useTransitions:w}=x.useContext(vt),m=typeof u=="string"&&pw.test(u),p=rw(u,g);u=p.to;let v=FT(u,{relative:i}),[k,S,E]=kA(r,h),_=OA(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:w});function A(N){t&&t(N),N.defaultPrevented||_(N)}let I=x.createElement("a",{...h,...E,href:p.absoluteURL||v,onClick:p.isExternal||s?t:A,ref:TA(b,S),target:l,"data-discover":!m&&n==="render"?"true":void 0});return k&&!m?x.createElement(x.Fragment,null,I,x.createElement(SA,{page:v})):I});lo.displayName="Link";var PA=x.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:o,viewTransition:a,children:l,...u},c){let d=Co(o,{relative:u.relative}),f=At(),h=x.useContext(Nl),{navigator:b,basename:g}=x.useContext(vt),w=h!=null&&zA(d)&&a===!0,m=b.encodeLocation?b.encodeLocation(d).pathname:d.pathname,p=f.pathname,v=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&g&&(v=Cn(v,g)||v);const k=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=p===m||!i&&p.startsWith(m)&&p.charAt(k)==="/",E=v!=null&&(v===m||!i&&v.startsWith(m)&&v.charAt(m.length)==="/"),_={isActive:S,isPending:E,isTransitioning:w},A=S?t:void 0,I;typeof r=="function"?I=r(_):I=[r,S?"active":null,E?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(_):s;return x.createElement(lo,{...u,"aria-current":A,className:I,ref:c,style:N,to:o,viewTransition:a},typeof l=="function"?l(_):l)});PA.displayName="NavLink";var IA=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:o=Sa,action:a,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f,...h},b)=>{let{unstable_useTransitions:g}=x.useContext(vt),w=DA(),m=LA(a,{relative:u}),p=o.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&pw.test(a),k=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let E=S.nativeEvent.submitter,_=(E==null?void 0:E.getAttribute("formmethod"))||o,A=()=>w(E||S.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:i,state:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:f});g&&n!==!1?x.startTransition(()=>A()):A()};return x.createElement("form",{ref:b,method:p,action:m,onSubmit:r?l:k,...h,"data-discover":!v&&e==="render"?"true":void 0})});IA.displayName="Form";function RA(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function mw(e){let t=x.useContext(os);return me(t,RA(e)),t}function OA(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:l}={}){let u=wh(),c=At(),d=Co(e,{relative:s});return x.useCallback(f=>{if(uA(f,t)){f.preventDefault();let h=n!==void 0?n:ao(c)===ao(d),b=()=>u(e,{replace:h,state:r,preventScrollReset:i,relative:s,viewTransition:o,unstable_defaultShouldRevalidate:a});l?x.startTransition(()=>b()):b()}},[c,u,d,n,r,t,e,i,s,o,a,l])}var NA=0,jA=()=>`__${String(++NA)}__`;function DA(){let{router:e}=mw("useSubmit"),{basename:t}=x.useContext(vt),n=XT(),r=e.fetch,i=e.navigate;return x.useCallback(async(s,o={})=>{let{action:a,method:l,encType:u,formData:c,body:d}=hA(s,t);if(o.navigate===!1){let f=o.fetcherKey||jA();await r(f,n,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:c,body:d,formMethod:o.method||l,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function LA(e,{relative:t}={}){let{basename:n}=x.useContext(vt),r=x.useContext(Qt);me(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...Co(e||".",{relative:t})},o=At();if(e==null){s.search=o.search;let a=new URLSearchParams(s.search),l=a.getAll("index");if(l.some(c=>
102c==="")){a.delete("index"),l.filter(d=>d).forEach(d=>a.append("index",d));let c=a.toString();s.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:xn([n,s.pathname])),ao(s)}function zA(e,{relative:t}={}){let n=x.useContext(sw);me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=mw("useViewTransitionState"),i=Co(e,{relative:t});if(!n.isTransitioning)return!1;let s=Cn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Cn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return nl(i.pathname,o)!=null||nl(i.pathname,s)!=null}const MA={lang:"de",nav:{services:"Beratung",sectors:"Branchen",training:"Training und Workshops",caseStudies:"Referenzen",media:"Medien",more:"Mehr",aiAct:"EU AI Act",founder:"Über mich",approach:"Vorgehen",faqs:"FAQ",investigator:"Investigator",newsletter:"Newsletter",contact:"Kontakt"},cta:{bookCall:"Erstgespräch buchen",viewServices:"Leistungen ansehen",requestSession:"Termin anfragen",moreInfo:"Für mehr Informationen kontaktieren",learnMore:"Mehr erfahren",submit:"Absenden",submitting:"Wird gesendet...",registerInterest:"Interesse registrieren"},hero:{badge:"KI-Einführung, Governance, Training",title:"KI mit institutionellem Standard.",subtitle:"Prompt-Kompetenz, KI-Policies und Governance für Unternehmen. Branchenübergreifend, mit besonderer Erfahrung im Investment Management.",bullets:[{label:"KI-Einführung:",text:"vom Inventar über die Priorisierung bis zum produktiven Workflow"},{label:"KI-Policy und Governance:",text:"Richtlinie, Rollen, Freigaben, Human-in-the-Loop"},{label:"Schulung und Nachweis:",text:"AI Literacy und Datenschutz, dokumentiert und zertifiziert"}],trustLine:"14 Jahre Erfahrung in institutioneller Kapitalanlage, Investment Research und Managerbewertung bei Nuveen, Quirin Privatbank, Scope und JLL.",cta:{viewServices:"Leistungen ansehen",note:"15 Min. · unverbindlich"}},problem:{eyebrow:"Ausgangslage",title:"Die meisten Unternehmen haben ein KI-Qualitätsproblem.",intro:"Fehlende Standards, keine belastbare Evaluation und große Unterschiede im KI-Wissen führen zu schwankender Output-Qualität, Vertrauensverlust in die Technologie und regulatorischem Risiko.",cards:[{title:"Die Tools sind längst da",text:"ChatGPT, Copilot oder Gemini laufen über private Accounts. Niemand weiß genau, wer was mit welchen Kunden- und Personaldaten macht."},{title:"Aber keine Regel dazu",text:"Mitarbeitende wollen KI verantwortungsvoll nutzen. Ohne Richtlinie entscheidet jede Abteilung für sich. Oder sie verbietet vorsorglich alles."},{title:"Und nichts ist dokumentiert",text:"Wenn Auftraggeber, Betriebsrat, Versicherer oder Aufsicht nachfragen: keine Schulungsnachweise, kein Inventar, keine benannte Verantwortung."}]},valueStrip:{headline:"Die meisten Unternehmen haben ein KI-Qualitätsproblem.",text:"Fehlende Standards, belastbare Evaluation und große Unterschiede im KI-Wissen führen zu schwankender Output-Qualität, Vertrauensverlust in die Technologie und regulatorischem Risiko."},services:{title:"KI-Qualität und KI-Governance etablieren.",eyebrow:"Leistungen",intro:"Vier Bausteine, einzeln buchbar. Die meisten Häuser starten mit Policy und Schulung, weil dort der Nachweisdruck am höchsten ist. Wer KI produktiv einsetzen will, braucht am Ende alle vier.",blocks:[{number:"01",title:"KI-Einführung und Operating Model",intro:"Von der Bestandsaufnahme zum belastbaren Einführungsplan.",bullets:["KI-Inventar über alle Abteilungen","Use-Case-Bewertung nach Nutzen und Risiko","Tool- und Lizenzarchitektur","Rollen, Verantwortung, Freigabewege","Pilotierung und Rollout-Plan"]},{number:"02",title:"KI-Policy und Governance",intro:"Die Richtlinie, die Ihre Leute wirklich lesen und anwenden.",bullets:["KI-Richtlinie in verständlicher Sprache","Abgestimmt auf DSGVO und bestehende IT-Regeln","Rote Linien, Freigaben, Eskalation","Human-in-the-Loop-Kontrollen","Abstimmung mit Recht, IT und Betriebsrat"]},{number:"03",title:"Schulung und Datenschutz",intro:"Rollengerecht statt Gießkanne: Führung, Fachbereich, Sachbearbeitung.",bullets:["AI-Literacy-Training nach Artikel 4","Datenschutz und Vertraulichkeit im KI-Einsatz","Halluzinationen, Prompt-Hygiene, Quellenprüfung","Übungen an echten Aufgaben aus Ihrem Haus","Teilnahmezertifikat für jede Person"]},{number:"04",title:"Nachweis und Verstetigung",intro:"Damit die Arbeit nicht in einem Ordner verschwindet.",bullets:["Schulungs- und Maßnahmendokumentation","Nachweismappe für Aufsicht, Kunden, Auditoren","Transparenzpflichten nach Artikel 50 umsetzen","Turnus für Auffrischung und Onboarding","Optional: laufende Begleitung als Sparringspartner"]}],labels:{value:"Nutzen",outcome:"Ergebnis",duration:"Dauer",price:"Preisrahmen"},primary:[{title:"KI-Workshop für Investmentteams",value:"Ihr Team entwickelt gemeinsame Standards für Prompts, Quellenprüfung und Qualitätskontrolle.",outcome:"Praxistraining anhand ausgewählter Arbeitsabläufe, gemeinsame Prompt- und Prüfstandards sowie dokumentierte Teilnahme.",duration:"Ein Tag oder zwei halbe Tage",price:"Ab 3.500 Euro für bis zu zwölf Teilnehmende"},{title:"AI Literacy für Investmentteams",value:"Ihre Mitarbeitenden verstehe
102n Einsatzmöglichkeiten, Grenzen und Risiken von KI im jeweiligen Arbeitskontext.",outcome:"Rollenbezogene Schulung, Teilnahmedokumentation und Empfehlungen für den verantwortungsvollen KI-Einsatz im Unternehmen.",duration:"Zwei Stunden",price:"Ab 1.900 Euro je Gruppe"},{title:"KI-Workflow-Diagnose",value:"Sie erhalten eine priorisierte Entscheidungsgrundlage für den Einsatz von KI in Ihrem Team.",outcome:"Bewertung ausgewählter Arbeitsschritte nach Nutzen, Aufwand, Datenanforderungen und Risiko sowie eine Empfehlung für den ersten Umsetzungsschritt.",duration:"Ein Workshop-Tag, Bericht innerhalb einer Woche",price:"Ab 2.900 Euro"}],furtherLabel:"Weitere Projekte",further:[{title:"Workflow-Lab für Analysten",value:"Ihre Analysten entwickeln gemeinsame Vorlagen und Prüfschritte für wiederkehrende Berichte.",outcome:"Training an ausgewählten Reporting-Prozessen, Templates, Qualitätskontrollen und Standards für die Erstellung und Prüfung von Entwürfen.",duration:"Ein Tag",price:"Ab 3.900 Euro"},{title:"Automatisierungsreview für Due Diligence",value:"Sie erkennen, welche Arbeitsschritte sich standardisieren oder teilautomatisieren lassen, ohne die fachliche Prüfung zu ersetzen.",outcome:"Prozessaufnahme, Bewertung geeigneter Teilschritte, bis zu drei Prototypen oder Vorlagen sowie Dokumentation der Prüf- und Freigabeschritte.",duration:"Zwei bis drei Wochen",price:"Ab 8.900 Euro"},{title:"Review des Research-Prozesses",value:"Sie erhalten einen strukturierten Ablauf von der Quellenrecherche bis zur Entscheidungsvorlage.",outcome:"Analyse des bestehenden Prozesses, definierte Recherche- und Prüfschritte sowie Vorlagen für wiederkehrende Berichtsformate.",duration:"Zwei Wochen",price:"Ab 7.500 Euro"},{title:"Prompt- und Workflow-Bibliothek",value:"Ihr Team erhält abgestimmte Vorlagen für wiederkehrende Aufgaben in Fondsprüfung, Screening, Monitoring und Reporting.",outcome:"Eine auf Ihre Tools und Arbeitsabläufe zugeschnittene Bibliothek mit Prompts, Quellenanforderungen, Ausgabeformaten und Prüfschritten.",duration:"Ein bis zwei Wochen",price:"Ab 4.500 Euro"}],note:"Die KI-Workflow-Diagnose eignet sich als Einstieg, wenn Anwendungsfälle noch nicht priorisiert sind. Über weitere Schritte entscheiden Sie nach der Auswertung."},approach:{eyebrow:"Vorgehen",title:"Ein Weg, den man in einem Quartal gehen kann.",intro:"Kein Großprojekt, kein Beratergerüst. Vier Schritte, die aufeinander aufbauen, und nach jedem Schritt liegt ein Ergebnis vor, das Sie vorzeigen können.",resultLabel:"Ergebnis:",steps:[{number:"1",title:"Bestandsaufnahme",text:"Wer nutzt was, mit welchen Daten, für welche Aufgabe, inklusive der Tools, von denen die IT nichts weiß.",result:"KI-Inventar mit Risikoeinschätzung."},{number:"2",title:"Policy und Governance",text:"Richtlinie entwerfen, mit Recht, IT und Betriebsrat abstimmen, verabschieden.",result:"geltende KI-Richtlinie mit benannter Verantwortung."},{number:"3",title:"Schulung",text:"Rollengerechte Trainings an den echten Arbeitsabläufen der Teilnehmenden.",result:"geschulte Mitarbeitende, dokumentiert und zertifiziert."},{number:"4",title:"Nachweis",text:"Inventar, Policy, Schulungsnachweise und Transparenzhinweise zusammenführen.",result:"eine Mappe, die einer Prüfung standhält."}]},sectors:{eyebrow:"Branchen",title:"Der Rahmen ist derselbe. Die Use Cases sind es nie.",intro:"Governance funktioniert branchenübergreifend gleich. Was sich unterscheidet, sind die Arbeitsabläufe, die Datenarten und die Frage, wo ein KI-Fehler tatsächlich weh tut.",useCasesLabel:"Typische Use Cases",tabs:{investment:"Investment Management",logistics:"Logistik und Supply Chain",professional:"Professional Services",industry:"Industrie und Mittelstand"},investment:{title:"Investment Management, Real Estate und Alternative Assets",paragraphs:["Der Bereich, aus dem Diligenz entstanden ist. Investmentteams arbeiten mit vertraulichen Unterlagen, engen Fristen und Aufsichtsanforderungen an Dokumentation. KI beschleunigt hier enorm, aber nur mit sauberer Vertraulichkeitsarchitektur und nachvollziehbarer Entscheidungsgrundlage.","Ich arbeite mit Investment Managern, institutionellen Investoren, Fund-of-Funds, Family Offices, Beratern und Operations-Teams. Der Grundsatz bleibt: KI-Ausgaben sind Entscheidungsunterstützung, nie die Entscheidung."],tags:["Vertraulichkeit und NDA-Perimeter","Human-in-the-Loop","Prüfbare Ableitungskette","Auditierbares Logging"],useCases:["Due Diligence: Dokumentensichtung, Red-Flag-Extraktion, Vollständigkeitsprüfung im Datenraum","Investment-Memos: Strukturierung, Vorentwurf, Konsistenzprüfung gegen Quellen","Reporting an LPs und Gremien: Zusammenfassung, Textbausteine, Qualitätssicherung","Markt- und Wettbewerbsrecherche mit belegter Quellenkette","Portfolio-Monitoring: Auswertung von Berichten und Kennzahlen der Beteiligungen","Real Estate: Analyse von Miet-, Objekt- und Vertragsunterlagen"]},logistics:{title:"Logistik, Transport und Supply Chain",paragraphs:["Hoher Dokumentendurchsatz, dünne Margen, viel Kommunikation mit Kunden und Subunternehmern, und Teams, die selten Zeit für Schulungen haben. Genau deshalb funktioniert KI hier so gut, wenn sie an den realen Abläufen ansetzt statt an IT-Pilotprojekten.","Besonderhe
102it der Branche: Personaldaten in Disposition und Leistungsauswertung berühren schnell den Hochrisiko-Bereich des EU AI Act. Das gehört früh geklärt und nicht erst, wenn das System läuft."],tags:["Beschäftigtendaten und Betriebsrat","Anhang-III-Prüfung","Schichtnahe Schulung","Kundenkommunikation"],useCases:["Frachtdokumente, Lieferscheine und Zollunterlagen automatisiert auslesen","Ausschreibungen und Angebote strukturieren und vorformulieren","Reklamations- und Schadensfälle vorqualifizieren und zusammenfassen","Kundenanfragen und Statusauskünfte im Service beschleunigen","Rahmenverträge und SLA gegen die Ist-Leistung abgleichen","Interne Wissensbasis für Disposition und Sachbearbeitung"]},professional:{title:"Professional Services, Kanzleien und Beratung",paragraphs:["Hier ist Vertraulichkeit nicht Compliance-Thema, sondern Geschäftsgrundlage. Mandantendaten dürfen den definierten Perimeter nicht verlassen, und berufsrechtliche Pflichten kommen zur DSGVO hinzu. Gleichzeitig ist der Produktivitätsgewinn in genau diesen Häusern am größten.","Zunehmend fragen Auftraggeber im Vergabe- und Onboarding-Prozess aktiv nach der KI-Richtlinie. Belegbare Governance ist damit nicht nur Pflicht, sondern Vertriebsargument."],tags:["Mandantenvertraulichkeit","Berufsrecht","Auskunftsfähigkeit im Pitch","Qualitätssicherung"],useCases:["Vertrags- und Dokumentenanalyse mit Belegstellen","Recherche mit nachvollziehbarer Quellenprüfung","Entwürfe für Schriftsätze, Gutachten und Berichte","Protokolle und Mandantenkommunikation aufbereiten","Angebots- und Pitch-Erstellung","Interne Wissensbasis aus abgeschlossenen Projekten"]},industry:{title:"Industrie, Handel und Mittelstand",paragraphs:["Der klassische Fall: 80 bis 800 Mitarbeitende, eine schlanke IT, kein eigener KI-Verantwortlicher, und trotzdem die vollen Pflichten als Betreiber. Der Digital Omnibus hat für KMU und Small Mid-Caps Erleichterungen gebracht, die Grundpflichten aber nicht abgeschafft.","Für diese Unternehmen baue ich bewusst schlank: eine Richtlinie, ein Inventar, ein Schulungsdurchlauf, eine Nachweismappe. Kein Governance-Apparat, den am Ende niemand pflegt."],tags:["KMU-Erleichterungen","Schlanke Umsetzung","Personalauswahl gleich Hochrisiko","Lieferantenanforderungen"],useCases:["Angebots- und Ausschreibungsbearbeitung im Vertrieb","Technische Dokumentation und Handbücher erstellen und pflegen","Einkauf: Lieferantenunterlagen und Konditionen auswerten","Kundenservice und Reklamationsbearbeitung","HR: Stellenausschreibungen und Onboarding, mit klarer Grenze zur Bewerberauswahl","Marketing und Content mit korrekter Kennzeichnung nach Artikel 50"]}},whoWeHelp:{title:"Mit wem ich arbeite",audiences:["Logistik und Transport","Industrie und Handel","Professional Services","Investment Manager","Institutionelle Investoren","Fund-of-Funds","Family Offices","Berater","Operations-Teams","Immobilien","Alternative Assets"]},workshops:{eyebrow:"Training und Workshops",title:"Workshops, die in einen Arbeitstag passen.",intro:"Von EU-AI-Act-Pflichtinhalten über Datenschutz bis zu praxisnahen Deep Dives in Reporting- und Automations-Workflows. Vor Ort bei Ihnen oder in Berlin, Frankfurt, London und Tel Aviv, strukturiert und mit greifbaren Ergebnissen. Auf Deutsch oder Englisch.",headers:{format:"Format",duration:"Dauer",price:"Preisrahmen",content:"Inhalt und Ergebnis"},items:[{title:"KI-Einführung",duration:"2 Stunden",price:"Ab 1.900 Euro je Gruppe",description:"Der Einstieg für Teams, die KI bisher nur vereinzelt nutzen. Kompaktes Prompting-Wissen für den Arbeitsalltag, das Datenschutz-Einmaleins und konkrete Anwendungsfälle aus den eigenen Aufgaben der Teilnehmenden. Nach zwei Stunden weiß jede und jeder, wofür KI im eigenen Job taugt und wo die Grenze liegt."},{title:"EU AI Act Literacy Training",duration:"2 Stunden",price:"Ab 1.900 Euro je Gruppe",description:"Artikel 4 verlangt Maßnahmen zur KI-Kompetenz von Organisationen, die KI-Systeme einsetzen. Das Training vermittelt Ihren Mitarbeitenden die nötige AI Literacy für den sicheren Alltagseinsatz und die wichtigsten Risiken: Halluzinationen, Vertraulichkeit, Übervertrauen. Mit Teilnahmezertifikat und Dokumentation für Ihre Nachweismappe."},{title:"Datenschutz und KI",duration:"2 Stunden",price:"Auf Anfrage",description:"Für alle Rollen, die mit Kunden-, Personal- oder sensiblen Daten arbeiten. Was darf in welches Tool, wie erkennt man kritische Eingaben, wie dokumentiert man richtig. Abgestimmt auf Ihre bestehenden Datenschutzregeln."},{title:"Leadership Briefing: KI-Operating-Model",duration:"Ab 2 Stunden",price:"Auf Anfrage",description:"Strukturiertes Brief
102ing zu Best-in-Class-Beispielen für KI-Adoption und dazu, wo Automatisierung den höchsten Effizienzgewinn liefert. Zusätzlich Policy, Risikoprofile und EU AI Act, mit Roadmap-Beispielen, die Ihre Organisation umsetzen kann."},{title:"Ein Advanced Use Case, End-to-End",duration:"Ein Tag oder zwei halbe Tage",price:"Ab 3.500 Euro für bis zu zwölf Teilnehmende",description:"Walk-through eines fortgeschrittenen KI-Workflows von Anfang bis Ende. Wir beleuchten Automatisierungsmuster, Quality Control und die Rolle von Human-in-the-Loop. Ihr Team erhält ein Template für vergleichbare Workflows."},{title:"Workflow Lab",duration:"Ganztägig",price:"Ab 3.900 Euro",description:"Hands-on-Training für Fach- und Research-Teams mit Fokus auf Reporting- und Bearbeitungsabläufe. Praktische Übungen an einem standardisierten Set von Patterns: Drafting, Summaries, Strukturierung, QA. Sie lernen Templates, Quality Controls und Standards, damit der Output konsistent und auditierbar wird."},{title:"KI-Governance und Regulierung",duration:"Halbtägig",price:"Auf Anfrage",description:"Strukturiertes Workshopformat zu Best-Practice-Governance und den praktischen Anforderungen des EU AI Act. Nutzungsstandards, Rollen, Dokumentation und Oversight. Sie gehen mit einer klaren Checkliste hinaus."},{title:"KI-Workflow-Diagnose",duration:"Ein Workshop-Tag, Bericht innerhalb einer Woche",price:"Ab 2.900 Euro",description:"Strukturierte Bewertung ausgewählter Arbeitsschritte nach Nutzen, Aufwand, Datenanforderungen und Risiko. Sie erhalten eine priorisierte Entscheidungsgrundlage und eine Empfehlung für den ersten Umsetzungsschritt."},{title:"Individuelle Workshops und Trainings",duration:"Auf Anfrage",price:"Auf Anfrage",description:"Für Teams mit konkreten Anforderungen: ein bestimmtes Tool, ein Workflow oder Ihre Software-Umgebung. Sie schildern kurz Kontext und Zielbild, ich schlage ein passendes Format mit klaren Ergebnissen vor."}]},aiAct:{eyebrow:"EU AI Act, Stand August 2026",title:"Angepasst, nicht aufgehoben.",intro:"Die Verordnung (EU) 2026/1744 verschiebt vor allem Fristen für Hochrisiko-KI und lockert einzelne Pflichten. Die Grundpflichten für Unternehmen, die KI einsetzen, bleiben bestehen.",cards:[{title:"KI-Kompetenz nach Artikel 4",intro:"",bullets:["Unternehmen müssen weiterhin Maßnahmen ergreifen, um die KI-Kompetenz ihrer Beschäftigten zu fördern.","Das gilt grundsätzlich unabhängig von Größe und Branche, sobald Mitarbeitende KI-Systeme wie ChatGPT, Copilot, Claude oder Gemini beruflich nutzen.","Neu ist: Es muss kein bestimmtes Kompetenzniveau garantiert werden. Entscheidend sind angemessene, risikobasierte Maßnahmen.","Eine Zertifizierung ist nicht vorgeschrieben. Sinnvoll sind dokumentierte Schulungen, interne Leitlinien und eine Übersicht der eingesetzten KI-Systeme."],note:""},{title:"Was seit 2. August 2026 gilt",intro:"Die Transparenzpflichten nach Artikel 50 sind anwendbar. Dazu gehören je nach Anwendungsfall:",bullets:["Hinweise bei direkter Interaktion mit KI","Kennzeichnung bestimmter KI-generierter Inhalte","Offenlegung von Deepfakes","Kennzeichnung bestimmter KI-Texte zu Themen von öffentlichem Interesse"],note:"Nicht jeder KI-generierte Inhalt muss sichtbar gekennzeichnet werden."}],deadlinesTitle:"Weitere wichtige Fristen",deadlines:[{date:"2. Dezember 2026",text:"Neue Verbote nach Artikel 5 und Ende bestimmter Übergangsfristen für generative KI-Systeme."},{date:"2. Dezember 2027",text:"Pflichten für eigenständige Hochrisiko-KI, etwa in Personalauswahl, Beschäftigtenmanagement oder Kreditwürdigkeitsprüfung."},{date:"2. August 2028",text:"Pflichten für Hochrisiko-KI als Bestandteil regulierter Produkte."}],deadlinesNote:"Die Bußgeldrahmen des AI Act bleiben grundsätzlich bestehen. Sie gelten jedoch nicht pauschal für jeden Verstoß gegen Artikel 4.",cta:"Was davon konkret für Ihr Unternehmen gilt, hängt von Ihren Anwendungsfällen und Daten ab. Für eine Einordnung Ihrer Situation sprechen Sie mich gern an.",disclaimer:"Diese Übersicht gibt den Stand vom August 2026 wieder, dient der allgemeinen Orientierung und ersetzt keine Rechtsberatung."},founder:{eyebrow:"Über den Gründer",title:"Torsten Steiner",photoPlaceholder:"Portraitfoto einsetzen",photoAlt:"Torsten Steiner bei einem Vortrag",bio:["Ich habe 14 Jahre in der institutionellen Kapitalanlage gearbeitet, unter anderem bei Nuveen in London, der Quirin Privatbank und als Director bei der Scope Group, mit Schwerpunkt Investment Research, Portfoliokonstruktion, Manager Due Diligence und Ratings.","Diese Herkunft prägt meine Arbeit bis heute: In stark regulierten, dokumentenintensiven Umgebungen zählt nicht, ob eine KI schnell antwortet, sondern ob das Ergebnis nachvollziehbar, belegt und prüfbar ist. Genau dieser Maßstab liegt jedem Projekt zugrunde, ob im Investmentteam, beim Logistikdienstleister oder im Mittelstand.","In den vergangenen drei Jahren habe ich KI-gestützte Workflows für Due Diligence, Screening, Monitoring und Reporting aufgebaut und Teams in deren Nutzung geschult. Wo tiefere technische Umsetzung erforderlich ist, arbeite ich mit erfahrenen KI-Spezialisten zusammen."],credentials:[{value:"14+",label:"Jahre Investment und Real Estate"},{value:"DE / EN",label:"Beratung und Training"},{value:"4",label:"Standorte: Berlin, Frankfurt, London, Tel Aviv"}]},media:{title:"Mediathek",intro:"Aufzeichnungen, Vorträge und Fachbeiträge zu KI in Investment- und Research-Prozessen.",photoPlaceholder:"Foto einsetzen",watchLabel:"Ansehen",talkLabel:"Vortrag",cta:"Sie möchten ein Format wie diese für Ihr Haus, als Webinar, Lunch and Learn oder internen Vortrag?",groups:[{label:"Analysebeispiele",items:[{title:"Investmentkomitee simuliert: eine 50-Mio-Entscheidung aus fünf Perspektiven",description:"Fünf KI-Rollen mit gegensätzlichen Zielen, von ESG über Asset Management bis Fondsstrategie, verhandeln eine Immobilienentscheidung. Zeigt, wie Gremienlogik strukturiert und vor der menschlichen Sitzung durchgespielt werden kann.",videoId:"Akd3LanocVM",thumbnail:"/media/investmentkomitee.jpg",link:"https://youtu.be/Akd3LanocVM"},{title:"Zentralbank-Kommunikation in Minuten auswerten",description:"KI-gestützte Analyse geldpolitischer Aussagen und ihrer Marktwirkung, mit nachvollziehbarer Quellenlage. Zeigt, wie Makro-Research beschleunigt wird, ohne die Beurteilung aus der Hand zu geben.",videoId:"BATJ6ZKleXw",thumbnail:"/media/zentralbank.jpg",link:"https://youtu.be/BATJ6ZKleXw"}]},{label:"Vorträge und Webinare",items:[{title:"Lunch and Learn: KI und Automatisierung im CRE-Deal-Workflow",description:"Aufzeichnung des Webinars vom 27. Mai 2026 mit Live-Demo, gemeinsam mit Lily Bergmann (Smart Cookie Jobs). Vom unsortierten Datenraum zum standardisierten, wiederholbaren Workflow.",videoId:"Q1KY7xCOmDY",thumbnail:"/media/cre-deal-workflow.jpg",link:"https://www.youtube.com/watch?v=Q1KY7xCOmDY"},{title:"KI-Implementierung in Investment- und Research-Prozessen",description:"Vortrag bei AIMA London.",videoId:"",thumbnail:"",link:""}]}]},testimonials:{title:"Teilnehmerstimmen",items:[{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"},{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"},{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"}],context:"Teilnehmerbefragung Juli 2026: Zufriedenheit 4,2 von 5."},caseStudies:{eyebrow:"Referenzen",title:"Ausgewählte Projekte.",intro:"Alle Mandate unterliegen der Vertraulichkeit, deshalb nenne ich keine Namen. Beschrieben sind Leistungsumfang und Ergebnis.",resultLabel:"Ergebnis",items:[{tag:"Logistikdienstleister, DACH",title:"KI-Einführung von null auf produktiv, inklusive Richtlinie und geschulter Belegschaft",description:"KI-Tools waren bereits über private Accounts im Einsatz, ohne Richtlinie, ohne Übersicht, ohne Schulung. Auftrag war die vollständige Einführung, von der Bestandsaufnahme bis zum prüffähigen Nachweis.",modules:["KI-Inventar und Use-Case-Priorisierung 
102über alle Fachbereiche","KI-Richtlinie entworfen und mit Recht, IT und Arbeitnehmervertretung abgestimmt","Datenschutzschulung mit Fokus auf Kunden- und Beschäftigtendaten","AI-Literacy-Training nach Artikel 4, rollengerecht","Teilnahmezertifikate und Nachweisdokumentation"],result:"Geltende KI-Richtlinie, dokumentierte Schulung der relevanten Rollen und eine Nachweismappe, die gegenüber Auftraggebern und Aufsicht vorgelegt werden kann."},{tag:"Dienstleistung und Mittelstand",title:"KI-Policy, Datenschutztraining und Zertifizierung der Mitarbeitenden",description:"Die Führung wollte KI ausdrücklich ermöglichen, brauchte dafür aber eine belastbare Regel und den Nachweis geschulter Mitarbeitender. Ausgelöst wurde das Projekt durch Nachfragen von Kundenseite im Onboarding.",modules:["KI-Richtlinie in verständlicher Sprache, abgestimmt auf bestehende IT- und Datenschutzregeln","Datenschutz- und Vertraulichkeitstraining für alle nutzenden Rollen","AI-Literacy-Schulung mit Teilnahmezertifikat pro Person","Kennzeichnungsregeln für KI-erzeugte Inhalte nach Artikel 50","Auffrischungs- und Onboarding-Turnus verankert"],result:"Auskunftsfähigkeit gegenüber Kunden im Vergabeprozess. Die KI-Richtlinie wird heute aktiv als Qualitätsmerkmal eingesetzt."},{tag:"Institutional Boutique Manager",title:"Firmenweiter Rollout über Investment und Operations",description:"Umfassendes Upskilling für über 30 Teammitglieder in Investment und Operations, mit dem Ziel, KI nicht punktuell, sondern durchgängig im Arbeitsalltag zu verankern.",modules:["Identifikation funktionsspezifischer Use Cases je Team","Deployment maßgeschneiderter Templates","Gezielte Follow-up-Workshops zur Adoption","Laufende Verfeinerung der Workflows"],result:"Über 30 geschulte Teammitglieder und Workflows, die nach dem Projekt intern weiterentwickelt werden."},{tag:"Due Diligence, Automatisierung",title:"Automatisierter Company-Report-Workflow vor Dealabschluss",description:"Konzeption und Umsetzung einer Report-Automation, die vor Abschluss mit einem Kontrahenten ausgelöst wird. Der Workflow führt strukturierte Web-Recherche durch, prüft den aktuellen Geschäftsbericht und scannt nach vordefinierten Red Flags.",result:"Ein auditierbarer Company Report inklusive Quellen, aufbereitet als Final Draft für den menschlichen Review."},{tag:"Cross-Functional Project Drive",title:"Ein fortgeschrittenes KI-Projekt je Abteilung",description:"Vor-Interviews und drei 90-Minuten-Workshops je Team zur Erfassung der Pain Points und zur KPI-Definition. Anschließend Realisierung eines fortgeschrittenen KI-Projekts pro Abteilung.",result:"Klares Scoping, definierte Workflow-Schritte, Kontrollmechanismen und regelmäßige Quality-Reviews, und pro Abteilung ein produktives Ergebnis."}]},faqs:{eyebrow:"Häufig gestellte Fragen",title:"Was Unternehmen mich zuerst fragen.",items:[{question:"Ist eine KI-Zertifizierung für Mitarbeitende gesetzlich vorgeschrieben?",answer:"Nein. Der EU AI Act verlangt keine Zertifizierung und kennt kein vorgeschriebenes Prüfsiegel. Das gilt vor und nach dem Digital Omnibus. Was Artikel 4 verlangt, sind angemessene Maßnahmen zur KI-Kompetenz, die Sie belegen können. Genau deshalb stelle ich Teilnahmezertifikate mit vollständiger Schulungsdokumentation aus: Inhalte, Dauer, Zielgruppe, Datum, Teilnehmende. Das ist der Nachweis, auf den es ankommt."},{question:"Wir sind kein Investment-Unternehmen. Passt das trotzdem?",answer:"Ja. Der Governance-Rahmen aus Inventar, Richtlinie, Schulung und Nachweis ist branchenunabhängig, weil der EU AI Act branchenunabhängig gilt. Unterschiedlich sind die Use Cases und die Risikoschwerpunkte: beim Logistiker Beschäftigtendaten und Dokumentendurchsatz, in der Kanzlei Mandantenvertraulichkeit, im Investment Management der NDA-Perimeter. Die Beispiele im Training kommen immer aus Ihrer Branche und Ihren eigenen Abläufen."},{question:"Wie gehen Sie mit Vertraulichkeit und Datensicherheit um?",answer:"Ich arbeite strikt innerhalb Ihrer bestehenden Sicherheitsarchitektur und Access-Policies. Für Trainings verwende ich entweder anonymisierte Unterlagen oder arbeite in Ihrer Umgebung mit Ihren eigenen Dokumenten. Bei der Einführung definieren wir explizit, welche Datenarten in welches System dürfen und wo die Grenze verläuft. Das 
102ist bei den meisten Projekten der wichtigste Teil der Richtlinie."},{question:"Der Digital Omnibus hat Fristen verschoben. Können wir nicht warten?",answer:"Verschoben wurden vor allem die Pflichten für Hochrisiko-Systeme, auf Dezember 2027 und August 2028. Nicht verschoben wurden die Transparenzpflichten nach Artikel 50, die seit dem 2. August 2026 anwendbar sind, und die KI-Kompetenzpflicht nach Artikel 4, die weiterhin gilt, wenn auch in gelockerter Form. Dazu kommt: Der praktische Druck kommt selten von der Aufsicht. Er kommt von Auftraggebern im Vergabeprozess, vom Betriebsrat, vom Versicherer und vom ersten Vorfall im eigenen Haus."},{question:"Empfehlen Sie Tools oder bleiben Sie tool-agnostisch?",answer:"Ich verkaufe keine Lizenzen und erhalte keine Provisionen. Ich arbeite mit den Werkzeugen, die bei Ihnen bereits im Einsatz sind, in der Regel Microsoft Copilot, ChatGPT, Claude oder Gemini. Ist die Toolwahl noch offen, bewerte ich die Optionen nach Ihren Anforderungen an Datenverarbeitung, Vertraulichkeit und Verwaltbarkeit."},{question:"Welches Implementierungsniveau unterstützen Sie?",answer:"Von No-Code-Templates und sicheren Chat-Tools über Low-Code-Automatisierung bis hin zu Custom Development durch erfahrene KI-Engineers. Ich liefere die technische Tiefe, die zum Reifegrad und zur IT-Landschaft passt, und empfehle bewusst die einfachste Lösung, die das Problem löst."},{question:"Wie lange dauert eine vollständige Einführung?",answer:"Für ein mittelständisches Unternehmen mit einem Standort typischerweise sechs bis zwölf Wochen von der Bestandsaufnahme bis zur fertigen Nachweismappe. Die Abstimmungszeiten mit Recht, Datenschutz und Personalvertretung machen dabei den größten Teil aus. Wenn nur Richtlinie und Schulung gebraucht werden, geht es deutlich schneller. Einzelne Trainings lassen sich kurzfristig ansetzen."},{question:"Wir haben schon eine IT-Richtlinie. Reicht die nicht?",answer:"Meist nicht, aber sie ist eine gute Grundlage. Klassische IT- und Datenschutzrichtlinien regeln Zugriff und Datenverarbeitung, nicht aber die spezifischen KI-Fragen: Welche Ausgaben dürfen ungeprüft weiterverwendet werden, wer trägt die Verantwortung für ein KI-gestütztes Ergebnis, wie wird KI-erzeugter Inhalt gekennzeichnet, was passiert bei einer Halluzination in einem Kundendokument. Ich baue auf Ihren bestehenden Regeln auf, statt ein zweites Regelwerk daneben zu stellen."},{question:"Was ist der beste erste Schritt?",answer:"Wenn Sie interne Kompetenz und Alignment aufbauen möchten, beginnen Sie mit einem kleinen Workshop. Wenn Sie einen Workflow schnell priorisieren und umsetzen möchten, beginnen Sie mit einem Beratungspaket. Am einfachsten: Buchen Sie ein Erstgespräch und schildern Sie kurz Ihre Rolle und Ihr aktuelles KI-Setup. Ich empfehle den richtigen Ausgangspunkt."}]},investigatorPreview:{badge:"Advanced KI Use Case",title:"Beispiel für einen Advanced KI Use Case",description:"Diligenz Investigator verbindet klassische Due-Diligence-Checks mit KI-nativer Analytik: Netzwerkanalyse, Knowledge Graphs und Kontextintelligenz. Tausende Quellen in Minuten analysiert.",cta:"Diligenz Investigator entdecken"},contact:{eyebrow:"Kontakt",title:"30 Minuten, in denen Sie wissen, wo Sie stehen.",subtitle:"Im Erstgespräch gehen wir durch, welche KI bei Ihnen tatsächlich im Einsatz ist, welche Pflichten davon berührt sind und was der kürzeste Weg zu einer belegbaren Position wäre. Kostenlos und unverbindlich. Am Ende haben Sie eine Einschätzung, mit der Sie intern weiterarbeiten können.",bookCall:"Erstgespräch buchen",calLink:"https://cal.com/torsten-steiner-pwnlvz/30min",email:"[email protected]",location:"Berlin, Deutschland"},footer:{privacy:"Datenschutz",terms:"AGB",imprint:"Impressum",about:"KI-Einführung, Governance und Training für Unternehmen, die KI produktiv und nachweisbar einsetzen wollen.",headings:{services:"Leistungen",sectors:"Branchen",more:"Mehr"},servicesLinks:[{label:"Training und Workshops",href:"#workshops"},{label:"Beratung",href:"#leistungen"},{label:"Vorgehen",href:"#methodik"},{label:"EU AI Act",href:"#eu-ai-act"}],sectorsLinks:[{label:"Logistik und Supply Chain",href:"#branchen"},{label:"Industrie und Mittelstand",href:"#branchen"},{label:"Professional Services",href:"#branchen"},{label:"Investment Management",href:"#branchen"}],moreLinks:[{label:"Referenzen",href:"#referenzen"},{label:"Medien",href:"#medien"},{label:"Über mich",href:"#gruender"},{label:"FAQ",href:"#faqs"},{label:"Investigator",href:"/investigator"},{label:"Newsletter",href:"/newsletter"},{label:"Kontakt",href:"#contact"}
102],investigator:"Auf der Suche nach KI-gestützter Due-Diligence-Berichterstattung und investigativer Analytik? Besuchen Sie",investigatorLink:"Diligenz Investigator",disclaimer:"Outputs dienen der Entscheidungsunterstützung. Kunden wenden ihre eigenen Richtlinien und ihr Urteilsvermögen an. Diligenz bietet Beratungs- und Trainingsdienstleistungen und stellt keine Rechts-, Finanz- oder Regulierungsberatung dar.",copyright:"© 2026 Diligenz. Alle Rechte vorbehalten."},modals:{consultingInquiry:{questionPlaceholder:"Haben Sie eine konkrete Frage? (optional)",emailPlaceholder:"[email protected]",optional:"Optional",submit:"Mehr Informationen anfordern",success:{title:"Anfrage gesendet",description:"Ich melde mich in Kürze zu diesem Service."},error:{title:"Ungültige E-Mail",description:"Bitte geben Sie eine gültige E-Mail-Adresse ein."}},serviceInquiry:{questionPlaceholder:"Haben Sie eine konkrete Frage? (optional)",emailPlaceholder:"[email protected]",optional:"Optional",outputsLabel:"Typische Ergebnisse",submit:"Mehr Informationen anfordern",success:{title:"Anfrage gesendet",description:"Ich melde mich in Kürze zu diesem Service."},error:{title:"Ungültige E-Mail",description:"Bitte geben Sie eine gültige E-Mail-Adresse ein."}}},investigator:{meta:{title:"Diligenz Investigator - KI-gestützte Unternehmensrecherche",description:"Deep Company Research mit Advanced AI und Data Science. Tausende Quellen in Minuten analysiert."},hero:{badge:"Advanced KI Use Case Beispiel",title:"Ein Beispiel für einen Advanced AI Workflow: Diligenz Investigator",subtitle:"Deep Company Research mit Advanced AI und Data Science",tagline:"KI Power + Expertenwissen = Diligenz Investigator",cta:"Gesprächstermin vereinbaren"},study:{title:"Real Estate Universum 2025",description:"Sehen Sie meine Investigator Bots im Einsatz. Das Ergebnis von 12 Monaten Recherche und tiefgehender Analyse des deutschen Immobilienmarktes jetzt als Report kostenlos verfügbar!",cta:"Report herunterladen",stats:{companies:{value:"2.486",label:"Firmen bilden mein Universum"},gdp:{value:"19%",label:"des deutschen BIP macht die Immobilienbranche aus"},connections:{value:"289.626",label:"Verbindungen zwischen Firmen identifiziert"},datapoints:{value:"12.000",label:"Datenpunkte analysiert"}}},difference:{title:"Was ich anders mache",subtitle:"Die Technologie ist da. Zeit für AI-native DD-Methodik.",text:"Aus langjähriger Arbeit in Portfolio- und Transaktionsprozessen weiß ich, dass die entscheidenden Informationen in traditioneller DD oft verloren gehen. Deshalb verbinde ich klassische Checks - Sanktions-/PEP-Prüfungen, Jahresabschlussanalyse - mit innovativen Verfahren wie Netzwerkanalysen, Knowledge-Graph-Analytik und Kontext-Intelligence."},whyUs:{title:"Warum Diligenz Investigator?",items:["Tausende Quellen in Minuten analysiert","Mehr Detailtiefe, für weniger Geld: Attraktives Pricing","Expert-in-the-Loop: Ex-Rating Agency Analyst Review für jeden Report","Keine Black-Box KI - jede Quelle und Datenherkunft klar markiert","Schneller Turnaround: Überprüfte Reports innerhalb von 5 Werktagen","Informationsvorteil: Durch Datenauswertung mit KI"],cta:"Sample Report erhalten"},methodology:{title:"Meine Methodik für bessere Daten",items:[{title:"Unternehmensrecherche",description:"Ich kombiniere Big-Data-Extraktion, Python-basierte Queries und KI-gestützte Analyse, um Unternehmensinformationen aus öffentlichen Quellen schneller und vollständiger nutzbar zu machen. Durch mehrsprachiges Crawling, Entitätenauflösung und strukturierte Prozessdokumentation entstehen präzise Profile."},{title:"Netzwerkanalyse und KI-native Methoden",description:"Netzwerk-Modelle und kontextbasierte Klassifikatoren zeigen Beteiligungen, Kontrollbeziehungen und Ereigniszusammenhänge in hoher Detailtiefe. KI-Systeme priorisieren Relevanz und erkennen Muster in Daten, die sonst nicht ausgewertet werden."},{title:"Klassische DD Funktionen",description:"Sanktions- und PEP-Screening, Finanz- und Rechtsindikatoren sowie ESG-Hinweise werden automatisiert gesammelt, normalisiert und durch Analysten bewertet. Das Ergebnis: ein konsistentes, quellengestütztes Risikobild."}]},contact:{title:"Für mehr Transparenz im deutschen Markt",subtitle:"Sprechen Sie mit mir über Ihre Firmen DD oder Monitoring Requirements.",email:"[email protected]"},downloadModal:{title:"Report herunterladen",description:"Geben Sie Ihre E-Mail-Adresse ein, um den Real Estate Universum Report 2025 zu erhalten.",placeholder:"[email protected]",success:{title:"Download startet",description:"Der Report wird heruntergeladen."},error:{title:"Ungültige E-Mail",description:"Bitte geben Sie eine gültige E-Mail-Adresse ein."}}},useCaseChecker:{meta:{title:"AI Use Case Checker | Diligenz",description:"In 6 Fragen zu Nutzen, Komplexität und Umsetzungsweg Ihres AI Use Cases."},hero:{title:"AI Use Case Checker",subtitle:"Beantworten Sie sechs kurze Fragen und erhalten Sie eine praktische Einschätzung zu Nutzen, Komplexität und dem passenden Umsetzungsweg.",trustLine:"Die Ergebnisse sehen Sie, nachdem Sie Ihre E-Mail-Adresse angegeben haben. Ich melde mich nur, wenn Sie das möchten.",cta:"Jetzt prüfen"},useCaseCard:{title:"Beschreiben Sie Ihren Use Case",helperText:"Beschreiben Sie in ein bis drei Sätzen, was Sie erreichen möchten. So kann ich die Empfehlung besser zuschneiden.",placeholder:"Beispiel: Wir möchten erste Entwürfe für Kundenantworten automatisieren, basierend auf Wissensdatenbank und Ticket-Historie."},emailStep:{title:"Wohin soll ich Ihre Ergebnisse senden?",helperText:"Ich melde mich nur, wenn Sie das möchten.",placeholder:"[email protected]",button:"Weiter",error:"Bitte geben Sie eine gültige E-Mail-Adresse ein."},stepper:{step1:"Fragen",continue:"Weiter",showResults:"Ergebnis anzeigen"},form:{honeypot:"Dieses Feld nicht ausfüllen"},questions:{q1:{title:"Aufwand heute (Team-weit pro Monat)",options:["< 5 Stunden","5 bis 20 Stunden","20 bis 50 Stunden","50 bis 120 Stunden","> 120 Stunden"]},q2:{title:"Daten + Prozess-Standardisierung",options:["Jeder Fall ist anders, Inputs sind verstreut","Viele Varianten, überwiegend unstrukturiert (E-Mail, PDF)","Mix, wiederkehrende Muster, aber Ausnahmen häufig","Meist standardisiert, Inputs halb-strukturiert (Templates, Tabellen)","Sehr standardisiert, klare Felder, definierter Output"]},q3:{title:"Systemzugriff und Integrationen",options:["Keine APIs, nur manuelle UIs","Teilweise Zugriff, vieles bleibt manuell","APIs existieren, Zugang oder Ownership unklar","APIs verfügbar und zugänglich","APIs plus Webhooks oder Events, saubere Auth"]}
102,q4:{title:"Risiko und Governance-Anforderungen",options:["Hochkritisch, Compliance oder Audit, Fehler kaum tolerierbar","Kritisch, Freigaben fast immer nötig","Mittel, Freigaben manchmal nötig","Niedrig, Review reicht","Unkritisch, Assistenz ist ok"]},q5:{title:"Aktuell genutzte AI-Systeme",checkboxLabel:"Welche AI-Systeme nutzen Sie bereits?",checkboxes:["ChatGPT (Enterprise/Team)","ChatGPT (Free)","Microsoft Copilot","Claude","Gemini","Lokale LLMs","Eigenes Modell","Andere","Keine"],maturityLabel:"AI-Reifegrad",maturityOptions:["Keine AI-Nutzung","Ad hoc, einzelne Personen, keine Guidelines","Regelmäßig, aber nicht in Workflows integriert","Standard-Tooling plus Guidelines, erste produktive Use Cases","AI ist Teil des Prozesses, Messung, Monitoring, klare Verantwortung"]},q6:{title:"Aktuell genutzte Automations-Tools",checkboxLabel:"Welche Automations-Tools nutzen Sie bereits?",checkboxes:["n8n","Power Automate","Zapier","Make","UiPath","Workato","Scripts (Python)","Excel VBA","Keine"],maturityLabel:"Automatisierungs-Reifegrad",maturityOptions:["Keine Automatisierung","Einzelne Macros oder Skripte, wenig Robustheit","Low-code Flows für einfache Abläufe","Flows mit Error-Handling, Logging, Ownership","Wiederverwendbare Bausteine, Monitoring, Deployment-Standards"]}},results:{title:"Ihr Ergebnis",scores:{priority:"Priority Score",complexity:"Complexity Score",impact:"Impact",feasibility:"Feasibility",readiness:"Readiness"},buildPath:{diy:"DIY Quick Win",hybrid:"Hybrid",custom:"Custom First"},levels:{high:"hoch",medium:"mittel",low:"niedrig"},interpretation:{impactIs:"Impact ist",feasibilityIs:"Machbarkeit ist",complexityIs:"Komplexität ist",readinessIs:"Readiness ist",recommendedPath:"Empfohlener Umsetzungsweg",lowCodeHint:"Low-code Orchestrierung passt wahrscheinlich gut.",noToolsHint:"Quick Start: Etablieren Sie zuerst eine einfache Orchestrierung mit Review-Schritt."},cta:{discuss:"Use Case besprechen",reset:"Noch einen Use Case prüfen"},confirmation:{title:"Vielen Dank für Ihre Einsendung",subtitle:"Ich habe Ihre Use-Case-Beschreibung erhalten und melde mich in Kürze bei Ihnen.",ctaHome:"Zur Startseite"}}},clients:{gateTitle:"Kunden-Fragebogen",gateDescription:"Bitte geben Sie Ihre E-Mail-Adresse ein, um auf den Workflow-Fragebogen zuzugreifen.",emailLabel:"E-Mail-Adresse",emailPlaceholder:"[email protected]",emailRequired:"Bitte geben Sie eine E-Mail-Adresse ein",emailInvalid:"Bitte geben Sie eine gültige E-Mail-Adresse ein",continueButton:"Weiter zum Fragebogen",privacyNote:"Ihre Daten werden vertraulich behandelt und nur für die Bearbeitung Ihrer Anfrage verwendet.",questionnaireTitle:"Workflow Questionnaire",questionnaireSubtitle:"Automation + KI",submittingAs:"Einreichung als",submitButton:"Fragebogen absenden",submitting:"Wird gesendet...",successTitle:"Erfolgreich übermittelt",successMessage:"Vielen Dank für Ihre Eingaben. Ich werde mich in Kürze bei Ihnen melden.",errorTitle:"Übermittlung fehlgeschlagen",errorMessage:"Beim Senden ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",sections:{section1:{title:"1) Use Case Überblick",useCaseDescription:"Kurzbeschreibung des Use Cases (Ziel, Kontext, aktuelle Painpoints)",useCaseDescriptionPlaceholder:"Beschreiben Sie kurz den Use Case...",toolPreferences:"Gibt es bereits Tool-Präferenzen oder eine Greenlist/Whitelist?",toolPreferencesPlaceholder:"Falls Ja/TBD: Welche Tools?",logicClarity:"Gibt es bereits eine klare Vorstellung der Logik / des Ablaufs?",logicDescriptionPlaceholder:"Kurzbeschreibung / Skizze",no:"Nein",yes:"Ja",tbd:"TBD",yesClear:"Ja, klar",partial:"Teilweise"},section2:{title:"2) Team & Ownership",technicalOwner:"Wer trägt die fachliche Verantwortung für die Automation (Owner)?",technicalOwnerPlaceholder:"Name/Rolle des Owners",runSupport:"Wer betreibt die Automation (Run/Support)?",runSupportPlaceholder:"Name/Rolle für Run/Support",automationKnowledge:"Kenntnisse im Team: Automation",automationKnowledgePlaceholder:"Beschreiben Sie die Automation-Kenntnisse...",automationToolsPlaceholder:"Welche Tools wurden schon genutzt?",aiKnowledge:"Kenntnisse im Team: KI und LLMs",aiKnowledgePlaceholder:"Beschreiben Sie die KI-Kenntnisse...",aiExperimentsPlaceholder:"Womit wurde experimentiert?",accessScope:"Wer soll Zugriff auf die Automation haben (Zielzustand)?",wholeTeam:"Ganzes Team",multipleTeams:"Mehrere Teams",wholeCompany:"Ganze Firma",selective:"Nur selektiv",accessDetail
102sPlaceholder:"Wer genau? (Rollen/Personen)"},section3:{title:"3) KI + Automatisierungsprozess",triggers:"Was löst die Automation aus? (Mehrfachauswahl möglich)",triggerOptions:{emailIncoming:"E-Mail Eingang",externalDataroom:"Upload in (externen) Datenraum",internalFolder:"Upload/Änderung in internem Folder/SharePoint",scheduled:"Regelmäßig (z. B. täglich/wöchentlich)",excelUpdate:"Excel/Sheet Update",manual:"Manuell (Button/Formular)",tbd:"TBD"},triggerDetailsPlaceholder:"Details/Beispiele",dataConsistency:"Sind es immer die gleichen Datentypen oder variabel?",alwaysSame:"Immer gleich",oftenSimilar:"Häufig ähnlich",highlyVariable:"Stark variabel",tbd:"TBD",inputExamplesPlaceholder:"Beispiele für Input (Dokumenttypen, typische Dateien)",noDataAction:"Was soll passieren, wenn keine Daten/zu wenig Daten vorhanden sind?",abortNotify:"Abbrechen + Hinweis",outputGaps:"Ergebnis mit Datenlücken ausgeben",askUser:"Rückfrage an Nutzer (z. B. per E-Mail/Teams)",commentPlaceholder:"Kommentar",analysisStructure:"Wie soll die Analyse strukturiert sein?",singleSchema:"Ein Schema für alle Abläufe",templates:"Verschiedene Templates je Fall",modular:"Baukastensystem (Module kombinieren)",evaluationLogic:"Soll eine Bewertungslogik hinzugezogen werden? Auf die Logik trifft zu:",writtenRules:"Klare schriftliche Regelung vorhanden",clearNotWritten:"Regeln sind klar, aber nicht verschriftlicht",tacitKnowledge:'Wissen über Regeln existieren im "Tacit-Knowledge" Bereich',evaluationCommentPlaceholder:"Sonstiger Kommentar zur Bewertungslogik?"},section4:{title:"4) Output & Erfolg",hasExample:"Gibt es ein Beispiel für ein gewünschtes Ergebnis (Reverse Engineering)?",yesEmail:"Ja (bitte per E-Mail schicken)",no:"Nein",tbd:"TBD",exampleDescriptionPlaceholder:"Link/Beispielbeschreibung",outputFormats:"Gewünschtes Output-Format (Mehrfachauswahl möglich)",formatOptions:{onePager:"1-Pager Decision Brief",teamsPost:"Teams-Post / Teams-Nachricht",ppt:"PPT",pdf:"PDF",excelSummary:"Excel/Sheet Summary",qaChat:"Q&A (Chat) mit Quellen",tbd:"TBD"},commentPlaceholder:"Kommentar",successCriteria:"Erfolgskriterien (Pilot) (z. B. Zeitersparnis, Qualität, Adoption)",successCriteriaPlaceholder:"Beschreiben Sie die Erfolgskriterien..."},section5:{title:"5) Software, Zugriff & KI-Einstellungen",softwareWhitelist:"Software Whitelist / Vorgaben (falls vorhanden)",softwareWhitelistPlaceholder:"Listen Sie erlaubte Software auf...",accessPermissions:"Berechtigungen: Darf die Automation auf folgende Systeme zugreifen?",yes:"Ja",no:"Nein",tbd:"TBD",accessCommentPlaceholder:"Kommentar (z. B. nur bestimmte Sites/Ordner/Teams)",preferredAI:"Präferierte KI (falls vorhanden)",preferredAIPlaceholder:"z. B. ChatGPT Business, Azure OpenAI, Copilot, anderes"},section6:{title:"6) Governance / Compliance",hasPII:"Enthalten die Dokumente personenbezogene Daten (PII)?",analyzesPII:"Werden personenbezogene Daten gezielt analysiert (Extraktion/Profiling/Klassifikation)?",piiDetailsPlaceholder:"Falls Ja/TBD: Welche Daten? Zweck?",hasAIPolicy:"KI-Policy vorhanden?",aiPolicyLinkPlaceholder:"Link/Owner",hasGovernanceRules:"Governance-Regeln für Advanced KI Use Cases vorhanden?",governanceGapsPlaceholder:"Was fehlt / was soll ergänzt werden?",requiresLogging:"Logging / Audit aller Automatisierungs- und KI Schritte erforderlich?",loggingDetailsPlaceholder:"Was muss geloggt werden? (z. B. User, Quellen, Outputs)",yes:"Ja",no:"Nein",tbd:"TBD"}}}},$A={lang:"en",nav:{services:"Consulting",sectors:"Sectors",training:"Training and workshops",caseStudies:"Case Studies",media:"Media",more:"More",aiAct:"EU AI Act",founder:"About",approach:"Approach",faqs:"FAQ",investigator:"Investigator",newsletter:"Newsletter",contact:"Contact"},cta:{bookCall:"Book an intro call",viewServices:"See services",requestSession:"Request a session",moreInfo:"Get in touch for details",learnMore:"Learn more",submit:"Submit",submitting:"Sending...",registerInterest:"Register Interest"},hero:{badge:"AI adoption, governance, training",title:"AI at an institutional standard.",subtitle:"I roll out AI inside companies: with standards, documented governance and team
102s that know what they are doing. From logistics and manufacturing to professional services and investment management.",bullets:[{label:"AI adoption:",text:"from inventory and prioritisation to a workflow that runs in production"},{label:"AI policy and governance:",text:"policy, roles, approvals, human-in-the-loop"},{label:"Training and evidence:",text:"AI literacy and data protection, documented and certified"}],trustLine:"14 years of experience in institutional asset management, investment research and manager evaluation at Nuveen, Quirin Privatbank, Scope and JLL.",cta:{viewServices:"View services",note:"15 min · complimentary"}},problem:{eyebrow:"The situation",title:"Most companies have an AI quality problem.",intro:"Missing standards, no reliable evaluation and wide gaps in AI knowledge lead to inconsistent output quality, loss of trust in the technology and regulatory exposure.",cards:[{title:"The tools are already in use",text:"ChatGPT, Copilot or Gemini run through personal accounts. Nobody knows exactly who is doing what with which client and employee data."},{title:"But no rule covers them",text:"People want to use AI responsibly. Without a policy every department decides for itself. Or it bans everything as a precaution."},{title:"And none of it is documented",text:"When clients, the works council, insurers or a supervisory authority ask: no training records, no inventory, no named accountability."}]},valueStrip:{headline:"Most Firms have an AI Adoption Gap.",text:"For many AI adoption is not living up to its potential. Analysts use AI for drafting and summarisation, but usage is guided by individual habits, key AI skills are missing, limited standards are established. The result is low quality outputs, trust erosion, and regulatory risks."},services:{title:"Establishing AI quality and AI governance.",eyebrow:"Services",intro:"Four building blocks, bookable individually. Most companies start with policy and training, because that is where the pressure to show evidence is highest. Anyone serious about production use needs all four.",blocks:[{number:"01",title:"AI Adoption and Operating Model",intro:"From taking stock to a rollout plan that holds up.",bullets:["AI inventory across all departments","Use case scoring by value and risk","Tool and licence architecture","Roles, accountability, approval paths","Pilot and rollout plan"]},{number:"02",title:"AI Policy and Governance",intro:"The policy your people will actually read and apply.",bullets:["AI policy in plain language","Aligned with GDPR and your existing IT rules","Red lines, approvals, escalation","Human-in-the-loop controls","Sign-off with legal, IT and the works council"]},{number:"03",title:"Training and Data Protection",intro:"Role-specific rather than one-size-fits-all: leadership, specialists, back office.",bullets:["AI literacy training under Article 4","Data protection and confidentiality in AI use","Hallucinations, prompt hygiene, source checking","Exercises on real tasks from your own business","Certificate of completion for every participant"]},{number:"04",title:"Evidence and Continuity",intro:"So the work does not disappear into a folder.",bullets:["Training and measures documentation","Evidence pack for regulators, clients and auditors","Implementing transparency duties under Article 50","Refresher and onboarding cadence","Optional: ongoing support as a sounding board"]}],labels:{value:"Value",outcome:"Outcome",duration:"Duration",price:"Price range"},primary:[{title:"AI workshop for investment teams",value:"Your team develops shared standards for prompts, source checking and quality control.",outcome:"Hands-on training on selected workflows, shared prompt and review standards, plus documented participation.",duration:"One day or two half days",price:"From 3,500 euro for up to twelve participants"},{title:"AI literacy for investment teams",value:"Your staff understand the uses, limits and risks of AI in their specific working context.",outcome:"Role based training, participation records and recommendations for responsible AI use across the firm.",duration:"Two hours",price:"From 1,900 euro per group"},{title:"AI workflow diagnosis",value:"You get a prioritised basis for deciding where AI belongs in your team.",outcome:"Assessment of selected work steps by value, effort, data requirements and risk, plus a recommendation for the first implementation step.",duration:"One workshop day, report within a week",price:"From 2,900 euro"}],furtherLabel:"Further projects",further:[{title:"Workflow lab for analysts",value:"Your analysts develop shared templates and review steps for recurring reports.",outcome:"Training on selected reporting processes, templates, quality controls and standards for drafting and reviewing.",duration:"One day",price:"From 3,900 euro"},{title:"Automation review for due diligence",value:"You identify which w
102ork steps can be standardised or partly automated without replacing professional review.",outcome:"Process mapping, assessment of suitable steps, up to three prototypes or templates, plus documentation of review and sign off steps.",duration:"Two to three weeks",price:"From 8,900 euro"},{title:"Research process review",value:"You get a structured path from source research to the decision paper.",outcome:"Analysis of the existing process, defined research and review steps, plus templates for recurring report formats.",duration:"Two weeks",price:"From 7,500 euro"},{title:"Prompt and workflow library",value:"Your team gets agreed templates for recurring tasks in fund review, screening, monitoring and reporting.",outcome:"A library tailored to your tools and workflows, with prompts, source requirements, output formats and review steps.",duration:"One to two weeks",price:"From 4,500 euro"}],note:"The AI workflow diagnosis works well as an entry point when use cases are not yet prioritised. You decide on further steps after the results."},whoWeHelp:{title:"Who I work with",audiences:["Logistics and Transport","Industry and Trade","Professional Services","Investment Managers","Institutional Investors","Fund-of-funds","Family Offices","Advisors","Operations Teams","Real Estate","Alternative Assets"]},approach:{eyebrow:"Approach",title:"A path you can walk in a single quarter.",intro:"No mega-project, no consulting scaffolding. Four steps that build on each other, and after every step there is a result you can show.",resultLabel:"Result:",steps:[{number:"1",title:"Take stock",text:"Who uses what, with which data, for which task, including the tools IT does not know about.",result:"an AI inventory with a risk assessment."},{number:"2",title:"Policy and governance",text:"Draft the policy, align it with legal, IT and the works council, adopt it.",result:"a policy in force with named accountability."},{number:"3",title:"Training",text:"Role-specific training on the participants' real workflows.",result:"trained staff, documented and certified."},{number:"4",title:"Evidence",text:"Bring together the inventory, policy, training records and transparency notices.",result:"a pack that stands up to scrutiny."}]},sectors:{eyebrow:"Sectors",title:"The framework is the same. The use cases never are.",intro:"Governance works the same way across industries. What differs is the workflows, the types of data and where an AI error actually hurts.",useCasesLabel:"Typical use cases",tabs:{investment:"Investment Management",logistics:"Logistics and Supply Chain",professional:"Professional Services",industry:"Industry and Mid-Market"},investment:{title:"Investment Management, Real Estate and Alternative Assets",paragraphs:["The field Diligenz grew out of. Investment teams work with confidential documents, tight deadlines and supervisory expectations around documentation. AI accelerates this enormously, but only with a clean confidentiality architecture and a traceable basis for decisions.","I work with investment managers, institutional investors, fund-of-funds, family offices, advisors and operations teams. The principle stays the same: AI output is decision support, never the decision."],tags:["Confidentiality and NDA perimeter","Human-in-the-loop","Auditable chain of reasoning","Auditable logging"],useCases:["Due diligence: document review, red-flag extraction, data room completeness checks","Investment memos: structuring, first drafts, consistency checks against sources","Reporting to LPs and committees: summaries, text modules, quality assurance","Market and competitor research with a documented source trail","Portfolio monitoring: analysis of holdings' reports and metrics","Real estate: analysis of lease, asset and contract documentation"]},logistics:{title:"Logistics, Transport and Supply Chain",paragraphs:["High document throughput, thin margins, constant communication with customers and subcontractors, and teams that rarely have time for training. That is exactly why AI works so well here, provided it starts from real workflows rather than IT pilot projects.","A sector specific: employee data in dispatch and performance evaluation quickly touches the high-risk category of the EU AI Act. That needs clarifying early and not once the system is live."],tags:["Employee data and works council","Annex III assessment","Shift-friendly training","Customer communication"],useCases:["Automated extraction from freight documents, delivery notes and customs paperwork","Structuring and drafting tenders and quotes","Pre-qualifying and summarising claims and damage cases","Speeding up customer enquiries and status requests in service","Reconciling framework agreements and SLAs against actual performance","Internal knowledge base for dispatch and back office"]},professional:{title:"Professional Services, Law Firms and Consultancies",paragraphs:["Here confidentiality is not a compliance topic but the basis of the business. Client data must not leave the defined perimeter, and professional conduct rules sit on top of GDPR. At the same time the productivity gain is largest in exactly these firms.","Clients increasingly ask about your AI policy during tenders and onboarding. Demonstrable governance is therefore not only an obligation but a sales argument."],tags:["Client confidentiality","Professional conduct rules","Answerable in pitches","Quality assurance"],useCases:["Contract and document analysis with source references","Research with a verifiable source trail","Drafts for pleadings, opinions and reports","Preparing minutes and client communication","Proposal and pitch production","Internal knowledge base from completed engagements"]},industry:{title:"Industry, Trade and Mid-Market",paragraphs:["The classic case: 80 to 800 employees, a lean IT function, no dedicated AI owner, and still the full set of deployer obligations. The Digital Omnibus brought relief for SMEs and small mid-caps, but did not remove the core duties.","For these companies I deliberately build lean: one policy, one inventory, one training cycle, one evidence pack. Not a governance apparatus nobody maintains."],tags:["SME relief","Lean implementation","Recruitment counts as high risk","Supplier requirements"],useCases:["Quote and tender processing in sales","Creating and maintaining technical documentation and manuals","Procurement: analysing supplier documents and terms","Customer service and complaints handling","HR: job ads and onboarding material, with a clear line to candidate selection","Marketing and content with correct labelling under Article 50"]}},workshops:{eyebrow:"Training and Workshops",title:"Workshops that fit into a working day.",intro:"From EU AI Act essentials and data protection to hands-on deep dives into reporting and automation workflows. On site with you or in Berlin, Frankfurt, London and Tel Aviv, structured and with tangible outputs. In German or English.",headers:{format:"Format",duration:"Duration",price:"Price range",content:"Content and outcome"},items:[{title:"Getting Started with AI",duration:"2 hours",price:"From 1,900 euros per group",description:"The entry point for teams that use AI only occasionally. Compact prompting knowledge for everyday work, the data protection basics and concrete use cases drawn from the participants' own tasks. After two hours everyone knows what AI is good for in their own job and where the limit lies."},{title:"EU AI Act Literacy Training",duration:"2 hours",price:"From 1,900 euros per group",description:"Article 4 requires organisations deploying AI systems to take measures on AI literacy. This training gives your staff the literacy they need for safe day-to-day use and covers the key risks: hallucinations, confidentiality, over-reliance. With a certificate of completion and documentation for your evidence pack."},{title:"Data Protection and AI",duration:"2 hours",price:"On request",description:"For every role working with customer, employee or sensitive data. What may go into which tool, how to spot critical inputs, how to document correctly. Aligned with your existing data protection rules."},{title:"Leadership Briefing: AI Operating Model",duration:"From 2 hours",price:"On request",description:"A structured briefing on best-in-class examples of AI adoption and where automation delivers the highest efficiency gain. Plus policy, risk profiles and the EU AI Act, with roadmap examples your organisation can implement."},{title:"One Advanced Use Case, End-to-End",duration:"One day or two half days",price:"From 3,500 euros for up to twelve participants",description:"A walk-through of an advanced AI workflow from start to finish. We cover automation patterns, quality control and the role of human-in-the-loop. Your team leaves with a template for comparable workflows."},{title:"Workflow Lab",duration:"Full day",price:"From 3,900 euros",description:"Hands-on training for specialist and research teams focused on reporting and processing workflows. Practical exercises on a 
102standardised set of patterns: drafting, summaries, structuring, QA. You learn templates, quality controls and standards so output becomes consistent and auditable."},{title:"AI Governance and Regulation",duration:"Half day",price:"On request",description:"A structured workshop on best-practice governance and the practical requirements of the EU AI Act. Usage standards, roles, documentation and oversight. You leave with a clear checklist."},{title:"AI Workflow Diagnostic",duration:"One workshop day, report within a week",price:"From 2,900 euros",description:"A structured assessment of selected work steps by value, effort, data requirements and risk. You receive a prioritised basis for decisions and a recommendation for the first implementation step."},{title:"Custom Workshops and Training",duration:"On request",price:"On request",description:"For teams with specific requirements: a particular tool, a workflow or your software environment. You outline the context and target picture, I propose a format with clear outcomes."}]},aiAct:{eyebrow:"EU AI Act, as of August 2026",title:"Amended, not repealed.",intro:"Regulation (EU) 2026/1744 mainly defers deadlines for high-risk AI and eases certain obligations. The core duties for companies deploying AI remain in place.",cards:[{title:"AI literacy under Article 4",intro:"",bullets:["Companies must still take measures to support the development of AI literacy among their staff.","This applies regardless of size and sector as soon as employees use AI systems such as ChatGPT, Copilot, Claude or Gemini at work.","What is new: no specific level of competence has to be guaranteed. What counts are appropriate, risk-based measures.","No certification is required. What does help: documented training, internal guidelines and an overview of the AI systems in use."],note:""},{title:"What applies from 2 August 2026",intro:"The transparency duties under Article 50 are applicable. Depending on the use case these include:",bullets:["Notices when a person interacts directly with AI","Labelling of certain AI-generated content","Disclosure of deepfakes","Labelling of certain AI-generated texts on matters of public interest"],note:"Not every piece of AI-generated content requires a visible label."}],deadlinesTitle:"Other key deadlines",deadlines:[{date:"2 December 2026",text:"New prohibitions under Article 5 and the end of certain transition periods for generative AI systems."},{date:"2 December 2027",text:"Obligations for stand-alone high-risk AI, for example in recruitment, worker management or creditworthiness assessment."},{date:"2 August 2028",text:"Obligations for high-risk AI embedded in regulated products."}],deadlinesNote:"The penalty framework of the AI Act remains in place in principle. It does not, however, apply automatically to every breach of Article 4.",cta:"What applies specifically to your company depends on your use cases and your data. For an assessment of your situation, get in touch.",disclaimer:"This overview reflects the position as of August 2026, is intended for general orientation and does not constitute legal advice."},founder:{eyebrow:"About the founder",title:"Torsten Steiner",photoPlaceholder:"Add portrait photo",photoAlt:"Torsten Steiner speaking at a conference",bio:["I spent 14 years in institutional asset management, including at Nuveen in London, Quirin Privatbank and as a Director at Scope Group, focused on investment research, portfolio construction, manager due diligence and ratings.","That background still shapes my work today: in highly regulated, document-intensive environments what matters is not whether an AI answers quickly, but whether the result is traceable, evidenced and reviewable. That is the standard applied to every project, whether in an investment team, at a logistics provider or in a mid-sized manufacturer.","Over the past three years I have built AI-supported workflows for due diligence, screening, monitoring and reporting, and trained teams in using them. Where deeper technical implementation is required, I work with experienced AI specialists."],credentials:[{value:"14+",label:"years in investment and real estate"},{value:"EN / DE",label:"consulting and training"},{value:"4",label:"locations: Berlin, Frankfurt, London, Tel Aviv"}]},media:{title:"Media",intro:"Recordings, talks and articles on AI in investment and research processes.",photoPlaceholder:"Add photo",wat
102chLabel:"Watch",talkLabel:"Talk",cta:"Would you like a format like these for your organisation, whether as a webinar, lunch and learn or internal talk?",groups:[{label:"Analysis examples",items:[{title:"Investment committee simulated: a 50 million decision from five perspectives",description:"Five AI roles with conflicting objectives, from ESG through asset management to fund strategy, negotiate a real estate decision. Shows how committee logic can be structured and rehearsed before the human meeting.",videoId:"Akd3LanocVM",thumbnail:"/media/investmentkomitee.jpg",link:"https://youtu.be/Akd3LanocVM"},{title:"Assessing central bank communication in minutes",description:"AI-supported analysis of monetary policy statements and their market impact, with traceable sources. Shows how macro research is accelerated without handing over judgement.",videoId:"BATJ6ZKleXw",thumbnail:"/media/zentralbank.jpg",link:"https://youtu.be/BATJ6ZKleXw"}]},{label:"Talks and webinars",items:[{title:"Lunch and Learn: AI and automation in the CRE deal workflow",description:"Recording of the webinar from 27 May 2026 with a live demo, together with Lily Bergmann (Smart Cookie Jobs). From an unsorted data room to a standardised, repeatable workflow.",videoId:"Q1KY7xCOmDY",thumbnail:"/media/cre-deal-workflow.jpg",link:"https://www.youtube.com/watch?v=Q1KY7xCOmDY"},{title:"AI implementation in investment and research processes",description:"Talk at AIMA London.",videoId:"",thumbnail:"",link:""}]}]},testimonials:{title:"What participants say",items:[{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"},{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"},{quote:"[Zitat folgt]",name:"[Name]",role:"[Funktion]",organisation:"[Art des Hauses]"}],context:"Participant survey July 2026: satisfaction 4.2 out of 5."},caseStudies:{eyebrow:"Case Studies",title:"Selected projects.",intro:"All engagements are confidential, so I do not name clients. What is described is the scope delivered and the result.",resultLabel:"Result",items:[{tag:"Logistics provider, DACH",title:"AI adoption from zero to production, including policy and a trained workforce",description:"AI tools were already in use through personal accounts, without a policy, without oversight, without training. The brief was full adoption, from taking stock to evidence that stands up to review.",modules:["AI inventory and use case prioritisation across all departments","AI policy drafted and signed off with legal, IT and employee representatives","Data protection training focused on customer and employee data","Role-specific AI literacy training under Article 4","Certificates of completion and evidence documentation"],result:"A policy in force, documented training of the relevant roles and an evidence pack that can be presented to clients and supervisory authorities."},{tag:"Services and Mid-Market",title:"AI policy, data protection training and certification of staff",description:"Leadership explicitly wanted to enable AI, but needed a solid rule and proof that staff were trained. The project was triggered by client questions during onboarding.",modules:["AI policy in plain language, aligned with existing IT and data protection rules","Data protection and confidentiality training for all using roles","AI literacy training with a certificate per person","Labelling rules for AI-generated content under Article 50","Refresher and onboarding cadence established"],result:"The ability to answer client questions during tenders. The AI policy is now used actively as a quality signal."},{tag:"Institutional Boutique Manager",title:"Company-wide rollout across investment and operations",description:"Comprehensive upskilling for over 30 team members in investment and operations, aimed at embedding AI throughout daily work rather than in isolated pockets.",modules:["Identification of function-specific use cases per team","Deployment of tailored templates","Targeted follow-up workshops to drive adoption","Ongoing refinement of workflows"],result:"Over 30 trained team members and workflows the organisation continues to develop internally after the engagement."},{tag:"Due Diligence, Automation",title:"Automated company report workflow ahead of deal closing",description:"Design and implementation of a report automation triggered before closing with a counterparty. The workflow runs structured web research, reviews the latest annual report and scans for predefined red flags.",result:"An auditable company report including sources, prepared as a final draft for human review."},{tag:"Cross-Functional Project Drive",title:"One advanced AI project per department",description:"Pre-interviews plus three 90-minute workshops per team to capture pain points and define KPIs, followed by delivery of one advanced AI project per department.",result:"Clear scoping, defined workflow steps, control mechanisms and regular quality reviews, and one working result per department."}]},faqs:{eyebrow:"Frequently asked questions",title:"What companies ask me first.",items:[{question:"Is AI certification for employees a legal requirement?",answer:"No. The EU AI Act does not require certification and does not recognise any mandatory seal. That was true before the Digital Omnibus and remains true after it. What Article 4 requires are appropriate measures on AI literacy that you can evidence. That is exactly why I issue certificates of completion with full training documentation: content, duration, audience, date, participants. That is the evidence that c
102ounts."},{question:"We are not an investment firm. Is this still relevant?",answer:"Yes. The governance framework of inventory, policy, training and evidence is sector-agnostic because the EU AI Act is sector-agnostic. What differs are the use cases and the risk focus: employee data and document throughput at a logistics provider, client confidentiality in a law firm, the NDA perimeter in investment management. The examples in the training always come from your sector and your own workflows."},{question:"How do you handle confidentiality and data security?",answer:"I work strictly within your existing security architecture and access policies. For training I either use anonymised material or work in your environment with your own documents. During adoption we define explicitly which types of data may enter which system and where the line runs. In most projects that is the single most important part of the policy."},{question:"The Digital Omnibus deferred deadlines. Can we wait?",answer:"What was mainly deferred were the obligations for high-risk systems, to December 2027 and August 2028. What was not deferred are the transparency duties under Article 50, applicable since 2 August 2026, and the AI literacy duty under Article 4, which still applies, albeit in a softened form. On top of that: practical pressure rarely comes from a regulator. It comes from clients in tenders, from the works council, from your insurer and from the first incident in your own house."},{question:"Do you recommend tools or stay tool-agnostic?",answer:"I do not sell licences and receive no commissions. I work with the tools already in use at your organisation, typically Microsoft Copilot, ChatGPT, Claude or Gemini. If the choice is still open, I assess the options against your requirements for data processing, confidentiality and manageability."},{question:"What level of implementation do you support?",answer:"From no-code templates and secure chat tools through low-code automation to custom development by experienced AI engineers. I provide the technical depth that matches your maturity and IT landscape, and deliberately recommend the simplest solution that solves the problem."},{question:"How long does full adoption take?",answer:"For a mid-sized company at one location, typically six to twelve weeks from taking stock to a finished evidence pack. The sign-off time with legal, data protection and employee representatives accounts for most of it. If only a policy and training are needed, it is considerably faster. Individual training sessions can be arranged at short notice."},{question:"We already have an IT policy. Is that not enough?",answer:"Usually not, but it is a good foundation. Conventional IT and data protection policies govern access and data processing, not the specific AI questions: which outputs may be reused without review, who is accountable for an AI-assisted result, how AI-generated content is labelled, what happens when a hallucination reaches a client document. I build on your existing rules rather than putting a second rulebook next to them."},{question:"What is the best first step?",answer:"If you want to build internal capability and alignment, start with a small workshop. If you want to prioritise and implement a workflow quickly, start with a consulting package. Simplest of all: book an intro call and briefly describe your role and current AI setup. I will recommend the right starting point."}]},investigatorPreview:{badge:"Advanced AI Example",title:"Example of an Advanced AI Use Case",description:"Diligenz Investigator combines classic due diligence checks with AI-native analytics: network analysis, knowledge graphs, and context intelligence. Thousands of sources analysed in minutes.",cta:"Explore Diligenz Investigator"},contact:{eyebrow:"Contact",title:"Thirty minutes and you will know where you stand.",subtitle:"In the intro call we go through which AI is actually in use at your company, which obligations that touches and what the shortest path to a defensible position would be. Free and without obligation. You leave with an assessment you can work with internally.",bookCall:"Book an intro call",calLink:"https://cal.com/torsten-steiner-pwnlvz/30min",email:"[email protected]",location:"Berlin, Germany"},footer:{privacy:"Privacy Policy",terms:"Terms of Service",imprint:"Imprint",about:"AI adoption, governance and training for companies that want to use AI productively and demonstrably.",headings:{services:"Services",sectors:"Sectors",more:"More"},servicesLinks:[{label:"Training and workshops",href:"#workshops"},{label:"Consulting",href:"#leistungen"},{label:"Approach",href:"#methodik"},{label:"EU AI Act",href:"#eu-ai-act"}],sectorsLinks:[{label:"Logistics and supply chain",href:"#branchen"},{label:"Industry and mid-market",href:"#branchen"},{label:"Professional services",href:"#branchen"},{label:"Investment management",href:"#branchen"}],moreLinks:[{label:"Case studies",href:"#referenzen"},{label:"Media",href:"#medien"},{label:"About",href:"#gruender"},{label:"FAQ",href:"#faqs"},{label:"Investigator",href:"/investigator"},{label:"Newsletter",href:"/newsletter"},{label:"Contact",href:"#contact"}],investigator:"Looking for AI-powered due diligence reporting and investigative analytics? Visit",investigatorLink:"Diligenz Investigator",disclaimer:"Outputs are decision support. Clients apply their own policies and judgement. Diligenz provides consulting and training services and does not constitute legal, financial, or regulatory advice.",copyright:"© 2026 Diligenz. All rights reserved."},modals:{consultingInquiry:{questionPlaceholder:"Do you have a specific question? (optional)",emailPlaceholder:"[email protected]",optional:"Optional",submit:"Request More Information",success:{title:"Inquiry sent",description:"I'll be in touch shortly to discu
102ss this service."},error:{title:"Invalid email",description:"Please enter a valid email address."}},serviceInquiry:{questionPlaceholder:"Do you have a specific question? (optional)",emailPlaceholder:"[email protected]",optional:"Optional",outputsLabel:"Typical outputs",submit:"Request More Information",success:{title:"Inquiry sent",description:"I'll be in touch shortly to discuss this service."},error:{title:"Invalid email",description:"Please enter a valid email address."}}},investigator:{meta:{title:"Diligenz Investigator - AI-Powered Company Research",description:"Deep Company Research with Advanced AI and Data Science. Thousands of sources analysed in minutes."},hero:{badge:"Advanced AI Example",title:"An example of an advanced AI workflow: Diligenz Investigator",subtitle:"Deep Company Research with Advanced AI and Data Science",tagline:"AI + Human Experts = Diligenz Investigator",cta:"Talk to me about AI in DD"},study:{title:"Real Estate Universum 2025",description:"See my investigator bots in action. The result of 12 months of research and in-depth analysis of the German real estate market is now available as a free report! (in German)",cta:"Download Report",stats:{companies:{value:"2,486",label:"Companies in my universe"},gdp:{value:"19%",label:"of German GDP from real estate"},connections:{value:"289,626",label:"Connections between companies identified"},datapoints:{value:"12,000",label:"Data points analysed"}}},difference:{title:"What makes me different",subtitle:"The tech is there. Time for DD methodology to catch up.",text:"From years of experience in portfolio and transaction management, I know that crucial information is often lost in traditional DD. That is where I found my gap in the market: I combine classic checks - sanctions/PEP checks, annual financial statement analysis - with innovative methods such as network analysis, knowledge graph analysis and context intelligence."},whyUs:{title:"Why Diligenz Investigator?",items:["Thousands of sources analysed in minutes","More reporting depth with attractive pricing","Expert-in-the-Loop: Ex-rating agency analyst review for every report","All sources are clearly marked - no black box AI","Faster turnaround: Verified reports within 5 business days","Information advantage: AI-native analytics provide deeper insights"],cta:"Get a sample report"},methodology:{title:"My approach for better data",items:[{title:"Company Research",description:"I combine big data extraction, Python-based queries, and AI-driven analytics to make corporate information from public sources faster and more comprehensive than ever before. Through multilingual crawling, entity resolution, and structured process documentation, I produce precise profiles."},{title:"AI Native Analytics",description:"Network models and context-based classifiers map shareholdings, control relationships, and event linkages in high detail. My AI systems prioritise relevance and detect patterns in data that would otherwise remain unexamined."},{title:"Classic DD Functionality",description:"Sanctions and PEP screening, financial and legal indicators, as well as ESG signals, are automatically collected, normalised, and reviewed by analysts. The result is a consistent, source-backed risk profile."}]},contact:{title:"For greater transparency",subtitle:"Talk to me about your company's due diligence or monitoring requirements.",email:"[email protected]"},downloadModal:{title:"Download Report",description:"Enter your email to receive the Real Estate Universum Report 2025.",placeholder:"[email protected]",success:{title:"Download starting",description:"The report is being downloaded."},error:{title:"Invalid email",description:"Please enter a valid email address."}}},useCaseChecker:{meta:{title:"AI Use Case Checker | Diligenz",description:"In 6 questions, assess value, complexity, and the best implementation path for your AI use case."},hero:{title:"AI Use Case Checker",subtitle:"Answer six quick questions and get a practical assessment of value, complexity, and the best implementation approach.",trustLine:"Results are shown after you provide your email address. I only follow up if you want me to.",cta:"Start the check"},useCaseCard:{title:"Describe your use case",helperText:"In one to three sentences, tell me what you want to achieve. This helps me personalise the recommendation.",placeholder:"Example: We want to automate first draft customer replies using our knowledge base and support ticket history."},emailStep:{title:"Where should I send your results?",helperText:"I only follow up if you want me to.",placeholder:"[email protected]",button:"Continue",error:"Please enter a valid email address."},stepper:{step1:"Questions",continue:"Continue",showResults:"Show results"},form:{honeypot:"Do not fill this field"},questions:{q1:{title:"Current effort (team total per month)",options:["< 5 hours","5 to 20 hours","20 to 50 hours","50 to 120 hours","> 120 hours"]},q2:{title:"Data and process standardization",options:["Every case is different, inputs are scattered","Many variants, mostly unstructured (email, PDF)","Mixed, repeatable patterns, but exceptions are common","Mostly standardized, semi-structured inputs (templates, tables)","Highly standardized, clear fields, defined output"]},q3:{title:"System access and integrations",options:["No APIs, manual UIs only","Partial access, many steps remain manual","APIs exist, but access or ownership is unclear","APIs available and accessible","APIs plus webhooks or events, clean authentication"]}
102,q4:{title:"Risk and governance requirements",options:["Highly critical, compliance or audit, errors barely tolerated","Critical, approvals almost always required","Medium, approvals sometimes required","Low, a review is enough","Not critical, assistive output is fine"]},q5:{title:"AI systems you already use",checkboxLabel:"Which AI systems do you already use?",checkboxes:["ChatGPT (Enterprise/Team)","ChatGPT (Free)","Microsoft Copilot","Claude","Gemini","Local LLMs","In-house model","Other","None"],maturityLabel:"AI maturity",maturityOptions:["No AI usage","Ad hoc, individual users, no guidelines","Regular usage, but not integrated into workflows","Standard tools plus guidelines, first production use cases","AI is embedded in the process, measured, monitored, clear ownership"]},q6:{title:"Automation tools you already use",checkboxLabel:"Which automation tools do you already use?",checkboxes:["n8n","Power Automate","Zapier","Make","UiPath","Workato","Scripts (Python)","Excel VBA","None"],maturityLabel:"Automation maturity",maturityOptions:["No automation","A few macros or scripts, low robustness","Low-code flows for simple processes","Flows with error handling, logging, clear ownership","Reusable building blocks, monitoring, deployment standards"]}},results:{title:"Your results",scores:{priority:"Priority Score",complexity:"Complexity Score",impact:"Impact",feasibility:"Feasibility",readiness:"Readiness"},buildPath:{diy:"DIY Quick Win",hybrid:"Hybrid",custom:"Custom First"},levels:{high:"high",medium:"medium",low:"low"},interpretation:{impactIs:"Impact is",feasibilityIs:"Feasibility is",complexityIs:"Complexity is",readinessIs:"Readiness is",recommendedPath:"Recommended path",lowCodeHint:"Low-code orchestration is likely a good fit.",noToolsHint:"Quick start: set up a simple orchestration with a review step first."},cta:{discuss:"Discuss this use case",reset:"Check another use case"},confirmation:{title:"Thank you for your submission",subtitle:"I have received your use case description and will be in touch shortly.",ctaHome:"Back to homepage"}}},clients:{gateTitle:"Client Questionnaire",gateDescription:"Please enter your email address to access the workflow questionnaire.",emailLabel:"Email Address",emailPlaceholder:"[email protected]",emailRequired:"Please enter an email address",emailInvalid:"Please enter a valid email address",continueButton:"Continue to Questionnaire",privacyNote:"Your data will be treated confidentially and used only to process your inquiry.",questionnaireTitle:"Workflow Questionnaire",questionnaireSubtitle:"Automation + AI",submittingAs:"Submitting as",submitButton:"Submit Questionnaire",submitting:"Submitting...",successTitle:"Successfully Submitted",successMessage:"Thank you for your input. I will get back to you shortly.",errorTitle:"Submission Failed",errorMessage:"An error occurred while sending. Please try again.",sections:{section1:{title:"1) Use Case Overview",useCaseDescription:"Brief description of the use case (goal, context, current pain point)",useCaseDescriptionPlaceholder:"Briefly describe the use case...",toolPreferences:"Are there existing tool preferences or a greenlist/whitelist?",toolPreferencesPlaceholder:"If Yes/TBD: Which tools?",logicClarity:"Is there already a clear understanding of the logic/workflow?",logicDescriptionPlaceholder:"Brief description / sketch",no:"No",yes:"Yes",tbd:"TBD",yesClear:"Yes, clear",partial:"Partial"},section2:{title:"2) Team & Ownership",technicalOwner:"Who bears the technical responsibility for the automation (Owner)?",technicalOwnerPlaceholder:"Name/role of owner",runSupport:"Who operates the automation (Run/Support)?",runSupportPlaceholder:"Name/role for Run/Support",automationKnowledge:"Team knowledge: Automation",automationKnowledgePlaceholder:"Describe automation knowledge...",automationToolsPlaceholder:"Which tools have been used?",aiKnowledge:"Team knowledge: AI and LLMs",aiKnowledgePlaceholder:"Describe AI knowledge...",aiExperimentsPlaceholder:"What has been experimented with?",accessScope:"Who should have access to the automation (target state)?",wholeTeam:"Whole team",multipleTeams:"Multiple teams",wholeCompany:"Whole company",selective:"Selective only",accessDetail
102sPlaceholder:"Who exactly? (roles/people)"},section3:{title:"3) AI + Automation Process",triggers:"What triggers the automation? (Multiple selection possible)",triggerOptions:{emailIncoming:"Email incoming",externalDataroom:"Upload to (external) data room",internalFolder:"Upload/change in internal folder/SharePoint",scheduled:"Scheduled (e.g., daily/weekly)",excelUpdate:"Excel/Sheet update",manual:"Manual (button/form)",tbd:"TBD"},triggerDetailsPlaceholder:"Details/examples",dataConsistency:"Are the data types always the same or variable?",alwaysSame:"Always the same",oftenSimilar:"Often similar",highlyVariable:"Highly variable",tbd:"TBD",inputExamplesPlaceholder:"Examples of input (document types, typical files)",noDataAction:"What should happen if no data/insufficient data is available?",abortNotify:"Abort + notify",outputGaps:"Output result with 'data gaps'",askUser:"Query user (e.g., via email/Teams)",commentPlaceholder:"Comment",analysisStructure:"How should the analysis be structured?",singleSchema:"One schema for all workflows",templates:"Different templates per case",modular:"Modular system (combine modules)",evaluationLogic:"Should an evaluation logic be included? The logic is:",writtenRules:"Clear written rules available",clearNotWritten:"Rules are clear but not written down",tacitKnowledge:"Knowledge about rules exists in 'tacit knowledge' area",evaluationCommentPlaceholder:"Other comments on evaluation logic?"},section4:{title:"4) Output & Success",hasExample:"Is there an example of a desired result (reverse engineering)?",yesEmail:"Yes (please send via email)",no:"No",tbd:"TBD",exampleDescriptionPlaceholder:"Link/example description",outputFormats:"Desired output format (multiple selection possible)",formatOptions:{onePager:"1-Pager Decision Brief",teamsPost:"Teams post / Teams message",ppt:"PPT",pdf:"PDF",excelSummary:"Excel/Sheet Summary",qaChat:"Q&A (Chat) with sources",tbd:"TBD"},commentPlaceholder:"Comment",successCriteria:"Success criteria (Pilot) (e.g., time savings, quality, adoption)",successCriteriaPlaceholder:"Describe the success criteria..."},section5:{title:"5) Software, Access & AI Settings",softwareWhitelist:"Software whitelist / requirements (if available)",softwareWhitelistPlaceholder:"List allowed software...",accessPermissions:"Permissions: May the automation access the following systems?",yes:"Yes",no:"No",tbd:"TBD",accessCommentPlaceholder:"Comment (e.g., only specific sites/folders/teams)",preferredAI:"Preferred AI (if any)",preferredAIPlaceholder:"e.g., ChatGPT Business, Azure OpenAI, Copilot, other"},section6:{title:"6) Governance / Compliance",hasPII:"Do the documents contain personal data (PII)?",analyzesPII:"Is personal data specifically analyzed (extraction/profiling/classification)?",piiDetailsPlaceholder:"If Yes/TBD: Which data? Purpose?",hasAIPolicy:"AI policy available?",aiPolicyLinkPlaceholder:"Link/owner",hasGovernanceRules:"Governance rules for advanced AI use cases available?",governanceGapsPlaceholder:"What's missing / what should be added?",requiresLogging:"Logging / audit of all automation and AI steps required?",loggingDetailsPlaceholder:"What needs to be logged? (e.g., user, sources, outputs)",yes:"Yes",no:"No",tbd:"TBD"}}}},UA={de:MA,en:$A},gw=x.createContext(void 0);function FA({children:e}){const t=WT(),n=wh(),r=At(),s=(()=>{if(t.lang==="en"||t.lang==="de")return t.lang;const u=r.pathname.match(/^\/(de|en)(\/|$)/);return u?u[1]:"de"})(),o=UA[s],a=u=>{const d=r.pathname.replace(/^\/(de|en)/,"")||"/";n(`/${u}${d==="/"?"":d}${r.hash}`)},l=u=>`/${s}${u==="/"?"":u}`;return y.jsx(gw.Provider,{value:{lang:s,t:o,switchLanguage:a,getLocalizedPath:l},children:e})}function Dl(){const e=x.useContext(gw);if(!e)throw new Error("useLanguage must be used within a LanguageProvider");return e}function BA(){const e=At();return x.useEffect(()=>{if(!e.hash)return;const t=e.hash.replace("#","");if(!t)return;let n=0;const r=12,i=()=>{n+=1;const o=document.getElementById(t);if(o){o.scrollIntoView({behavior:"smooth",block:"start"});return}n<r&&window.setTimeout(i,100)},s=window.setTimeout(i,50);return()=>window.clearTimeout(s)},[e.pathname,e.hash]),null}
102var vw={exports:{}},WA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",KA=WA,HA=KA;function yw(){}function ww(){}ww.resetWarningCache=yw;var VA=function(){function e(r,i,s,o,a,l){if(l!==HA){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ww,resetWarningCache:yw};return n.PropTypes=n,n};vw.exports=VA();var qA=vw.exports;const he=Ji(qA);function GA(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var bw=x,QA=GA(bw);function Pp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var JA=!!(typeof window<"u"&&window.document&&window.document.createElement);function ZA(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(i){return i.displayName||i.name||"Component"}return function(s){if(typeof s!="function")throw new Error("Expected WrappedComponent to be a React component.");var o=[],a;function l(){a=e(o.map(function(c){return c.props})),u.canUseDOM?t(a):n&&(a=n(a))}var u=function(c){YA(d,c);function d(){return c.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var b=a;return a=void 0,o=[],b};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){o.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var b=o.indexOf(this);o.splice(b,1),l()},f.render=function(){return QA.createElement(s,this.props)},d}(bw.PureComponent);return Pp(u,"displayName","SideEffect("+r(s)+")"),Pp(u,"canUseDOM",JA),u}}var XA=ZA;const e1=Ji(XA);var t1=typeof Element<"u",n1=typeof Map=="function",r1=typeof Set=="function",i1=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _a(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_a(e[r],t[r]))return!1;return!0}var s;if(n1&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!_a(r.value[1],t.get(r.value[0])))return!1;return!0}if(r1&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(i1&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(t1&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!_a(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var s1=function(t,n){try{return _a(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const o1=Ji(s1);/*
103object-assign
104(c) Sindre Sorhus
105@license MIT
106*/var Ip=Object.getOwnPropertySymbols,a1=Object.prototype.hasOwnProperty,l1=Object.prototype.propertyIsEnumerable;function u1(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function c1(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(s){return t[s]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(s){i[s]=s}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var d1=c1()?Object.assign:function(e,t){for(var n,r=u1(e),i,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var o in n)a1.call(n,o)&&(r[o]=n[o]);if(Ip){i=Ip(n);for(var a=0;a<i.length;a++)l1.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};const h1=Ji(d1);var $r={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},q={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(q).map(function(e){return q[e]});var fe={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},rl={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},uo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},f1=Object.keys(rl).reduce(function(e,t){return e[rl[t]]=t,e},{}),p1=[q.NOSCRIPT,q.SCRIPT,q.STYLE],Bt="data-react-helmet",m1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g1=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v1=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ze=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y1=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Rp=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},w1=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Bc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},b1=function(t){var n=Oi(t,q.TITLE),r=Oi(t,uo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=Oi(t,uo.DEFAULT_TITLE);return n||i||void 0},x1=function(t){return Oi(t,uo.ON_CHANGE_CLIENT_STATE)||function(){}},Tu=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return Ze({},r,i)},{})},k1=function(t,n){return n.filter(function(r){return typeof r[q.BASE]<"u"}).map(function(r){return r[q.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var s=Object.keys(i),o=0;o<s.length;o++){var a=s[o],l=a.toLowerCase();if(t.indexOf(l)!==-1&&i[l])return r.concat(i)}return r},[])},xs=function(t,n,r){var i={};return r.filter(function(s){return Array.isArray(s[t])?!0:(typeof s[t]<"u"&&T1("Helmet: "+t+' should be of type "Array". Instead found type "'+m1(s[t])+'"'),!1)}).map(function(s){return s[t]}).reverse().reduce(function(s,o){var a={};o.filter(function(f){for(var h=void 0,b=Object.keys(f),g=0;g<b.length;g++){var w=b[g],m=w.toLowerCase();
106n.indexOf(m)!==-1&&!(h===fe.REL&&f[h].toLowerCase()==="canonical")&&!(m===fe.REL&&f[m].toLowerCase()==="stylesheet")&&(h=m),n.indexOf(w)!==-1&&(w===fe.INNER_HTML||w===fe.CSS_TEXT||w===fe.ITEM_PROP)&&(h=w)}if(!h||!f[h])return!1;var p=f[h].toLowerCase();return i[h]||(i[h]={}),a[h]||(a[h]={}),i[h][p]?!1:(a[h][p]=!0,!0)}).reverse().forEach(function(f){return s.push(f)});for(var l=Object.keys(a),u=0;u<l.length;u++){var c=l[u],d=h1({},i[c],a[c]);i[c]=d}return s},[]).reverse()},Oi=function(t,n){for(var r=t.length-1;r>=0;r--){var i=t[r];if(i.hasOwnProperty(n))return i[n]}return null},S1=function(t){return{baseTag:k1([fe.HREF,fe.TARGET],t),bodyAttributes:Tu($r.BODY,t),defer:Oi(t,uo.DEFER),encode:Oi(t,uo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Tu($r.HTML,t),linkTags:xs(q.LINK,[fe.REL,fe.HREF],t),metaTags:xs(q.META,[fe.NAME,fe.CHARSET,fe.HTTPEQUIV,fe.PROPERTY,fe.ITEM_PROP],t),noscriptTags:xs(q.NOSCRIPT,[fe.INNER_HTML],t),onChangeClientState:x1(t),scriptTags:xs(q.SCRIPT,[fe.SRC,fe.INNER_HTML],t),styleTags:xs(q.STYLE,[fe.CSS_TEXT],t),title:b1(t),titleAttributes:Tu($r.TITLE,t)}},Wc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Wc(t)},0)}}(),Op=function(t){return clearTimeout(t)},E1=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Wc:global.requestAnimationFrame||Wc,_1=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Op:global.cancelAnimationFrame||Op,T1=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ks=null,A1=function(t){ks&&_1(ks),t.defer?ks=E1(function(){Np(t,function(){ks=null})}):(Np(t),ks=null)},Np=function(t,n){var r=t.baseTag,i=t.bodyAttributes,s=t.htmlAttributes,o=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.onChangeClientState,c=t.scriptTags,d=t.styleTags,f=t.title,h=t.titleAttributes;Kc(q.BODY,i),Kc(q.HTML,s),C1(f,h);var b={baseTag:ti(q.BASE,r),linkTags:ti(q.LINK,o),metaTags:ti(q.META,a),noscriptTags:ti(q.NOSCRIPT,l),scriptTags:ti(q.SCRIPT,c),styleTags:ti(q.STYLE,d)},g={},w={};Object.keys(b).forEach(function(m){var p=b[m],v=p.newTags,k=p.oldTags;v.length&&(g[m]=v),k.length&&(w[m]=b[m].oldTags)}),n&&n(),u(t,g,w)},xw=function(t){return Array.isArray(t)?t.join(""):t},C1=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=xw(t)),Kc(q.TITLE,n)},Kc=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(Bt),s=i?i.split(","):[],o=[].concat(s),a=Object.keys(n),l=0;l<a.length;l++){var u=a[l],c=n[u]||"";r.getAttribute(u)!==c&&r.setAttribute(u,c),s.indexOf(u)===-1&&s.push(u);var d=o.indexOf(u);d!==-1&&o.splice(d,1)}for(var f=o.length-1;f>=0;f--)r.removeAttribute(o[f]);s.length===o.length?r.removeAttribute(Bt):r.getAttribute(Bt)!==a.join(",")&&r.setAttribute(Bt,a.join(","))}},ti=function(t,n){var r=document.head||document.querySelector(q.HEAD),i=r.querySelectorAll(t+"["+Bt+"]"),s=Array.prototype.slice.call(i),o=[],a=void 0;return n&&n.length&&n.forEach(function(l){var u=document.createElement(t);for(var c in l)if(l.hasOwnProperty(c))if(c===fe.INNER_HTML)u.innerHTML=l.innerHTML;else if(c===fe.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=l.cssText:u.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[c]>"u"?"":l[c];u.setAttribute(c,d)}u.setAttribute(Bt,"true"),s.some(function(f,h){return a=h,u.isEqualNode(f)})?s.splice(a,1):o.push(u)}),s.forEach(function(l){return l.parentNode.removeChild(l)}),o.forEach(function(l){return r.appendChild(l)}),{oldTags:s,newTags:o}},kw=function(t){return Object.keys(t).reduce(function(n,r){var i=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+i:i},"")},P1=function(t,n,r,i){var s=kw(r),o=xw(n);return s?"<"+t+" "+Bt+'="true" '+s+">"+Bc(o,i)+"</"+t+">":"<"+t+" "+Bt+'="true">'+Bc(o,i)+"</"+t+">"},I1=function(t,n,r){return n.reduce(function(i,s){var o=Object.keys(s).filter(function(u){return!(u===fe.INNER_HTML||u===fe.CSS_TEXT)}).reduce(function(u,c){var d=typeof s[c]>"u"?c:c+'="'+Bc(s[c],r)+'"';return u?u+" "+d:d},""),a=s.innerHTML||s.cssText||"",l=p1.indexOf(t)===-1;return i+"<"+t+" "+Bt+'="true" '+o+(l?"/>":">"+a+"</"+t+">")},"")},Sw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[rl[i]||i]=t[i],r},n)},R1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[f1[i]||i]=t[i],r},n)},O1=function(t,n,r){var i,s=(i={key:n},i[Bt]=!0,i),o=Sw(r,s);return[O.createElement(q.TITLE,o,n)]},N1=function(t,n){return n.map(function(r,i){var s,o=(s={key:i},s[Bt]=!0,s);return Object.keys(r).forEach(function(a){var l=rl[a]||a;if(l===fe.INNER_HTML||l===fe.CSS_TEXT){var u=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:u}}else o[l]=r[a]}),O.createElement(t,o)})},hn=function(t,n,r){switch(t){case q.TITLE:return{toComponent:function(){return O1(t,n.title,n.titleAttributes)}
106,toString:function(){return P1(t,n.title,n.titleAttributes,r)}};case $r.BODY:case $r.HTML:return{toComponent:function(){return Sw(n)},toString:function(){return kw(n)}};default:return{toComponent:function(){return N1(t,n)},toString:function(){return I1(t,n,r)}}}},Ew=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,s=t.htmlAttributes,o=t.linkTags,a=t.metaTags,l=t.noscriptTags,u=t.scriptTags,c=t.styleTags,d=t.title,f=d===void 0?"":d,h=t.titleAttributes;return{base:hn(q.BASE,n,i),bodyAttributes:hn($r.BODY,r,i),htmlAttributes:hn($r.HTML,s,i),link:hn(q.LINK,o,i),meta:hn(q.META,a,i),noscript:hn(q.NOSCRIPT,l,i),script:hn(q.SCRIPT,u,i),style:hn(q.STYLE,c,i),title:hn(q.TITLE,{title:f,titleAttributes:h},i)}},j1=function(t){var n,r;return r=n=function(i){y1(s,i);function s(){return g1(this,s),w1(this,i.apply(this,arguments))}return s.prototype.shouldComponentUpdate=function(a){return!o1(this.props,a)},s.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case q.SCRIPT:case q.NOSCRIPT:return{innerHTML:l};case q.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},s.prototype.flattenArrayTypeChildren=function(a){var l,u=a.child,c=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return Ze({},c,(l={},l[u.type]=[].concat(c[u.type]||[],[Ze({},d,this.mapNestedChildrenToProps(u,f))]),l))},s.prototype.mapObjectTypeChildren=function(a){var l,u,c=a.child,d=a.newProps,f=a.newChildProps,h=a.nestedChildren;switch(c.type){case q.TITLE:return Ze({},d,(l={},l[c.type]=h,l.titleAttributes=Ze({},f),l));case q.BODY:return Ze({},d,{bodyAttributes:Ze({},f)});case q.HTML:return Ze({},d,{htmlAttributes:Ze({},f)})}return Ze({},d,(u={},u[c.type]=Ze({},f),u))},s.prototype.mapArrayTypeChildrenToProps=function(a,l){var u=Ze({},l);return Object.keys(a).forEach(function(c){var d;u=Ze({},u,(d={},d[c]=a[c],d))}),u}
106,s.prototype.warnOnInvalidChildren=function(a,l){return!0},s.prototype.mapChildrenToProps=function(a,l){var u=this,c={};return O.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,b=Rp(f,["children"]),g=R1(b);switch(u.warnOnInvalidChildren(d,h),d.type){case q.LINK:case q.META:case q.NOSCRIPT:case q.SCRIPT:case q.STYLE:c=u.flattenArrayTypeChildren({child:d,arrayTypeChildren:c,newChildProps:g,nestedChildren:h});break;default:l=u.mapObjectTypeChildren({child:d,newProps:l,newChildProps:g,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(c,l),l},s.prototype.render=function(){var a=this.props,l=a.children,u=Rp(a,["children"]),c=Ze({},u);return l&&(c=this.mapChildrenToProps(l,c)),O.createElement(t,c)},v1(s,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),s}(O.Component),n.propTypes={base:he.object,bodyAttributes:he.object,children:he.oneOfType([he.arrayOf(he.node),he.node]),defaultTitle:he.string,defer:he.bool,encodeSpecialCharacters:he.bool,htmlAttributes:he.object,link:he.arrayOf(he.object),meta:he.arrayOf(he.object),noscript:he.arrayOf(he.object),onChangeClientState:he.func,script:he.arrayOf(he.object),style:he.arrayOf(he.object),title:he.string,titleAttributes:he.object,titleTemplate:he.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=Ew({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},D1=function(){return null},L1=e1(S1,A1,Ew)(D1),Hc=j1(L1);Hc.renderStatic=Hc.rewind;const z1={de:{title:"Diligenz | KI für institutionelle Investmentprozesse",description:"Ausgewählte Arbeiten zu KI-gestützter Due Diligence, Investment Research, Monitoring und institutionellen Investmentprozessen."},en:{title:"Diligenz | AI for Institutional Investment Workflows",description:"Selected work and expertise in AI-supported due diligence, investment research, monitoring and institutional investment workflows."}},st="https://diligenz.ai",M1="/assets/logo-diligenz-BC9Lnmrt.png",Eh={de:{nav:{about:"Über Diligenz",work:"Ausgewählte Arbeiten",contributions:"Fachbeiträge",founder:"Torsten Steiner",menu:"Menü öffnen",close:"Menü schließen",language:"Sprache"},hero:{eyebrow:"Diligenz",title:"KI für institutionelle Investmentprozesse",intro:"Diligenz wurde gegründet, um praktische Anwendungen künstlicher Intelligenz für dokumentenintensive institutionelle Investmentprozesse zu entwickeln.",status:"Diligenz dokumentiert Arbeiten und Erfahrungen an der Schnittstelle von künstlicher Intelligenz und institutioneller Kapitalanlage. Bestehende Projekte und ausgewählte Fachbeiträge werden fortgeführt. Neue Beratungs- oder Trainingsmandate werden derzeit nicht angenommen."},about:{eyebrow:"Über Diligenz",title:"KI in institutionellen Investmentprozessen.",paragraphs:["Diligenz arbeitete an der Schnittstelle von institutioneller Kapitalanlage, künstlicher Intelligenz und dokumentenintensiver Analyse. Schwerpunkte waren Due Diligence, Investment Research, Monitoring und die Vorbereitung von Investmententscheidungen.","Die entwickelten Abläufe erschlossen Dokumente und Quellen, strukturierten Informationen und unterstützten wiederkehrende Analysen. Ergebnisse blieben nachvollziehbar, quellenbasiert und für die fachliche Prüfung aufbereitet."],principles:["Nachvollziehbar","Strukturiert","Quellenbasiert","Fachlic
106h geprüft"]},work:{eyebrow:"Ausgewählte Arbeiten",title:"Erfahrung aus dokumentenintensiven Investmentprozessen.",intro:"Drei Schwerpunkte aus der Arbeit von Diligenz an KI-gestützten Investmentprozessen.",items:[{number:"01",title:"KI-gestützte Due Diligence",text:"Entwicklung strukturierter Abläufe für die Prüfung von Fonds-, Investment- und Unternehmensunterlagen: von Dokumentenaufnahme und Informationsextraktion über quellenbasierte Analyse und dokumentenübergreifende Vergleiche bis zur Identifikation fehlender Informationen und möglicher Red Flags. Ergebnisse wurden für die fachliche Prüfung aufbereitet."},{number:"02",title:"Investment Research & Monitoring",text:"Entwicklung von Abläufen für Research und laufendes Monitoring. Neue Informationen wurden quellenbasiert erfasst, eingeordnet und für Investmententscheidungen aufbereitet. Im Mittelpunkt standen klare Quellenzuordnung, konsistente Struktur und fachliche Prüfbarkeit."},{number:"03",title:"Automatisierung von Investmentprozessen",text:"Konzeption von Abläufen, die Investmentdokumente, strukturierte Informationen, Analysen und Modelle verbinden. Wiederkehrende Arbeitsschritte wurden mit klaren Kontrollpunkten und verbindlicher fachlicher Prüfung gestaltet."}]},contributions:{eyebrow:"Ausgewählte Fachbeiträge & Branchenaktivitäten",title:"Fachlicher Austausch zu KI und Investmentprozessen.",intro:"Ausgewählte Beiträge zur Anwendung von KI in Analyse- und Investmentprozessen.",watch:"Aufzeichnung ansehen",items:[{organisation:"AIMA London",title:"KI in Investment- und Research-Prozessen",text:"Fachvortrag zur praktischen Anwendung von KI in institutionellen Investment- und Research-Prozessen.",image:"",link:""},{organisation:"DVFA",title:"KI und Investmentmanagement",text:"Fachbeitrag zur praktischen Anwendung nachvollziehbarer KI in Analyse- und Investmentprozessen.",image:"",link:""},{organisation:"Anwendungsbeispiel",title:"Investmentkomitee aus fünf Perspektiven",text:"Simulation einer Immobilienentscheidung mit unterschiedlichen Rollen, Zielsetzungen und nachvollziehbarer Gremienlogik.",image:"/media/investmentkomitee.jpg",link:"https://youtu.be/Akd3LanocVM"}]},founder:{eyebrow:"Gründer",title:"Torsten Steiner",photoAlt:"Torsten Steiner bei einem Fachvortrag",bio:["Torsten Steiner verbindet mehr als 14 Jahre Erfahrung in institutioneller Kapitalanlage, Immobilien und alternativen Anlagen mit praktischer Erfahrung in der Entwicklung KI-gestützter Investmentprozesse.","Frühere berufliche Stationen umfassen Nuveen Real Estate, Quirin Privatbank, Scope Group und JLL. Seine Erfahrung reicht von Investment Research und Portfoliomanagement über Manager-Due-Diligence bis zu Ratings und Investmentanalyse."]},contact:{eyebrow:"Kontakt",title:"Kontakt",text:"Für bestehende Kooperationen und fachliche Anfragen:",email:"[email protected]"},footer:{imprint:"Impressum",privacy:"Datenschutz",copyright:"© 2026 Diligenz"}},en:{nav:{about:"About",work:"Selected Work",contributions:"Industry Contributions",founder:"Founder",menu:"Open menu",close:"Close menu",language:"Language"},hero:{eyebrow:"Diligenz",title:"AI for institutional investment workflows",intro:"Diligenz was founded to develop practical applications of artificial intelligence for document-intensive institutional investment processes.",status:"Diligenz documents work and experience at the intersection of artificial intelligence and institutional investing. Existing projects and selected professional contributions continue, while no new consulting or training mandates are currently being accepted."},about:{eyebrow:"About Diligenz",title:"AI in institutional investment processes.",paragraphs:["Diligenz worked at the intersection of institutional investing, artificial intelligence and document-intensive analysis. Its focus included due diligence, investment research, monitoring and investment decision preparation.","The workflows interpreted documents and sources, structured information and supported recurring analysis. Outputs remained traceable, source-based and prepared for professional review."],principles:["Traceable","Structured","Source-based","Professionally reviewed"]},work:{eyebrow:"Selected Work",title:"Experience from document-intensive investment processes.",intro:"Three areas reflecting Diligenz's work on AI-supported institutional investment processes.",items:[{number:"01",title:"AI-supported Due Diligence",text:"Development of structured workflows for reviewing fund, investment and company documentation, from document intake and information extraction to source-based analysis, cross-document comparison and the identification of missing information and potential red flags. Outputs were prepared for professional review."},{number:"02",title:"Investment Research & Monitoring",text:"Development of workflows for research and ongoing monitoring. New information was captured, assessed and prepared for investment decisions with clear source attribution, consistent structure and professional reviewability."},{number:"03",title:"Investment Workflow Automation",text:"Design of workflows connecting investment documents, structured information, analysis and models. Recurring steps were organised around clear control points and formal professional review."}]},contributions:{eyebrow:"Selected Industry Contributions",title:"Professional exchange on AI and investment processes.",intro:"Selected contributions on the application of AI in analytical and investment processes.",watch:"Watch recording",items:[{organisation:"AIMA London",title:"AI in investment and research processes",text:"A professional presentation on the practical application of AI in institutional investment and research processes.",image:"",link:""},{organisation:"DVFA",title:"AI and investment management",text:"A professional contribution on the practical application of traceable AI in analytical and investment processes.",image:"",link:""}
106,{organisation:"Application Example",title:"An investment committee from five perspectives",text:"A simulation of a real estate decision across different roles, objectives and a traceable committee process.",image:"/media/investmentkomitee.jpg",link:"https://youtu.be/Akd3LanocVM"}]},founder:{eyebrow:"Founder",title:"Torsten Steiner",photoAlt:"Torsten Steiner speaking at an industry event",bio:["Torsten Steiner combines more than 14 years of experience across institutional investment management, real estate and alternative investments with practical experience developing AI-supported investment workflows.","Previous roles include Nuveen Real Estate, Quirin Privatbank, Scope Group and JLL. His experience spans investment research, portfolio management, manager due diligence, ratings and investment analysis."]},contact:{eyebrow:"Contact",title:"Contact",text:"For existing collaborations and professional enquiries:",email:"[email protected]"},footer:{imprint:"Imprint",privacy:"Privacy",copyright:"© 2026 Diligenz"}}};function _w(){const[e,t]=x.useState(!1),[n,r]=x.useState(!1),{lang:i,switchLanguage:s}=Dl(),o=Eh[i],u=At().pathname.replace(/\/$/,"")===`/${i}`,c=[{label:o.nav.about,href:"#about"},{label:o.nav.work,href:"#selected-work"},{label:o.nav.contributions,href:"#contributions"},{label:o.nav.founder,href:"#founder"}],d=w=>u?w:`/${i}${w}`;x.useEffect(()=>{const w=()=>{r(window.scrollY>10)};return window.addEventListener("scroll",w),()=>window.removeEventListener("scroll",w)},[]);const f="text-sm text-muted-foreground hover:text-foreground transition-colors duration-150 whitespace-nowrap",h=(w,m,p)=>u?y.jsx("a",{href:w.href,onClick:p,className:m,children:w.label},w.href+w.label):y.jsx(lo,{to:d(w.href),onClick:p,className:m,children:w.label},w.href+w.label),b=w=>`text-sm transition-colors ${i===w?"text-foreground font-semibold":"text-muted-foreground hover:text-foreground"}`,g=w=>y.jsxs("div",{className:"flex items-center gap-2","aria-label":o.nav.language,children:[y.jsx("button",{type:"button",onClick:()=>{s("de"),w==null||w()},className:b("de"),"aria-pressed":i==="de",children:"DE"}),y.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground",children:"|"}),y.jsx("button",{type:"button",onClick:()=>{s("en"),w==null||w()},className:b("en"),"aria-pressed":i==="en",children:"EN"})]});return y.jsx("header",{className:`sticky top-0 z-50 transition-all duration-200 ${n?"bg-background/95 backdrop-blur-sm border-b border-border":"bg-background border-b border-transparent"}`,children:y.jsxs("div",{className:"container-narrow",children:[y.jsxs("div",{className:"flex items-center justify-between h-16 md:h-18 gap-6",children:[y.jsxs("div",{className:"flex items-center gap-6 lg:gap-8",children:[y.jsx(lo,{to:u?`/${i}#top`:`/${i}`,className:"flex-shrink-0 flex items-center",children:y.jsx("img",{src:M1,alt:"Diligenz",className:"h-8 md:h-9 w-auto object-contain"})}),y.jsx("nav",{className:"hidden md:flex items-center gap-6 lg:gap-8",children:c.map(w=>h(w,f))})]}),y.jsx("div",{className:"hidden md:flex items-center",children:g()}),y.jsx("button",{type:"button",onClick:()=>t(!e),className:"md:hidden p-2 text-foreground hover:bg-secondary transition-colors","aria-label":e?o.nav.close:o.nav.menu,"aria-expanded":e,children:e?y.jsx(iy,{size:22}):y.jsx(Dk,{size:22})})]}),e&&y.jsx("div",{className:"md:hidden py-4 border-t border-border animate-fade-in",children:y.jsxs("nav",{className:"flex flex-col gap-1",children:[c.map(w=>h(w,"text-sm text-foreground hover:bg-secondary transition-colors py-3 px-2",()=>t(!1))),y.jsxs("div",{className:"flex items-center gap-3 py-3 px-2 mt-2 border-t border-border",children:[y.jsxs("span",{className:"text-sm text-muted-foreground",children:[o.nav.language,":"]}),g(()=>t(!1))]})]})})]})})}function $1(){const{lang:e}=Dl(),t=Eh[e];return y.jsxs(y.Fragment,{children:[y.jsx("section",{id:"top",className:"min-h-[calc(88svh-4rem)] flex items-center border-b border-border py-16 md:py-24",children:y.jsxs("div",{className:"container-narrow w-full",children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-8",children:t.hero.eyebrow}),y.jsx("h1",{className:"font-serif text-[2.5rem] sm:text-5xl md:text-7xl lg:text-[5.5rem] leading-[0.98] max-w-4xl mb-10 text-balance break-words",children:t.hero.title}),y.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-14 max-w-4xl",children:[y.jsx("p",{className:"text-lg md:text-xl leading-relaxed text-foreground",children:t.hero.intro}),y.jsx("p",{className:"text-sm md:text-base leading-relaxed text-muted-foreground border-l border-border pl-6",children:t.hero.status})]})]})}),y.jsx("section",{id:"about",className:"section-padding border-b border-border scroll-mt-20",children:y.jsxs("div",{className:"container-narrow grid lg:grid-cols-[1fr_2fr] gap-10 lg:gap-20",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:t.about.eyebrow}),y.jsx("h2",{className:"font-serif text-3xl md:text-4xl leading-tight text-balance",children:t.about.title})]}),y.jsx("div",{children:y.jsx("div",{className:"space-y-5 text-base md:text-lg leading-relaxed text-muted-foreground",children:t.about.paragraphs.map(n=>y.jsx("p",{children:n},n))})})]})}),y.jsx("section",{id:"selected-work",className:"section-padding border-b border-border scroll-mt-20",children:y.jsxs("div",{className:"container-narrow",children:[y.jsxs("div",{className:"max-w-3xl mb-14",children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:t.work.eyebrow}),y.jsx("h2",{className:"font-serif text-3xl md:text-5xl leading-tight mb-5 text-balance",children:t.work.title}),y.jsx("p",{className:"text-sm md:text-base text-muted-foreground leading-relaxed",children:t.work.intro})]}),y.jsx("div",{className:"border-t border-border",children:t.work.items.map(n=>y.jsxs("article",{className:"grid md:grid-cols-[5rem_1fr_2fr] gap-4 md:gap-8 py-9 md:py-12 border-b border-border",children:[y.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:n.number}),y.jsx("h3",{className:"font-serif text-2xl md:text-3xl leading-tight",children:n.title}),y.jsx("p",{className:"text-sm md:text-base text-muted-foreground leading-relaxed",children:n.text})]},n.number))})]})}),y.jsx("section",{id:"contributions",className:"section-padding border-b border-border scroll-mt-20 bg-secondary/40",children:y.jsxs("div",{className:"container-narrow",children:[y.jsxs("div",{className:"max-w-3xl mb-12 md:mb-14",children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:t.contributions.eyebrow}),y.jsx("h2",{className:"font-serif text-3xl md:text-5xl leading-tight mb-5 text-balance",children:t.contributions.title}),y.jsx("p",{className:"text-sm md:text-base text-muted-foreground leading-relaxed",children:t.contributions.intro})]}),y.jsxs("div",{className:"border-t border-border",children:[y.jsx("div",{className:"grid md:grid-cols-2",children:t.contributions.items.slice(0,2).map((n,r)=>y.jsxs("article",{className:`py-7 md:py-9 ${r===0?"md:pr-8":"border-t md:border-t-0 md:border-l border-border md:pl-8"}`,children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:n.organisation}),y.jsx("h3",{className:"font-serif text-2xl leading-tight mb-3",children:n.title}),y.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.text})]},`${n.organisation}-${n.title}`))}),t.contributions.items.slice(2).map(n=>y.jsxs("article",{className:"grid md:grid-cols-2 border-t border-border",children:[n.image&&y.jsx("img",{src:n.image,alt:"",loading:"lazy",className:"aspect-video md:aspect-auto md:h-full min-h-64 w-full object-cover"}),y.jsxs("div",{className:"py-8 md:py-10 md:pl-10 flex flex-col justify-between border-t md:border-t-0 md:border-l border-border",children:[y.jsxs("div",{children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:n.organisation}),y.jsx("h3",{className:"font-serif text-2xl md:text-3xl leading-tight mb-4",children:n.title}),y.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n.text})]}),n.link&&y.jsxs("a",{href:n.link,target:"_blank",rel:"noopener noreferrer",className:"mt-8 inl
106ine-flex w-fit items-center gap-2 text-sm font-medium underline underline-offset-4",children:[t.contributions.watch,y.jsx(Nk,{className:"size-4","aria-hidden":"true"})]})]})]},`${n.organisation}-${n.title}`))]})]})}),y.jsx("section",{id:"founder",className:"section-padding border-b border-border scroll-mt-20",children:y.jsxs("div",{className:"container-narrow grid lg:grid-cols-[2fr_3fr] gap-10 lg:gap-20 items-start",children:[y.jsx("img",{src:"/torsten-steiner-portrait.jpg",alt:t.founder.photoAlt,loading:"lazy",className:"w-full aspect-[4/5] object-cover object-top border border-border"}),y.jsxs("div",{className:"lg:pt-8",children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:t.founder.eyebrow}),y.jsx("h2",{className:"font-serif text-4xl md:text-6xl leading-none mb-8",children:t.founder.title}),y.jsx("div",{className:"space-y-5 text-base md:text-lg text-muted-foreground leading-relaxed",children:t.founder.bio.map(n=>y.jsx("p",{children:n},n))})]})]})}),y.jsx("section",{id:"contact",className:"section-padding scroll-mt-20",children:y.jsxs("div",{className:"container-narrow",children:[y.jsx("p",{className:"text-[11px] uppercase tracking-[0.2em] text-muted-foreground mb-4",children:t.contact.eyebrow}),y.jsx("h2",{className:"font-serif text-4xl md:text-6xl leading-none mb-8",children:t.contact.title}),y.jsx("p",{className:"text-base md:text-lg text-muted-foreground mb-4",children:t.contact.text}),y.jsx("a",{href:`mailto:${t.contact.email}`,className:"inline-block text-lg md:text-2xl font-medium underline underline-offset-8 break-all",children:t.contact.email})]})})]})}function Tw(){const{lang:e}=Dl(),t=Eh[e],n=e==="de"?[{label:t.footer.imprint,to:"/de/impressum"},{label:t.footer.privacy,to:"/de/datenschutz"}]:[{label:t.footer.imprint,to:"/en/imprint"},{label:t.footer.privacy,to:"/en/privacy"}],r="text-xs text-muted-foreground hover:text-foreground transition-colors duration-150";return y.jsx("footer",{className:"py-8 border-t border-border",children:y.jsx("div",{className:"container-narrow",children:y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-5",children:[y.jsx("p",{className:"font-serif text-xl",children:"Diligenz"}),y.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 sm:gap-8",children:[y.jsx("p",{className:"text-xs text-muted-foreground",children:t.footer.copyright}),y.jsx("nav",{className:"flex flex-wrap gap-5","aria-label":"Legal",children:n.map(i=>y.jsx(lo,{to:i.to,className:r,children:i.label},i.to))})]})]})})})}const jp=()=>{const{lang:e}=Dl(),t=z1[e];return y.jsxs("div",{className:"min-h-screen bg-background",children:[y.jsxs(Hc,{children:[y.jsx("html",{lang:e}),y.jsx("title",{children:t.title}),y.jsx("meta",{name:"description",content:t.description}),y.jsx("meta",{property:"og:title",content:t.title}),y.jsx("meta",{property:"og:description",content:t.description}),y.jsx("meta",{property:"og:type",content:"website"}),y.jsx("meta",{property:"og:url",content:`${st}/${e}`}),y.jsx("meta",{property:"og:image",content:`${st}/og-diligenz.jpg`}),y.jsx("meta",{property:"og:image:width",content:"1280"}),y.jsx("meta",{property:"og:image:height",content:"720"}),y.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),y.jsx("meta",{name:"twitter:title",content:t.title}),y.jsx("meta",{name:"twitter:description",content:t.description}),y.jsx("meta",{name:"twitter:image",content:`${st}/og-diligenz.jpg`}),y.jsx("link",{rel:"canonical",href:`${st}/${e}`}),y.jsx("link",{rel:"alternate",hrefLang:"de",href:`${st}/de`}),y.jsx("link",{rel:"alternate",hrefLang:"en",href:`${st}/en`}),y.jsx("link",{rel:"alternate",hrefLang:"x-default",href:`${st}/de`}),y.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":`${st}/#organization`,name:"Diligenz.ai",url:st,logo:`${st}/og-diligenz.jpg`,description:t.description,founder:{"@type":"Person",name:"Torsten Steiner"}},{"@type":"WebSite","@id":`${st}/#website`,name:"Diligenz.ai",url:st,inLanguage:e,publisher:{"@id":`${st}/#organization`}}]})})]}),y.jsx(_w,{}),y.jsx("main",{children:y.jsx($1,{})}),y.jsx(Tw,{})]})},U1=()=>{const t=At().pathname;return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",t)},[t]),t.startsWith("/de")?y.jsx(ka,{to:"/de",replace:!0}):t.startsWith("/en")?y.jsx(ka,{to:"/en",replace:!0}):y.jsx(ka,{to:"/de",replace:!0})},F1=rh("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/95",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent text-foreground hover:bg-secondary hover:border-foreground
106/20 active:bg-secondary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-foreground",link:"text-accent underline-offset-4 hover:underline"},size:{default:"h-11 px-6 py-2.5 rounded",sm:"h-9 rounded px-4 text-sm",lg:"h-12 rounded px-8 text-base",icon:"h-10 w-10 rounded"}},defaultVariants:{variant:"default",size:"default"}}),Vc=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},s)=>{const o=r?zx:"button";return y.jsx(o,{className:un(F1({variant:t,size:n,className:e})),ref:s,...i})});Vc.displayName="Button";const Aw=x.forwardRef(({className:e,type:t,...n},r)=>y.jsx("input",{type:t,className:un("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Aw.displayName="Input";var B1="Label",Cw=x.forwardRef((e,t)=>y.jsx(Je.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Cw.displayName=B1;var Pw=Cw;const W1=rh("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Iw=x.forwardRef(({className:e,...t},n)=>y.jsx(Pw,{ref:n,className:un(W1(),e),...t}));Iw.displayName=Pw.displayName;function Ll(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function K1(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const H1=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class _h extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class V1 extends _h{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Dp extends _h{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Lp extends _h{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var qc;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(qc||(qc={}));class q1{constructor(t,{headers:n={},customFetch:r,region:i=qc.Any}={}){this.url=t,this.headers=n,this.region=i,this.fetch=H1(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return K1(this,arguments,void 0,function*(n,r={}){var i;let s,o;try{const{headers:a,method:l,body:u,signal:c,timeout:d}=r;let f={},{region:h}=r;h||(h=this.region);const b=new URL(`${this.url}/${n}`);h&&h!=="any"&&(f["x-region"]=h,b.searchParams.set("forceFunctionRegion",h));let g;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(f["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(f["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(f["Content-Type"]="application/json",g=JSON.stringify(u)):g=u;let w=c;d&&(o=new AbortController,s=setTimeout(()=>o.abort(),d),c?(w=o.signal,c.addEventListener("abort",()=>o.abort())):w=o.signal);const m=yield this.fetch(b.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},f),this.headers),a),body:g,signal:w}).catch(S=>{throw new V1(S)}),p=m.headers.get("x-relay-error");
106if(p&&p==="true")throw new Dp(m);if(!m.ok)throw new Lp(m);let v=((i=m.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),k;return v==="application/json"?k=yield m.json():v==="application/octet-stream"||v==="application/pdf"?k=yield m.blob():v==="text/event-stream"?k=m:v==="multipart/form-data"?k=yield m.formData():k=yield m.text(),{data:k,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof Lp||a instanceof Dp?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var G1=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},Q1=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let i=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let o=null,a=null,l=null,u=s.status,c=s.statusText;if(s.ok){var d,f;if(n.method!=="HEAD"){var h;const m=await s.text();m===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((h=n.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=m:a=JSON.parse(m))}const g=(d=n.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),w=(f=s.headers.get("content-range"))===null||f===void 0?void 0:f.split("/");g&&w&&w.length>1&&(l=parseInt(w[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var b;const g=await s.text();try{o=JSON.parse(g),Array.isArray(o)&&s.status===404&&(a=[],o=null,u=200,c="OK")}catch{s.status===404&&g===""?(u=204,c="No Content"):o={message:g}}if(o&&n.isMaybeSingle&&(!(o==null||(b=o.details)===null||b===void 0)&&b.includes("0 rows"))&&(o=null,u=200,c="OK"),o&&n.shouldThrowOnError)throw new G1(o)}return{error:o,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let a="";const l=s==null?void 0:s.cause;if(l){var u,c,d,f;const b=(u=l==null?void 0:l.message)!==null&&u!==void 0?u:"",g=(c=l==null?void 0:l.code)!==null&&c!==void 0?c:"";a=`${(d=s==null?void 0:s.name)!==null&&d!==void 0?d:"FetchError"}: ${s==null?void 0:s.message}`,a+=`
107
108Caused by: ${(f=l==null?void 0:l.name)!==null&&f!==void 0?f:"Error"}: ${b}`,g&&(a+=` (${g})`),l!=null&&l.stack&&(a+=`
109${l.stack}`)}else{var h;a=(h=s==null?void 0:s.stack)!==null&&h!==void 0?h:""}return{error:{message:`${(o=s==null?void 0:s.name)!==null&&o!==void 0?o:"FetchError"}: ${s==null?void 0:s.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},Y1=class extends Q1{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:i=r}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const i=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
109explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const zp=new RegExp("[,()]");var li=class extends Y1{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&zp.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&zp.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";r==="plain"?i="pl":r==="phrase"?i="ph":r==="websearch"&&(i="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},J1=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}select(e,t){const{head:n=!1,count:r}=t??{},i=n?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new li({method:i,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const i="POST";if(t&&this.headers.append("Prefer",`count=${t}`),n||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const s=e.reduce((o,a)=>o.concat(Object.keys(a)),[]);if(s.length>0){const o=[...new Set(s)].map(a=>`"${a}"`);this.url.searchParams.set("columns",o.join(","))}}return new li({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){var s;const o="POST";if(this.headers.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&this.url.searchParams.set("on_conflict",t),r&&this.headers.append("Prefer",`count=${r}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
1090){const l=[...new Set(a)].map(u=>`"${u}"`);this.url.searchParams.set("columns",l.join(","))}}return new li({method:o,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(e,{count:t}={}){var n;const r="PATCH";return t&&this.headers.append("Prefer",`count=${t}`),new li({method:r,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new li({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},Z1=class Rw{constructor(t,{headers:n={},schema:r,fetch:i}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=i}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new J1(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Rw(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;r||i?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,f])=>f!==void 0).map(([d,f])=>[d,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([d,f])=>{l.searchParams.append(d,f)})):(a="POST",u=n);const c=new Headers(this.headers);return s&&c.set("Prefer",`count=${s}`),new li({method:a,url:l,headers:c,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};class X1{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,i=parseInt(r.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
110import ws from "ws"
111new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
112
113Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const eC="2.89.0",tC=`realtime-js/${eC}`,Ow="1.0.0",nC="2.0.0",Mp=Ow,Gc=1e4,rC=1e3,iC=100;var Wn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Wn||(Wn={}));var Ae;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ae||(Ae={}));var Ut;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(Ut||(Ut={}));var Qc;(function(e){e.websocket="websocket"})(Qc||(Qc={}));var _r;
113(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(_r||(_r={}));class sC{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var n,r;const i=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const f=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+d.length,h=new ArrayBuffer(this.HEADER_LENGTH+f);let b=new DataView(h),g=0;b.setUint8(g++,this.KINDS.userBroadcastPush),b.setUint8(g++,l.length),b.setUint8(g++,a.length),b.setUint8(g++,o.length),b.setUint8(g++,u.length),b.setUint8(g++,d.length),b.setUint8(g++,n),Array.from(l,m=>b.setUint8(g++,m.charCodeAt(0))),Array.from(a,m=>b.setUint8(g++,m.charCodeAt(0))),Array.from(o,m=>b.setUint8(g++,m.charCodeAt(0))),Array.from(u,m=>b.setUint8(g++,m.charCodeAt(0))),Array.from(d,m=>b.setUint8(g++,m.charCodeAt(0)));var w=new Uint8Array(h.byteLength+r.byteLength);return w.set(new Uint8Array(h),0),w.set(new Uint8Array(r),h.byteLength),w.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[i,s,o,a,l]=r;return n({join_ref:i,ref:s,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),i=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,i)}}_decodeUserBroadcast(t,n,r){const i=n.getUint8(1),s=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+i));l=l+i;const c=r.decode(t.slice(l,l+s));l=l+s;const d=r.decode(t.slice(l,l+o));l=l+o;const f=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,b={type:this.BROADCAST_EVENT,event:c,payload:h};return o>0&&(b.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:b}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class Nw{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var oe;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(oe||(oe={}));const $p=(e,t,n={})=>{var r;const i=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=oC(o,e,t,i),s),{}):{}},oC=(e,t,n,r)=>{const i=t.find(a=>a.name===e),s=i==null?void 0:i.type,o=n[e];return s&&!r.includes(s)?jw(s,o):Yc(o)},jw=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return cC(t,n)}switch(e){case oe.bool:return aC(t);case oe.float4:case oe.float8:case oe.int2:case oe.int4:case oe.int8:case oe.numeric:case oe.oid:return lC(t);case oe.json:case oe.jsonb:return uC(t);case oe.timestamp:return dC(t);case oe.abstime:case oe.date:case oe.daterange:case oe.int4range:case oe.int8range:case oe.money:case oe.reltime:case oe.text:case oe.time:case oe.timestamptz:case oe.timetz:case oe.tsrange:case oe.tstzrange:return Yc(t);default:return Yc(t)}},Yc=e=>e,aC=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},lC=e=>{if(typeof e=="string"){const t=parseFloat(e);
113if(!Number.isNaN(t))return t}return e},uC=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},cC=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const o=e.slice(1,n);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>jw(t,a))}return e},dC=e=>typeof e=="string"?e.replace(" ","T"):e,Dw=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class Au{constructor(t,n,r={},i=Gc){this.channel=t,this.event=n,this.payload=r,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Up;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Up||(Up={}));class Ms{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=Ms.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=Ms.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=Ms.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,i){const s=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(s,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const d=s[u];if(d){const f=c.map(w=>w.presence_ref),h=d.map(w=>w.presence_ref),b=c.filter(w=>h.indexOf(w.presence_ref)<0),g=d.filter(w=>f.indexOf(w.presence_ref)<0);b.length>0&&(a[u]=b),g.length>0&&(l[u]=g)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},r,i)}static syncDiff(t,n,r,i){const{joins:s,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),i||(i=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const d=t[a].map(h=>h.presence_ref),f=c.filter(h=>d.indexOf(h.presence_ref)<0);t[a].unshift(...f)}r(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(d=>d.presence_ref);u=u.filter(d=>c.indexOf(d.presence_ref)<0),t[a]=u,i(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const i=t[r];return"metas"in i?n[r]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=i,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Fp;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Fp||(Fp={}));var $s;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})($s||($s={}));var mn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(mn||(mn={}));class Si{constructor(t,n={config:{}},r){var i,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Ae.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Au(this,Ut.join,this.params,this.timeout),this.rejoinTimer=new Nw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ae.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ae.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ae.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Ut.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new Ms(this),this.broadcastEndpointURL=Dw(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Ae.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(i=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&i!==void 0?i:[],c=!!this.bindings[$s.PRESENCE]&&this.bindings[$s.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,d={},f={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(h=>t==null?void 0:t(mn.CHANNEL_ERROR,h)),this._onClose(()=>t==null?void 0:t(mn.CLOSED)),this.updateJoinPayload(Object.assign({config:f},d)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:h})=>{var b;if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t==null||t(mn.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,w=(b=g==null?void 0:g.length)!==null&&b!==void 0?b:0,m=[];for(let p=0;p<w;p++){const v=g[p],{filter:{event:k,schema:S,table:E,filter:_}}=v,A=h&&h[p];if(A&&A.event===k&&Si.isFilterValueEqual(A.schema,S)&&Si.isFilterValueEqual(A.table,E)&&Si.isFilterValueEqual(A.filter,_))m.push(Object.assign(Object.assign({},v),{id:A.id}));else{this.unsubscribe(),this.state=Ae.errored,t==null||t(mn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(mn.SUBSCRIBED);return}}).receive("error",h=>{this.state=Ae.errored,t==null||t(mn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(mn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===Ae.joined&&t===$s.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var i;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=r.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
113try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ae.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Ut.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(i=>{r=new Au(this,Ut.leave,{},t),r.receive("ok",()=>{n(),i("ok")}).receive("timeout",()=>{n(),i("timed out")}).receive("error",()=>{i("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ae.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const i=new AbortController,s=setTimeout(()=>i.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:i.signal}));return clearTimeout(s),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new Au(this,t,n,r);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>iC){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var i,s;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=Ut;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let f=this._onMessage(o,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var b,g,w;return((b=h.filter)===null||b===void 0?void 0:b.event)==="*"||((w=(g=h.filter)===null||g===void 0?void 0:g.event)===null||w===void 0?void 0:w.toLocaleLowerCase())===o}).map(h=>h.callback(f,r)):(s=this.bindings[o])===null||s===void 0||s.filter(h=>{var b,g,w,m,p,v;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const k=h.id,S=(b=h.filter)===null||b===void 0?void 0:b.event;return k&&((g=n.ids)===null||g===void 0?void 0:g.includes(k))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((w=n.data)===null||w===void 0?void 0:w.type.toLocaleLowerCase()))}else{const k=(p=(m=h==null?void 0:h.filter)===null||m===void 0?void 0:m.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return k==="*"||k===((v=n==null?void 0:n.event)===null||v===void 0?void 0:v.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof f=="object"&&"ids"in f){const b=f.data,{schema:g,table:w,commit_timestamp:m,type:p,errors:v}=b;f=Object.assign(Object.assign({},{schema:g,table:w,commit_timestamp:m,eventType:p,new:{},old:{},errors:v}),this._getPayloadRecords(b))}h.callback(f,r)}
113)}_isClosed(){return this.state===Ae.closed}_isJoined(){return this.state===Ae.joined}_isJoining(){return this.state===Ae.joining}_isLeaving(){return this.state===Ae.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const i=t.toLocaleLowerCase(),s={type:i,filter:n,callback:r};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Si.isEqual(i.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(Ut.close,{},t)}_onError(t){this._on(Ut.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ae.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=$p(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=$p(t.columns,t.old_record)),n}}const Cu=()=>{},ra={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},hC=[1e3,2e3,5e3,1e4],fC=1e4,pC=`
114  addEventListener("message", (e) => {
115    if (e.data.event === "start") {
116      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
117    }
118  });`;class mC{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Gc,this.transport=null,this.heartbeatIntervalMs=ra.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Cu,this.ref=0,this.reconnectTimer=null,this.vsn=Mp,this.logger=Cu,this.conn=null,this.sendBuffer=[],this.serializer=new sC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=i=>i?(...s)=>i(...s):(...s)=>fetch(...s),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Qc.websocket}`,this.httpEndpoint=Dw(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=X1.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
119
120To use Realtime in Node.js, you need to provide a WebSocket implementation:
121
122Option 1: Use Node.js 22+ which has native WebSocket support
123Option 2: Install and provide the "ws" package:
124
125  npm install ws
126
127  import ws from "ws"
128  const client = new RealtimeClient(url, {
129    ...options,
130    transport: ws
131  })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Wn.connecting:return _r.Connecting;case Wn.open:return _r.Open;case Wn.closing:return _r.Closing;default:return _r.Closed}}isConnected(){return this.connectionState()===_r.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}
131channel(t,n={config:{}}){const r=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===r);if(i)return i;{const s=new Si(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:i,ref:s}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(rC,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ra.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:i,payload:s,ref:o}=n,a=o?`(${o})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${i} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(i,s,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===Wn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Wn.open||this.conn.readyState===Wn.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t)}
131_triggerChanError(){this.channels.forEach(t=>t._trigger(Ut.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",i=new URLSearchParams(n);return`${t}${r}${i}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([pC],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(i=>{const s={access_token:n,version:tC};n&&i.updateJoinPayload(s),i.joinedOnce&&i._isJoined()&&i._push(Ut.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new Nw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ra.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,i,s,o,a,l,u,c,d,f,h;switch(this.transport=(n=t==null?void 0:t.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t==null?void 0:t.timeout)!==null&&r!==void 0?r:Gc,this.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:ra.HEARTBEAT_INTERVAL,this.worker=(s=t==null?void 0:t.worker)!==null&&s!==void 0?s:!1,this.accessToken=(o=t==null?void 0:t.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t==null?void 0:t.heartbeatCallback)!==null&&a!==void 0?a:Cu,this.vsn=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:Mp,t!=null&&t.params&&(this.params=t.params),t!=null&&t.logger&&(this.logger=t.logger),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:b=>hC[b-1]||fC,this.vsn){case Ow:this.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:(b,g)=>g(JSON.stringify(b)),this.decode=(d=t==null?void 0:t.decode)!==null&&d!==void 0?d:(b,g)=>g(JSON.parse(b));break;case nC:this.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:this.serializer.encode.bind(this.serializer),this.decode=(h=t==null?void 0:t.decode)!==null&&h!==void 0?h:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl}}}var co=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function gC(e,t,n){const r=new URL(t,e);if(n)for(const[i,s]of Object.entries(n))s!==void 0&&r.searchParams.set(i,s);return r.toString()}async function vC(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function yC(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:s,headers:o}){const a=gC(e.baseUrl,r,i),l=await vC(e.auth),u=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),c=await u.text(),d=(u.headers.get("content-type")||"").includes("application/json"),f=d&&c?JSON.parse(c):c;if(!u.ok){const h=d?f:void 0,b=h==null?void 0:h.error;throw new co((b==null?void 0:b.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:b==null?void 0:b.type,icebergCode:b==null?void 0:b.code,details:h})}return{status:u.status,headers:u.headers,data:f}}}}function ia(e){return e.join("�")}var wC=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:ia(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ia(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ia(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ia(e.namespace)}`}),!0}catch(t){if(t instanceof co&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof co&&n.status===409)return;throw n}}};function ni(e){return e.join("�")}var bC=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ni(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof co&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof co&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},xC=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=yC({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new wC(this.client,t),this.tableOps=new bC(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
131async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},zl=class extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}};function ge(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var kC=class extends zl{constructor(e,t,n){super(e),this.name="StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},Jc=class extends zl{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}};const Th=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),SC=()=>Response,Zc=e=>{if(Array.isArray(e))return e.map(n=>Zc(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const i=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Zc(r)}),t},EC=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_C=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function TC(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AC(e){var t=TC(e,"string");return ho(t)=="symbol"?t:t+""}function CC(e,t,n){return(t=AC(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(n),!0).forEach(function(r){CC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const Pu=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},PC=async(e,t,n)=>{e instanceof await SC()&&!(n!=null&&n.noResolveJson)?e.json().then(r=>{const i=e.status||500,s=(r==null?void 0:r.statusCode)||i+"";t(new kC(Pu(r),i,s))}).catch(r=>{t(new Jc(Pu(r),r))}):t(new Jc(Pu(e),e))},IC=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"||!r?i:(EC(r)?(i.headers=F({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,t!=null&&t.duplex&&(i.duplex=t.duplex),F(F({},i),n))};async function Po(e,t,n,r,i,s){return new Promise((o,a)=>{e(n,IC(t,r,i,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>PC(l,a,r))})}async function fo(e,t,n,r){return Po(e,"GET",t,n,r)}async function Lt(e,t,n,r,i){return Po(e,"POST",t,r,i,n)}async function Xc(e,t,n,r,i){return Po(e,"PUT",t,r,i,n)}async function RC(e,t,n,r){return Po(e,"HEAD",t,F(F({},n),{},{noResolveJson:!0}),r)}async function Ah(e,t,n,r,i){return Po(e,"DELETE",t,r,i,n)}var OC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(ge(t))return{data:null,error:t};throw t}}};let Lw;Lw=Symbol.toStringTag;var NC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Lw]="BlobDownloadBuilder",this.promise=null}asStream(){return new OC(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(ge(t))return{data:null,error:t};throw t}}};const jC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Wp={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var DC=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.bucketId=n,this.fetch=Th(r)}throwOnError(){return this.shouldThrowOnError=!0,this}async uploadOrUpdate(e,t,n,r){var i=this;try{let s;const o=F(F({},Wp),r);let a=F(F({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(a=F(F({},a),r.headers));const u=i._removeEmptyFolders(t),c=i._getFinalPath(u),d=await(e=="PUT"?Xc:Lt)(i.fetch,`${i.url}/object/${c}`,s,F({headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:d.Id,fullPath:d.Key},error:null}}catch(s){if(i.shouldThrowOnError)throw s;if(ge(s))return{data:null,error:s};throw s}}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);a.searchParams.set("token",t);try{let l;const u=F({upsert:Wp.upsert},r),c=F(F({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{data:{path:s,fullPath:(await Xc(i.fetch,a.toString(),l,{headers:c})).Key},error:null}}catch(l){if(i.shouldThrowOnError)throw l;if(ge(l))return{data:null,error:l};throw l}}async createSignedUploadUrl(e,t){var n=this;try{let r=n._getFinalPath(e);const i=F({},n.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const s=await Lt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:i}),o=new URL(n.url+s.url),a=o.searchParams.get("token");if(!a)throw new zl("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:a},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ge(r))return{data:null,error:r};throw r}}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;try{return{data:await Lt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
131stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(ge(i))return{data:null,error:i};throw i}}async copy(e,t,n){var r=this;try{return{data:{path:(await Lt(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key},error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(ge(i))return{data:null,error:i};throw i}}async createSignedUrl(e,t,n){var r=this;try{let i=r._getFinalPath(e),s=await Lt(r.fetch,`${r.url}/object/sign/${i}`,F({expiresIn:t},n!=null&&n.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${r.url}${s.signedURL}${o}`)},{data:s,error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(ge(i))return{data:null,error:i};throw i}}async createSignedUrls(e,t,n){var r=this;try{const i=await Lt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n!=null&&n.download?`&download=${n.download===!0?"":n.download}`:"";return{data:i.map(o=>F(F({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${s}`):null})),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(ge(i))return{data:null,error:i};throw i}}download(e,t){const n=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString((t==null?void 0:t.transform)||{}),i=r?`?${r}`:"",s=this._getFinalPath(e),o=()=>fo(this.fetch,`${this.url}/${n}/${s}${i}`,{headers:this.headers,noResolveJson:!0});return new NC(o,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);try{return{data:Zc(await fo(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ge(r))return{data:null,error:r};throw r}}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await RC(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ge(r)&&r instanceof Jc){const i=r.originalError;if([400,404].includes(i==null?void 0:i.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],i=t!=null&&t.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&r.push(i);const s=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object",o=this.transformOptsToQueryString((t==null?void 0:t.transform)||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;try{return{data:await Ah(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async list(e,t,n){var r=this;try{const i=F(F(F({},jC),t),{},{prefix:e||""});return{data:await Lt(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n),error:null}}catch(i){if(r.shouldThrowOnError)throw i;if(ge(i))return{data:null,error:i};throw i}}async listV2(e,t){var n=this;try{const r=F({},e);return{data:await Lt(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ge(r))return{data:null,error:r};throw r}}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const zw="2.89.0",Mw={"X-Client-Info":`storage-js/${zw}`};var LC=class{constructor(e,t={},n,r){this.shouldThrowOnError=!1;const i=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href.replace(/\/$/,""),this.headers=F(F({},Mw),t),this.fetch=Th(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async listBuckets(e){var t=this;try{const n=t.listBucketOptionsToQueryString(e);return{data:await fo(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await fo(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async createBucket(e,t={public:!1}){var n=this;try{return{data:await Lt(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ge(r))return{data:null,error:r};throw r}}async updateBucket(e,t){var n=this;try{return{data:await Xc(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ge(r))return{data:null,error:r};throw r}}async emptyBucket(e){var t=this;try{return{data:await Lt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Ah(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},zC=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=F(F({},Mw),t),this.fetch=Th(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await Lt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async listBuckets(e){var t=this;try{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),i=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return{data:await fo(t.fetch,i,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await Ah(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ge(n))return{data:null,error:n};throw n}}from(e){var t=this;if(!_C(e))throw new zl("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new xC({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
131),r=this.shouldThrowOnError;return new Proxy(n,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}};const Ch={"X-Client-Info":`storage-js/${zw}`,"Content-Type":"application/json"};var $w=class extends Error{constructor(e){super(e),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}};function ut(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}var Iu=class extends $w{constructor(e,t,n){super(e),this.name="StorageVectorsApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},MC=class extends $w{constructor(e,t){super(e),this.name="StorageVectorsUnknownError",this.originalError=t}};const Ph=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),$C=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Kp=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),UC=async(e,t,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(n!=null&&n.noResolveJson)){const r=e.status||500,i=e;if(typeof i.json=="function")i.json().then(s=>{const o=(s==null?void 0:s.statusCode)||(s==null?void 0:s.code)||r+"";t(new Iu(Kp(s),r,o))}).catch(()=>{const s=r+"";t(new Iu(i.statusText||`HTTP ${r} error`,r,s))});else{const s=r+"";t(new Iu(i.statusText||`HTTP ${r} error`,r,s))}}else t(new MC(Kp(e),e))},FC=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return r?($C(r)?(i.headers=F({"Content-Type":"application/json"},t==null?void 0:t.headers),i.body=JSON.stringify(r)):i.body=r,F(F({},i),n)):i};async function BC(e,t,n,r,i,s){return new Promise((o,a)=>{e(n,FC(t,r,i,s)).then(l=>{if(!l.ok)throw l;if(r!=null&&r.noResolveJson)return l;const u=l.headers.get("content-type");return!u||!u.includes("application/json")?{}:l.json()}).then(l=>o(l)).catch(l=>UC(l,a,r))})}async function ct(e,t,n,r,i){return BC(e,"POST",t,r,i,n)}var WC=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=F(F({},Ch),t),this.fetch=Ph(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createIndex(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async getIndex(e,t){var n=this;try{return{data:await ct(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}),error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ut(r))return{data:null,error:r};throw r}}async listIndexes(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async deleteIndex(e,t){var n=this;try{return{data:await ct(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{},error:null}}catch(r){if(n.shouldThrowOnError)throw r;if(ut(r))return{data:null,error:r};throw r}}},KC=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=F(F({},Ch),t),this.fetch=Ph(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async putVectors(e){var t=this;try{if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:await ct(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async getVectors(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async listVectors(e){var t=this;try{if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
131if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return{data:await ct(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async queryVectors(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async deleteVectors(e){var t=this;try{if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:await ct(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}},HC=class{constructor(e,t={},n){this.shouldThrowOnError=!1,this.url=e.replace(/\/$/,""),this.headers=F(F({},Ch),t),this.fetch=Ph(n)}throwOnError(){return this.shouldThrowOnError=!0,this}async createBucket(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async getBucket(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async listBuckets(e={}){var t=this;try{return{data:await ct(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}async deleteBucket(e){var t=this;try{return{data:await ct(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{},error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ut(n))return{data:null,error:n};throw n}}},VC=class extends HC{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new qC(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},qC=class extends WC{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new GC(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},GC=class extends KC{constructor(e,t,n,r,i){super(e,t,i),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,F(F({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},QC=class extends LC{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new DC(this.url,this.headers,e,this.fetch)}get vectors(){return new VC(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new zC(this.url+"/iceberg",this.headers,this.fetch)}};const Uw="2.89.0",ui=30*1e3,ed=3,Ru=ed*ui,YC="http://localhost:9999",JC="supabase.auth.token",ZC={"X-Client-Info":`gotrue-js/${Uw}`},td="X-Supabase-Api-Version",Fw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},XC=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,eP=10*60*1e3;
131class po extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function M(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class tP extends po{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function nP(e){return M(e)&&e.name==="AuthApiError"}class Tr extends po{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class In extends po{constructor(t,n,r,i){super(t,r,i),this.name=n,this.status=r}}class ot extends In{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function rP(e){return M(e)&&e.name==="AuthSessionMissingError"}class ri extends In{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class sa extends In{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class oa extends In{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function iP(e){return M(e)&&e.name==="AuthImplicitGrantRedirectError"}class Hp extends In{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class sP extends In{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class nd extends In{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Ou(e){return M(e)&&e.name==="AuthRetryableFetchError"}class Vp extends In{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class rd extends In{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const il="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),qp=` 	
132\r=`.split(""),oP=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<qp.length;t+=1)e[qp[t].charCodeAt(0)]=-2;for(let t=0;t<il.length;t+=1)e[il[t].charCodeAt(0)]=t;return e})();function Gp(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(il[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(il[r]),t.queuedBits-=6}}function Bw(e,t,n){const r=oP[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Qp(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{uP(o,r,n)};for(let o=0;o<e.length;o+=1)Bw(e.charCodeAt(o),i,s);return t.join("")}function aP(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function lP(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const i=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|i)+65536,n+=1}aP(r,t)}}function uP(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ni(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)Bw(e.charCodeAt(i),n,r);return new Uint8Array(t)}function cP(e){const t=[];return lP(e,n=>t.push(n)),new Uint8Array(t)}function Ir(e){const t=[],n={queue:0,queuedBits:0},r=i=>{t.push(i)};return e.forEach(i=>
132Gp(i,n,r)),Gp(null,n,r),t.join("")}function dP(e){return Math.round(Date.now()/1e3)+e}function hP(){return Symbol("auth-callback")}const je=()=>typeof window<"u"&&typeof document<"u",br={tested:!1,writable:!1},Ww=()=>{if(!je())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(br.tested)return br.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),br.tested=!0,br.writable=!0}catch{br.tested=!0,br.writable=!1}return br.writable};function fP(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((i,s)=>{t[s]=i})}catch{}return n.searchParams.forEach((r,i)=>{t[i]=r}),t}const Kw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),pP=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ci=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},xr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Ne=async(e,t)=>{await e.removeItem(t)};class Ml{constructor(){this.promise=new Ml.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ml.promiseConstructor=Promise;function Nu(e){const t=e.split(".");if(t.length!==3)throw new rd("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!XC.test(t[r]))throw new rd("JWT not in base64url format");return{header:JSON.parse(Qp(t[0])),payload:JSON.parse(Qp(t[1])),signature:Ni(t[2]),raw:{header:t[0],payload:t[1]}}}async function mP(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function gP(e,t){return new Promise((r,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){r(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function vP(e){return("0"+e.toString(16)).substr(-2)}function yP(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let i="";for(let s=0;s<56;s++)i+=n.charAt(Math.floor(Math.random()*r));return i}return crypto.getRandomValues(t),Array.from(t,vP).join("")}async function wP(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function bP(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await wP(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ii(e,t,n=!1){const r=yP();let i=r;n&&(i+="/PASSWORD_RECOVERY"),await ci(e,`${t}-code-verifier`,i);const s=await bP(r);return[s,r===s?"plain":"s256"]}const xP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function kP(e){const t=e.headers.get(td);if(!t||!t.match(xP))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function SP(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function EP(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const _P=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function si(e){if(!_P.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ju(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function TP(e,t){return new Proxy(e,{get:(n,r,i)=>{if(r==="__isInsecureUserWarningProxy")return!0;
132if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,i)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,i)}})}function Yp(e){return JSON.parse(JSON.stringify(e))}const Er=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),AP=[502,503,504];async function Jp(e){var t;if(!pP(e))throw new nd(Er(e),0);if(AP.includes(e.status))throw new nd(Er(e),e.status);let n;try{n=await e.json()}catch(s){throw new Tr(Er(s),s)}let r;const i=kP(e);if(i&&i.getTime()>=Fw["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Vp(Er(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new ot}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new Vp(Er(n),e.status,n.weak_password.reasons);throw new tP(Er(n),e.status||500,r)}const CP=(e,t,n,r)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};async function U(e,t,n,r){var i;const s=Object.assign({},r==null?void 0:r.headers);s[td]||(s[td]=Fw["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const o=(i=r==null?void 0:r.query)!==null&&i!==void 0?i:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await PP(e,t,n+a,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function PP(e,t,n,r,i,s){const o=CP(t,r,i,s);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new nd(Er(l),0)}if(a.ok||await Jp(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Jp(l)}}function Nt(e){var t;let n=null;OP(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=dP(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Zp(e){const t=Nt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Vn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function IP(e){return{data:e,error:null}}function RP(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s}=e,o=Ll(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Xp(e){return e}function OP(e){return e.access_token&&e.refresh_token&&e.expires_in}const Du=["global","local","others"];class NP{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Kw(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=Du[0]){if(Du.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Du.j
132oin(", ")}`);try{return await U(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(M(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await U(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Vn})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Ll(t,["options"]),i=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(i.new_email=r==null?void 0:r.newEmail,delete i.newEmail),await U(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:RP,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(M(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await U(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Vn})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await U(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Xp});if(c.error)throw c.error;const d=await c.json(),f=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(M(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){si(t);try{return await U(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Vn})}catch(n){if(M(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){si(t);try{return await U(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Vn})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){si(t);try{return await U(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Vn})}catch(r){if(M(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){si(t.userId);try{const{data:n,error:r}=await U(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:n,error:r}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _deleteFactor(t){si(t.userId),si(t.id);try{return{data:await U(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await U(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Xp});if(c.error)throw c.error;const d=await c.json(),f=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(b=>{const g=parseInt(b.split(";")[0].split("=")[1].substring(0,1)),w=JSON.parse(b.split(";")[1].split("=")[1]);u[`${w}Page`]=g}),u.total=parseInt(f)),{data:Object.assign(Object.assign({},d),u),error:null}}catch(u){if(M(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await U(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await U(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(M(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await U(this.fetch,"DELET
132E",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(M(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await U(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(M(n))return{data:null,error:n};throw n}}}function em(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const oi={debug:!!(globalThis&&Ww()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Hw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class jP extends Hw{}async function DP(e,t,n){oi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),oi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){oi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{oi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw oi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new jP(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(oi.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null,"  "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function LP(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function Vw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function zP(e){return parseInt(e,16)}function MP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function $P(e){var t;const{chainId:n,domain:r,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:d,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
133`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=Vw(e.address),b=c?`${c}://${r}
133`:r,g=e.statement?`${e.statement}
134`:"",w=`${b} wants you to sign in with your Ethereum account:
135${h}
136
137${g}`;let m=`URI: ${d}
138Version: ${f}
139Chain ID: ${n}${o?`
140Nonce: ${o}`:""}
141Issued At: ${s.toISOString()}`;if(i&&(m+=`
142Expiration Time: ${i.toISOString()}`),a&&(m+=`
143Not Before: ${a.toISOString()}`),l&&(m+=`
144Request ID: ${l}`),u){let p=`
145Resources:`;for(const v of u){if(!v||typeof v!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${v}`);p+=`
146- ${v}`}m+=p}return`${w}
147${m}`}class _e extends Error{constructor({message:t,code:n,cause:r,name:i}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=i??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class sl extends _e{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function UP({error:e,options:t}){var n,r,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new _e({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new _e({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new _e({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new _e({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new _e({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new _e({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(qw(o)){if(s.rp.id!==o)return new _e({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new _e({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function FP({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(qw(r)){if(n.rpId!==r)return new _e({message:`The RP ID "${n.rpId}
147" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class BP{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const WP=new BP;function KP(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,i=Ll(e,["challenge","user","excludeCredentials"]),s=Ni(t).buffer,o=Object.assign(Object.assign({},n),{id:Ni(n.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:Ni(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function HP(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Ll(e,["challenge","allowCredentials"]),i=Ni(t).buffer,s=Object.assign(Object.assign({},r),{challenge:i});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:Ni(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function VP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ir(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ir(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function qP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ir(new Uint8Array(i.authenticatorData)),clientDataJSON:Ir(new Uint8Array(i.clientDataJSON)),signature:Ir(new Uint8Array(i.signature)),userHandle:i.userHandle?Ir(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function qw(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function tm(){var e,t;return!!(je()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function GP(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new sl("Browser returned unexpected credential type",t)}:{data:null,error:new sl("Empty credential response",t)}}catch(t){return{data:null,error:UP({error:t,options:e})}}}async function QP(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new sl("Browser returned unexpected credential type",t)}:{data:null,error:new sl("Empty credential response",t)}}
147catch(t){return{data:null,error:FP({error:t,options:e})}}}const YP={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},JP={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function ol(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),n=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),r={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))r[s]=o;else if(n(o))r[s]=o;else if(t(o)){const a=r[s];t(a)?r[s]=ol(a,o):r[s]=ol(o)}else r[s]=o}return r}function ZP(e,t){return ol(YP,e,t||{})}function XP(e,t){return ol(JP,e,t||{})}class eI{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:i},s){try{const{data:o,error:a}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!o)return{data:null,error:a};const l=i??WP.createNewAbortSignal();if(o.webauthn.type==="create"){const{user:u}=o.webauthn.credential_options.publicKey;u.name||(u.name=`${u.id}:${r}`),u.displayName||(u.displayName=u.name)}switch(o.webauthn.type){case"create":{const u=ZP(o.webauthn.credential_options.publicKey,s==null?void 0:s.create),{data:c,error:d}=await GP({publicKey:u,signal:l});return c?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}case"request":{const u=XP(o.webauthn.credential_options.publicKey,s==null?void 0:s.request),{data:c,error:d}=await QP(Object.assign(Object.assign({},o.webauthn.credential_options),{publicKey:u,signal:l}));return c?{data:{factorId:t,challengeId:o.id,webauthn:{type:o.webauthn.type,credential_response:c}},error:null}:{data:null,error:d}}}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new Tr("Unexpected error in challenge",o)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new po("rpId is required for WebAuthn authentication")};try{if(!tm())return{data:null,error:new Tr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:i},{request:s});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new Tr("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!n)return{data:null,error:new po("rpId is required for WebAuthn registration")};try{if(!tm())return{data:null,error:new Tr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var d;return(d=c.data)===null||d===void 0?void 0:d.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c==null?void 0:c.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:i},{create:s});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return M(o)?{data:null,error:o}:{data:null,error:new Tr("Unexpected error in register",o)}}}}LP();const tI={url:YC,storageKey:JC,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:ZC,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1};async function nm(e,t,n){return await n()}const ai={};class mo{get jwks(){var t,n;return(n=(t=ai[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){ai[this.storageKey]=Object.assign(Object.assign({},ai[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=ai[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){ai[this.storageKey]=Object.assign(Object.assign({},ai[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},tI),t);
147if(this.storageKey=s.storageKey,this.instanceID=(n=mo.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,mo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&je()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new NP({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Kw(s.fetch),this.lock=s.lock||nm,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,s.lock?this.lock=s.lock:this.persistSession&&je()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=DP:this.lock=nm,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new eI(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:Ww()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=em(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=em(this.memoryStorage)),je()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o),await this._notifyAllSubscribers(o.data.event,o.data.session,!1)})}this.initialize()}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Uw}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(je()&&(n=fP(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),je()&&this.detectSessionInUrl&&r!=="none"){const{data:i,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),iP(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return M(n)?this._returnResult({error:n}):this._returnResult({error:new Tr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,i;try{const s=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Nt}),{data:o,error:a}=s;
147if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,i;try{let s;if("email"in t){const{email:c,password:d,options:f}=t;let h=null,b=null;this.flowType==="pkce"&&([h,b]=await ii(this.storage,this.storageKey)),s=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:c,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:h,code_challenge_method:b},xform:Nt})}else if("phone"in t){const{phone:c,password:d,options:f}=t;s=await U(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(i=f==null?void 0:f.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Nt})}else throw new sa("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
147if(a||!o)return await Ne(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:o,options:a}=t;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Zp})}else if("phone"in t){const{phone:s,password:o,options:a}=t;n=await U(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Zp})}else throw new sa("You must provide either an email or phone number and a password");const{data:r,error:i}=n;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!r||!r.session||!r.user){const s=new ri;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:i})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,i,s,o,a,l,u,c,d,f;let h,b;if("message"in t)h=t.message,b=t.signature;else{const{chain:g,wallet:w,statement:m,options:p}=t;let v;if(je())if(typeof w=="object")v=w;else{const I=window;if("ethereum"in I&&typeof I.ethereum=="object"&&"request"in I.ethereum&&typeof I.ethereum.request=="function")v=I.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof w!="object"||!(p!=null&&p.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=w}const k=new URL((n=p==null?void 0:p.url)!==null&&n!==void 0?n:window.location.href),S=await v.request({method:"eth_requestAccounts"}).then(I=>I).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=Vw(S[0]);let _=(r=p==null?void 0:p.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const I=await v.request({method:"eth_chainId"});_=zP(I)}const A={domain:k.host,address:E,statement:m,uri:k.href,version:"1",chainId:_,nonce:(i=p==null?void 0:p.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=p==null?void 0:p.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=p==null?void 0:p.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=p==null?void 0:p.sign
147InWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=p==null?void 0:p.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=p==null?void 0:p.signInWithEthereum)===null||c===void 0?void 0:c.resources};h=$P(A),b=await v.request({method:"personal_sign",params:[MP(h),E]})}try{const{data:g,error:w}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:b},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Nt});if(w)throw w;if(!g||!g.session||!g.user){const m=new ri;return this._returnResult({data:{user:null,session:null},error:m})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:w})}catch(g){if(M(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var n,r,i,s,o,a,l,u,c,d,f,h;let b,g;if("message"in t)b=t.message,g=t.signature;else{const{chain:w,wallet:m,statement:p,options:v}=t;let k;if(je())if(typeof m=="object")k=m;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))k=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof m!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=m}const S=new URL((n=v==null?void 0:v.url)!==null&&n!==void 0?n:window.location.href);
147if("signIn"in k&&k.signIn){const E=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},v==null?void 0:v.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),p?{statement:p}:null));let _;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")_=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)_=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)b=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),g=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");b=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(i=(r=v==null?void 0:v.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=v==null?void 0:v.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${v.signInWithSolana.notBefore}`]:[],...!((o=v==null?void 0:v.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${v.signInWithSolana.expirationTime}`]:[],...!((a=v==null?void 0:v.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${v.signInWithSolana.chainId}`]:[],...!((l=v==null?void 0:v.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${v.signInWithSolana.nonce}`]:[],...!((u=v==null?void 0:v.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${v.signInWithSolana.requestId}`]:[],...!((d=(c=v==null?void 0:v.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||d===void 0)&&d.length?["Resources",...v.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(`
148`);const E=await k.signMessage(new TextEncoder().encode(b),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:w,error:m}=await U(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:b,signature:Ir(g)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Nt});if(m)throw m;if(!w||!w.session||!w.user){const p=new ri;return this._returnResult({data:{user:null,session:null},error:p})}return w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("SIGNED_IN",w.session)),this._returnResult({data:Object.assign({},w),error:m})}catch(w){if(M(w))return this._returnResult({data:{user:null,session:null},error:w});throw w}}async _exchangeCodeForSession(t){const n=await xr(this.storage,`${this.storageKey}-code-verifier`),[r,i]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new sP;const{data:s,error:o}=await U(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Nt});if(await Ne(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new ri;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:i,access_token:s,nonce:o}=t,a=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Nt}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new ri;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await ii(this.storage,this.storageKey));const{error:d}=await U(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await U(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c})}throw new sa("You must provide either an email or phone number.")}catch(a){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let i,s;"options"in t&&(i=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await U(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:Nt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var n,r,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ii(this.storage,this.storageKey));const u=await U(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:IP});return!((s=u.data)===null||s===void 0)&&s.url&&je()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new ot;const{error:i}=await U(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(M(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:i,options:s}=t,{error:o}=await U(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:i,options:s}=t,{data:o,error:a}=await U(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:i,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a})}throw new sa("You must provide either an email or phone number and a type")}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await xr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
148id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Ru:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await xr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=ju()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=TP(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(-1,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Vn}):await this._useSession(async n=>{var r,i,s;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ot}:await U(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:Vn})})}catch(n){if(M(n))return rP(n)&&(await this._removeSession(),await Ne(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:i,error:s}=r;if(s)throw s;if(!i.session)throw new ot;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ii(this.storage,this.storageKey));const{data:u,error:c}=await U(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:Vn});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new ot;const n=Date.now()/1e3;let r=n,i=!0,s=null;const{payload:o}=Nu(t.access_token);if(o.exp&&(r=o.exp,i=r<=n),i){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(M(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new ot;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(M(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!je())throw new oa("No browser detected.");
148if(t.error||t.error_description||t.error_code)throw new oa(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new Hp("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new oa("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new Hp("No code detected.");const{data:p,error:v}=await this._exchangeCodeForSession(t.code);if(v)throw v;const k=new URL(window.location.href);return k.searchParams.delete("code"),window.history.replaceState(window.history.state,"",k.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!o||!u)throw new oa("No session defined in URL");const c=Math.round(Date.now()/1e3),d=parseInt(a);let f=c+d;l&&(f=parseInt(l));const h=f-c;h*1e3<=ui&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${d}s`);const b=f-d;c-b>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",b,f,c):c-b<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",b,f,c);const{data:g,error:w}=await this._getUser(s);if(w)throw w;const m={provider_token:r,provider_refresh_token:i,access_token:s,expires_in:d,expires_at:f,refresh_token:o,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(r){if(M(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await xr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({error:s});const o=(r=i.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(nP(a)&&(a.status===404||a.status===401||a.status===403)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await Ne(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=hP(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,i;try{const{data:{session:s},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,i=null;this.flowType==="pkce"&&([r,i]=await ii(this.storage,this.storageKey,!0));try{return await U(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:i,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:i}=await this._useSession(async s=>{var o,a,l,u,c;const{data:d,error:f}=s;if(f)throw f;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await U(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=d.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return je()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(M(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:i,data:{session:s}}=n;
148if(i)throw i;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,d=await U(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s==null?void 0:s.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Nt}),{data:f,error:h}=d;return h?this._returnResult({data:{user:null,session:null},error:h}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new ri}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:h}))}catch(i){if(await Ne(this.storage,`${this.storageKey}-code-verifier`),M(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)throw o;return await U(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&i!==void 0?i:void 0})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await gP(async i=>(i>0&&await mP(200*Math.pow(2,i-1)),this._debug(n,"refreshing attempt",i),await U(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Nt})),(i,s)=>{const o=200*Math.pow(2,i);return s&&Ou(s)&&Date.now()+o-r<ui})}catch(r){if(this._debug(n,"error",r),M(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),je()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const i=await xr(this.storage,this.storageKey);if(i&&this.userStorage){let o=await xr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await ci(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:ju()}else if(i&&!i.user&&!i.user){const o=await xr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await Ne(this.storage,this.storageKey+"-user"),await ci(this.storage,this.storageKey,i)):i.user=ju()}if(this._debug(r,"session from storage",i),!this._isValidSession(i)){this._debug(r,"session is not valid"),i!==null&&await this._removeSession();return}const s=((n=i.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Ru;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Ru}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),Ou(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(r,"error",i),console.error(i);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new ot;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Ml;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new ot;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),M(s)){const o={data:null,error:s};return Ou(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,n,r=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ne(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await ci(this.userStorage,this.storageKey+"-user",{user:n.user});const i=Object.assign({},n);delete i.user;const s=Yp(i);await ci(this.storage,this.storageKey,s)}else{const i=Yp(n);await ci(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Ne(this.storage,this.storageKey),await Ne(this.storage,this.storageKey+"-code-verifier"),await Ne(this.storage,this.storageKey+"-user"),this.userStorage&&await Ne(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&je()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
148catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ui);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((r.expires_at*1e3-t)/ui);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${ui}ms, refresh threshold is ${ed} ticks`),i<=ed&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Hw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!je()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const i=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&i.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&i.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,o]=await ii(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);i.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&i.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;return s?this._returnResult({data:null,error:s}):await U(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,i;const{data:s,error:o}=n;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await U(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?VP(t.webauthn.credential_response):qP(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:i,error:s}=n;if(s)return this._returnResult({data:null,error:s});const o=await U(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:KP(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:HP(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(){var t,n;const{data:{session:r},error:i}
148=await this.getSession();if(i)return this._returnResult({data:null,error:i});if(!r)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:s}=Nu(r.access_token);let o=null;s.aal&&(o=s.aal);let a=o;((n=(t=r.user.factors)===null||t===void 0?void 0:t.filter(c=>c.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(a="aal2");const u=s.amr||[];return{data:{currentLevel:o,nextLevel:a,currentAuthenticationMethods:u},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?await U(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new ot})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ot});const o=await U(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&je()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:i},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new ot});const o=await U(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&je()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await U(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new ot})})}catch(t){if(M(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:i}=n;return i?this._returnResult({data:null,error:i}):r?(await U(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ot})})}catch(n){if(M(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const i=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+eP>i)return r;const{data:s,error:o}=await U(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:b}
148=await this.getSession();if(b||!h.session)return this._returnResult({data:null,error:b});r=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=Nu(r);n!=null&&n.allowExpired||SP(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const c=EP(i.alg),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,o,cP(`${a}.${l}`)))throw new rd("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(r){if(M(r))return this._returnResult({data:null,error:r});throw r}}}mo.nextInstanceID={};const nI=mo,rI="2.89.0";let As="";typeof Deno<"u"?As="deno":typeof document<"u"?As="web":typeof navigator<"u"&&navigator.product==="ReactNative"?As="react-native":As="node";const iI={"X-Client-Info":`supabase-js-${As}/${rI}`},sI={headers:iI},oI={schema:"public"},aI={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},lI={};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function uI(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cI(e){var t=uI(e,"string");return go(t)=="symbol"?t:t+""}function dI(e,t,n){return(t=cI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rm(Object(n),!0).forEach(function(r){dI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const hI=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),fI=()=>Headers,pI=(e,t,n)=>{const r=hI(n),i=fI();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new i(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,xe(xe({},o),{},{headers:u}))}};function mI(e){return e.endsWith("/")?e:e+"/"}function gI(e,t){var n,r;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:d}=t,f={db:xe(xe({},l),i),auth:xe(xe({},u),s),realtime:xe(xe({},c),o),storage:{},global:xe(xe(xe({},d),a),{},{headers:xe(xe({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}function vI(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(mI(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var yI=class extends nI{constructor(e){super(e)}},wI=class{constructor(e,t,n){var r,i;this.supabaseUrl=e,this.supabaseKey=t;const s=vI(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:oI,realtime:lI,auth:xe(xe({},aI),{},{storageKey:o}),global:sI},l=gI(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=pI(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(xe({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&this.accessToken().then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new Z1(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new QC(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new q1(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
148channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:u},c,d){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new yI({url:this.authUrl.href,headers:xe(xe({},f),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:u,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new mC(this.realtimeUrl.href,xe(xe({},e),{},{params:xe(xe({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const bI=(e,t,n)=>new wI(e,t,n);function xI(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const t=e.match(/^v(\d+)\./);return t?parseInt(t[1],10)<=18:!1}xI()&&console.warn("⚠️  Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function kI(){var w,m;if(typeof window>"u")return;const e=location.hostname,n=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(p=>e===p||e.endsWith("."+p)),r="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=n?((w=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+r+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:w[1])??((m=e.match(new RegExp("^("+r+")(?=[.-])","i")))==null?void 0:m[1]):void 0,s=window.parent&&window.parent!==window;if(!i||!s)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),a=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),u=l&&a.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],c="lovable-preview-auth:result",d=2e3,f=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),h=(p,v,k)=>new Promise(S=>{const E=f();let _=!1,A;const I=D=>{_||(_=!0,clearTimeout(A),window.removeEventListener("message",N),S(D))},N=D=>{if(u.indexOf(D.origin)<0)return;const K=D.data;K&&K.type===c&&K.requestId===E&&I(K)};window.addEventListener("message",N);const B={type:p,requestId:E,projectId:i,key:v};k!==void 0&&(B.value=k);for(const D of u)window.parent.postMessage(B,D);A=setTimeout(()=>I(null),d)});let b=!0;const g=250;return{getItem:async p=>{let v=await h("lovable-preview-auth:get",p);return!v&&b&&(await new Promise(k=>setTimeout(k,g)),v=await h("lovable-preview-auth:get",p)),b=!1,v&&v.ok&&typeof v.value=="string"?v.value===""?(localStorage.removeItem(p),null):v.value:localStorage.getItem(p)},setItem:(p,v)=>(localStorage.setItem(p,v),h("lovable-preview-auth:set",p,v).then(()=>{})),removeItem:p=>(localStorage.removeItem(p),h("lovable-preview-auth:remove",p).then(()=>{}))}}const SI="https://zdknuvoordoacpnmcmkl.supabase.co",im="sb_publishable_85ZpfkIgWG6DMzpRAzNllA_xNGClDmv";function EI(e){return e.startsWith("sb_publishable_")||e.startsWith("sb_secret_")}function _I(e){return(t,n)=>{const r=new Headers(typeof Request<"u"&&t instanceof Request?t.headers:void 0);
148return n!=null&&n.headers&&new Headers(n.headers).forEach((i,s)=>r.set(s,i)),EI(e)&&r.get("Authorization")===`Bearer ${e}`&&r.delete("Authorization"),r.set("apikey",e),fetch(t,{...n,headers:r})}}const TI=bI(SI,im,{global:{fetch:_I(im)},auth:{storage:kI(),persistSession:!0,autoRefreshToken:!0}}),sm=[{key:"training_prep_submissions",label:"Vorbereitungsfragebogen"},{key:"workshop_feedback_submissions",label:"Workshop-Feedback"},{key:"newsletter_signups",label:"Newsletter"},{key:"service_inquiries",label:"Serviceanfragen"},{key:"investigator_requests",label:"Investigator"},{key:"use_case_checker_results",label:"Use Case Checker"},{key:"campaign_submissions",label:"Kampagne"},{key:"eltif_info_requests",label:"ELTIF-Anfragen"}],AI=["id","payload"];function CI(e){return e==null||e===""?y.jsx("span",{className:"text-muted-foreground italic",children:"ohne Angabe"}):Array.isArray(e)?e.length===0?y.jsx("span",{className:"text-muted-foreground italic",children:"ohne Angabe"}):y.jsx("ul",{className:"list-disc list-inside space-y-0.5",children:e.map((t,n)=>y.jsx("li",{children:typeof t=="object"?JSON.stringify(t):String(t)},n))}):typeof e=="object"?y.jsx("pre",{className:"text-xs whitespace-pre-wrap",children:JSON.stringify(e,null,2)}):y.jsx("span",{className:"whitespace-pre-wrap",children:String(e)})}function Gw(e){const t=new Set;return e.forEach(n=>Object.keys(n).forEach(r=>t.add(r))),Array.from(t).filter(n=>!AI.includes(n))}function PI(e){const t=Gw(e),n=r=>`"${(Array.isArray(r)?r.join(" | "):r==null?"":typeof r=="object"?JSON.stringify(r):String(r)).replace(/"/g,'""')}"`;return[t.join(","),...e.map(r=>t.map(i=>n(r[i])).join(","))].join(`
149`)}function II(){const{toast:e}=Cv(),[t,n]=x.useState(""),[r,i]=x.useState(!1),[s,o]=x.useState(sm[0].key),[a,l]=x.useState(null),[u,c]=x.useState(!1),d=async(g,w)=>{c(!0);try{const{data:m,error:p}=await TI.functions.invoke("admin-list-submissions",{headers:{"x-admin-password":w},body:{table:g}});if(p)throw p;l(m.submissions??[]),o(g),i(!0)}catch{e({title:"Zugang verweigert",description:"Bitte Passwort prüfen.",variant:"destructive"})}finally{c(!1)}},f=g=>{g.preventDefault(),t.trim()&&d(s,t)},h=()=>{if(!a||a.length===0)return;const g=new Blob([PI(a)],{type:"text/csv;charset=utf-8"}),w=URL.createObjectURL(g),m=document.createElement("a");m.href=w,m.download=`${s}-${new Date().toISOString().slice(0,10)}.csv`,m.click(),URL.revokeObjectURL(w)},b=a&&a.length>0?Gw(a):[];return y.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[y.jsx(_w,{}),y.jsx("main",{className:"flex-1",children:y.jsx("section",{className:"py-12 md:py-20",children:y.jsx("div",{className:"container-narrow",children:r?y.jsxs("div",{className:"max-w-4xl mx-auto",children:[y.jsxs("div",{className:"flex items-center justify-between mb-6 flex-wrap gap-4",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-serif text-3xl md:text-4xl font-semibold",children:"Eingaben"}),y.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:[(a==null?void 0:a.length)??0," Eintrag",((a==null?void 0:a.length)??0)===1?"":"e",", neueste zuerst"]})]}),y.jsxs(Vc,{variant:"outline",onClick:h,disabled:!a||a.length===0,children:[y.jsx(Ok,{className:"w-4 h-4 mr-2"}),"Als CSV exportieren"]})]}),y.jsx("div",{className:"flex flex-wrap gap-2 mb-8 border-t border-border pt-6",children:sm.map(g=>y.jsx("button",{type:"button",onClick:()=>void d(g.key,t),disabled:u,className:`text-xs uppercase tracking-[0.15em] px-3 py-2 border rounded-none transition-colors ${g.key===s?"border-foreground bg-foreground text-background":"border-border text-muted-foreground hover:border-foreground hover:text-foreground"}`,children:g.label},g.key))}),u?y.jsx(ep,{className:"w-5 h-5 animate-spin text-muted-foreground"}):!a||a.length===0?y.jsx("p",{className:"text-muted-foreground",children:"Noch keine Eintraege."}):y.jsx("div",{className:"space-y-8",children:a.map((g,w)=>y.jsxs("div",{className:"border border-border rounded-none p-5 md:p-6 bg-card",children:[y.jsx("div",{className:"flex items-center justify-between mb-5 pb-3 border-b border-border",children:y.jsxs("h2",{className:"font-semibold",children:["#",a.length-w,g.created_at?` · ${new Date(String(g.created_at)).toLocaleStr
149ing("de-DE")}`:""]})}),y.jsx("dl",{className:"space-y-4",children:b.filter(m=>m!=="created_at").map(m=>y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[220px_1fr] gap-2 md:gap-4",children:[y.jsx("dt",{className:"text-sm font-medium text-muted-foreground",children:m}),y.jsx("dd",{className:"text-sm",children:CI(g[m])})]},m))})]},String(g.id??w)))})]}):y.jsxs("div",{className:"max-w-md mx-auto",children:[y.jsxs("div",{className:"text-center mb-8",children:[y.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 border border-border mb-4",children:y.jsx(jk,{className:"w-6 h-6 text-muted-foreground"})}),y.jsx("h1",{className:"font-serif text-2xl md:text-3xl font-semibold mb-2",children:"Admin-Zugang"}),y.jsx("p",{className:"text-sm text-muted-foreground",children:"Alle Formulareingaben ansehen."})]}),y.jsxs("form",{onSubmit:f,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx(Iw,{htmlFor:"pw",children:"Passwort"}),y.jsx(Aw,{id:"pw",type:"password",autoFocus:!0,value:t,onChange:g=>n(g.target.value),className:"mt-1.5"})]}),y.jsx(Vc,{type:"submit",className:"w-full",size:"lg",disabled:u,children:u?y.jsx(ep,{className:"w-4 h-4 animate-spin"}):"Anmelden"})]})]})})})}),y.jsx(Tw,{})]})}function RI(){return x.useEffect(()=>{window.scrollTo(0,0)},[]),y.jsx("div",{className:"min-h-screen bg-background py-16 px-4",children:y.jsxs("div",{className:"max-w-3xl mx-auto",children:[y.jsx("a",{href:"/de",className:"text-sm text-muted-foreground hover:text-foreground mb-8 inline-block",children:"← Zurück zur Startseite"}),y.jsx("h1",{className:"font-serif text-3xl font-semibold text-foreground mb-8",children:"Impressum"}),y.jsxs("div",{className:"prose prose-sm text-muted-foreground space-y-6 text-sm leading-relaxed",children:[y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"Angaben gemäß § 5 DDG"}),y.jsxs("p",{children:["Torsten Steiner",y.jsx("br",{}),"Diligenz KI-Beratung",y.jsx("br",{}),"Goltzstraße 22",y.jsx("br",{}),"10781 Berlin",y.jsx("br",{}),"Deutschland"]}),y.jsxs("p",{children:[y.jsx("strong",{children:"E-Mail:"}),y.jsx("br",{}),y.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-4",children:"[email protected]"})]})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mt-8 mb-3",children:"Urheberrecht"}),y.jsx("p",{children:"Die auf dieser Website erstellten Inhalte und Werke unterliegen dem deutschen Urheberrecht. Soweit Inhalte Dritter verwendet werden, werden deren Urheberrechte beachtet."})]})]}),y.jsx("p",{className:"text-xs text-muted-foreground/50 mt-12",children:"© 2026 Diligenz. Alle Rechte vorbehalten."})]})})}function OI(){return x.useEffect(()=>{window.scrollTo(0,0)},[]),y.jsx("div",{className:"min-h-screen bg-background py-16 px-4",children:y.jsxs("div",{className:"max-w-3xl mx-auto",children:[y.jsx("a",{href:"/en",className:"text-sm text-muted-foreground hover:text-foreground mb-8 inline-block",children:"← Back to homepage"}),y.jsx("h1",{className:"font-serif text-3xl font-semibold text-foreground mb-8",children:"Legal Notice"}),y.jsxs("div",{className:"prose prose-sm text-muted-foreground space-y-6 text-sm leading-relaxed",children:[y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"Information pursuant to Section 5 DDG"}),y.jsxs("p",{children:["Torsten Steiner",y.jsx("br",{}),"Diligenz",y.jsx("br",{}),"[STREET + HOUSE NUMBER]",y.jsx("br",{}),"[POSTCODE + CITY]",y.jsx("br",{}),"Germany"]}),y.jsxs("p",{children:[y.jsx("strong",{children:"Email:"}),y.jsx("br",{}),y.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-4",children:"[email protected]"})]}),y.jsxs("p",{children:[y.jsx("strong",{children:"Responsible for editorial content pursuant to Section 18 (2) MStV:"}),y.jsx("br",{}),"Torsten Steiner, address as above"]})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mt-8 mb-3",children:"Content Liability"}),y.jsx("p",{children:"The content of our website was created with the greatest care. However, we cannot guarantee the accuracy, completeness, or timeliness of the content. As a service provider, and pursuant to Section 7 (1) German DDG, we are responsible for our own content on these pages under general laws. However, according to Sections 8 to 10 DDG, we are not obligated to monitor transmitted or stored third-party information or to investigate circumstances indicating illegal activity. Obligations to remove or block the use of information under general laws remain unaffected. Liability in this respect, however, arises only from the time we be
149come aware of a specific legal infringement. Upon becoming aware of such violations, we will remove the content promptly."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mt-8 mb-3",children:"Links Liability"}),y.jsx("p",{children:"Our site contains links to external third-party websites. We have no influence over the content of those sites and therefore cannot accept any responsibility or liability for them. The respective provider or operator of the linked sites is always responsible for their content. The linked pages were checked for possible legal violations at the time of linking, and no unlawful content was identifiable at that time. A permanent monitoring of the linked pages' content without concrete evidence of a violation is not feasible. If we become aware of any legal infringements on linked sites, we will remove such links immediately."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mt-8 mb-3",children:"Copyright"}),y.jsx("p",{children:"All content and works provided on this website by the site operators are subject to German copyright law. Duplication, editing, distribution, or any form of utilization beyond the limits of copyright law require the prior written consent of the respective rights holder. Downloads and copies of this site are permitted only for private, non-commercial use. Insofar as content on this site was not created by Diligenz, the copyrights of third parties are respected and such content is marked accordingly. If you nonetheless notice a copyright infringement, please inform us. Upon notification of violations, we will remove the offending content immediately."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mt-8 mb-3",children:"Use of Contact Information"}),y.jsx("p",{children:"The use of contact data published in this imprint by third parties for sending unsolicited advertising or information materials is hereby expressly prohibited. Diligenz expressly reserves the right to take legal action in the event of unsolicited promotional information (such as spam emails)."})]})]}),y.jsx("p",{className:"text-xs text-muted-foreground/50 mt-12",children:"© 2026 Diligenz. All rights reserved."})]})})}function NI(){return x.useEffect(()=>window.scrollTo(0,0),[]),y.jsx("div",{className:"min-h-screen bg-background py-16 px-4",children:y.jsxs("div",{className:"max-w-3xl mx-auto",children:[y.jsx("a",{href:"/de",className:"text-sm text-muted-foreground hover:text-foreground mb-8 inline-block",children:"← Zurück zur Startseite"}),y.jsx("h1",{className:"font-serif text-3xl font-semibold text-foreground mb-8",children:"Datenschutzerklärung"}),y.jsxs("div",{className:"prose prose-sm text-muted-foreground space-y-8 text-sm leading-relaxed",children:[y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"1. Verantwortlicher"}),y.jsxs("p",{children:["Verantwortlicher im Sinne der Datenschutz-Grundverordnung ist Torsten Steiner, Diligenz, [STRASSE + HAUSNUMMER], [PLZ + ORT], Deutschland. Bei Datenschutzanliegen erreichen Sie mich unter ",y.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-4",children:"[email protected]"}),"."]})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"2. Daten beim Websitebesuch"}),y.jsx("p",{children:"Beim Aufruf dieser Website verarbeitet der Hostinganbieter technisch erforderliche Zugriffsdaten, darunter IP-Adresse, Zeitpunkt, aufgerufene Datei, Browser und Betriebssystem. Die Verarbeitung dient der sicheren Bereitstellung der Website auf Grundlage von Art. 6 Abs. 1 lit. f DSGVO. Serverprotokolle werden in der Regel nach kurzer Zeit, spätestens nach 30 Tagen, gelöscht."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"3. Kommunikation per E-Mail"}),y.jsx("p",{children:"Wenn Sie per E-Mail Kontakt aufnehmen, verarbeite ich die von Ihnen übermittelten Daten ausschließlich zur Bearbeitung Ihrer Nachricht. Rechtsgrundlage ist je nac
149h Inhalt Art. 6 Abs. 1 lit. b oder lit. f DSGVO. Eine Nutzung zu Werbezwecken findet nicht statt. Die Daten werden gelöscht, sobald sie für die Bearbeitung nicht mehr erforderlich sind und keine gesetzlichen Aufbewahrungspflichten entgegenstehen."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"4. Cookies und Analyse"}),y.jsx("p",{children:"Diese Website setzt keine Analyse- oder Werbetracker ein. Es gibt keine Newsletteranmeldung, kein Kontaktformular und keine eingebetteten Social-Media-Plugins. Beim Aufruf externer Links gelten die Datenschutzbestimmungen des jeweiligen Anbieters."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"5. Ihre Rechte"}),y.jsx("p",{children:"Sie haben im Rahmen der gesetzlichen Voraussetzungen das Recht auf Auskunft, Berichtigung, Löschung, Einschränkung der Verarbeitung, Datenübertragbarkeit und Widerspruch. Außerdem können Sie sich bei einer Datenschutzaufsichtsbehörde beschweren. Zur Ausübung Ihrer Rechte genügt eine Nachricht an die oben genannte E-Mail-Adresse."})]})]}),y.jsx("p",{className:"text-xs text-muted-foreground/50 mt-12",children:"© 2026 Diligenz. Alle Rechte vorbehalten."})]})})}function jI(){return x.useEffect(()=>window.scrollTo(0,0),[]),y.jsx("div",{className:"min-h-screen bg-background py-16 px-4",children:y.jsxs("div",{className:"max-w-3xl mx-auto",children:[y.jsx("a",{href:"/en",className:"text-sm text-muted-foreground hover:text-foreground mb-8 inline-block",children:"← Back to homepage"}),y.jsx("h1",{className:"font-serif text-3xl font-semibold text-foreground mb-8",children:"Privacy Policy"}),y.jsxs("div",{className:"prose prose-sm text-muted-foreground space-y-8 text-sm leading-relaxed",children:[y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"1. Controller"}),y.jsxs("p",{children:["The controller for the purposes of the General Data Protection Regulation is Torsten Steiner, Diligenz, [STREET + HOUSE NUMBER], [POSTCODE + CITY], Germany. For privacy enquiries, please email ",y.jsx("a",{href:"mailto:[email protected]",className:"underline underline-offset-4",children:"[email protected]"}),"."]})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"2. Data Processed When Visiting"}),y.jsx("p",{children:"When you visit this website, the hosting provider processes technically necessary access data, including your IP address, access time, requested file, browser and operating system. Processing is necessary to provide the website securely and is based on Art. 6(1)(f) GDPR. Server logs are generally deleted after a short period and no later than 30 days."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"3. Communication by Email"}),y.jsx("p",{children:"If you contact me by email, I process the information you provide solely to respond to your message. The legal basis is Art. 6(1)(b) or Art. 6(1)(f) GDPR, depending on the context. Your information is not used for advertising and is deleted when no longer required, unless statutory retention duties apply."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"4. Cookies and Analytics"}),y.jsx("p",{children:"This website does not use analytics or advertising trackers. It has no newsletter sign-up, contact form or embedded social media plugins. If you follow an external link, the privacy terms of the respective provider apply."})]}),y.jsxs("section",{children:[y.jsx("h2",{className:"text-base font-semibold text-foreground mb-3",children:"5. Your Rights"}),y.jsx("p",{children:"Subject to the applicable legal requirements, you have rights of access, rectification, erasure, restriction, data portability and objection. You may also lodge a complaint with a data protection authority. To exercise your rights, email the address given above."})]})]}
149),y.jsx("p",{className:"text-xs text-muted-foreground/50 mt-12",children:"© 2026 Diligenz. All rights reserved."})]})})}const DI=new iT,LI=()=>y.jsx(oT,{client:DI,children:y.jsxs(j_,{children:[y.jsx(vS,{}),y.jsx(QS,{}),y.jsx(CA,{children:y.jsxs(FA,{children:[y.jsx(BA,{}),y.jsxs(iA,{children:[y.jsx(Jt,{path:"/",element:y.jsx(ka,{to:"/de",replace:!0})}),y.jsx(Jt,{path:"/de/impressum",element:y.jsx(RI,{})}),y.jsx(Jt,{path:"/de/datenschutz",element:y.jsx(NI,{})}),y.jsx(Jt,{path:"/en/imprint",element:y.jsx(OI,{})}),y.jsx(Jt,{path:"/en/privacy",element:y.jsx(jI,{})}),y.jsx(Jt,{path:"/admin/submissions",element:y.jsx(II,{})}),y.jsx(Jt,{path:"/de",element:y.jsx(jp,{})}),y.jsx(Jt,{path:"/en",element:y.jsx(jp,{})}),y.jsx(Jt,{path:"*",element:y.jsx(U1,{})})]})]})})]})});Av(document.getElementById("root")).render(y.jsx(LI,{}));

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.